var oIr=Object.defineProperty;var lIr=(e,t,r)=>t in e?oIr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Gi=(e,t,r)=>lIr(e,typeof t!="symbol"?t+"":t,r);import{r as ue,R as Er,b as odt,j as ct,a as w9,$ as g$}from"./vendor-react.js?v=1775123024591";import{a as O1,c as ml}from"./_commonjsHelpers.js?v=1775123024591";import{_ as ea}from"./preload-helper.js?v=1775123024591";import{c as sO}from"./_commonjs-dynamic-modules.js?v=1775123024591";function cIr(e,t){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const uIr=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),bAn=(...e)=>e.filter((t,r,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===r).join(" ").trim();/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var hIr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dIr=ue.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:s="",children:o,iconNode:u,...h},f)=>ue.createElement("svg",{ref:f,...hIr,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:bAn("lucide",s),...h},[...u.map(([p,m])=>ue.createElement(p,m)),...Array.isArray(o)?o:[o]]));/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ta=(e,t)=>{const r=ue.forwardRef(({className:a,...s},o)=>ue.createElement(dIr,{ref:o,iconNode:t,className:bAn(`lucide-${uIr(e)}`,a),...s}));return r.displayName=`${e}`,r};/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fIr=[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]],sSa=Ta("AppWindow",fIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const pIr=[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]],oSa=Ta("ArrowRightLeft",pIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const gIr=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],lSa=Ta("BookOpen",gIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const mIr=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],cSa=Ta("Boxes",mIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bIr=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],uSa=Ta("Check",bIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const yIr=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],hSa=Ta("ChevronDown",yIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const vIr=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],dSa=Ta("ChevronRight",vIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _Ir=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],fSa=Ta("ChevronUp",_Ir);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const wIr=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],pSa=Ta("CircleAlert",wIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const EIr=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],gSa=Ta("CircleCheckBig",EIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xIr=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],mSa=Ta("CircleCheck",xIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const SIr=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],bSa=Ta("CircleHelp",SIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const TIr=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],ySa=Ta("CircleX",TIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const CIr=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],vSa=Ta("Circle",CIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const AIr=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],_Sa=Ta("CloudUpload",AIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const kIr=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],wSa=Ta("CodeXml",kIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const RIr=[["path",{d:"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1uwlt4"}],["path",{d:"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z",key:"10291m"}],["path",{d:"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z",key:"1tqoq1"}],["path",{d:"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1x6lto"}]],ESa=Ta("Component",RIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const IIr=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],xSa=Ta("Copy",IIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const NIr=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],SSa=Ta("Database",NIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const OIr=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],TSa=Ta("Download",OIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const LIr=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],CSa=Ta("Ellipsis",LIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const DIr=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ASa=Ta("ExternalLink",DIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const MIr=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],kSa=Ta("Eye",MIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const PIr=[["path",{d:"M10 12v-1",key:"v7bkov"}],["path",{d:"M10 18v-2",key:"1cjy8d"}],["path",{d:"M10 7V6",key:"dljcrl"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v16a2 2 0 0 0 .274 1.01",key:"gkbcor"}],["circle",{cx:"10",cy:"20",r:"2",key:"1xzdoj"}]],RSa=Ta("FileArchive",PIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const BIr=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],ISa=Ta("FileText",BIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const FIr=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],NSa=Ta("File",FIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $Ir=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],OSa=Ta("FolderOpen",$Ir);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const UIr=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],LSa=Ta("FolderPlus",UIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const zIr=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],DSa=Ta("Folder",zIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const GIr=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],MSa=Ta("GitCommitHorizontal",GIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const qIr=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],PSa=Ta("Globe",qIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const HIr=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],BSa=Ta("GraduationCap",HIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const VIr=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],FSa=Ta("History",VIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const YIr=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],$Sa=Ta("Image",YIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jIr=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],USa=Ta("Info",jIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const WIr=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],zSa=Ta("Link",WIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const KIr=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],GSa=Ta("LoaderCircle",KIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const XIr=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],qSa=Ta("Menu",XIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const QIr=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],HSa=Ta("MessageCircle",QIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ZIr=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],VSa=Ta("Monitor",ZIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const JIr=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],YSa=Ta("Moon",JIr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const eNr=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],jSa=Ta("OctagonX",eNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tNr=[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]],WSa=Ta("Palette",tNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const nNr=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],KSa=Ta("PanelLeftClose",nNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const rNr=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],XSa=Ta("PanelLeftOpen",rNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const iNr=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],QSa=Ta("PanelsTopLeft",iNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const aNr=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]],ZSa=Ta("PenLine",aNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const sNr=[["path",{d:"M13 7 8.7 2.7a2.41 2.41 0 0 0-3.4 0L2.7 5.3a2.41 2.41 0 0 0 0 3.4L7 13",key:"orapub"}],["path",{d:"m8 6 2-2",key:"115y1s"}],["path",{d:"m18 16 2-2",key:"ee94s4"}],["path",{d:"m17 11 4.3 4.3c.94.94.94 2.46 0 3.4l-2.6 2.6c-.94.94-2.46.94-3.4 0L11 17",key:"cfq27r"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],JSa=Ta("PencilRuler",sNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const oNr=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],e4a=Ta("Pencil",oNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const lNr=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],t4a=Ta("Plus",lNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const cNr=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],n4a=Ta("RefreshCw",cNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const uNr=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],r4a=Ta("Rocket",uNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const hNr=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],i4a=Ta("RotateCcw",hNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dNr=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],a4a=Ta("RotateCw",dNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fNr=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],s4a=Ta("Save",fNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const pNr=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],o4a=Ta("Search",pNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const gNr=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],l4a=Ta("Settings",gNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const mNr=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],c4a=Ta("Smartphone",mNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bNr=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],u4a=Ta("Sparkles",bNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const yNr=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],h4a=Ta("SquarePen",yNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const vNr=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],d4a=Ta("SquareTerminal",vNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _Nr=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],f4a=Ta("Star",_Nr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const wNr=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],p4a=Ta("Sun",wNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ENr=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]],g4a=Ta("Tablet",ENr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xNr=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],m4a=Ta("Trash2",xNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const SNr=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],b4a=Ta("TriangleAlert",SNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const TNr=[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]],y4a=Ta("Unlink",TNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const CNr=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],v4a=Ta("Upload",CNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ANr=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],_4a=Ta("WandSparkles",ANr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const kNr=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],w4a=Ta("Wifi",kNr);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const RNr=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],E4a=Ta("X",RNr);function INr(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const NNr=e=>{switch(e){case"success":return DNr;case"info":return PNr;case"warning":return MNr;case"error":return BNr;default:return null}},ONr=Array(12).fill(0),LNr=({visible:e,className:t})=>Er.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},Er.createElement("div",{className:"sonner-spinner"},ONr.map((r,a)=>Er.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),DNr=Er.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Er.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),MNr=Er.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Er.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),PNr=Er.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Er.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),BNr=Er.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Er.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),FNr=Er.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Er.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Er.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),$Nr=()=>{const[e,t]=Er.useState(document.hidden);return Er.useEffect(()=>{const r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let Mat=1;class UNr{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:a,...s}=t,o=typeof(t==null?void 0:t.id)=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Mat++,u=this.toasts.find(f=>f.id===o),h=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),u?this.toasts=this.toasts.map(f=>f.id===o?(this.publish({...f,...t,id:o,title:a}),{...f,...t,id:o,dismissible:h,title:a}):f):this.addToast({title:a,...s,dismissible:h,id:o}),o},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(a=>a({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let a;r.loading!==void 0&&(a=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const s=Promise.resolve(t instanceof Function?t():t);let o=a!==void 0,u;const h=s.then(async p=>{if(u=["resolve",p],Er.isValidElement(p))o=!1,this.create({id:a,type:"default",message:p});else if(GNr(p)&&!p.ok){o=!1;const b=typeof r.error=="function"?await r.error(`HTTP error! status: ${p.status}`):r.error,_=typeof r.description=="function"?await r.description(`HTTP error! status: ${p.status}`):r.description,S=typeof b=="object"&&!Er.isValidElement(b)?b:{message:b};this.create({id:a,type:"error",description:_,...S})}else if(p instanceof Error){o=!1;const b=typeof r.error=="function"?await r.error(p):r.error,_=typeof r.description=="function"?await r.description(p):r.description,S=typeof b=="object"&&!Er.isValidElement(b)?b:{message:b};this.create({id:a,type:"error",description:_,...S})}else if(r.success!==void 0){o=!1;const b=typeof r.success=="function"?await r.success(p):r.success,_=typeof r.description=="function"?await r.description(p):r.description,S=typeof b=="object"&&!Er.isValidElement(b)?b:{message:b};this.create({id:a,type:"success",description:_,...S})}}).catch(async p=>{if(u=["reject",p],r.error!==void 0){o=!1;const m=typeof r.error=="function"?await r.error(p):r.error,b=typeof r.description=="function"?await r.description(p):r.description,w=typeof m=="object"&&!Er.isValidElement(m)?m:{message:m};this.create({id:a,type:"error",description:b,...w})}}).finally(()=>{o&&(this.dismiss(a),a=void 0),r.finally==null||r.finally.call(r)}),f=()=>new Promise((p,m)=>h.then(()=>u[0]==="reject"?m(u[1]):p(u[1])).catch(m));return typeof a!="string"&&typeof a!="number"?{unwrap:f}:Object.assign(a,{unwrap:f})},this.custom=(t,r)=>{const a=(r==null?void 0:r.id)||Mat++;return this.create({jsx:t(a),id:a,...r}),a},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const L2=new UNr,zNr=(e,t)=>{const r=(t==null?void 0:t.id)||Mat++;return L2.addToast({title:e,...t,id:r}),r},GNr=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",qNr=zNr,HNr=()=>L2.toasts,VNr=()=>L2.getActiveToasts(),x4a=Object.assign(qNr,{success:L2.success,info:L2.info,warning:L2.warning,error:L2.error,custom:L2.custom,message:L2.message,promise:L2.promise,dismiss:L2.dismiss,loading:L2.loading},{getHistory:HNr,getToasts:VNr});INr("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function n_e(e){return e.label!==void 0}const YNr=3,jNr="24px",WNr="16px",Xhn=4e3,KNr=356,XNr=14,QNr=45,ZNr=200;function hC(...e){return e.filter(Boolean).join(" ")}function JNr(e){const[t,r]=e.split("-"),a=[];return t&&a.push(t),r&&a.push(r),a}const eOr=e=>{var t,r,a,s,o,u,h,f,p;const{invert:m,toast:b,unstyled:_,interacting:w,setHeights:S,visibleToasts:C,heights:A,index:k,toasts:I,expanded:N,removeToast:L,defaultRichColors:P,closeButton:M,style:F,cancelButtonStyle:U,actionButtonStyle:$,className:G="",descriptionClassName:B="",duration:Z,position:z,gap:Y,expandByDefault:W,classNames:Q,icons:V,closeButtonAriaLabel:j="Close toast"}=e,[ee,te]=Er.useState(null),[ne,se]=Er.useState(null),[ie,ge]=Er.useState(!1),[ce,be]=Er.useState(!1),[ve,De]=Er.useState(!1),[ye,Ee]=Er.useState(!1),[he,we]=Er.useState(!1),[Ce,Ie]=Er.useState(0),[Le,Fe]=Er.useState(0),Ve=Er.useRef(b.duration||Z||Xhn),Oe=Er.useRef(null),Dt=Er.useRef(null),ot=k===0,sn=k+1<=C,Kt=b.type,Ft=b.dismissible!==!1,Je=b.className||"",ht=b.descriptionClassName||"",et=Er.useMemo(()=>A.findIndex(Dn=>Dn.toastId===b.id)||0,[A,b.id]),qe=Er.useMemo(()=>{var Dn;return(Dn=b.closeButton)!=null?Dn:M},[b.closeButton,M]),He=Er.useMemo(()=>b.duration||Z||Xhn,[b.duration,Z]),Ge=Er.useRef(0),Ye=Er.useRef(0),Ae=Er.useRef(0),Xe=Er.useRef(null),[fe,Qe]=z.split("-"),Ke=Er.useMemo(()=>A.reduce((Dn,zn,vn)=>vn>=et?Dn:Dn+zn.height,0),[A,et]),mt=$Nr(),lt=b.invert||m,$t=Kt==="loading";Ye.current=Er.useMemo(()=>et*Y+Ke,[et,Ke]),Er.useEffect(()=>{Ve.current=He},[He]),Er.useEffect(()=>{ge(!0)},[]),Er.useEffect(()=>{const Dn=Dt.current;if(Dn){const zn=Dn.getBoundingClientRect().height;return Fe(zn),S(vn=>[{toastId:b.id,height:zn,position:b.position},...vn]),()=>S(vn=>vn.filter(Cn=>Cn.toastId!==b.id))}},[S,b.id]),Er.useLayoutEffect(()=>{if(!ie)return;const Dn=Dt.current,zn=Dn.style.height;Dn.style.height="auto";const vn=Dn.getBoundingClientRect().height;Dn.style.height=zn,Fe(vn),S(Cn=>Cn.find(ur=>ur.toastId===b.id)?Cn.map(ur=>ur.toastId===b.id?{...ur,height:vn}:ur):[{toastId:b.id,height:vn,position:b.position},...Cn])},[ie,b.title,b.description,S,b.id,b.jsx,b.action,b.cancel]);const Ut=Er.useCallback(()=>{be(!0),Ie(Ye.current),S(Dn=>Dn.filter(zn=>zn.toastId!==b.id)),setTimeout(()=>{L(b)},ZNr)},[b,L,S,Ye]);Er.useEffect(()=>{if(b.promise&&Kt==="loading"||b.duration===1/0||b.type==="loading")return;let Dn;return N||w||mt?(()=>{if(Ae.current{Ve.current!==1/0&&(Ge.current=new Date().getTime(),Dn=setTimeout(()=>{b.onAutoClose==null||b.onAutoClose.call(b,b),Ut()},Ve.current))})(),()=>clearTimeout(Dn)},[N,w,b,Kt,mt,Ut]),Er.useEffect(()=>{b.delete&&(Ut(),b.onDismiss==null||b.onDismiss.call(b,b))},[Ut,b.delete]);function Jt(){var Dn;if(V!=null&&V.loading){var zn;return Er.createElement("div",{className:hC(Q==null?void 0:Q.loader,b==null||(zn=b.classNames)==null?void 0:zn.loader,"sonner-loader"),"data-visible":Kt==="loading"},V.loading)}return Er.createElement(LNr,{className:hC(Q==null?void 0:Q.loader,b==null||(Dn=b.classNames)==null?void 0:Dn.loader),visible:Kt==="loading"})}const wn=b.icon||(V==null?void 0:V[Kt])||NNr(Kt);var Vn,Wn;return Er.createElement("li",{tabIndex:0,ref:Dt,className:hC(G,Je,Q==null?void 0:Q.toast,b==null||(t=b.classNames)==null?void 0:t.toast,Q==null?void 0:Q.default,Q==null?void 0:Q[Kt],b==null||(r=b.classNames)==null?void 0:r[Kt]),"data-sonner-toast":"","data-rich-colors":(Vn=b.richColors)!=null?Vn:P,"data-styled":!(b.jsx||b.unstyled||_),"data-mounted":ie,"data-promise":!!b.promise,"data-swiped":he,"data-removed":ce,"data-visible":sn,"data-y-position":fe,"data-x-position":Qe,"data-index":k,"data-front":ot,"data-swiping":ve,"data-dismissible":Ft,"data-type":Kt,"data-invert":lt,"data-swipe-out":ye,"data-swipe-direction":ne,"data-expanded":!!(N||W&&ie),"data-testid":b.testId,style:{"--index":k,"--toasts-before":k,"--z-index":I.length-k,"--offset":`${ce?Ce:Ye.current}px`,"--initial-height":W?"auto":`${Le}px`,...F,...b.style},onDragEnd:()=>{De(!1),te(null),Xe.current=null},onPointerDown:Dn=>{Dn.button!==2&&($t||!Ft||(Oe.current=new Date,Ie(Ye.current),Dn.target.setPointerCapture(Dn.pointerId),Dn.target.tagName!=="BUTTON"&&(De(!0),Xe.current={x:Dn.clientX,y:Dn.clientY})))},onPointerUp:()=>{var Dn,zn,vn;if(ye||!Ft)return;Xe.current=null;const Cn=Number(((Dn=Dt.current)==null?void 0:Dn.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Ar=Number(((zn=Dt.current)==null?void 0:zn.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ur=new Date().getTime()-((vn=Oe.current)==null?void 0:vn.getTime()),On=ee==="x"?Cn:Ar,Ir=Math.abs(On)/ur;if(Math.abs(On)>=QNr||Ir>.11){Ie(Ye.current),b.onDismiss==null||b.onDismiss.call(b,b),se(ee==="x"?Cn>0?"right":"left":Ar>0?"down":"up"),Ut(),Ee(!0);return}else{var Ln,pr;(Ln=Dt.current)==null||Ln.style.setProperty("--swipe-amount-x","0px"),(pr=Dt.current)==null||pr.style.setProperty("--swipe-amount-y","0px")}we(!1),De(!1),te(null)},onPointerMove:Dn=>{var zn,vn,Cn;if(!Xe.current||!Ft||((zn=window.getSelection())==null?void 0:zn.toString().length)>0)return;const ur=Dn.clientY-Xe.current.y,On=Dn.clientX-Xe.current.x;var Ir;const Ln=(Ir=e.swipeDirections)!=null?Ir:JNr(z);!ee&&(Math.abs(On)>1||Math.abs(ur)>1)&&te(Math.abs(On)>Math.abs(ur)?"x":"y");let pr={x:0,y:0};const Cr=Zr=>1/(1.5+Math.abs(Zr)/20);if(ee==="y"){if(Ln.includes("top")||Ln.includes("bottom"))if(Ln.includes("top")&&ur<0||Ln.includes("bottom")&&ur>0)pr.y=ur;else{const Zr=ur*Cr(ur);pr.y=Math.abs(Zr)0)pr.x=On;else{const Zr=On*Cr(On);pr.x=Math.abs(Zr)0||Math.abs(pr.y)>0)&&we(!0),(vn=Dt.current)==null||vn.style.setProperty("--swipe-amount-x",`${pr.x}px`),(Cn=Dt.current)==null||Cn.style.setProperty("--swipe-amount-y",`${pr.y}px`)}},qe&&!b.jsx&&Kt!=="loading"?Er.createElement("button",{"aria-label":j,"data-disabled":$t,"data-close-button":!0,onClick:$t||!Ft?()=>{}:()=>{Ut(),b.onDismiss==null||b.onDismiss.call(b,b)},className:hC(Q==null?void 0:Q.closeButton,b==null||(a=b.classNames)==null?void 0:a.closeButton)},(Wn=V==null?void 0:V.close)!=null?Wn:FNr):null,(Kt||b.icon||b.promise)&&b.icon!==null&&((V==null?void 0:V[Kt])!==null||b.icon)?Er.createElement("div",{"data-icon":"",className:hC(Q==null?void 0:Q.icon,b==null||(s=b.classNames)==null?void 0:s.icon)},b.promise||b.type==="loading"&&!b.icon?b.icon||Jt():null,b.type!=="loading"?wn:null):null,Er.createElement("div",{"data-content":"",className:hC(Q==null?void 0:Q.content,b==null||(o=b.classNames)==null?void 0:o.content)},Er.createElement("div",{"data-title":"",className:hC(Q==null?void 0:Q.title,b==null||(u=b.classNames)==null?void 0:u.title)},b.jsx?b.jsx:typeof b.title=="function"?b.title():b.title),b.description?Er.createElement("div",{"data-description":"",className:hC(B,ht,Q==null?void 0:Q.description,b==null||(h=b.classNames)==null?void 0:h.description)},typeof b.description=="function"?b.description():b.description):null),Er.isValidElement(b.cancel)?b.cancel:b.cancel&&n_e(b.cancel)?Er.createElement("button",{"data-button":!0,"data-cancel":!0,style:b.cancelButtonStyle||U,onClick:Dn=>{n_e(b.cancel)&&Ft&&(b.cancel.onClick==null||b.cancel.onClick.call(b.cancel,Dn),Ut())},className:hC(Q==null?void 0:Q.cancelButton,b==null||(f=b.classNames)==null?void 0:f.cancelButton)},b.cancel.label):null,Er.isValidElement(b.action)?b.action:b.action&&n_e(b.action)?Er.createElement("button",{"data-button":!0,"data-action":!0,style:b.actionButtonStyle||$,onClick:Dn=>{n_e(b.action)&&(b.action.onClick==null||b.action.onClick.call(b.action,Dn),!Dn.defaultPrevented&&Ut())},className:hC(Q==null?void 0:Q.actionButton,b==null||(p=b.classNames)==null?void 0:p.actionButton)},b.action.label):null)};function Qhn(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function tOr(e,t){const r={};return[e,t].forEach((a,s)=>{const o=s===1,u=o?"--mobile-offset":"--offset",h=o?WNr:jNr;function f(p){["top","right","bottom","left"].forEach(m=>{r[`${u}-${m}`]=typeof p=="number"?`${p}px`:p})}typeof a=="number"||typeof a=="string"?f(a):typeof a=="object"?["top","right","bottom","left"].forEach(p=>{a[p]===void 0?r[`${u}-${p}`]=h:r[`${u}-${p}`]=typeof a[p]=="number"?`${a[p]}px`:a[p]}):f(h)}),r}const S4a=Er.forwardRef(function(t,r){const{id:a,invert:s,position:o="bottom-right",hotkey:u=["altKey","KeyT"],expand:h,closeButton:f,className:p,offset:m,mobileOffset:b,theme:_="light",richColors:w,duration:S,style:C,visibleToasts:A=YNr,toastOptions:k,dir:I=Qhn(),gap:N=XNr,icons:L,containerAriaLabel:P="Notifications"}=t,[M,F]=Er.useState([]),U=Er.useMemo(()=>a?M.filter(ie=>ie.toasterId===a):M.filter(ie=>!ie.toasterId),[M,a]),$=Er.useMemo(()=>Array.from(new Set([o].concat(U.filter(ie=>ie.position).map(ie=>ie.position)))),[U,o]),[G,B]=Er.useState([]),[Z,z]=Er.useState(!1),[Y,W]=Er.useState(!1),[Q,V]=Er.useState(_!=="system"?_:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),j=Er.useRef(null),ee=u.join("+").replace(/Key/g,"").replace(/Digit/g,""),te=Er.useRef(null),ne=Er.useRef(!1),se=Er.useCallback(ie=>{F(ge=>{var ce;return(ce=ge.find(be=>be.id===ie.id))!=null&&ce.delete||L2.dismiss(ie.id),ge.filter(({id:be})=>be!==ie.id)})},[]);return Er.useEffect(()=>L2.subscribe(ie=>{if(ie.dismiss){requestAnimationFrame(()=>{F(ge=>ge.map(ce=>ce.id===ie.id?{...ce,delete:!0}:ce))});return}setTimeout(()=>{odt.flushSync(()=>{F(ge=>{const ce=ge.findIndex(be=>be.id===ie.id);return ce!==-1?[...ge.slice(0,ce),{...ge[ce],...ie},...ge.slice(ce+1)]:[ie,...ge]})})})}),[M]),Er.useEffect(()=>{if(_!=="system"){V(_);return}if(_==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window>"u")return;const ie=window.matchMedia("(prefers-color-scheme: dark)");try{ie.addEventListener("change",({matches:ge})=>{V(ge?"dark":"light")})}catch{ie.addListener(({matches:ce})=>{try{V(ce?"dark":"light")}catch(be){console.error(be)}})}},[_]),Er.useEffect(()=>{M.length<=1&&z(!1)},[M]),Er.useEffect(()=>{const ie=ge=>{var ce;if(u.every(De=>ge[De]||ge.code===De)){var ve;z(!0),(ve=j.current)==null||ve.focus()}ge.code==="Escape"&&(document.activeElement===j.current||(ce=j.current)!=null&&ce.contains(document.activeElement))&&z(!1)};return document.addEventListener("keydown",ie),()=>document.removeEventListener("keydown",ie)},[u]),Er.useEffect(()=>{if(j.current)return()=>{te.current&&(te.current.focus({preventScroll:!0}),te.current=null,ne.current=!1)}},[j.current]),Er.createElement("section",{ref:r,"aria-label":`${P} ${ee}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},$.map((ie,ge)=>{var ce;const[be,ve]=ie.split("-");return U.length?Er.createElement("ol",{key:ie,dir:I==="auto"?Qhn():I,tabIndex:-1,ref:j,className:p,"data-sonner-toaster":!0,"data-sonner-theme":Q,"data-y-position":be,"data-x-position":ve,style:{"--front-toast-height":`${((ce=G[0])==null?void 0:ce.height)||0}px`,"--width":`${KNr}px`,"--gap":`${N}px`,...C,...tOr(m,b)},onBlur:De=>{ne.current&&!De.currentTarget.contains(De.relatedTarget)&&(ne.current=!1,te.current&&(te.current.focus({preventScroll:!0}),te.current=null))},onFocus:De=>{De.target instanceof HTMLElement&&De.target.dataset.dismissible==="false"||ne.current||(ne.current=!0,te.current=De.relatedTarget)},onMouseEnter:()=>z(!0),onMouseMove:()=>z(!0),onMouseLeave:()=>{Y||z(!1)},onDragEnd:()=>z(!1),onPointerDown:De=>{De.target instanceof HTMLElement&&De.target.dataset.dismissible==="false"||W(!0)},onPointerUp:()=>W(!1)},U.filter(De=>!De.position&&ge===0||De.position===ie).map((De,ye)=>{var Ee,he;return Er.createElement(eOr,{key:De.id,icons:L,index:ye,toast:De,defaultRichColors:w,duration:(Ee=k==null?void 0:k.duration)!=null?Ee:S,className:k==null?void 0:k.className,descriptionClassName:k==null?void 0:k.descriptionClassName,invert:s,visibleToasts:A,closeButton:(he=k==null?void 0:k.closeButton)!=null?he:f,interacting:Y,position:ie,style:k==null?void 0:k.style,unstyled:k==null?void 0:k.unstyled,classNames:k==null?void 0:k.classNames,cancelButtonStyle:k==null?void 0:k.cancelButtonStyle,actionButtonStyle:k==null?void 0:k.actionButtonStyle,closeButtonAriaLabel:k==null?void 0:k.closeButtonAriaLabel,removeToast:se,toasts:U.filter(we=>we.position==De.position),heights:G.filter(we=>we.position==De.position),setHeights:B,expandByDefault:h,gap:N,expanded:Z,swipeDirections:t.swipeDirections})})):null}))});function T4a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dj(e){"@babel/helpers - typeof";return dj=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dj(e)}function nOr(e,t){if(dj(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(dj(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function yAn(e){var t=nOr(e,"string");return dj(t)=="symbol"?t:t+""}function rOr(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,a=Array(t);r=4;++a,s-=4)r=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(a+2)&255)<<16;case 2:t^=(e.charCodeAt(a+1)&255)<<8;case 1:t^=e.charCodeAt(a)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var I4a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},dd="-ms-",Vae="-moz-",Eu="-webkit-",xAn="comm",hdt="rule",ddt="decl",uOr="@import",hOr="@namespace",SAn="@keyframes",dOr="@layer",TAn=Math.abs,fdt=String.fromCharCode,$at=Object.assign;function fOr(e,t){return _p(e,0)^45?(((t<<2^_p(e,0))<<2^_p(e,1))<<2^_p(e,2))<<2^_p(e,3):0}function CAn(e){return e.trim()}function o7(e,t){return(e=t.exec(e))?e[0]:e}function Ml(e,t,r){return e.replace(t,r)}function NEe(e,t,r){return e.indexOf(t,r)}function _p(e,t){return e.charCodeAt(t)|0}function yF(e,t,r){return e.slice(t,r)}function k3(e){return e.length}function AAn(e){return e.length}function Eie(e,t){return t.push(e),e}function pOr(e,t){return e.map(t).join("")}function Jhn(e,t){return e.filter(function(r){return!o7(r,t)})}var L5e=1,fj=1,kAn=0,pS=0,C1=0,mW="";function D5e(e,t,r,a,s,o,u,h){return{value:e,root:t,parent:r,type:a,props:s,children:o,line:L5e,column:fj,length:u,return:"",siblings:h}}function zN(e,t){return $at(D5e("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function IH(e){for(;e.root;)e=zN(e.root,{children:[e]});Eie(e,e.siblings)}function gOr(){return C1}function mOr(){return C1=pS>0?_p(mW,--pS):0,fj--,C1===10&&(fj=1,L5e--),C1}function H3(){return C1=pS2||zse(C1)>3?"":" "}function _Or(e,t){for(;--t&&H3()&&!(C1<48||C1>102||C1>57&&C1<65||C1>70&&C1<97););return M5e(e,OEe()+(t<6&&oO()==32&&H3()==32))}function Uat(e){for(;H3();)switch(C1){case e:return pS;case 34:case 39:e!==34&&e!==39&&Uat(C1);break;case 40:e===41&&Uat(e);break;case 92:H3();break}return pS}function wOr(e,t){for(;H3()&&e+C1!==57;)if(e+C1===84&&oO()===47)break;return"/*"+M5e(t,pS-1)+"*"+fdt(e===47?e:H3())}function EOr(e){for(;!zse(oO());)H3();return M5e(e,pS)}function RAn(e){return yOr(LEe("",null,null,null,[""],e=bOr(e),0,[0],e))}function LEe(e,t,r,a,s,o,u,h,f){for(var p=0,m=0,b=u,_=0,w=0,S=0,C=1,A=1,k=1,I=0,N="",L=s,P=o,M=a,F=N;A;)switch(S=I,I=H3()){case 40:if(S!=108&&_p(F,b-1)==58){NEe(F+=Ml(hXe(I),"&","&\f"),"&\f",TAn(p?h[p-1]:0))!=-1&&(k=-1);break}case 34:case 39:case 91:F+=hXe(I);break;case 9:case 10:case 13:case 32:F+=vOr(S);break;case 92:F+=_Or(OEe()-1,7);continue;case 47:switch(oO()){case 42:case 47:Eie(xOr(wOr(H3(),OEe()),t,r,f),f),(zse(S||1)==5||zse(oO()||1)==5)&&k3(F)&&yF(F,-1,void 0)!==" "&&(F+=" ");break;default:F+="/"}break;case 123*C:h[p++]=k3(F)*k;case 125*C:case 59:case 0:switch(I){case 0:case 125:A=0;case 59+m:k==-1&&(F=Ml(F,/\f/g,"")),w>0&&(k3(F)-b||C===0&&S===47)&&Eie(w>32?tdn(F+";",a,r,b-1,f):tdn(Ml(F," ","")+";",a,r,b-2,f),f);break;case 59:F+=";";default:if(Eie(M=edn(F,t,r,p,m,s,h,N,L=[],P=[],b,o),o),I===123)if(m===0)LEe(F,t,M,M,L,o,b,h,P);else{switch(_){case 99:if(_p(F,3)===110)break;case 108:if(_p(F,2)===97)break;default:m=0;case 100:case 109:case 115:}m?LEe(e,M,M,a&&Eie(edn(e,M,M,0,0,s,h,N,s,L=[],b,P),P),s,P,b,h,a?L:P):LEe(F,M,M,M,[""],P,0,h,P)}}p=m=w=0,C=k=1,N=F="",b=u;break;case 58:b=1+k3(F),w=S;default:if(C<1){if(I==123)--C;else if(I==125&&C++==0&&mOr()==125)continue}switch(F+=fdt(I),I*C){case 38:k=m>0?1:(F+="\f",-1);break;case 44:h[p++]=(k3(F)-1)*k,k=1;break;case 64:oO()===45&&(F+=hXe(H3())),_=oO(),m=b=k3(N=F+=EOr(OEe())),I++;break;case 45:S===45&&k3(F)==2&&(C=0)}}return o}function edn(e,t,r,a,s,o,u,h,f,p,m,b){for(var _=s-1,w=s===0?o:[""],S=AAn(w),C=0,A=0,k=0;C0?w[I]+" "+N:Ml(N,/&\f/g,w[I])))&&(f[k++]=L);return D5e(e,t,r,s===0?hdt:h,f,p,m,b)}function xOr(e,t,r,a){return D5e(e,t,r,xAn,fdt(gOr()),yF(e,2,-2),0,a)}function tdn(e,t,r,a,s){return D5e(e,t,r,ddt,yF(e,0,a),yF(e,a+1,-1),a,s)}function IAn(e,t,r){switch(fOr(e,t)){case 5103:return Eu+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Eu+e+e;case 4855:return Eu+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Vae+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Eu+e+Vae+e+dd+e+e;case 5936:switch(_p(e,t+11)){case 114:return Eu+e+dd+Ml(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Eu+e+dd+Ml(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Eu+e+dd+Ml(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Eu+e+dd+e+e;case 6165:return Eu+e+dd+"flex-"+e+e;case 5187:return Eu+e+Ml(e,/(\w+).+(:[^]+)/,Eu+"box-$1$2"+dd+"flex-$1$2")+e;case 5443:return Eu+e+dd+"flex-item-"+Ml(e,/flex-|-self/g,"")+(o7(e,/flex-|baseline/)?"":dd+"grid-row-"+Ml(e,/flex-|-self/g,""))+e;case 4675:return Eu+e+dd+"flex-line-pack"+Ml(e,/align-content|flex-|-self/g,"")+e;case 5548:return Eu+e+dd+Ml(e,"shrink","negative")+e;case 5292:return Eu+e+dd+Ml(e,"basis","preferred-size")+e;case 6060:return Eu+"box-"+Ml(e,"-grow","")+Eu+e+dd+Ml(e,"grow","positive")+e;case 4554:return Eu+Ml(e,/([^-])(transform)/g,"$1"+Eu+"$2")+e;case 6187:return Ml(Ml(Ml(e,/(zoom-|grab)/,Eu+"$1"),/(image-set)/,Eu+"$1"),e,"")+e;case 5495:case 3959:return Ml(e,/(image-set\([^]*)/,Eu+"$1$`$1");case 4968:return Ml(Ml(e,/(.+:)(flex-)?(.*)/,Eu+"box-pack:$3"+dd+"flex-pack:$3"),/space-between/,"justify")+Eu+e+e;case 4200:if(!o7(e,/flex-|baseline/))return dd+"grid-column-align"+yF(e,t)+e;break;case 2592:case 3360:return dd+Ml(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(a,s){return t=s,o7(a.props,/grid-\w+-end/)})?~NEe(e+(r=r[t].value),"span",0)?e:dd+Ml(e,"-start","")+e+dd+"grid-row-span:"+(~NEe(r,"span",0)?o7(r,/\d+/):+o7(r,/\d+/)-+o7(e,/\d+/))+";":dd+Ml(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(a){return o7(a.props,/grid-\w+-start/)})?e:dd+Ml(Ml(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ml(e,/(.+)-inline(.+)/,Eu+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(k3(e)-1-t>6)switch(_p(e,t+1)){case 109:if(_p(e,t+4)!==45)break;case 102:return Ml(e,/(.+:)(.+)-([^]+)/,"$1"+Eu+"$2-$3$1"+Vae+(_p(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~NEe(e,"stretch",0)?IAn(Ml(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Ml(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(a,s,o,u,h,f,p){return dd+s+":"+o+p+(u?dd+s+"-span:"+(h?f:+f-+o)+p:"")+e});case 4949:if(_p(e,t+6)===121)return Ml(e,":",":"+Eu)+e;break;case 6444:switch(_p(e,_p(e,14)===45?18:11)){case 120:return Ml(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Eu+(_p(e,14)===45?"inline-":"")+"box$3$1"+Eu+"$2$3$1"+dd+"$2box$3")+e;case 100:return Ml(e,":",":"+dd)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ml(e,"scroll-","scroll-snap-")+e}return e}function Gse(e,t){for(var r="",a=0;a-1&&!e.return)switch(e.type){case ddt:e.return=IAn(e.value,e.length,r);return;case SAn:return Gse([zN(e,{value:Ml(e.value,"@","@"+Eu)})],a);case hdt:if(e.length)return pOr(r=e.props,function(s){switch(o7(s,a=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":IH(zN(e,{props:[Ml(s,/:(read-\w+)/,":"+Vae+"$1")]})),IH(zN(e,{props:[s]})),$at(e,{props:Jhn(r,a)});break;case"::placeholder":IH(zN(e,{props:[Ml(s,/:(plac\w+)/,":"+Eu+"input-$1")]})),IH(zN(e,{props:[Ml(s,/:(plac\w+)/,":"+Vae+"$1")]})),IH(zN(e,{props:[Ml(s,/:(plac\w+)/,dd+"input-$1")]})),IH(zN(e,{props:[s]})),$at(e,{props:Jhn(r,a)});break}return""})}}function pj(e){"@babel/helpers - typeof";return pj=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pj(e)}function SOr(e){if(Array.isArray(e))return e}function TOr(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,s,o,u,h=[],f=!0,p=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(a=o.call(r)).done)&&(h.push(a.value),h.length!==t);f=!0);}catch(m){p=!0,s=m}finally{try{if(!f&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(p)throw s}}return h}}function zat(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);rtypeof e=="object"&&e!=null&&e.nodeType===1,adn=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",r_e=(e,t)=>{if(e.clientHeight{const s=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(a);return!!s&&(s.clientHeightot||o>e&&u=t&&h>=r?o-e-a:u>t&&hr?u-t+s:0,POr=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},sdn=(e,t)=>{var r,a,s,o;if(typeof document>"u")return[];const{scrollMode:u,block:h,inline:f,boundary:p,skipOverflowHiddenElements:m}=t,b=typeof p=="function"?p:Q=>Q!==p;if(!idn(e))throw new TypeError("Invalid target");const _=document.scrollingElement||document.documentElement,w=[];let S=e;for(;idn(S)&&b(S);){if(S=POr(S),S===_){w.push(S);break}S!=null&&S===document.body&&r_e(S)&&!r_e(document.documentElement)||S!=null&&r_e(S,m)&&w.push(S)}const C=(a=(r=window.visualViewport)==null?void 0:r.width)!=null?a:innerWidth,A=(o=(s=window.visualViewport)==null?void 0:s.height)!=null?o:innerHeight,{scrollX:k,scrollY:I}=window,{height:N,width:L,top:P,right:M,bottom:F,left:U}=e.getBoundingClientRect(),{top:$,right:G,bottom:B,left:Z}=(Q=>{const V=window.getComputedStyle(Q);return{top:parseFloat(V.scrollMarginTop)||0,right:parseFloat(V.scrollMarginRight)||0,bottom:parseFloat(V.scrollMarginBottom)||0,left:parseFloat(V.scrollMarginLeft)||0}})(e);let z=h==="start"||h==="nearest"?P-$:h==="end"?F+B:P+N/2-$+B,Y=f==="center"?U+L/2-Z+G:f==="end"?M+G:U-Z;const W=[];for(let Q=0;Q=0&&U>=0&&F<=A&&M<=C&&(V===_&&!r_e(V)||P>=te&&F<=se&&U>=ie&&M<=ne))return W;const ge=getComputedStyle(V),ce=parseInt(ge.borderLeftWidth,10),be=parseInt(ge.borderTopWidth,10),ve=parseInt(ge.borderRightWidth,10),De=parseInt(ge.borderBottomWidth,10);let ye=0,Ee=0;const he="offsetWidth"in V?V.offsetWidth-V.clientWidth-ce-ve:0,we="offsetHeight"in V?V.offsetHeight-V.clientHeight-be-De:0,Ce="offsetWidth"in V?V.offsetWidth===0?0:ee/V.offsetWidth:0,Ie="offsetHeight"in V?V.offsetHeight===0?0:j/V.offsetHeight:0;if(_===V)ye=h==="start"?z:h==="end"?z-A:h==="nearest"?i_e(I,I+A,A,be,De,I+z,I+z+N,N):z-A/2,Ee=f==="start"?Y:f==="center"?Y-C/2:f==="end"?Y-C:i_e(k,k+C,C,ce,ve,k+Y,k+Y+L,L),ye=Math.max(0,ye+I),Ee=Math.max(0,Ee+k);else{ye=h==="start"?z-te-be:h==="end"?z-se+De+we:h==="nearest"?i_e(te,se,j,be,De+we,z,z+N,N):z-(te+j/2)+we/2,Ee=f==="start"?Y-ie-ce:f==="center"?Y-(ie+ee/2)+he/2:f==="end"?Y-ne+ve+he:i_e(ie,ne,ee,ce,ve+he,Y,Y+L,L);const{scrollLeft:Le,scrollTop:Fe}=V;ye=Ie===0?0:Math.max(0,Math.min(Fe+ye/Ie,V.scrollHeight-j/Ie+we)),Ee=Ce===0?0:Math.max(0,Math.min(Le+Ee/Ce,V.scrollWidth-ee/Ce+he)),z+=Fe-ye,Y+=Le-Ee}W.push({el:V,top:ye,left:Ee})}return W},BOr=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function z4a(e,t){if(!e.isConnected||!(s=>{let o=s;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const r=(s=>{const o=window.getComputedStyle(s);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((s=>typeof s=="object"&&typeof s.behavior=="function")(t))return t.behavior(sdn(e,t));const a=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:s,top:o,left:u}of sdn(e,BOr(t))){const h=o-r.top+r.bottom,f=u-r.left+r.right;s.scroll({top:h,left:f,behavior:a})}}function n_(){return n_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=W?Y:""+Array(W+1-V.length).join(Q)+Y},L={s:N,z:function(Y){var W=-Y.utcOffset(),Q=Math.abs(W),V=Math.floor(Q/60),j=Q%60;return(W<=0?"+":"-")+N(V,2,"0")+":"+N(j,2,"0")},m:function Y(W,Q){if(W.date()1)return Y(te[0])}else{var ne=W.name;M[ne]=W,j=ne}return!V&&j&&(P=j),j||!V&&P},G=function(Y,W){if(U(Y))return Y.clone();var Q=typeof W=="object"?W:{};return Q.date=Y,Q.args=arguments,new Z(Q)},B=L;B.l=$,B.i=U,B.w=function(Y,W){return G(Y,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var Z=function(){function Y(Q){this.$L=$(Q.locale,null,!0),this.parse(Q),this.$x=this.$x||Q.x||{},this[F]=!0}var W=Y.prototype;return W.parse=function(Q){this.$d=function(V){var j=V.date,ee=V.utc;if(j===null)return new Date(NaN);if(B.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var te=j.match(A);if(te){var ne=te[2]-1||0,se=(te[7]||"0").substring(0,3);return ee?new Date(Date.UTC(te[1],ne,te[3]||1,te[4]||0,te[5]||0,te[6]||0,se)):new Date(te[1],ne,te[3]||1,te[4]||0,te[5]||0,te[6]||0,se)}}return new Date(j)}(Q),this.init()},W.init=function(){var Q=this.$d;this.$y=Q.getFullYear(),this.$M=Q.getMonth(),this.$D=Q.getDate(),this.$W=Q.getDay(),this.$H=Q.getHours(),this.$m=Q.getMinutes(),this.$s=Q.getSeconds(),this.$ms=Q.getMilliseconds()},W.$utils=function(){return B},W.isValid=function(){return this.$d.toString()!==C},W.isSame=function(Q,V){var j=G(Q);return this.startOf(V)<=j&&j<=this.endOf(V)},W.isAfter=function(Q,V){return G(Q)68?1900:2e3)},m=function(A){return function(k){this[A]=+k}},b=[/[+-]\d\d:?(\d\d)?|Z/,function(A){(this.zone||(this.zone={})).offset=function(k){if(!k||k==="Z")return 0;var I=k.match(/([+-]|\d\d)/g),N=60*I[1]+(+I[2]||0);return N===0?0:I[0]==="+"?-N:N}(A)}],_=function(A){var k=f[A];return k&&(k.indexOf?k:k.s.concat(k.f))},w=function(A,k){var I,N=f.meridiem;if(N){for(var L=1;L<=24;L+=1)if(A.indexOf(N(L,0,k))>-1){I=L>12;break}}else I=A===(k?"pm":"PM");return I},S={A:[h,function(A){this.afternoon=w(A,!1)}],a:[h,function(A){this.afternoon=w(A,!0)}],Q:[s,function(A){this.month=3*(A-1)+1}],S:[s,function(A){this.milliseconds=100*+A}],SS:[o,function(A){this.milliseconds=10*+A}],SSS:[/\d{3}/,function(A){this.milliseconds=+A}],s:[u,m("seconds")],ss:[u,m("seconds")],m:[u,m("minutes")],mm:[u,m("minutes")],H:[u,m("hours")],h:[u,m("hours")],HH:[u,m("hours")],hh:[u,m("hours")],D:[u,m("day")],DD:[o,m("day")],Do:[h,function(A){var k=f.ordinal,I=A.match(/\d+/);if(this.day=I[0],k)for(var N=1;N<=31;N+=1)k(N).replace(/\[|\]/g,"")===A&&(this.day=N)}],w:[u,m("week")],ww:[o,m("week")],M:[u,m("month")],MM:[o,m("month")],MMM:[h,function(A){var k=_("months"),I=(_("monthsShort")||k.map(function(N){return N.slice(0,3)})).indexOf(A)+1;if(I<1)throw new Error;this.month=I%12||I}],MMMM:[h,function(A){var k=_("months").indexOf(A)+1;if(k<1)throw new Error;this.month=k%12||k}],Y:[/[+-]?\d+/,m("year")],YY:[o,function(A){this.year=p(A)}],YYYY:[/\d{4}/,m("year")],Z:b,ZZ:b};function C(A){var k,I;k=A,I=f&&f.formats;for(var N=(A=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(G,B,Z){var z=Z&&Z.toUpperCase();return B||I[Z]||r[Z]||I[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Y,W,Q){return W||Q.slice(1)})})).match(a),L=N.length,P=0;P-1)return new Date((j==="X"?1e3:1)*V);var ne=C(j)(V),se=ne.year,ie=ne.month,ge=ne.day,ce=ne.hours,be=ne.minutes,ve=ne.seconds,De=ne.milliseconds,ye=ne.zone,Ee=ne.week,he=new Date,we=ge||(se||ie?1:he.getDate()),Ce=se||he.getFullYear(),Ie=0;se&&!ie||(Ie=ie>0?ie-1:he.getMonth());var Le,Fe=ce||0,Ve=be||0,Oe=ve||0,Dt=De||0;return ye?new Date(Date.UTC(Ce,Ie,we,Fe,Ve,Oe,Dt+60*ye.offset*1e3)):ee?new Date(Date.UTC(Ce,Ie,we,Fe,Ve,Oe,Dt)):(Le=new Date(Ce,Ie,we,Fe,Ve,Oe,Dt),Ee&&(Le=te(Le).week(Ee).toDate()),Le)}catch{return new Date("")}}(M,$,F,I),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),Z&&M!=this.format($)&&(this.$d=new Date("")),f={}}else if($ instanceof Array)for(var Y=$.length,W=1;W<=Y;W+=1){U[1]=$[W-1];var Q=I.apply(this,U);if(Q.isValid()){this.$d=Q.$d,this.$L=Q.$L,this.init();break}W===Y&&(this.$d=new Date(""))}else L.call(this,P)}}})})(BAn);var GOr=BAn.exports;const FAn=O1(GOr);var P5e={exports:{}};P5e.exports=mdt;P5e.exports.isMobile=mdt;P5e.exports.default=mdt;const qOr=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,HOr=/CrOS/,VOr=/android|ipad|playbook|silk/i;function mdt(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=qOr.test(t)&&!HOr.test(t)||!!e.tablet&&VOr.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}var YOr=P5e.exports;const G4a=O1(YOr);function jOr(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function q4a(e,t){if(e==null)return{};var r,a,s=jOr(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;ae?h?(_=Date.now(),o||(m=setTimeout(p?M:P,e))):P():o!==!0&&(m=setTimeout(p?M:P,p===void 0?e-L:e))}return C.cancel=S,C}function H4a(e,t,r){var a={},s=a.atBegin,o=s===void 0?!1:s;return WOr(e,t,{debounceMode:o!==!1})}function V4a(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=pdt(e))||t){r&&(e=r);var a=0,s=function(){};return{s,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(p){throw p},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,u=!0,h=!1;return{s:function(){r=r.call(e)},n:function(){var p=r.next();return u=p.done,p},e:function(p){h=!0,o=p},f:function(){try{u||r.return==null||r.return()}finally{if(h)throw o}}}}function KOr(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function XOr(e,t){if(e==null)return{};var r,a,s=KOr(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a-1&&e.splice(r,1)}const gA=(e,t,r)=>r>t?t:r{};const FO={},UAn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function zAn(e){return typeof e=="object"&&e!==null}const GAn=e=>/^0[^.\s]+$/u.test(e);function qAn(e){let t;return()=>(t===void 0&&(t=e()),t)}const cS=e=>e,t9r=(e,t)=>r=>t(e(r)),Lle=(...e)=>e.reduce(t9r),Vse=(e,t,r)=>{const a=t-e;return a===0?1:(r-e)/a};class wdt{constructor(){this.subscriptions=[]}add(t){return vdt(this.subscriptions,t),()=>bSe(this.subscriptions,t)}notify(t,r,a){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,r,a);else for(let o=0;oe*1e3,rS=e=>e/1e3;function HAn(e,t){return t?e*(1e3/t):0}const VAn=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,n9r=1e-7,r9r=12;function i9r(e,t,r,a,s){let o,u,h=0;do u=t+(r-t)/2,o=VAn(u,a,s)-e,o>0?r=u:t=u;while(Math.abs(o)>n9r&&++hi9r(o,0,1,e,r);return o=>o===0||o===1?o:VAn(s(o),t,a)}const YAn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,jAn=e=>t=>1-e(1-t),WAn=Dle(.33,1.53,.69,.99),Edt=jAn(WAn),KAn=YAn(Edt),XAn=e=>e>=1?1:(e*=2)<1?.5*Edt(e):.5*(2-Math.pow(2,-10*(e-1))),xdt=e=>1-Math.sin(Math.acos(e)),QAn=jAn(xdt),ZAn=YAn(xdt),a9r=Dle(.42,0,1,1),s9r=Dle(0,0,.58,1),JAn=Dle(.42,0,.58,1),o9r=e=>Array.isArray(e)&&typeof e[0]!="number",ekn=e=>Array.isArray(e)&&typeof e[0]=="number",l9r={linear:cS,easeIn:a9r,easeInOut:JAn,easeOut:s9r,circIn:xdt,circInOut:ZAn,circOut:QAn,backIn:Edt,backInOut:KAn,backOut:WAn,anticipate:XAn},c9r=e=>typeof e=="string",ldn=e=>{if(ekn(e)){_dt(e.length===4);const[t,r,a,s]=e;return Dle(t,r,a,s)}else if(c9r(e))return l9r[e];return e},a_e=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function u9r(e,t){let r=new Set,a=new Set,s=!1,o=!1;const u=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function f(m){u.has(m)&&(p.schedule(m),e()),m(h)}const p={schedule:(m,b=!1,_=!1)=>{const S=_&&s?r:a;return b&&u.add(m),S.add(m),m},cancel:m=>{a.delete(m),u.delete(m)},process:m=>{if(h=m,s){o=!0;return}s=!0;const b=r;r=a,a=b,r.forEach(f),r.clear(),s=!1,o&&(o=!1,p.process(m))}};return p}const h9r=40;function tkn(e,t){let r=!1,a=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,u=a_e.reduce((N,L)=>(N[L]=u9r(o),N),{}),{setup:h,read:f,resolveKeyframes:p,preUpdate:m,update:b,preRender:_,render:w,postRender:S}=u,C=()=>{const N=FO.useManualTiming,L=N?s.timestamp:performance.now();r=!1,N||(s.delta=a?1e3/60:Math.max(Math.min(L-s.timestamp,h9r),1)),s.timestamp=L,s.isProcessing=!0,h.process(s),f.process(s),p.process(s),m.process(s),b.process(s),_.process(s),w.process(s),S.process(s),s.isProcessing=!1,r&&t&&(a=!1,e(C))},A=()=>{r=!0,a=!0,s.isProcessing||e(C)};return{schedule:a_e.reduce((N,L)=>{const P=u[L];return N[L]=(M,F=!1,U=!1)=>(r||A(),P.schedule(M,F,U)),N},{}),cancel:N=>{for(let L=0;L(DEe===void 0&&Vy.set(bm.isProcessing||FO.useManualTiming?bm.timestamp:performance.now()),DEe),set:e=>{DEe=e,queueMicrotask(d9r)}},nkn=e=>t=>typeof t=="string"&&t.startsWith(e),rkn=nkn("--"),f9r=nkn("var(--"),Sdt=e=>f9r(e)?p9r.test(e.split("/*")[0].trim()):!1,p9r=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function cdn(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const bW={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Yse={...bW,transform:e=>gA(0,1,e)},s_e={...bW,default:1},Yae=e=>Math.round(e*1e5)/1e5,Tdt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function g9r(e){return e==null}const m9r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Cdt=(e,t)=>r=>!!(typeof r=="string"&&m9r.test(r)&&r.startsWith(e)||t&&!g9r(r)&&Object.prototype.hasOwnProperty.call(r,t)),ikn=(e,t,r)=>a=>{if(typeof a!="string")return a;const[s,o,u,h]=a.match(Tdt);return{[e]:parseFloat(s),[t]:parseFloat(o),[r]:parseFloat(u),alpha:h!==void 0?parseFloat(h):1}},b9r=e=>gA(0,255,e),fXe={...bW,transform:e=>Math.round(b9r(e))},YB={test:Cdt("rgb","red"),parse:ikn("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:a=1})=>"rgba("+fXe.transform(e)+", "+fXe.transform(t)+", "+fXe.transform(r)+", "+Yae(Yse.transform(a))+")"};function y9r(e){let t="",r="",a="",s="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),a=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),a=e.substring(3,4),s=e.substring(4,5),t+=t,r+=r,a+=a,s+=s),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(a,16),alpha:s?parseInt(s,16)/255:1}}const qat={test:Cdt("#"),parse:y9r,transform:YB.transform},Mle=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),GN=Mle("deg"),rA=Mle("%"),ja=Mle("px"),v9r=Mle("vh"),_9r=Mle("vw"),udn={...rA,parse:e=>rA.parse(e)/100,transform:e=>rA.transform(e*100)},SV={test:Cdt("hsl","hue"),parse:ikn("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:a=1})=>"hsla("+Math.round(e)+", "+rA.transform(Yae(t))+", "+rA.transform(Yae(r))+", "+Yae(Yse.transform(a))+")"},E1={test:e=>YB.test(e)||qat.test(e)||SV.test(e),parse:e=>YB.test(e)?YB.parse(e):SV.test(e)?SV.parse(e):qat.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?YB.transform(e):SV.transform(e),getAnimatableNone:e=>{const t=E1.parse(e);return t.alpha=0,E1.transform(t)}},w9r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function E9r(e){var t,r;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Tdt))==null?void 0:t.length)||0)+(((r=e.match(w9r))==null?void 0:r.length)||0)>0}const akn="number",skn="color",x9r="var",S9r="var(",hdn="${}",T9r=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function gj(e){const t=e.toString(),r=[],a={color:[],number:[],var:[]},s=[];let o=0;const h=t.replace(T9r,f=>(E1.test(f)?(a.color.push(o),s.push(skn),r.push(E1.parse(f))):f.startsWith(S9r)?(a.var.push(o),s.push(x9r),r.push(f)):(a.number.push(o),s.push(akn),r.push(parseFloat(f))),++o,hdn)).split(hdn);return{values:r,split:h,indexes:a,types:s}}function C9r(e){return gj(e).values}function okn({split:e,types:t}){const r=e.length;return a=>{let s="";for(let o=0;otypeof e=="number"?0:E1.test(e)?E1.getAnimatableNone(e):e,R9r=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:k9r(e);function I9r(e){const t=gj(e);return okn(t)(t.values.map((a,s)=>R9r(a,t.split[s])))}const V3={test:E9r,parse:C9r,createTransformer:A9r,getAnimatableNone:I9r};function pXe(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function N9r({hue:e,saturation:t,lightness:r,alpha:a}){e/=360,t/=100,r/=100;let s=0,o=0,u=0;if(!t)s=o=u=r;else{const h=r<.5?r*(1+t):r+t-r*t,f=2*r-h;s=pXe(f,h,e+1/3),o=pXe(f,h,e),u=pXe(f,h,e-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(u*255),alpha:a}}function ySe(e,t){return r=>r>0?t:e}const vd=(e,t,r)=>e+(t-e)*r,gXe=(e,t,r)=>{const a=e*e,s=r*(t*t-a)+a;return s<0?0:Math.sqrt(s)},O9r=[qat,YB,SV],L9r=e=>O9r.find(t=>t.test(e));function ddn(e){const t=L9r(e);if(!t)return!1;let r=t.parse(e);return t===SV&&(r=N9r(r)),r}const fdn=(e,t)=>{const r=ddn(e),a=ddn(t);if(!r||!a)return ySe(e,t);const s={...r};return o=>(s.red=gXe(r.red,a.red,o),s.green=gXe(r.green,a.green,o),s.blue=gXe(r.blue,a.blue,o),s.alpha=vd(r.alpha,a.alpha,o),YB.transform(s))},Hat=new Set(["none","hidden"]);function D9r(e,t){return Hat.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function M9r(e,t){return r=>vd(e,t,r)}function Adt(e){return typeof e=="number"?M9r:typeof e=="string"?Sdt(e)?ySe:E1.test(e)?fdn:F9r:Array.isArray(e)?lkn:typeof e=="object"?E1.test(e)?fdn:P9r:ySe}function lkn(e,t){const r=[...e],a=r.length,s=e.map((o,u)=>Adt(o)(o,t[u]));return o=>{for(let u=0;u{for(const o in a)r[o]=a[o](s);return r}}function B9r(e,t){const r=[],a={color:0,var:0,number:0};for(let s=0;s{const r=V3.createTransformer(t),a=gj(e),s=gj(t);return a.indexes.var.length===s.indexes.var.length&&a.indexes.color.length===s.indexes.color.length&&a.indexes.number.length>=s.indexes.number.length?Hat.has(e)&&!s.values.length||Hat.has(t)&&!a.values.length?D9r(e,t):Lle(lkn(B9r(a,s),s.values),r):ySe(e,t)};function ckn(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?vd(e,t,r):Adt(e)(e,t)}const $9r=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>Dh.update(t,r),stop:()=>$O(t),now:()=>bm.isProcessing?bm.timestamp:Vy.now()}},ukn=(e,t,r=10)=>{let a="";const s=Math.max(Math.round(t/r),2);for(let o=0;o=vSe?1/0:t}function U9r(e,t=100,r){const a=r({...e,keyframes:[0,t]}),s=Math.min(kdt(a),vSe);return{type:"keyframes",ease:o=>a.next(s*o).value/t,duration:rS(s)}}const s0={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Vat(e,t){return e*Math.sqrt(1-t*t)}const z9r=12;function G9r(e,t,r){let a=r;for(let s=1;s{const m=p*u,b=m*e,_=m-r,w=Vat(p,u),S=Math.exp(-b);return mXe-_/w*S},o=p=>{const b=p*u*e,_=b*r+r,w=Math.pow(u,2)*Math.pow(p,2)*e,S=Math.exp(-b),C=Vat(Math.pow(p,2),u);return(-s(p)+mXe>0?-1:1)*((_-w)*S)/C}):(s=p=>{const m=Math.exp(-p*e),b=(p-r)*e+1;return-mXe+m*b},o=p=>{const m=Math.exp(-p*e),b=(r-p)*(e*e);return m*b});const h=5/e,f=G9r(s,o,h);if(e=Dw(e),isNaN(f))return{stiffness:s0.stiffness,damping:s0.damping,duration:e};{const p=Math.pow(f,2)*a;return{stiffness:p,damping:u*2*Math.sqrt(a*p),duration:e}}}const H9r=["duration","bounce"],V9r=["stiffness","damping","mass"];function pdn(e,t){return t.some(r=>e[r]!==void 0)}function Y9r(e){let t={velocity:s0.velocity,stiffness:s0.stiffness,damping:s0.damping,mass:s0.mass,isResolvedFromDuration:!1,...e};if(!pdn(e,V9r)&&pdn(e,H9r))if(t.velocity=0,e.visualDuration){const r=e.visualDuration,a=2*Math.PI/(r*1.2),s=a*a,o=2*gA(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:s0.mass,stiffness:s,damping:o}}else{const r=q9r({...e,velocity:0});t={...t,...r,mass:s0.mass},t.isResolvedFromDuration=!0}return t}function _Se(e=s0.visualDuration,t=s0.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:a,restDelta:s}=r;const o=r.keyframes[0],u=r.keyframes[r.keyframes.length-1],h={done:!1,value:o},{stiffness:f,damping:p,mass:m,duration:b,velocity:_,isResolvedFromDuration:w}=Y9r({...r,velocity:-rS(r.velocity||0)}),S=_||0,C=p/(2*Math.sqrt(f*m)),A=u-o,k=rS(Math.sqrt(f/m)),I=Math.abs(A)<5;a||(a=I?s0.restSpeed.granular:s0.restSpeed.default),s||(s=I?s0.restDelta.granular:s0.restDelta.default);let N,L,P,M,F,U;if(C<1)P=Vat(k,C),M=(S+C*k*A)/P,N=G=>{const B=Math.exp(-C*k*G);return u-B*(M*Math.sin(P*G)+A*Math.cos(P*G))},F=C*k*M+A*P,U=C*k*A-M*P,L=G=>Math.exp(-C*k*G)*(F*Math.sin(P*G)+U*Math.cos(P*G));else if(C===1){N=B=>u-Math.exp(-k*B)*(A+(S+k*A)*B);const G=S+k*A;L=B=>Math.exp(-k*B)*(k*G*B-S)}else{const G=k*Math.sqrt(C*C-1);N=Y=>{const W=Math.exp(-C*k*Y),Q=Math.min(G*Y,300);return u-W*((S+C*k*A)*Math.sinh(Q)+G*A*Math.cosh(Q))/G};const B=(S+C*k*A)/G,Z=C*k*B-A*G,z=C*k*A-B*G;L=Y=>{const W=Math.exp(-C*k*Y),Q=Math.min(G*Y,300);return W*(Z*Math.sinh(Q)+z*Math.cosh(Q))}}const $={calculatedDuration:w&&b||null,velocity:G=>Dw(L(G)),next:G=>{if(!w&&C<1){const Z=Math.exp(-C*k*G),z=Math.sin(P*G),Y=Math.cos(P*G),W=u-Z*(M*z+A*Y),Q=Dw(Z*(F*z+U*Y));return h.done=Math.abs(Q)<=a&&Math.abs(u-W)<=s,h.value=h.done?u:W,h}const B=N(G);if(w)h.done=G>=b;else{const Z=Dw(L(G));h.done=Math.abs(Z)<=a&&Math.abs(u-B)<=s}return h.value=h.done?u:B,h},toString:()=>{const G=Math.min(kdt($),vSe),B=ukn(Z=>$.next(G*Z).value,G,30);return G+"ms "+B},toTransition:()=>{}};return $}_Se.applyToOptions=e=>{const t=U9r(e,100,_Se);return e.ease=t.ease,e.duration=Dw(t.duration),e.type="keyframes",e};const j9r=5;function hkn(e,t,r){const a=Math.max(t-j9r,0);return HAn(r-e(a),t-a)}function Yat({keyframes:e,velocity:t=0,power:r=.8,timeConstant:a=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:u,min:h,max:f,restDelta:p=.5,restSpeed:m}){const b=e[0],_={done:!1,value:b},w=U=>h!==void 0&&Uf,S=U=>h===void 0?f:f===void 0||Math.abs(h-U)-C*Math.exp(-U/a),N=U=>k+I(U),L=U=>{const $=I(U),G=N(U);_.done=Math.abs($)<=p,_.value=_.done?k:G};let P,M;const F=U=>{w(_.value)&&(P=U,M=_Se({keyframes:[_.value,S(_.value)],velocity:hkn(N,U,_.value),damping:s,stiffness:o,restDelta:p,restSpeed:m}))};return F(0),{calculatedDuration:null,next:U=>{let $=!1;return!M&&P===void 0&&($=!0,L(U),F(U)),P!==void 0&&U>=P?M.next(U-P):(!$&&L(U),_)}}}function W9r(e,t,r){const a=[],s=r||FO.mix||ckn,o=e.length-1;for(let u=0;ut[0];if(o===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const h=W9r(t,a,s),f=h.length,p=m=>{if(u&&m1)for(;bp(gA(e[0],e[o-1],m)):p}function X9r(e,t){const r=e[e.length-1];for(let a=1;a<=t;a++){const s=Vse(0,t,a);e.push(vd(r,1,s))}}function Q9r(e){const t=[0];return X9r(t,e.length-1),t}function Z9r(e,t){return e.map(r=>r*t)}function J9r(e,t){return e.map(()=>t||JAn).splice(0,e.length-1)}function jae({duration:e=300,keyframes:t,times:r,ease:a="easeInOut"}){const s=o9r(a)?a.map(ldn):ldn(a),o={done:!1,value:t[0]},u=Z9r(r&&r.length===t.length?r:Q9r(t),e),h=K9r(u,t,{ease:Array.isArray(s)?s:J9r(t,s)});return{calculatedDuration:e,next:f=>(o.value=h(f),o.done=f>=e,o)}}const eLr=e=>e!==null;function F5e(e,{repeat:t,repeatType:r="loop"},a,s=1){const o=e.filter(eLr),h=s<0||t&&r!=="loop"&&t%2===1?0:o.length-1;return!h||a===void 0?o[h]:a}const tLr={decay:Yat,inertia:Yat,tween:jae,keyframes:jae,spring:_Se};function dkn(e){typeof e.type=="string"&&(e.type=tLr[e.type])}class Rdt{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const nLr=e=>e/100;class wSe extends Rdt{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var a,s;const{motionValue:r}=this.options;r&&r.updatedAt!==Vy.now()&&this.tick(Vy.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(a=this.options).onStop)==null||s.call(a))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;dkn(t);const{type:r=jae,repeat:a=0,repeatDelay:s=0,repeatType:o,velocity:u=0}=t;let{keyframes:h}=t;const f=r||jae;f!==jae&&typeof h[0]!="number"&&(this.mixKeyframes=Lle(nLr,ckn(h[0],h[1])),h=[0,100]);const p=f({...t,keyframes:h});o==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...h].reverse(),velocity:-u})),p.calculatedDuration===null&&(p.calculatedDuration=kdt(p));const{calculatedDuration:m}=p;this.calculatedDuration=m,this.resolvedDuration=m+s,this.totalDuration=this.resolvedDuration*(a+1)-s,this.generator=p}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:a,totalDuration:s,mixKeyframes:o,mirroredGenerator:u,resolvedDuration:h,calculatedDuration:f}=this;if(this.startTime===null)return a.next(0);const{delay:p=0,keyframes:m,repeat:b,repeatType:_,repeatDelay:w,type:S,onUpdate:C,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const k=this.currentTime-p*(this.playbackSpeed>=0?1:-1),I=this.playbackSpeed>=0?k<0:k>s;this.currentTime=Math.max(k,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let N=this.currentTime,L=a;if(b){const U=Math.min(this.currentTime,s)/h;let $=Math.floor(U),G=U%1;!G&&U>=1&&(G=1),G===1&&$--,$=Math.min($,b+1),!!($%2)&&(_==="reverse"?(G=1-G,w&&(G-=w/h)):_==="mirror"&&(L=u)),N=gA(0,1,G)*h}let P;I?(this.delayState.value=m[0],P=this.delayState):P=L.next(N),o&&!I&&(P.value=o(P.value));let{done:M}=P;!I&&f!==null&&(M=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return F&&S!==Yat&&(P.value=F5e(m,this.options,A,this.speed)),C&&C(P.value),F&&this.finish(),P}then(t,r){return this.finished.then(t,r)}get duration(){return rS(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+rS(t)}get time(){return rS(this.currentTime)}set time(t){t=Dw(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const r=this.generator.next(t).value;return hkn(a=>this.generator.next(a).value,t,r)}get speed(){return this.playbackSpeed}set speed(t){const r=this.playbackSpeed!==t;r&&this.driver&&this.updateTime(Vy.now()),this.playbackSpeed=t,r&&this.driver&&(this.time=rS(this.currentTime))}play(){var s,o;if(this.isStopped)return;const{driver:t=$9r,startTime:r}=this.options;this.driver||(this.driver=t(u=>this.tick(u))),(o=(s=this.options).onPlay)==null||o.call(s);const a=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=a):this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime||(this.startTime=r??a),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Vy.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,r;this.notifyFinished(),this.teardown(),this.state="finished",(r=(t=this.options).onComplete)==null||r.call(t)}cancel(){var t,r;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(r=(t=this.options).onCancel)==null||r.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var r;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(r=this.driver)==null||r.stop(),t.observe(this)}}function rLr(e){for(let t=1;te*180/Math.PI,jat=e=>{const t=jB(Math.atan2(e[1],e[0]));return Wat(t)},iLr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:jat,rotateZ:jat,skewX:e=>jB(Math.atan(e[1])),skewY:e=>jB(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Wat=e=>(e=e%360,e<0&&(e+=360),e),gdn=jat,mdn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),bdn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),aLr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:mdn,scaleY:bdn,scale:e=>(mdn(e)+bdn(e))/2,rotateX:e=>Wat(jB(Math.atan2(e[6],e[5]))),rotateY:e=>Wat(jB(Math.atan2(-e[2],e[0]))),rotateZ:gdn,rotate:gdn,skewX:e=>jB(Math.atan(e[4])),skewY:e=>jB(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Kat(e){return e.includes("scale")?1:0}function Xat(e,t){if(!e||e==="none")return Kat(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let a,s;if(r)a=aLr,s=r;else{const h=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=iLr,s=h}if(!s)return Kat(t);const o=a[t],u=s[1].split(",").map(oLr);return typeof o=="function"?o(u):u[o]}const sLr=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return Xat(r,t)};function oLr(e){return parseFloat(e.trim())}const yW=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vW=new Set(yW),ydn=e=>e===bW||e===ja,lLr=new Set(["x","y","z"]),cLr=yW.filter(e=>!lLr.has(e));function uLr(e){const t=[];return cLr.forEach(r=>{const a=e.getValue(r);a!==void 0&&(t.push([r,a.get()]),a.set(r.startsWith("scale")?1:0))}),t}const lO={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:a})=>{const s=e.max-e.min;return a==="border-box"?s:s-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:a})=>{const s=e.max-e.min;return a==="border-box"?s:s-parseFloat(t)-parseFloat(r)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Xat(t,"x"),y:(e,{transform:t})=>Xat(t,"y")};lO.translateX=lO.x;lO.translateY=lO.y;const hF=new Set;let Qat=!1,Zat=!1,Jat=!1;function fkn(){if(Zat){const e=Array.from(hF).filter(a=>a.needsMeasurement),t=new Set(e.map(a=>a.element)),r=new Map;t.forEach(a=>{const s=uLr(a);s.length&&(r.set(a,s),a.render())}),e.forEach(a=>a.measureInitialState()),t.forEach(a=>{a.render();const s=r.get(a);s&&s.forEach(([o,u])=>{var h;(h=a.getValue(o))==null||h.set(u)})}),e.forEach(a=>a.measureEndState()),e.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}Zat=!1,Qat=!1,hF.forEach(e=>e.complete(Jat)),hF.clear()}function pkn(){hF.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Zat=!0)})}function hLr(){Jat=!0,pkn(),fkn(),Jat=!1}class Idt{constructor(t,r,a,s,o,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=a,this.motionValue=s,this.element=o,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(hF.add(this),Qat||(Qat=!0,Dh.read(pkn),Dh.resolveKeyframes(fkn))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:a,motionValue:s}=this;if(t[0]===null){const o=s==null?void 0:s.get(),u=t[t.length-1];if(o!==void 0)t[0]=o;else if(a&&r){const h=a.readValue(r,u);h!=null&&(t[0]=h)}t[0]===void 0&&(t[0]=u),s&&o===void 0&&s.set(t[0])}rLr(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),hF.delete(this)}cancel(){this.state==="scheduled"&&(hF.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const dLr=e=>e.startsWith("--");function gkn(e,t,r){dLr(t)?e.style.setProperty(t,r):e.style[t]=r}const fLr={};function mkn(e,t){const r=qAn(e);return()=>fLr[t]??r()}const pLr=mkn(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),bkn=mkn(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),xie=([e,t,r,a])=>`cubic-bezier(${e}, ${t}, ${r}, ${a})`,vdn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xie([0,.65,.55,1]),circOut:xie([.55,0,1,.45]),backIn:xie([.31,.01,.66,-.59]),backOut:xie([.33,1.53,.69,.99])};function ykn(e,t){if(e)return typeof e=="function"?bkn()?ukn(e,t):"ease-out":ekn(e)?xie(e):Array.isArray(e)?e.map(r=>ykn(r,t)||vdn.easeOut):vdn[e]}function gLr(e,t,r,{delay:a=0,duration:s=300,repeat:o=0,repeatType:u="loop",ease:h="easeOut",times:f}={},p=void 0){const m={[t]:r};f&&(m.offset=f);const b=ykn(h,s);Array.isArray(b)&&(m.easing=b);const _={delay:a,duration:s,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:o+1,direction:u==="reverse"?"alternate":"normal"};return p&&(_.pseudoElement=p),e.animate(m,_)}function vkn(e){return typeof e=="function"&&"applyToOptions"in e}function mLr({type:e,...t}){return vkn(e)&&bkn()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class _kn extends Rdt{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:r,name:a,keyframes:s,pseudoElement:o,allowFlatten:u=!1,finalKeyframe:h,onComplete:f}=t;this.isPseudoElement=!!o,this.allowFlatten=u,this.options=t,_dt(typeof t.type!="string");const p=mLr(t);this.animation=gLr(r,a,s,p,o),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const m=F5e(s,this.options,h,this.speed);this.updateMotionValue&&this.updateMotionValue(m),gkn(r,a,m),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,r;(r=(t=this.animation).finish)==null||r.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var r,a,s;const t=(r=this.options)==null?void 0:r.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(a=this.animation).commitStyles)==null||s.call(a))}get duration(){var r,a;const t=((a=(r=this.animation.effect)==null?void 0:r.getComputedTiming)==null?void 0:a.call(r).duration)||0;return rS(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+rS(t)}get time(){return rS(Number(this.animation.currentTime)||0)}set time(t){const r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Dw(t),r&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:r,rangeEnd:a,observe:s}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&pLr()?(this.animation.timeline=t,r&&(this.animation.rangeStart=r),a&&(this.animation.rangeEnd=a),cS):s(this)}}const wkn={anticipate:XAn,backInOut:KAn,circInOut:ZAn};function bLr(e){return e in wkn}function yLr(e){typeof e.ease=="string"&&bLr(e.ease)&&(e.ease=wkn[e.ease])}const bXe=10;class vLr extends _kn{constructor(t){yLr(t),dkn(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:a,onComplete:s,element:o,...u}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const h=new wSe({...u,autoplay:!1}),f=Math.max(bXe,Vy.now()-this.startTime),p=gA(0,bXe,f-bXe),m=h.sample(f).value,{name:b}=this.options;o&&b&&gkn(o,b,m),r.setWithVelocity(h.sample(Math.max(0,f-p)).value,m,p),h.stop()}}const _dn=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(V3.test(e)||e==="0")&&!e.startsWith("url("));function _Lr(e){const t=e[0];if(e.length===1)return!0;for(let r=0;rObject.hasOwnProperty.call(Element.prototype,"animate"));function CLr(e){var b;const{motionValue:t,name:r,repeatDelay:a,repeatType:s,damping:o,type:u,keyframes:h}=e;if(!(((b=t==null?void 0:t.owner)==null?void 0:b.current)instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:m}=t.owner.getProps();return TLr()&&r&&(Ekn.has(r)||SLr.has(r)&&xLr(h))&&(r!=="transform"||!m)&&!p&&!a&&s!=="mirror"&&o!==0&&u!=="inertia"}const ALr=40;class kLr extends Rdt{constructor({autoplay:t=!0,delay:r=0,type:a="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:u="loop",keyframes:h,name:f,motionValue:p,element:m,...b}){var S;super(),this.stop=()=>{var C,A;this._animation&&(this._animation.stop(),(C=this.stopTimeline)==null||C.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=Vy.now();const _={autoplay:t,delay:r,type:a,repeat:s,repeatDelay:o,repeatType:u,name:f,motionValue:p,element:m,...b},w=(m==null?void 0:m.KeyframeResolver)||Idt;this.keyframeResolver=new w(h,(C,A,k)=>this.onKeyframesResolved(C,A,_,!k),f,p,m),(S=this.keyframeResolver)==null||S.scheduleResolve()}onKeyframesResolved(t,r,a,s){var k,I;this.keyframeResolver=void 0;const{name:o,type:u,velocity:h,delay:f,isHandoff:p,onUpdate:m}=a;this.resolvedAt=Vy.now();let b=!0;wLr(t,o,u,h)||(b=!1,(FO.instantAnimations||!f)&&(m==null||m(F5e(t,a,r))),t[0]=t[t.length-1],est(a),a.repeat=0);const w={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>ALr?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...a,keyframes:t},S=b&&!p&&CLr(w),C=(I=(k=w.motionValue)==null?void 0:k.owner)==null?void 0:I.current;let A;if(S)try{A=new vLr({...w,element:C})}catch{A=new wSe(w)}else A=new wSe(w);A.finished.then(()=>{this.notifyFinished()}).catch(cS),this.pendingTimeline&&(this.stopTimeline=A.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=A}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),hLr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function xkn(e,t,r,a=0,s=1){const o=Array.from(e).sort((p,m)=>p.sortNodePosition(m)).indexOf(t),u=e.size,h=(u-1)*a;return typeof r=="function"?r(o,u):s===1?o*a:h-o*a}const RLr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ILr(e){const t=RLr.exec(e);if(!t)return[,];const[,r,a,s]=t;return[`--${r??a}`,s]}function Skn(e,t,r=1){const[a,s]=ILr(e);if(!a)return;const o=window.getComputedStyle(t).getPropertyValue(a);if(o){const u=o.trim();return UAn(u)?parseFloat(u):u}return Sdt(s)?Skn(s,t,r+1):s}const NLr={type:"spring",stiffness:500,damping:25,restSpeed:10},OLr=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),LLr={type:"keyframes",duration:.8},DLr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},MLr=(e,{keyframes:t})=>t.length>2?LLr:vW.has(e)?e.startsWith("scale")?OLr(t[1]):NLr:DLr;function Tkn(e,t){if(e!=null&&e.inherit&&t){const{inherit:r,...a}=e;return{...t,...a}}return e}function Ndt(e,t){const r=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return r!==e?Tkn(r,e):r}const PLr=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function BLr(e){for(const t in e)if(!PLr.has(t))return!0;return!1}const Odt=(e,t,r,a={},s,o)=>u=>{const h=Ndt(a,e)||{},f=h.delay||a.delay||0;let{elapsed:p=0}=a;p=p-Dw(f);const m={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...h,delay:-p,onUpdate:_=>{t.set(_),h.onUpdate&&h.onUpdate(_)},onComplete:()=>{u(),h.onComplete&&h.onComplete()},name:e,motionValue:t,element:o?void 0:s};BLr(h)||Object.assign(m,MLr(e,m)),m.duration&&(m.duration=Dw(m.duration)),m.repeatDelay&&(m.repeatDelay=Dw(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let b=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(est(m),m.delay===0&&(b=!0)),(FO.instantAnimations||FO.skipAnimations||s!=null&&s.shouldSkipAnimations)&&(b=!0,est(m),m.delay=0),m.allowFlatten=!h.type&&!h.ease,b&&!o&&t.get()!==void 0){const _=F5e(m.keyframes,h);if(_!==void 0){Dh.update(()=>{m.onUpdate(_),m.onComplete()});return}}return h.isSync?new wSe(m):new kLr(m)};function wdn(e){const t=[{},{}];return e==null||e.values.forEach((r,a)=>{t[0][a]=r.get(),t[1][a]=r.getVelocity()}),t}function Ldt(e,t,r,a){if(typeof t=="function"){const[s,o]=wdn(a);t=t(r!==void 0?r:e.custom,s,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,o]=wdn(a);t=t(r!==void 0?r:e.custom,s,o)}return t}function dF(e,t,r){const a=e.getProps();return Ldt(a,t,r!==void 0?r:a.custom,e)}const Ckn=new Set(["width","height","top","left","right","bottom",...yW]),Edn=30,FLr=e=>!isNaN(parseFloat(e));class $Lr{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{var o;const s=Vy.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=Vy.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=FLr(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new wdt);const a=this.events[t].add(r);return t==="change"?()=>{a(),Dh.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,a){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-a}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Vy.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Edn)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,Edn);return HAn(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,r;(t=this.dependents)==null||t.clear(),(r=this.events.destroy)==null||r.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function mj(e,t){return new $Lr(e,t)}const tst=e=>Array.isArray(e);function ULr(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,mj(r))}function zLr(e){return tst(e)?e[e.length-1]||0:e}function GLr(e,t){const r=dF(e,t);let{transitionEnd:a={},transition:s={},...o}=r||{};o={...o,...a};for(const u in o){const h=zLr(o[u]);ULr(e,u,h)}}const Em=e=>!!(e&&e.getVelocity);function qLr(e){return!!(Em(e)&&e.add)}function nst(e,t){const r=e.getValue("willChange");if(qLr(r))return r.add(t);if(!r&&FO.WillChange){const a=new FO.WillChange("auto");e.addValue("willChange",a),a.add(t)}}function Ddt(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const HLr="framerAppearId",Akn="data-"+Ddt(HLr);function kkn(e){return e.props[Akn]}function VLr({protectedKeys:e,needsAnimating:t},r){const a=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,a}function Rkn(e,t,{delay:r=0,transitionOverride:a,type:s}={}){let{transition:o,transitionEnd:u,...h}=t;const f=e.getDefaultTransition();o=o?Tkn(o,f):f;const p=o==null?void 0:o.reduceMotion;a&&(o=a);const m=[],b=s&&e.animationState&&e.animationState.getState()[s];for(const _ in h){const w=e.getValue(_,e.latestValues[_]??null),S=h[_];if(S===void 0||b&&VLr(b,_))continue;const C={delay:r,...Ndt(o||{},_)},A=w.get();if(A!==void 0&&!w.isAnimating()&&!Array.isArray(S)&&S===A&&!C.velocity){Dh.update(()=>w.set(S));continue}let k=!1;if(window.MotionHandoffAnimation){const L=kkn(e);if(L){const P=window.MotionHandoffAnimation(L,_,Dh);P!==null&&(C.startTime=P,k=!0)}}nst(e,_);const I=p??e.shouldReduceMotion;w.start(Odt(_,w,S,I&&Ckn.has(_)?{type:!1}:C,e,k));const N=w.animation;N&&m.push(N)}if(u){const _=()=>Dh.update(()=>{u&&GLr(e,u)});m.length?Promise.all(m).then(_):_()}return m}function rst(e,t,r={}){var f;const a=dF(e,t,r.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=a||{};r.transitionOverride&&(s=r.transitionOverride);const o=a?()=>Promise.all(Rkn(e,a,r)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(p=0)=>{const{delayChildren:m=0,staggerChildren:b,staggerDirection:_}=s;return YLr(e,t,p,m,b,_,r)}:()=>Promise.resolve(),{when:h}=s;if(h){const[p,m]=h==="beforeChildren"?[o,u]:[u,o];return p().then(()=>m())}else return Promise.all([o(),u(r.delay)])}function YLr(e,t,r=0,a=0,s=0,o=1,u){const h=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),h.push(rst(f,t,{...u,delay:r+(typeof a=="function"?0:a)+xkn(e.variantChildren,f,a,s,o)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(h)}function jLr(e,t,r={}){e.notify("AnimationStart",t);let a;if(Array.isArray(t)){const s=t.map(o=>rst(e,o,r));a=Promise.all(s)}else if(typeof t=="string")a=rst(e,t,r);else{const s=typeof t=="function"?dF(e,t,r.custom):t;a=Promise.all(Rkn(e,s,r))}return a.then(()=>{e.notify("AnimationComplete",t)})}const WLr={test:e=>e==="auto",parse:e=>e},Ikn=e=>t=>t.test(e),Nkn=[bW,ja,rA,GN,_9r,v9r,WLr],xdn=e=>Nkn.find(Ikn(e));function KLr(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||GAn(e):!0}const XLr=new Set(["brightness","contrast","saturate","opacity"]);function QLr(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[a]=r.match(Tdt)||[];if(!a)return e;const s=r.replace(a,"");let o=XLr.has(t)?1:0;return a!==r&&(o*=100),t+"("+o+s+")"}const ZLr=/\b([a-z-]*)\(.*?\)/gu,ist={...V3,getAnimatableNone:e=>{const t=e.match(ZLr);return t?t.map(QLr).join(" "):e}},ast={...V3,getAnimatableNone:e=>{const t=V3.parse(e);return V3.createTransformer(e)(t.map(a=>typeof a=="number"?0:typeof a=="object"?{...a,alpha:1}:a))}},Sdn={...bW,transform:Math.round},JLr={rotate:GN,rotateX:GN,rotateY:GN,rotateZ:GN,scale:s_e,scaleX:s_e,scaleY:s_e,scaleZ:s_e,skew:GN,skewX:GN,skewY:GN,distance:ja,translateX:ja,translateY:ja,translateZ:ja,x:ja,y:ja,z:ja,perspective:ja,transformPerspective:ja,opacity:Yse,originX:udn,originY:udn,originZ:ja},Mdt={borderWidth:ja,borderTopWidth:ja,borderRightWidth:ja,borderBottomWidth:ja,borderLeftWidth:ja,borderRadius:ja,borderTopLeftRadius:ja,borderTopRightRadius:ja,borderBottomRightRadius:ja,borderBottomLeftRadius:ja,width:ja,maxWidth:ja,height:ja,maxHeight:ja,top:ja,right:ja,bottom:ja,left:ja,inset:ja,insetBlock:ja,insetBlockStart:ja,insetBlockEnd:ja,insetInline:ja,insetInlineStart:ja,insetInlineEnd:ja,padding:ja,paddingTop:ja,paddingRight:ja,paddingBottom:ja,paddingLeft:ja,paddingBlock:ja,paddingBlockStart:ja,paddingBlockEnd:ja,paddingInline:ja,paddingInlineStart:ja,paddingInlineEnd:ja,margin:ja,marginTop:ja,marginRight:ja,marginBottom:ja,marginLeft:ja,marginBlock:ja,marginBlockStart:ja,marginBlockEnd:ja,marginInline:ja,marginInlineStart:ja,marginInlineEnd:ja,fontSize:ja,backgroundPositionX:ja,backgroundPositionY:ja,...JLr,zIndex:Sdn,fillOpacity:Yse,strokeOpacity:Yse,numOctaves:Sdn},eDr={...Mdt,color:E1,backgroundColor:E1,outlineColor:E1,fill:E1,stroke:E1,borderColor:E1,borderTopColor:E1,borderRightColor:E1,borderBottomColor:E1,borderLeftColor:E1,filter:ist,WebkitFilter:ist,mask:ast,WebkitMask:ast},Okn=e=>eDr[e],tDr=new Set([ist,ast]);function Lkn(e,t){let r=Okn(e);return tDr.has(r)||(r=V3),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const nDr=new Set(["auto","none","0"]);function rDr(e,t,r){let a=0,s;for(;a{t.getValue(f).set(p)}),this.resolveNoneKeyframes()}}function Dkn(e,t,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let a=document;const s=(r==null?void 0:r[e])??a.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(a=>a!=null)}const Mkn=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function MEe(e){return zAn(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Pdt}=tkn(queueMicrotask,!1),w3={x:!1,y:!1};function Pkn(){return w3.x||w3.y}function aDr(e){return e==="x"||e==="y"?w3[e]?null:(w3[e]=!0,()=>{w3[e]=!1}):w3.x||w3.y?null:(w3.x=w3.y=!0,()=>{w3.x=w3.y=!1})}function Bkn(e,t){const r=Dkn(e),a=new AbortController,s={passive:!0,...t,signal:a.signal};return[r,s,()=>a.abort()]}function sDr(e){return!(e.pointerType==="touch"||Pkn())}function oDr(e,t,r={}){const[a,s,o]=Bkn(e,r);return a.forEach(u=>{let h=!1,f=!1,p;const m=()=>{u.removeEventListener("pointerleave",S)},b=A=>{p&&(p(A),p=void 0),m()},_=A=>{h=!1,window.removeEventListener("pointerup",_),window.removeEventListener("pointercancel",_),f&&(f=!1,b(A))},w=()=>{h=!0,window.addEventListener("pointerup",_,s),window.addEventListener("pointercancel",_,s)},S=A=>{if(A.pointerType!=="touch"){if(h){f=!0;return}b(A)}},C=A=>{if(!sDr(A))return;f=!1;const k=t(u,A);typeof k=="function"&&(p=k,u.addEventListener("pointerleave",S,s))};u.addEventListener("pointerenter",C,s),u.addEventListener("pointerdown",w,s)}),o}const Fkn=(e,t)=>t?e===t?!0:Fkn(e,t.parentElement):!1,Bdt=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,lDr=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function cDr(e){return lDr.has(e.tagName)||e.isContentEditable===!0}const uDr=new Set(["INPUT","SELECT","TEXTAREA"]);function hDr(e){return uDr.has(e.tagName)||e.isContentEditable===!0}const PEe=new WeakSet;function Tdn(e){return t=>{t.key==="Enter"&&e(t)}}function yXe(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const dDr=(e,t)=>{const r=e.currentTarget;if(!r)return;const a=Tdn(()=>{if(PEe.has(r))return;yXe(r,"down");const s=Tdn(()=>{yXe(r,"up")}),o=()=>yXe(r,"cancel");r.addEventListener("keyup",s,t),r.addEventListener("blur",o,t)});r.addEventListener("keydown",a,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",a),t)};function Cdn(e){return Bdt(e)&&!Pkn()}const Adn=new WeakSet;function fDr(e,t,r={}){const[a,s,o]=Bkn(e,r),u=h=>{const f=h.currentTarget;if(!Cdn(h)||Adn.has(h))return;PEe.add(f),r.stopPropagation&&Adn.add(h);const p=t(f,h),m=(w,S)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",_),PEe.has(f)&&PEe.delete(f),Cdn(w)&&typeof p=="function"&&p(w,{success:S})},b=w=>{m(w,f===window||f===document||r.useGlobalTarget||Fkn(f,w.target))},_=w=>{m(w,!1)};window.addEventListener("pointerup",b,s),window.addEventListener("pointercancel",_,s)};return a.forEach(h=>{(r.useGlobalTarget?window:h).addEventListener("pointerdown",u,s),MEe(h)&&(h.addEventListener("focus",p=>dDr(p,s)),!cDr(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),o}function Fdt(e){return zAn(e)&&"ownerSVGElement"in e}const BEe=new WeakMap;let qN;const $kn=(e,t,r)=>(a,s)=>s&&s[0]?s[0][e+"Size"]:Fdt(a)&&"getBBox"in a?a.getBBox()[t]:a[r],pDr=$kn("inline","width","offsetWidth"),gDr=$kn("block","height","offsetHeight");function mDr({target:e,borderBoxSize:t}){var r;(r=BEe.get(e))==null||r.forEach(a=>{a(e,{get width(){return pDr(e,t)},get height(){return gDr(e,t)}})})}function bDr(e){e.forEach(mDr)}function yDr(){typeof ResizeObserver>"u"||(qN=new ResizeObserver(bDr))}function vDr(e,t){qN||yDr();const r=Dkn(e);return r.forEach(a=>{let s=BEe.get(a);s||(s=new Set,BEe.set(a,s)),s.add(t),qN==null||qN.observe(a)}),()=>{r.forEach(a=>{const s=BEe.get(a);s==null||s.delete(t),s!=null&&s.size||qN==null||qN.unobserve(a)})}}const FEe=new Set;let TV;function _Dr(){TV=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};FEe.forEach(t=>t(e))},window.addEventListener("resize",TV)}function wDr(e){return FEe.add(e),TV||_Dr(),()=>{FEe.delete(e),!FEe.size&&typeof TV=="function"&&(window.removeEventListener("resize",TV),TV=void 0)}}function kdn(e,t){return typeof e=="function"?wDr(e):vDr(e,t)}function EDr(e){return Fdt(e)&&e.tagName==="svg"}const xDr=[...Nkn,E1,V3],SDr=e=>xDr.find(Ikn(e)),Rdn=()=>({translate:0,scale:1,origin:0,originPoint:0}),CV=()=>({x:Rdn(),y:Rdn()}),Idn=()=>({min:0,max:0}),yp=()=>({x:Idn(),y:Idn()}),TDr=new WeakMap;function $5e(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function jse(e){return typeof e=="string"||Array.isArray(e)}const $dt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Udt=["initial",...$dt];function U5e(e){return $5e(e.animate)||Udt.some(t=>jse(e[t]))}function Ukn(e){return!!(U5e(e)||e.variants)}function CDr(e,t,r){for(const a in t){const s=t[a],o=r[a];if(Em(s))e.addValue(a,s);else if(Em(o))e.addValue(a,mj(s,{owner:e}));else if(o!==s)if(e.hasValue(a)){const u=e.getValue(a);u.liveStyle===!0?u.jump(s):u.hasAnimated||u.set(s)}else{const u=e.getStaticValue(a);e.addValue(a,mj(u!==void 0?u:s,{owner:e}))}}for(const a in r)t[a]===void 0&&e.removeValue(a);return t}const sst={current:null},zkn={current:!1},ADr=typeof window<"u";function kDr(){if(zkn.current=!0,!!ADr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sst.current=e.matches;e.addEventListener("change",t),t()}else sst.current=!1}const Ndn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ESe={};function Gkn(e){ESe=e}function RDr(){return ESe}class IDr{scrapeMotionValuesFromProps(t,r,a){return{}}constructor({parent:t,props:r,presenceContext:a,reducedMotionConfig:s,skipAnimations:o,blockInitialAnimation:u,visualState:h},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Idt,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const w=Vy.now();this.renderScheduledAtthis.bindToMotionValue(o,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(zkn.current||kDr(),this.shouldReduceMotion=sst.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(a=this.parent)==null||a.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),$O(this.notifyUpdate),$O(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const a=this.features[r];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),r.accelerate&&Ekn.has(t)&&this.current instanceof HTMLElement){const{factory:u,keyframes:h,times:f,ease:p,duration:m}=r.accelerate,b=new _kn({element:this.current,name:t,keyframes:h,times:f,ease:p,duration:Dw(m)}),_=u(b);this.valueSubscriptions.set(t,()=>{_(),b.cancel()});return}const a=vW.has(t);a&&this.onBindTransform&&this.onBindTransform();const s=r.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Dh.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{s(),o&&o(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ESe){const r=ESe[t];if(!r)continue;const{isEnabled:a,Feature:s}=r;if(!this.features[t]&&s&&a(this.props)&&(this.features[t]=new s(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):yp()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let a=0;ar.variantChildren.delete(t)}addValue(t,r){const a=this.values.get(t);r!==a&&(a&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let a=this.values.get(t);return a===void 0&&r!==void 0&&(a=mj(r===null?void 0:r,{owner:this}),this.addValue(t,a)),a}readValue(t,r){let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(UAn(a)||GAn(a))?a=parseFloat(a):!SDr(a)&&V3.test(r)&&(a=Lkn(t,r)),this.setBaseTarget(t,Em(a)?a.get():a)),Em(a)?a.get():a}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var o;const{initial:r}=this.props;let a;if(typeof r=="string"||typeof r=="object"){const u=Ldt(this.props,r,(o=this.presenceContext)==null?void 0:o.custom);u&&(a=u[t])}if(r&&a!==void 0)return a;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Em(s)?s:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new wdt),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){Pdt.render(this.render)}}class qkn extends IDr{constructor(){super(...arguments),this.KeyframeResolver=iDr}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){const a=t.style;return a?a[r]:void 0}removeValueFromRenderState(t,{vars:r,style:a}){delete r[t],delete a[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Em(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class E9{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Hkn({top:e,left:t,right:r,bottom:a}){return{x:{min:t,max:r},y:{min:e,max:a}}}function NDr({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ODr(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),a=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:a.y,right:a.x}}function vXe(e){return e===void 0||e===1}function ost({scale:e,scaleX:t,scaleY:r}){return!vXe(e)||!vXe(t)||!vXe(r)}function TB(e){return ost(e)||Vkn(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Vkn(e){return Odn(e.x)||Odn(e.y)}function Odn(e){return e&&e!=="0%"}function xSe(e,t,r){const a=e-r,s=t*a;return r+s}function Ldn(e,t,r,a,s){return s!==void 0&&(e=xSe(e,s,a)),xSe(e,r,a)+t}function lst(e,t=0,r=1,a,s){e.min=Ldn(e.min,t,r,a,s),e.max=Ldn(e.max,t,r,a,s)}function Ykn(e,{x:t,y:r}){lst(e.x,t.translate,t.scale,t.originPoint),lst(e.y,r.translate,r.scale,r.originPoint)}const Ddn=.999999999999,Mdn=1.0000000000001;function LDr(e,t,r,a=!1){var h;const s=r.length;if(!s)return;t.x=t.y=1;let o,u;for(let f=0;fDdn&&(t.x=1),t.yDdn&&(t.y=1)}function LC(e,t){e.min+=t,e.max+=t}function Pdn(e,t,r,a,s=.5){const o=vd(e.min,e.max,s);lst(e,t,r,o,a)}function Bdn(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function $Ee(e,t,r){const a=r??e;Pdn(e.x,Bdn(t.x,a.x),t.scaleX,t.scale,t.originX),Pdn(e.y,Bdn(t.y,a.y),t.scaleY,t.scale,t.originY)}function jkn(e,t){return Hkn(ODr(e.getBoundingClientRect(),t))}function DDr(e,t,r){const a=jkn(e,r),{scroll:s}=t;return s&&(LC(a.x,s.offset.x),LC(a.y,s.offset.y)),a}const MDr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},PDr=yW.length;function BDr(e,t,r){let a="",s=!0;for(let o=0;o{if(!t.target)return e;if(typeof e=="string")if(ja.test(e))e=parseFloat(e);else return e;const r=Fdn(e,t.target.x),a=Fdn(e,t.target.y);return`${r}% ${a}%`}},FDr={correct:(e,{treeScale:t,projectionDelta:r})=>{const a=e,s=V3.parse(e);if(s.length>5)return a;const o=V3.createTransformer(e),u=typeof s[0]!="number"?1:0,h=r.x.scale*t.x,f=r.y.scale*t.y;s[0+u]/=h,s[1+u]/=f;const p=vd(h,f,.5);return typeof s[2+u]=="number"&&(s[2+u]/=p),typeof s[3+u]=="number"&&(s[3+u]/=p),o(s)}},cst={borderRadius:{..._re,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_re,borderTopRightRadius:_re,borderBottomLeftRadius:_re,borderBottomRightRadius:_re,boxShadow:FDr};function Kkn(e,{layout:t,layoutId:r}){return vW.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!cst[e]||e==="opacity")}function Gdt(e,t,r){var u;const a=e.style,s=t==null?void 0:t.style,o={};if(!a)return o;for(const h in a)(Em(a[h])||s&&Em(s[h])||Kkn(h,e)||((u=r==null?void 0:r.getValue(h))==null?void 0:u.liveStyle)!==void 0)&&(o[h]=a[h]);return o}function $Dr(e){return window.getComputedStyle(e)}class UDr extends qkn{constructor(){super(...arguments),this.type="html",this.renderInstance=Wkn}readValueFromInstance(t,r){var a;if(vW.has(r))return(a=this.projection)!=null&&a.isProjecting?Kat(r):sLr(t,r);{const s=$Dr(t),o=(rkn(r)?s.getPropertyValue(r):s[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return jkn(t,r)}build(t,r,a){zdt(t,r,a.transformTemplate)}scrapeMotionValuesFromProps(t,r,a){return Gdt(t,r,a)}}const zDr={offset:"stroke-dashoffset",array:"stroke-dasharray"},GDr={offset:"strokeDashoffset",array:"strokeDasharray"};function qDr(e,t,r=1,a=0,s=!0){e.pathLength=1;const o=s?zDr:GDr;e[o.offset]=`${-a}`,e[o.array]=`${t} ${r}`}const HDr=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Xkn(e,{attrX:t,attrY:r,attrScale:a,pathLength:s,pathSpacing:o=1,pathOffset:u=0,...h},f,p,m){if(zdt(e,h,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:b,style:_}=e;b.transform&&(_.transform=b.transform,delete b.transform),(_.transform||b.transformOrigin)&&(_.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),_.transform&&(_.transformBox=(m==null?void 0:m.transformBox)??"fill-box",delete b.transformBox);for(const w of HDr)b[w]!==void 0&&(_[w]=b[w],delete b[w]);t!==void 0&&(b.x=t),r!==void 0&&(b.y=r),a!==void 0&&(b.scale=a),s!==void 0&&qDr(b,s,o,u,!1)}const Qkn=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Zkn=e=>typeof e=="string"&&e.toLowerCase()==="svg";function VDr(e,t,r,a){Wkn(e,t,void 0,a);for(const s in t.attrs)e.setAttribute(Qkn.has(s)?s:Ddt(s),t.attrs[s])}function Jkn(e,t,r){const a=Gdt(e,t,r);for(const s in e)if(Em(e[s])||Em(t[s])){const o=yW.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;a[o]=e[s]}return a}class YDr extends qkn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=yp}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(vW.has(r)){const a=Okn(r);return a&&a.default||0}return r=Qkn.has(r)?r:Ddt(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,a){return Jkn(t,r,a)}build(t,r,a){Xkn(t,r,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(t,r,a,s){VDr(t,r,a,s)}mount(t){this.isSVGTag=Zkn(t.tagName),super.mount(t)}}const jDr=Udt.length;function e6n(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?e6n(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;rPromise.all(t.map(({animation:r,options:a})=>jLr(e,r,a)))}function QDr(e){let t=XDr(e),r=$dn(),a=!0,s=!1;const o=p=>(m,b)=>{var w;const _=dF(e,b,p==="exit"?(w=e.presenceContext)==null?void 0:w.custom:void 0);if(_){const{transition:S,transitionEnd:C,...A}=_;m={...m,...A,...C}}return m};function u(p){t=p(e)}function h(p){const{props:m}=e,b=e6n(e.parent)||{},_=[],w=new Set;let S={},C=1/0;for(let k=0;kC&&P,G=!1;const B=Array.isArray(L)?L:[L];let Z=B.reduce(o(I),{});M===!1&&(Z={});const{prevResolvedValues:z={}}=N,Y={...z,...Z},W=j=>{$=!0,w.has(j)&&(G=!0,w.delete(j)),N.needsAnimating[j]=!0;const ee=e.getValue(j);ee&&(ee.liveStyle=!1)};for(const j in Y){const ee=Z[j],te=z[j];if(S.hasOwnProperty(j))continue;let ne=!1;tst(ee)&&tst(te)?ne=!t6n(ee,te):ne=ee!==te,ne?ee!=null?W(j):w.add(j):ee!==void 0&&w.has(j)?W(j):N.protectedKeys[j]=!0}N.prevProp=L,N.prevResolvedValues=Z,N.isActive&&(S={...S,...Z}),(a||s)&&e.blockInitialAnimation&&($=!1);const Q=F&&U;$&&(!Q||G)&&_.push(...B.map(j=>{const ee={type:I};if(typeof j=="string"&&(a||s)&&!Q&&e.manuallyAnimateOnMount&&e.parent){const{parent:te}=e,ne=dF(te,j);if(te.enteringChildren&&ne){const{delayChildren:se}=ne.transition||{};ee.delay=xkn(te.enteringChildren,e,se)}}return{animation:j,options:ee}}))}if(w.size){const k={};if(typeof m.initial!="boolean"){const I=dF(e,Array.isArray(m.initial)?m.initial[0]:m.initial);I&&I.transition&&(k.transition=I.transition)}w.forEach(I=>{const N=e.getBaseTarget(I),L=e.getValue(I);L&&(L.liveStyle=!0),k[I]=N??null}),_.push({animation:k})}let A=!!_.length;return a&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(A=!1),a=!1,s=!1,A?t(_):Promise.resolve()}function f(p,m){var _;if(r[p].isActive===m)return Promise.resolve();(_=e.variantChildren)==null||_.forEach(w=>{var S;return(S=w.animationState)==null?void 0:S.setActive(p,m)}),r[p].isActive=m;const b=h(p);for(const w in r)r[w].protectedKeys={};return b}return{animateChanges:h,setActive:f,setAnimateFunction:u,getState:()=>r,reset:()=>{r=$dn(),s=!0}}}function ZDr(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!t6n(t,e):!1}function uB(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $dn(){return{animate:uB(!0),whileInView:uB(),whileHover:uB(),whileTap:uB(),whileDrag:uB(),whileFocus:uB(),exit:uB()}}function ust(e,t){e.min=t.min,e.max=t.max}function b3(e,t){ust(e.x,t.x),ust(e.y,t.y)}function Udn(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const n6n=1e-4,JDr=1-n6n,eMr=1+n6n,r6n=.01,tMr=0-r6n,nMr=0+r6n;function Yy(e){return e.max-e.min}function rMr(e,t,r){return Math.abs(e-t)<=r}function zdn(e,t,r,a=.5){e.origin=a,e.originPoint=vd(t.min,t.max,e.origin),e.scale=Yy(r)/Yy(t),e.translate=vd(r.min,r.max,e.origin)-e.originPoint,(e.scale>=JDr&&e.scale<=eMr||isNaN(e.scale))&&(e.scale=1),(e.translate>=tMr&&e.translate<=nMr||isNaN(e.translate))&&(e.translate=0)}function Wae(e,t,r,a){zdn(e.x,t.x,r.x,a?a.originX:void 0),zdn(e.y,t.y,r.y,a?a.originY:void 0)}function Gdn(e,t,r,a=0){const s=a?vd(r.min,r.max,a):r.min;e.min=s+t.min,e.max=e.min+Yy(t)}function iMr(e,t,r,a){Gdn(e.x,t.x,r.x,a==null?void 0:a.x),Gdn(e.y,t.y,r.y,a==null?void 0:a.y)}function qdn(e,t,r,a=0){const s=a?vd(r.min,r.max,a):r.min;e.min=t.min-s,e.max=e.min+Yy(t)}function SSe(e,t,r,a){qdn(e.x,t.x,r.x,a==null?void 0:a.x),qdn(e.y,t.y,r.y,a==null?void 0:a.y)}function Hdn(e,t,r,a,s){return e-=t,e=xSe(e,1/r,a),s!==void 0&&(e=xSe(e,1/s,a)),e}function aMr(e,t=0,r=1,a=.5,s,o=e,u=e){if(rA.test(t)&&(t=parseFloat(t),t=vd(u.min,u.max,t/100)-u.min),typeof t!="number")return;let h=vd(o.min,o.max,a);e===o&&(h-=t),e.min=Hdn(e.min,t,r,h,s),e.max=Hdn(e.max,t,r,h,s)}function Vdn(e,t,[r,a,s],o,u){aMr(e,t[r],t[a],t[s],t.scale,o,u)}const sMr=["x","scaleX","originX"],oMr=["y","scaleY","originY"];function Ydn(e,t,r,a){Vdn(e.x,t,sMr,r?r.x:void 0,a?a.x:void 0),Vdn(e.y,t,oMr,r?r.y:void 0,a?a.y:void 0)}function jdn(e){return e.translate===0&&e.scale===1}function i6n(e){return jdn(e.x)&&jdn(e.y)}function Wdn(e,t){return e.min===t.min&&e.max===t.max}function lMr(e,t){return Wdn(e.x,t.x)&&Wdn(e.y,t.y)}function Kdn(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function a6n(e,t){return Kdn(e.x,t.x)&&Kdn(e.y,t.y)}function Xdn(e){return Yy(e.x)/Yy(e.y)}function Qdn(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function SC(e){return[e("x"),e("y")]}function cMr(e,t,r){let a="";const s=e.x.translate/t.x,o=e.y.translate/t.y,u=(r==null?void 0:r.z)||0;if((s||o||u)&&(a=`translate3d(${s}px, ${o}px, ${u}px) `),(t.x!==1||t.y!==1)&&(a+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:p,rotate:m,rotateX:b,rotateY:_,skewX:w,skewY:S}=r;p&&(a=`perspective(${p}px) ${a}`),m&&(a+=`rotate(${m}deg) `),b&&(a+=`rotateX(${b}deg) `),_&&(a+=`rotateY(${_}deg) `),w&&(a+=`skewX(${w}deg) `),S&&(a+=`skewY(${S}deg) `)}const h=e.x.scale*t.x,f=e.y.scale*t.y;return(h!==1||f!==1)&&(a+=`scale(${h}, ${f})`),a||"none"}const s6n=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],uMr=s6n.length,Zdn=e=>typeof e=="string"?parseFloat(e):e,Jdn=e=>typeof e=="number"||ja.test(e);function hMr(e,t,r,a,s,o){s?(e.opacity=vd(0,r.opacity??1,dMr(a)),e.opacityExit=vd(t.opacity??1,0,fMr(a))):o&&(e.opacity=vd(t.opacity??1,r.opacity??1,a));for(let u=0;uat?1:r(Vse(e,t,a))}function pMr(e,t,r){const a=Em(e)?e:mj(e);return a.start(Odt("",a,t,r)),a.animation}function Wse(e,t,r,a={passive:!0}){return e.addEventListener(t,r,a),()=>e.removeEventListener(t,r)}const gMr=(e,t)=>e.depth-t.depth;class mMr{constructor(){this.children=[],this.isDirty=!1}add(t){vdt(this.children,t),this.isDirty=!0}remove(t){bSe(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(gMr),this.isDirty=!1,this.children.forEach(t)}}function bMr(e,t){const r=Vy.now(),a=({timestamp:s})=>{const o=s-r;o>=t&&($O(a),e(o-t))};return Dh.setup(a,!0),()=>$O(a)}function UEe(e){return Em(e)?e.get():e}class yMr{constructor(){this.members=[]}add(t){vdt(this.members,t);for(let r=this.members.length-1;r>=0;r--){const a=this.members[r];if(a===t||a===this.lead||a===this.prevLead)continue;const s=a.instance;(!s||s.isConnected===!1)&&!a.snapshot&&(bSe(this.members,a),a.unmount())}t.scheduleRender()}remove(t){if(bSe(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){var r;for(let a=this.members.indexOf(t)-1;a>=0;a--){const s=this.members[a];if(s.isPresent!==!1&&((r=s.instance)==null?void 0:r.isConnected)!==!1)return this.promote(s),!0}return!1}promote(t,r){var s;const a=this.lead;if(t!==a&&(this.prevLead=a,this.lead=t,t.show(),a)){a.updateSnapshot(),t.scheduleRender();const{layoutDependency:o}=a.options,{layoutDependency:u}=t.options;(o===void 0||o!==u)&&(t.resumeFrom=a,r&&(a.preserveOpacity=!0),a.snapshot&&(t.snapshot=a.snapshot,t.snapshot.latestValues=a.animationValues||a.latestValues),(s=t.root)!=null&&s.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var r,a,s,o,u;(a=(r=t.options).onExitComplete)==null||a.call(r),(u=(s=t.resumingFrom)==null?void 0:(o=s.options).onExitComplete)==null||u.call(o)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const zEe={hasAnimatedSinceResize:!0,hasEverUpdated:!1},_Xe=["","X","Y","Z"],vMr=1e3;let _Mr=0;function wXe(e,t,r,a){const{latestValues:s}=t;s[e]&&(r[e]=s[e],t.setStaticValue(e,0),a&&(a[e]=0))}function l6n(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=kkn(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:s,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Dh,!(s||o))}const{parent:a}=e;a&&!a.hasCheckedOptimisedAppear&&l6n(a)}function c6n({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:a,resetTransform:s}){return class{constructor(u={},h=t==null?void 0:t()){this.id=_Mr++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(xMr),this.nodes.forEach(RMr),this.nodes.forEach(IMr),this.nodes.forEach(SMr)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let f=0;fthis.root.updateBlockedByResize=!1;Dh.read(()=>{b=window.innerWidth}),e(u,()=>{const w=window.innerWidth;w!==b&&(b=w,this.root.updateBlockedByResize=!0,m&&m(),m=bMr(_,250),zEe.hasAnimatedSinceResize&&(zEe.hasAnimatedSinceResize=!1,this.nodes.forEach(rfn)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&p&&(h||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:b,hasRelativeLayoutChanged:_,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||p.getDefaultTransition()||MMr,{onLayoutAnimationStart:C,onLayoutAnimationComplete:A}=p.getProps(),k=!this.targetLayout||!a6n(this.targetLayout,w),I=!b&&_;if(this.options.layoutRoot||this.resumeFrom||I||b&&(k||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const N={...Ndt(S,"layout"),onPlay:C,onComplete:A};(p.shouldReduceMotion||this.options.layoutRoot)&&(N.delay=0,N.type=!1),this.startAnimation(N),this.setAnimationOrigin(m,I)}else b||rfn(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),$O(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(NMr),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&l6n(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Yy(this.snapshot.measuredBox.x)&&!Yy(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f{const P=L/1e3;ifn(b.x,u.x,P),ifn(b.y,u.y,P),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(SSe(_,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),LMr(this.relativeTarget,this.relativeTargetOrigin,_,P),N&&lMr(this.relativeTarget,N)&&(this.isProjectionDirty=!1),N||(N=yp()),b3(N,this.relativeTarget)),C&&(this.animationValues=m,hMr(m,p,this.latestValues,P,I,k)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){var h,f,p;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(p=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||p.stop(),this.pendingAnimation&&($O(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Dh.update(()=>{zEe.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=mj(0)),this.motionValue.jump(0,!1),this.currentAnimation=pMr(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),u.onUpdate&&u.onUpdate(m)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(vMr),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:h,target:f,layout:p,latestValues:m}=u;if(!(!h||!f||!p)){if(this!==u&&this.layout&&p&&u6n(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||yp();const b=Yy(this.layout.layoutBox.x);f.x.min=u.target.x.min,f.x.max=f.x.min+b;const _=Yy(this.layout.layoutBox.y);f.y.min=u.target.y.min,f.y.max=f.y.min+_}b3(h,f),$Ee(h,m),Wae(this.projectionDeltaWithTransform,this.layoutCorrected,h,m)}}registerSharedNode(u,h){this.sharedNodes.has(u)||this.sharedNodes.set(u,new yMr),this.sharedNodes.get(u).add(h);const p=h.options.initialPromotionConfig;h.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(h):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var h;const{layoutId:u}=this.options;return u?((h=this.getStack())==null?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:u}=this.options;return u?(h=this.getStack())==null?void 0:h.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:h,preserveFollowOpacity:f}={}){const p=this.getStack();p&&p.promote(this,f),u&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let h=!1;const{latestValues:f}=u;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(h=!0),!h)return;const p={};f.z&&wXe("z",u,p,this.animationValues);for(let m=0;m<_Xe.length;m++)wXe(`rotate${_Xe[m]}`,u,p,this.animationValues),wXe(`skew${_Xe[m]}`,u,p,this.animationValues);u.render();for(const m in p)u.setStaticValue(m,p[m]),this.animationValues&&(this.animationValues[m]=p[m]);u.scheduleRender()}applyProjectionStyles(u,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=UEe(h==null?void 0:h.pointerEvents)||"",u.transform=f?f(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=UEe(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!TB(this.latestValues)&&(u.transform=f?f({},""):"none",this.hasProjected=!1);return}u.visibility="";const m=p.animationValues||p.latestValues;this.applyTransformsToTarget();let b=cMr(this.projectionDeltaWithTransform,this.treeScale,m);f&&(b=f(m,b)),u.transform=b;const{x:_,y:w}=this.projectionDelta;u.transformOrigin=`${_.origin*100}% ${w.origin*100}% 0`,p.animationValues?u.opacity=p===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:u.opacity=p===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const S in cst){if(m[S]===void 0)continue;const{correct:C,applyTo:A,isCSSVariable:k}=cst[S],I=b==="none"?m[S]:C(m[S],p);if(A){const N=A.length;for(let L=0;L{var h;return(h=u.currentAnimation)==null?void 0:h.stop()}),this.root.nodes.forEach(tfn),this.root.sharedNodes.clear()}}}function wMr(e){e.updateLayout()}function EMr(e){var r;const t=((r=e.resumeFrom)==null?void 0:r.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:s}=e.layout,{animationType:o}=e.options,u=t.source!==e.layout.source;if(o==="size")SC(b=>{const _=u?t.measuredBox[b]:t.layoutBox[b],w=Yy(_);_.min=a[b].min,_.max=_.min+w});else if(o==="x"||o==="y"){const b=o==="x"?"y":"x";ust(u?t.measuredBox[b]:t.layoutBox[b],a[b])}else u6n(o,t.layoutBox,a)&&SC(b=>{const _=u?t.measuredBox[b]:t.layoutBox[b],w=Yy(a[b]);_.max=_.min+w,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[b].max=e.relativeTarget[b].min+w)});const h=CV();Wae(h,a,t.layoutBox);const f=CV();u?Wae(f,e.applyTransform(s,!0),t.measuredBox):Wae(f,a,t.layoutBox);const p=!i6n(h);let m=!1;if(!e.resumeFrom){const b=e.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:_,layout:w}=b;if(_&&w){const S=e.options.layoutAnchor||void 0,C=yp();SSe(C,t.layoutBox,_.layoutBox,S);const A=yp();SSe(A,a,w.layoutBox,S),a6n(C,A)||(m=!0),b.options.layoutRoot&&(e.relativeTarget=A,e.relativeTargetOrigin=C,e.relativeParent=b)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:t,delta:f,layoutDelta:h,hasLayoutChanged:p,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function xMr(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function SMr(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function TMr(e){e.clearSnapshot()}function tfn(e){e.clearMeasurements()}function CMr(e){e.isLayoutDirty=!0,e.updateLayout()}function nfn(e){e.isLayoutDirty=!1}function AMr(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function kMr(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rfn(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function RMr(e){e.resolveTargetDelta()}function IMr(e){e.calcProjection()}function NMr(e){e.resetSkewAndRotation()}function OMr(e){e.removeLeadSnapshot()}function ifn(e,t,r){e.translate=vd(t.translate,0,r),e.scale=vd(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function afn(e,t,r,a){e.min=vd(t.min,r.min,a),e.max=vd(t.max,r.max,a)}function LMr(e,t,r,a){afn(e.x,t.x,r.x,a),afn(e.y,t.y,r.y,a)}function DMr(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const MMr={duration:.45,ease:[.4,0,.1,1]},sfn=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ofn=sfn("applewebkit/")&&!sfn("chrome/")?Math.round:cS;function lfn(e){e.min=ofn(e.min),e.max=ofn(e.max)}function PMr(e){lfn(e.x),lfn(e.y)}function u6n(e,t,r){return e==="position"||e==="preserve-aspect"&&!rMr(Xdn(t),Xdn(r),.2)}function BMr(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const FMr=c6n({attachResizeListener:(e,t)=>Wse(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),EXe={current:void 0},h6n=c6n({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!EXe.current){const e=new FMr({});e.mount(window),e.setOptions({layoutScroll:!0}),EXe.current=e}return EXe.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),qdt=ue.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function cfn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function $Mr(...e){return t=>{let r=!1;const a=e.map(s=>{const o=cfn(s,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let s=0;s{const{width:w,height:S,top:C,left:A,right:k,bottom:I}=f.current;if(t||o===!1||!h.current||!w||!S)return;const N=r==="left"?`left: ${A}`:`right: ${k}`,L=a==="bottom"?`bottom: ${I}`:`top: ${C}`;h.current.dataset.motionPopId=u;const P=document.createElement("style");p&&(P.nonce=p);const M=s??document.head;return M.appendChild(P),P.sheet&&P.sheet.insertRule(` [data-motion-pop-id="${u}"] { position: absolute !important; width: ${w}px !important; height: ${S}px !important; ${N}px !important; ${L}px !important; } `),()=>{var F;(F=h.current)==null||F.removeAttribute("data-motion-pop-id"),M.contains(P)&&M.removeChild(P)}},[t]),ct.jsx(zMr,{isPresent:t,childRef:h,sizeRef:f,pop:o,children:o===!1?e:ue.cloneElement(e,{ref:b})})}const qMr=({children:e,initial:t,isPresent:r,onExitComplete:a,custom:s,presenceAffectsLayout:o,mode:u,anchorX:h,anchorY:f,root:p})=>{const m=ydt(HMr),b=ue.useId();let _=!0,w=ue.useMemo(()=>(_=!1,{id:b,initial:t,isPresent:r,custom:s,onExitComplete:S=>{m.set(S,!0);for(const C of m.values())if(!C)return;a&&a()},register:S=>(m.set(S,!1),()=>m.delete(S))}),[r,m,a]);return o&&_&&(w={...w}),ue.useMemo(()=>{m.forEach((S,C)=>m.set(C,!1))},[r]),ue.useEffect(()=>{!r&&!m.size&&a&&a()},[r]),e=ct.jsx(GMr,{pop:u==="popLayout",isPresent:r,anchorX:h,anchorY:f,root:p,children:e}),ct.jsx(B5e.Provider,{value:w,children:e})};function HMr(){return new Map}function d6n(e=!0){const t=ue.useContext(B5e);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:a,register:s}=t,o=ue.useId();ue.useEffect(()=>{if(e)return s(o)},[e]);const u=ue.useCallback(()=>e&&a&&a(o),[o,a,e]);return!r&&a?[!1,u]:[!0]}const o_e=e=>e.key||"";function ufn(e){const t=[];return ue.Children.forEach(e,r=>{ue.isValidElement(r)&&t.push(r)}),t}const W4a=({children:e,custom:t,initial:r=!0,onExitComplete:a,presenceAffectsLayout:s=!0,mode:o="sync",propagate:u=!1,anchorX:h="left",anchorY:f="top",root:p})=>{const[m,b]=d6n(u),_=ue.useMemo(()=>ufn(e),[e]),w=u&&!m?[]:_.map(o_e),S=ue.useRef(!0),C=ue.useRef(_),A=ydt(()=>new Map),k=ue.useRef(new Set),[I,N]=ue.useState(_),[L,P]=ue.useState(_);$An(()=>{S.current=!1,C.current=_;for(let U=0;U{const $=o_e(U),G=u&&!m?!1:_===L||w.includes($),B=()=>{if(k.current.has($))return;if(A.has($))k.current.add($),A.set($,!0);else return;let Z=!0;A.forEach(z=>{z||(Z=!1)}),Z&&(F==null||F(),P(C.current),u&&(b==null||b()),a&&a())};return ct.jsx(qMr,{isPresent:G,initial:!S.current||r?void 0:!1,custom:t,presenceAffectsLayout:s,mode:o,root:p,onExitComplete:G?void 0:B,anchorX:h,anchorY:f,children:U},$)})})},f6n=ue.createContext({strict:!1}),hfn={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let dfn=!1;function VMr(){if(dfn)return;const e={};for(const t in hfn)e[t]={isEnabled:r=>hfn[t].some(a=>!!r[a])};Gkn(e),dfn=!0}function p6n(){return VMr(),RDr()}function YMr(e){const t=p6n();for(const r in e)t[r]={...t[r],...e[r]};Gkn(t)}const jMr=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function TSe(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||jMr.has(e)}let g6n=e=>!TSe(e);function WMr(e){typeof e=="function"&&(g6n=t=>t.startsWith("on")?!TSe(t):e(t))}try{WMr(require("@emotion/is-prop-valid").default)}catch{}function KMr(e,t,r){const a={};for(const s in e)s==="values"&&typeof e.values=="object"||Em(e[s])||(g6n(s)||r===!0&&TSe(s)||!t&&!TSe(s)||e.draggable&&s.startsWith("onDrag"))&&(a[s]=e[s]);return a}const z5e=ue.createContext({});function XMr(e,t){if(U5e(e)){const{initial:r,animate:a}=e;return{initial:r===!1||jse(r)?r:void 0,animate:jse(a)?a:void 0}}return e.inherit!==!1?t:{}}function QMr(e){const{initial:t,animate:r}=XMr(e,ue.useContext(z5e));return ue.useMemo(()=>({initial:t,animate:r}),[ffn(t),ffn(r)])}function ffn(e){return Array.isArray(e)?e.join(" "):e}const Hdt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function m6n(e,t,r){for(const a in t)!Em(t[a])&&!Kkn(a,r)&&(e[a]=t[a])}function ZMr({transformTemplate:e},t){return ue.useMemo(()=>{const r=Hdt();return zdt(r,t,e),Object.assign({},r.vars,r.style)},[t])}function JMr(e,t){const r=e.style||{},a={};return m6n(a,r,e),Object.assign(a,ZMr(e,t)),a}function ePr(e,t){const r={},a=JMr(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=a,r}const b6n=()=>({...Hdt(),attrs:{}});function tPr(e,t,r,a){const s=ue.useMemo(()=>{const o=b6n();return Xkn(o,t,Zkn(a),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};m6n(o,e.style,e),s.style={...o,...s.style}}return s}const nPr=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Vdt(e){return typeof e!="string"||e.includes("-")?!1:!!(nPr.indexOf(e)>-1||/[A-Z]/u.test(e))}function rPr(e,t,r,{latestValues:a},s,o=!1,u){const f=(u??Vdt(e)?tPr:ePr)(t,a,s,e),p=KMr(t,typeof e=="string",o),m=e!==ue.Fragment?{...p,...f,ref:r}:{},{children:b}=t,_=ue.useMemo(()=>Em(b)?b.get():b,[b]);return ue.createElement(e,{...m,children:_})}function iPr({scrapeMotionValuesFromProps:e,createRenderState:t},r,a,s){return{latestValues:aPr(r,a,s,e),renderState:t()}}function aPr(e,t,r,a){const s={},o=a(e,{});for(const _ in o)s[_]=UEe(o[_]);let{initial:u,animate:h}=e;const f=U5e(e),p=Ukn(e);t&&p&&!f&&e.inherit!==!1&&(u===void 0&&(u=t.initial),h===void 0&&(h=t.animate));let m=r?r.initial===!1:!1;m=m||u===!1;const b=m?h:u;if(b&&typeof b!="boolean"&&!$5e(b)){const _=Array.isArray(b)?b:[b];for(let w=0;w<_.length;w++){const S=Ldt(e,_[w]);if(S){const{transitionEnd:C,transition:A,...k}=S;for(const I in k){let N=k[I];if(Array.isArray(N)){const L=m?N.length-1:0;N=N[L]}N!==null&&(s[I]=N)}for(const I in C)s[I]=C[I]}}}return s}const y6n=e=>(t,r)=>{const a=ue.useContext(z5e),s=ue.useContext(B5e),o=()=>iPr(e,t,a,s);return r?o():ydt(o)},sPr=y6n({scrapeMotionValuesFromProps:Gdt,createRenderState:Hdt}),oPr=y6n({scrapeMotionValuesFromProps:Jkn,createRenderState:b6n}),lPr=Symbol.for("motionComponentSymbol");function cPr(e,t,r){const a=ue.useRef(r);ue.useInsertionEffect(()=>{a.current=r});const s=ue.useRef(null);return ue.useCallback(o=>{var h;o&&((h=e.onMount)==null||h.call(e,o));const u=a.current;if(typeof u=="function")if(o){const f=u(o);typeof f=="function"&&(s.current=f)}else s.current?(s.current(),s.current=null):u(o);else u&&(u.current=o);t&&(o?t.mount(o):t.unmount())},[t])}const v6n=ue.createContext({});function oV(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function uPr(e,t,r,a,s,o){var N,L;const{visualElement:u}=ue.useContext(z5e),h=ue.useContext(f6n),f=ue.useContext(B5e),p=ue.useContext(qdt),m=p.reducedMotion,b=p.skipAnimations,_=ue.useRef(null),w=ue.useRef(!1);a=a||h.renderer,!_.current&&a&&(_.current=a(e,{visualState:t,parent:u,props:r,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:m,skipAnimations:b,isSVG:o}),w.current&&_.current&&(_.current.manuallyAnimateOnMount=!0));const S=_.current,C=ue.useContext(v6n);S&&!S.projection&&s&&(S.type==="html"||S.type==="svg")&&hPr(_.current,r,s,C);const A=ue.useRef(!1);ue.useInsertionEffect(()=>{S&&A.current&&S.update(r,f)});const k=r[Akn],I=ue.useRef(!!k&&typeof window<"u"&&!((N=window.MotionHandoffIsComplete)!=null&&N.call(window,k))&&((L=window.MotionHasOptimisedAnimation)==null?void 0:L.call(window,k)));return $An(()=>{w.current=!0,S&&(A.current=!0,window.MotionIsMounted=!0,S.updateFeatures(),S.scheduleRenderMicrotask(),I.current&&S.animationState&&S.animationState.animateChanges())}),ue.useEffect(()=>{S&&(!I.current&&S.animationState&&S.animationState.animateChanges(),I.current&&(queueMicrotask(()=>{var P;(P=window.MotionHandoffMarkAsComplete)==null||P.call(window,k)}),I.current=!1),S.enteringChildren=void 0)}),S}function hPr(e,t,r,a){const{layoutId:s,layout:o,drag:u,dragConstraints:h,layoutScroll:f,layoutRoot:p,layoutAnchor:m,layoutCrossfade:b}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:_6n(e.parent)),e.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!u||h&&oV(h),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:a,crossfade:b,layoutScroll:f,layoutRoot:p,layoutAnchor:m})}function _6n(e){if(e)return e.options.allowProjection!==!1?e.projection:_6n(e.parent)}function xXe(e,{forwardMotionProps:t=!1,type:r}={},a,s){a&&YMr(a);const o=r?r==="svg":Vdt(e),u=o?oPr:sPr;function h(p,m){let b;const _={...ue.useContext(qdt),...p,layoutId:dPr(p)},{isStatic:w}=_,S=QMr(p),C=u(p,w);if(!w&&typeof window<"u"){fPr();const A=pPr(_);b=A.MeasureLayout,S.visualElement=uPr(e,C,_,s,A.ProjectionNode,o)}return ct.jsxs(z5e.Provider,{value:S,children:[b&&S.visualElement?ct.jsx(b,{visualElement:S.visualElement,..._}):null,rPr(e,p,cPr(C,S.visualElement,m),C,w,t,o)]})}h.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const f=ue.forwardRef(h);return f[lPr]=e,f}function dPr({layoutId:e}){const t=ue.useContext(bdt).id;return t&&e!==void 0?t+"-"+e:e}function fPr(e,t){ue.useContext(f6n).strict}function pPr(e){const t=p6n(),{drag:r,layout:a}=t;if(!r&&!a)return{};const s={...r,...a};return{MeasureLayout:r!=null&&r.isEnabled(e)||a!=null&&a.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function gPr(e,t){if(typeof Proxy>"u")return xXe;const r=new Map,a=(o,u)=>xXe(o,u,e,t),s=(o,u)=>a(o,u);return new Proxy(s,{get:(o,u)=>u==="create"?a:(r.has(u)||r.set(u,xXe(u,void 0,e,t)),r.get(u))})}const mPr=(e,t)=>t.isSVG??Vdt(e)?new YDr(t):new UDr(t,{allowProjection:e!==ue.Fragment});class bPr extends E9{constructor(t){super(t),t.animationState||(t.animationState=QDr(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();$5e(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let yPr=0;class vPr extends E9{constructor(){super(...arguments),this.id=yPr++,this.isExitComplete=!1}update(){var o;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===a)return;if(t&&a===!1){if(this.isExitComplete){const{initial:u,custom:h}=this.node.getProps();if(typeof u=="string"){const f=dF(this.node,u,h);if(f){const{transition:p,transitionEnd:m,...b}=f;for(const _ in b)(o=this.node.getValue(_))==null||o.jump(b[_])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const s=this.node.animationState.setActive("exit",!t);r&&!t&&s.then(()=>{this.isExitComplete=!0,r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const _Pr={animation:{Feature:bPr},exit:{Feature:vPr}};function Ple(e){return{point:{x:e.pageX,y:e.pageY}}}const wPr=e=>t=>Bdt(t)&&e(t,Ple(t));function Kae(e,t,r,a){return Wse(e,t,wPr(r),a)}const w6n=({current:e})=>e?e.ownerDocument.defaultView:null,pfn=(e,t)=>Math.abs(e-t);function EPr(e,t){const r=pfn(e.x,t.x),a=pfn(e.y,t.y);return Math.sqrt(r**2+a**2)}const gfn=new Set(["auto","scroll"]);class E6n{constructor(t,r,{transformPagePoint:a,contextWindow:s=window,dragSnapToOrigin:o=!1,distanceThreshold:u=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=w=>{this.handleScroll(w.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=l_e(this.lastRawMoveEventInfo,this.transformPagePoint));const w=SXe(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,C=EPr(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!S&&!C)return;const{point:A}=w,{timestamp:k}=bm;this.history.push({...A,timestamp:k});const{onStart:I,onMove:N}=this.handlers;S||(I&&I(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),N&&N(this.lastMoveEvent,w)},this.handlePointerMove=(w,S)=>{this.lastMoveEvent=w,this.lastRawMoveEventInfo=S,this.lastMoveEventInfo=l_e(S,this.transformPagePoint),Dh.update(this.updatePoint,!0)},this.handlePointerUp=(w,S)=>{this.end();const{onEnd:C,onSessionEnd:A,resumeAnimation:k}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&k&&k(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const I=SXe(w.type==="pointercancel"?this.lastMoveEventInfo:l_e(S,this.transformPagePoint),this.history);this.startEvent&&C&&C(w,I),A&&A(w,I)},!Bdt(t))return;this.dragSnapToOrigin=o,this.handlers=r,this.transformPagePoint=a,this.distanceThreshold=u,this.contextWindow=s||window;const f=Ple(t),p=l_e(f,this.transformPagePoint),{point:m}=p,{timestamp:b}=bm;this.history=[{...m,timestamp:b}];const{onSessionStart:_}=r;_&&_(t,SXe(p,this.history)),this.removeListeners=Lle(Kae(this.contextWindow,"pointermove",this.handlePointerMove),Kae(this.contextWindow,"pointerup",this.handlePointerUp),Kae(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(t){let r=t.parentElement;for(;r;){const a=getComputedStyle(r);(gfn.has(a.overflowX)||gfn.has(a.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const r=this.scrollPositions.get(t);if(!r)return;const a=t===window,s=a?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:s.x-r.x,y:s.y-r.y};o.x===0&&o.y===0||(a?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,s),Dh.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),$O(this.updatePoint)}}function l_e(e,t){return t?{point:t(e.point)}:e}function mfn(e,t){return{x:e.x-t.x,y:e.y-t.y}}function SXe({point:e},t){return{point:e,delta:mfn(e,x6n(t)),offset:mfn(e,xPr(t)),velocity:SPr(t,.1)}}function xPr(e){return e[0]}function x6n(e){return e[e.length-1]}function SPr(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,a=null;const s=x6n(e);for(;r>=0&&(a=e[r],!(s.timestamp-a.timestamp>Dw(t)));)r--;if(!a)return{x:0,y:0};a===e[0]&&e.length>2&&s.timestamp-a.timestamp>Dw(t)*2&&(a=e[1]);const o=rS(s.timestamp-a.timestamp);if(o===0)return{x:0,y:0};const u={x:(s.x-a.x)/o,y:(s.y-a.y)/o};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function TPr(e,{min:t,max:r},a){return t!==void 0&&er&&(e=a?vd(r,e,a.max):Math.min(e,r)),e}function bfn(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function CPr(e,{top:t,left:r,bottom:a,right:s}){return{x:bfn(e.x,r,s),y:bfn(e.y,t,a)}}function yfn(e,t){let r=t.min-e.min,a=t.max-e.max;return t.max-t.mina?r=Vse(t.min,t.max-a,e.min):a>s&&(r=Vse(e.min,e.max-s,t.min)),gA(0,1,r)}function RPr(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const hst=.35;function IPr(e=hst){return e===!1?e=0:e===!0&&(e=hst),{x:vfn(e,"left","right"),y:vfn(e,"top","bottom")}}function vfn(e,t,r){return{min:_fn(e,t),max:_fn(e,r)}}function _fn(e,t){return typeof e=="number"?e:e[t]||0}const NPr=new WeakMap;class OPr{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=yp(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:a}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const o=b=>{r&&this.snapToCursor(Ple(b).point),this.stopAnimation()},u=(b,_)=>{const{drag:w,dragPropagation:S,onDragStart:C}=this.getProps();if(w&&!S&&(this.openDragLock&&this.openDragLock(),this.openDragLock=aDr(w),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=_,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),SC(k=>{let I=this.getAxisMotionValue(k).get()||0;if(rA.test(I)){const{projection:N}=this.visualElement;if(N&&N.layout){const L=N.layout.layoutBox[k];L&&(I=Yy(L)*(parseFloat(I)/100))}}this.originPoint[k]=I}),C&&Dh.update(()=>C(b,_),!1,!0),nst(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},h=(b,_)=>{this.latestPointerEvent=b,this.latestPanInfo=_;const{dragPropagation:w,dragDirectionLock:S,onDirectionLock:C,onDrag:A}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:k}=_;if(S&&this.currentDirection===null){this.currentDirection=DPr(k),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",_.point,k),this.updateAxis("y",_.point,k),this.visualElement.render(),A&&Dh.update(()=>A(b,_),!1,!0)},f=(b,_)=>{this.latestPointerEvent=b,this.latestPanInfo=_,this.stop(b,_),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:m}=this.getProps();this.panSession=new E6n(t,{onSessionStart:o,onStart:u,onMove:h,onSessionEnd:f,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:a,contextWindow:w6n(this.visualElement),element:this.visualElement.current})}stop(t,r){const a=t||this.latestPointerEvent,s=r||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!s||!a)return;const{velocity:u}=s;this.startAnimation(u);const{onDragEnd:h}=this.getProps();h&&Dh.postRender(()=>h(a,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,r,a){const{drag:s}=this.getProps();if(!a||!c_e(t,s,this.currentDirection))return;const o=this.getAxisMotionValue(t);let u=this.originPoint[t]+a[t];this.constraints&&this.constraints[t]&&(u=TPr(u,this.constraints[t],this.elastic[t])),o.set(u)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:r}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,s=this.constraints;t&&oV(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&a?this.constraints=CPr(a.layoutBox,t):this.constraints=!1,this.elastic=IPr(r),s!==this.constraints&&!oV(t)&&a&&this.constraints&&!this.hasMutatedConstraints&&SC(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=RPr(a.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!oV(t))return!1;const a=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=DDr(a,s.root,this.visualElement.getTransformPagePoint());let u=APr(s.layout.layoutBox,o);if(r){const h=r(NDr(u));this.hasMutatedConstraints=!!h,h&&(u=Hkn(h))}return u}startAnimation(t){const{drag:r,dragMomentum:a,dragElastic:s,dragTransition:o,dragSnapToOrigin:u,onDragTransitionEnd:h}=this.getProps(),f=this.constraints||{},p=SC(m=>{if(!c_e(m,r,this.currentDirection))return;let b=f&&f[m]||{};(u===!0||u===m)&&(b={min:0,max:0});const _=s?200:1e6,w=s?40:1e7,S={type:"inertia",velocity:a?t[m]:0,bounceStiffness:_,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...o,...b};return this.startAxisValueAnimation(m,S)});return Promise.all(p).then(h)}startAxisValueAnimation(t,r){const a=this.getAxisMotionValue(t);return nst(this.visualElement,t),a.start(Odt(t,a,0,r,this.visualElement,!1))}stopAnimation(){SC(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,a=this.visualElement.getProps(),s=a[r];return s||this.visualElement.getValue(t,(a.initial?a.initial[t]:void 0)||0)}snapToCursor(t){SC(r=>{const{drag:a}=this.getProps();if(!c_e(r,a,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(r);if(s&&s.layout){const{min:u,max:h}=s.layout.layoutBox[r],f=o.get()||0;o.set(t[r]-vd(u,h,.5)+f)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:a}=this.visualElement;if(!oV(r)||!a||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};SC(u=>{const h=this.getAxisMotionValue(u);if(h&&this.constraints!==!1){const f=h.get();s[u]=kPr({min:f,max:f},this.constraints[u])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.constraints=!1,this.resolveConstraints(),SC(u=>{if(!c_e(u,t,null))return;const h=this.getAxisMotionValue(u),{min:f,max:p}=this.constraints[u];h.set(vd(f,p,s[u]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;NPr.set(this.visualElement,this);const t=this.visualElement.current,r=Kae(t,"pointerdown",p=>{const{drag:m,dragListener:b=!0}=this.getProps(),_=p.target,w=_!==t&&hDr(_);m&&b&&!w&&this.start(p)});let a;const s=()=>{const{dragConstraints:p}=this.getProps();oV(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),a||(a=LPr(t,p.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,u=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Dh.read(s);const h=Wse(window,"resize",()=>this.scalePositionWithinConstraints()),f=o.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m})=>{this.isDragging&&m&&(SC(b=>{const _=this.getAxisMotionValue(b);_&&(this.originPoint[b]+=p[b].translate,_.set(_.get()+p[b].translate))}),this.visualElement.render())});return()=>{h(),r(),u(),f&&f(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:a=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:u=hst,dragMomentum:h=!0}=t;return{...t,drag:r,dragDirectionLock:a,dragPropagation:s,dragConstraints:o,dragElastic:u,dragMomentum:h}}}function wfn(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function LPr(e,t,r){const a=kdn(e,wfn(r)),s=kdn(t,wfn(r));return()=>{a(),s()}}function c_e(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function DPr(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class MPr extends E9{constructor(t){super(t),this.removeGroupControls=cS,this.removeListeners=cS,this.controls=new OPr(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||cS}update(){const{dragControls:t}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};t!==r&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const TXe=e=>(t,r)=>{e&&Dh.update(()=>e(t,r),!1,!0)};class PPr extends E9{constructor(){super(...arguments),this.removePointerDownListener=cS}onPointerDown(t){this.session=new E6n(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:w6n(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:a,onPanEnd:s}=this.node.getProps();return{onSessionStart:TXe(t),onStart:TXe(r),onMove:TXe(a),onEnd:(o,u)=>{delete this.session,s&&Dh.postRender(()=>s(o,u))}}}mount(){this.removePointerDownListener=Kae(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let CXe=!1;class BPr extends ue.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:a,layoutId:s}=this.props,{projection:o}=t;o&&(r.group&&r.group.add(o),a&&a.register&&s&&a.register(o),CXe&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),zEe.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:a,drag:s,isPresent:o}=this.props,{projection:u}=a;return u&&(u.isPresent=o,t.layoutDependency!==r&&u.setOptions({...u.options,layoutDependency:r}),CXe=!0,s||t.layoutDependency!==r||r===void 0||t.isPresent!==o?u.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?u.promote():u.relegate()||Dh.postRender(()=>{const h=u.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:r}=this.props,{projection:a}=t;a&&(a.options.layoutAnchor=r,a.root.didUpdate(),Pdt.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:a}=this.props,{projection:s}=t;CXe=!0,s&&(s.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(s),a&&a.deregister&&a.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function S6n(e){const[t,r]=d6n(),a=ue.useContext(bdt);return ct.jsx(BPr,{...e,layoutGroup:a,switchLayoutGroup:ue.useContext(v6n),isPresent:t,safeToRemove:r})}const FPr={pan:{Feature:PPr},drag:{Feature:MPr,ProjectionNode:h6n,MeasureLayout:S6n}};function Efn(e,t,r){const{props:a}=e;e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",r==="Start");const s="onHover"+r,o=a[s];o&&Dh.postRender(()=>o(t,Ple(t)))}class $Pr extends E9{mount(){const{current:t}=this.node;t&&(this.unmount=oDr(t,(r,a)=>(Efn(this.node,a,"Start"),s=>Efn(this.node,s,"End"))))}unmount(){}}class UPr extends E9{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Lle(Wse(this.node.current,"focus",()=>this.onFocus()),Wse(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function xfn(e,t,r){const{props:a}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&a.whileTap&&e.animationState.setActive("whileTap",r==="Start");const s="onTap"+(r==="End"?"":r),o=a[s];o&&Dh.postRender(()=>o(t,Ple(t)))}class zPr extends E9{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:r,propagate:a}=this.node.props;this.unmount=fDr(t,(s,o)=>(xfn(this.node,o,"Start"),(u,{success:h})=>xfn(this.node,u,h?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:(a==null?void 0:a.tap)===!1})}unmount(){}}const dst=new WeakMap,AXe=new WeakMap,GPr=e=>{const t=dst.get(e.target);t&&t(e)},qPr=e=>{e.forEach(GPr)};function HPr({root:e,...t}){const r=e||document;AXe.has(r)||AXe.set(r,{});const a=AXe.get(r),s=JSON.stringify(t);return a[s]||(a[s]=new IntersectionObserver(qPr,{root:e,...t})),a[s]}function VPr(e,t,r){const a=HPr(t);return dst.set(e,r),a.observe(e),()=>{dst.delete(e),a.unobserve(e)}}const YPr={some:0,all:1};class jPr extends E9{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var f;(f=this.stopObserver)==null||f.call(this);const{viewport:t={}}=this.node.getProps(),{root:r,margin:a,amount:s="some",once:o}=t,u={root:r?r.current:void 0,rootMargin:a,threshold:typeof s=="number"?s:YPr[s]},h=p=>{const{isIntersecting:m}=p;if(this.isInView===m||(this.isInView=m,o&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:b,onViewportLeave:_}=this.node.getProps(),w=m?b:_;w&&w(p)};this.stopObserver=VPr(this.node.current,u,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(WPr(t,r))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function WPr({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const KPr={inView:{Feature:jPr},tap:{Feature:zPr},focus:{Feature:UPr},hover:{Feature:$Pr}},XPr={layout:{ProjectionNode:h6n,MeasureLayout:S6n}},QPr={..._Pr,...KPr,...FPr,...XPr},K4a=gPr(QPr,mPr),ZPr=new RegExp("\\p{Lu}?\\p{Ll}+|[0-9]+|\\p{Lu}+(?!\\p{Ll})|\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\p{L}+","gu");function JPr(e){return Array.from(e.match(ZPr)??[])}function X4a(e){return JPr(e).map(r=>r.toLowerCase()).join("-")}const Sfn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Tfn=sOr,Q4a=(e,t)=>r=>{var a;if((t==null?void 0:t.variants)==null)return Tfn(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:o}=t,u=Object.keys(s).map(p=>{const m=r==null?void 0:r[p],b=o==null?void 0:o[p];if(m===null)return null;const _=Sfn(m)||Sfn(b);return s[p][_]}),h=r&&Object.entries(r).reduce((p,m)=>{let[b,_]=m;return _===void 0||(p[b]=_),p},{}),f=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((p,m)=>{let{class:b,className:_,...w}=m;return Object.entries(w).every(S=>{let[C,A]=S;return Array.isArray(A)?A.includes({...o,...h}[C]):{...o,...h}[C]===A})?[...p,b,_]:p},[]);return Tfn(e,u,f,r==null?void 0:r.class,r==null?void 0:r.className)};function G5e(){return typeof window<"u"}function _W(e){return Ydt(e)?(e.nodeName||"").toLowerCase():"#document"}function X2(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function TA(e){var t;return(t=(Ydt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ydt(e){return G5e()?e instanceof Node||e instanceof X2(e).Node:!1}function yd(e){return G5e()?e instanceof Element||e instanceof X2(e).Element:!1}function Fw(e){return G5e()?e instanceof HTMLElement||e instanceof X2(e).HTMLElement:!1}function fst(e){return!G5e()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof X2(e).ShadowRoot}const eBr=new Set(["inline","contents"]);function Ble(e){const{overflow:t,overflowX:r,overflowY:a,display:s}=gS(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+r)&&!eBr.has(s)}const tBr=new Set(["table","td","th"]);function nBr(e){return tBr.has(_W(e))}const rBr=[":popover-open",":modal"];function q5e(e){return rBr.some(t=>{try{return e.matches(t)}catch{return!1}})}const iBr=["transform","translate","scale","rotate","perspective"],aBr=["transform","translate","scale","rotate","perspective","filter"],sBr=["paint","layout","strict","content"];function jdt(e){const t=H5e(),r=yd(e)?gS(e):e;return iBr.some(a=>r[a]?r[a]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||aBr.some(a=>(r.willChange||"").includes(a))||sBr.some(a=>(r.contain||"").includes(a))}function oBr(e){let t=j7(e);for(;Fw(t)&&!P7(t);){if(jdt(t))return t;if(q5e(t))return null;t=j7(t)}return null}function H5e(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lBr=new Set(["html","body","#document"]);function P7(e){return lBr.has(_W(e))}function gS(e){return X2(e).getComputedStyle(e)}function V5e(e){return yd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function j7(e){if(_W(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fst(e)&&e.host||TA(e);return fst(t)?t.host:t}function T6n(e){const t=j7(e);return P7(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fw(t)&&Ble(t)?t:T6n(t)}function wO(e,t,r){var a;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=T6n(e),o=s===((a=e.ownerDocument)==null?void 0:a.body),u=X2(s);if(o){const h=pst(u);return t.concat(u,u.visualViewport||[],Ble(s)?s:[],h&&r?wO(h):[])}return t.concat(s,wO(s,[],r))}function pst(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const cBr=["top","right","bottom","left"],UO=Math.min,Rw=Math.max,CSe=Math.round,u_e=Math.floor,iA=e=>({x:e,y:e}),uBr={left:"right",right:"left",bottom:"top",top:"bottom"},hBr={start:"end",end:"start"};function gst(e,t,r){return Rw(e,UO(t,r))}function W7(e,t){return typeof e=="function"?e(t):e}function K7(e){return e.split("-")[0]}function wW(e){return e.split("-")[1]}function Wdt(e){return e==="x"?"y":"x"}function Kdt(e){return e==="y"?"height":"width"}const dBr=new Set(["top","bottom"]);function VC(e){return dBr.has(K7(e))?"y":"x"}function Xdt(e){return Wdt(VC(e))}function fBr(e,t,r){r===void 0&&(r=!1);const a=wW(e),s=Xdt(e),o=Kdt(s);let u=s==="x"?a===(r?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(u=ASe(u)),[u,ASe(u)]}function pBr(e){const t=ASe(e);return[mst(e),t,mst(t)]}function mst(e){return e.replace(/start|end/g,t=>hBr[t])}const Cfn=["left","right"],Afn=["right","left"],gBr=["top","bottom"],mBr=["bottom","top"];function bBr(e,t,r){switch(e){case"top":case"bottom":return r?t?Afn:Cfn:t?Cfn:Afn;case"left":case"right":return t?gBr:mBr;default:return[]}}function yBr(e,t,r,a){const s=wW(e);let o=bBr(K7(e),r==="start",a);return s&&(o=o.map(u=>u+"-"+s),t&&(o=o.concat(o.map(mst)))),o}function ASe(e){return e.replace(/left|right|bottom|top/g,t=>uBr[t])}function vBr(e){return{top:0,right:0,bottom:0,left:0,...e}}function C6n(e){return typeof e!="number"?vBr(e):{top:e,right:e,bottom:e,left:e}}function kSe(e){const{x:t,y:r,width:a,height:s}=e;return{width:a,height:s,top:r,left:t,right:t+a,bottom:r+s,x:t,y:r}}/*! * tabbable 6.4.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE */var _Br=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],bst=_Br.join(","),A6n=typeof Element>"u",Kse=A6n?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,RSe=!A6n&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},ISe=function(t,r){var a;r===void 0&&(r=!0);var s=t==null||(a=t.getAttribute)===null||a===void 0?void 0:a.call(t,"inert"),o=s===""||s==="true",u=o||r&&t&&(typeof t.closest=="function"?t.closest("[inert]"):ISe(t.parentNode));return u},wBr=function(t){var r,a=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return a===""||a==="true"},EBr=function(t,r,a){if(ISe(t))return[];var s=Array.prototype.slice.apply(t.querySelectorAll(bst));return r&&Kse.call(t,bst)&&s.unshift(t),s=s.filter(a),s},yst=function(t,r,a){for(var s=[],o=Array.from(t);o.length;){var u=o.shift();if(!ISe(u,!1))if(u.tagName==="SLOT"){var h=u.assignedElements(),f=h.length?h:u.children,p=yst(f,!0,a);a.flatten?s.push.apply(s,p):s.push({scopeParent:u,candidates:p})}else{var m=Kse.call(u,bst);m&&a.filter(u)&&(r||!t.includes(u))&&s.push(u);var b=u.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(u),_=!ISe(b,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(u));if(b&&_){var w=yst(b===!0?u.children:b.children,!0,a);a.flatten?s.push.apply(s,w):s.push({scopeParent:u,candidates:w})}else o.unshift.apply(o,u.children)}}return s},k6n=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},R6n=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||wBr(t))&&!k6n(t)?0:t.tabIndex},xBr=function(t,r){var a=R6n(t);return a<0&&r&&!k6n(t)?0:a},SBr=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},I6n=function(t){return t.tagName==="INPUT"},TBr=function(t){return I6n(t)&&t.type==="hidden"},CBr=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(a){return a.tagName==="SUMMARY"});return r},ABr=function(t,r){for(var a=0;asummary:first-of-type"),h=u?t.parentElement:t;if(Kse.call(h,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="full-native"||a==="legacy-full"){if(typeof s=="function"){for(var f=t;t;){var p=t.parentElement,m=RSe(t);if(p&&!p.shadowRoot&&s(p)===!0)return kfn(t);t.assignedSlot?t=t.assignedSlot:!p&&m!==t.ownerDocument?t=m.host:t=p}t=f}if(NBr(t))return!t.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return kfn(t);return!1},LBr=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var a=0;a=0)},N6n=function(t){var r=[],a=[];return t.forEach(function(s,o){var u=!!s.scopeParent,h=u?s.scopeParent:s,f=xBr(h,u),p=u?N6n(s.candidates):h;f===0?u?r.push.apply(r,p):r.push(h):a.push({documentOrder:o,tabIndex:f,item:s,isScope:u,content:p})}),a.sort(SBr).reduce(function(s,o){return o.isScope?s.push.apply(s,o.content):s.push(o.content),s},[]).concat(r)},O6n=function(t,r){r=r||{};var a;return r.getShadowRoot?a=yst([t],r.includeContainer,{filter:Rfn.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:MBr}):a=EBr(t,r.includeContainer,Rfn.bind(null,r)),N6n(a)};function Ifn(e,t,r){let{reference:a,floating:s}=e;const o=VC(t),u=Xdt(t),h=Kdt(u),f=K7(t),p=o==="y",m=a.x+a.width/2-s.width/2,b=a.y+a.height/2-s.height/2,_=a[h]/2-s[h]/2;let w;switch(f){case"top":w={x:m,y:a.y-s.height};break;case"bottom":w={x:m,y:a.y+a.height};break;case"right":w={x:a.x+a.width,y:b};break;case"left":w={x:a.x-s.width,y:b};break;default:w={x:a.x,y:a.y}}switch(wW(t)){case"start":w[u]-=_*(r&&p?-1:1);break;case"end":w[u]+=_*(r&&p?-1:1);break}return w}async function PBr(e,t){var r;t===void 0&&(t={});const{x:a,y:s,platform:o,rects:u,elements:h,strategy:f}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:b="floating",altBoundary:_=!1,padding:w=0}=W7(t,e),S=C6n(w),A=h[_?b==="floating"?"reference":"floating":b],k=kSe(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(A)))==null||r?A:A.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(h.floating)),boundary:p,rootBoundary:m,strategy:f})),I=b==="floating"?{x:a,y:s,width:u.floating.width,height:u.floating.height}:u.reference,N=await(o.getOffsetParent==null?void 0:o.getOffsetParent(h.floating)),L=await(o.isElement==null?void 0:o.isElement(N))?await(o.getScale==null?void 0:o.getScale(N))||{x:1,y:1}:{x:1,y:1},P=kSe(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:I,offsetParent:N,strategy:f}):I);return{top:(k.top-P.top+S.top)/L.y,bottom:(P.bottom-k.bottom+S.bottom)/L.y,left:(k.left-P.left+S.left)/L.x,right:(P.right-k.right+S.right)/L.x}}const BBr=async(e,t,r)=>{const{placement:a="bottom",strategy:s="absolute",middleware:o=[],platform:u}=r,h=o.filter(Boolean),f=await(u.isRTL==null?void 0:u.isRTL(t));let p=await u.getElementRects({reference:e,floating:t,strategy:s}),{x:m,y:b}=Ifn(p,a,f),_=a,w={},S=0;for(let A=0;A({name:"arrow",options:e,async fn(t){const{x:r,y:a,placement:s,rects:o,platform:u,elements:h,middlewareData:f}=t,{element:p,padding:m=0}=W7(e,t)||{};if(p==null)return{};const b=C6n(m),_={x:r,y:a},w=Xdt(s),S=Kdt(w),C=await u.getDimensions(p),A=w==="y",k=A?"top":"left",I=A?"bottom":"right",N=A?"clientHeight":"clientWidth",L=o.reference[S]+o.reference[w]-_[w]-o.floating[S],P=_[w]-o.reference[w],M=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let F=M?M[N]:0;(!F||!await(u.isElement==null?void 0:u.isElement(M)))&&(F=h.floating[N]||o.floating[S]);const U=L/2-P/2,$=F/2-C[S]/2-1,G=UO(b[k],$),B=UO(b[I],$),Z=G,z=F-C[S]-B,Y=F/2-C[S]/2+U,W=gst(Z,Y,z),Q=!f.arrow&&wW(s)!=null&&Y!==W&&o.reference[S]/2-(YY<=0)){var B,Z;const Y=(((B=o.flip)==null?void 0:B.index)||0)+1,W=F[Y];if(W&&(!(b==="alignment"?I!==VC(W):!1)||G.every(j=>VC(j.placement)===I?j.overflows[0]>0:!0)))return{data:{index:Y,overflows:G},reset:{placement:W}};let Q=(Z=G.filter(V=>V.overflows[0]<=0).sort((V,j)=>V.overflows[1]-j.overflows[1])[0])==null?void 0:Z.placement;if(!Q)switch(w){case"bestFit":{var z;const V=(z=G.filter(j=>{if(M){const ee=VC(j.placement);return ee===I||ee==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(ee=>ee>0).reduce((ee,te)=>ee+te,0)]).sort((j,ee)=>j[1]-ee[1])[0])==null?void 0:z[0];V&&(Q=V);break}case"initialPlacement":Q=h;break}if(s!==Q)return{reset:{placement:Q}}}return{}}}};function Nfn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ofn(e){return cBr.some(t=>e[t]>=0)}const UBr=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:a}=t,{strategy:s="referenceHidden",...o}=W7(e,t);switch(s){case"referenceHidden":{const u=await a.detectOverflow(t,{...o,elementContext:"reference"}),h=Nfn(u,r.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Ofn(h)}}}case"escaped":{const u=await a.detectOverflow(t,{...o,altBoundary:!0}),h=Nfn(u,r.floating);return{data:{escapedOffsets:h,escaped:Ofn(h)}}}default:return{}}}}},L6n=new Set(["left","top"]);async function zBr(e,t){const{placement:r,platform:a,elements:s}=e,o=await(a.isRTL==null?void 0:a.isRTL(s.floating)),u=K7(r),h=wW(r),f=VC(r)==="y",p=L6n.has(u)?-1:1,m=o&&f?-1:1,b=W7(t,e);let{mainAxis:_,crossAxis:w,alignmentAxis:S}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return h&&typeof S=="number"&&(w=h==="end"?S*-1:S),f?{x:w*m,y:_*p}:{x:_*p,y:w*m}}const GBr=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,a;const{x:s,y:o,placement:u,middlewareData:h}=t,f=await zBr(t,e);return u===((r=h.offset)==null?void 0:r.placement)&&(a=h.arrow)!=null&&a.alignmentOffset?{}:{x:s+f.x,y:o+f.y,data:{...f,placement:u}}}}},qBr=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:a,placement:s,platform:o}=t,{mainAxis:u=!0,crossAxis:h=!1,limiter:f={fn:k=>{let{x:I,y:N}=k;return{x:I,y:N}}},...p}=W7(e,t),m={x:r,y:a},b=await o.detectOverflow(t,p),_=VC(K7(s)),w=Wdt(_);let S=m[w],C=m[_];if(u){const k=w==="y"?"top":"left",I=w==="y"?"bottom":"right",N=S+b[k],L=S-b[I];S=gst(N,S,L)}if(h){const k=_==="y"?"top":"left",I=_==="y"?"bottom":"right",N=C+b[k],L=C-b[I];C=gst(N,C,L)}const A=f.fn({...t,[w]:S,[_]:C});return{...A,data:{x:A.x-r,y:A.y-a,enabled:{[w]:u,[_]:h}}}}}},HBr=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:a,placement:s,rects:o,middlewareData:u}=t,{offset:h=0,mainAxis:f=!0,crossAxis:p=!0}=W7(e,t),m={x:r,y:a},b=VC(s),_=Wdt(b);let w=m[_],S=m[b];const C=W7(h,t),A=typeof C=="number"?{mainAxis:C,crossAxis:0}:{mainAxis:0,crossAxis:0,...C};if(f){const N=_==="y"?"height":"width",L=o.reference[_]-o.floating[N]+A.mainAxis,P=o.reference[_]+o.reference[N]-A.mainAxis;wP&&(w=P)}if(p){var k,I;const N=_==="y"?"width":"height",L=L6n.has(K7(s)),P=o.reference[b]-o.floating[N]+(L&&((k=u.offset)==null?void 0:k[b])||0)+(L?0:A.crossAxis),M=o.reference[b]+o.reference[N]+(L?0:((I=u.offset)==null?void 0:I[b])||0)-(L?A.crossAxis:0);SM&&(S=M)}return{[_]:w,[b]:S}}}},VBr=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,a;const{placement:s,rects:o,platform:u,elements:h}=t,{apply:f=()=>{},...p}=W7(e,t),m=await u.detectOverflow(t,p),b=K7(s),_=wW(s),w=VC(s)==="y",{width:S,height:C}=o.floating;let A,k;b==="top"||b==="bottom"?(A=b,k=_===(await(u.isRTL==null?void 0:u.isRTL(h.floating))?"start":"end")?"left":"right"):(k=b,A=_==="end"?"top":"bottom");const I=C-m.top-m.bottom,N=S-m.left-m.right,L=UO(C-m[A],I),P=UO(S-m[k],N),M=!t.middlewareData.shift;let F=L,U=P;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(U=N),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(F=I),M&&!_){const G=Rw(m.left,0),B=Rw(m.right,0),Z=Rw(m.top,0),z=Rw(m.bottom,0);w?U=S-2*(G!==0||B!==0?G+B:Rw(m.left,m.right)):F=C-2*(Z!==0||z!==0?Z+z:Rw(m.top,m.bottom))}await f({...t,availableWidth:U,availableHeight:F});const $=await u.getDimensions(h.floating);return S!==$.width||C!==$.height?{reset:{rects:!0}}:{}}}};function D6n(e){const t=gS(e);let r=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const s=Fw(e),o=s?e.offsetWidth:r,u=s?e.offsetHeight:a,h=CSe(r)!==o||CSe(a)!==u;return h&&(r=o,a=u),{width:r,height:a,$:h}}function Qdt(e){return yd(e)?e:e.contextElement}function GV(e){const t=Qdt(e);if(!Fw(t))return iA(1);const r=t.getBoundingClientRect(),{width:a,height:s,$:o}=D6n(t);let u=(o?CSe(r.width):r.width)/a,h=(o?CSe(r.height):r.height)/s;return(!u||!Number.isFinite(u))&&(u=1),(!h||!Number.isFinite(h))&&(h=1),{x:u,y:h}}const YBr=iA(0);function M6n(e){const t=X2(e);return!H5e()||!t.visualViewport?YBr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jBr(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==X2(e)?!1:t}function vF(e,t,r,a){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),o=Qdt(e);let u=iA(1);t&&(a?yd(a)&&(u=GV(a)):u=GV(e));const h=jBr(o,r,a)?M6n(o):iA(0);let f=(s.left+h.x)/u.x,p=(s.top+h.y)/u.y,m=s.width/u.x,b=s.height/u.y;if(o){const _=X2(o),w=a&&yd(a)?X2(a):a;let S=_,C=pst(S);for(;C&&a&&w!==S;){const A=GV(C),k=C.getBoundingClientRect(),I=gS(C),N=k.left+(C.clientLeft+parseFloat(I.paddingLeft))*A.x,L=k.top+(C.clientTop+parseFloat(I.paddingTop))*A.y;f*=A.x,p*=A.y,m*=A.x,b*=A.y,f+=N,p+=L,S=X2(C),C=pst(S)}}return kSe({width:m,height:b,x:f,y:p})}function Y5e(e,t){const r=V5e(e).scrollLeft;return t?t.left+r:vF(TA(e)).left+r}function P6n(e,t){const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-Y5e(e,r),s=r.top+t.scrollTop;return{x:a,y:s}}function WBr(e){let{elements:t,rect:r,offsetParent:a,strategy:s}=e;const o=s==="fixed",u=TA(a),h=t?q5e(t.floating):!1;if(a===u||h&&o)return r;let f={scrollLeft:0,scrollTop:0},p=iA(1);const m=iA(0),b=Fw(a);if((b||!b&&!o)&&((_W(a)!=="body"||Ble(u))&&(f=V5e(a)),Fw(a))){const w=vF(a);p=GV(a),m.x=w.x+a.clientLeft,m.y=w.y+a.clientTop}const _=u&&!b&&!o?P6n(u,f):iA(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-f.scrollLeft*p.x+m.x+_.x,y:r.y*p.y-f.scrollTop*p.y+m.y+_.y}}function KBr(e){return Array.from(e.getClientRects())}function XBr(e){const t=TA(e),r=V5e(e),a=e.ownerDocument.body,s=Rw(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),o=Rw(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let u=-r.scrollLeft+Y5e(e);const h=-r.scrollTop;return gS(a).direction==="rtl"&&(u+=Rw(t.clientWidth,a.clientWidth)-s),{width:s,height:o,x:u,y:h}}const Lfn=25;function QBr(e,t){const r=X2(e),a=TA(e),s=r.visualViewport;let o=a.clientWidth,u=a.clientHeight,h=0,f=0;if(s){o=s.width,u=s.height;const m=H5e();(!m||m&&t==="fixed")&&(h=s.offsetLeft,f=s.offsetTop)}const p=Y5e(a);if(p<=0){const m=a.ownerDocument,b=m.body,_=getComputedStyle(b),w=m.compatMode==="CSS1Compat"&&parseFloat(_.marginLeft)+parseFloat(_.marginRight)||0,S=Math.abs(a.clientWidth-b.clientWidth-w);S<=Lfn&&(o-=S)}else p<=Lfn&&(o+=p);return{width:o,height:u,x:h,y:f}}const ZBr=new Set(["absolute","fixed"]);function JBr(e,t){const r=vF(e,!0,t==="fixed"),a=r.top+e.clientTop,s=r.left+e.clientLeft,o=Fw(e)?GV(e):iA(1),u=e.clientWidth*o.x,h=e.clientHeight*o.y,f=s*o.x,p=a*o.y;return{width:u,height:h,x:f,y:p}}function Dfn(e,t,r){let a;if(t==="viewport")a=QBr(e,r);else if(t==="document")a=XBr(TA(e));else if(yd(t))a=JBr(t,r);else{const s=M6n(e);a={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return kSe(a)}function B6n(e,t){const r=j7(e);return r===t||!yd(r)||P7(r)?!1:gS(r).position==="fixed"||B6n(r,t)}function eFr(e,t){const r=t.get(e);if(r)return r;let a=wO(e,[],!1).filter(h=>yd(h)&&_W(h)!=="body"),s=null;const o=gS(e).position==="fixed";let u=o?j7(e):e;for(;yd(u)&&!P7(u);){const h=gS(u),f=jdt(u);!f&&h.position==="fixed"&&(s=null),(o?!f&&!s:!f&&h.position==="static"&&!!s&&ZBr.has(s.position)||Ble(u)&&!f&&B6n(e,u))?a=a.filter(m=>m!==u):s=h,u=j7(u)}return t.set(e,a),a}function tFr(e){let{element:t,boundary:r,rootBoundary:a,strategy:s}=e;const u=[...r==="clippingAncestors"?q5e(t)?[]:eFr(t,this._c):[].concat(r),a],h=u[0],f=u.reduce((p,m)=>{const b=Dfn(t,m,s);return p.top=Rw(b.top,p.top),p.right=UO(b.right,p.right),p.bottom=UO(b.bottom,p.bottom),p.left=Rw(b.left,p.left),p},Dfn(t,h,s));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function nFr(e){const{width:t,height:r}=D6n(e);return{width:t,height:r}}function rFr(e,t,r){const a=Fw(t),s=TA(t),o=r==="fixed",u=vF(e,!0,o,t);let h={scrollLeft:0,scrollTop:0};const f=iA(0);function p(){f.x=Y5e(s)}if(a||!a&&!o)if((_W(t)!=="body"||Ble(s))&&(h=V5e(t)),a){const w=vF(t,!0,o,t);f.x=w.x+t.clientLeft,f.y=w.y+t.clientTop}else s&&p();o&&!a&&s&&p();const m=s&&!a&&!o?P6n(s,h):iA(0),b=u.left+h.scrollLeft-f.x-m.x,_=u.top+h.scrollTop-f.y-m.y;return{x:b,y:_,width:u.width,height:u.height}}function kXe(e){return gS(e).position==="static"}function Mfn(e,t){if(!Fw(e)||gS(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return TA(e)===r&&(r=r.ownerDocument.body),r}function F6n(e,t){const r=X2(e);if(q5e(e))return r;if(!Fw(e)){let s=j7(e);for(;s&&!P7(s);){if(yd(s)&&!kXe(s))return s;s=j7(s)}return r}let a=Mfn(e,t);for(;a&&nBr(a)&&kXe(a);)a=Mfn(a,t);return a&&P7(a)&&kXe(a)&&!jdt(a)?r:a||oBr(e)||r}const iFr=async function(e){const t=this.getOffsetParent||F6n,r=this.getDimensions,a=await r(e.floating);return{reference:rFr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function aFr(e){return gS(e).direction==="rtl"}const sFr={convertOffsetParentRelativeRectToViewportRelativeRect:WBr,getDocumentElement:TA,getClippingRect:tFr,getOffsetParent:F6n,getElementRects:iFr,getClientRects:KBr,getDimensions:nFr,getScale:GV,isElement:yd,isRTL:aFr};function $6n(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function oFr(e,t){let r=null,a;const s=TA(e);function o(){var h;clearTimeout(a),(h=r)==null||h.disconnect(),r=null}function u(h,f){h===void 0&&(h=!1),f===void 0&&(f=1),o();const p=e.getBoundingClientRect(),{left:m,top:b,width:_,height:w}=p;if(h||t(),!_||!w)return;const S=u_e(b),C=u_e(s.clientWidth-(m+_)),A=u_e(s.clientHeight-(b+w)),k=u_e(m),N={rootMargin:-S+"px "+-C+"px "+-A+"px "+-k+"px",threshold:Rw(0,UO(1,f))||1};let L=!0;function P(M){const F=M[0].intersectionRatio;if(F!==f){if(!L)return u();F?u(!1,F):a=setTimeout(()=>{u(!1,1e-7)},1e3)}F===1&&!$6n(p,e.getBoundingClientRect())&&u(),L=!1}try{r=new IntersectionObserver(P,{...N,root:s.ownerDocument})}catch{r=new IntersectionObserver(P,N)}r.observe(e)}return u(!0),o}function U6n(e,t,r,a){a===void 0&&(a={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:f=!1}=a,p=Qdt(e),m=s||o?[...p?wO(p):[],...wO(t)]:[];m.forEach(k=>{s&&k.addEventListener("scroll",r,{passive:!0}),o&&k.addEventListener("resize",r)});const b=p&&h?oFr(p,r):null;let _=-1,w=null;u&&(w=new ResizeObserver(k=>{let[I]=k;I&&I.target===p&&w&&(w.unobserve(t),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var N;(N=w)==null||N.observe(t)})),r()}),p&&!f&&w.observe(p),w.observe(t));let S,C=f?vF(e):null;f&&A();function A(){const k=vF(e);C&&!$6n(C,k)&&r(),C=k,S=requestAnimationFrame(A)}return r(),()=>{var k;m.forEach(I=>{s&&I.removeEventListener("scroll",r),o&&I.removeEventListener("resize",r)}),b==null||b(),(k=w)==null||k.disconnect(),w=null,f&&cancelAnimationFrame(S)}}const lFr=GBr,cFr=qBr,uFr=$Br,hFr=VBr,dFr=UBr,Pfn=FBr,fFr=HBr,pFr=(e,t,r)=>{const a=new Map,s={platform:sFr,...r},o={...s.platform,_c:a};return BBr(e,t,{...s,platform:o})};var gFr=typeof document<"u",mFr=function(){},GEe=gFr?ue.useLayoutEffect:mFr;function NSe(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,a,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(a=r;a--!==0;)if(!NSe(e[a],t[a]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(a=r;a--!==0;)if(!{}.hasOwnProperty.call(t,s[a]))return!1;for(a=r;a--!==0;){const o=s[a];if(!(o==="_owner"&&e.$$typeof)&&!NSe(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function z6n(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bfn(e,t){const r=z6n(e);return Math.round(t*r)/r}function RXe(e){const t=ue.useRef(e);return GEe(()=>{t.current=e}),t}function Zdt(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:a=[],platform:s,elements:{reference:o,floating:u}={},transform:h=!0,whileElementsMounted:f,open:p}=e,[m,b]=ue.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[_,w]=ue.useState(a);NSe(_,a)||w(a);const[S,C]=ue.useState(null),[A,k]=ue.useState(null),I=ue.useCallback(j=>{j!==M.current&&(M.current=j,C(j))},[]),N=ue.useCallback(j=>{j!==F.current&&(F.current=j,k(j))},[]),L=o||S,P=u||A,M=ue.useRef(null),F=ue.useRef(null),U=ue.useRef(m),$=f!=null,G=RXe(f),B=RXe(s),Z=RXe(p),z=ue.useCallback(()=>{if(!M.current||!F.current)return;const j={placement:t,strategy:r,middleware:_};B.current&&(j.platform=B.current),pFr(M.current,F.current,j).then(ee=>{const te={...ee,isPositioned:Z.current!==!1};Y.current&&!NSe(U.current,te)&&(U.current=te,w9.flushSync(()=>{b(te)}))})},[_,t,r,B,Z]);GEe(()=>{p===!1&&U.current.isPositioned&&(U.current.isPositioned=!1,b(j=>({...j,isPositioned:!1})))},[p]);const Y=ue.useRef(!1);GEe(()=>(Y.current=!0,()=>{Y.current=!1}),[]),GEe(()=>{if(L&&(M.current=L),P&&(F.current=P),L&&P){if(G.current)return G.current(L,P,z);z()}},[L,P,z,G,$]);const W=ue.useMemo(()=>({reference:M,floating:F,setReference:I,setFloating:N}),[I,N]),Q=ue.useMemo(()=>({reference:L,floating:P}),[L,P]),V=ue.useMemo(()=>{const j={position:r,left:0,top:0};if(!Q.floating)return j;const ee=Bfn(Q.floating,m.x),te=Bfn(Q.floating,m.y);return h?{...j,transform:"translate("+ee+"px, "+te+"px)",...z6n(Q.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ee,top:te}},[r,h,Q.floating,m.x,m.y]);return ue.useMemo(()=>({...m,update:z,refs:W,elements:Q,floatingStyles:V}),[m,z,W,Q,V])}const bFr=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:a,padding:s}=typeof e=="function"?e(r):e;return a&&t(a)?a.current!=null?Pfn({element:a.current,padding:s}).fn(r):{}:a?Pfn({element:a,padding:s}).fn(r):{}}}},G6n=(e,t)=>({...lFr(e),options:[e,t]}),q6n=(e,t)=>({...cFr(e),options:[e,t]}),H6n=(e,t)=>({...fFr(e),options:[e,t]}),V6n=(e,t)=>({...uFr(e),options:[e,t]}),Y6n=(e,t)=>({...hFr(e),options:[e,t]}),j6n=(e,t)=>({...dFr(e),options:[e,t]}),W6n=(e,t)=>({...bFr(e),options:[e,t]});var K6n={exports:{}},X6n={};/** * @license React * use-sync-external-store-shim.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var bj=ue;function yFr(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vFr=typeof Object.is=="function"?Object.is:yFr,_Fr=bj.useState,wFr=bj.useEffect,EFr=bj.useLayoutEffect,xFr=bj.useDebugValue;function SFr(e,t){var r=t(),a=_Fr({inst:{value:r,getSnapshot:t}}),s=a[0].inst,o=a[1];return EFr(function(){s.value=r,s.getSnapshot=t,IXe(s)&&o({inst:s})},[e,r,t]),wFr(function(){return IXe(s)&&o({inst:s}),e(function(){IXe(s)&&o({inst:s})})},[e]),xFr(r),r}function IXe(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!vFr(e,r)}catch{return!0}}function TFr(e,t){return t()}var CFr=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?TFr:SFr;X6n.useSyncExternalStore=bj.useSyncExternalStore!==void 0?bj.useSyncExternalStore:CFr;K6n.exports=X6n;var AFr=K6n.exports,Q6n={exports:{}},Z6n={};/** * @license React * use-sync-external-store-shim/with-selector.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var j5e=ue,kFr=AFr;function RFr(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var IFr=typeof Object.is=="function"?Object.is:RFr,NFr=kFr.useSyncExternalStore,OFr=j5e.useRef,LFr=j5e.useEffect,DFr=j5e.useMemo,MFr=j5e.useDebugValue;Z6n.useSyncExternalStoreWithSelector=function(e,t,r,a,s){var o=OFr(null);if(o.current===null){var u={hasValue:!1,value:null};o.current=u}else u=o.current;o=DFr(function(){function f(w){if(!p){if(p=!0,m=w,w=a(w),s!==void 0&&u.hasValue){var S=u.value;if(s(S,w))return b=S}return b=w}if(S=b,IFr(m,w))return S;var C=a(w);return s!==void 0&&s(S,C)?(m=w,S):(m=w,b=C)}var p=!1,m,b,_=r===void 0?null:r;return[function(){return f(t())},_===null?void 0:function(){return f(_())}]},[t,r,a,s]);var h=NFr(e,o[0],o[1]);return LFr(function(){u.hasValue=!0,u.value=h},[h]),MFr(h),h};Q6n.exports=Z6n;var PFr=Q6n.exports;const BFr=O1(PFr);var BC=function(){return BC=Object.assign||function(t){for(var r,a=1,s=arguments.length;a"u"?void 0:Number(a),maxHeight:typeof s>"u"?void 0:Number(s),minWidth:typeof o>"u"?void 0:Number(o),minHeight:typeof u>"u"?void 0:Number(u)}},VFr=function(e){return Array.isArray(e)?e:[e,e]},YFr=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Gfn="__resizable_base__",Z4a=function(e){zFr(t,e);function t(r){var a,s,o,u,h=e.call(this,r)||this;return h.ratio=1,h.resizable=null,h.parentLeft=0,h.parentTop=0,h.resizableLeft=0,h.resizableRight=0,h.resizableTop=0,h.resizableBottom=0,h.targetLeft=0,h.targetTop=0,h.delta={width:0,height:0},h.appendBase=function(){if(!h.resizable||!h.window)return null;var f=h.parentNode;if(!f)return null;var p=h.window.document.createElement("div");return p.style.width="100%",p.style.height="100%",p.style.position="absolute",p.style.transform="scale(0, 0)",p.style.left="0",p.style.flex="0 0 100%",p.classList?p.classList.add(Gfn):p.className+=Gfn,f.appendChild(p),p},h.removeBase=function(f){var p=h.parentNode;p&&p.removeChild(f)},h.state={isResizing:!1,width:(s=(a=h.propsSize)===null||a===void 0?void 0:a.width)!==null&&s!==void 0?s:"auto",height:(u=(o=h.propsSize)===null||o===void 0?void 0:o.height)!==null&&u!==void 0?u:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},h.onResizeStart=h.onResizeStart.bind(h),h.onMouseMove=h.onMouseMove.bind(h),h.onMouseUp=h.onMouseUp.bind(h),h}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||GFr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,a=0;if(this.resizable&&this.window){var s=this.resizable.offsetWidth,o=this.resizable.offsetHeight,u=this.resizable.style.position;u!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:s,a=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:o,this.resizable.style.position=u}return{width:r,height:a}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,a=this.props.size,s=function(h){var f;if(typeof r.state[h]>"u"||r.state[h]==="auto")return"auto";if(r.propsSize&&r.propsSize[h]&&(!((f=r.propsSize[h])===null||f===void 0)&&f.toString().endsWith("%"))){if(r.state[h].toString().endsWith("%"))return r.state[h].toString();var p=r.getParentSize(),m=Number(r.state[h].toString().replace("px","")),b=m/p[h]*100;return"".concat(b,"%")}return NXe(r.state[h])},o=a&&typeof a.width<"u"&&!this.state.isResizing?NXe(a.width):s("width"),u=a&&typeof a.height<"u"&&!this.state.isResizing?NXe(a.height):s("height");return{width:o,height:u}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var a=!1,s=this.parentNode.style.flexWrap;s!=="wrap"&&(a=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var o={width:r.offsetWidth,height:r.offsetHeight};return a&&(this.parentNode.style.flexWrap=s),this.removeBase(r),o},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,a){var s=this.propsSize&&this.propsSize[a];return this.state[a]==="auto"&&this.state.original[a]===r&&(typeof s>"u"||s==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,a){var s=this.props.boundsByDirection,o=this.state.direction,u=s&&NH("left",o),h=s&&NH("top",o),f,p;if(this.props.bounds==="parent"){var m=this.parentNode;m&&(f=u?this.resizableRight-this.parentLeft:m.offsetWidth+(this.parentLeft-this.resizableLeft),p=h?this.resizableBottom-this.parentTop:m.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(f=u?this.resizableRight:this.window.innerWidth-this.resizableLeft,p=h?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(f=u?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),p=h?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return f&&Number.isFinite(f)&&(r=r&&r"u"?10:o.width,b=typeof s.width>"u"||s.width<0?r:s.width,_=typeof o.height>"u"?10:o.height,w=typeof s.height>"u"||s.height<0?a:s.height,S=f||0,C=p||0;if(h){var A=(_-S)*this.ratio+C,k=(w-S)*this.ratio+C,I=(m-C)/this.ratio+S,N=(b-C)/this.ratio+S,L=Math.max(m,A),P=Math.min(b,k),M=Math.max(_,I),F=Math.min(w,N);r=d_e(r,L,P),a=d_e(a,M,F)}else r=d_e(r,m,b),a=d_e(a,_,w);return{newWidth:r,newHeight:a}},t.prototype.setBoundingClientRect=function(){var r=1/(this.props.scale||1);if(this.props.bounds==="parent"){var a=this.parentNode;if(a){var s=a.getBoundingClientRect();this.parentLeft=s.left*r,this.parentTop=s.top*r}}if(this.props.bounds&&typeof this.props.bounds!="string"){var o=this.props.bounds.getBoundingClientRect();this.targetLeft=o.left*r,this.targetTop=o.top*r}if(this.resizable){var u=this.resizable.getBoundingClientRect(),h=u.left,f=u.top,p=u.right,m=u.bottom;this.resizableLeft=h*r,this.resizableRight=p*r,this.resizableTop=f*r,this.resizableBottom=m*r}},t.prototype.onResizeStart=function(r,a){if(!(!this.resizable||!this.window)){var s=0,o=0;if(r.nativeEvent&&qFr(r.nativeEvent)?(s=r.nativeEvent.clientX,o=r.nativeEvent.clientY):r.nativeEvent&&f_e(r.nativeEvent)&&(s=r.nativeEvent.touches[0].clientX,o=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var u=this.props.onResizeStart(r,a,this.resizable);if(u===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var h,f=this.window.getComputedStyle(this.resizable);if(f.flexBasis!=="auto"){var p=this.parentNode;if(p){var m=this.window.getComputedStyle(p).flexDirection;this.flexDir=m.startsWith("row")?"row":"column",h=f.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var b={original:{x:s,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:TC(TC({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:a,flexBasis:h};this.setState(b)}},t.prototype.onMouseMove=function(r){var a=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&f_e(r))try{r.preventDefault(),r.stopPropagation()}catch{}var s=this.props,o=s.maxWidth,u=s.maxHeight,h=s.minWidth,f=s.minHeight,p=f_e(r)?r.touches[0].clientX:r.clientX,m=f_e(r)?r.touches[0].clientY:r.clientY,b=this.state,_=b.direction,w=b.original,S=b.width,C=b.height,A=this.getParentSize(),k=HFr(A,this.window.innerWidth,this.window.innerHeight,o,u,h,f);o=k.maxWidth,u=k.maxHeight,h=k.minWidth,f=k.minHeight;var I=this.calculateNewSizeFromDirection(p,m),N=I.newHeight,L=I.newWidth,P=this.calculateNewMaxFromBoundary(o,u);this.props.snap&&this.props.snap.x&&(L=zfn(L,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(N=zfn(N,this.props.snap.y,this.props.snapGap));var M=this.calculateNewSizeFromAspectRatio(L,N,{width:P.maxWidth,height:P.maxHeight},{width:h,height:f});if(L=M.newWidth,N=M.newHeight,this.props.grid){var F=Ufn(L,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),U=Ufn(N,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),$=this.props.snapGap||0,G=$===0||Math.abs(F-L)<=$?F:L,B=$===0||Math.abs(U-N)<=$?U:N;L=G,N=B}var Z={width:L-w.width,height:N-w.height};if(this.delta=Z,S&&typeof S=="string"){if(S.endsWith("%")){var z=L/A.width*100;L="".concat(z,"%")}else if(S.endsWith("vw")){var Y=L/this.window.innerWidth*100;L="".concat(Y,"vw")}else if(S.endsWith("vh")){var W=L/this.window.innerHeight*100;L="".concat(W,"vh")}}if(C&&typeof C=="string"){if(C.endsWith("%")){var z=N/A.height*100;N="".concat(z,"%")}else if(C.endsWith("vw")){var Y=N/this.window.innerWidth*100;N="".concat(Y,"vw")}else if(C.endsWith("vh")){var W=N/this.window.innerHeight*100;N="".concat(W,"vh")}}var Q={width:this.createSizeForCssProperty(L,"width"),height:this.createSizeForCssProperty(N,"height")};this.flexDir==="row"?Q.flexBasis=Q.width:this.flexDir==="column"&&(Q.flexBasis=Q.height);var V=this.state.width!==Q.width,j=this.state.height!==Q.height,ee=this.state.flexBasis!==Q.flexBasis,te=V||j||ee;te&&w9.flushSync(function(){a.setState(Q)}),this.props.onResize&&te&&this.props.onResize(r,_,this.resizable,Z)}},t.prototype.onMouseUp=function(r){var a,s,o=this.state,u=o.isResizing,h=o.direction;o.original,!(!u||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(r,h,this.resizable,this.delta),this.props.size&&this.setState({width:(a=this.props.size.width)!==null&&a!==void 0?a:"auto",height:(s=this.props.size.height)!==null&&s!==void 0?s:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:TC(TC({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(r){var a,s;this.setState({width:(a=r.width)!==null&&a!==void 0?a:"auto",height:(s=r.height)!==null&&s!==void 0?s:"auto"})},t.prototype.renderResizer=function(){var r=this,a=this.props,s=a.enable,o=a.handleStyles,u=a.handleClasses,h=a.handleWrapperStyle,f=a.handleWrapperClass,p=a.handleComponent;if(!s)return null;var m=Object.keys(s).map(function(b){return s[b]!==!1?ct.jsx(UFr,{direction:b,onResizeStart:r.onResizeStart,replaceStyles:o&&o[b],className:u&&u[b],children:p&&p[b]?p[b]:null},b):null});return ct.jsx("div",{className:f,style:h,children:m})},t.prototype.render=function(){var r=this,a=Object.keys(this.props).reduce(function(u,h){return YFr.indexOf(h)!==-1||(u[h]=r.props[h]),u},{}),s=TC(TC(TC({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(s.flexBasis=this.state.flexBasis);var o=this.props.as||"div";return ct.jsxs(o,TC({style:s,className:this.props.className},a,{ref:function(u){u&&(r.resizable=u)},children:[this.state.isResizing&&ct.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(ue.PureComponent);const e7n=["shift","alt","meta","mod","ctrl","control"],jFr={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function EO(e){return(jFr[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function t7n(e){return e7n.includes(e)}function OXe(e,t=","){return e.toLowerCase().split(t)}function LXe(e,t="+",r=">",a=!1,s,o){let u=[],h=!1;e=e.trim(),e.includes(r)?(h=!0,u=e.toLocaleLowerCase().split(r).map(m=>EO(m))):u=e.toLocaleLowerCase().split(t).map(m=>EO(m));const f={alt:u.includes("alt"),ctrl:u.includes("ctrl")||u.includes("control"),shift:u.includes("shift"),meta:u.includes("meta"),mod:u.includes("mod"),useKey:a},p=u.filter(m=>!e7n.includes(m));return{...f,keys:p,description:s,isSequence:h,hotkey:e,metadata:o}}typeof document<"u"&&(document.addEventListener("keydown",e=>{e.code!==void 0&&n7n([EO(e.code)])}),document.addEventListener("keyup",e=>{e.code!==void 0&&r7n([EO(e.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{E7.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{E7.clear()},0)}));const E7=new Set;function Jdt(e){return Array.isArray(e)}function WFr(e,t=","){return(Jdt(e)?e:e.split(t)).every(r=>E7.has(r.trim().toLowerCase()))}function n7n(e){const t=Array.isArray(e)?e:[e];E7.has("meta")&&E7.forEach(r=>{t7n(r)||E7.delete(r.toLowerCase())}),t.forEach(r=>{E7.add(r.toLowerCase())})}function r7n(e){const t=Array.isArray(e)?e:[e];e==="meta"?E7.clear():t.forEach(r=>{E7.delete(r.toLowerCase())})}function KFr(e,t,r){(typeof r=="function"&&r(e,t)||r===!0)&&e.preventDefault()}function XFr(e,t,r){return typeof r=="function"?r(e,t):r===!0||r===void 0}const QFr=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function ZFr(e){return i7n(e,QFr)}function i7n(e,t=!1){const{target:r,composed:a}=e;let s,o;return JFr(r)&&a?(s=e.composedPath()[0]&&e.composedPath()[0].tagName,o=e.composedPath()[0]&&e.composedPath()[0].role):(s=r&&r.tagName,o=r&&r.role),Jdt(t)?!!(s&&t&&t.some(u=>u.toLowerCase()===s.toLowerCase()||u===o)):!!(s&&t&&t)}function JFr(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function e$r(e,t){return e.length===0&&t?!1:t?e.some(r=>t.includes(r))||e.includes("*"):!0}const t$r=(e,t,r=!1)=>{const{alt:a,meta:s,mod:o,shift:u,ctrl:h,keys:f,useKey:p}=t,{code:m,key:b,ctrlKey:_,metaKey:w,shiftKey:S,altKey:C}=e,A=EO(m);if(p&&(f==null?void 0:f.length)===1&&f.includes(b.toLowerCase()))return!0;if(!(f!=null&&f.includes(A))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(A))return!1;if(!r){if(a!==C&&A!=="alt"||u!==S&&A!=="shift")return!1;if(o){if(!w&&!_)return!1}else if(s!==w&&A!=="meta"&&A!=="os"||h!==_&&A!=="ctrl"&&A!=="control")return!1}return f&&f.length===1&&f.includes(A)?!0:f&&f.length>0?f.includes(A)?WFr(f):!1:!f||f.length===0},n$r=ue.createContext(void 0),r$r=()=>ue.useContext(n$r);function a7n(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce((r,a)=>r&&a7n(e[a],t[a]),!0):e===t}const i$r=ue.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),a$r=()=>ue.useContext(i$r);function s$r(e){const t=ue.useRef(void 0);return a7n(t.current,e)||(t.current=e),t.current}const qfn=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},o$r=typeof window<"u"?ue.useLayoutEffect:ue.useEffect;function J4a(e,t,r,a){const s=ue.useRef(null),o=ue.useRef(!1),u=Array.isArray(r)?Array.isArray(a)?void 0:a:r,h=Jdt(e)?e.join(u==null?void 0:u.delimiter):e,f=Array.isArray(r)?r:Array.isArray(a)?a:void 0,p=ue.useCallback(t,f??[]),m=ue.useRef(p);f?m.current=p:m.current=t;const b=s$r(u),{activeScopes:_}=a$r(),w=r$r();return o$r(()=>{if((b==null?void 0:b.enabled)===!1||!e$r(_,b==null?void 0:b.scopes))return;let S=[],C;const A=(L,P=!1)=>{var M;if(!(ZFr(L)&&!i7n(L,b==null?void 0:b.enableOnFormTags))){if(s.current!==null){const F=s.current.getRootNode();if((F instanceof Document||F instanceof ShadowRoot)&&F.activeElement!==s.current&&!s.current.contains(F.activeElement)){qfn(L);return}}(M=L.target)!=null&&M.isContentEditable&&!(b!=null&&b.enableOnContentEditable)||OXe(h,b==null?void 0:b.delimiter).forEach(F=>{var $,G,B,Z;if(F.includes((b==null?void 0:b.splitKey)??"+")&&F.includes((b==null?void 0:b.sequenceSplitKey)??">")){console.warn(`Hotkey ${F} contains both ${(b==null?void 0:b.splitKey)??"+"} and ${(b==null?void 0:b.sequenceSplitKey)??">"} which is not supported.`);return}const U=LXe(F,b==null?void 0:b.splitKey,b==null?void 0:b.sequenceSplitKey,b==null?void 0:b.useKey,b==null?void 0:b.description,b==null?void 0:b.metadata);if(U.isSequence){C=setTimeout(()=>{S=[]},(b==null?void 0:b.sequenceTimeoutMs)??1e3);const z=U.useKey?L.key:EO(L.code);if(t7n(z.toLowerCase()))return;S.push(z);const Y=($=U.keys)==null?void 0:$[S.length-1];if(z!==Y){S=[],C&&clearTimeout(C);return}S.length===((G=U.keys)==null?void 0:G.length)&&(m.current(L,U),C&&clearTimeout(C),S=[])}else if(t$r(L,U,b==null?void 0:b.ignoreModifiers)||(B=U.keys)!=null&&B.includes("*")){if((Z=b==null?void 0:b.ignoreEventWhen)!=null&&Z.call(b,L)||P&&o.current)return;if(KFr(L,U,b==null?void 0:b.preventDefault),!XFr(L,U,b==null?void 0:b.enabled)){qfn(L);return}m.current(L,U),P||(o.current=!0)}})}},k=L=>{L.code!==void 0&&(n7n(EO(L.code)),((b==null?void 0:b.keydown)===void 0&&(b==null?void 0:b.keyup)!==!0||b!=null&&b.keydown)&&A(L))},I=L=>{L.code!==void 0&&(r7n(EO(L.code)),o.current=!1,b!=null&&b.keyup&&A(L,!0))},N=s.current||(u==null?void 0:u.document)||document;return N.addEventListener("keyup",I,u==null?void 0:u.eventListenerOptions),N.addEventListener("keydown",k,u==null?void 0:u.eventListenerOptions),w&&OXe(h,b==null?void 0:b.delimiter).forEach(L=>{w.addHotkey(LXe(L,b==null?void 0:b.splitKey,b==null?void 0:b.sequenceSplitKey,b==null?void 0:b.useKey,b==null?void 0:b.description,b==null?void 0:b.metadata))}),()=>{N.removeEventListener("keyup",I,u==null?void 0:u.eventListenerOptions),N.removeEventListener("keydown",k,u==null?void 0:u.eventListenerOptions),w&&OXe(h,b==null?void 0:b.delimiter).forEach(L=>{w.removeHotkey(LXe(L,b==null?void 0:b.splitKey,b==null?void 0:b.sequenceSplitKey,b==null?void 0:b.useKey,b==null?void 0:b.description,b==null?void 0:b.metadata))}),S=[],C&&clearTimeout(C)}},[h,b,_]),s}var s7n={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",u=0;u15?p="…"+h.slice(s-15,s):p=h.slice(0,s);var m;o+15":">","<":"<",'"':""","'":"'"},f$r=/[&><"']/g;function p$r(e){return String(e).replace(f$r,t=>d$r[t])}var u7n=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},g$r=function(t){var r=u7n(t);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},m$r=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},b$r=function(t){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},uu={deflt:c$r,escape:p$r,hyphenate:h$r,getBaseElem:u7n,isCharacterBox:g$r,protocolFromUrl:b$r},Xae={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function y$r(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}let eft=class{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var r in Xae)if(Xae.hasOwnProperty(r)){var a=Xae[r];this[r]=t[r]!==void 0?a.processor?a.processor(t[r]):t[r]:y$r(a)}}reportNonstrict(t,r,a){var s=this.strict;if(typeof s=="function"&&(s=s(t,r,a)),!(!s||s==="ignore")){if(s===!0||s==="error")throw new Bi("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),a);s==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+s+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,a){var s=this.strict;if(typeof s=="function")try{s=s(t,r,a)}catch{s="error"}return!s||s==="ignore"?!1:s===!0||s==="error"?!0:s==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+s+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var r=uu.protocolFromUrl(t.url);if(r==null)return!1;t.protocol=r}var a=typeof this.trust=="function"?this.trust(t):this.trust;return!!a}},IN=class{constructor(t,r,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=a}sup(){return DC[v$r[this.id]]}sub(){return DC[_$r[this.id]]}fracNum(){return DC[w$r[this.id]]}fracDen(){return DC[E$r[this.id]]}cramp(){return DC[x$r[this.id]]}text(){return DC[S$r[this.id]]}isTight(){return this.size>=2}};var tft=0,OSe=1,qV=2,B7=3,Xse=4,iS=5,yj=6,jy=7,DC=[new IN(tft,0,!1),new IN(OSe,0,!0),new IN(qV,1,!1),new IN(B7,1,!0),new IN(Xse,2,!1),new IN(iS,2,!0),new IN(yj,3,!1),new IN(jy,3,!0)],v$r=[Xse,iS,Xse,iS,yj,jy,yj,jy],_$r=[iS,iS,iS,iS,jy,jy,jy,jy],w$r=[qV,B7,Xse,iS,yj,jy,yj,jy],E$r=[B7,B7,iS,iS,jy,jy,jy,jy],x$r=[OSe,OSe,B7,B7,iS,iS,jy,jy],S$r=[tft,OSe,qV,B7,qV,B7,qV,B7],Zs={DISPLAY:DC[tft],TEXT:DC[qV],SCRIPT:DC[Xse],SCRIPTSCRIPT:DC[yj]},vst=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function T$r(e){for(var t=0;t=s[0]&&e<=s[1])return r.name}return null}var qEe=[];vst.forEach(e=>e.blocks.forEach(t=>qEe.push(...t)));function h7n(e){for(var t=0;t=qEe[t]&&e<=qEe[t+1])return!0;return!1}var OH=80,C$r=function(t,r){return"M95,"+(622+t+r)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 c69,-144,104.5,-217.7,106.5,-221 l`+t/2.075+" -"+t+` c5.3,-9.3,12,-14,20,-14 H400000v`+(40+t)+`H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},A$r=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 l`+t/2.084+" -"+t+` c4.7,-7.3,11,-11,19,-11 H40000v`+(40+t)+`H1012.3 s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},k$r=function(t,r){return"M983 "+(10+t+r)+` l`+t/3.13+" -"+t+` c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},R$r=function(t,r){return"M424,"+(2398+t+r)+` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000 v`+(40+t)+`H1014.6 s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+` h400000v`+(40+t)+"h-400000z"},I$r=function(t,r){return"M473,"+(2713+t+r)+` c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},N$r=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},O$r=function(t,r,a){var s=a-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+` H742v`+s+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},L$r=function(t,r,a){r=1e3*r;var s="";switch(t){case"sqrtMain":s=C$r(r,OH);break;case"sqrtSize1":s=A$r(r,OH);break;case"sqrtSize2":s=k$r(r,OH);break;case"sqrtSize3":s=R$r(r,OH);break;case"sqrtSize4":s=I$r(r,OH);break;case"sqrtTall":s=O$r(r,OH,a)}return s},D$r=function(t,r){switch(t){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},Hfn={doubleleftarrow:`M262 157 l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l -10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 -33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 -17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 -5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 435 0h399565z`,leftgroupunder:`M400000 262 H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 -3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 -18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 -196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 -4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 -152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 -5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 -16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 -40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l -6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 -174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 -3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 -10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 -18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 -7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 -27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 -2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 -8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 -1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 -11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 -11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 -11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, -5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, -11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, -11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, -11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 -27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 -84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 -119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, 1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},M$r=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84 H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, -36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, 949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, -210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+` c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let Fle=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;rr.toText();return this.children.map(t).join("")}};var YC={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},g_e={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Vfn={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function d7n(e,t){YC[e]=t}function nft(e,t,r){if(!YC[t])throw new Error("Font metrics not found for font: "+t+".");var a=e.charCodeAt(0),s=YC[t][a];if(!s&&e[0]in Vfn&&(a=Vfn[e[0]].charCodeAt(0),s=YC[t][a]),!s&&r==="text"&&h7n(a)&&(s=YC[t][77]),s)return{depth:s[0],height:s[1],italic:s[2],skew:s[3],width:s[4]}}var DXe={};function P$r(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!DXe[t]){var r=DXe[t]={cssEmPerMu:g_e.quad[t]/18};for(var a in g_e)g_e.hasOwnProperty(a)&&(r[a]=g_e[a][t])}return DXe[t]}var B$r=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Yfn=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],jfn=function(t,r){return r.size<2?t:B$r[t-1][r.size-1]};let f7n=class CB{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||CB.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Yfn[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var a in t)t.hasOwnProperty(a)&&(r[a]=t[a]);return new CB(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:jfn(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Yfn[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=jfn(CB.BASESIZE,t);return this.size===r&&this.textSize===CB.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==CB.BASESIZE?["sizing","reset-size"+this.size,"size"+CB.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=P$r(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};f7n.BASESIZE=6;var _st={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},F$r={ex:!0,em:!0,mu:!0},p7n=function(t){return typeof t!="string"&&(t=t.unit),t in _st||t in F$r||t==="ex"},kf=function(t,r){var a;if(t.unit in _st)a=_st[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")a=r.fontMetrics().cssEmPerMu;else{var s;if(r.style.isTight()?s=r.havingStyle(r.style.text()):s=r,t.unit==="ex")a=s.fontMetrics().xHeight;else if(t.unit==="em")a=s.fontMetrics().quad;else throw new Bi("Invalid unit: '"+t.unit+"'");s!==r&&(a*=s.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*a,r.maxSize)},Xi=function(t){return+t.toFixed(4)+"em"},zO=function(t){return t.filter(r=>r).join(" ")},g7n=function(t,r,a){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=a||{},r){r.style.isTight()&&this.classes.push("mtight");var s=r.getColor();s&&(this.style.color=s)}},m7n=function(t){var r=document.createElement(t);r.className=zO(this.classes);for(var a in this.style)this.style.hasOwnProperty(a)&&(r.style[a]=this.style[a]);for(var s in this.attributes)this.attributes.hasOwnProperty(s)&&r.setAttribute(s,this.attributes[s]);for(var o=0;o/=\x00-\x1f]/,b7n=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+uu.escape(zO(this.classes))+'"');var a="";for(var s in this.style)this.style.hasOwnProperty(s)&&(a+=uu.hyphenate(s)+":"+this.style[s]+";");a&&(r+=' style="'+uu.escape(a)+'"');for(var o in this.attributes)if(this.attributes.hasOwnProperty(o)){if($$r.test(o))throw new Bi("Invalid attribute name '"+o+"'");r+=" "+o+'="'+uu.escape(this.attributes[o])+'"'}r+=">";for(var u=0;u",r};let $le=class{constructor(t,r,a,s){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,g7n.call(this,t,a,s),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return m7n.call(this,"span")}toMarkup(){return b7n.call(this,"span")}},rft=class{constructor(t,r,a,s){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,g7n.call(this,r,s),this.children=a||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return m7n.call(this,"a")}toMarkup(){return b7n.call(this,"a")}},U$r=class{constructor(t,r,a){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=t,this.classes=["mord"],this.style=a}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r in this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);return t}toMarkup(){var t=''+uu.escape(this.alt)+'0&&(r=document.createElement("span"),r.style.marginRight=Xi(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=zO(this.classes));for(var a in this.style)this.style.hasOwnProperty(a)&&(r=r||document.createElement("span"),r.style[a]=this.style[a]);return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="0&&(a+="margin-right:"+this.italic+"em;");for(var s in this.style)this.style.hasOwnProperty(s)&&(a+=uu.hyphenate(s)+":"+this.style[s]+";");a&&(t=!0,r+=' style="'+uu.escape(a)+'"');var o=uu.escape(this.text);return t?(r+=">",r+=o,r+="",r):o}},X7=class{constructor(t,r){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&r.setAttribute(a,this.attributes[a]);for(var s=0;s':''}},wst=class{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&r.setAttribute(a,this.attributes[a]);return r}toMarkup(){var t=" but got "+String(e)+".")}var q$r={bin:1,close:1,inner:1,open:1,punct:1,rel:1},H$r={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ed={math:{},text:{}};function ke(e,t,r,a,s,o){ed[e][s]={font:t,group:r,replace:a},o&&a&&(ed[e][a]=ed[e][s])}var Pe="math",hi="text",nt="main",jt="ams",Kd="accent-token",Na="bin",pv="close",EW="inner",Xs="mathord",L1="op-token",Vw="open",W5e="punct",en="rel",gR="spacing",Sn="textord";ke(Pe,nt,en,"≡","\\equiv",!0);ke(Pe,nt,en,"≺","\\prec",!0);ke(Pe,nt,en,"≻","\\succ",!0);ke(Pe,nt,en,"∼","\\sim",!0);ke(Pe,nt,en,"⊥","\\perp");ke(Pe,nt,en,"⪯","\\preceq",!0);ke(Pe,nt,en,"⪰","\\succeq",!0);ke(Pe,nt,en,"≃","\\simeq",!0);ke(Pe,nt,en,"∣","\\mid",!0);ke(Pe,nt,en,"≪","\\ll",!0);ke(Pe,nt,en,"≫","\\gg",!0);ke(Pe,nt,en,"≍","\\asymp",!0);ke(Pe,nt,en,"∥","\\parallel");ke(Pe,nt,en,"⋈","\\bowtie",!0);ke(Pe,nt,en,"⌣","\\smile",!0);ke(Pe,nt,en,"⊑","\\sqsubseteq",!0);ke(Pe,nt,en,"⊒","\\sqsupseteq",!0);ke(Pe,nt,en,"≐","\\doteq",!0);ke(Pe,nt,en,"⌢","\\frown",!0);ke(Pe,nt,en,"∋","\\ni",!0);ke(Pe,nt,en,"∝","\\propto",!0);ke(Pe,nt,en,"⊢","\\vdash",!0);ke(Pe,nt,en,"⊣","\\dashv",!0);ke(Pe,nt,en,"∋","\\owns");ke(Pe,nt,W5e,".","\\ldotp");ke(Pe,nt,W5e,"⋅","\\cdotp");ke(Pe,nt,Sn,"#","\\#");ke(hi,nt,Sn,"#","\\#");ke(Pe,nt,Sn,"&","\\&");ke(hi,nt,Sn,"&","\\&");ke(Pe,nt,Sn,"ℵ","\\aleph",!0);ke(Pe,nt,Sn,"∀","\\forall",!0);ke(Pe,nt,Sn,"ℏ","\\hbar",!0);ke(Pe,nt,Sn,"∃","\\exists",!0);ke(Pe,nt,Sn,"∇","\\nabla",!0);ke(Pe,nt,Sn,"♭","\\flat",!0);ke(Pe,nt,Sn,"ℓ","\\ell",!0);ke(Pe,nt,Sn,"♮","\\natural",!0);ke(Pe,nt,Sn,"♣","\\clubsuit",!0);ke(Pe,nt,Sn,"℘","\\wp",!0);ke(Pe,nt,Sn,"♯","\\sharp",!0);ke(Pe,nt,Sn,"♢","\\diamondsuit",!0);ke(Pe,nt,Sn,"ℜ","\\Re",!0);ke(Pe,nt,Sn,"♡","\\heartsuit",!0);ke(Pe,nt,Sn,"ℑ","\\Im",!0);ke(Pe,nt,Sn,"♠","\\spadesuit",!0);ke(Pe,nt,Sn,"§","\\S",!0);ke(hi,nt,Sn,"§","\\S");ke(Pe,nt,Sn,"¶","\\P",!0);ke(hi,nt,Sn,"¶","\\P");ke(Pe,nt,Sn,"†","\\dag");ke(hi,nt,Sn,"†","\\dag");ke(hi,nt,Sn,"†","\\textdagger");ke(Pe,nt,Sn,"‡","\\ddag");ke(hi,nt,Sn,"‡","\\ddag");ke(hi,nt,Sn,"‡","\\textdaggerdbl");ke(Pe,nt,pv,"⎱","\\rmoustache",!0);ke(Pe,nt,Vw,"⎰","\\lmoustache",!0);ke(Pe,nt,pv,"⟯","\\rgroup",!0);ke(Pe,nt,Vw,"⟮","\\lgroup",!0);ke(Pe,nt,Na,"∓","\\mp",!0);ke(Pe,nt,Na,"⊖","\\ominus",!0);ke(Pe,nt,Na,"⊎","\\uplus",!0);ke(Pe,nt,Na,"⊓","\\sqcap",!0);ke(Pe,nt,Na,"∗","\\ast");ke(Pe,nt,Na,"⊔","\\sqcup",!0);ke(Pe,nt,Na,"◯","\\bigcirc",!0);ke(Pe,nt,Na,"∙","\\bullet",!0);ke(Pe,nt,Na,"‡","\\ddagger");ke(Pe,nt,Na,"≀","\\wr",!0);ke(Pe,nt,Na,"⨿","\\amalg");ke(Pe,nt,Na,"&","\\And");ke(Pe,nt,en,"⟵","\\longleftarrow",!0);ke(Pe,nt,en,"⇐","\\Leftarrow",!0);ke(Pe,nt,en,"⟸","\\Longleftarrow",!0);ke(Pe,nt,en,"⟶","\\longrightarrow",!0);ke(Pe,nt,en,"⇒","\\Rightarrow",!0);ke(Pe,nt,en,"⟹","\\Longrightarrow",!0);ke(Pe,nt,en,"↔","\\leftrightarrow",!0);ke(Pe,nt,en,"⟷","\\longleftrightarrow",!0);ke(Pe,nt,en,"⇔","\\Leftrightarrow",!0);ke(Pe,nt,en,"⟺","\\Longleftrightarrow",!0);ke(Pe,nt,en,"↦","\\mapsto",!0);ke(Pe,nt,en,"⟼","\\longmapsto",!0);ke(Pe,nt,en,"↗","\\nearrow",!0);ke(Pe,nt,en,"↩","\\hookleftarrow",!0);ke(Pe,nt,en,"↪","\\hookrightarrow",!0);ke(Pe,nt,en,"↘","\\searrow",!0);ke(Pe,nt,en,"↼","\\leftharpoonup",!0);ke(Pe,nt,en,"⇀","\\rightharpoonup",!0);ke(Pe,nt,en,"↙","\\swarrow",!0);ke(Pe,nt,en,"↽","\\leftharpoondown",!0);ke(Pe,nt,en,"⇁","\\rightharpoondown",!0);ke(Pe,nt,en,"↖","\\nwarrow",!0);ke(Pe,nt,en,"⇌","\\rightleftharpoons",!0);ke(Pe,jt,en,"≮","\\nless",!0);ke(Pe,jt,en,"","\\@nleqslant");ke(Pe,jt,en,"","\\@nleqq");ke(Pe,jt,en,"⪇","\\lneq",!0);ke(Pe,jt,en,"≨","\\lneqq",!0);ke(Pe,jt,en,"","\\@lvertneqq");ke(Pe,jt,en,"⋦","\\lnsim",!0);ke(Pe,jt,en,"⪉","\\lnapprox",!0);ke(Pe,jt,en,"⊀","\\nprec",!0);ke(Pe,jt,en,"⋠","\\npreceq",!0);ke(Pe,jt,en,"⋨","\\precnsim",!0);ke(Pe,jt,en,"⪹","\\precnapprox",!0);ke(Pe,jt,en,"≁","\\nsim",!0);ke(Pe,jt,en,"","\\@nshortmid");ke(Pe,jt,en,"∤","\\nmid",!0);ke(Pe,jt,en,"⊬","\\nvdash",!0);ke(Pe,jt,en,"⊭","\\nvDash",!0);ke(Pe,jt,en,"⋪","\\ntriangleleft");ke(Pe,jt,en,"⋬","\\ntrianglelefteq",!0);ke(Pe,jt,en,"⊊","\\subsetneq",!0);ke(Pe,jt,en,"","\\@varsubsetneq");ke(Pe,jt,en,"⫋","\\subsetneqq",!0);ke(Pe,jt,en,"","\\@varsubsetneqq");ke(Pe,jt,en,"≯","\\ngtr",!0);ke(Pe,jt,en,"","\\@ngeqslant");ke(Pe,jt,en,"","\\@ngeqq");ke(Pe,jt,en,"⪈","\\gneq",!0);ke(Pe,jt,en,"≩","\\gneqq",!0);ke(Pe,jt,en,"","\\@gvertneqq");ke(Pe,jt,en,"⋧","\\gnsim",!0);ke(Pe,jt,en,"⪊","\\gnapprox",!0);ke(Pe,jt,en,"⊁","\\nsucc",!0);ke(Pe,jt,en,"⋡","\\nsucceq",!0);ke(Pe,jt,en,"⋩","\\succnsim",!0);ke(Pe,jt,en,"⪺","\\succnapprox",!0);ke(Pe,jt,en,"≆","\\ncong",!0);ke(Pe,jt,en,"","\\@nshortparallel");ke(Pe,jt,en,"∦","\\nparallel",!0);ke(Pe,jt,en,"⊯","\\nVDash",!0);ke(Pe,jt,en,"⋫","\\ntriangleright");ke(Pe,jt,en,"⋭","\\ntrianglerighteq",!0);ke(Pe,jt,en,"","\\@nsupseteqq");ke(Pe,jt,en,"⊋","\\supsetneq",!0);ke(Pe,jt,en,"","\\@varsupsetneq");ke(Pe,jt,en,"⫌","\\supsetneqq",!0);ke(Pe,jt,en,"","\\@varsupsetneqq");ke(Pe,jt,en,"⊮","\\nVdash",!0);ke(Pe,jt,en,"⪵","\\precneqq",!0);ke(Pe,jt,en,"⪶","\\succneqq",!0);ke(Pe,jt,en,"","\\@nsubseteqq");ke(Pe,jt,Na,"⊴","\\unlhd");ke(Pe,jt,Na,"⊵","\\unrhd");ke(Pe,jt,en,"↚","\\nleftarrow",!0);ke(Pe,jt,en,"↛","\\nrightarrow",!0);ke(Pe,jt,en,"⇍","\\nLeftarrow",!0);ke(Pe,jt,en,"⇏","\\nRightarrow",!0);ke(Pe,jt,en,"↮","\\nleftrightarrow",!0);ke(Pe,jt,en,"⇎","\\nLeftrightarrow",!0);ke(Pe,jt,en,"△","\\vartriangle");ke(Pe,jt,Sn,"ℏ","\\hslash");ke(Pe,jt,Sn,"▽","\\triangledown");ke(Pe,jt,Sn,"◊","\\lozenge");ke(Pe,jt,Sn,"Ⓢ","\\circledS");ke(Pe,jt,Sn,"®","\\circledR");ke(hi,jt,Sn,"®","\\circledR");ke(Pe,jt,Sn,"∡","\\measuredangle",!0);ke(Pe,jt,Sn,"∄","\\nexists");ke(Pe,jt,Sn,"℧","\\mho");ke(Pe,jt,Sn,"Ⅎ","\\Finv",!0);ke(Pe,jt,Sn,"⅁","\\Game",!0);ke(Pe,jt,Sn,"‵","\\backprime");ke(Pe,jt,Sn,"▲","\\blacktriangle");ke(Pe,jt,Sn,"▼","\\blacktriangledown");ke(Pe,jt,Sn,"■","\\blacksquare");ke(Pe,jt,Sn,"⧫","\\blacklozenge");ke(Pe,jt,Sn,"★","\\bigstar");ke(Pe,jt,Sn,"∢","\\sphericalangle",!0);ke(Pe,jt,Sn,"∁","\\complement",!0);ke(Pe,jt,Sn,"ð","\\eth",!0);ke(hi,nt,Sn,"ð","ð");ke(Pe,jt,Sn,"╱","\\diagup");ke(Pe,jt,Sn,"╲","\\diagdown");ke(Pe,jt,Sn,"□","\\square");ke(Pe,jt,Sn,"□","\\Box");ke(Pe,jt,Sn,"◊","\\Diamond");ke(Pe,jt,Sn,"¥","\\yen",!0);ke(hi,jt,Sn,"¥","\\yen",!0);ke(Pe,jt,Sn,"✓","\\checkmark",!0);ke(hi,jt,Sn,"✓","\\checkmark");ke(Pe,jt,Sn,"ℶ","\\beth",!0);ke(Pe,jt,Sn,"ℸ","\\daleth",!0);ke(Pe,jt,Sn,"ℷ","\\gimel",!0);ke(Pe,jt,Sn,"ϝ","\\digamma",!0);ke(Pe,jt,Sn,"ϰ","\\varkappa");ke(Pe,jt,Vw,"┌","\\@ulcorner",!0);ke(Pe,jt,pv,"┐","\\@urcorner",!0);ke(Pe,jt,Vw,"└","\\@llcorner",!0);ke(Pe,jt,pv,"┘","\\@lrcorner",!0);ke(Pe,jt,en,"≦","\\leqq",!0);ke(Pe,jt,en,"⩽","\\leqslant",!0);ke(Pe,jt,en,"⪕","\\eqslantless",!0);ke(Pe,jt,en,"≲","\\lesssim",!0);ke(Pe,jt,en,"⪅","\\lessapprox",!0);ke(Pe,jt,en,"≊","\\approxeq",!0);ke(Pe,jt,Na,"⋖","\\lessdot");ke(Pe,jt,en,"⋘","\\lll",!0);ke(Pe,jt,en,"≶","\\lessgtr",!0);ke(Pe,jt,en,"⋚","\\lesseqgtr",!0);ke(Pe,jt,en,"⪋","\\lesseqqgtr",!0);ke(Pe,jt,en,"≑","\\doteqdot");ke(Pe,jt,en,"≓","\\risingdotseq",!0);ke(Pe,jt,en,"≒","\\fallingdotseq",!0);ke(Pe,jt,en,"∽","\\backsim",!0);ke(Pe,jt,en,"⋍","\\backsimeq",!0);ke(Pe,jt,en,"⫅","\\subseteqq",!0);ke(Pe,jt,en,"⋐","\\Subset",!0);ke(Pe,jt,en,"⊏","\\sqsubset",!0);ke(Pe,jt,en,"≼","\\preccurlyeq",!0);ke(Pe,jt,en,"⋞","\\curlyeqprec",!0);ke(Pe,jt,en,"≾","\\precsim",!0);ke(Pe,jt,en,"⪷","\\precapprox",!0);ke(Pe,jt,en,"⊲","\\vartriangleleft");ke(Pe,jt,en,"⊴","\\trianglelefteq");ke(Pe,jt,en,"⊨","\\vDash",!0);ke(Pe,jt,en,"⊪","\\Vvdash",!0);ke(Pe,jt,en,"⌣","\\smallsmile");ke(Pe,jt,en,"⌢","\\smallfrown");ke(Pe,jt,en,"≏","\\bumpeq",!0);ke(Pe,jt,en,"≎","\\Bumpeq",!0);ke(Pe,jt,en,"≧","\\geqq",!0);ke(Pe,jt,en,"⩾","\\geqslant",!0);ke(Pe,jt,en,"⪖","\\eqslantgtr",!0);ke(Pe,jt,en,"≳","\\gtrsim",!0);ke(Pe,jt,en,"⪆","\\gtrapprox",!0);ke(Pe,jt,Na,"⋗","\\gtrdot");ke(Pe,jt,en,"⋙","\\ggg",!0);ke(Pe,jt,en,"≷","\\gtrless",!0);ke(Pe,jt,en,"⋛","\\gtreqless",!0);ke(Pe,jt,en,"⪌","\\gtreqqless",!0);ke(Pe,jt,en,"≖","\\eqcirc",!0);ke(Pe,jt,en,"≗","\\circeq",!0);ke(Pe,jt,en,"≜","\\triangleq",!0);ke(Pe,jt,en,"∼","\\thicksim");ke(Pe,jt,en,"≈","\\thickapprox");ke(Pe,jt,en,"⫆","\\supseteqq",!0);ke(Pe,jt,en,"⋑","\\Supset",!0);ke(Pe,jt,en,"⊐","\\sqsupset",!0);ke(Pe,jt,en,"≽","\\succcurlyeq",!0);ke(Pe,jt,en,"⋟","\\curlyeqsucc",!0);ke(Pe,jt,en,"≿","\\succsim",!0);ke(Pe,jt,en,"⪸","\\succapprox",!0);ke(Pe,jt,en,"⊳","\\vartriangleright");ke(Pe,jt,en,"⊵","\\trianglerighteq");ke(Pe,jt,en,"⊩","\\Vdash",!0);ke(Pe,jt,en,"∣","\\shortmid");ke(Pe,jt,en,"∥","\\shortparallel");ke(Pe,jt,en,"≬","\\between",!0);ke(Pe,jt,en,"⋔","\\pitchfork",!0);ke(Pe,jt,en,"∝","\\varpropto");ke(Pe,jt,en,"◀","\\blacktriangleleft");ke(Pe,jt,en,"∴","\\therefore",!0);ke(Pe,jt,en,"∍","\\backepsilon");ke(Pe,jt,en,"▶","\\blacktriangleright");ke(Pe,jt,en,"∵","\\because",!0);ke(Pe,jt,en,"⋘","\\llless");ke(Pe,jt,en,"⋙","\\gggtr");ke(Pe,jt,Na,"⊲","\\lhd");ke(Pe,jt,Na,"⊳","\\rhd");ke(Pe,jt,en,"≂","\\eqsim",!0);ke(Pe,nt,en,"⋈","\\Join");ke(Pe,jt,en,"≑","\\Doteq",!0);ke(Pe,jt,Na,"∔","\\dotplus",!0);ke(Pe,jt,Na,"∖","\\smallsetminus");ke(Pe,jt,Na,"⋒","\\Cap",!0);ke(Pe,jt,Na,"⋓","\\Cup",!0);ke(Pe,jt,Na,"⩞","\\doublebarwedge",!0);ke(Pe,jt,Na,"⊟","\\boxminus",!0);ke(Pe,jt,Na,"⊞","\\boxplus",!0);ke(Pe,jt,Na,"⋇","\\divideontimes",!0);ke(Pe,jt,Na,"⋉","\\ltimes",!0);ke(Pe,jt,Na,"⋊","\\rtimes",!0);ke(Pe,jt,Na,"⋋","\\leftthreetimes",!0);ke(Pe,jt,Na,"⋌","\\rightthreetimes",!0);ke(Pe,jt,Na,"⋏","\\curlywedge",!0);ke(Pe,jt,Na,"⋎","\\curlyvee",!0);ke(Pe,jt,Na,"⊝","\\circleddash",!0);ke(Pe,jt,Na,"⊛","\\circledast",!0);ke(Pe,jt,Na,"⋅","\\centerdot");ke(Pe,jt,Na,"⊺","\\intercal",!0);ke(Pe,jt,Na,"⋒","\\doublecap");ke(Pe,jt,Na,"⋓","\\doublecup");ke(Pe,jt,Na,"⊠","\\boxtimes",!0);ke(Pe,jt,en,"⇢","\\dashrightarrow",!0);ke(Pe,jt,en,"⇠","\\dashleftarrow",!0);ke(Pe,jt,en,"⇇","\\leftleftarrows",!0);ke(Pe,jt,en,"⇆","\\leftrightarrows",!0);ke(Pe,jt,en,"⇚","\\Lleftarrow",!0);ke(Pe,jt,en,"↞","\\twoheadleftarrow",!0);ke(Pe,jt,en,"↢","\\leftarrowtail",!0);ke(Pe,jt,en,"↫","\\looparrowleft",!0);ke(Pe,jt,en,"⇋","\\leftrightharpoons",!0);ke(Pe,jt,en,"↶","\\curvearrowleft",!0);ke(Pe,jt,en,"↺","\\circlearrowleft",!0);ke(Pe,jt,en,"↰","\\Lsh",!0);ke(Pe,jt,en,"⇈","\\upuparrows",!0);ke(Pe,jt,en,"↿","\\upharpoonleft",!0);ke(Pe,jt,en,"⇃","\\downharpoonleft",!0);ke(Pe,nt,en,"⊶","\\origof",!0);ke(Pe,nt,en,"⊷","\\imageof",!0);ke(Pe,jt,en,"⊸","\\multimap",!0);ke(Pe,jt,en,"↭","\\leftrightsquigarrow",!0);ke(Pe,jt,en,"⇉","\\rightrightarrows",!0);ke(Pe,jt,en,"⇄","\\rightleftarrows",!0);ke(Pe,jt,en,"↠","\\twoheadrightarrow",!0);ke(Pe,jt,en,"↣","\\rightarrowtail",!0);ke(Pe,jt,en,"↬","\\looparrowright",!0);ke(Pe,jt,en,"↷","\\curvearrowright",!0);ke(Pe,jt,en,"↻","\\circlearrowright",!0);ke(Pe,jt,en,"↱","\\Rsh",!0);ke(Pe,jt,en,"⇊","\\downdownarrows",!0);ke(Pe,jt,en,"↾","\\upharpoonright",!0);ke(Pe,jt,en,"⇂","\\downharpoonright",!0);ke(Pe,jt,en,"⇝","\\rightsquigarrow",!0);ke(Pe,jt,en,"⇝","\\leadsto");ke(Pe,jt,en,"⇛","\\Rrightarrow",!0);ke(Pe,jt,en,"↾","\\restriction");ke(Pe,nt,Sn,"‘","`");ke(Pe,nt,Sn,"$","\\$");ke(hi,nt,Sn,"$","\\$");ke(hi,nt,Sn,"$","\\textdollar");ke(Pe,nt,Sn,"%","\\%");ke(hi,nt,Sn,"%","\\%");ke(Pe,nt,Sn,"_","\\_");ke(hi,nt,Sn,"_","\\_");ke(hi,nt,Sn,"_","\\textunderscore");ke(Pe,nt,Sn,"∠","\\angle",!0);ke(Pe,nt,Sn,"∞","\\infty",!0);ke(Pe,nt,Sn,"′","\\prime");ke(Pe,nt,Sn,"△","\\triangle");ke(Pe,nt,Sn,"Γ","\\Gamma",!0);ke(Pe,nt,Sn,"Δ","\\Delta",!0);ke(Pe,nt,Sn,"Θ","\\Theta",!0);ke(Pe,nt,Sn,"Λ","\\Lambda",!0);ke(Pe,nt,Sn,"Ξ","\\Xi",!0);ke(Pe,nt,Sn,"Π","\\Pi",!0);ke(Pe,nt,Sn,"Σ","\\Sigma",!0);ke(Pe,nt,Sn,"Υ","\\Upsilon",!0);ke(Pe,nt,Sn,"Φ","\\Phi",!0);ke(Pe,nt,Sn,"Ψ","\\Psi",!0);ke(Pe,nt,Sn,"Ω","\\Omega",!0);ke(Pe,nt,Sn,"A","Α");ke(Pe,nt,Sn,"B","Β");ke(Pe,nt,Sn,"E","Ε");ke(Pe,nt,Sn,"Z","Ζ");ke(Pe,nt,Sn,"H","Η");ke(Pe,nt,Sn,"I","Ι");ke(Pe,nt,Sn,"K","Κ");ke(Pe,nt,Sn,"M","Μ");ke(Pe,nt,Sn,"N","Ν");ke(Pe,nt,Sn,"O","Ο");ke(Pe,nt,Sn,"P","Ρ");ke(Pe,nt,Sn,"T","Τ");ke(Pe,nt,Sn,"X","Χ");ke(Pe,nt,Sn,"¬","\\neg",!0);ke(Pe,nt,Sn,"¬","\\lnot");ke(Pe,nt,Sn,"⊤","\\top");ke(Pe,nt,Sn,"⊥","\\bot");ke(Pe,nt,Sn,"∅","\\emptyset");ke(Pe,jt,Sn,"∅","\\varnothing");ke(Pe,nt,Xs,"α","\\alpha",!0);ke(Pe,nt,Xs,"β","\\beta",!0);ke(Pe,nt,Xs,"γ","\\gamma",!0);ke(Pe,nt,Xs,"δ","\\delta",!0);ke(Pe,nt,Xs,"ϵ","\\epsilon",!0);ke(Pe,nt,Xs,"ζ","\\zeta",!0);ke(Pe,nt,Xs,"η","\\eta",!0);ke(Pe,nt,Xs,"θ","\\theta",!0);ke(Pe,nt,Xs,"ι","\\iota",!0);ke(Pe,nt,Xs,"κ","\\kappa",!0);ke(Pe,nt,Xs,"λ","\\lambda",!0);ke(Pe,nt,Xs,"μ","\\mu",!0);ke(Pe,nt,Xs,"ν","\\nu",!0);ke(Pe,nt,Xs,"ξ","\\xi",!0);ke(Pe,nt,Xs,"ο","\\omicron",!0);ke(Pe,nt,Xs,"π","\\pi",!0);ke(Pe,nt,Xs,"ρ","\\rho",!0);ke(Pe,nt,Xs,"σ","\\sigma",!0);ke(Pe,nt,Xs,"τ","\\tau",!0);ke(Pe,nt,Xs,"υ","\\upsilon",!0);ke(Pe,nt,Xs,"ϕ","\\phi",!0);ke(Pe,nt,Xs,"χ","\\chi",!0);ke(Pe,nt,Xs,"ψ","\\psi",!0);ke(Pe,nt,Xs,"ω","\\omega",!0);ke(Pe,nt,Xs,"ε","\\varepsilon",!0);ke(Pe,nt,Xs,"ϑ","\\vartheta",!0);ke(Pe,nt,Xs,"ϖ","\\varpi",!0);ke(Pe,nt,Xs,"ϱ","\\varrho",!0);ke(Pe,nt,Xs,"ς","\\varsigma",!0);ke(Pe,nt,Xs,"φ","\\varphi",!0);ke(Pe,nt,Na,"∗","*",!0);ke(Pe,nt,Na,"+","+");ke(Pe,nt,Na,"−","-",!0);ke(Pe,nt,Na,"⋅","\\cdot",!0);ke(Pe,nt,Na,"∘","\\circ",!0);ke(Pe,nt,Na,"÷","\\div",!0);ke(Pe,nt,Na,"±","\\pm",!0);ke(Pe,nt,Na,"×","\\times",!0);ke(Pe,nt,Na,"∩","\\cap",!0);ke(Pe,nt,Na,"∪","\\cup",!0);ke(Pe,nt,Na,"∖","\\setminus",!0);ke(Pe,nt,Na,"∧","\\land");ke(Pe,nt,Na,"∨","\\lor");ke(Pe,nt,Na,"∧","\\wedge",!0);ke(Pe,nt,Na,"∨","\\vee",!0);ke(Pe,nt,Sn,"√","\\surd");ke(Pe,nt,Vw,"⟨","\\langle",!0);ke(Pe,nt,Vw,"∣","\\lvert");ke(Pe,nt,Vw,"∥","\\lVert");ke(Pe,nt,pv,"?","?");ke(Pe,nt,pv,"!","!");ke(Pe,nt,pv,"⟩","\\rangle",!0);ke(Pe,nt,pv,"∣","\\rvert");ke(Pe,nt,pv,"∥","\\rVert");ke(Pe,nt,en,"=","=");ke(Pe,nt,en,":",":");ke(Pe,nt,en,"≈","\\approx",!0);ke(Pe,nt,en,"≅","\\cong",!0);ke(Pe,nt,en,"≥","\\ge");ke(Pe,nt,en,"≥","\\geq",!0);ke(Pe,nt,en,"←","\\gets");ke(Pe,nt,en,">","\\gt",!0);ke(Pe,nt,en,"∈","\\in",!0);ke(Pe,nt,en,"","\\@not");ke(Pe,nt,en,"⊂","\\subset",!0);ke(Pe,nt,en,"⊃","\\supset",!0);ke(Pe,nt,en,"⊆","\\subseteq",!0);ke(Pe,nt,en,"⊇","\\supseteq",!0);ke(Pe,jt,en,"⊈","\\nsubseteq",!0);ke(Pe,jt,en,"⊉","\\nsupseteq",!0);ke(Pe,nt,en,"⊨","\\models");ke(Pe,nt,en,"←","\\leftarrow",!0);ke(Pe,nt,en,"≤","\\le");ke(Pe,nt,en,"≤","\\leq",!0);ke(Pe,nt,en,"<","\\lt",!0);ke(Pe,nt,en,"→","\\rightarrow",!0);ke(Pe,nt,en,"→","\\to");ke(Pe,jt,en,"≱","\\ngeq",!0);ke(Pe,jt,en,"≰","\\nleq",!0);ke(Pe,nt,gR," ","\\ ");ke(Pe,nt,gR," ","\\space");ke(Pe,nt,gR," ","\\nobreakspace");ke(hi,nt,gR," ","\\ ");ke(hi,nt,gR," "," ");ke(hi,nt,gR," ","\\space");ke(hi,nt,gR," ","\\nobreakspace");ke(Pe,nt,gR,null,"\\nobreak");ke(Pe,nt,gR,null,"\\allowbreak");ke(Pe,nt,W5e,",",",");ke(Pe,nt,W5e,";",";");ke(Pe,jt,Na,"⊼","\\barwedge",!0);ke(Pe,jt,Na,"⊻","\\veebar",!0);ke(Pe,nt,Na,"⊙","\\odot",!0);ke(Pe,nt,Na,"⊕","\\oplus",!0);ke(Pe,nt,Na,"⊗","\\otimes",!0);ke(Pe,nt,Sn,"∂","\\partial",!0);ke(Pe,nt,Na,"⊘","\\oslash",!0);ke(Pe,jt,Na,"⊚","\\circledcirc",!0);ke(Pe,jt,Na,"⊡","\\boxdot",!0);ke(Pe,nt,Na,"△","\\bigtriangleup");ke(Pe,nt,Na,"▽","\\bigtriangledown");ke(Pe,nt,Na,"†","\\dagger");ke(Pe,nt,Na,"⋄","\\diamond");ke(Pe,nt,Na,"⋆","\\star");ke(Pe,nt,Na,"◃","\\triangleleft");ke(Pe,nt,Na,"▹","\\triangleright");ke(Pe,nt,Vw,"{","\\{");ke(hi,nt,Sn,"{","\\{");ke(hi,nt,Sn,"{","\\textbraceleft");ke(Pe,nt,pv,"}","\\}");ke(hi,nt,Sn,"}","\\}");ke(hi,nt,Sn,"}","\\textbraceright");ke(Pe,nt,Vw,"{","\\lbrace");ke(Pe,nt,pv,"}","\\rbrace");ke(Pe,nt,Vw,"[","\\lbrack",!0);ke(hi,nt,Sn,"[","\\lbrack",!0);ke(Pe,nt,pv,"]","\\rbrack",!0);ke(hi,nt,Sn,"]","\\rbrack",!0);ke(Pe,nt,Vw,"(","\\lparen",!0);ke(Pe,nt,pv,")","\\rparen",!0);ke(hi,nt,Sn,"<","\\textless",!0);ke(hi,nt,Sn,">","\\textgreater",!0);ke(Pe,nt,Vw,"⌊","\\lfloor",!0);ke(Pe,nt,pv,"⌋","\\rfloor",!0);ke(Pe,nt,Vw,"⌈","\\lceil",!0);ke(Pe,nt,pv,"⌉","\\rceil",!0);ke(Pe,nt,Sn,"\\","\\backslash");ke(Pe,nt,Sn,"∣","|");ke(Pe,nt,Sn,"∣","\\vert");ke(hi,nt,Sn,"|","\\textbar",!0);ke(Pe,nt,Sn,"∥","\\|");ke(Pe,nt,Sn,"∥","\\Vert");ke(hi,nt,Sn,"∥","\\textbardbl");ke(hi,nt,Sn,"~","\\textasciitilde");ke(hi,nt,Sn,"\\","\\textbackslash");ke(hi,nt,Sn,"^","\\textasciicircum");ke(Pe,nt,en,"↑","\\uparrow",!0);ke(Pe,nt,en,"⇑","\\Uparrow",!0);ke(Pe,nt,en,"↓","\\downarrow",!0);ke(Pe,nt,en,"⇓","\\Downarrow",!0);ke(Pe,nt,en,"↕","\\updownarrow",!0);ke(Pe,nt,en,"⇕","\\Updownarrow",!0);ke(Pe,nt,L1,"∐","\\coprod");ke(Pe,nt,L1,"⋁","\\bigvee");ke(Pe,nt,L1,"⋀","\\bigwedge");ke(Pe,nt,L1,"⨄","\\biguplus");ke(Pe,nt,L1,"⋂","\\bigcap");ke(Pe,nt,L1,"⋃","\\bigcup");ke(Pe,nt,L1,"∫","\\int");ke(Pe,nt,L1,"∫","\\intop");ke(Pe,nt,L1,"∬","\\iint");ke(Pe,nt,L1,"∭","\\iiint");ke(Pe,nt,L1,"∏","\\prod");ke(Pe,nt,L1,"∑","\\sum");ke(Pe,nt,L1,"⨂","\\bigotimes");ke(Pe,nt,L1,"⨁","\\bigoplus");ke(Pe,nt,L1,"⨀","\\bigodot");ke(Pe,nt,L1,"∮","\\oint");ke(Pe,nt,L1,"∯","\\oiint");ke(Pe,nt,L1,"∰","\\oiiint");ke(Pe,nt,L1,"⨆","\\bigsqcup");ke(Pe,nt,L1,"∫","\\smallint");ke(hi,nt,EW,"…","\\textellipsis");ke(Pe,nt,EW,"…","\\mathellipsis");ke(hi,nt,EW,"…","\\ldots",!0);ke(Pe,nt,EW,"…","\\ldots",!0);ke(Pe,nt,EW,"⋯","\\@cdots",!0);ke(Pe,nt,EW,"⋱","\\ddots",!0);ke(Pe,nt,Sn,"⋮","\\varvdots");ke(hi,nt,Sn,"⋮","\\varvdots");ke(Pe,nt,Kd,"ˊ","\\acute");ke(Pe,nt,Kd,"ˋ","\\grave");ke(Pe,nt,Kd,"¨","\\ddot");ke(Pe,nt,Kd,"~","\\tilde");ke(Pe,nt,Kd,"ˉ","\\bar");ke(Pe,nt,Kd,"˘","\\breve");ke(Pe,nt,Kd,"ˇ","\\check");ke(Pe,nt,Kd,"^","\\hat");ke(Pe,nt,Kd,"⃗","\\vec");ke(Pe,nt,Kd,"˙","\\dot");ke(Pe,nt,Kd,"˚","\\mathring");ke(Pe,nt,Xs,"","\\@imath");ke(Pe,nt,Xs,"","\\@jmath");ke(Pe,nt,Sn,"ı","ı");ke(Pe,nt,Sn,"ȷ","ȷ");ke(hi,nt,Sn,"ı","\\i",!0);ke(hi,nt,Sn,"ȷ","\\j",!0);ke(hi,nt,Sn,"ß","\\ss",!0);ke(hi,nt,Sn,"æ","\\ae",!0);ke(hi,nt,Sn,"œ","\\oe",!0);ke(hi,nt,Sn,"ø","\\o",!0);ke(hi,nt,Sn,"Æ","\\AE",!0);ke(hi,nt,Sn,"Œ","\\OE",!0);ke(hi,nt,Sn,"Ø","\\O",!0);ke(hi,nt,Kd,"ˊ","\\'");ke(hi,nt,Kd,"ˋ","\\`");ke(hi,nt,Kd,"ˆ","\\^");ke(hi,nt,Kd,"˜","\\~");ke(hi,nt,Kd,"ˉ","\\=");ke(hi,nt,Kd,"˘","\\u");ke(hi,nt,Kd,"˙","\\.");ke(hi,nt,Kd,"¸","\\c");ke(hi,nt,Kd,"˚","\\r");ke(hi,nt,Kd,"ˇ","\\v");ke(hi,nt,Kd,"¨",'\\"');ke(hi,nt,Kd,"˝","\\H");ke(hi,nt,Kd,"◯","\\textcircled");var y7n={"--":!0,"---":!0,"``":!0,"''":!0};ke(hi,nt,Sn,"–","--",!0);ke(hi,nt,Sn,"–","\\textendash");ke(hi,nt,Sn,"—","---",!0);ke(hi,nt,Sn,"—","\\textemdash");ke(hi,nt,Sn,"‘","`",!0);ke(hi,nt,Sn,"‘","\\textquoteleft");ke(hi,nt,Sn,"’","'",!0);ke(hi,nt,Sn,"’","\\textquoteright");ke(hi,nt,Sn,"“","``",!0);ke(hi,nt,Sn,"“","\\textquotedblleft");ke(hi,nt,Sn,"”","''",!0);ke(hi,nt,Sn,"”","\\textquotedblright");ke(Pe,nt,Sn,"°","\\degree",!0);ke(hi,nt,Sn,"°","\\degree");ke(hi,nt,Sn,"°","\\textdegree",!0);ke(Pe,nt,Sn,"£","\\pounds");ke(Pe,nt,Sn,"£","\\mathsterling",!0);ke(hi,nt,Sn,"£","\\pounds");ke(hi,nt,Sn,"£","\\textsterling",!0);ke(Pe,jt,Sn,"✠","\\maltese");ke(hi,jt,Sn,"✠","\\maltese");var Kfn='0123456789/@."';for(var MXe=0;MXe0)return R3(o,p,s,r,u.concat(m));if(f){var b,_;if(f==="boldsymbol"){var w=j$r(o,s,r,u,a);b=w.fontName,_=[w.fontClass]}else h?(b=w7n[f].fontName,_=[f]):(b=v_e(f,r.fontWeight,r.fontShape),_=[f,r.fontWeight,r.fontShape]);if(K5e(o,b,s).metrics)return R3(o,b,s,r,u.concat(_));if(y7n.hasOwnProperty(o)&&b.slice(0,10)==="Typewriter"){for(var S=[],C=0;C{if(zO(e.classes)!==zO(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var a in e.style)if(e.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;for(var s in t.style)if(t.style.hasOwnProperty(s)&&e.style[s]!==t.style[s])return!1;return!0},X$r=e=>{for(var t=0;tr&&(r=u.height),u.depth>a&&(a=u.depth),u.maxFontSize>s&&(s=u.maxFontSize)}t.height=r,t.depth=a,t.maxFontSize=s},N2=function(t,r,a,s){var o=new $le(t,r,a,s);return ift(o),o},v7n=(e,t,r,a)=>new $le(e,t,r,a),Q$r=function(t,r,a){var s=N2([t],[],r);return s.height=Math.max(a||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),s.style.borderBottomWidth=Xi(s.height),s.maxFontSize=1,s},Z$r=function(t,r,a,s){var o=new rft(t,r,a,s);return ift(o),o},_7n=function(t){var r=new Fle(t);return ift(r),r},J$r=function(t,r){return t instanceof Fle?N2([],[t],r):t},eUr=function(t){if(t.positionType==="individualShift"){for(var r=t.children,a=[r[0]],s=-r[0].shift-r[0].elem.depth,o=s,u=1;u{var r=N2(["mspace"],[],t),a=kf(e,t);return r.style.marginRight=Xi(a),r},v_e=function(t,r,a){var s="";switch(t){case"amsrm":s="AMS";break;case"textrm":s="Main";break;case"textsf":s="SansSerif";break;case"texttt":s="Typewriter";break;default:s=t}var o;return r==="textbf"&&a==="textit"?o="BoldItalic":r==="textbf"?o="Bold":r==="textit"?o="Italic":o="Regular",s+"-"+o},w7n={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},E7n={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},rUr=function(t,r){var[a,s,o]=E7n[t],u=new GO(a),h=new X7([u],{width:Xi(s),height:Xi(o),style:"width:"+Xi(s),viewBox:"0 0 "+1e3*s+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),f=v7n(["overlay"],[h],r);return f.height=o,f.style.height=Xi(o),f.style.width=Xi(s),f},Jn={fontMap:w7n,makeSymbol:R3,mathsym:Y$r,makeSpan:N2,makeSvgSpan:v7n,makeLineSpan:Q$r,makeAnchor:Z$r,makeFragment:_7n,wrapFragment:J$r,makeVList:tUr,makeOrd:W$r,makeGlue:nUr,staticSvg:rUr,svgData:E7n,tryCombineChars:X$r},Cf={number:3,unit:"mu"},dB={number:4,unit:"mu"},G6={number:5,unit:"mu"},iUr={mord:{mop:Cf,mbin:dB,mrel:G6,minner:Cf},mop:{mord:Cf,mop:Cf,mrel:G6,minner:Cf},mbin:{mord:dB,mop:dB,mopen:dB,minner:dB},mrel:{mord:G6,mop:G6,mopen:G6,minner:G6},mopen:{},mclose:{mop:Cf,mbin:dB,mrel:G6,minner:Cf},mpunct:{mord:Cf,mop:Cf,mrel:G6,mopen:Cf,mclose:Cf,mpunct:Cf,minner:Cf},minner:{mord:Cf,mop:Cf,mbin:dB,mrel:G6,mopen:Cf,mpunct:Cf,minner:Cf}},aUr={mord:{mop:Cf},mop:{mord:Cf,mop:Cf},mbin:{},mrel:{},mopen:{},mclose:{mop:Cf},mpunct:{},minner:{mop:Cf}},x7n={},DSe={},MSe={};function pa(e){for(var{type:t,names:r,props:a,handler:s,htmlBuilder:o,mathmlBuilder:u}=e,h={type:t,numArgs:a.numArgs,argTypes:a.argTypes,allowedInArgument:!!a.allowedInArgument,allowedInText:!!a.allowedInText,allowedInMath:a.allowedInMath===void 0?!0:a.allowedInMath,numOptionalArgs:a.numOptionalArgs||0,infix:!!a.infix,primitive:!!a.primitive,handler:s},f=0;f{var A=C.classes[0],k=S.classes[0];A==="mbin"&&oUr.includes(k)?C.classes[0]="mord":k==="mbin"&&sUr.includes(A)&&(S.classes[0]="mord")},{node:b},_,w),e0n(o,(S,C)=>{var A=xst(C),k=xst(S),I=A&&k?S.hasClass("mtight")?aUr[A][k]:iUr[A][k]:null;if(I)return Jn.makeGlue(I,p)},{node:b},_,w),o},e0n=function e(t,r,a,s,o){s&&t.push(s);for(var u=0;u_=>{t.splice(b+1,0,_),u++})(u)}s&&t.pop()},S7n=function(t){return t instanceof Fle||t instanceof rft||t instanceof $le&&t.hasClass("enclosing")?t:null},uUr=function e(t,r){var a=S7n(t);if(a){var s=a.children;if(s.length){if(r==="right")return e(s[s.length-1],"right");if(r==="left")return e(s[0],"left")}}return t},xst=function(t,r){return t?(r&&(t=uUr(t,r)),cUr[t.classes[0]]||null):null},Qse=function(t,r){var a=["nulldelimiter"].concat(t.baseSizingClasses());return Q7(r.concat(a))},Yc=function(t,r,a){if(!t)return Q7();if(DSe[t.type]){var s=DSe[t.type](t,r);if(a&&r.size!==a.size){s=Q7(r.sizingClasses(a),[s],r);var o=r.sizeMultiplier/a.sizeMultiplier;s.height*=o,s.depth*=o}return s}else throw new Bi("Got group of unknown type: '"+t.type+"'")};function __e(e,t){var r=Q7(["base"],e,t),a=Q7(["strut"]);return a.style.height=Xi(r.height+r.depth),r.depth&&(a.style.verticalAlign=Xi(-r.depth)),r.children.unshift(a),r}function Sst(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var a=Op(e,t,"root"),s;a.length===2&&a[1].hasClass("tag")&&(s=a.pop());for(var o=[],u=[],h=0;h0&&(o.push(__e(u,t)),u=[]),o.push(a[h]));u.length>0&&o.push(__e(u,t));var p;r?(p=__e(Op(r,t,!0)),p.classes=["tag"],o.push(p)):s&&o.push(s);var m=Q7(["katex-html"],o);if(m.setAttribute("aria-hidden","true"),p){var b=p.children[0];b.style.height=Xi(m.height+m.depth),m.depth&&(b.style.verticalAlign=Xi(-m.depth))}return m}function T7n(e){return new Fle(e)}let Iw=class{constructor(t,r,a){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=a||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=zO(this.classes));for(var a=0;a0&&(t+=' class ="'+uu.escape(zO(this.classes))+'"'),t+=">";for(var a=0;a",t}toText(){return this.children.map(t=>t.toText()).join("")}},jC=class{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return uu.escape(this.toText())}toText(){return this.text}},hUr=class{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Xi(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}};var xi={MathNode:Iw,TextNode:jC,SpaceNode:hUr,newDocumentFragment:T7n},bS=function(t,r,a){return ed[r][t]&&ed[r][t].replace&&t.charCodeAt(0)!==55349&&!(y7n.hasOwnProperty(t)&&a&&(a.fontFamily&&a.fontFamily.slice(4,6)==="tt"||a.font&&a.font.slice(4,6)==="tt"))&&(t=ed[r][t].replace),new xi.TextNode(t)},aft=function(t){return t.length===1?t[0]:new xi.MathNode("mrow",t)},sft=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var a=r.font;if(!a||a==="mathnormal")return null;var s=t.mode;if(a==="mathit")return"italic";if(a==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(a==="mathbf")return"bold";if(a==="mathbb")return"double-struck";if(a==="mathsfit")return"sans-serif-italic";if(a==="mathfrak")return"fraktur";if(a==="mathscr"||a==="mathcal")return"script";if(a==="mathsf")return"sans-serif";if(a==="mathtt")return"monospace";var o=t.text;if(["\\imath","\\jmath"].includes(o))return null;ed[s][o]&&ed[s][o].replace&&(o=ed[s][o].replace);var u=Jn.fontMap[a].fontName;return nft(o,u,s)?Jn.fontMap[a].variant:null};function $Xe(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof jC&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof jC&&r.text===","}else return!1}var o_=function(t,r,a){if(t.length===1){var s=Ph(t[0],r);return a&&s instanceof Iw&&s.type==="mo"&&(s.setAttribute("lspace","0em"),s.setAttribute("rspace","0em")),[s]}for(var o=[],u,h=0;h=1&&(u.type==="mn"||$Xe(u))){var p=f.children[0];p instanceof Iw&&p.type==="mn"&&(p.children=[...u.children,...p.children],o.pop())}else if(u.type==="mi"&&u.children.length===1){var m=u.children[0];if(m instanceof jC&&m.text==="̸"&&(f.type==="mo"||f.type==="mi"||f.type==="mn")){var b=f.children[0];b instanceof jC&&b.text.length>0&&(b.text=b.text.slice(0,1)+"̸"+b.text.slice(1),o.pop())}}}o.push(f),u=f}return o},qO=function(t,r,a){return aft(o_(t,r,a))},Ph=function(t,r){if(!t)return new xi.MathNode("mrow");if(MSe[t.type]){var a=MSe[t.type](t,r);return a}else throw new Bi("Got group of unknown type: '"+t.type+"'")};function t0n(e,t,r,a,s){var o=o_(e,r),u;o.length===1&&o[0]instanceof Iw&&["mrow","mtable"].includes(o[0].type)?u=o[0]:u=new xi.MathNode("mrow",o);var h=new xi.MathNode("annotation",[new xi.TextNode(t)]);h.setAttribute("encoding","application/x-tex");var f=new xi.MathNode("semantics",[u,h]),p=new xi.MathNode("math",[f]);p.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&p.setAttribute("display","block");var m=s?"katex":"katex-mathml";return Jn.makeSpan([m],[p])}var C7n=function(t){return new f7n({style:t.displayMode?Zs.DISPLAY:Zs.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},A7n=function(t,r){if(r.displayMode){var a=["katex-display"];r.leqno&&a.push("leqno"),r.fleqn&&a.push("fleqn"),t=Jn.makeSpan(a,[t])}return t},dUr=function(t,r,a){var s=C7n(a),o;if(a.output==="mathml")return t0n(t,r,s,a.displayMode,!0);if(a.output==="html"){var u=Sst(t,s);o=Jn.makeSpan(["katex"],[u])}else{var h=t0n(t,r,s,a.displayMode,!1),f=Sst(t,s);o=Jn.makeSpan(["katex"],[h,f])}return A7n(o,a)},fUr=function(t,r,a){var s=C7n(a),o=Sst(t,s),u=Jn.makeSpan(["katex"],[o]);return A7n(u,a)},pUr={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},gUr=function(t){var r=new xi.MathNode("mo",[new xi.TextNode(pUr[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},mUr={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},bUr=function(t){return t.type==="ordgroup"?t.body.length:1},yUr=function(t,r){function a(){var h=4e5,f=t.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(f)){var p=t,m=bUr(p.base),b,_,w;if(m>5)f==="widehat"||f==="widecheck"?(b=420,h=2364,w=.42,_=f+"4"):(b=312,h=2340,w=.34,_="tilde4");else{var S=[1,1,2,2,3,3][m];f==="widehat"||f==="widecheck"?(h=[0,1062,2364,2364,2364][S],b=[0,239,300,360,420][S],w=[0,.24,.3,.3,.36,.42][S],_=f+S):(h=[0,600,1033,2339,2340][S],b=[0,260,286,306,312][S],w=[0,.26,.286,.3,.306,.34][S],_="tilde"+S)}var C=new GO(_),A=new X7([C],{width:"100%",height:Xi(w),viewBox:"0 0 "+h+" "+b,preserveAspectRatio:"none"});return{span:Jn.makeSvgSpan([],[A],r),minWidth:0,height:w}}else{var k=[],I=mUr[f],[N,L,P]=I,M=P/1e3,F=N.length,U,$;if(F===1){var G=I[3];U=["hide-tail"],$=[G]}else if(F===2)U=["halfarrow-left","halfarrow-right"],$=["xMinYMin","xMaxYMin"];else if(F===3)U=["brace-left","brace-center","brace-right"],$=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support `+F+" children.");for(var B=0;B0&&(s.style.minWidth=Xi(o)),s},vUr=function(t,r,a,s,o){var u,h=t.height+t.depth+a+s;if(/fbox|color|angl/.test(r)){if(u=Jn.makeSpan(["stretchy",r],[],o),r==="fbox"){var f=o.color&&o.getColor();f&&(u.style.borderColor=f)}}else{var p=[];/^[bx]cancel$/.test(r)&&p.push(new wst({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&p.push(new wst({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var m=new X7(p,{width:"100%",height:Xi(h)});u=Jn.makeSvgSpan([],[m],o)}return u.height=h,u.style.height=Xi(h),u},Z7={encloseSpan:vUr,mathMLnode:gUr,svgSpan:yUr};function El(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function oft(e){var t=X5e(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function X5e(e){return e&&(e.type==="atom"||H$r.hasOwnProperty(e.type))?e:null}var lft=(e,t)=>{var r,a,s;e&&e.type==="supsub"?(a=El(e.base,"accent"),r=a.base,e.base=r,s=G$r(Yc(e,t)),e.base=a):(a=El(e,"accent"),r=a.base);var o=Yc(r,t.havingCrampedStyle()),u=a.isShifty&&uu.isCharacterBox(r),h=0;if(u){var f=uu.getBaseElem(r),p=Yc(f,t.havingCrampedStyle());h=Wfn(p).skew}var m=a.label==="\\c",b=m?o.height+o.depth:Math.min(o.height,t.fontMetrics().xHeight),_;if(a.isStretchy)_=Z7.svgSpan(a,t),_=Jn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:_,wrapperClasses:["svg-align"],wrapperStyle:h>0?{width:"calc(100% - "+Xi(2*h)+")",marginLeft:Xi(2*h)}:void 0}]},t);else{var w,S;a.label==="\\vec"?(w=Jn.staticSvg("vec",t),S=Jn.svgData.vec[1]):(w=Jn.makeOrd({mode:a.mode,text:a.label},t,"textord"),w=Wfn(w),w.italic=0,S=w.width,m&&(b+=w.depth)),_=Jn.makeSpan(["accent-body"],[w]);var C=a.label==="\\textcircled";C&&(_.classes.push("accent-full"),b=o.height);var A=h;C||(A-=S/2),_.style.left=Xi(A),a.label==="\\textcircled"&&(_.style.top=".2em"),_=Jn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:-b},{type:"elem",elem:_}]},t)}var k=Jn.makeSpan(["mord","accent"],[_],t);return s?(s.children[0]=k,s.height=Math.max(k.height,s.height),s.classes[0]="mord",s):k},k7n=(e,t)=>{var r=e.isStretchy?Z7.mathMLnode(e.label):new xi.MathNode("mo",[bS(e.label,e.mode)]),a=new xi.MathNode("mover",[Ph(e.base,t),r]);return a.setAttribute("accent","true"),a},_Ur=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));pa({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=PSe(t[0]),a=!_Ur.test(e.funcName),s=!a||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:a,isShifty:s,base:r}},htmlBuilder:lft,mathmlBuilder:k7n});pa({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],a=e.parser.mode;return a==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:lft,mathmlBuilder:k7n});pa({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0];return{type:"accentUnder",mode:r.mode,label:a,base:s}},htmlBuilder:(e,t)=>{var r=Yc(e.base,t),a=Z7.svgSpan(e,t),s=e.label==="\\utilde"?.12:0,o=Jn.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:s},{type:"elem",elem:r}]},t);return Jn.makeSpan(["mord","accentunder"],[o],t)},mathmlBuilder:(e,t)=>{var r=Z7.mathMLnode(e.label),a=new xi.MathNode("munder",[Ph(e.base,t),r]);return a.setAttribute("accentunder","true"),a}});var w_e=e=>{var t=new xi.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};pa({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a,funcName:s}=e;return{type:"xArrow",mode:a.mode,label:s,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,a=t.havingStyle(r.sup()),s=Jn.wrapFragment(Yc(e.body,a,t),t),o=e.label.slice(0,2)==="\\x"?"x":"cd";s.classes.push(o+"-arrow-pad");var u;e.below&&(a=t.havingStyle(r.sub()),u=Jn.wrapFragment(Yc(e.below,a,t),t),u.classes.push(o+"-arrow-pad"));var h=Z7.svgSpan(e,t),f=-t.fontMetrics().axisHeight+.5*h.height,p=-t.fontMetrics().axisHeight-.5*h.height-.111;(s.depth>.25||e.label==="\\xleftequilibrium")&&(p-=s.depth);var m;if(u){var b=-t.fontMetrics().axisHeight+u.height+.5*h.height+.111;m=Jn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:p},{type:"elem",elem:h,shift:f},{type:"elem",elem:u,shift:b}]},t)}else m=Jn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:p},{type:"elem",elem:h,shift:f}]},t);return m.children[0].children[0].children[1].classes.push("svg-align"),Jn.makeSpan(["mrel","x-arrow"],[m],t)},mathmlBuilder(e,t){var r=Z7.mathMLnode(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(e.body){var s=w_e(Ph(e.body,t));if(e.below){var o=w_e(Ph(e.below,t));a=new xi.MathNode("munderover",[r,o,s])}else a=new xi.MathNode("mover",[r,s])}else if(e.below){var u=w_e(Ph(e.below,t));a=new xi.MathNode("munder",[r,u])}else a=w_e(),a=new xi.MathNode("mover",[r,a]);return a}});var wUr=Jn.makeSpan;function R7n(e,t){var r=Op(e.body,t,!0);return wUr([e.mclass],r,t)}function I7n(e,t){var r,a=o_(e.body,t);return e.mclass==="minner"?r=new xi.MathNode("mpadded",a):e.mclass==="mord"?e.isCharacterBox?(r=a[0],r.type="mi"):r=new xi.MathNode("mi",a):(e.isCharacterBox?(r=a[0],r.type="mo"):r=new xi.MathNode("mo",a),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}pa({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:a}=e,s=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+a.slice(5),body:X0(s),isCharacterBox:uu.isCharacterBox(s)}},htmlBuilder:R7n,mathmlBuilder:I7n});var Q5e=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};pa({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:Q5e(t[0]),body:X0(t[1]),isCharacterBox:uu.isCharacterBox(t[1])}}});pa({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:a}=e,s=t[1],o=t[0],u;a!=="\\stackrel"?u=Q5e(s):u="mrel";var h={type:"op",mode:s.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:X0(s)},f={type:"supsub",mode:o.mode,base:h,sup:a==="\\underset"?null:o,sub:a==="\\underset"?o:null};return{type:"mclass",mode:r.mode,mclass:u,body:[f],isCharacterBox:uu.isCharacterBox(f)}},htmlBuilder:R7n,mathmlBuilder:I7n});pa({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:Q5e(t[0]),body:X0(t[0])}},htmlBuilder(e,t){var r=Op(e.body,t,!0),a=Jn.makeSpan([e.mclass],r,t);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(e,t){var r=o_(e.body,t),a=new xi.MathNode("mstyle",r);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var EUr={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},n0n=()=>({type:"styling",body:[],mode:"math",style:"display"}),r0n=e=>e.type==="textord"&&e.text==="@",xUr=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function SUr(e,t,r){var a=EUr[e];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(a,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var s=r.callFunction("\\\\cdleft",[t[0]],[]),o={type:"atom",text:a,mode:"math",family:"rel"},u=r.callFunction("\\Big",[o],[]),h=r.callFunction("\\\\cdright",[t[1]],[]),f={type:"ordgroup",mode:"math",body:[s,u,h]};return r.callFunction("\\\\cdparent",[f],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var p={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[p],[])}default:return{type:"textord",text:" ",mode:"math"}}}function TUr(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Bi("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var a=[],s=[a],o=0;o-1))if("<>AV".indexOf(p)>-1)for(var b=0;b<2;b++){for(var _=!0,w=f+1;wAV=|." after @',u[f]);var S=SUr(p,m,e),C={type:"styling",body:[S],mode:"math",style:"display"};a.push(C),h=n0n()}o%2===0?a.push(h):a.shift(),a=[],s.push(a)}e.gullet.endGroup(),e.gullet.endGroup();var A=new Array(s[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:s,arraystretch:1,addJot:!0,rowGaps:[null],cols:A,colSeparationType:"CD",hLinesBeforeRow:new Array(s.length+1).fill([])}}pa({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"cdlabel",mode:r.mode,side:a.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),a=Jn.wrapFragment(Yc(e.label,r,t),t);return a.classes.push("cd-label-"+e.side),a.style.bottom=Xi(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(e,t){var r=new xi.MathNode("mrow",[Ph(e.label,t)]);return r=new xi.MathNode("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new xi.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});pa({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=Jn.wrapFragment(Yc(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new xi.MathNode("mrow",[Ph(e.fragment,t)])}});pa({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,a=El(t[0],"ordgroup"),s=a.body,o="",u=0;u=1114111)throw new Bi("\\@char with invalid code point "+o);return f<=65535?p=String.fromCharCode(f):(f-=65536,p=String.fromCharCode((f>>10)+55296,(f&1023)+56320)),{type:"textord",mode:r.mode,text:p}}});var N7n=(e,t)=>{var r=Op(e.body,t.withColor(e.color),!1);return Jn.makeFragment(r)},O7n=(e,t)=>{var r=o_(e.body,t.withColor(e.color)),a=new xi.MathNode("mstyle",r);return a.setAttribute("mathcolor",e.color),a};pa({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,a=El(t[0],"color-token").color,s=t[1];return{type:"color",mode:r.mode,color:a,body:X0(s)}},htmlBuilder:N7n,mathmlBuilder:O7n});pa({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:a}=e,s=El(t[0],"color-token").color;r.gullet.macros.set("\\current@color",s);var o=r.parseExpression(!0,a);return{type:"color",mode:r.mode,color:s,body:o}},htmlBuilder:N7n,mathmlBuilder:O7n});pa({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:a}=e,s=a.gullet.future().text==="["?a.parseSizeGroup(!0):null,o=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:o,size:s&&El(s,"size").value}},htmlBuilder(e,t){var r=Jn.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=Xi(kf(e.size,t)))),r},mathmlBuilder(e,t){var r=new xi.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",Xi(kf(e.size,t)))),r}});var Tst={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},L7n=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Bi("Expected a control sequence",e);return t},CUr=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},D7n=(e,t,r,a)=>{var s=e.gullet.macros.get(r.text);s==null&&(r.noexpand=!0,s={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,s,a)};pa({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var a=t.fetch();if(Tst[a.text])return(r==="\\global"||r==="\\\\globallong")&&(a.text=Tst[a.text]),El(t.parseFunction(),"internal");throw new Bi("Invalid token after macro prefix",a)}});pa({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=t.gullet.popToken(),s=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(s))throw new Bi("Expected a control sequence",a);for(var o=0,u,h=[[]];t.gullet.future().text!=="{";)if(a=t.gullet.popToken(),a.text==="#"){if(t.gullet.future().text==="{"){u=t.gullet.future(),h[o].push("{");break}if(a=t.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new Bi('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==o+1)throw new Bi('Argument number "'+a.text+'" out of order');o++,h.push([])}else{if(a.text==="EOF")throw new Bi("Expected a macro definition");h[o].push(a.text)}var{tokens:f}=t.gullet.consumeArg();return u&&f.unshift(u),(r==="\\edef"||r==="\\xdef")&&(f=t.gullet.expandTokens(f),f.reverse()),t.gullet.macros.set(s,{tokens:f,numArgs:o,delimiters:h},r===Tst[r]),{type:"internal",mode:t.mode}}});pa({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=L7n(t.gullet.popToken());t.gullet.consumeSpaces();var s=CUr(t);return D7n(t,a,s,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});pa({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=L7n(t.gullet.popToken()),s=t.gullet.popToken(),o=t.gullet.popToken();return D7n(t,a,o,r==="\\\\globalfuture"),t.gullet.pushToken(o),t.gullet.pushToken(s),{type:"internal",mode:t.mode}}});var Sie=function(t,r,a){var s=ed.math[t]&&ed.math[t].replace,o=nft(s||t,r,a);if(!o)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return o},cft=function(t,r,a,s){var o=a.havingBaseStyle(r),u=Jn.makeSpan(s.concat(o.sizingClasses(a)),[t],a),h=o.sizeMultiplier/a.sizeMultiplier;return u.height*=h,u.depth*=h,u.maxFontSize=o.sizeMultiplier,u},M7n=function(t,r,a){var s=r.havingBaseStyle(a),o=(1-r.sizeMultiplier/s.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Xi(o),t.height-=o,t.depth+=o},AUr=function(t,r,a,s,o,u){var h=Jn.makeSymbol(t,"Main-Regular",o,s),f=cft(h,r,s,u);return a&&M7n(f,s,r),f},kUr=function(t,r,a,s){return Jn.makeSymbol(t,"Size"+r+"-Regular",a,s)},P7n=function(t,r,a,s,o,u){var h=kUr(t,r,o,s),f=cft(Jn.makeSpan(["delimsizing","size"+r],[h],s),Zs.TEXT,s,u);return a&&M7n(f,s,Zs.TEXT),f},UXe=function(t,r,a){var s;r==="Size1-Regular"?s="delim-size1":s="delim-size4";var o=Jn.makeSpan(["delimsizinginner",s],[Jn.makeSpan([],[Jn.makeSymbol(t,r,a)])]);return{type:"elem",elem:o}},zXe=function(t,r,a){var s=YC["Size4-Regular"][t.charCodeAt(0)]?YC["Size4-Regular"][t.charCodeAt(0)][4]:YC["Size1-Regular"][t.charCodeAt(0)][4],o=new GO("inner",D$r(t,Math.round(1e3*r))),u=new X7([o],{width:Xi(s),height:Xi(r),style:"width:"+Xi(s),viewBox:"0 0 "+1e3*s+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),h=Jn.makeSvgSpan([],[u],a);return h.height=r,h.style.height=Xi(r),h.style.width=Xi(s),{type:"elem",elem:h}},Cst=.008,E_e={type:"kern",size:-1*Cst},RUr=["|","\\lvert","\\rvert","\\vert"],IUr=["\\|","\\lVert","\\rVert","\\Vert"],B7n=function(t,r,a,s,o,u){var h,f,p,m,b="",_=0;h=p=m=t,f=null;var w="Size1-Regular";t==="\\uparrow"?p=m="⏐":t==="\\Uparrow"?p=m="‖":t==="\\downarrow"?h=p="⏐":t==="\\Downarrow"?h=p="‖":t==="\\updownarrow"?(h="\\uparrow",p="⏐",m="\\downarrow"):t==="\\Updownarrow"?(h="\\Uparrow",p="‖",m="\\Downarrow"):RUr.includes(t)?(p="∣",b="vert",_=333):IUr.includes(t)?(p="∥",b="doublevert",_=556):t==="["||t==="\\lbrack"?(h="⎡",p="⎢",m="⎣",w="Size4-Regular",b="lbrack",_=667):t==="]"||t==="\\rbrack"?(h="⎤",p="⎥",m="⎦",w="Size4-Regular",b="rbrack",_=667):t==="\\lfloor"||t==="⌊"?(p=h="⎢",m="⎣",w="Size4-Regular",b="lfloor",_=667):t==="\\lceil"||t==="⌈"?(h="⎡",p=m="⎢",w="Size4-Regular",b="lceil",_=667):t==="\\rfloor"||t==="⌋"?(p=h="⎥",m="⎦",w="Size4-Regular",b="rfloor",_=667):t==="\\rceil"||t==="⌉"?(h="⎤",p=m="⎥",w="Size4-Regular",b="rceil",_=667):t==="("||t==="\\lparen"?(h="⎛",p="⎜",m="⎝",w="Size4-Regular",b="lparen",_=875):t===")"||t==="\\rparen"?(h="⎞",p="⎟",m="⎠",w="Size4-Regular",b="rparen",_=875):t==="\\{"||t==="\\lbrace"?(h="⎧",f="⎨",m="⎩",p="⎪",w="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(h="⎫",f="⎬",m="⎭",p="⎪",w="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(h="⎧",m="⎩",p="⎪",w="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(h="⎫",m="⎭",p="⎪",w="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(h="⎧",m="⎭",p="⎪",w="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(h="⎫",m="⎩",p="⎪",w="Size4-Regular");var S=Sie(h,w,o),C=S.height+S.depth,A=Sie(p,w,o),k=A.height+A.depth,I=Sie(m,w,o),N=I.height+I.depth,L=0,P=1;if(f!==null){var M=Sie(f,w,o);L=M.height+M.depth,P=2}var F=C+N+L,U=Math.max(0,Math.ceil((r-F)/(P*k))),$=F+U*P*k,G=s.fontMetrics().axisHeight;a&&(G*=s.sizeMultiplier);var B=$/2-G,Z=[];if(b.length>0){var z=$-C-N,Y=Math.round($*1e3),W=M$r(b,Math.round(z*1e3)),Q=new GO(b,W),V=(_/1e3).toFixed(3)+"em",j=(Y/1e3).toFixed(3)+"em",ee=new X7([Q],{width:V,height:j,viewBox:"0 0 "+_+" "+Y}),te=Jn.makeSvgSpan([],[ee],s);te.height=Y/1e3,te.style.width=V,te.style.height=j,Z.push({type:"elem",elem:te})}else{if(Z.push(UXe(m,w,o)),Z.push(E_e),f===null){var ne=$-C-N+2*Cst;Z.push(zXe(p,ne,s))}else{var se=($-C-N-L)/2+2*Cst;Z.push(zXe(p,se,s)),Z.push(E_e),Z.push(UXe(f,w,o)),Z.push(E_e),Z.push(zXe(p,se,s))}Z.push(E_e),Z.push(UXe(h,w,o))}var ie=s.havingBaseStyle(Zs.TEXT),ge=Jn.makeVList({positionType:"bottom",positionData:B,children:Z},ie);return cft(Jn.makeSpan(["delimsizing","mult"],[ge],ie),Zs.TEXT,s,u)},GXe=80,qXe=.08,HXe=function(t,r,a,s,o){var u=L$r(t,s,a),h=new GO(t,u),f=new X7([h],{width:"400em",height:Xi(r),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return Jn.makeSvgSpan(["hide-tail"],[f],o)},NUr=function(t,r){var a=r.havingBaseSizing(),s=z7n("\\surd",t*a.sizeMultiplier,U7n,a),o=a.sizeMultiplier,u=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),h,f=0,p=0,m=0,b;return s.type==="small"?(m=1e3+1e3*u+GXe,t<1?o=1:t<1.4&&(o=.7),f=(1+u+qXe)/o,p=(1+u)/o,h=HXe("sqrtMain",f,m,u,r),h.style.minWidth="0.853em",b=.833/o):s.type==="large"?(m=(1e3+GXe)*Qae[s.size],p=(Qae[s.size]+u)/o,f=(Qae[s.size]+u+qXe)/o,h=HXe("sqrtSize"+s.size,f,m,u,r),h.style.minWidth="1.02em",b=1/o):(f=t+u+qXe,p=t+u,m=Math.floor(1e3*t+u)+GXe,h=HXe("sqrtTall",f,m,u,r),h.style.minWidth="0.742em",b=1.056),h.height=p,h.style.height=Xi(f),{span:h,advanceWidth:b,ruleWidth:(r.fontMetrics().sqrtRuleThickness+u)*o}},F7n=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],OUr=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],$7n=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Qae=[0,1.2,1.8,2.4,3],LUr=function(t,r,a,s,o){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),F7n.includes(t)||$7n.includes(t))return P7n(t,r,!1,a,s,o);if(OUr.includes(t))return B7n(t,Qae[r],!1,a,s,o);throw new Bi("Illegal delimiter: '"+t+"'")},DUr=[{type:"small",style:Zs.SCRIPTSCRIPT},{type:"small",style:Zs.SCRIPT},{type:"small",style:Zs.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],MUr=[{type:"small",style:Zs.SCRIPTSCRIPT},{type:"small",style:Zs.SCRIPT},{type:"small",style:Zs.TEXT},{type:"stack"}],U7n=[{type:"small",style:Zs.SCRIPTSCRIPT},{type:"small",style:Zs.SCRIPT},{type:"small",style:Zs.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],PUr=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},z7n=function(t,r,a,s){for(var o=Math.min(2,3-s.style.size),u=o;ur)return a[u]}return a[a.length-1]},G7n=function(t,r,a,s,o,u){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var h;$7n.includes(t)?h=DUr:F7n.includes(t)?h=U7n:h=MUr;var f=z7n(t,r,h,s);return f.type==="small"?AUr(t,f.style,a,s,o,u):f.type==="large"?P7n(t,f.size,a,s,o,u):B7n(t,r,a,s,o,u)},BUr=function(t,r,a,s,o,u){var h=s.fontMetrics().axisHeight*s.sizeMultiplier,f=901,p=5/s.fontMetrics().ptPerEm,m=Math.max(r-h,a+h),b=Math.max(m/500*f,2*m-p);return G7n(t,b,!0,s,o,u)},F7={sqrtImage:NUr,sizedDelim:LUr,sizeToMaxHeight:Qae,customSizedDelim:G7n,leftRightDelim:BUr},i0n={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},FUr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Z5e(e,t){var r=X5e(e);if(r&&FUr.includes(r.text))return r;throw r?new Bi("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new Bi("Invalid delimiter type '"+e.type+"'",e)}pa({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=Z5e(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:i0n[e.funcName].size,mclass:i0n[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?Jn.makeSpan([e.mclass]):F7.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(bS(e.delim,e.mode));var r=new xi.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var a=Xi(F7.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",a),r.setAttribute("maxsize",a),r}});function a0n(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}pa({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new Bi("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Z5e(t[0],e).text,color:r}}});pa({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Z5e(t[0],e),a=e.parser;++a.leftrightDepth;var s=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var o=El(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:s,left:r.text,right:o.delim,rightColor:o.color}},htmlBuilder:(e,t)=>{a0n(e);for(var r=Op(e.body,t,!0,["mopen","mclose"]),a=0,s=0,o=!1,u=0;u{a0n(e);var r=o_(e.body,t);if(e.left!=="."){var a=new xi.MathNode("mo",[bS(e.left,e.mode)]);a.setAttribute("fence","true"),r.unshift(a)}if(e.right!=="."){var s=new xi.MathNode("mo",[bS(e.right,e.mode)]);s.setAttribute("fence","true"),e.rightColor&&s.setAttribute("mathcolor",e.rightColor),r.push(s)}return aft(r)}});pa({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Z5e(t[0],e);if(!e.parser.leftrightDepth)throw new Bi("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=Qse(t,[]);else{r=F7.sizedDelim(e.delim,1,t,e.mode,[]);var a={delim:e.delim,options:t};r.isMiddle=a}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?bS("|","text"):bS(e.delim,e.mode),a=new xi.MathNode("mo",[r]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var uft=(e,t)=>{var r=Jn.wrapFragment(Yc(e.body,t),t),a=e.label.slice(1),s=t.sizeMultiplier,o,u=0,h=uu.isCharacterBox(e.body);if(a==="sout")o=Jn.makeSpan(["stretchy","sout"]),o.height=t.fontMetrics().defaultRuleThickness/s,u=-.5*t.fontMetrics().xHeight;else if(a==="phase"){var f=kf({number:.6,unit:"pt"},t),p=kf({number:.35,unit:"ex"},t),m=t.havingBaseSizing();s=s/m.sizeMultiplier;var b=r.height+r.depth+f+p;r.style.paddingLeft=Xi(b/2+f);var _=Math.floor(1e3*b*s),w=N$r(_),S=new X7([new GO("phase",w)],{width:"400em",height:Xi(_/1e3),viewBox:"0 0 400000 "+_,preserveAspectRatio:"xMinYMin slice"});o=Jn.makeSvgSpan(["hide-tail"],[S],t),o.style.height=Xi(b),u=r.depth+f+p}else{/cancel/.test(a)?h||r.classes.push("cancel-pad"):a==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var C=0,A=0,k=0;/box/.test(a)?(k=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),C=t.fontMetrics().fboxsep+(a==="colorbox"?0:k),A=C):a==="angl"?(k=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),C=4*k,A=Math.max(0,.25-r.depth)):(C=h?.2:0,A=C),o=Z7.encloseSpan(r,a,C,A,t),/fbox|boxed|fcolorbox/.test(a)?(o.style.borderStyle="solid",o.style.borderWidth=Xi(k)):a==="angl"&&k!==.049&&(o.style.borderTopWidth=Xi(k),o.style.borderRightWidth=Xi(k)),u=r.depth+A,e.backgroundColor&&(o.style.backgroundColor=e.backgroundColor,e.borderColor&&(o.style.borderColor=e.borderColor))}var I;if(e.backgroundColor)I=Jn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:r,shift:0}]},t);else{var N=/cancel|phase/.test(a)?["svg-align"]:[];I=Jn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:o,shift:u,wrapperClasses:N}]},t)}return/cancel/.test(a)&&(I.height=r.height,I.depth=r.depth),/cancel/.test(a)&&!h?Jn.makeSpan(["mord","cancel-lap"],[I],t):Jn.makeSpan(["mord"],[I],t)},hft=(e,t)=>{var r=0,a=new xi.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ph(e.body,t)]);switch(e.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*r+"pt"),a.setAttribute("height","+"+2*r+"pt"),a.setAttribute("lspace",r+"pt"),a.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var s=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);a.setAttribute("style","border: "+s+"em solid "+String(e.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&a.setAttribute("mathbackground",e.backgroundColor),a};pa({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:a,funcName:s}=e,o=El(t[0],"color-token").color,u=t[1];return{type:"enclose",mode:a.mode,label:s,backgroundColor:o,body:u}},htmlBuilder:uft,mathmlBuilder:hft});pa({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:a,funcName:s}=e,o=El(t[0],"color-token").color,u=El(t[1],"color-token").color,h=t[2];return{type:"enclose",mode:a.mode,label:s,backgroundColor:u,borderColor:o,body:h}},htmlBuilder:uft,mathmlBuilder:hft});pa({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});pa({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e,s=t[0];return{type:"enclose",mode:r.mode,label:a,body:s}},htmlBuilder:uft,mathmlBuilder:hft});pa({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var q7n={};function CA(e){for(var{type:t,names:r,props:a,handler:s,htmlBuilder:o,mathmlBuilder:u}=e,h={type:t,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:s},f=0;f{var t=e.parser.settings;if(!t.displayMode)throw new Bi("{"+e.envName+"} can be used only in display mode.")};function dft(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function x9(e,t,r){var{hskipBeforeAndAfter:a,addJot:s,cols:o,arraystretch:u,colSeparationType:h,autoTag:f,singleRow:p,emptySingleRow:m,maxNumCols:b,leqno:_}=t;if(e.gullet.beginGroup(),p||e.gullet.macros.set("\\cr","\\\\\\relax"),!u){var w=e.gullet.expandMacroAsText("\\arraystretch");if(w==null)u=1;else if(u=parseFloat(w),!u||u<0)throw new Bi("Invalid \\arraystretch: "+w)}e.gullet.beginGroup();var S=[],C=[S],A=[],k=[],I=f!=null?[]:void 0;function N(){f&&e.gullet.macros.set("\\@eqnsw","1",!0)}function L(){I&&(e.gullet.macros.get("\\df@tag")?(I.push(e.subparse([new Y3("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):I.push(!!f&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(N(),k.push(s0n(e));;){var P=e.parseExpression(!1,p?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),P={type:"ordgroup",mode:e.mode,body:P},r&&(P={type:"styling",mode:e.mode,style:r,body:[P]}),S.push(P);var M=e.fetch().text;if(M==="&"){if(b&&S.length===b){if(p||h)throw new Bi("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(M==="\\end"){L(),S.length===1&&P.type==="styling"&&P.body[0].body.length===0&&(C.length>1||!m)&&C.pop(),k.length0&&(N+=.25),p.push({pos:N,isDashed:Oe[Dt]})}for(L(u[0]),a=0;a0&&(B+=I,FOe))for(a=0;a=h)){var ve=void 0;(s>0||t.hskipBeforeAndAfter)&&(ve=uu.deflt(se.pregap,_),ve!==0&&(W=Jn.makeSpan(["arraycolsep"],[]),W.style.width=Xi(ve),Y.push(W)));var De=[];for(a=0;a0){for(var we=Jn.makeLineSpan("hline",r,m),Ce=Jn.makeLineSpan("hdashline",r,m),Ie=[{type:"elem",elem:f,shift:0}];p.length>0;){var Le=p.pop(),Fe=Le.pos-Z;Le.isDashed?Ie.push({type:"elem",elem:Ce,shift:Fe}):Ie.push({type:"elem",elem:we,shift:Fe})}f=Jn.makeVList({positionType:"individualShift",children:Ie},r)}if(V.length===0)return Jn.makeSpan(["mord"],[f],r);var Ve=Jn.makeVList({positionType:"individualShift",children:V},r);return Ve=Jn.makeSpan(["tag"],[Ve],r),Jn.makeFragment([f,Ve])},$Ur={c:"center ",l:"left ",r:"right "},kA=function(t,r){for(var a=[],s=new xi.MathNode("mtd",[],["mtr-glue"]),o=new xi.MathNode("mtd",[],["mml-eqn-num"]),u=0;u0){var S=t.cols,C="",A=!1,k=0,I=S.length;S[0].type==="separator"&&(_+="top ",k=1),S[S.length-1].type==="separator"&&(_+="bottom ",I-=1);for(var N=k;N0?"left ":"",_+=U[U.length-1].length>0?"right ":"";for(var $=1;$-1?"alignat":"align",o=t.envName==="split",u=x9(t.parser,{cols:a,addJot:!0,autoTag:o?void 0:dft(t.envName),emptySingleRow:!0,colSeparationType:s,maxNumCols:o?2:void 0,leqno:t.parser.settings.leqno},"display"),h,f=0,p={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var m="",b=0;b0&&w&&(A=1),a[S]={type:"align",align:C,pregap:A,postgap:0}}return u.colSeparationType=w?"align":"alignat",u};CA({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=X5e(t[0]),a=r?[t[0]]:El(t[0],"ordgroup").body,s=a.map(function(u){var h=oft(u),f=h.text;if("lcr".indexOf(f)!==-1)return{type:"align",align:f};if(f==="|")return{type:"separator",separator:"|"};if(f===":")return{type:"separator",separator:":"};throw new Bi("Unknown column alignment: "+f,u)}),o={cols:s,hskipBeforeAndAfter:!0,maxNumCols:s.length};return x9(e.parser,o,fft(e.envName))},htmlBuilder:AA,mathmlBuilder:kA});CA({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var s=e.parser;if(s.consumeSpaces(),s.fetch().text==="["){if(s.consume(),s.consumeSpaces(),r=s.fetch().text,"lcr".indexOf(r)===-1)throw new Bi("Expected l or c or r",s.nextToken);s.consume(),s.consumeSpaces(),s.expect("]"),s.consume(),a.cols=[{type:"align",align:r}]}}var o=x9(e.parser,a,fft(e.envName)),u=Math.max(0,...o.body.map(h=>h.length));return o.cols=new Array(u).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[o],left:t[0],right:t[1],rightColor:void 0}:o},htmlBuilder:AA,mathmlBuilder:kA});CA({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=x9(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:AA,mathmlBuilder:kA});CA({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=X5e(t[0]),a=r?[t[0]]:El(t[0],"ordgroup").body,s=a.map(function(u){var h=oft(u),f=h.text;if("lc".indexOf(f)!==-1)return{type:"align",align:f};throw new Bi("Unknown column alignment: "+f,u)});if(s.length>1)throw new Bi("{subarray} can contain only one column");var o={cols:s,hskipBeforeAndAfter:!1,arraystretch:.5};if(o=x9(e.parser,o,"script"),o.body.length>0&&o.body[0].length>1)throw new Bi("{subarray} can contain only one column");return o},htmlBuilder:AA,mathmlBuilder:kA});CA({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=x9(e.parser,t,fft(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:AA,mathmlBuilder:kA});CA({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:V7n,htmlBuilder:AA,mathmlBuilder:kA});CA({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&J5e(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:dft(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return x9(e.parser,t,"display")},htmlBuilder:AA,mathmlBuilder:kA});CA({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:V7n,htmlBuilder:AA,mathmlBuilder:kA});CA({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){J5e(e);var t={autoTag:dft(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return x9(e.parser,t,"display")},htmlBuilder:AA,mathmlBuilder:kA});CA({type:"array",names:["CD"],props:{numArgs:0},handler(e){return J5e(e),TUr(e.parser)},htmlBuilder:AA,mathmlBuilder:kA});ft("\\nonumber","\\gdef\\@eqnsw{0}");ft("\\notag","\\nonumber");pa({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Bi(e.funcName+" valid only within array environment")}});var o0n=q7n;pa({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:a}=e,s=t[0];if(s.type!=="ordgroup")throw new Bi("Invalid environment name",s);for(var o="",u=0;u{var r=e.font,a=t.withFont(r);return Yc(e.body,a)},j7n=(e,t)=>{var r=e.font,a=t.withFont(r);return Ph(e.body,a)},l0n={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};pa({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=PSe(t[0]),o=a;return o in l0n&&(o=l0n[o]),{type:"font",mode:r.mode,font:o.slice(1),body:s}},htmlBuilder:Y7n,mathmlBuilder:j7n});pa({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,a=t[0],s=uu.isCharacterBox(a);return{type:"mclass",mode:r.mode,mclass:Q5e(a),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:a}],isCharacterBox:s}}});pa({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a,breakOnTokenText:s}=e,{mode:o}=r,u=r.parseExpression(!0,s),h="math"+a.slice(1);return{type:"font",mode:o,font:h,body:{type:"ordgroup",mode:r.mode,body:u}}},htmlBuilder:Y7n,mathmlBuilder:j7n});var W7n=(e,t)=>{var r=t;return e==="display"?r=r.id>=Zs.SCRIPT.id?r.text():Zs.DISPLAY:e==="text"&&r.size===Zs.DISPLAY.size?r=Zs.TEXT:e==="script"?r=Zs.SCRIPT:e==="scriptscript"&&(r=Zs.SCRIPTSCRIPT),r},pft=(e,t)=>{var r=W7n(e.size,t.style),a=r.fracNum(),s=r.fracDen(),o;o=t.havingStyle(a);var u=Yc(e.numer,o,t);if(e.continued){var h=8.5/t.fontMetrics().ptPerEm,f=3.5/t.fontMetrics().ptPerEm;u.height=u.height0?S=3*_:S=7*_,C=t.fontMetrics().denom1):(b>0?(w=t.fontMetrics().num2,S=_):(w=t.fontMetrics().num3,S=3*_),C=t.fontMetrics().denom2);var A;if(m){var I=t.fontMetrics().axisHeight;w-u.depth-(I+.5*b){var r=new xi.MathNode("mfrac",[Ph(e.numer,t),Ph(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var a=kf(e.barSize,t);r.setAttribute("linethickness",Xi(a))}var s=W7n(e.size,t.style);if(s.size!==t.style.size){r=new xi.MathNode("mstyle",[r]);var o=s.size===Zs.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",o),r.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var u=[];if(e.leftDelim!=null){var h=new xi.MathNode("mo",[new xi.TextNode(e.leftDelim.replace("\\",""))]);h.setAttribute("fence","true"),u.push(h)}if(u.push(r),e.rightDelim!=null){var f=new xi.MathNode("mo",[new xi.TextNode(e.rightDelim.replace("\\",""))]);f.setAttribute("fence","true"),u.push(f)}return aft(u)}return r};pa({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0],o=t[1],u,h=null,f=null,p="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":u=!0;break;case"\\\\atopfrac":u=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":u=!1,h="(",f=")";break;case"\\\\bracefrac":u=!1,h="\\{",f="\\}";break;case"\\\\brackfrac":u=!1,h="[",f="]";break;default:throw new Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":p="display";break;case"\\tfrac":case"\\tbinom":p="text";break}return{type:"genfrac",mode:r.mode,continued:!1,numer:s,denom:o,hasBarLine:u,leftDelim:h,rightDelim:f,size:p,barSize:null}},htmlBuilder:pft,mathmlBuilder:gft});pa({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0],o=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:s,denom:o,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});pa({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:a}=e,s;switch(r){case"\\over":s="\\frac";break;case"\\choose":s="\\binom";break;case"\\atop":s="\\\\atopfrac";break;case"\\brace":s="\\\\bracefrac";break;case"\\brack":s="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:s,token:a}}});var c0n=["display","text","script","scriptscript"],u0n=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};pa({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,a=t[4],s=t[5],o=PSe(t[0]),u=o.type==="atom"&&o.family==="open"?u0n(o.text):null,h=PSe(t[1]),f=h.type==="atom"&&h.family==="close"?u0n(h.text):null,p=El(t[2],"size"),m,b=null;p.isBlank?m=!0:(b=p.value,m=b.number>0);var _="auto",w=t[3];if(w.type==="ordgroup"){if(w.body.length>0){var S=El(w.body[0],"textord");_=c0n[Number(S.text)]}}else w=El(w,"textord"),_=c0n[Number(w.text)];return{type:"genfrac",mode:r.mode,numer:a,denom:s,continued:!1,hasBarLine:m,barSize:b,leftDelim:u,rightDelim:f,size:_}},htmlBuilder:pft,mathmlBuilder:gft});pa({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:a,token:s}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:El(t[0],"size").value,token:s}}});pa({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0],o=m$r(El(t[1],"infix").size),u=t[2],h=o.number>0;return{type:"genfrac",mode:r.mode,numer:s,denom:u,continued:!1,hasBarLine:h,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:pft,mathmlBuilder:gft});var K7n=(e,t)=>{var r=t.style,a,s;e.type==="supsub"?(a=e.sup?Yc(e.sup,t.havingStyle(r.sup()),t):Yc(e.sub,t.havingStyle(r.sub()),t),s=El(e.base,"horizBrace")):s=El(e,"horizBrace");var o=Yc(s.base,t.havingBaseStyle(Zs.DISPLAY)),u=Z7.svgSpan(s,t),h;if(s.isOver?(h=Jn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:u}]},t),h.children[0].children[0].children[1].classes.push("svg-align")):(h=Jn.makeVList({positionType:"bottom",positionData:o.depth+.1+u.height,children:[{type:"elem",elem:u},{type:"kern",size:.1},{type:"elem",elem:o}]},t),h.children[0].children[0].children[0].classes.push("svg-align")),a){var f=Jn.makeSpan(["mord",s.isOver?"mover":"munder"],[h],t);s.isOver?h=Jn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"kern",size:.2},{type:"elem",elem:a}]},t):h=Jn.makeVList({positionType:"bottom",positionData:f.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:f}]},t)}return Jn.makeSpan(["mord",s.isOver?"mover":"munder"],[h],t)},UUr=(e,t)=>{var r=Z7.mathMLnode(e.label);return new xi.MathNode(e.isOver?"mover":"munder",[Ph(e.base,t),r])};pa({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"horizBrace",mode:r.mode,label:a,isOver:/^\\over/.test(a),base:t[0]}},htmlBuilder:K7n,mathmlBuilder:UUr});pa({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[1],s=El(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:s})?{type:"href",mode:r.mode,href:s,body:X0(a)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Op(e.body,t,!1);return Jn.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=qO(e.body,t);return r instanceof Iw||(r=new Iw("mrow",[r])),r.setAttribute("href",e.href),r}});pa({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=El(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:a}))return r.formatUnsupportedCmd("\\url");for(var s=[],o=0;o{var{parser:r,funcName:a,token:s}=e,o=El(t[0],"raw").string,u=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var h,f={};switch(a){case"\\htmlClass":f.class=o,h={command:"\\htmlClass",class:o};break;case"\\htmlId":f.id=o,h={command:"\\htmlId",id:o};break;case"\\htmlStyle":f.style=o,h={command:"\\htmlStyle",style:o};break;case"\\htmlData":{for(var p=o.split(","),m=0;m{var r=Op(e.body,t,!1),a=["enclosing"];e.attributes.class&&a.push(...e.attributes.class.trim().split(/\s+/));var s=Jn.makeSpan(a,r,t);for(var o in e.attributes)o!=="class"&&e.attributes.hasOwnProperty(o)&&s.setAttribute(o,e.attributes[o]);return s},mathmlBuilder:(e,t)=>qO(e.body,t)});pa({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:X0(t[0]),mathml:X0(t[1])}},htmlBuilder:(e,t)=>{var r=Op(e.html,t,!1);return Jn.makeFragment(r)},mathmlBuilder:(e,t)=>qO(e.mathml,t)});var VXe=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new Bi("Invalid size: '"+t+"' in \\includegraphics");var a={number:+(r[1]+r[2]),unit:r[3]};if(!p7n(a))throw new Bi("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a};pa({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:a}=e,s={number:0,unit:"em"},o={number:.9,unit:"em"},u={number:0,unit:"em"},h="";if(r[0])for(var f=El(r[0],"raw").string,p=f.split(","),m=0;m{var r=kf(e.height,t),a=0;e.totalheight.number>0&&(a=kf(e.totalheight,t)-r);var s=0;e.width.number>0&&(s=kf(e.width,t));var o={height:Xi(r+a)};s>0&&(o.width=Xi(s)),a>0&&(o.verticalAlign=Xi(-a));var u=new U$r(e.src,e.alt,o);return u.height=r,u.depth=a,u},mathmlBuilder:(e,t)=>{var r=new xi.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var a=kf(e.height,t),s=0;if(e.totalheight.number>0&&(s=kf(e.totalheight,t)-a,r.setAttribute("valign",Xi(-s))),r.setAttribute("height",Xi(a+s)),e.width.number>0){var o=kf(e.width,t);r.setAttribute("width",Xi(o))}return r.setAttribute("src",e.src),r}});pa({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,s=El(t[0],"size");if(r.settings.strict){var o=a[1]==="m",u=s.value.unit==="mu";o?(u||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+s.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):u&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:s.value}},htmlBuilder(e,t){return Jn.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var r=kf(e.dimension,t);return new xi.SpaceNode(r)}});pa({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0];return{type:"lap",mode:r.mode,alignment:a.slice(5),body:s}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=Jn.makeSpan([],[Yc(e.body,t)]),r=Jn.makeSpan(["inner"],[r],t)):r=Jn.makeSpan(["inner"],[Yc(e.body,t)]);var a=Jn.makeSpan(["fix"],[]),s=Jn.makeSpan([e.alignment],[r,a],t),o=Jn.makeSpan(["strut"]);return o.style.height=Xi(s.height+s.depth),s.depth&&(o.style.verticalAlign=Xi(-s.depth)),s.children.unshift(o),s=Jn.makeSpan(["thinbox"],[s],t),Jn.makeSpan(["mord","vbox"],[s],t)},mathmlBuilder:(e,t)=>{var r=new xi.MathNode("mpadded",[Ph(e.body,t)]);if(e.alignment!=="rlap"){var a=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",a+"width")}return r.setAttribute("width","0px"),r}});pa({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:a}=e,s=a.mode;a.switchMode("math");var o=r==="\\("?"\\)":"$",u=a.parseExpression(!1,o);return a.expect(o),a.switchMode(s),{type:"styling",mode:a.mode,style:"text",body:u}}});pa({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Bi("Mismatched "+e.funcName)}});var h0n=(e,t)=>{switch(t.style.size){case Zs.DISPLAY.size:return e.display;case Zs.TEXT.size:return e.text;case Zs.SCRIPT.size:return e.script;case Zs.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};pa({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:X0(t[0]),text:X0(t[1]),script:X0(t[2]),scriptscript:X0(t[3])}},htmlBuilder:(e,t)=>{var r=h0n(e,t),a=Op(r,t,!1);return Jn.makeFragment(a)},mathmlBuilder:(e,t)=>{var r=h0n(e,t);return qO(r,t)}});var X7n=(e,t,r,a,s,o,u)=>{e=Jn.makeSpan([],[e]);var h=r&&uu.isCharacterBox(r),f,p;if(t){var m=Yc(t,a.havingStyle(s.sup()),a);p={elem:m,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-m.depth)}}if(r){var b=Yc(r,a.havingStyle(s.sub()),a);f={elem:b,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-b.height)}}var _;if(p&&f){var w=a.fontMetrics().bigOpSpacing5+f.elem.height+f.elem.depth+f.kern+e.depth+u;_=Jn.makeVList({positionType:"bottom",positionData:w,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:f.elem,marginLeft:Xi(-o)},{type:"kern",size:f.kern},{type:"elem",elem:e},{type:"kern",size:p.kern},{type:"elem",elem:p.elem,marginLeft:Xi(o)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(f){var S=e.height-u;_=Jn.makeVList({positionType:"top",positionData:S,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:f.elem,marginLeft:Xi(-o)},{type:"kern",size:f.kern},{type:"elem",elem:e}]},a)}else if(p){var C=e.depth+u;_=Jn.makeVList({positionType:"bottom",positionData:C,children:[{type:"elem",elem:e},{type:"kern",size:p.kern},{type:"elem",elem:p.elem,marginLeft:Xi(o)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else return e;var A=[_];if(f&&o!==0&&!h){var k=Jn.makeSpan(["mspace"],[],a);k.style.marginRight=Xi(o),A.unshift(k)}return Jn.makeSpan(["mop","op-limits"],A,a)},Q7n=["\\smallint"],xW=(e,t)=>{var r,a,s=!1,o;e.type==="supsub"?(r=e.sup,a=e.sub,o=El(e.base,"op"),s=!0):o=El(e,"op");var u=t.style,h=!1;u.size===Zs.DISPLAY.size&&o.symbol&&!Q7n.includes(o.name)&&(h=!0);var f;if(o.symbol){var p=h?"Size2-Regular":"Size1-Regular",m="";if((o.name==="\\oiint"||o.name==="\\oiiint")&&(m=o.name.slice(1),o.name=m==="oiint"?"\\iint":"\\iiint"),f=Jn.makeSymbol(o.name,p,"math",t,["mop","op-symbol",h?"large-op":"small-op"]),m.length>0){var b=f.italic,_=Jn.staticSvg(m+"Size"+(h?"2":"1"),t);f=Jn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:f,shift:0},{type:"elem",elem:_,shift:h?.08:0}]},t),o.name="\\"+m,f.classes.unshift("mop"),f.italic=b}}else if(o.body){var w=Op(o.body,t,!0);w.length===1&&w[0]instanceof mS?(f=w[0],f.classes[0]="mop"):f=Jn.makeSpan(["mop"],w,t)}else{for(var S=[],C=1;C{var r;if(e.symbol)r=new Iw("mo",[bS(e.name,e.mode)]),Q7n.includes(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new Iw("mo",o_(e.body,t));else{r=new Iw("mi",[new jC(e.name.slice(1))]);var a=new Iw("mo",[bS("⁡","text")]);e.parentIsSupSub?r=new Iw("mrow",[r,a]):r=T7n([r,a])}return r},zUr={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};pa({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=a;return s.length===1&&(s=zUr[s]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:s}},htmlBuilder:xW,mathmlBuilder:Ule});pa({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:X0(a)}},htmlBuilder:xW,mathmlBuilder:Ule});var GUr={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};pa({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:xW,mathmlBuilder:Ule});pa({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:xW,mathmlBuilder:Ule});pa({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,a=r;return a.length===1&&(a=GUr[a]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:xW,mathmlBuilder:Ule});var Z7n=(e,t)=>{var r,a,s=!1,o;e.type==="supsub"?(r=e.sup,a=e.sub,o=El(e.base,"operatorname"),s=!0):o=El(e,"operatorname");var u;if(o.body.length>0){for(var h=o.body.map(b=>{var _=b.text;return typeof _=="string"?{type:"textord",mode:b.mode,text:_}:b}),f=Op(h,t.withFont("mathrm"),!0),p=0;p{for(var r=o_(e.body,t.withFont("mathrm")),a=!0,s=0;sm.toText()).join("");r=[new xi.TextNode(h)]}var f=new xi.MathNode("mi",r);f.setAttribute("mathvariant","normal");var p=new xi.MathNode("mo",[bS("⁡","text")]);return e.parentIsSupSub?new xi.MathNode("mrow",[f,p]):xi.newDocumentFragment([f,p])};pa({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0];return{type:"operatorname",mode:r.mode,body:X0(s),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Z7n,mathmlBuilder:qUr});ft("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");m$({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Jn.makeFragment(Op(e.body,t,!1)):Jn.makeSpan(["mord"],Op(e.body,t,!0),t)},mathmlBuilder(e,t){return qO(e.body,t,!0)}});pa({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,a=t[0];return{type:"overline",mode:r.mode,body:a}},htmlBuilder(e,t){var r=Yc(e.body,t.havingCrampedStyle()),a=Jn.makeLineSpan("overline-line",t),s=t.fontMetrics().defaultRuleThickness,o=Jn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*s},{type:"elem",elem:a},{type:"kern",size:s}]},t);return Jn.makeSpan(["mord","overline"],[o],t)},mathmlBuilder(e,t){var r=new xi.MathNode("mo",[new xi.TextNode("‾")]);r.setAttribute("stretchy","true");var a=new xi.MathNode("mover",[Ph(e.body,t),r]);return a.setAttribute("accent","true"),a}});pa({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"phantom",mode:r.mode,body:X0(a)}},htmlBuilder:(e,t)=>{var r=Op(e.body,t.withPhantom(),!1);return Jn.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=o_(e.body,t);return new xi.MathNode("mphantom",r)}});pa({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"hphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=Jn.makeSpan([],[Yc(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var a=0;a{var r=o_(X0(e.body),t),a=new xi.MathNode("mphantom",r),s=new xi.MathNode("mpadded",[a]);return s.setAttribute("height","0px"),s.setAttribute("depth","0px"),s}});pa({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"vphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=Jn.makeSpan(["inner"],[Yc(e.body,t.withPhantom())]),a=Jn.makeSpan(["fix"],[]);return Jn.makeSpan(["mord","rlap"],[r,a],t)},mathmlBuilder:(e,t)=>{var r=o_(X0(e.body),t),a=new xi.MathNode("mphantom",r),s=new xi.MathNode("mpadded",[a]);return s.setAttribute("width","0px"),s}});pa({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,a=El(t[0],"size").value,s=t[1];return{type:"raisebox",mode:r.mode,dy:a,body:s}},htmlBuilder(e,t){var r=Yc(e.body,t),a=kf(e.dy,t);return Jn.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new xi.MathNode("mpadded",[Ph(e.body,t)]),a=e.dy.number+e.dy.unit;return r.setAttribute("voffset",a),r}});pa({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});pa({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:a}=e,s=r[0],o=El(t[0],"size"),u=El(t[1],"size");return{type:"rule",mode:a.mode,shift:s&&El(s,"size").value,width:o.value,height:u.value}},htmlBuilder(e,t){var r=Jn.makeSpan(["mord","rule"],[],t),a=kf(e.width,t),s=kf(e.height,t),o=e.shift?kf(e.shift,t):0;return r.style.borderRightWidth=Xi(a),r.style.borderTopWidth=Xi(s),r.style.bottom=Xi(o),r.width=a,r.height=s+o,r.depth=-o,r.maxFontSize=s*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=kf(e.width,t),a=kf(e.height,t),s=e.shift?kf(e.shift,t):0,o=t.color&&t.getColor()||"black",u=new xi.MathNode("mspace");u.setAttribute("mathbackground",o),u.setAttribute("width",Xi(r)),u.setAttribute("height",Xi(a));var h=new xi.MathNode("mpadded",[u]);return s>=0?h.setAttribute("height",Xi(s)):(h.setAttribute("height",Xi(s)),h.setAttribute("depth",Xi(-s))),h.setAttribute("voffset",Xi(s)),h}});function J7n(e,t,r){for(var a=Op(e,t,!1),s=t.sizeMultiplier/r.sizeMultiplier,o=0;o{var r=t.havingSize(e.size);return J7n(e.body,r,t)};pa({type:"sizing",names:d0n,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:a,parser:s}=e,o=s.parseExpression(!1,r);return{type:"sizing",mode:s.mode,size:d0n.indexOf(a)+1,body:o}},htmlBuilder:HUr,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),a=o_(e.body,r),s=new xi.MathNode("mstyle",a);return s.setAttribute("mathsize",Xi(r.sizeMultiplier)),s}});pa({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:a}=e,s=!1,o=!1,u=r[0]&&El(r[0],"ordgroup");if(u)for(var h="",f=0;f{var r=Jn.makeSpan([],[Yc(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var a=0;a{var r=new xi.MathNode("mpadded",[Ph(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});pa({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a}=e,s=r[0],o=t[0];return{type:"sqrt",mode:a.mode,body:o,index:s}},htmlBuilder(e,t){var r=Yc(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=Jn.wrapFragment(r,t);var a=t.fontMetrics(),s=a.defaultRuleThickness,o=s;t.style.idr.height+r.depth+u&&(u=(u+b-r.height-r.depth)/2);var _=f.height-r.height-u-p;r.style.paddingLeft=Xi(m);var w=Jn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+_)},{type:"elem",elem:f},{type:"kern",size:p}]},t);if(e.index){var S=t.havingStyle(Zs.SCRIPTSCRIPT),C=Yc(e.index,S,t),A=.6*(w.height-w.depth),k=Jn.makeVList({positionType:"shift",positionData:-A,children:[{type:"elem",elem:C}]},t),I=Jn.makeSpan(["root"],[k]);return Jn.makeSpan(["mord","sqrt"],[I,w],t)}else return Jn.makeSpan(["mord","sqrt"],[w],t)},mathmlBuilder(e,t){var{body:r,index:a}=e;return a?new xi.MathNode("mroot",[Ph(r,t),Ph(a,t)]):new xi.MathNode("msqrt",[Ph(r,t)])}});var f0n={display:Zs.DISPLAY,text:Zs.TEXT,script:Zs.SCRIPT,scriptscript:Zs.SCRIPTSCRIPT};pa({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:a,parser:s}=e,o=s.parseExpression(!0,r),u=a.slice(1,a.length-5);return{type:"styling",mode:s.mode,style:u,body:o}},htmlBuilder(e,t){var r=f0n[e.style],a=t.havingStyle(r).withFont("");return J7n(e.body,a,t)},mathmlBuilder(e,t){var r=f0n[e.style],a=t.havingStyle(r),s=o_(e.body,a),o=new xi.MathNode("mstyle",s),u={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},h=u[e.style];return o.setAttribute("scriptlevel",h[0]),o.setAttribute("displaystyle",h[1]),o}});var VUr=function(t,r){var a=t.base;if(a)if(a.type==="op"){var s=a.limits&&(r.style.size===Zs.DISPLAY.size||a.alwaysHandleSupSub);return s?xW:null}else if(a.type==="operatorname"){var o=a.alwaysHandleSupSub&&(r.style.size===Zs.DISPLAY.size||a.limits);return o?Z7n:null}else{if(a.type==="accent")return uu.isCharacterBox(a.base)?lft:null;if(a.type==="horizBrace"){var u=!t.sub;return u===a.isOver?K7n:null}else return null}else return null};m$({type:"supsub",htmlBuilder(e,t){var r=VUr(e,t);if(r)return r(e,t);var{base:a,sup:s,sub:o}=e,u=Yc(a,t),h,f,p=t.fontMetrics(),m=0,b=0,_=a&&uu.isCharacterBox(a);if(s){var w=t.havingStyle(t.style.sup());h=Yc(s,w,t),_||(m=u.height-w.fontMetrics().supDrop*w.sizeMultiplier/t.sizeMultiplier)}if(o){var S=t.havingStyle(t.style.sub());f=Yc(o,S,t),_||(b=u.depth+S.fontMetrics().subDrop*S.sizeMultiplier/t.sizeMultiplier)}var C;t.style===Zs.DISPLAY?C=p.sup1:t.style.cramped?C=p.sup3:C=p.sup2;var A=t.sizeMultiplier,k=Xi(.5/p.ptPerEm/A),I=null;if(f){var N=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(u instanceof mS||N)&&(I=Xi(-u.italic))}var L;if(h&&f){m=Math.max(m,C,h.depth+.25*p.xHeight),b=Math.max(b,p.sub2);var P=p.defaultRuleThickness,M=4*P;if(m-h.depth-(f.height-b)0&&(m+=F,b-=F)}var U=[{type:"elem",elem:f,shift:b,marginRight:k,marginLeft:I},{type:"elem",elem:h,shift:-m,marginRight:k}];L=Jn.makeVList({positionType:"individualShift",children:U},t)}else if(f){b=Math.max(b,p.sub1,f.height-.8*p.xHeight);var $=[{type:"elem",elem:f,marginLeft:I,marginRight:k}];L=Jn.makeVList({positionType:"shift",positionData:b,children:$},t)}else if(h)m=Math.max(m,C,h.depth+.25*p.xHeight),L=Jn.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:h,marginRight:k}]},t);else throw new Error("supsub must have either sup or sub.");var G=xst(u,"right")||"mord";return Jn.makeSpan([G],[u,Jn.makeSpan(["msupsub"],[L])],t)},mathmlBuilder(e,t){var r=!1,a,s;e.base&&e.base.type==="horizBrace"&&(s=!!e.sup,s===e.base.isOver&&(r=!0,a=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var o=[Ph(e.base,t)];e.sub&&o.push(Ph(e.sub,t)),e.sup&&o.push(Ph(e.sup,t));var u;if(r)u=a?"mover":"munder";else if(e.sub)if(e.sup){var p=e.base;p&&p.type==="op"&&p.limits&&t.style===Zs.DISPLAY||p&&p.type==="operatorname"&&p.alwaysHandleSupSub&&(t.style===Zs.DISPLAY||p.limits)?u="munderover":u="msubsup"}else{var f=e.base;f&&f.type==="op"&&f.limits&&(t.style===Zs.DISPLAY||f.alwaysHandleSupSub)||f&&f.type==="operatorname"&&f.alwaysHandleSupSub&&(f.limits||t.style===Zs.DISPLAY)?u="munder":u="msub"}else{var h=e.base;h&&h.type==="op"&&h.limits&&(t.style===Zs.DISPLAY||h.alwaysHandleSupSub)||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(h.limits||t.style===Zs.DISPLAY)?u="mover":u="msup"}return new xi.MathNode(u,o)}});m$({type:"atom",htmlBuilder(e,t){return Jn.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new xi.MathNode("mo",[bS(e.text,e.mode)]);if(e.family==="bin"){var a=sft(e,t);a==="bold-italic"&&r.setAttribute("mathvariant",a)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var eRn={mi:"italic",mn:"normal",mtext:"normal"};m$({type:"mathord",htmlBuilder(e,t){return Jn.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var r=new xi.MathNode("mi",[bS(e.text,e.mode,t)]),a=sft(e,t)||"italic";return a!==eRn[r.type]&&r.setAttribute("mathvariant",a),r}});m$({type:"textord",htmlBuilder(e,t){return Jn.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var r=bS(e.text,e.mode,t),a=sft(e,t)||"normal",s;return e.mode==="text"?s=new xi.MathNode("mtext",[r]):/[0-9]/.test(e.text)?s=new xi.MathNode("mn",[r]):e.text==="\\prime"?s=new xi.MathNode("mo",[r]):s=new xi.MathNode("mi",[r]),a!==eRn[s.type]&&s.setAttribute("mathvariant",a),s}});var YXe={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},jXe={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};m$({type:"spacing",htmlBuilder(e,t){if(jXe.hasOwnProperty(e.text)){var r=jXe[e.text].className||"";if(e.mode==="text"){var a=Jn.makeOrd(e,t,"textord");return a.classes.push(r),a}else return Jn.makeSpan(["mspace",r],[Jn.mathsym(e.text,e.mode,t)],t)}else{if(YXe.hasOwnProperty(e.text))return Jn.makeSpan(["mspace",YXe[e.text]],[],t);throw new Bi('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(jXe.hasOwnProperty(e.text))r=new xi.MathNode("mtext",[new xi.TextNode(" ")]);else{if(YXe.hasOwnProperty(e.text))return new xi.MathNode("mspace");throw new Bi('Unknown type of space "'+e.text+'"')}return r}});var p0n=()=>{var e=new xi.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};m$({type:"tag",mathmlBuilder(e,t){var r=new xi.MathNode("mtable",[new xi.MathNode("mtr",[p0n(),new xi.MathNode("mtd",[qO(e.body,t)]),p0n(),new xi.MathNode("mtd",[qO(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var g0n={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},m0n={"\\textbf":"textbf","\\textmd":"textmd"},YUr={"\\textit":"textit","\\textup":"textup"},b0n=(e,t)=>{var r=e.font;if(r){if(g0n[r])return t.withTextFontFamily(g0n[r]);if(m0n[r])return t.withTextFontWeight(m0n[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(YUr[r])};pa({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,s=t[0];return{type:"text",mode:r.mode,body:X0(s),font:a}},htmlBuilder(e,t){var r=b0n(e,t),a=Op(e.body,r,!0);return Jn.makeSpan(["mord","text"],a,r)},mathmlBuilder(e,t){var r=b0n(e,t);return qO(e.body,r)}});pa({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Yc(e.body,t),a=Jn.makeLineSpan("underline-line",t),s=t.fontMetrics().defaultRuleThickness,o=Jn.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:s},{type:"elem",elem:a},{type:"kern",size:3*s},{type:"elem",elem:r}]},t);return Jn.makeSpan(["mord","underline"],[o],t)},mathmlBuilder(e,t){var r=new xi.MathNode("mo",[new xi.TextNode("‾")]);r.setAttribute("stretchy","true");var a=new xi.MathNode("munder",[Ph(e.body,t),r]);return a.setAttribute("accentunder","true"),a}});pa({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Yc(e.body,t),a=t.fontMetrics().axisHeight,s=.5*(r.height-a-(r.depth+a));return Jn.makeVList({positionType:"shift",positionData:s,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){return new xi.MathNode("mpadded",[Ph(e.body,t)],["vcenter"])}});pa({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new Bi("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=y0n(e),a=[],s=t.havingStyle(t.style.text()),o=0;oe.body.replace(/ /g,e.star?"␣":" "),cO=x7n,tRn=`[ \r ]`,jUr="\\\\[a-zA-Z@]+",WUr="\\\\[^\uD800-\uDFFF]",KUr="("+jUr+")"+tRn+"*",XUr=`\\\\( |[ \r ]+ ?)[ \r ]*`,Ast="[̀-ͯ]",QUr=new RegExp(Ast+"+$"),ZUr="("+tRn+"+)|"+(XUr+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Ast+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Ast+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+KUr)+("|"+WUr+")");let v0n=class{constructor(t,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=r,this.tokenRegex=new RegExp(ZUr,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new Y3("EOF",new Kx(this,r,r));var a=this.tokenRegex.exec(t);if(a===null||a.index!==r)throw new Bi("Unexpected character: '"+t[r]+"'",new Y3(t[r],new Kx(this,r,r+1)));var s=a[6]||a[3]||(a[2]?"\\ ":" ");if(this.catcodes[s]===14){var o=t.indexOf(` `,this.tokenRegex.lastIndex);return o===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=o+1,this.lex()}return new Y3(s,new Kx(this,r,this.tokenRegex.lastIndex))}},JUr=class{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Bi("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,a){if(a===void 0&&(a=!1),a){for(var s=0;s0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(t)&&(o[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}};var ezr=H7n;ft("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});ft("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});ft("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});ft("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});ft("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});ft("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");ft("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var _0n={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};ft("\\char",function(e){var t=e.popToken(),r,a="";if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")a=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Bi("\\char` missing argument");a=t.text.charCodeAt(0)}else r=10;if(r){if(a=_0n[t.text],a==null||a>=r)throw new Bi("Invalid base-"+r+" digit "+t.text);for(var s;(s=_0n[e.future().text])!=null&&s{var s=e.consumeArg().tokens;if(s.length!==1)throw new Bi("\\newcommand's first argument must be a macro name");var o=s[0].text,u=e.isDefined(o);if(u&&!t)throw new Bi("\\newcommand{"+o+"} attempting to redefine "+(o+"; use \\renewcommand"));if(!u&&!r)throw new Bi("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var h=0;if(s=e.consumeArg().tokens,s.length===1&&s[0].text==="["){for(var f="",p=e.expandNextToken();p.text!=="]"&&p.text!=="EOF";)f+=p.text,p=e.expandNextToken();if(!f.match(/^\s*[0-9]+\s*$/))throw new Bi("Invalid number of arguments: "+f);h=parseInt(f),s=e.consumeArg().tokens}return u&&a||e.macros.set(o,{tokens:s,numArgs:h}),""};ft("\\newcommand",e=>mft(e,!1,!0,!1));ft("\\renewcommand",e=>mft(e,!0,!1,!1));ft("\\providecommand",e=>mft(e,!0,!0,!0));ft("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});ft("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});ft("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),cO[r],ed.math[r],ed.text[r]),""});ft("\\bgroup","{");ft("\\egroup","}");ft("~","\\nobreakspace");ft("\\lq","`");ft("\\rq","'");ft("\\aa","\\r a");ft("\\AA","\\r A");ft("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");ft("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");ft("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");ft("ℬ","\\mathscr{B}");ft("ℰ","\\mathscr{E}");ft("ℱ","\\mathscr{F}");ft("ℋ","\\mathscr{H}");ft("ℐ","\\mathscr{I}");ft("ℒ","\\mathscr{L}");ft("ℳ","\\mathscr{M}");ft("ℛ","\\mathscr{R}");ft("ℭ","\\mathfrak{C}");ft("ℌ","\\mathfrak{H}");ft("ℨ","\\mathfrak{Z}");ft("\\Bbbk","\\Bbb{k}");ft("·","\\cdotp");ft("\\llap","\\mathllap{\\textrm{#1}}");ft("\\rlap","\\mathrlap{\\textrm{#1}}");ft("\\clap","\\mathclap{\\textrm{#1}}");ft("\\mathstrut","\\vphantom{(}");ft("\\underbar","\\underline{\\text{#1}}");ft("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');ft("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");ft("\\ne","\\neq");ft("≠","\\neq");ft("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");ft("∉","\\notin");ft("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");ft("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");ft("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");ft("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");ft("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");ft("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");ft("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");ft("⟂","\\perp");ft("‼","\\mathclose{!\\mkern-0.8mu!}");ft("∌","\\notni");ft("⌜","\\ulcorner");ft("⌝","\\urcorner");ft("⌞","\\llcorner");ft("⌟","\\lrcorner");ft("©","\\copyright");ft("®","\\textregistered");ft("️","\\textregistered");ft("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');ft("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');ft("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');ft("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');ft("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");ft("⋮","\\vdots");ft("\\varGamma","\\mathit{\\Gamma}");ft("\\varDelta","\\mathit{\\Delta}");ft("\\varTheta","\\mathit{\\Theta}");ft("\\varLambda","\\mathit{\\Lambda}");ft("\\varXi","\\mathit{\\Xi}");ft("\\varPi","\\mathit{\\Pi}");ft("\\varSigma","\\mathit{\\Sigma}");ft("\\varUpsilon","\\mathit{\\Upsilon}");ft("\\varPhi","\\mathit{\\Phi}");ft("\\varPsi","\\mathit{\\Psi}");ft("\\varOmega","\\mathit{\\Omega}");ft("\\substack","\\begin{subarray}{c}#1\\end{subarray}");ft("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");ft("\\boxed","\\fbox{$\\displaystyle{#1}$}");ft("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");ft("\\implies","\\DOTSB\\;\\Longrightarrow\\;");ft("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");ft("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");ft("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var w0n={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};ft("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in w0n?t=w0n[r]:(r.slice(0,4)==="\\not"||r in ed.math&&["bin","rel"].includes(ed.math[r].group))&&(t="\\dotsb"),t});var bft={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};ft("\\dotso",function(e){var t=e.future().text;return t in bft?"\\ldots\\,":"\\ldots"});ft("\\dotsc",function(e){var t=e.future().text;return t in bft&&t!==","?"\\ldots\\,":"\\ldots"});ft("\\cdots",function(e){var t=e.future().text;return t in bft?"\\@cdots\\,":"\\@cdots"});ft("\\dotsb","\\cdots");ft("\\dotsm","\\cdots");ft("\\dotsi","\\!\\cdots");ft("\\dotsx","\\ldots\\,");ft("\\DOTSI","\\relax");ft("\\DOTSB","\\relax");ft("\\DOTSX","\\relax");ft("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");ft("\\,","\\tmspace+{3mu}{.1667em}");ft("\\thinspace","\\,");ft("\\>","\\mskip{4mu}");ft("\\:","\\tmspace+{4mu}{.2222em}");ft("\\medspace","\\:");ft("\\;","\\tmspace+{5mu}{.2777em}");ft("\\thickspace","\\;");ft("\\!","\\tmspace-{3mu}{.1667em}");ft("\\negthinspace","\\!");ft("\\negmedspace","\\tmspace-{4mu}{.2222em}");ft("\\negthickspace","\\tmspace-{5mu}{.277em}");ft("\\enspace","\\kern.5em ");ft("\\enskip","\\hskip.5em\\relax");ft("\\quad","\\hskip1em\\relax");ft("\\qquad","\\hskip2em\\relax");ft("\\tag","\\@ifstar\\tag@literal\\tag@paren");ft("\\tag@paren","\\tag@literal{({#1})}");ft("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Bi("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});ft("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");ft("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");ft("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");ft("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");ft("\\newline","\\\\\\relax");ft("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var nRn=Xi(YC["Main-Regular"][84][1]-.7*YC["Main-Regular"][65][1]);ft("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+nRn+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");ft("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+nRn+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");ft("\\hspace","\\@ifstar\\@hspacer\\@hspace");ft("\\@hspace","\\hskip #1\\relax");ft("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");ft("\\ordinarycolon",":");ft("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");ft("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');ft("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');ft("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');ft("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');ft("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');ft("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');ft("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');ft("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');ft("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');ft("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');ft("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');ft("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');ft("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');ft("∷","\\dblcolon");ft("∹","\\eqcolon");ft("≔","\\coloneqq");ft("≕","\\eqqcolon");ft("⩴","\\Coloneqq");ft("\\ratio","\\vcentcolon");ft("\\coloncolon","\\dblcolon");ft("\\colonequals","\\coloneqq");ft("\\coloncolonequals","\\Coloneqq");ft("\\equalscolon","\\eqqcolon");ft("\\equalscoloncolon","\\Eqqcolon");ft("\\colonminus","\\coloneq");ft("\\coloncolonminus","\\Coloneq");ft("\\minuscolon","\\eqcolon");ft("\\minuscoloncolon","\\Eqcolon");ft("\\coloncolonapprox","\\Colonapprox");ft("\\coloncolonsim","\\Colonsim");ft("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ft("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");ft("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ft("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");ft("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");ft("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");ft("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");ft("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");ft("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");ft("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");ft("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");ft("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");ft("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");ft("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");ft("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");ft("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");ft("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");ft("\\nleqq","\\html@mathml{\\@nleqq}{≰}");ft("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");ft("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");ft("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");ft("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");ft("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");ft("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");ft("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");ft("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");ft("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");ft("\\imath","\\html@mathml{\\@imath}{ı}");ft("\\jmath","\\html@mathml{\\@jmath}{ȷ}");ft("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");ft("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");ft("⟦","\\llbracket");ft("⟧","\\rrbracket");ft("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");ft("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");ft("⦃","\\lBrace");ft("⦄","\\rBrace");ft("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");ft("⦵","\\minuso");ft("\\darr","\\downarrow");ft("\\dArr","\\Downarrow");ft("\\Darr","\\Downarrow");ft("\\lang","\\langle");ft("\\rang","\\rangle");ft("\\uarr","\\uparrow");ft("\\uArr","\\Uparrow");ft("\\Uarr","\\Uparrow");ft("\\N","\\mathbb{N}");ft("\\R","\\mathbb{R}");ft("\\Z","\\mathbb{Z}");ft("\\alef","\\aleph");ft("\\alefsym","\\aleph");ft("\\Alpha","\\mathrm{A}");ft("\\Beta","\\mathrm{B}");ft("\\bull","\\bullet");ft("\\Chi","\\mathrm{X}");ft("\\clubs","\\clubsuit");ft("\\cnums","\\mathbb{C}");ft("\\Complex","\\mathbb{C}");ft("\\Dagger","\\ddagger");ft("\\diamonds","\\diamondsuit");ft("\\empty","\\emptyset");ft("\\Epsilon","\\mathrm{E}");ft("\\Eta","\\mathrm{H}");ft("\\exist","\\exists");ft("\\harr","\\leftrightarrow");ft("\\hArr","\\Leftrightarrow");ft("\\Harr","\\Leftrightarrow");ft("\\hearts","\\heartsuit");ft("\\image","\\Im");ft("\\infin","\\infty");ft("\\Iota","\\mathrm{I}");ft("\\isin","\\in");ft("\\Kappa","\\mathrm{K}");ft("\\larr","\\leftarrow");ft("\\lArr","\\Leftarrow");ft("\\Larr","\\Leftarrow");ft("\\lrarr","\\leftrightarrow");ft("\\lrArr","\\Leftrightarrow");ft("\\Lrarr","\\Leftrightarrow");ft("\\Mu","\\mathrm{M}");ft("\\natnums","\\mathbb{N}");ft("\\Nu","\\mathrm{N}");ft("\\Omicron","\\mathrm{O}");ft("\\plusmn","\\pm");ft("\\rarr","\\rightarrow");ft("\\rArr","\\Rightarrow");ft("\\Rarr","\\Rightarrow");ft("\\real","\\Re");ft("\\reals","\\mathbb{R}");ft("\\Reals","\\mathbb{R}");ft("\\Rho","\\mathrm{P}");ft("\\sdot","\\cdot");ft("\\sect","\\S");ft("\\spades","\\spadesuit");ft("\\sub","\\subset");ft("\\sube","\\subseteq");ft("\\supe","\\supseteq");ft("\\Tau","\\mathrm{T}");ft("\\thetasym","\\vartheta");ft("\\weierp","\\wp");ft("\\Zeta","\\mathrm{Z}");ft("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");ft("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");ft("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");ft("\\bra","\\mathinner{\\langle{#1}|}");ft("\\ket","\\mathinner{|{#1}\\rangle}");ft("\\braket","\\mathinner{\\langle{#1}\\rangle}");ft("\\Bra","\\left\\langle#1\\right|");ft("\\Ket","\\left|#1\\right\\rangle");var rRn=e=>t=>{var r=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.consumeArg().tokens,o=t.consumeArg().tokens,u=t.macros.get("|"),h=t.macros.get("\\|");t.macros.beginGroup();var f=b=>_=>{e&&(_.macros.set("|",u),s.length&&_.macros.set("\\|",h));var w=b;if(!b&&s.length){var S=_.future();S.text==="|"&&(_.popToken(),w=!0)}return{tokens:w?s:a,numArgs:0}};t.macros.set("|",f(!1)),s.length&&t.macros.set("\\|",f(!0));var p=t.consumeArg().tokens,m=t.expandTokens([...o,...p,...r]);return t.macros.endGroup(),{tokens:m.reverse(),numArgs:0}};ft("\\bra@ket",rRn(!1));ft("\\bra@set",rRn(!0));ft("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");ft("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");ft("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");ft("\\angln","{\\angl n}");ft("\\blue","\\textcolor{##6495ed}{#1}");ft("\\orange","\\textcolor{##ffa500}{#1}");ft("\\pink","\\textcolor{##ff00af}{#1}");ft("\\red","\\textcolor{##df0030}{#1}");ft("\\green","\\textcolor{##28ae7b}{#1}");ft("\\gray","\\textcolor{gray}{#1}");ft("\\purple","\\textcolor{##9d38bd}{#1}");ft("\\blueA","\\textcolor{##ccfaff}{#1}");ft("\\blueB","\\textcolor{##80f6ff}{#1}");ft("\\blueC","\\textcolor{##63d9ea}{#1}");ft("\\blueD","\\textcolor{##11accd}{#1}");ft("\\blueE","\\textcolor{##0c7f99}{#1}");ft("\\tealA","\\textcolor{##94fff5}{#1}");ft("\\tealB","\\textcolor{##26edd5}{#1}");ft("\\tealC","\\textcolor{##01d1c1}{#1}");ft("\\tealD","\\textcolor{##01a995}{#1}");ft("\\tealE","\\textcolor{##208170}{#1}");ft("\\greenA","\\textcolor{##b6ffb0}{#1}");ft("\\greenB","\\textcolor{##8af281}{#1}");ft("\\greenC","\\textcolor{##74cf70}{#1}");ft("\\greenD","\\textcolor{##1fab54}{#1}");ft("\\greenE","\\textcolor{##0d923f}{#1}");ft("\\goldA","\\textcolor{##ffd0a9}{#1}");ft("\\goldB","\\textcolor{##ffbb71}{#1}");ft("\\goldC","\\textcolor{##ff9c39}{#1}");ft("\\goldD","\\textcolor{##e07d10}{#1}");ft("\\goldE","\\textcolor{##a75a05}{#1}");ft("\\redA","\\textcolor{##fca9a9}{#1}");ft("\\redB","\\textcolor{##ff8482}{#1}");ft("\\redC","\\textcolor{##f9685d}{#1}");ft("\\redD","\\textcolor{##e84d39}{#1}");ft("\\redE","\\textcolor{##bc2612}{#1}");ft("\\maroonA","\\textcolor{##ffbde0}{#1}");ft("\\maroonB","\\textcolor{##ff92c6}{#1}");ft("\\maroonC","\\textcolor{##ed5fa6}{#1}");ft("\\maroonD","\\textcolor{##ca337c}{#1}");ft("\\maroonE","\\textcolor{##9e034e}{#1}");ft("\\purpleA","\\textcolor{##ddd7ff}{#1}");ft("\\purpleB","\\textcolor{##c6b9fc}{#1}");ft("\\purpleC","\\textcolor{##aa87ff}{#1}");ft("\\purpleD","\\textcolor{##7854ab}{#1}");ft("\\purpleE","\\textcolor{##543b78}{#1}");ft("\\mintA","\\textcolor{##f5f9e8}{#1}");ft("\\mintB","\\textcolor{##edf2df}{#1}");ft("\\mintC","\\textcolor{##e0e5cc}{#1}");ft("\\grayA","\\textcolor{##f6f7f7}{#1}");ft("\\grayB","\\textcolor{##f0f1f2}{#1}");ft("\\grayC","\\textcolor{##e3e5e6}{#1}");ft("\\grayD","\\textcolor{##d6d8da}{#1}");ft("\\grayE","\\textcolor{##babec2}{#1}");ft("\\grayF","\\textcolor{##888d93}{#1}");ft("\\grayG","\\textcolor{##626569}{#1}");ft("\\grayH","\\textcolor{##3b3e40}{#1}");ft("\\grayI","\\textcolor{##21242c}{#1}");ft("\\kaBlue","\\textcolor{##314453}{#1}");ft("\\kaGreen","\\textcolor{##71B307}{#1}");var iRn={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};let tzr=class{constructor(t,r,a){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new JUr(ezr,r.macros),this.mode=a,this.stack=[]}feed(t){this.lexer=new v0n(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,a,s;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:s,end:a}=this.consumeArg(["]"])}else({tokens:s,start:r,end:a}=this.consumeArg());return this.pushToken(new Y3("EOF",a.loc)),this.pushTokens(s),new Y3("",Kx.range(r,a))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],a=t&&t.length>0;a||this.consumeSpaces();var s=this.future(),o,u=0,h=0;do{if(o=this.popToken(),r.push(o),o.text==="{")++u;else if(o.text==="}"){if(--u,u===-1)throw new Bi("Extra }",o)}else if(o.text==="EOF")throw new Bi("Unexpected end of input in a macro argument, expected '"+(t&&a?t[h]:"}")+"'",o);if(t&&a)if((u===0||u===1&&t[h]==="{")&&o.text===t[h]){if(++h,h===t.length){r.splice(-h,h);break}}else h=0}while(u!==0||a);return s.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:s,end:o}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new Bi("The length of delimiters doesn't match the number of args!");for(var a=r[0],s=0;sthis.settings.maxExpand)throw new Bi("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),a=r.text,s=r.noexpand?null:this._getExpansion(a);if(s==null||t&&s.unexpandable){if(t&&s==null&&a[0]==="\\"&&!this.isDefined(a))throw new Bi("Undefined control sequence: "+a);return this.pushToken(r),!1}this.countExpansion(1);var o=s.tokens,u=this.consumeArgs(s.numArgs,s.delimiters);if(s.numArgs){o=o.slice();for(var h=o.length-1;h>=0;--h){var f=o[h];if(f.text==="#"){if(h===0)throw new Bi("Incomplete placeholder at end of macro body",f);if(f=o[--h],f.text==="#")o.splice(h+1,1);else if(/^[1-9]$/.test(f.text))o.splice(h,2,...u[+f.text-1]);else throw new Bi("Not a valid argument number",f)}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Y3(t)]):void 0}expandTokens(t){var r=[],a=this.stack.length;for(this.pushTokens(t);this.stack.length>a;)if(this.expandOnce(!0)===!1){var s=this.stack.pop();s.treatAsRelax&&(s.noexpand=!1,s.treatAsRelax=!1),r.push(s)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(a=>a.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var a=this.lexer.catcodes[t];if(a!=null&&a!==13)return}var s=typeof r=="function"?r(this):r;if(typeof s=="string"){var o=0;if(s.indexOf("#")!==-1)for(var u=s.replace(/##/g,"");u.indexOf("#"+(o+1))!==-1;)++o;for(var h=new v0n(s,this.settings),f=[],p=h.lex();p.text!=="EOF";)f.push(p),p=h.lex();f.reverse();var m={tokens:f,numArgs:o};return m}return s}isDefined(t){return this.macros.has(t)||cO.hasOwnProperty(t)||ed.math.hasOwnProperty(t)||ed.text.hasOwnProperty(t)||iRn.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:cO.hasOwnProperty(t)&&!cO[t].primitive}};var E0n=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,x_e=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),WXe={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},x0n={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let aRn=class sRn{constructor(t,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new tzr(t,r,this.mode),this.settings=r,this.leftrightDepth=0}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new Bi("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Y3("}")),this.gullet.pushTokens(t);var a=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,a}parseExpression(t,r){for(var a=[];;){this.mode==="math"&&this.consumeSpaces();var s=this.fetch();if(sRn.endOfExpression.indexOf(s.text)!==-1||r&&s.text===r||t&&cO[s.text]&&cO[s.text].infix)break;var o=this.parseAtom(r);if(o){if(o.type==="internal")continue}else break;a.push(o)}return this.mode==="text"&&this.formLigatures(a),this.handleInfixNodes(a)}handleInfixNodes(t){for(var r=-1,a,s=0;s=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var h=ed[this.mode][r].group,f=Kx.range(t),p;if(q$r.hasOwnProperty(h)){var m=h;p={type:"atom",mode:this.mode,family:m,loc:f,text:r}}else p={type:h,mode:this.mode,loc:f,text:r};u=p}else if(r.charCodeAt(0)>=128)this.settings.strict&&(h7n(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),u={type:"textord",mode:"text",loc:Kx.range(t),text:r};else return null;if(this.consume(),o)for(var b=0;b{if(o.type!=="declaration")return;const{property:u,value:h}=o;s?t(u,h,o):h&&(r=r||{},r[u]=h)}),r}var tCe={};Object.defineProperty(tCe,"__esModule",{value:!0});tCe.camelCase=void 0;var vzr=/^--[a-zA-Z0-9_-]+$/,_zr=/-([a-z])/g,wzr=/^[^-]+$/,Ezr=/^-(webkit|moz|ms|o|khtml)-/,xzr=/^-(ms)-/,Szr=function(e){return!e||wzr.test(e)||vzr.test(e)},Tzr=function(e,t){return t.toUpperCase()},R0n=function(e,t){return"".concat(t,"-")},Czr=function(e,t){return t===void 0&&(t={}),Szr(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(xzr,R0n):e=e.replace(Ezr,R0n),e.replace(_zr,Tzr))};tCe.camelCase=Czr;var Azr=ml&&ml.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},kzr=Azr(wft),Rzr=tCe;function kst(e,t){var r={};return!e||typeof e!="string"||(0,kzr.default)(e,function(a,s){a&&s&&(r[(0,Rzr.camelCase)(a,t)]=s)}),r}kst.default=kst;var Izr=kst;function Eft(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var b$=Eft();function fRn(e){b$=e}var Zae={exec:()=>null};function du(e,t=""){let r=typeof e=="string"?e:e.source,a={replace:(s,o)=>{let u=typeof o=="string"?o:o.source;return u=u.replace(Wy.caret,"$1"),r=r.replace(s,u),a},getRegex:()=>new RegExp(r,t)};return a}var Nzr=(()=>{try{return!!new RegExp("(?<=1)(?/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Ozr=/^(?:[ \t]*(?:\n|$))+/,Lzr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Dzr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,zle=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Mzr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,xft=/(?:[*+-]|\d{1,9}[.)])/,pRn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,gRn=du(pRn).replace(/bull/g,xft).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Pzr=du(pRn).replace(/bull/g,xft).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Sft=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Bzr=/^[^\n]+/,Tft=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Fzr=du(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Tft).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),$zr=du(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,xft).getRegex(),nCe="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Cft=/|$))/,Uzr=du("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Cft).replace("tag",nCe).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),mRn=du(Sft).replace("hr",zle).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",nCe).getRegex(),zzr=du(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",mRn).getRegex(),Aft={blockquote:zzr,code:Lzr,def:Fzr,fences:Dzr,heading:Mzr,hr:zle,html:Uzr,lheading:gRn,list:$zr,newline:Ozr,paragraph:mRn,table:Zae,text:Bzr},I0n=du("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",zle).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",nCe).getRegex(),Gzr={...Aft,lheading:Pzr,table:I0n,paragraph:du(Sft).replace("hr",zle).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",I0n).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",nCe).getRegex()},qzr={...Aft,html:du(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Cft).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Zae,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:du(Sft).replace("hr",zle).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",gRn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Hzr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Vzr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,bRn=/^( {2,}|\\)\n(?!\s*$)/,Yzr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Nzr?"(?`+)[^`]+\k(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),_Rn=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Qzr=du(_Rn,"u").replace(/punct/g,rCe).getRegex(),Zzr=du(_Rn,"u").replace(/punct/g,vRn).getRegex(),wRn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Jzr=du(wRn,"gu").replace(/notPunctSpace/g,yRn).replace(/punctSpace/g,kft).replace(/punct/g,rCe).getRegex(),eGr=du(wRn,"gu").replace(/notPunctSpace/g,Kzr).replace(/punctSpace/g,Wzr).replace(/punct/g,vRn).getRegex(),tGr=du("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,yRn).replace(/punctSpace/g,kft).replace(/punct/g,rCe).getRegex(),nGr=du(/\\(punct)/,"gu").replace(/punct/g,rCe).getRegex(),rGr=du(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),iGr=du(Cft).replace("(?:-->|$)","-->").getRegex(),aGr=du("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",iGr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),BSe=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,sGr=du(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",BSe).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ERn=du(/^!?\[(label)\]\[(ref)\]/).replace("label",BSe).replace("ref",Tft).getRegex(),xRn=du(/^!?\[(ref)\](?:\[\])?/).replace("ref",Tft).getRegex(),oGr=du("reflink|nolink(?!\\()","g").replace("reflink",ERn).replace("nolink",xRn).getRegex(),N0n=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Rft={_backpedal:Zae,anyPunctuation:nGr,autolink:rGr,blockSkip:Xzr,br:bRn,code:Vzr,del:Zae,emStrongLDelim:Qzr,emStrongRDelimAst:Jzr,emStrongRDelimUnd:tGr,escape:Hzr,link:sGr,nolink:xRn,punctuation:jzr,reflink:ERn,reflinkSearch:oGr,tag:aGr,text:Yzr,url:Zae},lGr={...Rft,link:du(/^!?\[(label)\]\((.*?)\)/).replace("label",BSe).getRegex(),reflink:du(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",BSe).getRegex()},Rst={...Rft,emStrongRDelimAst:eGr,emStrongLDelim:Zzr,url:du(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",N0n).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:du(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},O0n=e=>uGr[e];function r7(e,t){if(t){if(Wy.escapeTest.test(e))return e.replace(Wy.escapeReplace,O0n)}else if(Wy.escapeTestNoEncode.test(e))return e.replace(Wy.escapeReplaceNoEncode,O0n);return e}function L0n(e){try{e=encodeURI(e).replace(Wy.percentDecode,"%")}catch{return null}return e}function D0n(e,t){var o;let r=e.replace(Wy.findPipe,(u,h,f)=>{let p=!1,m=h;for(;--m>=0&&f[m]==="\\";)p=!p;return p?"|":" |"}),a=r.split(Wy.splitPipe),s=0;if(a[0].trim()||a.shift(),a.length>0&&!((o=a.at(-1))!=null&&o.trim())&&a.pop(),t)if(a.length>t)a.splice(t);else for(;a.length0?-2:-1}function M0n(e,t,r,a,s){let o=t.href,u=t.title||null,h=e[1].replace(s.other.outputLinkReplace,"$1");a.state.inLink=!0;let f={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:o,title:u,text:h,tokens:a.inlineTokens(h)};return a.state.inLink=!1,f}function dGr(e,t,r){let a=e.match(r.other.indentCodeCompensation);if(a===null)return t;let s=a[1];return t.split(` `).map(o=>{let u=o.match(r.other.beginningSpace);if(u===null)return o;let[h]=u;return h.length>=s.length?o.slice(s.length):o}).join(` `)}var FSe=class{constructor(t){Gi(this,"options");Gi(this,"rules");Gi(this,"lexer");this.options=t||b$}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let a=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?a:Ere(a,` `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let a=r[0],s=dGr(a,r[3]||"",this.rules);return{type:"code",raw:a,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:s}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let a=r[2].trim();if(this.rules.other.endingHash.test(a)){let s=Ere(a,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(a=s.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:a,tokens:this.lexer.inline(a)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:Ere(r[0],` `)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let a=Ere(r[0],` `).split(` `),s="",o="",u=[];for(;a.length>0;){let h=!1,f=[],p;for(p=0;p1,h={type:"list",raw:"",ordered:u,start:u?+o.slice(0,-1):"",loose:!1,items:[]};o=u?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=u?o:"[*+-]");let f=this.rules.other.listItemRegex(o),p=!1;for(;t;){let b=!1,_="",w="";if(!(r=f.exec(t))||this.rules.block.hr.test(t))break;_=r[0],t=t.substring(_.length);let S=r[2].split(` `,1)[0].replace(this.rules.other.listReplaceTabs,I=>" ".repeat(3*I.length)),C=t.split(` `,1)[0],A=!S.trim(),k=0;if(this.options.pedantic?(k=2,w=S.trimStart()):A?k=r[1].length+1:(k=r[2].search(this.rules.other.nonSpaceChar),k=k>4?1:k,w=S.slice(k),k+=r[1].length),A&&this.rules.other.blankLine.test(C)&&(_+=C+` `,t=t.substring(C.length+1),b=!0),!b){let I=this.rules.other.nextBulletRegex(k),N=this.rules.other.hrRegex(k),L=this.rules.other.fencesBeginRegex(k),P=this.rules.other.headingBeginRegex(k),M=this.rules.other.htmlBeginRegex(k);for(;t;){let F=t.split(` `,1)[0],U;if(C=F,this.options.pedantic?(C=C.replace(this.rules.other.listReplaceNesting," "),U=C):U=C.replace(this.rules.other.tabCharGlobal," "),L.test(C)||P.test(C)||M.test(C)||I.test(C)||N.test(C))break;if(U.search(this.rules.other.nonSpaceChar)>=k||!C.trim())w+=` `+U.slice(k);else{if(A||S.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||L.test(S)||P.test(S)||N.test(S))break;w+=` `+C}!A&&!C.trim()&&(A=!0),_+=F+` `,t=t.substring(F.length+1),S=U.slice(k)}}h.loose||(p?h.loose=!0:this.rules.other.doubleBlankLine.test(_)&&(p=!0)),h.items.push({type:"list_item",raw:_,task:!!this.options.gfm&&this.rules.other.listIsTask.test(w),loose:!1,text:w,tokens:[]}),h.raw+=_}let m=h.items.at(-1);if(m)m.raw=m.raw.trimEnd(),m.text=m.text.trimEnd();else return;h.raw=h.raw.trimEnd();for(let b of h.items){if(this.lexer.state.top=!1,b.tokens=this.lexer.blockTokens(b.text,[]),b.task){if(b.text=b.text.replace(this.rules.other.listReplaceTask,""),((a=b.tokens[0])==null?void 0:a.type)==="text"||((s=b.tokens[0])==null?void 0:s.type)==="paragraph"){b.tokens[0].raw=b.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),b.tokens[0].text=b.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let w=this.lexer.inlineQueue.length-1;w>=0;w--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[w].src)){this.lexer.inlineQueue[w].src=this.lexer.inlineQueue[w].src.replace(this.rules.other.listReplaceTask,"");break}}let _=this.rules.other.listTaskCheckbox.exec(b.raw);if(_){let w={type:"checkbox",raw:_[0]+" ",checked:_[0]!=="[ ]"};b.checked=w.checked,h.loose?b.tokens[0]&&["paragraph","text"].includes(b.tokens[0].type)&&"tokens"in b.tokens[0]&&b.tokens[0].tokens?(b.tokens[0].raw=w.raw+b.tokens[0].raw,b.tokens[0].text=w.raw+b.tokens[0].text,b.tokens[0].tokens.unshift(w)):b.tokens.unshift({type:"paragraph",raw:w.raw,text:w.raw,tokens:[w]}):b.tokens.unshift(w)}}if(!h.loose){let _=b.tokens.filter(S=>S.type==="space"),w=_.length>0&&_.some(S=>this.rules.other.anyLine.test(S.raw));h.loose=w}}if(h.loose)for(let b of h.items){b.loose=!0;for(let _ of b.tokens)_.type==="text"&&(_.type="paragraph")}return h}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let a=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:a,raw:r[0],href:s,title:o}}}table(t){var h;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let a=D0n(r[1]),s=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(h=r[3])!=null&&h.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(` `):[],u={type:"table",raw:r[0],header:[],align:[],rows:[]};if(a.length===s.length){for(let f of s)this.rules.other.tableAlignRight.test(f)?u.align.push("right"):this.rules.other.tableAlignCenter.test(f)?u.align.push("center"):this.rules.other.tableAlignLeft.test(f)?u.align.push("left"):u.align.push(null);for(let f=0;f({text:p,tokens:this.lexer.inline(p),header:!1,align:u.align[m]})));return u}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let a=r[1].charAt(r[1].length-1)===` `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:a,tokens:this.lexer.inline(a)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let a=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(a)){if(!this.rules.other.endAngleBracket.test(a))return;let u=Ere(a.slice(0,-1),"\\");if((a.length-u.length)%2===0)return}else{let u=hGr(r[2],"()");if(u===-2)return;if(u>-1){let h=(r[0].indexOf("!")===0?5:4)+r[1].length+u;r[2]=r[2].substring(0,u),r[0]=r[0].substring(0,h).trim(),r[3]=""}}let s=r[2],o="";if(this.options.pedantic){let u=this.rules.other.pedanticHrefTitle.exec(s);u&&(s=u[1],o=u[3])}else o=r[3]?r[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(a)?s=s.slice(1):s=s.slice(1,-1)),M0n(r,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let a;if((a=this.rules.inline.reflink.exec(t))||(a=this.rules.inline.nolink.exec(t))){let s=(a[2]||a[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=r[s.toLowerCase()];if(!o){let u=a[0].charAt(0);return{type:"text",raw:u,text:u}}return M0n(a,o,a[0],this.lexer,this.rules)}}emStrong(t,r,a=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&a.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!a||this.rules.inline.punctuation.exec(a))){let o=[...s[0]].length-1,u,h,f=o,p=0,m=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,r=r.slice(-1*t.length+o);(s=m.exec(r))!=null;){if(u=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!u)continue;if(h=[...u].length,s[3]||s[4]){f+=h;continue}else if((s[5]||s[6])&&o%3&&!((o+h)%3)){p+=h;continue}if(f-=h,f>0)continue;h=Math.min(h,h+f+p);let b=[...s[0]][0].length,_=t.slice(0,o+s.index+b+h);if(Math.min(o,h)%2){let S=_.slice(1,-1);return{type:"em",raw:_,text:S,tokens:this.lexer.inlineTokens(S)}}let w=_.slice(2,-2);return{type:"strong",raw:_,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let a=r[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(a),o=this.rules.other.startingSpaceChar.test(a)&&this.rules.other.endingSpaceChar.test(a);return s&&o&&(a=a.substring(1,a.length-1)),{type:"codespan",raw:r[0],text:a}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let a,s;return r[2]==="@"?(a=r[1],s="mailto:"+a):(a=r[1],s=a),{type:"link",raw:r[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}}url(t){var a;let r;if(r=this.rules.inline.url.exec(t)){let s,o;if(r[2]==="@")s=r[0],o="mailto:"+s;else{let u;do u=r[0],r[0]=((a=this.rules.inline._backpedal.exec(r[0]))==null?void 0:a[0])??"";while(u!==r[0]);s=r[0],r[1]==="www."?o="http://"+r[0]:o=r[0]}return{type:"link",raw:r[0],text:s,href:o,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let a=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:a}}}},O3=class Ist{constructor(t){Gi(this,"tokens");Gi(this,"options");Gi(this,"state");Gi(this,"inlineQueue");Gi(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||b$,this.options.tokenizer=this.options.tokenizer||new FSe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Wy,block:S_e.normal,inline:wre.normal};this.options.pedantic?(r.block=S_e.pedantic,r.inline=wre.pedantic):this.options.gfm&&(r.block=S_e.gfm,this.options.breaks?r.inline=wre.breaks:r.inline=wre.gfm),this.tokenizer.rules=r}static get rules(){return{block:S_e,inline:wre}}static lex(t,r){return new Ist(r).lex(t)}static lexInline(t,r){return new Ist(r).inlineTokens(t)}lex(t){t=t.replace(Wy.carriageReturn,` `),this.blockTokens(t,this.tokens);for(let r=0;r(h=p.call({lexer:this},t,r))?(t=t.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.space(t)){t=t.substring(h.raw.length);let p=r.at(-1);h.raw.length===1&&p!==void 0?p.raw+=` `:r.push(h);continue}if(h=this.tokenizer.code(t)){t=t.substring(h.raw.length);let p=r.at(-1);(p==null?void 0:p.type)==="paragraph"||(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith(` `)?"":` `)+h.raw,p.text+=` `+h.text,this.inlineQueue.at(-1).src=p.text):r.push(h);continue}if(h=this.tokenizer.fences(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.heading(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.hr(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.blockquote(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.list(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.html(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.def(t)){t=t.substring(h.raw.length);let p=r.at(-1);(p==null?void 0:p.type)==="paragraph"||(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith(` `)?"":` `)+h.raw,p.text+=` `+h.raw,this.inlineQueue.at(-1).src=p.text):this.tokens.links[h.tag]||(this.tokens.links[h.tag]={href:h.href,title:h.title},r.push(h));continue}if(h=this.tokenizer.table(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.lheading(t)){t=t.substring(h.raw.length),r.push(h);continue}let f=t;if((u=this.options.extensions)!=null&&u.startBlock){let p=1/0,m=t.slice(1),b;this.options.extensions.startBlock.forEach(_=>{b=_.call({lexer:this},m),typeof b=="number"&&b>=0&&(p=Math.min(p,b))}),p<1/0&&p>=0&&(f=t.substring(0,p+1))}if(this.state.top&&(h=this.tokenizer.paragraph(f))){let p=r.at(-1);a&&(p==null?void 0:p.type)==="paragraph"?(p.raw+=(p.raw.endsWith(` `)?"":` `)+h.raw,p.text+=` `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):r.push(h),a=f.length!==t.length,t=t.substring(h.raw.length);continue}if(h=this.tokenizer.text(t)){t=t.substring(h.raw.length);let p=r.at(-1);(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith(` `)?"":` `)+h.raw,p.text+=` `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):r.push(h);continue}if(t){let p="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var f,p,m,b,_;let a=t,s=null;if(this.tokens.links){let w=Object.keys(this.tokens.links);if(w.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)w.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,s.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)o=s[2]?s[2].length:0,a=a.slice(0,s.index+o)+"["+"a".repeat(s[0].length-o-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);a=((p=(f=this.options.hooks)==null?void 0:f.emStrongMask)==null?void 0:p.call({lexer:this},a))??a;let u=!1,h="";for(;t;){u||(h=""),u=!1;let w;if((b=(m=this.options.extensions)==null?void 0:m.inline)!=null&&b.some(C=>(w=C.call({lexer:this},t,r))?(t=t.substring(w.raw.length),r.push(w),!0):!1))continue;if(w=this.tokenizer.escape(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.tag(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.link(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(w.raw.length);let C=r.at(-1);w.type==="text"&&(C==null?void 0:C.type)==="text"?(C.raw+=w.raw,C.text+=w.text):r.push(w);continue}if(w=this.tokenizer.emStrong(t,a,h)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.codespan(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.br(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.del(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.autolink(t)){t=t.substring(w.raw.length),r.push(w);continue}if(!this.state.inLink&&(w=this.tokenizer.url(t))){t=t.substring(w.raw.length),r.push(w);continue}let S=t;if((_=this.options.extensions)!=null&&_.startInline){let C=1/0,A=t.slice(1),k;this.options.extensions.startInline.forEach(I=>{k=I.call({lexer:this},A),typeof k=="number"&&k>=0&&(C=Math.min(C,k))}),C<1/0&&C>=0&&(S=t.substring(0,C+1))}if(w=this.tokenizer.inlineText(S)){t=t.substring(w.raw.length),w.raw.slice(-1)!=="_"&&(h=w.raw.slice(-1)),u=!0;let C=r.at(-1);(C==null?void 0:C.type)==="text"?(C.raw+=w.raw,C.text+=w.text):r.push(w);continue}if(t){let C="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(C);break}else throw new Error(C)}}return r}},$Se=class{constructor(t){Gi(this,"options");Gi(this,"parser");this.options=t||b$}space(t){return""}code({text:t,lang:r,escaped:a}){var u;let s=(u=(r||"").match(Wy.notSpaceStart))==null?void 0:u[0],o=t.replace(Wy.endingNewline,"")+` `;return s?'
'+(a?o:r7(o,!0))+`
`:"
"+(a?o:r7(o,!0))+`
`}blockquote({tokens:t}){return`
${this.parser.parse(t)}
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`${this.parser.parseInline(t)} `}hr(t){return`
`}list(t){let r=t.ordered,a=t.start,s="";for(let h=0;h `+s+" `}listitem(t){return`
  • ${this.parser.parse(t.tokens)}
  • `}checkbox({checked:t}){return" '}paragraph({tokens:t}){return`

    ${this.parser.parseInline(t)}

    `}table(t){let r="",a="";for(let o=0;o${s}`),` `+r+` `+s+`
    `}tablerow({text:t}){return` ${t} `}tablecell(t){let r=this.parser.parseInline(t.tokens),a=t.header?"th":"td";return(t.align?`<${a} align="${t.align}">`:`<${a}>`)+r+` `}strong({tokens:t}){return`${this.parser.parseInline(t)}`}em({tokens:t}){return`${this.parser.parseInline(t)}`}codespan({text:t}){return`${r7(t,!0)}`}br(t){return"
    "}del({tokens:t}){return`${this.parser.parseInline(t)}`}link({href:t,title:r,tokens:a}){let s=this.parser.parseInline(a),o=L0n(t);if(o===null)return s;t=o;let u='
    ",u}image({href:t,title:r,text:a,tokens:s}){s&&(a=this.parser.parseInline(s,this.parser.textRenderer));let o=L0n(t);if(o===null)return r7(a);t=o;let u=`${a}{let p=h[f].flat(1/0);a=a.concat(this.walkTokens(p,r))}):h.tokens&&(a=a.concat(this.walkTokens(h.tokens,r)))}}return a}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(a=>{let s={...a};if(s.async=this.defaults.async||s.async||!1,a.extensions&&(a.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let u=r.renderers[o.name];u?r.renderers[o.name]=function(...h){let f=o.renderer.apply(this,h);return f===!1&&(f=u.apply(this,h)),f}:r.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let u=r[o.level];u?u.unshift(o.tokenizer):r[o.level]=[o.tokenizer],o.start&&(o.level==="block"?r.startBlock?r.startBlock.push(o.start):r.startBlock=[o.start]:o.level==="inline"&&(r.startInline?r.startInline.push(o.start):r.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(r.childTokens[o.name]=o.childTokens)}),s.extensions=r),a.renderer){let o=this.defaults.renderer||new $Se(this.defaults);for(let u in a.renderer){if(!(u in o))throw new Error(`renderer '${u}' does not exist`);if(["options","parser"].includes(u))continue;let h=u,f=a.renderer[h],p=o[h];o[h]=(...m)=>{let b=f.apply(o,m);return b===!1&&(b=p.apply(o,m)),b||""}}s.renderer=o}if(a.tokenizer){let o=this.defaults.tokenizer||new FSe(this.defaults);for(let u in a.tokenizer){if(!(u in o))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;let h=u,f=a.tokenizer[h],p=o[h];o[h]=(...m)=>{let b=f.apply(o,m);return b===!1&&(b=p.apply(o,m)),b}}s.tokenizer=o}if(a.hooks){let o=this.defaults.hooks||new Tie;for(let u in a.hooks){if(!(u in o))throw new Error(`hook '${u}' does not exist`);if(["options","block"].includes(u))continue;let h=u,f=a.hooks[h],p=o[h];Tie.passThroughHooks.has(u)?o[h]=m=>{if(this.defaults.async&&Tie.passThroughHooksRespectAsync.has(u))return(async()=>{let _=await f.call(o,m);return p.call(o,_)})();let b=f.call(o,m);return p.call(o,b)}:o[h]=(...m)=>{if(this.defaults.async)return(async()=>{let _=await f.apply(o,m);return _===!1&&(_=await p.apply(o,m)),_})();let b=f.apply(o,m);return b===!1&&(b=p.apply(o,m)),b}}s.hooks=o}if(a.walkTokens){let o=this.defaults.walkTokens,u=a.walkTokens;s.walkTokens=function(h){let f=[];return f.push(u.call(this,h)),o&&(f=f.concat(o.call(this,h))),f}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return O3.lex(t,r??this.defaults)}parser(t,r){return L3.parse(t,r??this.defaults)}parseMarkdown(t){return(r,a)=>{let s={...a},o={...this.defaults,...s},u=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return u(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=t),o.async)return(async()=>{let h=o.hooks?await o.hooks.preprocess(r):r,f=await(o.hooks?await o.hooks.provideLexer():t?O3.lex:O3.lexInline)(h,o),p=o.hooks?await o.hooks.processAllTokens(f):f;o.walkTokens&&await Promise.all(this.walkTokens(p,o.walkTokens));let m=await(o.hooks?await o.hooks.provideParser():t?L3.parse:L3.parseInline)(p,o);return o.hooks?await o.hooks.postprocess(m):m})().catch(u);try{o.hooks&&(r=o.hooks.preprocess(r));let h=(o.hooks?o.hooks.provideLexer():t?O3.lex:O3.lexInline)(r,o);o.hooks&&(h=o.hooks.processAllTokens(h)),o.walkTokens&&this.walkTokens(h,o.walkTokens);let f=(o.hooks?o.hooks.provideParser():t?L3.parse:L3.parseInline)(h,o);return o.hooks&&(f=o.hooks.postprocess(f)),f}catch(h){return u(h)}}}onError(t,r){return a=>{if(a.message+=` Please report this to https://github.com/markedjs/marked.`,t){let s="

    An error occurred:

    "+r7(a.message+"",!0)+"
    ";return r?Promise.resolve(s):s}if(r)return Promise.reject(a);throw a}}},_F=new fGr;function vh(e,t){return _F.parse(e,t)}vh.options=vh.setOptions=function(e){return _F.setOptions(e),vh.defaults=_F.defaults,fRn(vh.defaults),vh};vh.getDefaults=Eft;vh.defaults=b$;vh.use=function(...e){return _F.use(...e),vh.defaults=_F.defaults,fRn(vh.defaults),vh};vh.walkTokens=function(e,t){return _F.walkTokens(e,t)};vh.parseInline=_F.parseInline;vh.Parser=L3;vh.parser=L3.parse;vh.Renderer=$Se;vh.TextRenderer=Ift;vh.Lexer=O3;vh.lexer=O3.lex;vh.Tokenizer=FSe;vh.Hooks=Tie;vh.parse=vh;vh.options;vh.setOptions;vh.use;vh.walkTokens;vh.parseInline;L3.parse;O3.lex;ue.createContext(null);function P0n(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mA(...e){return t=>{let r=!1;const a=e.map(s=>{const o=P0n(s,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let s=0;s{let{children:o,...u}=a;SRn(o)&&typeof USe=="function"&&(o=USe(o._payload));const h=ue.Children.toArray(o),f=h.find(yGr);if(f){const p=f.props.children,m=h.map(b=>b===f?ue.Children.count(p)>1?ue.Children.only(null):ue.isValidElement(p)?p.props.children:null:b);return ct.jsx(t,{...u,ref:s,children:ue.isValidElement(p)?ue.cloneElement(p,void 0,m):null})}return ct.jsx(t,{...u,ref:s,children:o})});return r.displayName=`${e}.Slot`,r}var E3a=TRn("Slot");function mGr(e){const t=ue.forwardRef((r,a)=>{let{children:s,...o}=r;if(SRn(s)&&typeof USe=="function"&&(s=USe(s._payload)),ue.isValidElement(s)){const u=_Gr(s),h=vGr(o,s.props);return s.type!==ue.Fragment&&(h.ref=a?mA(a,u):u),ue.cloneElement(s,h)}return ue.Children.count(s)>1?ue.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var bGr=Symbol("radix.slottable");function yGr(e){return ue.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===bGr}function vGr(e,t){const r={...t};for(const a in t){const s=e[a],o=t[a];/^on[A-Z]/.test(a)?s&&o?r[a]=(...h)=>{const f=o(...h);return s(...h),f}:s&&(r[a]=s):a==="style"?r[a]={...s,...o}:a==="className"&&(r[a]=[s,o].filter(Boolean).join(" "))}return{...e,...r}}function _Gr(e){var a,s;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const wGr=(e,t)=>{const r=new Array(e.length+t.length);for(let a=0;a({classGroupId:e,validator:t}),CRn=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),zSe="-",B0n=[],xGr="arbitrary..",SGr=e=>{const t=CGr(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return TGr(u);const h=u.split(zSe),f=h[0]===""&&h.length>1?1:0;return ARn(h,f,t)},getConflictingClassGroupIds:(u,h)=>{if(h){const f=a[u],p=r[u];return f?p?wGr(p,f):f:p||B0n}return r[u]||B0n}}},ARn=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const s=e[t],o=r.nextPart.get(s);if(o){const p=ARn(e,t+1,o);if(p)return p}const u=r.validators;if(u===null)return;const h=t===0?e.join(zSe):e.slice(t).join(zSe),f=u.length;for(let p=0;pe.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),a=t.slice(0,r);return a?xGr+a:void 0})(),CGr=e=>{const{theme:t,classGroups:r}=e;return AGr(r,t)},AGr=(e,t)=>{const r=CRn();for(const a in e){const s=e[a];Nft(s,r,a,t)}return r},Nft=(e,t,r,a)=>{const s=e.length;for(let o=0;o{if(typeof e=="string"){RGr(e,t,r);return}if(typeof e=="function"){IGr(e,t,r,a);return}NGr(e,t,r,a)},RGr=(e,t,r)=>{const a=e===""?t:kRn(t,e);a.classGroupId=r},IGr=(e,t,r,a)=>{if(OGr(e)){Nft(e(a),t,r,a);return}t.validators===null&&(t.validators=[]),t.validators.push(EGr(r,e))},NGr=(e,t,r,a)=>{const s=Object.entries(e),o=s.length;for(let u=0;u{let r=e;const a=t.split(zSe),s=a.length;for(let o=0;o"isThemeGetter"in e&&e.isThemeGetter===!0,LGr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),a=Object.create(null);const s=(o,u)=>{r[o]=u,t++,t>e&&(t=0,a=r,r=Object.create(null))};return{get(o){let u=r[o];if(u!==void 0)return u;if((u=a[o])!==void 0)return s(o,u),u},set(o,u){o in r?r[o]=u:s(o,u)}}},Ost="!",F0n=":",DGr=[],$0n=(e,t,r,a,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:a,isExternal:s}),MGr=e=>{const{prefix:t,experimentalParseClassName:r}=e;let a=s=>{const o=[];let u=0,h=0,f=0,p;const m=s.length;for(let C=0;Cf?p-f:void 0;return $0n(o,w,_,S)};if(t){const s=t+F0n,o=a;a=u=>u.startsWith(s)?o(u.slice(s.length)):$0n(DGr,!1,u,void 0,!0)}if(r){const s=a;a=o=>r({className:o,parseClassName:s})}return a},PGr=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,a)=>{t.set(r,1e6+a)}),r=>{const a=[];let s=[];for(let o=0;o0&&(s.sort(),a.push(...s),s=[]),a.push(u)):s.push(u)}return s.length>0&&(s.sort(),a.push(...s)),a}},BGr=e=>({cache:LGr(e.cacheSize),parseClassName:MGr(e),sortModifiers:PGr(e),...SGr(e)}),FGr=/\s+/,$Gr=(e,t)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:s,sortModifiers:o}=t,u=[],h=e.trim().split(FGr);let f="";for(let p=h.length-1;p>=0;p-=1){const m=h[p],{isExternal:b,modifiers:_,hasImportantModifier:w,baseClassName:S,maybePostfixModifierPosition:C}=r(m);if(b){f=m+(f.length>0?" "+f:f);continue}let A=!!C,k=a(A?S.substring(0,C):S);if(!k){if(!A){f=m+(f.length>0?" "+f:f);continue}if(k=a(S),!k){f=m+(f.length>0?" "+f:f);continue}A=!1}const I=_.length===0?"":_.length===1?_[0]:o(_).join(":"),N=w?I+Ost:I,L=N+k;if(u.indexOf(L)>-1)continue;u.push(L);const P=s(k,A);for(let M=0;M0?" "+f:f)}return f},UGr=(...e)=>{let t=0,r,a,s="";for(;t{if(typeof e=="string")return e;let t,r="";for(let a=0;a{let r,a,s,o;const u=f=>{const p=t.reduce((m,b)=>b(m),e());return r=BGr(p),a=r.cache.get,s=r.cache.set,o=h,h(f)},h=f=>{const p=a(f);if(p)return p;const m=$Gr(f,r);return s(f,m),m};return o=u,(...f)=>o(UGr(...f))},GGr=[],pp=e=>{const t=r=>r[e]||GGr;return t.isThemeGetter=!0,t},IRn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,NRn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,qGr=/^\d+\/\d+$/,HGr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,VGr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,YGr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jGr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,WGr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,LH=e=>qGr.test(e),Hl=e=>!!e&&!Number.isNaN(Number(e)),ON=e=>!!e&&Number.isInteger(Number(e)),KXe=e=>e.endsWith("%")&&Hl(e.slice(0,-1)),q6=e=>HGr.test(e),KGr=()=>!0,XGr=e=>VGr.test(e)&&!YGr.test(e),ORn=()=>!1,QGr=e=>jGr.test(e),ZGr=e=>WGr.test(e),JGr=e=>!Va(e)&&!Ya(e),eqr=e=>SW(e,MRn,ORn),Va=e=>IRn.test(e),fB=e=>SW(e,PRn,XGr),XXe=e=>SW(e,aqr,Hl),U0n=e=>SW(e,LRn,ORn),tqr=e=>SW(e,DRn,ZGr),T_e=e=>SW(e,BRn,QGr),Ya=e=>NRn.test(e),xre=e=>TW(e,PRn),nqr=e=>TW(e,sqr),z0n=e=>TW(e,LRn),rqr=e=>TW(e,MRn),iqr=e=>TW(e,DRn),C_e=e=>TW(e,BRn,!0),SW=(e,t,r)=>{const a=IRn.exec(e);return a?a[1]?t(a[1]):r(a[2]):!1},TW=(e,t,r=!1)=>{const a=NRn.exec(e);return a?a[1]?t(a[1]):r:!1},LRn=e=>e==="position"||e==="percentage",DRn=e=>e==="image"||e==="url",MRn=e=>e==="length"||e==="size"||e==="bg-size",PRn=e=>e==="length",aqr=e=>e==="number",sqr=e=>e==="family-name",BRn=e=>e==="shadow",oqr=()=>{const e=pp("color"),t=pp("font"),r=pp("text"),a=pp("font-weight"),s=pp("tracking"),o=pp("leading"),u=pp("breakpoint"),h=pp("container"),f=pp("spacing"),p=pp("radius"),m=pp("shadow"),b=pp("inset-shadow"),_=pp("text-shadow"),w=pp("drop-shadow"),S=pp("blur"),C=pp("perspective"),A=pp("aspect"),k=pp("ease"),I=pp("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...L(),Ya,Va],M=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],U=()=>[Ya,Va,f],$=()=>[LH,"full","auto",...U()],G=()=>[ON,"none","subgrid",Ya,Va],B=()=>["auto",{span:["full",ON,Ya,Va]},ON,Ya,Va],Z=()=>[ON,"auto",Ya,Va],z=()=>["auto","min","max","fr",Ya,Va],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...U()],V=()=>[LH,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],j=()=>[e,Ya,Va],ee=()=>[...L(),z0n,U0n,{position:[Ya,Va]}],te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ne=()=>["auto","cover","contain",rqr,eqr,{size:[Ya,Va]}],se=()=>[KXe,xre,fB],ie=()=>["","none","full",p,Ya,Va],ge=()=>["",Hl,xre,fB],ce=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[Hl,KXe,z0n,U0n],De=()=>["","none",S,Ya,Va],ye=()=>["none",Hl,Ya,Va],Ee=()=>["none",Hl,Ya,Va],he=()=>[Hl,Ya,Va],we=()=>[LH,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[q6],breakpoint:[q6],color:[KGr],container:[q6],"drop-shadow":[q6],ease:["in","out","in-out"],font:[JGr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[q6],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[q6],shadow:[q6],spacing:["px",Hl],text:[q6],"text-shadow":[q6],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",LH,Va,Ya,A]}],container:["container"],columns:[{columns:[Hl,Va,Ya,h]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[ON,"auto",Ya,Va]}],basis:[{basis:[LH,"full","auto",h,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Hl,LH,"auto","initial","none",Va]}],grow:[{grow:["",Hl,Ya,Va]}],shrink:[{shrink:["",Hl,Ya,Va]}],order:[{order:[ON,"first","last","none",Ya,Va]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[h,"screen",...V()]}],"min-w":[{"min-w":[h,"screen","none",...V()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[u]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",r,xre,fB]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,Ya,XXe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",KXe,Va]}],"font-family":[{font:[nqr,Va,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,Ya,Va]}],"line-clamp":[{"line-clamp":[Hl,"none",Ya,XXe]}],leading:[{leading:[o,...U()]}],"list-image":[{"list-image":["none",Ya,Va]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ya,Va]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[Hl,"from-font","auto",Ya,fB]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[Hl,"auto",Ya,Va]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ya,Va]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ya,Va]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ee()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ON,Ya,Va],radial:["",Ya,Va],conic:[ON,Ya,Va]},iqr,tqr]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:ge()}],"border-w-x":[{"border-x":ge()}],"border-w-y":[{"border-y":ge()}],"border-w-s":[{"border-s":ge()}],"border-w-e":[{"border-e":ge()}],"border-w-t":[{"border-t":ge()}],"border-w-r":[{"border-r":ge()}],"border-w-b":[{"border-b":ge()}],"border-w-l":[{"border-l":ge()}],"divide-x":[{"divide-x":ge()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ge()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ce(),"hidden","none"]}],"divide-style":[{divide:[...ce(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Hl,Ya,Va]}],"outline-w":[{outline:["",Hl,xre,fB]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",m,C_e,T_e]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",b,C_e,T_e]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[Hl,fB]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":ge()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",_,C_e,T_e]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[Hl,Ya,Va]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Hl]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[Ya,Va]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":L()}],"mask-image-conic-pos":[{"mask-conic":[Hl]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ee()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ya,Va]}],filter:[{filter:["","none",Ya,Va]}],blur:[{blur:De()}],brightness:[{brightness:[Hl,Ya,Va]}],contrast:[{contrast:[Hl,Ya,Va]}],"drop-shadow":[{"drop-shadow":["","none",w,C_e,T_e]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",Hl,Ya,Va]}],"hue-rotate":[{"hue-rotate":[Hl,Ya,Va]}],invert:[{invert:["",Hl,Ya,Va]}],saturate:[{saturate:[Hl,Ya,Va]}],sepia:[{sepia:["",Hl,Ya,Va]}],"backdrop-filter":[{"backdrop-filter":["","none",Ya,Va]}],"backdrop-blur":[{"backdrop-blur":De()}],"backdrop-brightness":[{"backdrop-brightness":[Hl,Ya,Va]}],"backdrop-contrast":[{"backdrop-contrast":[Hl,Ya,Va]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Hl,Ya,Va]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Hl,Ya,Va]}],"backdrop-invert":[{"backdrop-invert":["",Hl,Ya,Va]}],"backdrop-opacity":[{"backdrop-opacity":[Hl,Ya,Va]}],"backdrop-saturate":[{"backdrop-saturate":[Hl,Ya,Va]}],"backdrop-sepia":[{"backdrop-sepia":["",Hl,Ya,Va]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ya,Va]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Hl,"initial",Ya,Va]}],ease:[{ease:["linear","initial",k,Ya,Va]}],delay:[{delay:[Hl,Ya,Va]}],animate:[{animate:["none",I,Ya,Va]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,Ya,Va]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:Ee()}],"scale-x":[{"scale-x":Ee()}],"scale-y":[{"scale-y":Ee()}],"scale-z":[{"scale-z":Ee()}],"scale-3d":["scale-3d"],skew:[{skew:he()}],"skew-x":[{"skew-x":he()}],"skew-y":[{"skew-y":he()}],transform:[{transform:[Ya,Va,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:we()}],"translate-x":[{"translate-x":we()}],"translate-y":[{"translate-y":we()}],"translate-z":[{"translate-z":we()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ya,Va]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ya,Va]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[Hl,xre,fB,XXe]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},x3a=zGr(oqr);function ji(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function lqr(e,t){const r=ue.createContext(t),a=o=>{const{children:u,...h}=o,f=ue.useMemo(()=>h,Object.values(h));return ct.jsx(r.Provider,{value:f,children:u})};a.displayName=e+"Provider";function s(o){const u=ue.useContext(r);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[a,s]}function Ng(e,t=[]){let r=[];function a(o,u){const h=ue.createContext(u),f=r.length;r=[...r,u];const p=b=>{var k;const{scope:_,children:w,...S}=b,C=((k=_==null?void 0:_[e])==null?void 0:k[f])||h,A=ue.useMemo(()=>S,Object.values(S));return ct.jsx(C.Provider,{value:A,children:w})};p.displayName=o+"Provider";function m(b,_){var C;const w=((C=_==null?void 0:_[e])==null?void 0:C[f])||h,S=ue.useContext(w);if(S)return S;if(u!==void 0)return u;throw new Error(`\`${b}\` must be used within \`${o}\``)}return[p,m]}const s=()=>{const o=r.map(u=>ue.createContext(u));return function(h){const f=(h==null?void 0:h[e])||o;return ue.useMemo(()=>({[`__scope${e}`]:{...h,[e]:f}}),[h,f])}};return s.scopeName=e,[a,cqr(s,...t)]}function cqr(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const a=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const u=a.reduce((h,{useScope:f,scopeName:p})=>{const b=f(o)[`__scope${p}`];return{...h,...b}},{});return ue.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return r.scopeName=t.scopeName,r}var Ig=globalThis!=null&&globalThis.document?ue.useLayoutEffect:()=>{},uqr=g$[" useInsertionEffect ".trim().toString()]||Ig;function km({prop:e,defaultProp:t,onChange:r=()=>{},caller:a}){const[s,o,u]=hqr({defaultProp:t,onChange:r}),h=e!==void 0,f=h?e:s;{const m=ue.useRef(e!==void 0);ue.useEffect(()=>{const b=m.current;b!==h&&console.warn(`${a} is changing from ${b?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=h},[h,a])}const p=ue.useCallback(m=>{var b;if(h){const _=dqr(m)?m(e):m;_!==e&&((b=u.current)==null||b.call(u,_))}else o(m)},[h,e,o,u]);return[f,p]}function hqr({defaultProp:e,onChange:t}){const[r,a]=ue.useState(e),s=ue.useRef(r),o=ue.useRef(t);return uqr(()=>{o.current=t},[t]),ue.useEffect(()=>{var u;s.current!==r&&((u=o.current)==null||u.call(o,r),s.current=r)},[r,s]),[r,a,o]}function dqr(e){return typeof e=="function"}function wF(e){const t=fqr(e),r=ue.forwardRef((a,s)=>{const{children:o,...u}=a,h=ue.Children.toArray(o),f=h.find(gqr);if(f){const p=f.props.children,m=h.map(b=>b===f?ue.Children.count(p)>1?ue.Children.only(null):ue.isValidElement(p)?p.props.children:null:b);return ct.jsx(t,{...u,ref:s,children:ue.isValidElement(p)?ue.cloneElement(p,void 0,m):null})}return ct.jsx(t,{...u,ref:s,children:o})});return r.displayName=`${e}.Slot`,r}function fqr(e){const t=ue.forwardRef((r,a)=>{const{children:s,...o}=r;if(ue.isValidElement(s)){const u=bqr(s),h=mqr(o,s.props);return s.type!==ue.Fragment&&(h.ref=a?mA(a,u):u),ue.cloneElement(s,h)}return ue.Children.count(s)>1?ue.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var FRn=Symbol("radix.slottable");function pqr(e){const t=({children:r})=>ct.jsx(ct.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=FRn,t}function gqr(e){return ue.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===FRn}function mqr(e,t){const r={...t};for(const a in t){const s=e[a],o=t[a];/^on[A-Z]/.test(a)?s&&o?r[a]=(...h)=>{const f=o(...h);return s(...h),f}:s&&(r[a]=s):a==="style"?r[a]={...s,...o}:a==="className"&&(r[a]=[s,o].filter(Boolean).join(" "))}return{...e,...r}}function bqr(e){var a,s;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var yqr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Za=yqr.reduce((e,t)=>{const r=wF(`Primitive.${t}`),a=ue.forwardRef((s,o)=>{const{asChild:u,...h}=s,f=u?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ct.jsx(f,{...h,ref:o})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function $Rn(e,t){e&&w9.flushSync(()=>e.dispatchEvent(t))}function iCe(e){const t=e+"CollectionProvider",[r,a]=Ng(t),[s,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),u=C=>{const{scope:A,children:k}=C,I=Er.useRef(null),N=Er.useRef(new Map).current;return ct.jsx(s,{scope:A,itemMap:N,collectionRef:I,children:k})};u.displayName=t;const h=e+"CollectionSlot",f=wF(h),p=Er.forwardRef((C,A)=>{const{scope:k,children:I}=C,N=o(h,k),L=Yo(A,N.collectionRef);return ct.jsx(f,{ref:L,children:I})});p.displayName=h;const m=e+"CollectionItemSlot",b="data-radix-collection-item",_=wF(m),w=Er.forwardRef((C,A)=>{const{scope:k,children:I,...N}=C,L=Er.useRef(null),P=Yo(A,L),M=o(m,k);return Er.useEffect(()=>(M.itemMap.set(L,{ref:L,...N}),()=>void M.itemMap.delete(L))),ct.jsx(_,{[b]:"",ref:P,children:I})});w.displayName=m;function S(C){const A=o(e+"CollectionConsumer",C);return Er.useCallback(()=>{const I=A.collectionRef.current;if(!I)return[];const N=Array.from(I.querySelectorAll(`[${b}]`));return Array.from(A.itemMap.values()).sort((M,F)=>N.indexOf(M.ref.current)-N.indexOf(F.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:u,Slot:p,ItemSlot:w},S,a]}var vqr=ue.createContext(void 0);function S9(e){const t=ue.useContext(vqr);return e||t||"ltr"}function _m(e){const t=ue.useRef(e);return ue.useEffect(()=>{t.current=e}),ue.useMemo(()=>(...r)=>{var a;return(a=t.current)==null?void 0:a.call(t,...r)},[])}function _qr(e,t=globalThis==null?void 0:globalThis.document){const r=_m(e);ue.useEffect(()=>{const a=s=>{s.key==="Escape"&&r(s)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[r,t])}var wqr="DismissableLayer",Lst="dismissableLayer.update",Eqr="dismissableLayer.pointerDownOutside",xqr="dismissableLayer.focusOutside",G0n,URn=ue.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),CW=ue.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:u,onDismiss:h,...f}=e,p=ue.useContext(URn),[m,b]=ue.useState(null),_=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=ue.useState({}),S=Yo(t,F=>b(F)),C=Array.from(p.layers),[A]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),k=C.indexOf(A),I=m?C.indexOf(m):-1,N=p.layersWithOutsidePointerEventsDisabled.size>0,L=I>=k,P=Cqr(F=>{const U=F.target,$=[...p.branches].some(G=>G.contains(U));!L||$||(s==null||s(F),u==null||u(F),F.defaultPrevented||h==null||h())},_),M=Aqr(F=>{const U=F.target;[...p.branches].some(G=>G.contains(U))||(o==null||o(F),u==null||u(F),F.defaultPrevented||h==null||h())},_);return _qr(F=>{I===p.layers.size-1&&(a==null||a(F),!F.defaultPrevented&&h&&(F.preventDefault(),h()))},_),ue.useEffect(()=>{if(m)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(G0n=_.body.style.pointerEvents,_.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),q0n(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(_.body.style.pointerEvents=G0n)}},[m,_,r,p]),ue.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),q0n())},[m,p]),ue.useEffect(()=>{const F=()=>w({});return document.addEventListener(Lst,F),()=>document.removeEventListener(Lst,F)},[]),ct.jsx(Za.div,{...f,ref:S,style:{pointerEvents:N?L?"auto":"none":void 0,...e.style},onFocusCapture:ji(e.onFocusCapture,M.onFocusCapture),onBlurCapture:ji(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:ji(e.onPointerDownCapture,P.onPointerDownCapture)})});CW.displayName=wqr;var Sqr="DismissableLayerBranch",Tqr=ue.forwardRef((e,t)=>{const r=ue.useContext(URn),a=ue.useRef(null),s=Yo(t,a);return ue.useEffect(()=>{const o=a.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),ct.jsx(Za.div,{...e,ref:s})});Tqr.displayName=Sqr;function Cqr(e,t=globalThis==null?void 0:globalThis.document){const r=_m(e),a=ue.useRef(!1),s=ue.useRef(()=>{});return ue.useEffect(()=>{const o=h=>{if(h.target&&!a.current){let f=function(){zRn(Eqr,r,p,{discrete:!0})};const p={originalEvent:h};h.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=f,t.addEventListener("click",s.current,{once:!0})):f()}else t.removeEventListener("click",s.current);a.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",o),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>a.current=!0}}function Aqr(e,t=globalThis==null?void 0:globalThis.document){const r=_m(e),a=ue.useRef(!1);return ue.useEffect(()=>{const s=o=>{o.target&&!a.current&&zRn(xqr,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function q0n(){const e=new CustomEvent(Lst);document.dispatchEvent(e)}function zRn(e,t,r,{discrete:a}){const s=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),a?$Rn(s,o):s.dispatchEvent(o)}var QXe=0;function aCe(){ue.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??H0n()),document.body.insertAdjacentElement("beforeend",e[1]??H0n()),QXe++,()=>{QXe===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),QXe--}},[])}function H0n(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ZXe="focusScope.autoFocusOnMount",JXe="focusScope.autoFocusOnUnmount",V0n={bubbles:!1,cancelable:!0},kqr="FocusScope",Gle=ue.forwardRef((e,t)=>{const{loop:r=!1,trapped:a=!1,onMountAutoFocus:s,onUnmountAutoFocus:o,...u}=e,[h,f]=ue.useState(null),p=_m(s),m=_m(o),b=ue.useRef(null),_=Yo(t,C=>f(C)),w=ue.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;ue.useEffect(()=>{if(a){let C=function(N){if(w.paused||!h)return;const L=N.target;h.contains(L)?b.current=L:HN(b.current,{select:!0})},A=function(N){if(w.paused||!h)return;const L=N.relatedTarget;L!==null&&(h.contains(L)||HN(b.current,{select:!0}))},k=function(N){if(document.activeElement===document.body)for(const P of N)P.removedNodes.length>0&&HN(h)};document.addEventListener("focusin",C),document.addEventListener("focusout",A);const I=new MutationObserver(k);return h&&I.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",A),I.disconnect()}}},[a,h,w.paused]),ue.useEffect(()=>{if(h){j0n.add(w);const C=document.activeElement;if(!h.contains(C)){const k=new CustomEvent(ZXe,V0n);h.addEventListener(ZXe,p),h.dispatchEvent(k),k.defaultPrevented||(Rqr(Dqr(GRn(h)),{select:!0}),document.activeElement===C&&HN(h))}return()=>{h.removeEventListener(ZXe,p),setTimeout(()=>{const k=new CustomEvent(JXe,V0n);h.addEventListener(JXe,m),h.dispatchEvent(k),k.defaultPrevented||HN(C??document.body,{select:!0}),h.removeEventListener(JXe,m),j0n.remove(w)},0)}}},[h,p,m,w]);const S=ue.useCallback(C=>{if(!r&&!a||w.paused)return;const A=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,k=document.activeElement;if(A&&k){const I=C.currentTarget,[N,L]=Iqr(I);N&&L?!C.shiftKey&&k===L?(C.preventDefault(),r&&HN(N,{select:!0})):C.shiftKey&&k===N&&(C.preventDefault(),r&&HN(L,{select:!0})):k===I&&C.preventDefault()}},[r,a,w.paused]);return ct.jsx(Za.div,{tabIndex:-1,...u,ref:_,onKeyDown:S})});Gle.displayName=kqr;function Rqr(e,{select:t=!1}={}){const r=document.activeElement;for(const a of e)if(HN(a,{select:t}),document.activeElement!==r)return}function Iqr(e){const t=GRn(e),r=Y0n(t,e),a=Y0n(t.reverse(),e);return[r,a]}function GRn(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Y0n(e,t){for(const r of e)if(!Nqr(r,{upTo:t}))return r}function Nqr(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Oqr(e){return e instanceof HTMLInputElement&&"select"in e}function HN(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Oqr(e)&&t&&e.select()}}var j0n=Lqr();function Lqr(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=W0n(e,t),e.unshift(t)},remove(t){var r;e=W0n(e,t),(r=e[0])==null||r.resume()}}}function W0n(e,t){const r=[...e],a=r.indexOf(t);return a!==-1&&r.splice(a,1),r}function Dqr(e){return e.filter(t=>t.tagName!=="A")}var Mqr=g$[" useId ".trim().toString()]||(()=>{}),Pqr=0;function I1(e){const[t,r]=ue.useState(Mqr());return Ig(()=>{r(a=>a??String(Pqr++))},[e]),t?`radix-${t}`:""}var Bqr="Arrow",qRn=ue.forwardRef((e,t)=>{const{children:r,width:a=10,height:s=5,...o}=e;return ct.jsx(Za.svg,{...o,ref:t,width:a,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:ct.jsx("polygon",{points:"0,0 30,0 15,10"})})});qRn.displayName=Bqr;var Fqr=qRn;function sCe(e){const[t,r]=ue.useState(void 0);return Ig(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let u,h;if("borderBoxSize"in o){const f=o.borderBoxSize,p=Array.isArray(f)?f[0]:f;u=p.inlineSize,h=p.blockSize}else u=e.offsetWidth,h=e.offsetHeight;r({width:u,height:h})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else r(void 0)},[e]),t}var Oft="Popper",[HRn,T9]=Ng(Oft),[$qr,VRn]=HRn(Oft),YRn=e=>{const{__scopePopper:t,children:r}=e,[a,s]=ue.useState(null);return ct.jsx($qr,{scope:t,anchor:a,onAnchorChange:s,children:r})};YRn.displayName=Oft;var jRn="PopperAnchor",WRn=ue.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:a,...s}=e,o=VRn(jRn,r),u=ue.useRef(null),h=Yo(t,u),f=ue.useRef(null);return ue.useEffect(()=>{const p=f.current;f.current=(a==null?void 0:a.current)||u.current,p!==f.current&&o.onAnchorChange(f.current)}),a?null:ct.jsx(Za.div,{...s,ref:h})});WRn.displayName=jRn;var Lft="PopperContent",[Uqr,zqr]=HRn(Lft),KRn=ue.forwardRef((e,t)=>{var ve,De,ye,Ee,he,we;const{__scopePopper:r,side:a="bottom",sideOffset:s=0,align:o="center",alignOffset:u=0,arrowPadding:h=0,avoidCollisions:f=!0,collisionBoundary:p=[],collisionPadding:m=0,sticky:b="partial",hideWhenDetached:_=!1,updatePositionStrategy:w="optimized",onPlaced:S,...C}=e,A=VRn(Lft,r),[k,I]=ue.useState(null),N=Yo(t,Ce=>I(Ce)),[L,P]=ue.useState(null),M=sCe(L),F=(M==null?void 0:M.width)??0,U=(M==null?void 0:M.height)??0,$=a+(o!=="center"?"-"+o:""),G=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},B=Array.isArray(p)?p:[p],Z=B.length>0,z={padding:G,boundary:B.filter(qqr),altBoundary:Z},{refs:Y,floatingStyles:W,placement:Q,isPositioned:V,middlewareData:j}=Zdt({strategy:"fixed",placement:$,whileElementsMounted:(...Ce)=>U6n(...Ce,{animationFrame:w==="always"}),elements:{reference:A.anchor},middleware:[G6n({mainAxis:s+U,alignmentAxis:u}),f&&q6n({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?H6n():void 0,...z}),f&&V6n({...z}),Y6n({...z,apply:({elements:Ce,rects:Ie,availableWidth:Le,availableHeight:Fe})=>{const{width:Ve,height:Oe}=Ie.reference,Dt=Ce.floating.style;Dt.setProperty("--radix-popper-available-width",`${Le}px`),Dt.setProperty("--radix-popper-available-height",`${Fe}px`),Dt.setProperty("--radix-popper-anchor-width",`${Ve}px`),Dt.setProperty("--radix-popper-anchor-height",`${Oe}px`)}}),L&&W6n({element:L,padding:h}),Hqr({arrowWidth:F,arrowHeight:U}),_&&j6n({strategy:"referenceHidden",...z})]}),[ee,te]=ZRn(Q),ne=_m(S);Ig(()=>{V&&(ne==null||ne())},[V,ne]);const se=(ve=j.arrow)==null?void 0:ve.x,ie=(De=j.arrow)==null?void 0:De.y,ge=((ye=j.arrow)==null?void 0:ye.centerOffset)!==0,[ce,be]=ue.useState();return Ig(()=>{k&&be(window.getComputedStyle(k).zIndex)},[k]),ct.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:V?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ce,"--radix-popper-transform-origin":[(Ee=j.transformOrigin)==null?void 0:Ee.x,(he=j.transformOrigin)==null?void 0:he.y].join(" "),...((we=j.hide)==null?void 0:we.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:ct.jsx(Uqr,{scope:r,placedSide:ee,onArrowChange:P,arrowX:se,arrowY:ie,shouldHideArrow:ge,children:ct.jsx(Za.div,{"data-side":ee,"data-align":te,...C,ref:N,style:{...C.style,animation:V?void 0:"none"}})})})});KRn.displayName=Lft;var XRn="PopperArrow",Gqr={top:"bottom",right:"left",bottom:"top",left:"right"},QRn=ue.forwardRef(function(t,r){const{__scopePopper:a,...s}=t,o=zqr(XRn,a),u=Gqr[o.placedSide];return ct.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:ct.jsx(Fqr,{...s,ref:r,style:{...s.style,display:"block"}})})});QRn.displayName=XRn;function qqr(e){return e!==null}var Hqr=e=>({name:"transformOrigin",options:e,fn(t){var A,k,I;const{placement:r,rects:a,middlewareData:s}=t,u=((A=s.arrow)==null?void 0:A.centerOffset)!==0,h=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,m]=ZRn(r),b={start:"0%",center:"50%",end:"100%"}[m],_=(((k=s.arrow)==null?void 0:k.x)??0)+h/2,w=(((I=s.arrow)==null?void 0:I.y)??0)+f/2;let S="",C="";return p==="bottom"?(S=u?b:`${_}px`,C=`${-f}px`):p==="top"?(S=u?b:`${_}px`,C=`${a.floating.height+f}px`):p==="right"?(S=`${-f}px`,C=u?b:`${w}px`):p==="left"&&(S=`${a.floating.width+f}px`,C=u?b:`${w}px`),{data:{x:S,y:C}}}});function ZRn(e){const[t,r="center"]=e.split("-");return[t,r]}var oCe=YRn,qle=WRn,lCe=KRn,cCe=QRn,Vqr="Portal",AW=ue.forwardRef((e,t)=>{var h;const{container:r,...a}=e,[s,o]=ue.useState(!1);Ig(()=>o(!0),[]);const u=r||s&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return u?odt.createPortal(ct.jsx(Za.div,{...a,ref:t}),u):null});AW.displayName=Vqr;function Yqr(e,t){return ue.useReducer((r,a)=>t[r][a]??r,e)}var D1=e=>{const{present:t,children:r}=e,a=jqr(t),s=typeof r=="function"?r({present:a.isPresent}):ue.Children.only(r),o=Yo(a.ref,Wqr(s));return typeof r=="function"||a.isPresent?ue.cloneElement(s,{ref:o}):null};D1.displayName="Presence";function jqr(e){const[t,r]=ue.useState(),a=ue.useRef(null),s=ue.useRef(e),o=ue.useRef("none"),u=e?"mounted":"unmounted",[h,f]=Yqr(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return ue.useEffect(()=>{const p=A_e(a.current);o.current=h==="mounted"?p:"none"},[h]),Ig(()=>{const p=a.current,m=s.current;if(m!==e){const _=o.current,w=A_e(p);e?f("MOUNT"):w==="none"||(p==null?void 0:p.display)==="none"?f("UNMOUNT"):f(m&&_!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,f]),Ig(()=>{if(t){let p;const m=t.ownerDocument.defaultView??window,b=w=>{const C=A_e(a.current).includes(CSS.escape(w.animationName));if(w.target===t&&C&&(f("ANIMATION_END"),!s.current)){const A=t.style.animationFillMode;t.style.animationFillMode="forwards",p=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=A)})}},_=w=>{w.target===t&&(o.current=A_e(a.current))};return t.addEventListener("animationstart",_),t.addEventListener("animationcancel",b),t.addEventListener("animationend",b),()=>{m.clearTimeout(p),t.removeEventListener("animationstart",_),t.removeEventListener("animationcancel",b),t.removeEventListener("animationend",b)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:ue.useCallback(p=>{a.current=p?getComputedStyle(p):null,r(p)},[])}}function A_e(e){return(e==null?void 0:e.animationName)||"none"}function Wqr(e){var a,s;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var eQe="rovingFocusGroup.onEntryFocus",Kqr={bubbles:!1,cancelable:!0},Hle="RovingFocusGroup",[Dst,JRn,Xqr]=iCe(Hle),[Qqr,C9]=Ng(Hle,[Xqr]),[Zqr,Jqr]=Qqr(Hle),e8n=ue.forwardRef((e,t)=>ct.jsx(Dst.Provider,{scope:e.__scopeRovingFocusGroup,children:ct.jsx(Dst.Slot,{scope:e.__scopeRovingFocusGroup,children:ct.jsx(eHr,{...e,ref:t})})}));e8n.displayName=Hle;var eHr=ue.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:a,loop:s=!1,dir:o,currentTabStopId:u,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:f,onEntryFocus:p,preventScrollOnEntryFocus:m=!1,...b}=e,_=ue.useRef(null),w=Yo(t,_),S=S9(o),[C,A]=km({prop:u,defaultProp:h??null,onChange:f,caller:Hle}),[k,I]=ue.useState(!1),N=_m(p),L=JRn(r),P=ue.useRef(!1),[M,F]=ue.useState(0);return ue.useEffect(()=>{const U=_.current;if(U)return U.addEventListener(eQe,N),()=>U.removeEventListener(eQe,N)},[N]),ct.jsx(Zqr,{scope:r,orientation:a,dir:S,loop:s,currentTabStopId:C,onItemFocus:ue.useCallback(U=>A(U),[A]),onItemShiftTab:ue.useCallback(()=>I(!0),[]),onFocusableItemAdd:ue.useCallback(()=>F(U=>U+1),[]),onFocusableItemRemove:ue.useCallback(()=>F(U=>U-1),[]),children:ct.jsx(Za.div,{tabIndex:k||M===0?-1:0,"data-orientation":a,...b,ref:w,style:{outline:"none",...e.style},onMouseDown:ji(e.onMouseDown,()=>{P.current=!0}),onFocus:ji(e.onFocus,U=>{const $=!P.current;if(U.target===U.currentTarget&&$&&!k){const G=new CustomEvent(eQe,Kqr);if(U.currentTarget.dispatchEvent(G),!G.defaultPrevented){const B=L().filter(Q=>Q.focusable),Z=B.find(Q=>Q.active),z=B.find(Q=>Q.id===C),W=[Z,z,...B].filter(Boolean).map(Q=>Q.ref.current);r8n(W,m)}}P.current=!1}),onBlur:ji(e.onBlur,()=>I(!1))})})}),t8n="RovingFocusGroupItem",n8n=ue.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:a=!0,active:s=!1,tabStopId:o,children:u,...h}=e,f=I1(),p=o||f,m=Jqr(t8n,r),b=m.currentTabStopId===p,_=JRn(r),{onFocusableItemAdd:w,onFocusableItemRemove:S,currentTabStopId:C}=m;return ue.useEffect(()=>{if(a)return w(),()=>S()},[a,w,S]),ct.jsx(Dst.ItemSlot,{scope:r,id:p,focusable:a,active:s,children:ct.jsx(Za.span,{tabIndex:b?0:-1,"data-orientation":m.orientation,...h,ref:t,onMouseDown:ji(e.onMouseDown,A=>{a?m.onItemFocus(p):A.preventDefault()}),onFocus:ji(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:ji(e.onKeyDown,A=>{if(A.key==="Tab"&&A.shiftKey){m.onItemShiftTab();return}if(A.target!==A.currentTarget)return;const k=rHr(A,m.orientation,m.dir);if(k!==void 0){if(A.metaKey||A.ctrlKey||A.altKey||A.shiftKey)return;A.preventDefault();let N=_().filter(L=>L.focusable).map(L=>L.ref.current);if(k==="last")N.reverse();else if(k==="prev"||k==="next"){k==="prev"&&N.reverse();const L=N.indexOf(A.currentTarget);N=m.loop?iHr(N,L+1):N.slice(L+1)}setTimeout(()=>r8n(N))}}),children:typeof u=="function"?u({isCurrentTabStop:b,hasTabStop:C!=null}):u})})});n8n.displayName=t8n;var tHr={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function nHr(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function rHr(e,t,r){const a=nHr(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return tHr[a]}function r8n(e,t=!1){const r=document.activeElement;for(const a of e)if(a===r||(a.focus({preventScroll:t}),document.activeElement!==r))return}function iHr(e,t){return e.map((r,a)=>e[(t+a)%e.length])}var uCe=e8n,hCe=n8n,aHr=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},DH=new WeakMap,k_e=new WeakMap,R_e={},tQe=0,i8n=function(e){return e&&(e.host||i8n(e.parentNode))},sHr=function(e,t){return t.map(function(r){if(e.contains(r))return r;var a=i8n(r);return a&&e.contains(a)?a:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},oHr=function(e,t,r,a){var s=sHr(t,Array.isArray(e)?e:[e]);R_e[r]||(R_e[r]=new WeakMap);var o=R_e[r],u=[],h=new Set,f=new Set(s),p=function(b){!b||h.has(b)||(h.add(b),p(b.parentNode))};s.forEach(p);var m=function(b){!b||f.has(b)||Array.prototype.forEach.call(b.children,function(_){if(h.has(_))m(_);else try{var w=_.getAttribute(a),S=w!==null&&w!=="false",C=(DH.get(_)||0)+1,A=(o.get(_)||0)+1;DH.set(_,C),o.set(_,A),u.push(_),C===1&&S&&k_e.set(_,!0),A===1&&_.setAttribute(r,"true"),S||_.setAttribute(a,"true")}catch(k){console.error("aria-hidden: cannot operate on ",_,k)}})};return m(t),h.clear(),tQe++,function(){u.forEach(function(b){var _=DH.get(b)-1,w=o.get(b)-1;DH.set(b,_),o.set(b,w),_||(k_e.has(b)||b.removeAttribute(a),k_e.delete(b)),w||b.removeAttribute(r)}),tQe--,tQe||(DH=new WeakMap,DH=new WeakMap,k_e=new WeakMap,R_e={})}},Vle=function(e,t,r){r===void 0&&(r="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),s=aHr(e);return s?(a.push.apply(a,Array.from(s.querySelectorAll("[aria-live], script"))),oHr(a,s,r,"aria-hidden")):function(){return null}},HEe="right-scroll-bar-position",VEe="width-before-scroll-bar",lHr="with-scroll-bars-hidden",cHr="--removed-body-scroll-bar-size";function nQe(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function uHr(e,t){var r=ue.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(a){var s=r.value;s!==a&&(r.value=a,r.callback(a,s))}}}})[0];return r.callback=t,r.facade}var hHr=typeof window<"u"?ue.useLayoutEffect:ue.useEffect,K0n=new WeakMap;function dHr(e,t){var r=uHr(null,function(a){return e.forEach(function(s){return nQe(s,a)})});return hHr(function(){var a=K0n.get(r);if(a){var s=new Set(a),o=new Set(e),u=r.current;s.forEach(function(h){o.has(h)||nQe(h,null)}),o.forEach(function(h){s.has(h)||nQe(h,u)})}K0n.set(r,e)},[e]),r}function fHr(e){return e}function pHr(e,t){t===void 0&&(t=fHr);var r=[],a=!1,s={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var u=t(o,a);return r.push(u),function(){r=r.filter(function(h){return h!==u})}},assignSyncMedium:function(o){for(a=!0;r.length;){var u=r;r=[],u.forEach(o)}r={push:function(h){return o(h)},filter:function(){return r}}},assignMedium:function(o){a=!0;var u=[];if(r.length){var h=r;r=[],h.forEach(o),u=r}var f=function(){var m=u;u=[],m.forEach(o)},p=function(){return Promise.resolve().then(f)};p(),r={push:function(m){u.push(m),p()},filter:function(m){return u=u.filter(m),r}}}};return s}function gHr(e){e===void 0&&(e={});var t=pHr(null);return t.options=BC({async:!0,ssr:!1},e),t}var a8n=function(e){var t=e.sideCar,r=J6n(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return ue.createElement(a,BC({},r))};a8n.isSideCarExport=!0;function mHr(e,t){return e.useMedium(t),a8n}var s8n=gHr(),rQe=function(){},dCe=ue.forwardRef(function(e,t){var r=ue.useRef(null),a=ue.useState({onScrollCapture:rQe,onWheelCapture:rQe,onTouchMoveCapture:rQe}),s=a[0],o=a[1],u=e.forwardProps,h=e.children,f=e.className,p=e.removeScrollBar,m=e.enabled,b=e.shards,_=e.sideCar,w=e.noRelative,S=e.noIsolation,C=e.inert,A=e.allowPinchZoom,k=e.as,I=k===void 0?"div":k,N=e.gapMode,L=J6n(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=_,M=dHr([r,t]),F=BC(BC({},L),s);return ue.createElement(ue.Fragment,null,m&&ue.createElement(P,{sideCar:s8n,removeScrollBar:p,shards:b,noRelative:w,noIsolation:S,inert:C,setCallbacks:o,allowPinchZoom:!!A,lockRef:r,gapMode:N}),u?ue.cloneElement(ue.Children.only(h),BC(BC({},F),{ref:M})):ue.createElement(I,BC({},F,{className:f,ref:M}),h))});dCe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};dCe.classNames={fullWidth:VEe,zeroRight:HEe};var bHr=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function yHr(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=bHr();return t&&e.setAttribute("nonce",t),e}function vHr(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function _Hr(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var wHr=function(){var e=0,t=null;return{add:function(r){e==0&&(t=yHr())&&(vHr(t,r),_Hr(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},EHr=function(){var e=wHr();return function(t,r){ue.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},o8n=function(){var e=EHr(),t=function(r){var a=r.styles,s=r.dynamic;return e(a,s),null};return t},xHr={left:0,top:0,right:0,gap:0},iQe=function(e){return parseInt(e||"",10)||0},SHr=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[iQe(r),iQe(a),iQe(s)]},THr=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return xHr;var t=SHr(e),r=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-r+t[2]-t[0])}},CHr=o8n(),HV="data-scroll-locked",AHr=function(e,t,r,a){var s=e.left,o=e.top,u=e.right,h=e.gap;return r===void 0&&(r="margin"),` .`.concat(lHr,` { overflow: hidden `).concat(a,`; padding-right: `).concat(h,"px ").concat(a,`; } body[`).concat(HV,`] { overflow: hidden `).concat(a,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(a,";"),r==="margin"&&` padding-left: `.concat(s,`px; padding-top: `).concat(o,`px; padding-right: `).concat(u,`px; margin-left:0; margin-top:0; margin-right: `).concat(h,"px ").concat(a,`; `),r==="padding"&&"padding-right: ".concat(h,"px ").concat(a,";")].filter(Boolean).join(""),` } .`).concat(HEe,` { right: `).concat(h,"px ").concat(a,`; } .`).concat(VEe,` { margin-right: `).concat(h,"px ").concat(a,`; } .`).concat(HEe," .").concat(HEe,` { right: 0 `).concat(a,`; } .`).concat(VEe," .").concat(VEe,` { margin-right: 0 `).concat(a,`; } body[`).concat(HV,`] { `).concat(cHr,": ").concat(h,`px; } `)},X0n=function(){var e=parseInt(document.body.getAttribute(HV)||"0",10);return isFinite(e)?e:0},kHr=function(){ue.useEffect(function(){return document.body.setAttribute(HV,(X0n()+1).toString()),function(){var e=X0n()-1;e<=0?document.body.removeAttribute(HV):document.body.setAttribute(HV,e.toString())}},[])},RHr=function(e){var t=e.noRelative,r=e.noImportant,a=e.gapMode,s=a===void 0?"margin":a;kHr();var o=ue.useMemo(function(){return THr(s)},[s]);return ue.createElement(CHr,{styles:AHr(o,!t,s,r?"":"!important")})},Mst=!1;if(typeof window<"u")try{var I_e=Object.defineProperty({},"passive",{get:function(){return Mst=!0,!0}});window.addEventListener("test",I_e,I_e),window.removeEventListener("test",I_e,I_e)}catch{Mst=!1}var MH=Mst?{passive:!1}:!1,IHr=function(e){return e.tagName==="TEXTAREA"},l8n=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!IHr(e)&&r[t]==="visible")},NHr=function(e){return l8n(e,"overflowY")},OHr=function(e){return l8n(e,"overflowX")},Q0n=function(e,t){var r=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var s=c8n(e,a);if(s){var o=u8n(e,a),u=o[1],h=o[2];if(u>h)return!0}a=a.parentNode}while(a&&a!==r.body);return!1},LHr=function(e){var t=e.scrollTop,r=e.scrollHeight,a=e.clientHeight;return[t,r,a]},DHr=function(e){var t=e.scrollLeft,r=e.scrollWidth,a=e.clientWidth;return[t,r,a]},c8n=function(e,t){return e==="v"?NHr(t):OHr(t)},u8n=function(e,t){return e==="v"?LHr(t):DHr(t)},MHr=function(e,t){return e==="h"&&t==="rtl"?-1:1},PHr=function(e,t,r,a,s){var o=MHr(e,window.getComputedStyle(t).direction),u=o*a,h=r.target,f=t.contains(h),p=!1,m=u>0,b=0,_=0;do{if(!h)break;var w=u8n(e,h),S=w[0],C=w[1],A=w[2],k=C-A-o*S;(S||k)&&c8n(e,h)&&(b+=k,_+=S);var I=h.parentNode;h=I&&I.nodeType===Node.DOCUMENT_FRAGMENT_NODE?I.host:I}while(!f&&h!==document.body||f&&(t.contains(h)||t===h));return(m&&Math.abs(b)<1||!m&&Math.abs(_)<1)&&(p=!0),p},N_e=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Z0n=function(e){return[e.deltaX,e.deltaY]},J0n=function(e){return e&&"current"in e?e.current:e},BHr=function(e,t){return e[0]===t[0]&&e[1]===t[1]},FHr=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},$Hr=0,PH=[];function UHr(e){var t=ue.useRef([]),r=ue.useRef([0,0]),a=ue.useRef(),s=ue.useState($Hr++)[0],o=ue.useState(o8n)[0],u=ue.useRef(e);ue.useEffect(function(){u.current=e},[e]),ue.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var C=FFr([e.lockRef.current],(e.shards||[]).map(J0n),!0).filter(Boolean);return C.forEach(function(A){return A.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),C.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var h=ue.useCallback(function(C,A){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!u.current.allowPinchZoom;var k=N_e(C),I=r.current,N="deltaX"in C?C.deltaX:I[0]-k[0],L="deltaY"in C?C.deltaY:I[1]-k[1],P,M=C.target,F=Math.abs(N)>Math.abs(L)?"h":"v";if("touches"in C&&F==="h"&&M.type==="range")return!1;var U=window.getSelection(),$=U&&U.anchorNode,G=$?$===M||$.contains(M):!1;if(G)return!1;var B=Q0n(F,M);if(!B)return!0;if(B?P=F:(P=F==="v"?"h":"v",B=Q0n(F,M)),!B)return!1;if(!a.current&&"changedTouches"in C&&(N||L)&&(a.current=P),!P)return!0;var Z=a.current||P;return PHr(Z,A,C,Z==="h"?N:L)},[]),f=ue.useCallback(function(C){var A=C;if(!(!PH.length||PH[PH.length-1]!==o)){var k="deltaY"in A?Z0n(A):N_e(A),I=t.current.filter(function(P){return P.name===A.type&&(P.target===A.target||A.target===P.shadowParent)&&BHr(P.delta,k)})[0];if(I&&I.should){A.cancelable&&A.preventDefault();return}if(!I){var N=(u.current.shards||[]).map(J0n).filter(Boolean).filter(function(P){return P.contains(A.target)}),L=N.length>0?h(A,N[0]):!u.current.noIsolation;L&&A.cancelable&&A.preventDefault()}}},[]),p=ue.useCallback(function(C,A,k,I){var N={name:C,delta:A,target:k,should:I,shadowParent:zHr(k)};t.current.push(N),setTimeout(function(){t.current=t.current.filter(function(L){return L!==N})},1)},[]),m=ue.useCallback(function(C){r.current=N_e(C),a.current=void 0},[]),b=ue.useCallback(function(C){p(C.type,Z0n(C),C.target,h(C,e.lockRef.current))},[]),_=ue.useCallback(function(C){p(C.type,N_e(C),C.target,h(C,e.lockRef.current))},[]);ue.useEffect(function(){return PH.push(o),e.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:_}),document.addEventListener("wheel",f,MH),document.addEventListener("touchmove",f,MH),document.addEventListener("touchstart",m,MH),function(){PH=PH.filter(function(C){return C!==o}),document.removeEventListener("wheel",f,MH),document.removeEventListener("touchmove",f,MH),document.removeEventListener("touchstart",m,MH)}},[]);var w=e.removeScrollBar,S=e.inert;return ue.createElement(ue.Fragment,null,S?ue.createElement(o,{styles:FHr(s)}):null,w?ue.createElement(RHr,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function zHr(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const GHr=mHr(s8n,UHr);var kW=ue.forwardRef(function(e,t){return ue.createElement(dCe,BC({},e,{ref:t,sideCar:GHr}))});kW.classNames=dCe.classNames;var Pst=["Enter"," "],qHr=["ArrowDown","PageUp","Home"],h8n=["ArrowUp","PageDown","End"],HHr=[...qHr,...h8n],VHr={ltr:[...Pst,"ArrowRight"],rtl:[...Pst,"ArrowLeft"]},YHr={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Yle="Menu",[Zse,jHr,WHr]=iCe(Yle),[y$,d8n]=Ng(Yle,[WHr,T9,C9]),fCe=T9(),f8n=C9(),[KHr,v$]=y$(Yle),[XHr,jle]=y$(Yle),p8n=e=>{const{__scopeMenu:t,open:r=!1,children:a,dir:s,onOpenChange:o,modal:u=!0}=e,h=fCe(t),[f,p]=ue.useState(null),m=ue.useRef(!1),b=_m(o),_=S9(s);return ue.useEffect(()=>{const w=()=>{m.current=!0,document.addEventListener("pointerdown",S,{capture:!0,once:!0}),document.addEventListener("pointermove",S,{capture:!0,once:!0})},S=()=>m.current=!1;return document.addEventListener("keydown",w,{capture:!0}),()=>{document.removeEventListener("keydown",w,{capture:!0}),document.removeEventListener("pointerdown",S,{capture:!0}),document.removeEventListener("pointermove",S,{capture:!0})}},[]),ct.jsx(oCe,{...h,children:ct.jsx(KHr,{scope:t,open:r,onOpenChange:b,content:f,onContentChange:p,children:ct.jsx(XHr,{scope:t,onClose:ue.useCallback(()=>b(!1),[b]),isUsingKeyboardRef:m,dir:_,modal:u,children:a})})})};p8n.displayName=Yle;var QHr="MenuAnchor",Dft=ue.forwardRef((e,t)=>{const{__scopeMenu:r,...a}=e,s=fCe(r);return ct.jsx(qle,{...s,...a,ref:t})});Dft.displayName=QHr;var Mft="MenuPortal",[ZHr,g8n]=y$(Mft,{forceMount:void 0}),m8n=e=>{const{__scopeMenu:t,forceMount:r,children:a,container:s}=e,o=v$(Mft,t);return ct.jsx(ZHr,{scope:t,forceMount:r,children:ct.jsx(D1,{present:r||o.open,children:ct.jsx(AW,{asChild:!0,container:s,children:a})})})};m8n.displayName=Mft;var uS="MenuContent",[JHr,Pft]=y$(uS),b8n=ue.forwardRef((e,t)=>{const r=g8n(uS,e.__scopeMenu),{forceMount:a=r.forceMount,...s}=e,o=v$(uS,e.__scopeMenu),u=jle(uS,e.__scopeMenu);return ct.jsx(Zse.Provider,{scope:e.__scopeMenu,children:ct.jsx(D1,{present:a||o.open,children:ct.jsx(Zse.Slot,{scope:e.__scopeMenu,children:u.modal?ct.jsx(eVr,{...s,ref:t}):ct.jsx(tVr,{...s,ref:t})})})})}),eVr=ue.forwardRef((e,t)=>{const r=v$(uS,e.__scopeMenu),a=ue.useRef(null),s=Yo(t,a);return ue.useEffect(()=>{const o=a.current;if(o)return Vle(o)},[]),ct.jsx(Bft,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ji(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),tVr=ue.forwardRef((e,t)=>{const r=v$(uS,e.__scopeMenu);return ct.jsx(Bft,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),nVr=wF("MenuContent.ScrollLock"),Bft=ue.forwardRef((e,t)=>{const{__scopeMenu:r,loop:a=!1,trapFocus:s,onOpenAutoFocus:o,onCloseAutoFocus:u,disableOutsidePointerEvents:h,onEntryFocus:f,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:b,onInteractOutside:_,onDismiss:w,disableOutsideScroll:S,...C}=e,A=v$(uS,r),k=jle(uS,r),I=fCe(r),N=f8n(r),L=jHr(r),[P,M]=ue.useState(null),F=ue.useRef(null),U=Yo(t,F,A.onContentChange),$=ue.useRef(0),G=ue.useRef(""),B=ue.useRef(0),Z=ue.useRef(null),z=ue.useRef("right"),Y=ue.useRef(0),W=S?kW:ue.Fragment,Q=S?{as:nVr,allowPinchZoom:!0}:void 0,V=ee=>{var ve,De;const te=G.current+ee,ne=L().filter(ye=>!ye.disabled),se=document.activeElement,ie=(ve=ne.find(ye=>ye.ref.current===se))==null?void 0:ve.textValue,ge=ne.map(ye=>ye.textValue),ce=pVr(ge,te,ie),be=(De=ne.find(ye=>ye.textValue===ce))==null?void 0:De.ref.current;(function ye(Ee){G.current=Ee,window.clearTimeout($.current),Ee!==""&&($.current=window.setTimeout(()=>ye(""),1e3))})(te),be&&setTimeout(()=>be.focus())};ue.useEffect(()=>()=>window.clearTimeout($.current),[]),aCe();const j=ue.useCallback(ee=>{var ne,se;return z.current===((ne=Z.current)==null?void 0:ne.side)&&mVr(ee,(se=Z.current)==null?void 0:se.area)},[]);return ct.jsx(JHr,{scope:r,searchRef:G,onItemEnter:ue.useCallback(ee=>{j(ee)&&ee.preventDefault()},[j]),onItemLeave:ue.useCallback(ee=>{var te;j(ee)||((te=F.current)==null||te.focus(),M(null))},[j]),onTriggerLeave:ue.useCallback(ee=>{j(ee)&&ee.preventDefault()},[j]),pointerGraceTimerRef:B,onPointerGraceIntentChange:ue.useCallback(ee=>{Z.current=ee},[]),children:ct.jsx(W,{...Q,children:ct.jsx(Gle,{asChild:!0,trapped:s,onMountAutoFocus:ji(o,ee=>{var te;ee.preventDefault(),(te=F.current)==null||te.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:ct.jsx(CW,{asChild:!0,disableOutsidePointerEvents:h,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:b,onInteractOutside:_,onDismiss:w,children:ct.jsx(uCe,{asChild:!0,...N,dir:k.dir,orientation:"vertical",loop:a,currentTabStopId:P,onCurrentTabStopIdChange:M,onEntryFocus:ji(f,ee=>{k.isUsingKeyboardRef.current||ee.preventDefault()}),preventScrollOnEntryFocus:!0,children:ct.jsx(lCe,{role:"menu","aria-orientation":"vertical","data-state":L8n(A.open),"data-radix-menu-content":"",dir:k.dir,...I,...C,ref:U,style:{outline:"none",...C.style},onKeyDown:ji(C.onKeyDown,ee=>{const ne=ee.target.closest("[data-radix-menu-content]")===ee.currentTarget,se=ee.ctrlKey||ee.altKey||ee.metaKey,ie=ee.key.length===1;ne&&(ee.key==="Tab"&&ee.preventDefault(),!se&&ie&&V(ee.key));const ge=F.current;if(ee.target!==ge||!HHr.includes(ee.key))return;ee.preventDefault();const be=L().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);h8n.includes(ee.key)&&be.reverse(),dVr(be)}),onBlur:ji(e.onBlur,ee=>{ee.currentTarget.contains(ee.target)||(window.clearTimeout($.current),G.current="")}),onPointerMove:ji(e.onPointerMove,Jse(ee=>{const te=ee.target,ne=Y.current!==ee.clientX;if(ee.currentTarget.contains(te)&&ne){const se=ee.clientX>Y.current?"right":"left";z.current=se,Y.current=ee.clientX}}))})})})})})})});b8n.displayName=uS;var rVr="MenuGroup",Fft=ue.forwardRef((e,t)=>{const{__scopeMenu:r,...a}=e;return ct.jsx(Za.div,{role:"group",...a,ref:t})});Fft.displayName=rVr;var iVr="MenuLabel",y8n=ue.forwardRef((e,t)=>{const{__scopeMenu:r,...a}=e;return ct.jsx(Za.div,{...a,ref:t})});y8n.displayName=iVr;var GSe="MenuItem",e1n="menu.itemSelect",pCe=ue.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:a,...s}=e,o=ue.useRef(null),u=jle(GSe,e.__scopeMenu),h=Pft(GSe,e.__scopeMenu),f=Yo(t,o),p=ue.useRef(!1),m=()=>{const b=o.current;if(!r&&b){const _=new CustomEvent(e1n,{bubbles:!0,cancelable:!0});b.addEventListener(e1n,w=>a==null?void 0:a(w),{once:!0}),$Rn(b,_),_.defaultPrevented?p.current=!1:u.onClose()}};return ct.jsx(v8n,{...s,ref:f,disabled:r,onClick:ji(e.onClick,m),onPointerDown:b=>{var _;(_=e.onPointerDown)==null||_.call(e,b),p.current=!0},onPointerUp:ji(e.onPointerUp,b=>{var _;p.current||(_=b.currentTarget)==null||_.click()}),onKeyDown:ji(e.onKeyDown,b=>{const _=h.searchRef.current!=="";r||_&&b.key===" "||Pst.includes(b.key)&&(b.currentTarget.click(),b.preventDefault())})})});pCe.displayName=GSe;var v8n=ue.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:a=!1,textValue:s,...o}=e,u=Pft(GSe,r),h=f8n(r),f=ue.useRef(null),p=Yo(t,f),[m,b]=ue.useState(!1),[_,w]=ue.useState("");return ue.useEffect(()=>{const S=f.current;S&&w((S.textContent??"").trim())},[o.children]),ct.jsx(Zse.ItemSlot,{scope:r,disabled:a,textValue:s??_,children:ct.jsx(hCe,{asChild:!0,...h,focusable:!a,children:ct.jsx(Za.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...o,ref:p,onPointerMove:ji(e.onPointerMove,Jse(S=>{a?u.onItemLeave(S):(u.onItemEnter(S),S.defaultPrevented||S.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ji(e.onPointerLeave,Jse(S=>u.onItemLeave(S))),onFocus:ji(e.onFocus,()=>b(!0)),onBlur:ji(e.onBlur,()=>b(!1))})})})}),aVr="MenuCheckboxItem",_8n=ue.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:a,...s}=e;return ct.jsx(T8n,{scope:e.__scopeMenu,checked:r,children:ct.jsx(pCe,{role:"menuitemcheckbox","aria-checked":qSe(r)?"mixed":r,...s,ref:t,"data-state":Uft(r),onSelect:ji(s.onSelect,()=>a==null?void 0:a(qSe(r)?!0:!r),{checkForDefaultPrevented:!1})})})});_8n.displayName=aVr;var w8n="MenuRadioGroup",[sVr,oVr]=y$(w8n,{value:void 0,onValueChange:()=>{}}),E8n=ue.forwardRef((e,t)=>{const{value:r,onValueChange:a,...s}=e,o=_m(a);return ct.jsx(sVr,{scope:e.__scopeMenu,value:r,onValueChange:o,children:ct.jsx(Fft,{...s,ref:t})})});E8n.displayName=w8n;var x8n="MenuRadioItem",S8n=ue.forwardRef((e,t)=>{const{value:r,...a}=e,s=oVr(x8n,e.__scopeMenu),o=r===s.value;return ct.jsx(T8n,{scope:e.__scopeMenu,checked:o,children:ct.jsx(pCe,{role:"menuitemradio","aria-checked":o,...a,ref:t,"data-state":Uft(o),onSelect:ji(a.onSelect,()=>{var u;return(u=s.onValueChange)==null?void 0:u.call(s,r)},{checkForDefaultPrevented:!1})})})});S8n.displayName=x8n;var $ft="MenuItemIndicator",[T8n,lVr]=y$($ft,{checked:!1}),C8n=ue.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:a,...s}=e,o=lVr($ft,r);return ct.jsx(D1,{present:a||qSe(o.checked)||o.checked===!0,children:ct.jsx(Za.span,{...s,ref:t,"data-state":Uft(o.checked)})})});C8n.displayName=$ft;var cVr="MenuSeparator",A8n=ue.forwardRef((e,t)=>{const{__scopeMenu:r,...a}=e;return ct.jsx(Za.div,{role:"separator","aria-orientation":"horizontal",...a,ref:t})});A8n.displayName=cVr;var uVr="MenuArrow",k8n=ue.forwardRef((e,t)=>{const{__scopeMenu:r,...a}=e,s=fCe(r);return ct.jsx(cCe,{...s,...a,ref:t})});k8n.displayName=uVr;var hVr="MenuSub",[S3a,R8n]=y$(hVr),Cie="MenuSubTrigger",I8n=ue.forwardRef((e,t)=>{const r=v$(Cie,e.__scopeMenu),a=jle(Cie,e.__scopeMenu),s=R8n(Cie,e.__scopeMenu),o=Pft(Cie,e.__scopeMenu),u=ue.useRef(null),{pointerGraceTimerRef:h,onPointerGraceIntentChange:f}=o,p={__scopeMenu:e.__scopeMenu},m=ue.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return ue.useEffect(()=>m,[m]),ue.useEffect(()=>{const b=h.current;return()=>{window.clearTimeout(b),f(null)}},[h,f]),ct.jsx(Dft,{asChild:!0,...p,children:ct.jsx(v8n,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":L8n(r.open),...e,ref:mA(t,s.onTriggerChange),onClick:b=>{var _;(_=e.onClick)==null||_.call(e,b),!(e.disabled||b.defaultPrevented)&&(b.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ji(e.onPointerMove,Jse(b=>{o.onItemEnter(b),!b.defaultPrevented&&!e.disabled&&!r.open&&!u.current&&(o.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{r.onOpenChange(!0),m()},100))})),onPointerLeave:ji(e.onPointerLeave,Jse(b=>{var w,S;m();const _=(w=r.content)==null?void 0:w.getBoundingClientRect();if(_){const C=(S=r.content)==null?void 0:S.dataset.side,A=C==="right",k=A?-5:5,I=_[A?"left":"right"],N=_[A?"right":"left"];o.onPointerGraceIntentChange({area:[{x:b.clientX+k,y:b.clientY},{x:I,y:_.top},{x:N,y:_.top},{x:N,y:_.bottom},{x:I,y:_.bottom}],side:C}),window.clearTimeout(h.current),h.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(b),b.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:ji(e.onKeyDown,b=>{var w;const _=o.searchRef.current!=="";e.disabled||_&&b.key===" "||VHr[a.dir].includes(b.key)&&(r.onOpenChange(!0),(w=r.content)==null||w.focus(),b.preventDefault())})})})});I8n.displayName=Cie;var N8n="MenuSubContent",O8n=ue.forwardRef((e,t)=>{const r=g8n(uS,e.__scopeMenu),{forceMount:a=r.forceMount,...s}=e,o=v$(uS,e.__scopeMenu),u=jle(uS,e.__scopeMenu),h=R8n(N8n,e.__scopeMenu),f=ue.useRef(null),p=Yo(t,f);return ct.jsx(Zse.Provider,{scope:e.__scopeMenu,children:ct.jsx(D1,{present:a||o.open,children:ct.jsx(Zse.Slot,{scope:e.__scopeMenu,children:ct.jsx(Bft,{id:h.contentId,"aria-labelledby":h.triggerId,...s,ref:p,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{var b;u.isUsingKeyboardRef.current&&((b=f.current)==null||b.focus()),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:ji(e.onFocusOutside,m=>{m.target!==h.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:ji(e.onEscapeKeyDown,m=>{u.onClose(),m.preventDefault()}),onKeyDown:ji(e.onKeyDown,m=>{var w;const b=m.currentTarget.contains(m.target),_=YHr[u.dir].includes(m.key);b&&_&&(o.onOpenChange(!1),(w=h.trigger)==null||w.focus(),m.preventDefault())})})})})})});O8n.displayName=N8n;function L8n(e){return e?"open":"closed"}function qSe(e){return e==="indeterminate"}function Uft(e){return qSe(e)?"indeterminate":e?"checked":"unchecked"}function dVr(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function fVr(e,t){return e.map((r,a)=>e[(t+a)%e.length])}function pVr(e,t,r){const s=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let u=fVr(e,Math.max(o,0));s.length===1&&(u=u.filter(p=>p!==r));const f=u.find(p=>p.toLowerCase().startsWith(s.toLowerCase()));return f!==r?f:void 0}function gVr(e,t){const{x:r,y:a}=e;let s=!1;for(let o=0,u=t.length-1;oa!=_>a&&r<(b-p)*(a-m)/(_-m)+p&&(s=!s)}return s}function mVr(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return gVr(r,t)}function Jse(e){return t=>t.pointerType==="mouse"?e(t):void 0}var bVr=p8n,yVr=Dft,vVr=m8n,_Vr=b8n,wVr=Fft,EVr=y8n,xVr=pCe,SVr=_8n,TVr=E8n,CVr=S8n,AVr=C8n,kVr=A8n,RVr=k8n,IVr=I8n,NVr=O8n,gCe="DropdownMenu",[OVr]=Ng(gCe,[d8n]),gv=d8n(),[LVr,D8n]=OVr(gCe),M8n=e=>{const{__scopeDropdownMenu:t,children:r,dir:a,open:s,defaultOpen:o,onOpenChange:u,modal:h=!0}=e,f=gv(t),p=ue.useRef(null),[m,b]=km({prop:s,defaultProp:o??!1,onChange:u,caller:gCe});return ct.jsx(LVr,{scope:t,triggerId:I1(),triggerRef:p,contentId:I1(),open:m,onOpenChange:b,onOpenToggle:ue.useCallback(()=>b(_=>!_),[b]),modal:h,children:ct.jsx(bVr,{...f,open:m,onOpenChange:b,dir:a,modal:h,children:r})})};M8n.displayName=gCe;var P8n="DropdownMenuTrigger",B8n=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:a=!1,...s}=e,o=D8n(P8n,r),u=gv(r);return ct.jsx(yVr,{asChild:!0,...u,children:ct.jsx(Za.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...s,ref:mA(t,o.triggerRef),onPointerDown:ji(e.onPointerDown,h=>{!a&&h.button===0&&h.ctrlKey===!1&&(o.onOpenToggle(),o.open||h.preventDefault())}),onKeyDown:ji(e.onKeyDown,h=>{a||(["Enter"," "].includes(h.key)&&o.onOpenToggle(),h.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(h.key)&&h.preventDefault())})})})});B8n.displayName=P8n;var DVr="DropdownMenuPortal",F8n=e=>{const{__scopeDropdownMenu:t,...r}=e,a=gv(t);return ct.jsx(vVr,{...a,...r})};F8n.displayName=DVr;var $8n="DropdownMenuContent",U8n=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=D8n($8n,r),o=gv(r),u=ue.useRef(!1);return ct.jsx(_Vr,{id:s.contentId,"aria-labelledby":s.triggerId,...o,...a,ref:t,onCloseAutoFocus:ji(e.onCloseAutoFocus,h=>{var f;u.current||(f=s.triggerRef.current)==null||f.focus(),u.current=!1,h.preventDefault()}),onInteractOutside:ji(e.onInteractOutside,h=>{const f=h.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0,m=f.button===2||p;(!s.modal||m)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});U8n.displayName=$8n;var MVr="DropdownMenuGroup",PVr=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=gv(r);return ct.jsx(wVr,{...s,...a,ref:t})});PVr.displayName=MVr;var BVr="DropdownMenuLabel",z8n=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=gv(r);return ct.jsx(EVr,{...s,...a,ref:t})});z8n.displayName=BVr;var FVr="DropdownMenuItem",G8n=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=gv(r);return ct.jsx(xVr,{...s,...a,ref:t})});G8n.displayName=FVr;var $Vr="DropdownMenuCheckboxItem",q8n=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=gv(r);return ct.jsx(SVr,{...s,...a,ref:t})});q8n.displayName=$Vr;var UVr="DropdownMenuRadioGroup",zVr=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=gv(r);return ct.jsx(TVr,{...s,...a,ref:t})});zVr.displayName=UVr;var GVr="DropdownMenuRadioItem",H8n=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=gv(r);return ct.jsx(CVr,{...s,...a,ref:t})});H8n.displayName=GVr;var qVr="DropdownMenuItemIndicator",V8n=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=gv(r);return ct.jsx(AVr,{...s,...a,ref:t})});V8n.displayName=qVr;var HVr="DropdownMenuSeparator",Y8n=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=gv(r);return ct.jsx(kVr,{...s,...a,ref:t})});Y8n.displayName=HVr;var VVr="DropdownMenuArrow",YVr=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=gv(r);return ct.jsx(RVr,{...s,...a,ref:t})});YVr.displayName=VVr;var jVr="DropdownMenuSubTrigger",j8n=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=gv(r);return ct.jsx(IVr,{...s,...a,ref:t})});j8n.displayName=jVr;var WVr="DropdownMenuSubContent",W8n=ue.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...a}=e,s=gv(r);return ct.jsx(NVr,{...s,...a,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});W8n.displayName=WVr;var T3a=M8n,C3a=B8n,A3a=F8n,k3a=U8n,R3a=z8n,I3a=G8n,N3a=q8n,O3a=H8n,L3a=V8n,D3a=Y8n,M3a=j8n,P3a=W8n,KVr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],RA=KVr.reduce((e,t)=>{const r=TRn(`Primitive.${t}`),a=ue.forwardRef((s,o)=>{const{asChild:u,...h}=s,f=u?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ct.jsx(f,{...h,ref:o})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),XVr="Label",K8n=ue.forwardRef((e,t)=>ct.jsx(RA.label,{...e,ref:t,onMouseDown:r=>{var s;r.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));K8n.displayName=XVr;var B3a=K8n,X8n=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),QVr="VisuallyHidden",Q8n=ue.forwardRef((e,t)=>ct.jsx(Za.span,{...e,ref:t,style:{...X8n,...e.style}}));Q8n.displayName=QVr;var ZVr=Q8n,[mCe]=Ng("Tooltip",[T9]),bCe=T9(),Z8n="TooltipProvider",JVr=700,Bst="tooltip.open",[eYr,zft]=mCe(Z8n),J8n=e=>{const{__scopeTooltip:t,delayDuration:r=JVr,skipDelayDuration:a=300,disableHoverableContent:s=!1,children:o}=e,u=ue.useRef(!0),h=ue.useRef(!1),f=ue.useRef(0);return ue.useEffect(()=>{const p=f.current;return()=>window.clearTimeout(p)},[]),ct.jsx(eYr,{scope:t,isOpenDelayedRef:u,delayDuration:r,onOpen:ue.useCallback(()=>{window.clearTimeout(f.current),u.current=!1},[]),onClose:ue.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>u.current=!0,a)},[a]),isPointerInTransitRef:h,onPointerInTransitChange:ue.useCallback(p=>{h.current=p},[]),disableHoverableContent:s,children:o})};J8n.displayName=Z8n;var eoe="Tooltip",[tYr,Wle]=mCe(eoe),eIn=e=>{const{__scopeTooltip:t,children:r,open:a,defaultOpen:s,onOpenChange:o,disableHoverableContent:u,delayDuration:h}=e,f=zft(eoe,e.__scopeTooltip),p=bCe(t),[m,b]=ue.useState(null),_=I1(),w=ue.useRef(0),S=u??f.disableHoverableContent,C=h??f.delayDuration,A=ue.useRef(!1),[k,I]=km({prop:a,defaultProp:s??!1,onChange:F=>{F?(f.onOpen(),document.dispatchEvent(new CustomEvent(Bst))):f.onClose(),o==null||o(F)},caller:eoe}),N=ue.useMemo(()=>k?A.current?"delayed-open":"instant-open":"closed",[k]),L=ue.useCallback(()=>{window.clearTimeout(w.current),w.current=0,A.current=!1,I(!0)},[I]),P=ue.useCallback(()=>{window.clearTimeout(w.current),w.current=0,I(!1)},[I]),M=ue.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>{A.current=!0,I(!0),w.current=0},C)},[C,I]);return ue.useEffect(()=>()=>{w.current&&(window.clearTimeout(w.current),w.current=0)},[]),ct.jsx(oCe,{...p,children:ct.jsx(tYr,{scope:t,contentId:_,open:k,stateAttribute:N,trigger:m,onTriggerChange:b,onTriggerEnter:ue.useCallback(()=>{f.isOpenDelayedRef.current?M():L()},[f.isOpenDelayedRef,M,L]),onTriggerLeave:ue.useCallback(()=>{S?P():(window.clearTimeout(w.current),w.current=0)},[P,S]),onOpen:L,onClose:P,disableHoverableContent:S,children:r})})};eIn.displayName=eoe;var Fst="TooltipTrigger",tIn=ue.forwardRef((e,t)=>{const{__scopeTooltip:r,...a}=e,s=Wle(Fst,r),o=zft(Fst,r),u=bCe(r),h=ue.useRef(null),f=Yo(t,h,s.onTriggerChange),p=ue.useRef(!1),m=ue.useRef(!1),b=ue.useCallback(()=>p.current=!1,[]);return ue.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),ct.jsx(qle,{asChild:!0,...u,children:ct.jsx(Za.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...a,ref:f,onPointerMove:ji(e.onPointerMove,_=>{_.pointerType!=="touch"&&!m.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),m.current=!0)}),onPointerLeave:ji(e.onPointerLeave,()=>{s.onTriggerLeave(),m.current=!1}),onPointerDown:ji(e.onPointerDown,()=>{s.open&&s.onClose(),p.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:ji(e.onFocus,()=>{p.current||s.onOpen()}),onBlur:ji(e.onBlur,s.onClose),onClick:ji(e.onClick,s.onClose)})})});tIn.displayName=Fst;var Gft="TooltipPortal",[nYr,rYr]=mCe(Gft,{forceMount:void 0}),nIn=e=>{const{__scopeTooltip:t,forceMount:r,children:a,container:s}=e,o=Wle(Gft,t);return ct.jsx(nYr,{scope:t,forceMount:r,children:ct.jsx(D1,{present:r||o.open,children:ct.jsx(AW,{asChild:!0,container:s,children:a})})})};nIn.displayName=Gft;var vj="TooltipContent",rIn=ue.forwardRef((e,t)=>{const r=rYr(vj,e.__scopeTooltip),{forceMount:a=r.forceMount,side:s="top",...o}=e,u=Wle(vj,e.__scopeTooltip);return ct.jsx(D1,{present:a||u.open,children:u.disableHoverableContent?ct.jsx(iIn,{side:s,...o,ref:t}):ct.jsx(iYr,{side:s,...o,ref:t})})}),iYr=ue.forwardRef((e,t)=>{const r=Wle(vj,e.__scopeTooltip),a=zft(vj,e.__scopeTooltip),s=ue.useRef(null),o=Yo(t,s),[u,h]=ue.useState(null),{trigger:f,onClose:p}=r,m=s.current,{onPointerInTransitChange:b}=a,_=ue.useCallback(()=>{h(null),b(!1)},[b]),w=ue.useCallback((S,C)=>{const A=S.currentTarget,k={x:S.clientX,y:S.clientY},I=lYr(k,A.getBoundingClientRect()),N=cYr(k,I),L=uYr(C.getBoundingClientRect()),P=dYr([...N,...L]);h(P),b(!0)},[b]);return ue.useEffect(()=>()=>_(),[_]),ue.useEffect(()=>{if(f&&m){const S=A=>w(A,m),C=A=>w(A,f);return f.addEventListener("pointerleave",S),m.addEventListener("pointerleave",C),()=>{f.removeEventListener("pointerleave",S),m.removeEventListener("pointerleave",C)}}},[f,m,w,_]),ue.useEffect(()=>{if(u){const S=C=>{const A=C.target,k={x:C.clientX,y:C.clientY},I=(f==null?void 0:f.contains(A))||(m==null?void 0:m.contains(A)),N=!hYr(k,u);I?_():N&&(_(),p())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[f,m,u,p,_]),ct.jsx(iIn,{...e,ref:o})}),[aYr,sYr]=mCe(eoe,{isInside:!1}),oYr=pqr("TooltipContent"),iIn=ue.forwardRef((e,t)=>{const{__scopeTooltip:r,children:a,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:u,...h}=e,f=Wle(vj,r),p=bCe(r),{onClose:m}=f;return ue.useEffect(()=>(document.addEventListener(Bst,m),()=>document.removeEventListener(Bst,m)),[m]),ue.useEffect(()=>{if(f.trigger){const b=_=>{const w=_.target;w!=null&&w.contains(f.trigger)&&m()};return window.addEventListener("scroll",b,{capture:!0}),()=>window.removeEventListener("scroll",b,{capture:!0})}},[f.trigger,m]),ct.jsx(CW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:b=>b.preventDefault(),onDismiss:m,children:ct.jsxs(lCe,{"data-state":f.stateAttribute,...p,...h,ref:t,style:{...h.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[ct.jsx(oYr,{children:a}),ct.jsx(aYr,{scope:r,isInside:!0,children:ct.jsx(ZVr,{id:f.contentId,role:"tooltip",children:s||a})})]})})});rIn.displayName=vj;var aIn="TooltipArrow",sIn=ue.forwardRef((e,t)=>{const{__scopeTooltip:r,...a}=e,s=bCe(r);return sYr(aIn,r).isInside?null:ct.jsx(cCe,{...s,...a,ref:t})});sIn.displayName=aIn;function lYr(e,t){const r=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,a,s,o)){case o:return"left";case s:return"right";case r:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function cYr(e,t,r=5){const a=[];switch(t){case"top":a.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":a.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":a.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":a.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return a}function uYr(e){const{top:t,right:r,bottom:a,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:a},{x:s,y:a}]}function hYr(e,t){const{x:r,y:a}=e;let s=!1;for(let o=0,u=t.length-1;oa!=_>a&&r<(b-p)*(a-m)/(_-m)+p&&(s=!s)}return s}function dYr(e){const t=e.slice();return t.sort((r,a)=>r.xa.x?1:r.ya.y?1:0),fYr(t)}function fYr(e){if(e.length<=1)return e.slice();const t=[];for(let a=0;a=2;){const o=t[t.length-1],u=t[t.length-2];if((o.x-u.x)*(s.y-u.y)>=(o.y-u.y)*(s.x-u.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let a=e.length-1;a>=0;a--){const s=e[a];for(;r.length>=2;){const o=r[r.length-1],u=r[r.length-2];if((o.x-u.x)*(s.y-u.y)>=(o.y-u.y)*(s.x-u.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var F3a=J8n,$3a=eIn,U3a=tIn,z3a=nIn,G3a=rIn,q3a=sIn,yCe="Popover",[oIn]=Ng(yCe,[T9]),Kle=T9(),[pYr,A9]=oIn(yCe),lIn=e=>{const{__scopePopover:t,children:r,open:a,defaultOpen:s,onOpenChange:o,modal:u=!1}=e,h=Kle(t),f=ue.useRef(null),[p,m]=ue.useState(!1),[b,_]=km({prop:a,defaultProp:s??!1,onChange:o,caller:yCe});return ct.jsx(oCe,{...h,children:ct.jsx(pYr,{scope:t,contentId:I1(),triggerRef:f,open:b,onOpenChange:_,onOpenToggle:ue.useCallback(()=>_(w=>!w),[_]),hasCustomAnchor:p,onCustomAnchorAdd:ue.useCallback(()=>m(!0),[]),onCustomAnchorRemove:ue.useCallback(()=>m(!1),[]),modal:u,children:r})})};lIn.displayName=yCe;var cIn="PopoverAnchor",gYr=ue.forwardRef((e,t)=>{const{__scopePopover:r,...a}=e,s=A9(cIn,r),o=Kle(r),{onCustomAnchorAdd:u,onCustomAnchorRemove:h}=s;return ue.useEffect(()=>(u(),()=>h()),[u,h]),ct.jsx(qle,{...o,...a,ref:t})});gYr.displayName=cIn;var uIn="PopoverTrigger",hIn=ue.forwardRef((e,t)=>{const{__scopePopover:r,...a}=e,s=A9(uIn,r),o=Kle(r),u=Yo(t,s.triggerRef),h=ct.jsx(Za.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":mIn(s.open),...a,ref:u,onClick:ji(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?h:ct.jsx(qle,{asChild:!0,...o,children:h})});hIn.displayName=uIn;var qft="PopoverPortal",[mYr,bYr]=oIn(qft,{forceMount:void 0}),dIn=e=>{const{__scopePopover:t,forceMount:r,children:a,container:s}=e,o=A9(qft,t);return ct.jsx(mYr,{scope:t,forceMount:r,children:ct.jsx(D1,{present:r||o.open,children:ct.jsx(AW,{asChild:!0,container:s,children:a})})})};dIn.displayName=qft;var _j="PopoverContent",fIn=ue.forwardRef((e,t)=>{const r=bYr(_j,e.__scopePopover),{forceMount:a=r.forceMount,...s}=e,o=A9(_j,e.__scopePopover);return ct.jsx(D1,{present:a||o.open,children:o.modal?ct.jsx(vYr,{...s,ref:t}):ct.jsx(_Yr,{...s,ref:t})})});fIn.displayName=_j;var yYr=wF("PopoverContent.RemoveScroll"),vYr=ue.forwardRef((e,t)=>{const r=A9(_j,e.__scopePopover),a=ue.useRef(null),s=Yo(t,a),o=ue.useRef(!1);return ue.useEffect(()=>{const u=a.current;if(u)return Vle(u)},[]),ct.jsx(kW,{as:yYr,allowPinchZoom:!0,children:ct.jsx(pIn,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ji(e.onCloseAutoFocus,u=>{var h;u.preventDefault(),o.current||(h=r.triggerRef.current)==null||h.focus()}),onPointerDownOutside:ji(e.onPointerDownOutside,u=>{const h=u.detail.originalEvent,f=h.button===0&&h.ctrlKey===!0,p=h.button===2||f;o.current=p},{checkForDefaultPrevented:!1}),onFocusOutside:ji(e.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1})})})}),_Yr=ue.forwardRef((e,t)=>{const r=A9(_j,e.__scopePopover),a=ue.useRef(!1),s=ue.useRef(!1);return ct.jsx(pIn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var u,h;(u=e.onCloseAutoFocus)==null||u.call(e,o),o.defaultPrevented||(a.current||(h=r.triggerRef.current)==null||h.focus(),o.preventDefault()),a.current=!1,s.current=!1},onInteractOutside:o=>{var f,p;(f=e.onInteractOutside)==null||f.call(e,o),o.defaultPrevented||(a.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const u=o.target;((p=r.triggerRef.current)==null?void 0:p.contains(u))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),pIn=ue.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:o,disableOutsidePointerEvents:u,onEscapeKeyDown:h,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,...b}=e,_=A9(_j,r),w=Kle(r);return aCe(),ct.jsx(Gle,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:s,onUnmountAutoFocus:o,children:ct.jsx(CW,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:m,onEscapeKeyDown:h,onPointerDownOutside:f,onFocusOutside:p,onDismiss:()=>_.onOpenChange(!1),children:ct.jsx(lCe,{"data-state":mIn(_.open),role:"dialog",id:_.contentId,...w,...b,ref:t,style:{...b.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),gIn="PopoverClose",wYr=ue.forwardRef((e,t)=>{const{__scopePopover:r,...a}=e,s=A9(gIn,r);return ct.jsx(Za.button,{type:"button",...a,ref:t,onClick:ji(e.onClick,()=>s.onOpenChange(!1))})});wYr.displayName=gIn;var EYr="PopoverArrow",xYr=ue.forwardRef((e,t)=>{const{__scopePopover:r,...a}=e,s=Kle(r);return ct.jsx(cCe,{...s,...a,ref:t})});xYr.displayName=EYr;function mIn(e){return e?"open":"closed"}var H3a=lIn,V3a=hIn,Y3a=dIn,j3a=fIn,t1n=1,SYr=.9,TYr=.8,CYr=.17,aQe=.1,sQe=.999,AYr=.9999,kYr=.99,RYr=/[\\\/_+.#"@\[\(\{&]/,IYr=/[\\\/_+.#"@\[\(\{&]/g,NYr=/[\s-]/,bIn=/[\s-]/g;function $st(e,t,r,a,s,o,u){if(o===t.length)return s===e.length?t1n:kYr;var h=`${s},${o}`;if(u[h]!==void 0)return u[h];for(var f=a.charAt(o),p=r.indexOf(f,s),m=0,b,_,w,S;p>=0;)b=$st(e,t,r,a,p+1,o+1,u),b>m&&(p===s?b*=t1n:RYr.test(e.charAt(p-1))?(b*=TYr,w=e.slice(s,p-1).match(IYr),w&&s>0&&(b*=Math.pow(sQe,w.length))):NYr.test(e.charAt(p-1))?(b*=SYr,S=e.slice(s,p-1).match(bIn),S&&s>0&&(b*=Math.pow(sQe,S.length))):(b*=CYr,s>0&&(b*=Math.pow(sQe,p-s))),e.charAt(p)!==t.charAt(o)&&(b*=AYr)),(bb&&(b=_*aQe)),b>m&&(m=b),p=r.indexOf(f,p+1);return u[h]=m,m}function n1n(e){return e.toLowerCase().replace(bIn," ")}function OYr(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,$st(e,t,n1n(e),n1n(t),0,0,{})}var vCe="Dialog",[yIn]=Ng(vCe),[LYr,pT]=yIn(vCe),vIn=e=>{const{__scopeDialog:t,children:r,open:a,defaultOpen:s,onOpenChange:o,modal:u=!0}=e,h=ue.useRef(null),f=ue.useRef(null),[p,m]=km({prop:a,defaultProp:s??!1,onChange:o,caller:vCe});return ct.jsx(LYr,{scope:t,triggerRef:h,contentRef:f,contentId:I1(),titleId:I1(),descriptionId:I1(),open:p,onOpenChange:m,onOpenToggle:ue.useCallback(()=>m(b=>!b),[m]),modal:u,children:r})};vIn.displayName=vCe;var _In="DialogTrigger",DYr=ue.forwardRef((e,t)=>{const{__scopeDialog:r,...a}=e,s=pT(_In,r),o=Yo(t,s.triggerRef);return ct.jsx(Za.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Yft(s.open),...a,ref:o,onClick:ji(e.onClick,s.onOpenToggle)})});DYr.displayName=_In;var Hft="DialogPortal",[MYr,wIn]=yIn(Hft,{forceMount:void 0}),EIn=e=>{const{__scopeDialog:t,forceMount:r,children:a,container:s}=e,o=pT(Hft,t);return ct.jsx(MYr,{scope:t,forceMount:r,children:ue.Children.map(a,u=>ct.jsx(D1,{present:r||o.open,children:ct.jsx(AW,{asChild:!0,container:s,children:u})}))})};EIn.displayName=Hft;var HSe="DialogOverlay",xIn=ue.forwardRef((e,t)=>{const r=wIn(HSe,e.__scopeDialog),{forceMount:a=r.forceMount,...s}=e,o=pT(HSe,e.__scopeDialog);return o.modal?ct.jsx(D1,{present:a||o.open,children:ct.jsx(BYr,{...s,ref:t})}):null});xIn.displayName=HSe;var PYr=wF("DialogOverlay.RemoveScroll"),BYr=ue.forwardRef((e,t)=>{const{__scopeDialog:r,...a}=e,s=pT(HSe,r);return ct.jsx(kW,{as:PYr,allowPinchZoom:!0,shards:[s.contentRef],children:ct.jsx(Za.div,{"data-state":Yft(s.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),EF="DialogContent",SIn=ue.forwardRef((e,t)=>{const r=wIn(EF,e.__scopeDialog),{forceMount:a=r.forceMount,...s}=e,o=pT(EF,e.__scopeDialog);return ct.jsx(D1,{present:a||o.open,children:o.modal?ct.jsx(FYr,{...s,ref:t}):ct.jsx($Yr,{...s,ref:t})})});SIn.displayName=EF;var FYr=ue.forwardRef((e,t)=>{const r=pT(EF,e.__scopeDialog),a=ue.useRef(null),s=Yo(t,r.contentRef,a);return ue.useEffect(()=>{const o=a.current;if(o)return Vle(o)},[]),ct.jsx(TIn,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ji(e.onCloseAutoFocus,o=>{var u;o.preventDefault(),(u=r.triggerRef.current)==null||u.focus()}),onPointerDownOutside:ji(e.onPointerDownOutside,o=>{const u=o.detail.originalEvent,h=u.button===0&&u.ctrlKey===!0;(u.button===2||h)&&o.preventDefault()}),onFocusOutside:ji(e.onFocusOutside,o=>o.preventDefault())})}),$Yr=ue.forwardRef((e,t)=>{const r=pT(EF,e.__scopeDialog),a=ue.useRef(!1),s=ue.useRef(!1);return ct.jsx(TIn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var u,h;(u=e.onCloseAutoFocus)==null||u.call(e,o),o.defaultPrevented||(a.current||(h=r.triggerRef.current)==null||h.focus(),o.preventDefault()),a.current=!1,s.current=!1},onInteractOutside:o=>{var f,p;(f=e.onInteractOutside)==null||f.call(e,o),o.defaultPrevented||(a.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const u=o.target;((p=r.triggerRef.current)==null?void 0:p.contains(u))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),TIn=ue.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:o,...u}=e,h=pT(EF,r),f=ue.useRef(null),p=Yo(t,f);return aCe(),ct.jsxs(ct.Fragment,{children:[ct.jsx(Gle,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:s,onUnmountAutoFocus:o,children:ct.jsx(CW,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":Yft(h.open),...u,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),ct.jsxs(ct.Fragment,{children:[ct.jsx(UYr,{titleId:h.titleId}),ct.jsx(GYr,{contentRef:f,descriptionId:h.descriptionId})]})]})}),Vft="DialogTitle",CIn=ue.forwardRef((e,t)=>{const{__scopeDialog:r,...a}=e,s=pT(Vft,r);return ct.jsx(Za.h2,{id:s.titleId,...a,ref:t})});CIn.displayName=Vft;var AIn="DialogDescription",kIn=ue.forwardRef((e,t)=>{const{__scopeDialog:r,...a}=e,s=pT(AIn,r);return ct.jsx(Za.p,{id:s.descriptionId,...a,ref:t})});kIn.displayName=AIn;var RIn="DialogClose",IIn=ue.forwardRef((e,t)=>{const{__scopeDialog:r,...a}=e,s=pT(RIn,r);return ct.jsx(Za.button,{type:"button",...a,ref:t,onClick:ji(e.onClick,()=>s.onOpenChange(!1))})});IIn.displayName=RIn;function Yft(e){return e?"open":"closed"}var NIn="DialogTitleWarning",[W3a,OIn]=lqr(NIn,{contentName:EF,titleName:Vft,docsSlug:"dialog"}),UYr=({titleId:e})=>{const t=OIn(NIn),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return ue.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},zYr="DialogDescriptionWarning",GYr=({contentRef:e,descriptionId:t})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${OIn(zYr).contentName}}.`;return ue.useEffect(()=>{var o;const s=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},qYr=vIn,HYr=EIn,VYr=xIn,YYr=SIn,K3a=CIn,X3a=kIn,Q3a=IIn,Sre='[cmdk-group=""]',oQe='[cmdk-group-items=""]',jYr='[cmdk-group-heading=""]',LIn='[cmdk-item=""]',r1n=`${LIn}:not([aria-disabled="true"])`,Ust="cmdk-item-select",lV="data-value",WYr=(e,t,r)=>OYr(e,t,r),DIn=ue.createContext(void 0),Xle=()=>ue.useContext(DIn),MIn=ue.createContext(void 0),jft=()=>ue.useContext(MIn),PIn=ue.createContext(void 0),BIn=ue.forwardRef((e,t)=>{let r=cV(()=>{var se,ie;return{search:"",value:(ie=(se=e.value)!=null?se:e.defaultValue)!=null?ie:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),a=cV(()=>new Set),s=cV(()=>new Map),o=cV(()=>new Map),u=cV(()=>new Set),h=FIn(e),{label:f,children:p,value:m,onValueChange:b,filter:_,shouldFilter:w,loop:S,disablePointerSelection:C=!1,vimBindings:A=!0,...k}=e,I=I1(),N=I1(),L=I1(),P=ue.useRef(null),M=ajr();xF(()=>{if(m!==void 0){let se=m.trim();r.current.value=se,F.emit()}},[m]),xF(()=>{M(6,z)},[]);let F=ue.useMemo(()=>({subscribe:se=>(u.current.add(se),()=>u.current.delete(se)),snapshot:()=>r.current,setState:(se,ie,ge)=>{var ce,be,ve,De;if(!Object.is(r.current[se],ie)){if(r.current[se]=ie,se==="search")Z(),G(),M(1,B);else if(se==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ye=document.getElementById(L);ye?ye.focus():(ce=document.getElementById(I))==null||ce.focus()}if(M(7,()=>{var ye;r.current.selectedItemId=(ye=Y())==null?void 0:ye.id,F.emit()}),ge||M(5,z),((be=h.current)==null?void 0:be.value)!==void 0){let ye=ie??"";(De=(ve=h.current).onValueChange)==null||De.call(ve,ye);return}}F.emit()}},emit:()=>{u.current.forEach(se=>se())}}),[]),U=ue.useMemo(()=>({value:(se,ie,ge)=>{var ce;ie!==((ce=o.current.get(se))==null?void 0:ce.value)&&(o.current.set(se,{value:ie,keywords:ge}),r.current.filtered.items.set(se,$(ie,ge)),M(2,()=>{G(),F.emit()}))},item:(se,ie)=>(a.current.add(se),ie&&(s.current.has(ie)?s.current.get(ie).add(se):s.current.set(ie,new Set([se]))),M(3,()=>{Z(),G(),r.current.value||B(),F.emit()}),()=>{o.current.delete(se),a.current.delete(se),r.current.filtered.items.delete(se);let ge=Y();M(4,()=>{Z(),(ge==null?void 0:ge.getAttribute("id"))===se&&B(),F.emit()})}),group:se=>(s.current.has(se)||s.current.set(se,new Set),()=>{o.current.delete(se),s.current.delete(se)}),filter:()=>h.current.shouldFilter,label:f||e["aria-label"],getDisablePointerSelection:()=>h.current.disablePointerSelection,listId:I,inputId:L,labelId:N,listInnerRef:P}),[]);function $(se,ie){var ge,ce;let be=(ce=(ge=h.current)==null?void 0:ge.filter)!=null?ce:WYr;return se?be(se,r.current.search,ie):0}function G(){if(!r.current.search||h.current.shouldFilter===!1)return;let se=r.current.filtered.items,ie=[];r.current.filtered.groups.forEach(ce=>{let be=s.current.get(ce),ve=0;be.forEach(De=>{let ye=se.get(De);ve=Math.max(ye,ve)}),ie.push([ce,ve])});let ge=P.current;W().sort((ce,be)=>{var ve,De;let ye=ce.getAttribute("id"),Ee=be.getAttribute("id");return((ve=se.get(Ee))!=null?ve:0)-((De=se.get(ye))!=null?De:0)}).forEach(ce=>{let be=ce.closest(oQe);be?be.appendChild(ce.parentElement===be?ce:ce.closest(`${oQe} > *`)):ge.appendChild(ce.parentElement===ge?ce:ce.closest(`${oQe} > *`))}),ie.sort((ce,be)=>be[1]-ce[1]).forEach(ce=>{var be;let ve=(be=P.current)==null?void 0:be.querySelector(`${Sre}[${lV}="${encodeURIComponent(ce[0])}"]`);ve==null||ve.parentElement.appendChild(ve)})}function B(){let se=W().find(ge=>ge.getAttribute("aria-disabled")!=="true"),ie=se==null?void 0:se.getAttribute(lV);F.setState("value",ie||void 0)}function Z(){var se,ie,ge,ce;if(!r.current.search||h.current.shouldFilter===!1){r.current.filtered.count=a.current.size;return}r.current.filtered.groups=new Set;let be=0;for(let ve of a.current){let De=(ie=(se=o.current.get(ve))==null?void 0:se.value)!=null?ie:"",ye=(ce=(ge=o.current.get(ve))==null?void 0:ge.keywords)!=null?ce:[],Ee=$(De,ye);r.current.filtered.items.set(ve,Ee),Ee>0&&be++}for(let[ve,De]of s.current)for(let ye of De)if(r.current.filtered.items.get(ye)>0){r.current.filtered.groups.add(ve);break}r.current.filtered.count=be}function z(){var se,ie,ge;let ce=Y();ce&&(((se=ce.parentElement)==null?void 0:se.firstChild)===ce&&((ge=(ie=ce.closest(Sre))==null?void 0:ie.querySelector(jYr))==null||ge.scrollIntoView({block:"nearest"})),ce.scrollIntoView({block:"nearest"}))}function Y(){var se;return(se=P.current)==null?void 0:se.querySelector(`${LIn}[aria-selected="true"]`)}function W(){var se;return Array.from(((se=P.current)==null?void 0:se.querySelectorAll(r1n))||[])}function Q(se){let ie=W()[se];ie&&F.setState("value",ie.getAttribute(lV))}function V(se){var ie;let ge=Y(),ce=W(),be=ce.findIndex(De=>De===ge),ve=ce[be+se];(ie=h.current)!=null&&ie.loop&&(ve=be+se<0?ce[ce.length-1]:be+se===ce.length?ce[0]:ce[be+se]),ve&&F.setState("value",ve.getAttribute(lV))}function j(se){let ie=Y(),ge=ie==null?void 0:ie.closest(Sre),ce;for(;ge&&!ce;)ge=se>0?rjr(ge,Sre):ijr(ge,Sre),ce=ge==null?void 0:ge.querySelector(r1n);ce?F.setState("value",ce.getAttribute(lV)):V(se)}let ee=()=>Q(W().length-1),te=se=>{se.preventDefault(),se.metaKey?ee():se.altKey?j(1):V(1)},ne=se=>{se.preventDefault(),se.metaKey?Q(0):se.altKey?j(-1):V(-1)};return ue.createElement(RA.div,{ref:t,tabIndex:-1,...k,"cmdk-root":"",onKeyDown:se=>{var ie;(ie=k.onKeyDown)==null||ie.call(k,se);let ge=se.nativeEvent.isComposing||se.keyCode===229;if(!(se.defaultPrevented||ge))switch(se.key){case"n":case"j":{A&&se.ctrlKey&&te(se);break}case"ArrowDown":{te(se);break}case"p":case"k":{A&&se.ctrlKey&&ne(se);break}case"ArrowUp":{ne(se);break}case"Home":{se.preventDefault(),Q(0);break}case"End":{se.preventDefault(),ee();break}case"Enter":{se.preventDefault();let ce=Y();if(ce){let be=new Event(Ust);ce.dispatchEvent(be)}}}}},ue.createElement("label",{"cmdk-label":"",htmlFor:U.inputId,id:U.labelId,style:ojr},f),_Ce(e,se=>ue.createElement(MIn.Provider,{value:F},ue.createElement(DIn.Provider,{value:U},se))))}),KYr=ue.forwardRef((e,t)=>{var r,a;let s=I1(),o=ue.useRef(null),u=ue.useContext(PIn),h=Xle(),f=FIn(e),p=(a=(r=f.current)==null?void 0:r.forceMount)!=null?a:u==null?void 0:u.forceMount;xF(()=>{if(!p)return h.item(s,u==null?void 0:u.id)},[p]);let m=$In(s,o,[e.value,e.children,o],e.keywords),b=jft(),_=HO(M=>M.value&&M.value===m.current),w=HO(M=>p||h.filter()===!1?!0:M.search?M.filtered.items.get(s)>0:!0);ue.useEffect(()=>{let M=o.current;if(!(!M||e.disabled))return M.addEventListener(Ust,S),()=>M.removeEventListener(Ust,S)},[w,e.onSelect,e.disabled]);function S(){var M,F;C(),(F=(M=f.current).onSelect)==null||F.call(M,m.current)}function C(){b.setState("value",m.current,!0)}if(!w)return null;let{disabled:A,value:k,onSelect:I,forceMount:N,keywords:L,...P}=e;return ue.createElement(RA.div,{ref:mA(o,t),...P,id:s,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!_,"data-disabled":!!A,"data-selected":!!_,onPointerMove:A||h.getDisablePointerSelection()?void 0:C,onClick:A?void 0:S},e.children)}),XYr=ue.forwardRef((e,t)=>{let{heading:r,children:a,forceMount:s,...o}=e,u=I1(),h=ue.useRef(null),f=ue.useRef(null),p=I1(),m=Xle(),b=HO(w=>s||m.filter()===!1?!0:w.search?w.filtered.groups.has(u):!0);xF(()=>m.group(u),[]),$In(u,h,[e.value,e.heading,f]);let _=ue.useMemo(()=>({id:u,forceMount:s}),[s]);return ue.createElement(RA.div,{ref:mA(h,t),...o,"cmdk-group":"",role:"presentation",hidden:b?void 0:!0},r&&ue.createElement("div",{ref:f,"cmdk-group-heading":"","aria-hidden":!0,id:p},r),_Ce(e,w=>ue.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?p:void 0},ue.createElement(PIn.Provider,{value:_},w))))}),QYr=ue.forwardRef((e,t)=>{let{alwaysRender:r,...a}=e,s=ue.useRef(null),o=HO(u=>!u.search);return!r&&!o?null:ue.createElement(RA.div,{ref:mA(s,t),...a,"cmdk-separator":"",role:"separator"})}),ZYr=ue.forwardRef((e,t)=>{let{onValueChange:r,...a}=e,s=e.value!=null,o=jft(),u=HO(p=>p.search),h=HO(p=>p.selectedItemId),f=Xle();return ue.useEffect(()=>{e.value!=null&&o.setState("search",e.value)},[e.value]),ue.createElement(RA.input,{ref:t,...a,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":f.listId,"aria-labelledby":f.labelId,"aria-activedescendant":h,id:f.inputId,type:"text",value:s?e.value:u,onChange:p=>{s||o.setState("search",p.target.value),r==null||r(p.target.value)}})}),JYr=ue.forwardRef((e,t)=>{let{children:r,label:a="Suggestions",...s}=e,o=ue.useRef(null),u=ue.useRef(null),h=HO(p=>p.selectedItemId),f=Xle();return ue.useEffect(()=>{if(u.current&&o.current){let p=u.current,m=o.current,b,_=new ResizeObserver(()=>{b=requestAnimationFrame(()=>{let w=p.offsetHeight;m.style.setProperty("--cmdk-list-height",w.toFixed(1)+"px")})});return _.observe(p),()=>{cancelAnimationFrame(b),_.unobserve(p)}}},[]),ue.createElement(RA.div,{ref:mA(o,t),...s,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":h,"aria-label":a,id:f.listId},_Ce(e,p=>ue.createElement("div",{ref:mA(u,f.listInnerRef),"cmdk-list-sizer":""},p)))}),ejr=ue.forwardRef((e,t)=>{let{open:r,onOpenChange:a,overlayClassName:s,contentClassName:o,container:u,...h}=e;return ue.createElement(qYr,{open:r,onOpenChange:a},ue.createElement(HYr,{container:u},ue.createElement(VYr,{"cmdk-overlay":"",className:s}),ue.createElement(YYr,{"aria-label":e.label,"cmdk-dialog":"",className:o},ue.createElement(BIn,{ref:t,...h}))))}),tjr=ue.forwardRef((e,t)=>HO(r=>r.filtered.count===0)?ue.createElement(RA.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),njr=ue.forwardRef((e,t)=>{let{progress:r,children:a,label:s="Loading...",...o}=e;return ue.createElement(RA.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":s},_Ce(e,u=>ue.createElement("div",{"aria-hidden":!0},u)))}),Z3a=Object.assign(BIn,{List:JYr,Item:KYr,Input:ZYr,Group:XYr,Separator:QYr,Dialog:ejr,Empty:tjr,Loading:njr});function rjr(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function ijr(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function FIn(e){let t=ue.useRef(e);return xF(()=>{t.current=e}),t}var xF=typeof window>"u"?ue.useEffect:ue.useLayoutEffect;function cV(e){let t=ue.useRef();return t.current===void 0&&(t.current=e()),t}function HO(e){let t=jft(),r=()=>e(t.snapshot());return ue.useSyncExternalStore(t.subscribe,r,r)}function $In(e,t,r,a=[]){let s=ue.useRef(),o=Xle();return xF(()=>{var u;let h=(()=>{var p;for(let m of r){if(typeof m=="string")return m.trim();if(typeof m=="object"&&"current"in m)return m.current?(p=m.current.textContent)==null?void 0:p.trim():s.current}})(),f=a.map(p=>p.trim());o.value(e,h,f),(u=t.current)==null||u.setAttribute(lV,h),s.current=h}),s}var ajr=()=>{let[e,t]=ue.useState(),r=cV(()=>new Map);return xF(()=>{r.current.forEach(a=>a()),r.current=new Map},[e]),(a,s)=>{r.current.set(a,s),t({})}};function sjr(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function _Ce({asChild:e,children:t},r){return e&&ue.isValidElement(t)?ue.cloneElement(sjr(t),{ref:t.ref},r(t.props.children)):r(t)}var ojr={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},wCe="Tabs",[ljr]=Ng(wCe,[C9]),UIn=C9(),[cjr,Wft]=ljr(wCe),zIn=ue.forwardRef((e,t)=>{const{__scopeTabs:r,value:a,onValueChange:s,defaultValue:o,orientation:u="horizontal",dir:h,activationMode:f="automatic",...p}=e,m=S9(h),[b,_]=km({prop:a,onChange:s,defaultProp:o??"",caller:wCe});return ct.jsx(cjr,{scope:r,baseId:I1(),value:b,onValueChange:_,orientation:u,dir:m,activationMode:f,children:ct.jsx(Za.div,{dir:m,"data-orientation":u,...p,ref:t})})});zIn.displayName=wCe;var GIn="TabsList",qIn=ue.forwardRef((e,t)=>{const{__scopeTabs:r,loop:a=!0,...s}=e,o=Wft(GIn,r),u=UIn(r);return ct.jsx(uCe,{asChild:!0,...u,orientation:o.orientation,dir:o.dir,loop:a,children:ct.jsx(Za.div,{role:"tablist","aria-orientation":o.orientation,...s,ref:t})})});qIn.displayName=GIn;var HIn="TabsTrigger",VIn=ue.forwardRef((e,t)=>{const{__scopeTabs:r,value:a,disabled:s=!1,...o}=e,u=Wft(HIn,r),h=UIn(r),f=WIn(u.baseId,a),p=KIn(u.baseId,a),m=a===u.value;return ct.jsx(hCe,{asChild:!0,...h,focusable:!s,active:m,children:ct.jsx(Za.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":p,"data-state":m?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:f,...o,ref:t,onMouseDown:ji(e.onMouseDown,b=>{!s&&b.button===0&&b.ctrlKey===!1?u.onValueChange(a):b.preventDefault()}),onKeyDown:ji(e.onKeyDown,b=>{[" ","Enter"].includes(b.key)&&u.onValueChange(a)}),onFocus:ji(e.onFocus,()=>{const b=u.activationMode!=="manual";!m&&!s&&b&&u.onValueChange(a)})})})});VIn.displayName=HIn;var YIn="TabsContent",jIn=ue.forwardRef((e,t)=>{const{__scopeTabs:r,value:a,forceMount:s,children:o,...u}=e,h=Wft(YIn,r),f=WIn(h.baseId,a),p=KIn(h.baseId,a),m=a===h.value,b=ue.useRef(m);return ue.useEffect(()=>{const _=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(_)},[]),ct.jsx(D1,{present:s||m,children:({present:_})=>ct.jsx(Za.div,{"data-state":m?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":f,hidden:!_,id:p,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:b.current?"0s":void 0},children:_&&o})})});jIn.displayName=YIn;function WIn(e,t){return`${e}-trigger-${t}`}function KIn(e,t){return`${e}-content-${t}`}var J3a=zIn,eTa=qIn,tTa=VIn,nTa=jIn,XIn="Toggle",QIn=ue.forwardRef((e,t)=>{const{pressed:r,defaultPressed:a,onPressedChange:s,...o}=e,[u,h]=km({prop:r,onChange:s,defaultProp:a??!1,caller:XIn});return ct.jsx(Za.button,{type:"button","aria-pressed":u,"data-state":u?"on":"off","data-disabled":e.disabled?"":void 0,...o,ref:t,onClick:ji(e.onClick,()=>{e.disabled||h(!u)})})});QIn.displayName=XIn;var k9="ToggleGroup",[ZIn]=Ng(k9,[C9]),JIn=C9(),Kft=Er.forwardRef((e,t)=>{const{type:r,...a}=e;if(r==="single"){const s=a;return ct.jsx(ujr,{...s,ref:t})}if(r==="multiple"){const s=a;return ct.jsx(hjr,{...s,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${k9}\``)});Kft.displayName=k9;var[eNn,tNn]=ZIn(k9),ujr=Er.forwardRef((e,t)=>{const{value:r,defaultValue:a,onValueChange:s=()=>{},...o}=e,[u,h]=km({prop:r,defaultProp:a??"",onChange:s,caller:k9});return ct.jsx(eNn,{scope:e.__scopeToggleGroup,type:"single",value:Er.useMemo(()=>u?[u]:[],[u]),onItemActivate:h,onItemDeactivate:Er.useCallback(()=>h(""),[h]),children:ct.jsx(nNn,{...o,ref:t})})}),hjr=Er.forwardRef((e,t)=>{const{value:r,defaultValue:a,onValueChange:s=()=>{},...o}=e,[u,h]=km({prop:r,defaultProp:a??[],onChange:s,caller:k9}),f=Er.useCallback(m=>h((b=[])=>[...b,m]),[h]),p=Er.useCallback(m=>h((b=[])=>b.filter(_=>_!==m)),[h]);return ct.jsx(eNn,{scope:e.__scopeToggleGroup,type:"multiple",value:u,onItemActivate:f,onItemDeactivate:p,children:ct.jsx(nNn,{...o,ref:t})})});Kft.displayName=k9;var[djr,fjr]=ZIn(k9),nNn=Er.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:a=!1,rovingFocus:s=!0,orientation:o,dir:u,loop:h=!0,...f}=e,p=JIn(r),m=S9(u),b={role:"group",dir:m,...f};return ct.jsx(djr,{scope:r,rovingFocus:s,disabled:a,children:s?ct.jsx(uCe,{asChild:!0,...p,orientation:o,dir:m,loop:h,children:ct.jsx(Za.div,{...b,ref:t})}):ct.jsx(Za.div,{...b,ref:t})})}),VSe="ToggleGroupItem",rNn=Er.forwardRef((e,t)=>{const r=tNn(VSe,e.__scopeToggleGroup),a=fjr(VSe,e.__scopeToggleGroup),s=JIn(e.__scopeToggleGroup),o=r.value.includes(e.value),u=a.disabled||e.disabled,h={...e,pressed:o,disabled:u},f=Er.useRef(null);return a.rovingFocus?ct.jsx(hCe,{asChild:!0,...s,focusable:!u,active:o,ref:f,children:ct.jsx(i1n,{...h,ref:t})}):ct.jsx(i1n,{...h,ref:t})});rNn.displayName=VSe;var i1n=Er.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:a,...s}=e,o=tNn(VSe,r),u={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},h=o.type==="single"?u:void 0;return ct.jsx(QIn,{...h,...s,ref:t,onPressedChange:f=>{f?o.onItemActivate(a):o.onItemDeactivate(a)}})}),rTa=Kft,iTa=rNn;function ECe(e){const t=ue.useRef({value:e,previous:e});return ue.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Xft="Radio",[pjr,iNn]=Ng(Xft),[gjr,mjr]=pjr(Xft),aNn=ue.forwardRef((e,t)=>{const{__scopeRadio:r,name:a,checked:s=!1,required:o,disabled:u,value:h="on",onCheck:f,form:p,...m}=e,[b,_]=ue.useState(null),w=Yo(t,A=>_(A)),S=ue.useRef(!1),C=b?p||!!b.closest("form"):!0;return ct.jsxs(gjr,{scope:r,checked:s,disabled:u,children:[ct.jsx(Za.button,{type:"button",role:"radio","aria-checked":s,"data-state":cNn(s),"data-disabled":u?"":void 0,disabled:u,value:h,...m,ref:w,onClick:ji(e.onClick,A=>{s||f==null||f(),C&&(S.current=A.isPropagationStopped(),S.current||A.stopPropagation())})}),C&&ct.jsx(lNn,{control:b,bubbles:!S.current,name:a,value:h,checked:s,required:o,disabled:u,form:p,style:{transform:"translateX(-100%)"}})]})});aNn.displayName=Xft;var sNn="RadioIndicator",oNn=ue.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:a,...s}=e,o=mjr(sNn,r);return ct.jsx(D1,{present:a||o.checked,children:ct.jsx(Za.span,{"data-state":cNn(o.checked),"data-disabled":o.disabled?"":void 0,...s,ref:t})})});oNn.displayName=sNn;var bjr="RadioBubbleInput",lNn=ue.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:a=!0,...s},o)=>{const u=ue.useRef(null),h=Yo(u,o),f=ECe(r),p=sCe(t);return ue.useEffect(()=>{const m=u.current;if(!m)return;const b=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(b,"checked").set;if(f!==r&&w){const S=new Event("click",{bubbles:a});w.call(m,r),m.dispatchEvent(S)}},[f,r,a]),ct.jsx(Za.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:h,style:{...s.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});lNn.displayName=bjr;function cNn(e){return e?"checked":"unchecked"}var yjr=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],xCe="RadioGroup",[vjr]=Ng(xCe,[C9,iNn]),uNn=C9(),hNn=iNn(),[_jr,wjr]=vjr(xCe),dNn=ue.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:a,defaultValue:s,value:o,required:u=!1,disabled:h=!1,orientation:f,dir:p,loop:m=!0,onValueChange:b,..._}=e,w=uNn(r),S=S9(p),[C,A]=km({prop:o,defaultProp:s??null,onChange:b,caller:xCe});return ct.jsx(_jr,{scope:r,name:a,required:u,disabled:h,value:C,onValueChange:A,children:ct.jsx(uCe,{asChild:!0,...w,orientation:f,dir:S,loop:m,children:ct.jsx(Za.div,{role:"radiogroup","aria-required":u,"aria-orientation":f,"data-disabled":h?"":void 0,dir:S,..._,ref:t})})})});dNn.displayName=xCe;var fNn="RadioGroupItem",pNn=ue.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:a,...s}=e,o=wjr(fNn,r),u=o.disabled||a,h=uNn(r),f=hNn(r),p=ue.useRef(null),m=Yo(t,p),b=o.value===s.value,_=ue.useRef(!1);return ue.useEffect(()=>{const w=C=>{yjr.includes(C.key)&&(_.current=!0)},S=()=>_.current=!1;return document.addEventListener("keydown",w),document.addEventListener("keyup",S),()=>{document.removeEventListener("keydown",w),document.removeEventListener("keyup",S)}},[]),ct.jsx(hCe,{asChild:!0,...h,focusable:!u,active:b,children:ct.jsx(aNn,{disabled:u,required:o.required,checked:b,...f,...s,name:o.name,ref:m,onCheck:()=>o.onValueChange(s.value),onKeyDown:ji(w=>{w.key==="Enter"&&w.preventDefault()}),onFocus:ji(s.onFocus,()=>{var w;_.current&&((w=p.current)==null||w.click())})})})});pNn.displayName=fNn;var Ejr="RadioGroupIndicator",gNn=ue.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...a}=e,s=hNn(r);return ct.jsx(oNn,{...s,...a,ref:t})});gNn.displayName=Ejr;var aTa=dNn,sTa=pNn,oTa=gNn;function zst(e,[t,r]){return Math.min(r,Math.max(t,e))}var xjr=[" ","Enter","ArrowUp","ArrowDown"],Sjr=[" ","Enter"],SF="Select",[SCe,TCe,Tjr]=iCe(SF),[RW]=Ng(SF,[Tjr,T9]),CCe=T9(),[Cjr,R9]=RW(SF),[Ajr,kjr]=RW(SF),mNn=e=>{const{__scopeSelect:t,children:r,open:a,defaultOpen:s,onOpenChange:o,value:u,defaultValue:h,onValueChange:f,dir:p,name:m,autoComplete:b,disabled:_,required:w,form:S}=e,C=CCe(t),[A,k]=ue.useState(null),[I,N]=ue.useState(null),[L,P]=ue.useState(!1),M=S9(p),[F,U]=km({prop:a,defaultProp:s??!1,onChange:o,caller:SF}),[$,G]=km({prop:u,defaultProp:h,onChange:f,caller:SF}),B=ue.useRef(null),Z=A?S||!!A.closest("form"):!0,[z,Y]=ue.useState(new Set),W=Array.from(z).map(Q=>Q.props.value).join(";");return ct.jsx(oCe,{...C,children:ct.jsxs(Cjr,{required:w,scope:t,trigger:A,onTriggerChange:k,valueNode:I,onValueNodeChange:N,valueNodeHasChildren:L,onValueNodeHasChildrenChange:P,contentId:I1(),value:$,onValueChange:G,open:F,onOpenChange:U,dir:M,triggerPointerDownPosRef:B,disabled:_,children:[ct.jsx(SCe.Provider,{scope:t,children:ct.jsx(Ajr,{scope:e.__scopeSelect,onNativeOptionAdd:ue.useCallback(Q=>{Y(V=>new Set(V).add(Q))},[]),onNativeOptionRemove:ue.useCallback(Q=>{Y(V=>{const j=new Set(V);return j.delete(Q),j})},[]),children:r})}),Z?ct.jsxs(UNn,{"aria-hidden":!0,required:w,tabIndex:-1,name:m,autoComplete:b,value:$,onChange:Q=>G(Q.target.value),disabled:_,form:S,children:[$===void 0?ct.jsx("option",{value:""}):null,Array.from(z)]},W):null]})})};mNn.displayName=SF;var bNn="SelectTrigger",yNn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:a=!1,...s}=e,o=CCe(r),u=R9(bNn,r),h=u.disabled||a,f=Yo(t,u.onTriggerChange),p=TCe(r),m=ue.useRef("touch"),[b,_,w]=GNn(C=>{const A=p().filter(N=>!N.disabled),k=A.find(N=>N.value===u.value),I=qNn(A,C,k);I!==void 0&&u.onValueChange(I.value)}),S=C=>{h||(u.onOpenChange(!0),w()),C&&(u.triggerPointerDownPosRef.current={x:Math.round(C.pageX),y:Math.round(C.pageY)})};return ct.jsx(qle,{asChild:!0,...o,children:ct.jsx(Za.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":zNn(u.value)?"":void 0,...s,ref:f,onClick:ji(s.onClick,C=>{C.currentTarget.focus(),m.current!=="mouse"&&S(C)}),onPointerDown:ji(s.onPointerDown,C=>{m.current=C.pointerType;const A=C.target;A.hasPointerCapture(C.pointerId)&&A.releasePointerCapture(C.pointerId),C.button===0&&C.ctrlKey===!1&&C.pointerType==="mouse"&&(S(C),C.preventDefault())}),onKeyDown:ji(s.onKeyDown,C=>{const A=b.current!=="";!(C.ctrlKey||C.altKey||C.metaKey)&&C.key.length===1&&_(C.key),!(A&&C.key===" ")&&xjr.includes(C.key)&&(S(),C.preventDefault())})})})});yNn.displayName=bNn;var vNn="SelectValue",_Nn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,className:a,style:s,children:o,placeholder:u="",...h}=e,f=R9(vNn,r),{onValueNodeHasChildrenChange:p}=f,m=o!==void 0,b=Yo(t,f.onValueNodeChange);return Ig(()=>{p(m)},[p,m]),ct.jsx(Za.span,{...h,ref:b,style:{pointerEvents:"none"},children:zNn(f.value)?ct.jsx(ct.Fragment,{children:u}):o})});_Nn.displayName=vNn;var Rjr="SelectIcon",wNn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,children:a,...s}=e;return ct.jsx(Za.span,{"aria-hidden":!0,...s,ref:t,children:a||"▼"})});wNn.displayName=Rjr;var Ijr="SelectPortal",ENn=e=>ct.jsx(AW,{asChild:!0,...e});ENn.displayName=Ijr;var TF="SelectContent",xNn=ue.forwardRef((e,t)=>{const r=R9(TF,e.__scopeSelect),[a,s]=ue.useState();if(Ig(()=>{s(new DocumentFragment)},[]),!r.open){const o=a;return o?w9.createPortal(ct.jsx(SNn,{scope:e.__scopeSelect,children:ct.jsx(SCe.Slot,{scope:e.__scopeSelect,children:ct.jsx("div",{children:e.children})})}),o):null}return ct.jsx(TNn,{...e,ref:t})});xNn.displayName=TF;var E3=10,[SNn,I9]=RW(TF),Njr="SelectContentImpl",Ojr=wF("SelectContent.RemoveScroll"),TNn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,position:a="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:o,onPointerDownOutside:u,side:h,sideOffset:f,align:p,alignOffset:m,arrowPadding:b,collisionBoundary:_,collisionPadding:w,sticky:S,hideWhenDetached:C,avoidCollisions:A,...k}=e,I=R9(TF,r),[N,L]=ue.useState(null),[P,M]=ue.useState(null),F=Yo(t,ve=>L(ve)),[U,$]=ue.useState(null),[G,B]=ue.useState(null),Z=TCe(r),[z,Y]=ue.useState(!1),W=ue.useRef(!1);ue.useEffect(()=>{if(N)return Vle(N)},[N]),aCe();const Q=ue.useCallback(ve=>{const[De,...ye]=Z().map(we=>we.ref.current),[Ee]=ye.slice(-1),he=document.activeElement;for(const we of ve)if(we===he||(we==null||we.scrollIntoView({block:"nearest"}),we===De&&P&&(P.scrollTop=0),we===Ee&&P&&(P.scrollTop=P.scrollHeight),we==null||we.focus(),document.activeElement!==he))return},[Z,P]),V=ue.useCallback(()=>Q([U,N]),[Q,U,N]);ue.useEffect(()=>{z&&V()},[z,V]);const{onOpenChange:j,triggerPointerDownPosRef:ee}=I;ue.useEffect(()=>{if(N){let ve={x:0,y:0};const De=Ee=>{var he,we;ve={x:Math.abs(Math.round(Ee.pageX)-(((he=ee.current)==null?void 0:he.x)??0)),y:Math.abs(Math.round(Ee.pageY)-(((we=ee.current)==null?void 0:we.y)??0))}},ye=Ee=>{ve.x<=10&&ve.y<=10?Ee.preventDefault():N.contains(Ee.target)||j(!1),document.removeEventListener("pointermove",De),ee.current=null};return ee.current!==null&&(document.addEventListener("pointermove",De),document.addEventListener("pointerup",ye,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",De),document.removeEventListener("pointerup",ye,{capture:!0})}}},[N,j,ee]),ue.useEffect(()=>{const ve=()=>j(!1);return window.addEventListener("blur",ve),window.addEventListener("resize",ve),()=>{window.removeEventListener("blur",ve),window.removeEventListener("resize",ve)}},[j]);const[te,ne]=GNn(ve=>{const De=Z().filter(he=>!he.disabled),ye=De.find(he=>he.ref.current===document.activeElement),Ee=qNn(De,ve,ye);Ee&&setTimeout(()=>Ee.ref.current.focus())}),se=ue.useCallback((ve,De,ye)=>{const Ee=!W.current&&!ye;(I.value!==void 0&&I.value===De||Ee)&&($(ve),Ee&&(W.current=!0))},[I.value]),ie=ue.useCallback(()=>N==null?void 0:N.focus(),[N]),ge=ue.useCallback((ve,De,ye)=>{const Ee=!W.current&&!ye;(I.value!==void 0&&I.value===De||Ee)&&B(ve)},[I.value]),ce=a==="popper"?Gst:CNn,be=ce===Gst?{side:h,sideOffset:f,align:p,alignOffset:m,arrowPadding:b,collisionBoundary:_,collisionPadding:w,sticky:S,hideWhenDetached:C,avoidCollisions:A}:{};return ct.jsx(SNn,{scope:r,content:N,viewport:P,onViewportChange:M,itemRefCallback:se,selectedItem:U,onItemLeave:ie,itemTextRefCallback:ge,focusSelectedItem:V,selectedItemText:G,position:a,isPositioned:z,searchRef:te,children:ct.jsx(kW,{as:Ojr,allowPinchZoom:!0,children:ct.jsx(Gle,{asChild:!0,trapped:I.open,onMountAutoFocus:ve=>{ve.preventDefault()},onUnmountAutoFocus:ji(s,ve=>{var De;(De=I.trigger)==null||De.focus({preventScroll:!0}),ve.preventDefault()}),children:ct.jsx(CW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:ve=>ve.preventDefault(),onDismiss:()=>I.onOpenChange(!1),children:ct.jsx(ce,{role:"listbox",id:I.contentId,"data-state":I.open?"open":"closed",dir:I.dir,onContextMenu:ve=>ve.preventDefault(),...k,...be,onPlaced:()=>Y(!0),ref:F,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:ji(k.onKeyDown,ve=>{const De=ve.ctrlKey||ve.altKey||ve.metaKey;if(ve.key==="Tab"&&ve.preventDefault(),!De&&ve.key.length===1&&ne(ve.key),["ArrowUp","ArrowDown","Home","End"].includes(ve.key)){let Ee=Z().filter(he=>!he.disabled).map(he=>he.ref.current);if(["ArrowUp","End"].includes(ve.key)&&(Ee=Ee.slice().reverse()),["ArrowUp","ArrowDown"].includes(ve.key)){const he=ve.target,we=Ee.indexOf(he);Ee=Ee.slice(we+1)}setTimeout(()=>Q(Ee)),ve.preventDefault()}})})})})})})});TNn.displayName=Njr;var Ljr="SelectItemAlignedPosition",CNn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:a,...s}=e,o=R9(TF,r),u=I9(TF,r),[h,f]=ue.useState(null),[p,m]=ue.useState(null),b=Yo(t,F=>m(F)),_=TCe(r),w=ue.useRef(!1),S=ue.useRef(!0),{viewport:C,selectedItem:A,selectedItemText:k,focusSelectedItem:I}=u,N=ue.useCallback(()=>{if(o.trigger&&o.valueNode&&h&&p&&C&&A&&k){const F=o.trigger.getBoundingClientRect(),U=p.getBoundingClientRect(),$=o.valueNode.getBoundingClientRect(),G=k.getBoundingClientRect();if(o.dir!=="rtl"){const he=G.left-U.left,we=$.left-he,Ce=F.left-we,Ie=F.width+Ce,Le=Math.max(Ie,U.width),Fe=window.innerWidth-E3,Ve=zst(we,[E3,Math.max(E3,Fe-Le)]);h.style.minWidth=Ie+"px",h.style.left=Ve+"px"}else{const he=U.right-G.right,we=window.innerWidth-$.right-he,Ce=window.innerWidth-F.right-we,Ie=F.width+Ce,Le=Math.max(Ie,U.width),Fe=window.innerWidth-E3,Ve=zst(we,[E3,Math.max(E3,Fe-Le)]);h.style.minWidth=Ie+"px",h.style.right=Ve+"px"}const B=_(),Z=window.innerHeight-E3*2,z=C.scrollHeight,Y=window.getComputedStyle(p),W=parseInt(Y.borderTopWidth,10),Q=parseInt(Y.paddingTop,10),V=parseInt(Y.borderBottomWidth,10),j=parseInt(Y.paddingBottom,10),ee=W+Q+z+j+V,te=Math.min(A.offsetHeight*5,ee),ne=window.getComputedStyle(C),se=parseInt(ne.paddingTop,10),ie=parseInt(ne.paddingBottom,10),ge=F.top+F.height/2-E3,ce=Z-ge,be=A.offsetHeight/2,ve=A.offsetTop+be,De=W+Q+ve,ye=ee-De;if(De<=ge){const he=B.length>0&&A===B[B.length-1].ref.current;h.style.bottom="0px";const we=p.clientHeight-C.offsetTop-C.offsetHeight,Ce=Math.max(ce,be+(he?ie:0)+we+V),Ie=De+Ce;h.style.height=Ie+"px"}else{const he=B.length>0&&A===B[0].ref.current;h.style.top="0px";const Ce=Math.max(ge,W+C.offsetTop+(he?se:0)+be)+ye;h.style.height=Ce+"px",C.scrollTop=De-ge+C.offsetTop}h.style.margin=`${E3}px 0`,h.style.minHeight=te+"px",h.style.maxHeight=Z+"px",a==null||a(),requestAnimationFrame(()=>w.current=!0)}},[_,o.trigger,o.valueNode,h,p,C,A,k,o.dir,a]);Ig(()=>N(),[N]);const[L,P]=ue.useState();Ig(()=>{p&&P(window.getComputedStyle(p).zIndex)},[p]);const M=ue.useCallback(F=>{F&&S.current===!0&&(N(),I==null||I(),S.current=!1)},[N,I]);return ct.jsx(Mjr,{scope:r,contentWrapper:h,shouldExpandOnScrollRef:w,onScrollButtonChange:M,children:ct.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:L},children:ct.jsx(Za.div,{...s,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});CNn.displayName=Ljr;var Djr="SelectPopperPosition",Gst=ue.forwardRef((e,t)=>{const{__scopeSelect:r,align:a="start",collisionPadding:s=E3,...o}=e,u=CCe(r);return ct.jsx(lCe,{...u,...o,ref:t,align:a,collisionPadding:s,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Gst.displayName=Djr;var[Mjr,Qft]=RW(TF,{}),qst="SelectViewport",ANn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:a,...s}=e,o=I9(qst,r),u=Qft(qst,r),h=Yo(t,o.onViewportChange),f=ue.useRef(0);return ct.jsxs(ct.Fragment,{children:[ct.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),ct.jsx(SCe.Slot,{scope:r,children:ct.jsx(Za.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:ji(s.onScroll,p=>{const m=p.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:_}=u;if(_!=null&&_.current&&b){const w=Math.abs(f.current-m.scrollTop);if(w>0){const S=window.innerHeight-E3*2,C=parseFloat(b.style.minHeight),A=parseFloat(b.style.height),k=Math.max(C,A);if(k0?L:0,b.style.justifyContent="flex-end")}}}f.current=m.scrollTop})})})]})});ANn.displayName=qst;var kNn="SelectGroup",[Pjr,Bjr]=RW(kNn),Fjr=ue.forwardRef((e,t)=>{const{__scopeSelect:r,...a}=e,s=I1();return ct.jsx(Pjr,{scope:r,id:s,children:ct.jsx(Za.div,{role:"group","aria-labelledby":s,...a,ref:t})})});Fjr.displayName=kNn;var RNn="SelectLabel",INn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,...a}=e,s=Bjr(RNn,r);return ct.jsx(Za.div,{id:s.id,...a,ref:t})});INn.displayName=RNn;var YSe="SelectItem",[$jr,NNn]=RW(YSe),ONn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,value:a,disabled:s=!1,textValue:o,...u}=e,h=R9(YSe,r),f=I9(YSe,r),p=h.value===a,[m,b]=ue.useState(o??""),[_,w]=ue.useState(!1),S=Yo(t,I=>{var N;return(N=f.itemRefCallback)==null?void 0:N.call(f,I,a,s)}),C=I1(),A=ue.useRef("touch"),k=()=>{s||(h.onValueChange(a),h.onOpenChange(!1))};if(a==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return ct.jsx($jr,{scope:r,value:a,disabled:s,textId:C,isSelected:p,onItemTextChange:ue.useCallback(I=>{b(N=>N||((I==null?void 0:I.textContent)??"").trim())},[]),children:ct.jsx(SCe.ItemSlot,{scope:r,value:a,disabled:s,textValue:m,children:ct.jsx(Za.div,{role:"option","aria-labelledby":C,"data-highlighted":_?"":void 0,"aria-selected":p&&_,"data-state":p?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...u,ref:S,onFocus:ji(u.onFocus,()=>w(!0)),onBlur:ji(u.onBlur,()=>w(!1)),onClick:ji(u.onClick,()=>{A.current!=="mouse"&&k()}),onPointerUp:ji(u.onPointerUp,()=>{A.current==="mouse"&&k()}),onPointerDown:ji(u.onPointerDown,I=>{A.current=I.pointerType}),onPointerMove:ji(u.onPointerMove,I=>{var N;A.current=I.pointerType,s?(N=f.onItemLeave)==null||N.call(f):A.current==="mouse"&&I.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ji(u.onPointerLeave,I=>{var N;I.currentTarget===document.activeElement&&((N=f.onItemLeave)==null||N.call(f))}),onKeyDown:ji(u.onKeyDown,I=>{var L;((L=f.searchRef)==null?void 0:L.current)!==""&&I.key===" "||(Sjr.includes(I.key)&&k(),I.key===" "&&I.preventDefault())})})})})});ONn.displayName=YSe;var Aie="SelectItemText",LNn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,className:a,style:s,...o}=e,u=R9(Aie,r),h=I9(Aie,r),f=NNn(Aie,r),p=kjr(Aie,r),[m,b]=ue.useState(null),_=Yo(t,k=>b(k),f.onItemTextChange,k=>{var I;return(I=h.itemTextRefCallback)==null?void 0:I.call(h,k,f.value,f.disabled)}),w=m==null?void 0:m.textContent,S=ue.useMemo(()=>ct.jsx("option",{value:f.value,disabled:f.disabled,children:w},f.value),[f.disabled,f.value,w]),{onNativeOptionAdd:C,onNativeOptionRemove:A}=p;return Ig(()=>(C(S),()=>A(S)),[C,A,S]),ct.jsxs(ct.Fragment,{children:[ct.jsx(Za.span,{id:f.textId,...o,ref:_}),f.isSelected&&u.valueNode&&!u.valueNodeHasChildren?w9.createPortal(o.children,u.valueNode):null]})});LNn.displayName=Aie;var DNn="SelectItemIndicator",MNn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,...a}=e;return NNn(DNn,r).isSelected?ct.jsx(Za.span,{"aria-hidden":!0,...a,ref:t}):null});MNn.displayName=DNn;var Hst="SelectScrollUpButton",PNn=ue.forwardRef((e,t)=>{const r=I9(Hst,e.__scopeSelect),a=Qft(Hst,e.__scopeSelect),[s,o]=ue.useState(!1),u=Yo(t,a.onScrollButtonChange);return Ig(()=>{if(r.viewport&&r.isPositioned){let h=function(){const p=f.scrollTop>0;o(p)};const f=r.viewport;return h(),f.addEventListener("scroll",h),()=>f.removeEventListener("scroll",h)}},[r.viewport,r.isPositioned]),s?ct.jsx(FNn,{...e,ref:u,onAutoScroll:()=>{const{viewport:h,selectedItem:f}=r;h&&f&&(h.scrollTop=h.scrollTop-f.offsetHeight)}}):null});PNn.displayName=Hst;var Vst="SelectScrollDownButton",BNn=ue.forwardRef((e,t)=>{const r=I9(Vst,e.__scopeSelect),a=Qft(Vst,e.__scopeSelect),[s,o]=ue.useState(!1),u=Yo(t,a.onScrollButtonChange);return Ig(()=>{if(r.viewport&&r.isPositioned){let h=function(){const p=f.scrollHeight-f.clientHeight,m=Math.ceil(f.scrollTop)f.removeEventListener("scroll",h)}},[r.viewport,r.isPositioned]),s?ct.jsx(FNn,{...e,ref:u,onAutoScroll:()=>{const{viewport:h,selectedItem:f}=r;h&&f&&(h.scrollTop=h.scrollTop+f.offsetHeight)}}):null});BNn.displayName=Vst;var FNn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:a,...s}=e,o=I9("SelectScrollButton",r),u=ue.useRef(null),h=TCe(r),f=ue.useCallback(()=>{u.current!==null&&(window.clearInterval(u.current),u.current=null)},[]);return ue.useEffect(()=>()=>f(),[f]),Ig(()=>{var m;const p=h().find(b=>b.ref.current===document.activeElement);(m=p==null?void 0:p.ref.current)==null||m.scrollIntoView({block:"nearest"})},[h]),ct.jsx(Za.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:ji(s.onPointerDown,()=>{u.current===null&&(u.current=window.setInterval(a,50))}),onPointerMove:ji(s.onPointerMove,()=>{var p;(p=o.onItemLeave)==null||p.call(o),u.current===null&&(u.current=window.setInterval(a,50))}),onPointerLeave:ji(s.onPointerLeave,()=>{f()})})}),Ujr="SelectSeparator",$Nn=ue.forwardRef((e,t)=>{const{__scopeSelect:r,...a}=e;return ct.jsx(Za.div,{"aria-hidden":!0,...a,ref:t})});$Nn.displayName=Ujr;var Yst="SelectArrow",zjr=ue.forwardRef((e,t)=>{const{__scopeSelect:r,...a}=e,s=CCe(r),o=R9(Yst,r),u=I9(Yst,r);return o.open&&u.position==="popper"?ct.jsx(cCe,{...s,...a,ref:t}):null});zjr.displayName=Yst;var Gjr="SelectBubbleInput",UNn=ue.forwardRef(({__scopeSelect:e,value:t,...r},a)=>{const s=ue.useRef(null),o=Yo(a,s),u=ECe(t);return ue.useEffect(()=>{const h=s.current;if(!h)return;const f=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(f,"value").set;if(u!==t&&m){const b=new Event("change",{bubbles:!0});m.call(h,t),h.dispatchEvent(b)}},[u,t]),ct.jsx(Za.select,{...r,style:{...X8n,...r.style},ref:o,defaultValue:t})});UNn.displayName=Gjr;function zNn(e){return e===""||e===void 0}function GNn(e){const t=_m(e),r=ue.useRef(""),a=ue.useRef(0),s=ue.useCallback(u=>{const h=r.current+u;t(h),function f(p){r.current=p,window.clearTimeout(a.current),p!==""&&(a.current=window.setTimeout(()=>f(""),1e3))}(h)},[t]),o=ue.useCallback(()=>{r.current="",window.clearTimeout(a.current)},[]);return ue.useEffect(()=>()=>window.clearTimeout(a.current),[]),[r,s,o]}function qNn(e,t,r){const s=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let u=qjr(e,Math.max(o,0));s.length===1&&(u=u.filter(p=>p!==r));const f=u.find(p=>p.textValue.toLowerCase().startsWith(s.toLowerCase()));return f!==r?f:void 0}function qjr(e,t){return e.map((r,a)=>e[(t+a)%e.length])}var lTa=mNn,cTa=yNn,uTa=_Nn,hTa=wNn,dTa=ENn,fTa=xNn,pTa=ANn,gTa=INn,mTa=ONn,bTa=LNn,yTa=MNn,vTa=PNn,_Ta=BNn,wTa=$Nn,ACe="Switch",[Hjr]=Ng(ACe),[Vjr,Yjr]=Hjr(ACe),HNn=ue.forwardRef((e,t)=>{const{__scopeSwitch:r,name:a,checked:s,defaultChecked:o,required:u,disabled:h,value:f="on",onCheckedChange:p,form:m,...b}=e,[_,w]=ue.useState(null),S=Yo(t,N=>w(N)),C=ue.useRef(!1),A=_?m||!!_.closest("form"):!0,[k,I]=km({prop:s,defaultProp:o??!1,onChange:p,caller:ACe});return ct.jsxs(Vjr,{scope:r,checked:k,disabled:h,children:[ct.jsx(Za.button,{type:"button",role:"switch","aria-checked":k,"aria-required":u,"data-state":WNn(k),"data-disabled":h?"":void 0,disabled:h,value:f,...b,ref:S,onClick:ji(e.onClick,N=>{I(L=>!L),A&&(C.current=N.isPropagationStopped(),C.current||N.stopPropagation())})}),A&&ct.jsx(jNn,{control:_,bubbles:!C.current,name:a,value:f,checked:k,required:u,disabled:h,form:m,style:{transform:"translateX(-100%)"}})]})});HNn.displayName=ACe;var VNn="SwitchThumb",YNn=ue.forwardRef((e,t)=>{const{__scopeSwitch:r,...a}=e,s=Yjr(VNn,r);return ct.jsx(Za.span,{"data-state":WNn(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:t})});YNn.displayName=VNn;var jjr="SwitchBubbleInput",jNn=ue.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:a=!0,...s},o)=>{const u=ue.useRef(null),h=Yo(u,o),f=ECe(r),p=sCe(t);return ue.useEffect(()=>{const m=u.current;if(!m)return;const b=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(b,"checked").set;if(f!==r&&w){const S=new Event("click",{bubbles:a});w.call(m,r),m.dispatchEvent(S)}},[f,r,a]),ct.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:h,style:{...s.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});jNn.displayName=jjr;function WNn(e){return e?"checked":"unchecked"}var ETa=HNn,xTa=YNn,kCe="Collapsible",[Wjr,KNn]=Ng(kCe),[Kjr,Zft]=Wjr(kCe),XNn=ue.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:a,defaultOpen:s,disabled:o,onOpenChange:u,...h}=e,[f,p]=km({prop:a,defaultProp:s??!1,onChange:u,caller:kCe});return ct.jsx(Kjr,{scope:r,disabled:o,contentId:I1(),open:f,onOpenToggle:ue.useCallback(()=>p(m=>!m),[p]),children:ct.jsx(Za.div,{"data-state":e0t(f),"data-disabled":o?"":void 0,...h,ref:t})})});XNn.displayName=kCe;var QNn="CollapsibleTrigger",ZNn=ue.forwardRef((e,t)=>{const{__scopeCollapsible:r,...a}=e,s=Zft(QNn,r);return ct.jsx(Za.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":e0t(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...a,ref:t,onClick:ji(e.onClick,s.onOpenToggle)})});ZNn.displayName=QNn;var Jft="CollapsibleContent",JNn=ue.forwardRef((e,t)=>{const{forceMount:r,...a}=e,s=Zft(Jft,e.__scopeCollapsible);return ct.jsx(D1,{present:r||s.open,children:({present:o})=>ct.jsx(Xjr,{...a,ref:t,present:o})})});JNn.displayName=Jft;var Xjr=ue.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:a,children:s,...o}=e,u=Zft(Jft,r),[h,f]=ue.useState(a),p=ue.useRef(null),m=Yo(t,p),b=ue.useRef(0),_=b.current,w=ue.useRef(0),S=w.current,C=u.open||h,A=ue.useRef(C),k=ue.useRef(void 0);return ue.useEffect(()=>{const I=requestAnimationFrame(()=>A.current=!1);return()=>cancelAnimationFrame(I)},[]),Ig(()=>{const I=p.current;if(I){k.current=k.current||{transitionDuration:I.style.transitionDuration,animationName:I.style.animationName},I.style.transitionDuration="0s",I.style.animationName="none";const N=I.getBoundingClientRect();b.current=N.height,w.current=N.width,A.current||(I.style.transitionDuration=k.current.transitionDuration,I.style.animationName=k.current.animationName),f(a)}},[u.open,a]),ct.jsx(Za.div,{"data-state":e0t(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!C,...o,ref:m,style:{"--radix-collapsible-content-height":_?`${_}px`:void 0,"--radix-collapsible-content-width":S?`${S}px`:void 0,...e.style},children:C&&s})});function e0t(e){return e?"open":"closed"}var Qjr=XNn,Zjr=ZNn,Jjr=JNn,gT="Accordion",eWr=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[t0t,tWr,nWr]=iCe(gT),[RCe]=Ng(gT,[nWr,KNn]),n0t=KNn(),eOn=Er.forwardRef((e,t)=>{const{type:r,...a}=e,s=a,o=a;return ct.jsx(t0t.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?ct.jsx(sWr,{...o,ref:t}):ct.jsx(aWr,{...s,ref:t})})});eOn.displayName=gT;var[tOn,rWr]=RCe(gT),[nOn,iWr]=RCe(gT,{collapsible:!1}),aWr=Er.forwardRef((e,t)=>{const{value:r,defaultValue:a,onValueChange:s=()=>{},collapsible:o=!1,...u}=e,[h,f]=km({prop:r,defaultProp:a??"",onChange:s,caller:gT});return ct.jsx(tOn,{scope:e.__scopeAccordion,value:Er.useMemo(()=>h?[h]:[],[h]),onItemOpen:f,onItemClose:Er.useCallback(()=>o&&f(""),[o,f]),children:ct.jsx(nOn,{scope:e.__scopeAccordion,collapsible:o,children:ct.jsx(rOn,{...u,ref:t})})})}),sWr=Er.forwardRef((e,t)=>{const{value:r,defaultValue:a,onValueChange:s=()=>{},...o}=e,[u,h]=km({prop:r,defaultProp:a??[],onChange:s,caller:gT}),f=Er.useCallback(m=>h((b=[])=>[...b,m]),[h]),p=Er.useCallback(m=>h((b=[])=>b.filter(_=>_!==m)),[h]);return ct.jsx(tOn,{scope:e.__scopeAccordion,value:u,onItemOpen:f,onItemClose:p,children:ct.jsx(nOn,{scope:e.__scopeAccordion,collapsible:!0,children:ct.jsx(rOn,{...o,ref:t})})})}),[oWr,ICe]=RCe(gT),rOn=Er.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:a,dir:s,orientation:o="vertical",...u}=e,h=Er.useRef(null),f=Yo(h,t),p=tWr(r),b=S9(s)==="ltr",_=ji(e.onKeyDown,w=>{var U;if(!eWr.includes(w.key))return;const S=w.target,C=p().filter($=>{var G;return!((G=$.ref.current)!=null&&G.disabled)}),A=C.findIndex($=>$.ref.current===S),k=C.length;if(A===-1)return;w.preventDefault();let I=A;const N=0,L=k-1,P=()=>{I=A+1,I>L&&(I=N)},M=()=>{I=A-1,I{const{__scopeAccordion:r,value:a,...s}=e,o=ICe(jSe,r),u=rWr(jSe,r),h=n0t(r),f=I1(),p=a&&u.value.includes(a)||!1,m=o.disabled||e.disabled;return ct.jsx(lWr,{scope:r,open:p,disabled:m,triggerId:f,children:ct.jsx(Qjr,{"data-orientation":o.orientation,"data-state":uOn(p),...h,...s,ref:t,disabled:m,open:p,onOpenChange:b=>{b?u.onItemOpen(a):u.onItemClose(a)}})})});iOn.displayName=jSe;var aOn="AccordionHeader",sOn=Er.forwardRef((e,t)=>{const{__scopeAccordion:r,...a}=e,s=ICe(gT,r),o=r0t(aOn,r);return ct.jsx(Za.h3,{"data-orientation":s.orientation,"data-state":uOn(o.open),"data-disabled":o.disabled?"":void 0,...a,ref:t})});sOn.displayName=aOn;var jst="AccordionTrigger",oOn=Er.forwardRef((e,t)=>{const{__scopeAccordion:r,...a}=e,s=ICe(gT,r),o=r0t(jst,r),u=iWr(jst,r),h=n0t(r);return ct.jsx(t0t.ItemSlot,{scope:r,children:ct.jsx(Zjr,{"aria-disabled":o.open&&!u.collapsible||void 0,"data-orientation":s.orientation,id:o.triggerId,...h,...a,ref:t})})});oOn.displayName=jst;var lOn="AccordionContent",cOn=Er.forwardRef((e,t)=>{const{__scopeAccordion:r,...a}=e,s=ICe(gT,r),o=r0t(lOn,r),u=n0t(r);return ct.jsx(Jjr,{role:"region","aria-labelledby":o.triggerId,"data-orientation":s.orientation,...u,...a,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});cOn.displayName=lOn;function uOn(e){return e?"open":"closed"}var STa=eOn,TTa=iOn,CTa=sOn,ATa=oOn,kTa=cOn,NCe="Checkbox",[cWr]=Ng(NCe),[uWr,i0t]=cWr(NCe);function hWr(e){const{__scopeCheckbox:t,checked:r,children:a,defaultChecked:s,disabled:o,form:u,name:h,onCheckedChange:f,required:p,value:m="on",internal_do_not_use_render:b}=e,[_,w]=km({prop:r,defaultProp:s??!1,onChange:f,caller:NCe}),[S,C]=ue.useState(null),[A,k]=ue.useState(null),I=ue.useRef(!1),N=S?!!u||!!S.closest("form"):!0,L={checked:_,disabled:o,setChecked:w,control:S,setControl:C,name:h,form:u,value:m,hasConsumerStoppedPropagationRef:I,required:p,defaultChecked:xO(s)?!1:s,isFormControl:N,bubbleInput:A,setBubbleInput:k};return ct.jsx(uWr,{scope:t,...L,children:pWr(b)?b(L):a})}var hOn="CheckboxTrigger",dOn=ue.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...a},s)=>{const{control:o,value:u,disabled:h,checked:f,required:p,setControl:m,setChecked:b,hasConsumerStoppedPropagationRef:_,isFormControl:w,bubbleInput:S}=i0t(hOn,e),C=Yo(s,m),A=ue.useRef(f);return ue.useEffect(()=>{const k=o==null?void 0:o.form;if(k){const I=()=>b(A.current);return k.addEventListener("reset",I),()=>k.removeEventListener("reset",I)}},[o,b]),ct.jsx(Za.button,{type:"button",role:"checkbox","aria-checked":xO(f)?"mixed":f,"aria-required":p,"data-state":mOn(f),"data-disabled":h?"":void 0,disabled:h,value:u,...a,ref:C,onKeyDown:ji(t,k=>{k.key==="Enter"&&k.preventDefault()}),onClick:ji(r,k=>{b(I=>xO(I)?!0:!I),S&&w&&(_.current=k.isPropagationStopped(),_.current||k.stopPropagation())})})});dOn.displayName=hOn;var dWr=ue.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:a,checked:s,defaultChecked:o,required:u,disabled:h,value:f,onCheckedChange:p,form:m,...b}=e;return ct.jsx(hWr,{__scopeCheckbox:r,checked:s,defaultChecked:o,disabled:h,required:u,onCheckedChange:p,name:a,form:m,value:f,internal_do_not_use_render:({isFormControl:_})=>ct.jsxs(ct.Fragment,{children:[ct.jsx(dOn,{...b,ref:t,__scopeCheckbox:r}),_&&ct.jsx(gOn,{__scopeCheckbox:r})]})})});dWr.displayName=NCe;var fOn="CheckboxIndicator",fWr=ue.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:a,...s}=e,o=i0t(fOn,r);return ct.jsx(D1,{present:a||xO(o.checked)||o.checked===!0,children:ct.jsx(Za.span,{"data-state":mOn(o.checked),"data-disabled":o.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});fWr.displayName=fOn;var pOn="CheckboxBubbleInput",gOn=ue.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:a,hasConsumerStoppedPropagationRef:s,checked:o,defaultChecked:u,required:h,disabled:f,name:p,value:m,form:b,bubbleInput:_,setBubbleInput:w}=i0t(pOn,e),S=Yo(r,w),C=ECe(o),A=sCe(a);ue.useEffect(()=>{const I=_;if(!I)return;const N=window.HTMLInputElement.prototype,P=Object.getOwnPropertyDescriptor(N,"checked").set,M=!s.current;if(C!==o&&P){const F=new Event("click",{bubbles:M});I.indeterminate=xO(o),P.call(I,xO(o)?!1:o),I.dispatchEvent(F)}},[_,C,o,s]);const k=ue.useRef(xO(o)?!1:o);return ct.jsx(Za.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u??k.current,required:h,disabled:f,name:p,value:m,form:b,...t,tabIndex:-1,ref:S,style:{...t.style,...A,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});gOn.displayName=pOn;function pWr(e){return typeof e=="function"}function xO(e){return e==="indeterminate"}function mOn(e){return xO(e)?"indeterminate":e?"checked":"unchecked"}var gWr="Separator",a1n="horizontal",mWr=["horizontal","vertical"],bOn=ue.forwardRef((e,t)=>{const{decorative:r,orientation:a=a1n,...s}=e,o=bWr(a)?a:a1n,h=r?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return ct.jsx(RA.div,{"data-orientation":o,...h,...s,ref:t})});bOn.displayName=gWr;function bWr(e){return mWr.includes(e)}var RTa=bOn;function yWr(e,t){return ue.useReducer((r,a)=>t[r][a]??r,e)}var a0t="ScrollArea",[yOn]=Ng(a0t),[vWr,DS]=yOn(a0t),vOn=ue.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:a="hover",dir:s,scrollHideDelay:o=600,...u}=e,[h,f]=ue.useState(null),[p,m]=ue.useState(null),[b,_]=ue.useState(null),[w,S]=ue.useState(null),[C,A]=ue.useState(null),[k,I]=ue.useState(0),[N,L]=ue.useState(0),[P,M]=ue.useState(!1),[F,U]=ue.useState(!1),$=Yo(t,B=>f(B)),G=S9(s);return ct.jsx(vWr,{scope:r,type:a,dir:G,scrollHideDelay:o,scrollArea:h,viewport:p,onViewportChange:m,content:b,onContentChange:_,scrollbarX:w,onScrollbarXChange:S,scrollbarXEnabled:P,onScrollbarXEnabledChange:M,scrollbarY:C,onScrollbarYChange:A,scrollbarYEnabled:F,onScrollbarYEnabledChange:U,onCornerWidthChange:I,onCornerHeightChange:L,children:ct.jsx(Za.div,{dir:G,...u,ref:$,style:{position:"relative","--radix-scroll-area-corner-width":k+"px","--radix-scroll-area-corner-height":N+"px",...e.style}})})});vOn.displayName=a0t;var _On="ScrollAreaViewport",wOn=ue.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:a,nonce:s,...o}=e,u=DS(_On,r),h=ue.useRef(null),f=Yo(t,h,u.onViewportChange);return ct.jsxs(ct.Fragment,{children:[ct.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),ct.jsx(Za.div,{"data-radix-scroll-area-viewport":"",...o,ref:f,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:ct.jsx("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:a})})]})});wOn.displayName=_On;var IA="ScrollAreaScrollbar",_Wr=ue.forwardRef((e,t)=>{const{forceMount:r,...a}=e,s=DS(IA,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:u}=s,h=e.orientation==="horizontal";return ue.useEffect(()=>(h?o(!0):u(!0),()=>{h?o(!1):u(!1)}),[h,o,u]),s.type==="hover"?ct.jsx(wWr,{...a,ref:t,forceMount:r}):s.type==="scroll"?ct.jsx(EWr,{...a,ref:t,forceMount:r}):s.type==="auto"?ct.jsx(EOn,{...a,ref:t,forceMount:r}):s.type==="always"?ct.jsx(s0t,{...a,ref:t}):null});_Wr.displayName=IA;var wWr=ue.forwardRef((e,t)=>{const{forceMount:r,...a}=e,s=DS(IA,e.__scopeScrollArea),[o,u]=ue.useState(!1);return ue.useEffect(()=>{const h=s.scrollArea;let f=0;if(h){const p=()=>{window.clearTimeout(f),u(!0)},m=()=>{f=window.setTimeout(()=>u(!1),s.scrollHideDelay)};return h.addEventListener("pointerenter",p),h.addEventListener("pointerleave",m),()=>{window.clearTimeout(f),h.removeEventListener("pointerenter",p),h.removeEventListener("pointerleave",m)}}},[s.scrollArea,s.scrollHideDelay]),ct.jsx(D1,{present:r||o,children:ct.jsx(EOn,{"data-state":o?"visible":"hidden",...a,ref:t})})}),EWr=ue.forwardRef((e,t)=>{const{forceMount:r,...a}=e,s=DS(IA,e.__scopeScrollArea),o=e.orientation==="horizontal",u=LCe(()=>f("SCROLL_END"),100),[h,f]=yWr("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return ue.useEffect(()=>{if(h==="idle"){const p=window.setTimeout(()=>f("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(p)}},[h,s.scrollHideDelay,f]),ue.useEffect(()=>{const p=s.viewport,m=o?"scrollLeft":"scrollTop";if(p){let b=p[m];const _=()=>{const w=p[m];b!==w&&(f("SCROLL"),u()),b=w};return p.addEventListener("scroll",_),()=>p.removeEventListener("scroll",_)}},[s.viewport,o,f,u]),ct.jsx(D1,{present:r||h!=="hidden",children:ct.jsx(s0t,{"data-state":h==="hidden"?"hidden":"visible",...a,ref:t,onPointerEnter:ji(e.onPointerEnter,()=>f("POINTER_ENTER")),onPointerLeave:ji(e.onPointerLeave,()=>f("POINTER_LEAVE"))})})}),EOn=ue.forwardRef((e,t)=>{const r=DS(IA,e.__scopeScrollArea),{forceMount:a,...s}=e,[o,u]=ue.useState(!1),h=e.orientation==="horizontal",f=LCe(()=>{if(r.viewport){const p=r.viewport.offsetWidth{const{orientation:r="vertical",...a}=e,s=DS(IA,e.__scopeScrollArea),o=ue.useRef(null),u=ue.useRef(0),[h,f]=ue.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=COn(h.viewport,h.content),m={...a,sizes:h,onSizesChange:f,hasThumb:p>0&&p<1,onThumbChange:_=>o.current=_,onThumbPointerUp:()=>u.current=0,onThumbPointerDown:_=>u.current=_};function b(_,w){return RWr(_,u.current,h,w)}return r==="horizontal"?ct.jsx(xWr,{...m,ref:t,onThumbPositionChange:()=>{if(s.viewport&&o.current){const _=s.viewport.scrollLeft,w=s1n(_,h,s.dir);o.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:_=>{s.viewport&&(s.viewport.scrollLeft=_)},onDragScroll:_=>{s.viewport&&(s.viewport.scrollLeft=b(_,s.dir))}}):r==="vertical"?ct.jsx(SWr,{...m,ref:t,onThumbPositionChange:()=>{if(s.viewport&&o.current){const _=s.viewport.scrollTop,w=s1n(_,h);o.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:_=>{s.viewport&&(s.viewport.scrollTop=_)},onDragScroll:_=>{s.viewport&&(s.viewport.scrollTop=b(_))}}):null}),xWr=ue.forwardRef((e,t)=>{const{sizes:r,onSizesChange:a,...s}=e,o=DS(IA,e.__scopeScrollArea),[u,h]=ue.useState(),f=ue.useRef(null),p=Yo(t,f,o.onScrollbarXChange);return ue.useEffect(()=>{f.current&&h(getComputedStyle(f.current))},[f]),ct.jsx(SOn,{"data-orientation":"horizontal",...s,ref:p,sizes:r,style:{bottom:0,left:o.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:o.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":OCe(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.x),onDragScroll:m=>e.onDragScroll(m.x),onWheelScroll:(m,b)=>{if(o.viewport){const _=o.viewport.scrollLeft+m.deltaX;e.onWheelScroll(_),kOn(_,b)&&m.preventDefault()}},onResize:()=>{f.current&&o.viewport&&u&&a({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:f.current.clientWidth,paddingStart:KSe(u.paddingLeft),paddingEnd:KSe(u.paddingRight)}})}})}),SWr=ue.forwardRef((e,t)=>{const{sizes:r,onSizesChange:a,...s}=e,o=DS(IA,e.__scopeScrollArea),[u,h]=ue.useState(),f=ue.useRef(null),p=Yo(t,f,o.onScrollbarYChange);return ue.useEffect(()=>{f.current&&h(getComputedStyle(f.current))},[f]),ct.jsx(SOn,{"data-orientation":"vertical",...s,ref:p,sizes:r,style:{top:0,right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":OCe(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.y),onDragScroll:m=>e.onDragScroll(m.y),onWheelScroll:(m,b)=>{if(o.viewport){const _=o.viewport.scrollTop+m.deltaY;e.onWheelScroll(_),kOn(_,b)&&m.preventDefault()}},onResize:()=>{f.current&&o.viewport&&u&&a({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:f.current.clientHeight,paddingStart:KSe(u.paddingTop),paddingEnd:KSe(u.paddingBottom)}})}})}),[TWr,xOn]=yOn(IA),SOn=ue.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:a,hasThumb:s,onThumbChange:o,onThumbPointerUp:u,onThumbPointerDown:h,onThumbPositionChange:f,onDragScroll:p,onWheelScroll:m,onResize:b,..._}=e,w=DS(IA,r),[S,C]=ue.useState(null),A=Yo(t,$=>C($)),k=ue.useRef(null),I=ue.useRef(""),N=w.viewport,L=a.content-a.viewport,P=_m(m),M=_m(f),F=LCe(b,10);function U($){if(k.current){const G=$.clientX-k.current.left,B=$.clientY-k.current.top;p({x:G,y:B})}}return ue.useEffect(()=>{const $=G=>{const B=G.target;(S==null?void 0:S.contains(B))&&P(G,L)};return document.addEventListener("wheel",$,{passive:!1}),()=>document.removeEventListener("wheel",$,{passive:!1})},[N,S,L,P]),ue.useEffect(M,[a,M]),wj(S,F),wj(w.content,F),ct.jsx(TWr,{scope:r,scrollbar:S,hasThumb:s,onThumbChange:_m(o),onThumbPointerUp:_m(u),onThumbPositionChange:M,onThumbPointerDown:_m(h),children:ct.jsx(Za.div,{..._,ref:A,style:{position:"absolute",..._.style},onPointerDown:ji(e.onPointerDown,$=>{$.button===0&&($.target.setPointerCapture($.pointerId),k.current=S.getBoundingClientRect(),I.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),U($))}),onPointerMove:ji(e.onPointerMove,U),onPointerUp:ji(e.onPointerUp,$=>{const G=$.target;G.hasPointerCapture($.pointerId)&&G.releasePointerCapture($.pointerId),document.body.style.webkitUserSelect=I.current,w.viewport&&(w.viewport.style.scrollBehavior=""),k.current=null})})})}),WSe="ScrollAreaThumb",CWr=ue.forwardRef((e,t)=>{const{forceMount:r,...a}=e,s=xOn(WSe,e.__scopeScrollArea);return ct.jsx(D1,{present:r||s.hasThumb,children:ct.jsx(AWr,{ref:t,...a})})}),AWr=ue.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:a,...s}=e,o=DS(WSe,r),u=xOn(WSe,r),{onThumbPositionChange:h}=u,f=Yo(t,b=>u.onThumbChange(b)),p=ue.useRef(void 0),m=LCe(()=>{p.current&&(p.current(),p.current=void 0)},100);return ue.useEffect(()=>{const b=o.viewport;if(b){const _=()=>{if(m(),!p.current){const w=IWr(b,h);p.current=w,h()}};return h(),b.addEventListener("scroll",_),()=>b.removeEventListener("scroll",_)}},[o.viewport,m,h]),ct.jsx(Za.div,{"data-state":u.hasThumb?"visible":"hidden",...s,ref:f,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...a},onPointerDownCapture:ji(e.onPointerDownCapture,b=>{const w=b.target.getBoundingClientRect(),S=b.clientX-w.left,C=b.clientY-w.top;u.onThumbPointerDown({x:S,y:C})}),onPointerUp:ji(e.onPointerUp,u.onThumbPointerUp)})});CWr.displayName=WSe;var o0t="ScrollAreaCorner",TOn=ue.forwardRef((e,t)=>{const r=DS(o0t,e.__scopeScrollArea),a=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&a?ct.jsx(kWr,{...e,ref:t}):null});TOn.displayName=o0t;var kWr=ue.forwardRef((e,t)=>{const{__scopeScrollArea:r,...a}=e,s=DS(o0t,r),[o,u]=ue.useState(0),[h,f]=ue.useState(0),p=!!(o&&h);return wj(s.scrollbarX,()=>{var b;const m=((b=s.scrollbarX)==null?void 0:b.offsetHeight)||0;s.onCornerHeightChange(m),f(m)}),wj(s.scrollbarY,()=>{var b;const m=((b=s.scrollbarY)==null?void 0:b.offsetWidth)||0;s.onCornerWidthChange(m),u(m)}),p?ct.jsx(Za.div,{...a,ref:t,style:{width:o,height:h,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function KSe(e){return e?parseInt(e,10):0}function COn(e,t){const r=e/t;return isNaN(r)?0:r}function OCe(e){const t=COn(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=(e.scrollbar.size-r)*t;return Math.max(a,18)}function RWr(e,t,r,a="ltr"){const s=OCe(r),o=s/2,u=t||o,h=s-u,f=r.scrollbar.paddingStart+u,p=r.scrollbar.size-r.scrollbar.paddingEnd-h,m=r.content-r.viewport,b=a==="ltr"?[0,m]:[m*-1,0];return AOn([f,p],b)(e)}function s1n(e,t,r="ltr"){const a=OCe(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-s,u=t.content-t.viewport,h=o-a,f=r==="ltr"?[0,u]:[u*-1,0],p=zst(e,f);return AOn([0,u],[0,h])(p)}function AOn(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const a=(t[1]-t[0])/(e[1]-e[0]);return t[0]+a*(r-e[0])}}function kOn(e,t){return e>0&&e{})=>{let r={left:e.scrollLeft,top:e.scrollTop},a=0;return function s(){const o={left:e.scrollLeft,top:e.scrollTop},u=r.left!==o.left,h=r.top!==o.top;(u||h)&&t(),r=o,a=window.requestAnimationFrame(s)}(),()=>window.cancelAnimationFrame(a)};function LCe(e,t){const r=_m(e),a=ue.useRef(0);return ue.useEffect(()=>()=>window.clearTimeout(a.current),[]),ue.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(r,t)},[r,t])}function wj(e,t){const r=_m(t);Ig(()=>{let a=0;if(e){const s=new ResizeObserver(()=>{cancelAnimationFrame(a),a=window.requestAnimationFrame(r)});return s.observe(e),()=>{window.cancelAnimationFrame(a),s.unobserve(e)}}},[e,r])}var ITa=vOn,NTa=wOn,OTa=TOn,Wst=new Int32Array(1),o1n=new Float32Array(Wst.buffer),NWr=class{constructor(e){if(e&&!(e instanceof Uint8Array))throw new Error("Must initialize a ByteBuffer with a Uint8Array");this._data=e||new Uint8Array(256),this._index=0,this.length=e?e.length:0}toUint8Array(){return this._data.subarray(0,this.length)}readByte(){if(this._index+1>this._data.length)throw new Error("Index out of bounds");return this._data[this._index++]}readByteArray(){let e=this.readVarUint(),t=this._index,r=t+e;if(r>this._data.length)throw new Error("Read array out of bounds");this._index=r;let a=new Uint8Array(e);return a.set(this._data.subarray(t,r)),a}readVarFloat(){let e=this._index,t=this._data,r=t.length;if(e+1>r)throw new Error("Index out of bounds");let a=t[e];if(a===0)return this._index=e+1,0;if(e+4>r)throw new Error("Index out of bounds");let s=a|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24;return this._index=e+4,s=s<<23|s>>>9,Wst[0]=s,o1n[0]}readVarUint(){let e=0,t=0;do{var r=this.readByte();e|=(r&127)<>>0}readVarInt(){let e=this.readVarUint()|0;return e&1?~(e>>>1):e>>>1}readVarUint64(){let e=BigInt(0),t=BigInt(0),r=BigInt(7),a;for(;(a=this.readByte())&128&&t<56;)e|=BigInt(a&127)<>=t,r?~e:e}readString(){let e="";for(;;){let t,r=this.readByte();if(r<192)t=r;else{let a=this.readByte();if(r<224)t=(r&31)<<6|a&63;else{let s=this.readByte();if(r<240)t=(r&15)<<12|(a&63)<<6|s&63;else{let o=this.readByte();t=(r&7)<<18|(a&63)<<12|(s&63)<<6|o&63}}}if(t===0)break;t<65536?e+=String.fromCharCode(t):(t-=65536,e+=String.fromCharCode((t>>10)+55296,(t&1023)+56320))}return e}_growBy(e){if(this.length+e>this._data.length){let t=new Uint8Array(this.length+e<<1);t.set(this._data),this._data=t}this.length+=e}writeByte(e){let t=this.length;this._growBy(1),this._data[t]=e}writeByteArray(e){this.writeVarUint(e.length);let t=this.length;this._growBy(e.length),this._data.set(e,t)}writeVarFloat(e){let t=this.length;o1n[0]=e;let r=Wst[0];if(r=r>>>23|r<<9,!(r&255)){this.writeByte(0);return}this._growBy(4);let a=this._data;a[t]=r,a[t+1]=r>>8,a[t+2]=r>>16,a[t+3]=r>>24}writeVarUint(e){if(e<0||e>4294967295)throw new Error("Outside uint range: "+e);do{let t=e&127;e>>>=7,this.writeByte(e?t|128:t)}while(e)}writeVarInt(e){if(e<-2147483648||e>2147483647)throw new Error("Outside int range: "+e);this.writeVarUint((e<<1^e>>31)>>>0)}writeVarUint64(e){if(typeof e=="string")e=BigInt(e);else if(typeof e!="bigint")throw new Error("Expected bigint but got "+typeof e+": "+e);if(e<0||e>BigInt("0xFFFFFFFFFFFFFFFF"))throw new Error("Outside uint64 range: "+e);let t=BigInt(127),r=BigInt(7);for(let a=0;e>t&&a<8;a++)this.writeByte(Number(e&t)|128),e>>=r;this.writeByte(Number(e))}writeVarInt64(e){if(typeof e=="string")e=BigInt(e);else if(typeof e!="bigint")throw new Error("Expected bigint but got "+typeof e+": "+e);if(e<-BigInt("0x8000000000000000")||e>BigInt("0x7FFFFFFFFFFFFFFF"))throw new Error("Outside int64 range: "+e);let t=BigInt(1);this.writeVarUint64(e<0?~(e<=56320)t=a;else{let s=e.charCodeAt(++r);t=(a<<10)+s+-56613888}if(t===0)throw new Error("Cannot encode a string containing the null character");t<128?this.writeByte(t):(t<2048?this.writeByte(t>>6&31|192):(t<65536?this.writeByte(t>>12&15|224):(this.writeByte(t>>18&7|240),this.writeByte(t>>12&63|128)),this.writeByte(t>>6&63|128)),this.writeByte(t&63|128))}this.writeByte(0)}},OWr=["bool","byte","int","uint","float","string","int64","uint64"],LWr=["ENUM","STRUCT","MESSAGE"];function LTa(e){let t=new NWr,r=e.definitions,a={};t.writeVarUint(r.length);for(let s=0;s=0;)e[t]=0}const PWr=0,ROn=1,BWr=2,FWr=3,$Wr=258,l0t=29,Qle=256,toe=Qle+1+l0t,VV=30,c0t=19,IOn=2*toe+1,WB=15,lQe=16,UWr=7,u0t=256,NOn=16,OOn=17,LOn=18,Kst=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),YEe=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),zWr=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),DOn=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),GWr=512,u7=new Array((toe+2)*2);IW(u7);const Jae=new Array(VV*2);IW(Jae);const noe=new Array(GWr);IW(noe);const roe=new Array($Wr-FWr+1);IW(roe);const h0t=new Array(l0t);IW(h0t);const XSe=new Array(VV);IW(XSe);function cQe(e,t,r,a,s){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=a,this.max_length=s,this.has_stree=e&&e.length}let MOn,POn,BOn;function uQe(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const FOn=e=>e<256?noe[e]:noe[256+(e>>>7)],ioe=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Y2=(e,t,r)=>{e.bi_valid>lQe-r?(e.bi_buf|=t<>lQe-e.bi_valid,e.bi_valid+=r-lQe):(e.bi_buf|=t<{Y2(e,r[t*2],r[t*2+1])},$On=(e,t)=>{let r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1},qWr=e=>{e.bi_valid===16?(ioe(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},HWr=(e,t)=>{const r=t.dyn_tree,a=t.max_code,s=t.stat_desc.static_tree,o=t.stat_desc.has_stree,u=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,f=t.stat_desc.max_length;let p,m,b,_,w,S,C=0;for(_=0;_<=WB;_++)e.bl_count[_]=0;for(r[e.heap[e.heap_max]*2+1]=0,p=e.heap_max+1;pf&&(_=f,C++),r[m*2+1]=_,!(m>a)&&(e.bl_count[_]++,w=0,m>=h&&(w=u[m-h]),S=r[m*2],e.opt_len+=S*(_+w),o&&(e.static_len+=S*(s[m*2+1]+w)));if(C!==0){do{for(_=f-1;e.bl_count[_]===0;)_--;e.bl_count[_]--,e.bl_count[_+1]+=2,e.bl_count[f]--,C-=2}while(C>0);for(_=f;_!==0;_--)for(m=e.bl_count[_];m!==0;)b=e.heap[--p],!(b>a)&&(r[b*2+1]!==_&&(e.opt_len+=(_-r[b*2+1])*r[b*2],r[b*2+1]=_),m--)}},UOn=(e,t,r)=>{const a=new Array(WB+1);let s=0,o,u;for(o=1;o<=WB;o++)s=s+r[o-1]<<1,a[o]=s;for(u=0;u<=t;u++){let h=e[u*2+1];h!==0&&(e[u*2]=$On(a[h]++,h))}},VWr=()=>{let e,t,r,a,s;const o=new Array(WB+1);for(r=0,a=0;a>=7;a{let t;for(t=0;t{e.bi_valid>8?ioe(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},u1n=(e,t,r,a)=>{const s=t*2,o=r*2;return e[s]{const a=e.heap[r];let s=r<<1;for(;s<=e.heap_len&&(s{let a,s,o=0,u,h;if(e.sym_next!==0)do a=e.pending_buf[e.sym_buf+o++]&255,a+=(e.pending_buf[e.sym_buf+o++]&255)<<8,s=e.pending_buf[e.sym_buf+o++],a===0?FC(e,s,t):(u=roe[s],FC(e,u+Qle+1,t),h=Kst[u],h!==0&&(s-=h0t[u],Y2(e,s,h)),a--,u=FOn(a),FC(e,u,r),h=YEe[u],h!==0&&(a-=XSe[u],Y2(e,a,h)));while(o{const r=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,o=t.stat_desc.elems;let u,h,f=-1,p;for(e.heap_len=0,e.heap_max=IOn,u=0;u>1;u>=1;u--)hQe(e,r,u);p=o;do u=e.heap[1],e.heap[1]=e.heap[e.heap_len--],hQe(e,r,1),h=e.heap[1],e.heap[--e.heap_max]=u,e.heap[--e.heap_max]=h,r[p*2]=r[u*2]+r[h*2],e.depth[p]=(e.depth[u]>=e.depth[h]?e.depth[u]:e.depth[h])+1,r[u*2+1]=r[h*2+1]=p,e.heap[1]=p++,hQe(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],HWr(e,t),UOn(r,f,e.bl_count)},d1n=(e,t,r)=>{let a,s=-1,o,u=t[0*2+1],h=0,f=7,p=4;for(u===0&&(f=138,p=3),t[(r+1)*2+1]=65535,a=0;a<=r;a++)o=u,u=t[(a+1)*2+1],!(++h{let a,s=-1,o,u=t[0*2+1],h=0,f=7,p=4;for(u===0&&(f=138,p=3),a=0;a<=r;a++)if(o=u,u=t[(a+1)*2+1],!(++h{let t;for(d1n(e,e.dyn_ltree,e.l_desc.max_code),d1n(e,e.dyn_dtree,e.d_desc.max_code),Xst(e,e.bl_desc),t=c0t-1;t>=3&&e.bl_tree[DOn[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},jWr=(e,t,r,a)=>{let s;for(Y2(e,t-257,5),Y2(e,r-1,5),Y2(e,a-4,4),s=0;s{let t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return l1n;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return c1n;for(r=32;r{p1n||(VWr(),p1n=!0),e.l_desc=new uQe(e.dyn_ltree,MOn),e.d_desc=new uQe(e.dyn_dtree,POn),e.bl_desc=new uQe(e.bl_tree,BOn),e.bi_buf=0,e.bi_valid=0,zOn(e)},qOn=(e,t,r,a)=>{Y2(e,(PWr<<1)+(a?1:0),3),GOn(e),ioe(e,r),ioe(e,~r),r&&e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r},XWr=e=>{Y2(e,ROn<<1,3),FC(e,u0t,u7),qWr(e)},QWr=(e,t,r,a)=>{let s,o,u=0;e.level>0?(e.strm.data_type===MWr&&(e.strm.data_type=WWr(e)),Xst(e,e.l_desc),Xst(e,e.d_desc),u=YWr(e),s=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=s&&(s=o)):s=o=r+5,r+4<=s&&t!==-1?qOn(e,t,r,a):e.strategy===DWr||o===s?(Y2(e,(ROn<<1)+(a?1:0),3),h1n(e,u7,Jae)):(Y2(e,(BWr<<1)+(a?1:0),3),jWr(e,e.l_desc.max_code+1,e.d_desc.max_code+1,u+1),h1n(e,e.dyn_ltree,e.dyn_dtree)),zOn(e),a&&GOn(e)},ZWr=(e,t,r)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=r,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(roe[r]+Qle+1)*2]++,e.dyn_dtree[FOn(t)*2]++),e.sym_next===e.sym_end);var JWr=KWr,eKr=qOn,tKr=QWr,nKr=ZWr,rKr=XWr,iKr={_tr_init:JWr,_tr_stored_block:eKr,_tr_flush_block:tKr,_tr_tally:nKr,_tr_align:rKr};const aKr=(e,t,r,a)=>{let s=e&65535|0,o=e>>>16&65535|0,u=0;for(;r!==0;){u=r>2e3?2e3:r,r-=u;do s=s+t[a++]|0,o=o+s|0;while(--u);s%=65521,o%=65521}return s|o<<16|0};var aoe=aKr;const sKr=()=>{let e,t=[];for(var r=0;r<256;r++){e=r;for(var a=0;a<8;a++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t},oKr=new Uint32Array(sKr()),lKr=(e,t,r,a)=>{const s=oKr,o=a+r;e^=-1;for(let u=a;u>>8^s[(e^t[u])&255];return e^-1};var wg=lKr,CF={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},DCe={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:cKr,_tr_stored_block:Qst,_tr_flush_block:uKr,_tr_tally:SO,_tr_align:hKr}=iKr,{Z_NO_FLUSH:TO,Z_PARTIAL_FLUSH:dKr,Z_FULL_FLUSH:fKr,Z_FINISH:tS,Z_BLOCK:g1n,Z_OK:pm,Z_STREAM_END:m1n,Z_STREAM_ERROR:aA,Z_DATA_ERROR:pKr,Z_BUF_ERROR:dQe,Z_DEFAULT_COMPRESSION:gKr,Z_FILTERED:mKr,Z_HUFFMAN_ONLY:O_e,Z_RLE:bKr,Z_FIXED:yKr,Z_DEFAULT_STRATEGY:vKr,Z_UNKNOWN:_Kr,Z_DEFLATED:MCe}=DCe,wKr=9,EKr=15,xKr=8,SKr=29,TKr=256,Zst=TKr+1+SKr,CKr=30,AKr=19,kKr=2*Zst+1,RKr=15,Ac=3,uO=258,sA=uO+Ac+1,IKr=32,Ej=42,d0t=57,Jst=69,eot=73,tot=91,not=103,KB=113,kie=666,Ky=1,NW=2,AF=3,OW=4,NKr=3,XB=(e,t)=>(e.msg=CF[t],t),b1n=e=>e*2-(e>4?9:0),JN=e=>{let t=e.length;for(;--t>=0;)e[t]=0},OKr=e=>{let t,r,a,s=e.w_size;t=e.hash_size,a=t;do r=e.head[--a],e.head[a]=r>=s?r-s:0;while(--t);t=s,a=t;do r=e.prev[--a],e.prev[a]=r>=s?r-s:0;while(--t)};let LKr=(e,t,r)=>(t<{const t=e.state;let r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+r),e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))},Lw=(e,t)=>{uKr(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Tw(e.strm)},wu=(e,t)=>{e.pending_buf[e.pending++]=t},Tre=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},rot=(e,t,r,a)=>{let s=e.avail_in;return s>a&&(s=a),s===0?0:(e.avail_in-=s,t.set(e.input.subarray(e.next_in,e.next_in+s),r),e.state.wrap===1?e.adler=aoe(e.adler,t,s,r):e.state.wrap===2&&(e.adler=wg(e.adler,t,s,r)),e.next_in+=s,e.total_in+=s,s)},HOn=(e,t)=>{let r=e.max_chain_length,a=e.strstart,s,o,u=e.prev_length,h=e.nice_match;const f=e.strstart>e.w_size-sA?e.strstart-(e.w_size-sA):0,p=e.window,m=e.w_mask,b=e.prev,_=e.strstart+uO;let w=p[a+u-1],S=p[a+u];e.prev_length>=e.good_match&&(r>>=2),h>e.lookahead&&(h=e.lookahead);do if(s=t,!(p[s+u]!==S||p[s+u-1]!==w||p[s]!==p[a]||p[++s]!==p[a+1])){a+=2,s++;do;while(p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&a<_);if(o=uO-(_-a),a=_-uO,o>u){if(e.match_start=t,u=o,o>=h)break;w=p[a+u-1],S=p[a+u]}}while((t=b[t&m])>f&&--r!==0);return u<=e.lookahead?u:e.lookahead},xj=e=>{const t=e.w_size;let r,a,s;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-sA)&&(e.window.set(e.window.subarray(t,t+t-a),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),OKr(e),a+=t),e.strm.avail_in===0)break;if(r=rot(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=r,e.lookahead+e.insert>=Ac)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=CO(e,e.ins_h,e.window[s+1]);e.insert&&(e.ins_h=CO(e,e.ins_h,e.window[s+Ac-1]),e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert{let r=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,a,s,o,u=0,h=e.strm.avail_in;do{if(a=65535,o=e.bi_valid+42>>3,e.strm.avail_outs+e.strm.avail_in&&(a=s+e.strm.avail_in),a>o&&(a=o),a>8,e.pending_buf[e.pending-2]=~a,e.pending_buf[e.pending-1]=~a>>8,Tw(e.strm),s&&(s>a&&(s=a),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+s),e.strm.next_out),e.strm.next_out+=s,e.strm.avail_out-=s,e.strm.total_out+=s,e.block_start+=s,a-=s),a&&(rot(e.strm,e.strm.output,e.strm.next_out,a),e.strm.next_out+=a,e.strm.avail_out-=a,e.strm.total_out+=a)}while(u===0);return h-=e.strm.avail_in,h&&(h>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=h&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-h,e.strm.next_in),e.strstart),e.strstart+=h,e.insert+=h>e.w_size-e.insert?e.w_size-e.insert:h),e.block_start=e.strstart),e.high_watero&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,o+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),o>e.strm.avail_in&&(o=e.strm.avail_in),o&&(rot(e.strm,e.window,e.strstart,o),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.high_water>3,o=e.pending_buf_size-o>65535?65535:e.pending_buf_size-o,r=o>e.w_size?e.w_size:o,s=e.strstart-e.block_start,(s>=r||(s||t===tS)&&t!==TO&&e.strm.avail_in===0&&s<=o)&&(a=s>o?o:s,u=t===tS&&e.strm.avail_in===0&&a===s?1:0,Qst(e,e.block_start,a,u),e.block_start+=a,Tw(e.strm)),u?AF:Ky)},fQe=(e,t)=>{let r,a;for(;;){if(e.lookahead=Ac&&(e.ins_h=CO(e,e.ins_h,e.window[e.strstart+Ac-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-sA&&(e.match_length=HOn(e,r)),e.match_length>=Ac)if(a=SO(e,e.strstart-e.match_start,e.match_length-Ac),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Ac){e.match_length--;do e.strstart++,e.ins_h=CO(e,e.ins_h,e.window[e.strstart+Ac-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=CO(e,e.ins_h,e.window[e.strstart+1]);else a=SO(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(a&&(Lw(e,!1),e.strm.avail_out===0))return Ky}return e.insert=e.strstart{let r,a,s;for(;;){if(e.lookahead=Ac&&(e.ins_h=CO(e,e.ins_h,e.window[e.strstart+Ac-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Ac-1,r!==0&&e.prev_length4096)&&(e.match_length=Ac-1)),e.prev_length>=Ac&&e.match_length<=e.prev_length){s=e.strstart+e.lookahead-Ac,a=SO(e,e.strstart-1-e.prev_match,e.prev_length-Ac),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=s&&(e.ins_h=CO(e,e.ins_h,e.window[e.strstart+Ac-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Ac-1,e.strstart++,a&&(Lw(e,!1),e.strm.avail_out===0))return Ky}else if(e.match_available){if(a=SO(e,0,e.window[e.strstart-1]),a&&Lw(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Ky}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(a=SO(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let r,a,s,o;const u=e.window;for(;;){if(e.lookahead<=uO){if(xj(e),e.lookahead<=uO&&t===TO)return Ky;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Ac&&e.strstart>0&&(s=e.strstart-1,a=u[s],a===u[++s]&&a===u[++s]&&a===u[++s])){o=e.strstart+uO;do;while(a===u[++s]&&a===u[++s]&&a===u[++s]&&a===u[++s]&&a===u[++s]&&a===u[++s]&&a===u[++s]&&a===u[++s]&&se.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Ac?(r=SO(e,1,e.match_length-Ac),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=SO(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Lw(e,!1),e.strm.avail_out===0))return Ky}return e.insert=0,t===tS?(Lw(e,!0),e.strm.avail_out===0?AF:OW):e.sym_next&&(Lw(e,!1),e.strm.avail_out===0)?Ky:NW},MKr=(e,t)=>{let r;for(;;){if(e.lookahead===0&&(xj(e),e.lookahead===0)){if(t===TO)return Ky;break}if(e.match_length=0,r=SO(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Lw(e,!1),e.strm.avail_out===0))return Ky}return e.insert=0,t===tS?(Lw(e,!0),e.strm.avail_out===0?AF:OW):e.sym_next&&(Lw(e,!1),e.strm.avail_out===0)?Ky:NW};function dC(e,t,r,a,s){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=a,this.func=s}const Rie=[new dC(0,0,0,0,VOn),new dC(4,4,8,4,fQe),new dC(4,5,16,8,fQe),new dC(4,6,32,32,fQe),new dC(4,4,16,16,BH),new dC(8,16,32,32,BH),new dC(8,16,128,128,BH),new dC(8,32,128,256,BH),new dC(32,128,258,1024,BH),new dC(32,258,258,4096,BH)],PKr=e=>{e.window_size=2*e.w_size,JN(e.head),e.max_lazy_match=Rie[e.level].max_lazy,e.good_match=Rie[e.level].good_length,e.nice_match=Rie[e.level].nice_length,e.max_chain_length=Rie[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Ac-1,e.match_available=0,e.ins_h=0};function BKr(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=MCe,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(kKr*2),this.dyn_dtree=new Uint16Array((2*CKr+1)*2),this.bl_tree=new Uint16Array((2*AKr+1)*2),JN(this.dyn_ltree),JN(this.dyn_dtree),JN(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(RKr+1),this.heap=new Uint16Array(2*Zst+1),JN(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Zst+1),JN(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Zle=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Ej&&t.status!==d0t&&t.status!==Jst&&t.status!==eot&&t.status!==tot&&t.status!==not&&t.status!==KB&&t.status!==kie?1:0},YOn=e=>{if(Zle(e))return XB(e,aA);e.total_in=e.total_out=0,e.data_type=_Kr;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?d0t:t.wrap?Ej:KB,e.adler=t.wrap===2?0:1,t.last_flush=-2,cKr(t),pm},jOn=e=>{const t=YOn(e);return t===pm&&PKr(e.state),t},FKr=(e,t)=>Zle(e)||e.state.wrap!==2?aA:(e.state.gzhead=t,pm),WOn=(e,t,r,a,s,o)=>{if(!e)return aA;let u=1;if(t===gKr&&(t=6),a<0?(u=0,a=-a):a>15&&(u=2,a-=16),s<1||s>wKr||r!==MCe||a<8||a>15||t<0||t>9||o<0||o>yKr||a===8&&u!==1)return XB(e,aA);a===8&&(a=9);const h=new BKr;return e.state=h,h.strm=e,h.status=Ej,h.wrap=u,h.gzhead=null,h.w_bits=a,h.w_size=1<WOn(e,t,MCe,EKr,xKr,vKr),UKr=(e,t)=>{if(Zle(e)||t>g1n||t<0)return e?XB(e,aA):aA;const r=e.state;if(!e.output||e.avail_in!==0&&!e.input||r.status===kie&&t!==tS)return XB(e,e.avail_out===0?dQe:aA);const a=r.last_flush;if(r.last_flush=t,r.pending!==0){if(Tw(e),e.avail_out===0)return r.last_flush=-1,pm}else if(e.avail_in===0&&b1n(t)<=b1n(a)&&t!==tS)return XB(e,dQe);if(r.status===kie&&e.avail_in!==0)return XB(e,dQe);if(r.status===Ej&&r.wrap===0&&(r.status=KB),r.status===Ej){let s=MCe+(r.w_bits-8<<4)<<8,o=-1;if(r.strategy>=O_e||r.level<2?o=0:r.level<6?o=1:r.level===6?o=2:o=3,s|=o<<6,r.strstart!==0&&(s|=IKr),s+=31-s%31,Tre(r,s),r.strstart!==0&&(Tre(r,e.adler>>>16),Tre(r,e.adler&65535)),e.adler=1,r.status=KB,Tw(e),r.pending!==0)return r.last_flush=-1,pm}if(r.status===d0t){if(e.adler=0,wu(r,31),wu(r,139),wu(r,8),r.gzhead)wu(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),wu(r,r.gzhead.time&255),wu(r,r.gzhead.time>>8&255),wu(r,r.gzhead.time>>16&255),wu(r,r.gzhead.time>>24&255),wu(r,r.level===9?2:r.strategy>=O_e||r.level<2?4:0),wu(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length&&(wu(r,r.gzhead.extra.length&255),wu(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=wg(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=Jst;else if(wu(r,0),wu(r,0),wu(r,0),wu(r,0),wu(r,0),wu(r,r.level===9?2:r.strategy>=O_e||r.level<2?4:0),wu(r,NKr),r.status=KB,Tw(e),r.pending!==0)return r.last_flush=-1,pm}if(r.status===Jst){if(r.gzhead.extra){let s=r.pending,o=(r.gzhead.extra.length&65535)-r.gzindex;for(;r.pending+o>r.pending_buf_size;){let h=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+h),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>s&&(e.adler=wg(e.adler,r.pending_buf,r.pending-s,s)),r.gzindex+=h,Tw(e),r.pending!==0)return r.last_flush=-1,pm;s=0,o-=h}let u=new Uint8Array(r.gzhead.extra);r.pending_buf.set(u.subarray(r.gzindex,r.gzindex+o),r.pending),r.pending+=o,r.gzhead.hcrc&&r.pending>s&&(e.adler=wg(e.adler,r.pending_buf,r.pending-s,s)),r.gzindex=0}r.status=eot}if(r.status===eot){if(r.gzhead.name){let s=r.pending,o;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>s&&(e.adler=wg(e.adler,r.pending_buf,r.pending-s,s)),Tw(e),r.pending!==0)return r.last_flush=-1,pm;s=0}r.gzindexs&&(e.adler=wg(e.adler,r.pending_buf,r.pending-s,s)),r.gzindex=0}r.status=tot}if(r.status===tot){if(r.gzhead.comment){let s=r.pending,o;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>s&&(e.adler=wg(e.adler,r.pending_buf,r.pending-s,s)),Tw(e),r.pending!==0)return r.last_flush=-1,pm;s=0}r.gzindexs&&(e.adler=wg(e.adler,r.pending_buf,r.pending-s,s))}r.status=not}if(r.status===not){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(Tw(e),r.pending!==0))return r.last_flush=-1,pm;wu(r,e.adler&255),wu(r,e.adler>>8&255),e.adler=0}if(r.status=KB,Tw(e),r.pending!==0)return r.last_flush=-1,pm}if(e.avail_in!==0||r.lookahead!==0||t!==TO&&r.status!==kie){let s=r.level===0?VOn(r,t):r.strategy===O_e?MKr(r,t):r.strategy===bKr?DKr(r,t):Rie[r.level].func(r,t);if((s===AF||s===OW)&&(r.status=kie),s===Ky||s===AF)return e.avail_out===0&&(r.last_flush=-1),pm;if(s===NW&&(t===dKr?hKr(r):t!==g1n&&(Qst(r,0,0,!1),t===fKr&&(JN(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),Tw(e),e.avail_out===0))return r.last_flush=-1,pm}return t!==tS?pm:r.wrap<=0?m1n:(r.wrap===2?(wu(r,e.adler&255),wu(r,e.adler>>8&255),wu(r,e.adler>>16&255),wu(r,e.adler>>24&255),wu(r,e.total_in&255),wu(r,e.total_in>>8&255),wu(r,e.total_in>>16&255),wu(r,e.total_in>>24&255)):(Tre(r,e.adler>>>16),Tre(r,e.adler&65535)),Tw(e),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?pm:m1n)},zKr=e=>{if(Zle(e))return aA;const t=e.state.status;return e.state=null,t===KB?XB(e,pKr):pm},GKr=(e,t)=>{let r=t.length;if(Zle(e))return aA;const a=e.state,s=a.wrap;if(s===2||s===1&&a.status!==Ej||a.lookahead)return aA;if(s===1&&(e.adler=aoe(e.adler,t,r,0)),a.wrap=0,r>=a.w_size){s===0&&(JN(a.head),a.strstart=0,a.block_start=0,a.insert=0);let f=new Uint8Array(a.w_size);f.set(t.subarray(r-a.w_size,r),0),t=f,r=a.w_size}const o=e.avail_in,u=e.next_in,h=e.input;for(e.avail_in=r,e.next_in=0,e.input=t,xj(a);a.lookahead>=Ac;){let f=a.strstart,p=a.lookahead-(Ac-1);do a.ins_h=CO(a,a.ins_h,a.window[f+Ac-1]),a.prev[f&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=f,f++;while(--p);a.strstart=f,a.lookahead=Ac-1,xj(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=Ac-1,a.match_available=0,e.next_in=u,e.input=h,e.avail_in=o,a.wrap=s,pm};var qKr=$Kr,HKr=WOn,VKr=jOn,YKr=YOn,jKr=FKr,WKr=UKr,KKr=zKr,XKr=GKr,QKr="pako deflate (from Nodeca project)",ese={deflateInit:qKr,deflateInit2:HKr,deflateReset:VKr,deflateResetKeep:YKr,deflateSetHeader:jKr,deflate:WKr,deflateEnd:KKr,deflateSetDictionary:XKr,deflateInfo:QKr};const ZKr=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var JKr=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const a in r)ZKr(r,a)&&(e[a]=r[a])}}return e},eXr=e=>{let t=0;for(let a=0,s=e.length;a=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;soe[254]=soe[254]=1;var tXr=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,r,a,s,o,u=e.length,h=0;for(s=0;s>>6,t[o++]=128|r&63):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|r&63):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|r&63);return t};const nXr=(e,t)=>{if(t<65534&&e.subarray&&KOn)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let a=0;a{const r=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let a,s;const o=new Array(r*2);for(s=0,a=0;a4){o[s++]=65533,a+=h-1;continue}for(u&=h===2?31:h===3?15:7;h>1&&a1){o[s++]=65533;continue}u<65536?o[s++]=u:(u-=65536,o[s++]=55296|u>>10&1023,o[s++]=56320|u&1023)}return nXr(o,s)},iXr=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let r=t-1;for(;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+soe[e[r]]>t?r:t},ooe={string2buf:tXr,buf2string:rXr,utf8border:iXr};function aXr(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var XOn=aXr;const QOn=Object.prototype.toString,{Z_NO_FLUSH:sXr,Z_SYNC_FLUSH:oXr,Z_FULL_FLUSH:lXr,Z_FINISH:cXr,Z_OK:QSe,Z_STREAM_END:uXr,Z_DEFAULT_COMPRESSION:hXr,Z_DEFAULT_STRATEGY:dXr,Z_DEFLATED:fXr}=DCe;function BCe(e){this.options=PCe.assign({level:hXr,method:fXr,chunkSize:16384,windowBits:15,memLevel:8,strategy:dXr},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new XOn,this.strm.avail_out=0;let r=ese.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==QSe)throw new Error(CF[r]);if(t.header&&ese.deflateSetHeader(this.strm,t.header),t.dictionary){let a;if(typeof t.dictionary=="string"?a=ooe.string2buf(t.dictionary):QOn.call(t.dictionary)==="[object ArrayBuffer]"?a=new Uint8Array(t.dictionary):a=t.dictionary,r=ese.deflateSetDictionary(this.strm,a),r!==QSe)throw new Error(CF[r]);this._dict_set=!0}}BCe.prototype.push=function(e,t){const r=this.strm,a=this.options.chunkSize;let s,o;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?cXr:sXr,typeof e=="string"?r.input=ooe.string2buf(e):QOn.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){if(r.avail_out===0&&(r.output=new Uint8Array(a),r.next_out=0,r.avail_out=a),(o===oXr||o===lXr)&&r.avail_out<=6){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(s=ese.deflate(r,o),s===uXr)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),s=ese.deflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===QSe;if(r.avail_out===0){this.onData(r.output);continue}if(o>0&&r.next_out>0){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(r.avail_in===0)break}return!0};BCe.prototype.onData=function(e){this.chunks.push(e)};BCe.prototype.onEnd=function(e){e===QSe&&(this.result=PCe.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function pXr(e,t){const r=new BCe(t);if(r.push(e,!0),r.err)throw r.msg||CF[r.err];return r.result}function gXr(e,t){return t=t||{},t.raw=!0,pXr(e,t)}var mXr=gXr,bXr={deflateRaw:mXr};const L_e=16209,yXr=16191;var vXr=function(t,r){let a,s,o,u,h,f,p,m,b,_,w,S,C,A,k,I,N,L,P,M,F,U,$,G;const B=t.state;a=t.next_in,$=t.input,s=a+(t.avail_in-5),o=t.next_out,G=t.output,u=o-(r-t.avail_out),h=o+(t.avail_out-257),f=B.dmax,p=B.wsize,m=B.whave,b=B.wnext,_=B.window,w=B.hold,S=B.bits,C=B.lencode,A=B.distcode,k=(1<>>24,w>>>=L,S-=L,L=N>>>16&255,L===0)G[o++]=N&65535;else if(L&16){P=N&65535,L&=15,L&&(S>>=L,S-=L),S<15&&(w+=$[a++]<>>24,w>>>=L,S-=L,L=N>>>16&255,L&16){if(M=N&65535,L&=15,Sf){t.msg="invalid distance too far back",B.mode=L_e;break e}if(w>>>=L,S-=L,L=o-u,M>L){if(L=M-L,L>m&&B.sane){t.msg="invalid distance too far back",B.mode=L_e;break e}if(F=0,U=_,b===0){if(F+=p-L,L2;)G[o++]=U[F++],G[o++]=U[F++],G[o++]=U[F++],P-=3;P&&(G[o++]=U[F++],P>1&&(G[o++]=U[F++]))}else{F=o-M;do G[o++]=G[F++],G[o++]=G[F++],G[o++]=G[F++],P-=3;while(P>2);P&&(G[o++]=G[F++],P>1&&(G[o++]=G[F++]))}}else if(L&64){t.msg="invalid distance code",B.mode=L_e;break e}else{N=A[(N&65535)+(w&(1<>3,a-=P,S-=P<<3,w&=(1<{const f=h.bits;let p=0,m=0,b=0,_=0,w=0,S=0,C=0,A=0,k=0,I=0,N,L,P,M,F,U=null,$;const G=new Uint16Array(FH+1),B=new Uint16Array(FH+1);let Z=null,z,Y,W;for(p=0;p<=FH;p++)G[p]=0;for(m=0;m=1&&G[_]===0;_--);if(w>_&&(w=_),_===0)return s[o++]=1<<24|64<<16|0,s[o++]=1<<24|64<<16|0,h.bits=1,0;for(b=1;b<_&&G[b]===0;b++);for(w0&&(e===_1n||_!==1))return-1;for(B[1]=0,p=1;py1n||e===w1n&&k>v1n)return 1;for(;;){z=p-C,u[m]+1<$?(Y=0,W=u[m]):u[m]>=$?(Y=Z[u[m]-$],W=U[u[m]-$]):(Y=96,W=0),N=1<>C)+L]=z<<24|Y<<16|W|0;while(L!==0);for(N=1<>=1;if(N!==0?(I&=N-1,I+=N):I=0,m++,--G[p]===0){if(p===_)break;p=t[r+u[m]]}if(p>w&&(I&M)!==P){for(C===0&&(C=w),F+=b,S=p-C,A=1<y1n||e===w1n&&k>v1n)return 1;P=I&M,s[P]=w<<24|S<<16|F-o|0}}return I!==0&&(s[F+I]=p-C<<24|64<<16|0),h.bits=w,0};var tse=SXr;const TXr=0,ZOn=1,JOn=2,{Z_FINISH:E1n,Z_BLOCK:CXr,Z_TREES:D_e,Z_OK:kF,Z_STREAM_END:AXr,Z_NEED_DICT:kXr,Z_STREAM_ERROR:yS,Z_DATA_ERROR:e9n,Z_MEM_ERROR:t9n,Z_BUF_ERROR:RXr,Z_DEFLATED:x1n}=DCe,FCe=16180,S1n=16181,T1n=16182,C1n=16183,A1n=16184,k1n=16185,R1n=16186,I1n=16187,N1n=16188,O1n=16189,ZSe=16190,H6=16191,gQe=16192,L1n=16193,mQe=16194,D1n=16195,M1n=16196,P1n=16197,B1n=16198,M_e=16199,P_e=16200,F1n=16201,$1n=16202,U1n=16203,z1n=16204,G1n=16205,bQe=16206,q1n=16207,H1n=16208,Gd=16209,n9n=16210,r9n=16211,IXr=852,NXr=592,OXr=15,LXr=OXr,V1n=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function DXr(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const _$=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.moder9n?1:0},i9n=e=>{if(_$(e))return yS;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=FCe,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(IXr),t.distcode=t.distdyn=new Int32Array(NXr),t.sane=1,t.back=-1,kF},a9n=e=>{if(_$(e))return yS;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,i9n(e)},s9n=(e,t)=>{let r;if(_$(e))return yS;const a=e.state;return t<0?(r=0,t=-t):(r=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?yS:(a.window!==null&&a.wbits!==t&&(a.window=null),a.wrap=r,a.wbits=t,a9n(e))},o9n=(e,t)=>{if(!e)return yS;const r=new DXr;e.state=r,r.strm=e,r.window=null,r.mode=FCe;const a=s9n(e,t);return a!==kF&&(e.state=null),a},MXr=e=>o9n(e,LXr);let Y1n=!0,yQe,vQe;const PXr=e=>{if(Y1n){yQe=new Int32Array(512),vQe=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(tse(ZOn,e.lens,0,288,yQe,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;tse(JOn,e.lens,0,32,vQe,0,e.work,{bits:5}),Y1n=!1}e.lencode=yQe,e.lenbits=9,e.distcode=vQe,e.distbits=5},l9n=(e,t,r,a)=>{let s;const o=e.state;return o.window===null&&(o.wsize=1<=o.wsize?(o.window.set(t.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):(s=o.wsize-o.wnext,s>a&&(s=a),o.window.set(t.subarray(r-a,r-a+s),o.wnext),a-=s,a?(o.window.set(t.subarray(r-a,r),0),o.wnext=a,o.whave=o.wsize):(o.wnext+=s,o.wnext===o.wsize&&(o.wnext=0),o.whave{let r,a,s,o,u,h,f,p,m,b,_,w,S,C,A=0,k,I,N,L,P,M,F,U;const $=new Uint8Array(4);let G,B;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(_$(e)||!e.output||!e.input&&e.avail_in!==0)return yS;r=e.state,r.mode===H6&&(r.mode=gQe),u=e.next_out,s=e.output,f=e.avail_out,o=e.next_in,a=e.input,h=e.avail_in,p=r.hold,m=r.bits,b=h,_=f,U=kF;e:for(;;)switch(r.mode){case FCe:if(r.wrap===0){r.mode=gQe;break}for(;m<16;){if(h===0)break e;h--,p+=a[o++]<>>8&255,r.check=wg(r.check,$,2,0),p=0,m=0,r.mode=S1n;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((p&255)<<8)+(p>>8))%31){e.msg="incorrect header check",r.mode=Gd;break}if((p&15)!==x1n){e.msg="unknown compression method",r.mode=Gd;break}if(p>>>=4,m-=4,F=(p&15)+8,r.wbits===0&&(r.wbits=F),F>15||F>r.wbits){e.msg="invalid window size",r.mode=Gd;break}r.dmax=1<>8&1),r.flags&512&&r.wrap&4&&($[0]=p&255,$[1]=p>>>8&255,r.check=wg(r.check,$,2,0)),p=0,m=0,r.mode=T1n;case T1n:for(;m<32;){if(h===0)break e;h--,p+=a[o++]<>>8&255,$[2]=p>>>16&255,$[3]=p>>>24&255,r.check=wg(r.check,$,4,0)),p=0,m=0,r.mode=C1n;case C1n:for(;m<16;){if(h===0)break e;h--,p+=a[o++]<>8),r.flags&512&&r.wrap&4&&($[0]=p&255,$[1]=p>>>8&255,r.check=wg(r.check,$,2,0)),p=0,m=0,r.mode=A1n;case A1n:if(r.flags&1024){for(;m<16;){if(h===0)break e;h--,p+=a[o++]<>>8&255,r.check=wg(r.check,$,2,0)),p=0,m=0}else r.head&&(r.head.extra=null);r.mode=k1n;case k1n:if(r.flags&1024&&(w=r.length,w>h&&(w=h),w&&(r.head&&(F=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(a.subarray(o,o+w),F)),r.flags&512&&r.wrap&4&&(r.check=wg(r.check,a,w,o)),h-=w,o+=w,r.length-=w),r.length))break e;r.length=0,r.mode=R1n;case R1n:if(r.flags&2048){if(h===0)break e;w=0;do F=a[o+w++],r.head&&F&&r.length<65536&&(r.head.name+=String.fromCharCode(F));while(F&&w>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=H6;break;case O1n:for(;m<32;){if(h===0)break e;h--,p+=a[o++]<>>=m&7,m-=m&7,r.mode=bQe;break}for(;m<3;){if(h===0)break e;h--,p+=a[o++]<>>=1,m-=1,p&3){case 0:r.mode=L1n;break;case 1:if(PXr(r),r.mode=M_e,t===D_e){p>>>=2,m-=2;break e}break;case 2:r.mode=M1n;break;case 3:e.msg="invalid block type",r.mode=Gd}p>>>=2,m-=2;break;case L1n:for(p>>>=m&7,m-=m&7;m<32;){if(h===0)break e;h--,p+=a[o++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=Gd;break}if(r.length=p&65535,p=0,m=0,r.mode=mQe,t===D_e)break e;case mQe:r.mode=D1n;case D1n:if(w=r.length,w){if(w>h&&(w=h),w>f&&(w=f),w===0)break e;s.set(a.subarray(o,o+w),u),h-=w,o+=w,f-=w,u+=w,r.length-=w;break}r.mode=H6;break;case M1n:for(;m<14;){if(h===0)break e;h--,p+=a[o++]<>>=5,m-=5,r.ndist=(p&31)+1,p>>>=5,m-=5,r.ncode=(p&15)+4,p>>>=4,m-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Gd;break}r.have=0,r.mode=P1n;case P1n:for(;r.have>>=3,m-=3}for(;r.have<19;)r.lens[Z[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,G={bits:r.lenbits},U=tse(TXr,r.lens,0,19,r.lencode,0,r.work,G),r.lenbits=G.bits,U){e.msg="invalid code lengths set",r.mode=Gd;break}r.have=0,r.mode=B1n;case B1n:for(;r.have>>24,I=A>>>16&255,N=A&65535,!(k<=m);){if(h===0)break e;h--,p+=a[o++]<>>=k,m-=k,r.lens[r.have++]=N;else{if(N===16){for(B=k+2;m>>=k,m-=k,r.have===0){e.msg="invalid bit length repeat",r.mode=Gd;break}F=r.lens[r.have-1],w=3+(p&3),p>>>=2,m-=2}else if(N===17){for(B=k+3;m>>=k,m-=k,F=0,w=3+(p&7),p>>>=3,m-=3}else{for(B=k+7;m>>=k,m-=k,F=0,w=11+(p&127),p>>>=7,m-=7}if(r.have+w>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=Gd;break}for(;w--;)r.lens[r.have++]=F}}if(r.mode===Gd)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=Gd;break}if(r.lenbits=9,G={bits:r.lenbits},U=tse(ZOn,r.lens,0,r.nlen,r.lencode,0,r.work,G),r.lenbits=G.bits,U){e.msg="invalid literal/lengths set",r.mode=Gd;break}if(r.distbits=6,r.distcode=r.distdyn,G={bits:r.distbits},U=tse(JOn,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,G),r.distbits=G.bits,U){e.msg="invalid distances set",r.mode=Gd;break}if(r.mode=M_e,t===D_e)break e;case M_e:r.mode=P_e;case P_e:if(h>=6&&f>=258){e.next_out=u,e.avail_out=f,e.next_in=o,e.avail_in=h,r.hold=p,r.bits=m,vXr(e,_),u=e.next_out,s=e.output,f=e.avail_out,o=e.next_in,a=e.input,h=e.avail_in,p=r.hold,m=r.bits,r.mode===H6&&(r.back=-1);break}for(r.back=0;A=r.lencode[p&(1<>>24,I=A>>>16&255,N=A&65535,!(k<=m);){if(h===0)break e;h--,p+=a[o++]<>L)],k=A>>>24,I=A>>>16&255,N=A&65535,!(L+k<=m);){if(h===0)break e;h--,p+=a[o++]<>>=L,m-=L,r.back+=L}if(p>>>=k,m-=k,r.back+=k,r.length=N,I===0){r.mode=G1n;break}if(I&32){r.back=-1,r.mode=H6;break}if(I&64){e.msg="invalid literal/length code",r.mode=Gd;break}r.extra=I&15,r.mode=F1n;case F1n:if(r.extra){for(B=r.extra;m>>=r.extra,m-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=$1n;case $1n:for(;A=r.distcode[p&(1<>>24,I=A>>>16&255,N=A&65535,!(k<=m);){if(h===0)break e;h--,p+=a[o++]<>L)],k=A>>>24,I=A>>>16&255,N=A&65535,!(L+k<=m);){if(h===0)break e;h--,p+=a[o++]<>>=L,m-=L,r.back+=L}if(p>>>=k,m-=k,r.back+=k,I&64){e.msg="invalid distance code",r.mode=Gd;break}r.offset=N,r.extra=I&15,r.mode=U1n;case U1n:if(r.extra){for(B=r.extra;m>>=r.extra,m-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=Gd;break}r.mode=z1n;case z1n:if(f===0)break e;if(w=_-f,r.offset>w){if(w=r.offset-w,w>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=Gd;break}w>r.wnext?(w-=r.wnext,S=r.wsize-w):S=r.wnext-w,w>r.length&&(w=r.length),C=r.window}else C=s,S=u-r.offset,w=r.length;w>f&&(w=f),f-=w,r.length-=w;do s[u++]=C[S++];while(--w);r.length===0&&(r.mode=P_e);break;case G1n:if(f===0)break e;s[u++]=r.length,f--,r.mode=P_e;break;case bQe:if(r.wrap){for(;m<32;){if(h===0)break e;h--,p|=a[o++]<{if(_$(e))return yS;let t=e.state;return t.window&&(t.window=null),e.state=null,kF},$Xr=(e,t)=>{if(_$(e))return yS;const r=e.state;return r.wrap&2?(r.head=t,t.done=!1,kF):yS},UXr=(e,t)=>{const r=t.length;let a,s,o;return _$(e)||(a=e.state,a.wrap!==0&&a.mode!==ZSe)?yS:a.mode===ZSe&&(s=1,s=aoe(s,t,r,0),s!==a.check)?e9n:(o=l9n(e,t,r,r),o?(a.mode=n9n,t9n):(a.havedict=1,kF))};var zXr=a9n,GXr=s9n,qXr=i9n,HXr=MXr,VXr=o9n,YXr=BXr,jXr=FXr,WXr=$Xr,KXr=UXr,XXr="pako inflate (from Nodeca project)",h7={inflateReset:zXr,inflateReset2:GXr,inflateResetKeep:qXr,inflateInit:HXr,inflateInit2:VXr,inflate:YXr,inflateEnd:jXr,inflateGetHeader:WXr,inflateSetDictionary:KXr,inflateInfo:XXr};function QXr(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var ZXr=QXr;const c9n=Object.prototype.toString,{Z_NO_FLUSH:JXr,Z_FINISH:eQr,Z_OK:loe,Z_STREAM_END:_Qe,Z_NEED_DICT:wQe,Z_STREAM_ERROR:tQr,Z_DATA_ERROR:j1n,Z_MEM_ERROR:nQr}=DCe;function $Ce(e){this.options=PCe.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new XOn,this.strm.avail_out=0;let r=h7.inflateInit2(this.strm,t.windowBits);if(r!==loe)throw new Error(CF[r]);if(this.header=new ZXr,h7.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=ooe.string2buf(t.dictionary):c9n.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=h7.inflateSetDictionary(this.strm,t.dictionary),r!==loe)))throw new Error(CF[r])}$Ce.prototype.push=function(e,t){const r=this.strm,a=this.options.chunkSize,s=this.options.dictionary;let o,u,h;if(this.ended)return!1;for(t===~~t?u=t:u=t===!0?eQr:JXr,c9n.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(a),r.next_out=0,r.avail_out=a),o=h7.inflate(r,u),o===wQe&&s&&(o=h7.inflateSetDictionary(r,s),o===loe?o=h7.inflate(r,u):o===j1n&&(o=wQe));r.avail_in>0&&o===_Qe&&r.state.wrap>0&&e[r.next_in]!==0;)h7.inflateReset(r),o=h7.inflate(r,u);switch(o){case tQr:case j1n:case wQe:case nQr:return this.onEnd(o),this.ended=!0,!1}if(h=r.avail_out,r.next_out&&(r.avail_out===0||o===_Qe))if(this.options.to==="string"){let f=ooe.utf8border(r.output,r.next_out),p=r.next_out-f,m=ooe.buf2string(r.output,f);r.next_out=p,r.avail_out=a-p,p&&r.output.set(r.output.subarray(f,f+p),0),this.onData(m)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(o===loe&&h===0)){if(o===_Qe)return o=h7.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(r.avail_in===0)break}}return!0};$Ce.prototype.onData=function(e){this.chunks.push(e)};$Ce.prototype.onEnd=function(e){e===loe&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=PCe.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function rQr(e,t){const r=new $Ce(t);if(r.push(e),r.err)throw r.msg||CF[r.err];return r.result}function iQr(e,t){return t=t||{},t.raw=!0,rQr(e,t)}var aQr=iQr,sQr={inflateRaw:aQr};const{deflateRaw:oQr}=bXr,{inflateRaw:lQr}=sQr;var DTa=oQr,MTa=lQr;function f0t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var w$=f0t();function u9n(e){w$=e}var nse={exec:()=>null};function zu(e,t=""){let r=typeof e=="string"?e:e.source;const a={replace:(s,o)=>{let u=typeof o=="string"?o:o.source;return u=u.replace(Xy.caret,"$1"),r=r.replace(s,u),a},getRegex:()=>new RegExp(r,t)};return a}var Xy={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^
    /i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},cQr=/^(?:[ \t]*(?:\n|$))+/,uQr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,hQr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Jle=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,dQr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,p0t=/(?:[*+-]|\d{1,9}[.)])/,h9n=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,d9n=zu(h9n).replace(/bull/g,p0t).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),fQr=zu(h9n).replace(/bull/g,p0t).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),g0t=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,pQr=/^[^\n]+/,m0t=/(?!\s*\])(?:\\.|[^\[\]\\])+/,gQr=zu(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",m0t).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),mQr=zu(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,p0t).getRegex(),UCe="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",b0t=/|$))/,bQr=zu("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",b0t).replace("tag",UCe).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),f9n=zu(g0t).replace("hr",Jle).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",UCe).getRegex(),yQr=zu(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",f9n).getRegex(),y0t={blockquote:yQr,code:uQr,def:gQr,fences:hQr,heading:dQr,hr:Jle,html:bQr,lheading:d9n,list:mQr,newline:cQr,paragraph:f9n,table:nse,text:pQr},W1n=zu("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Jle).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",UCe).getRegex(),vQr={...y0t,lheading:fQr,table:W1n,paragraph:zu(g0t).replace("hr",Jle).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",W1n).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",UCe).getRegex()},_Qr={...y0t,html:zu(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",b0t).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:nse,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:zu(g0t).replace("hr",Jle).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",d9n).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},wQr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,EQr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,p9n=/^( {2,}|\\)\n(?!\s*$)/,xQr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,b9n=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,kQr=zu(b9n,"u").replace(/punct/g,zCe).getRegex(),RQr=zu(b9n,"u").replace(/punct/g,m9n).getRegex(),y9n="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",IQr=zu(y9n,"gu").replace(/notPunctSpace/g,g9n).replace(/punctSpace/g,v0t).replace(/punct/g,zCe).getRegex(),NQr=zu(y9n,"gu").replace(/notPunctSpace/g,CQr).replace(/punctSpace/g,TQr).replace(/punct/g,m9n).getRegex(),OQr=zu("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,g9n).replace(/punctSpace/g,v0t).replace(/punct/g,zCe).getRegex(),LQr=zu(/\\(punct)/,"gu").replace(/punct/g,zCe).getRegex(),DQr=zu(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),MQr=zu(b0t).replace("(?:-->|$)","-->").getRegex(),PQr=zu("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",MQr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),JSe=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,BQr=zu(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",JSe).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),v9n=zu(/^!?\[(label)\]\[(ref)\]/).replace("label",JSe).replace("ref",m0t).getRegex(),_9n=zu(/^!?\[(ref)\](?:\[\])?/).replace("ref",m0t).getRegex(),FQr=zu("reflink|nolink(?!\\()","g").replace("reflink",v9n).replace("nolink",_9n).getRegex(),_0t={_backpedal:nse,anyPunctuation:LQr,autolink:DQr,blockSkip:AQr,br:p9n,code:EQr,del:nse,emStrongLDelim:kQr,emStrongRDelimAst:IQr,emStrongRDelimUnd:OQr,escape:wQr,link:BQr,nolink:_9n,punctuation:SQr,reflink:v9n,reflinkSearch:FQr,tag:PQr,text:xQr,url:nse},$Qr={..._0t,link:zu(/^!?\[(label)\]\((.*?)\)/).replace("label",JSe).getRegex(),reflink:zu(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",JSe).getRegex()},iot={..._0t,emStrongRDelimAst:NQr,emStrongLDelim:RQr,url:zu(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},K1n=e=>zQr[e];function vC(e,t){if(t){if(Xy.escapeTest.test(e))return e.replace(Xy.escapeReplace,K1n)}else if(Xy.escapeTestNoEncode.test(e))return e.replace(Xy.escapeReplaceNoEncode,K1n);return e}function X1n(e){try{e=encodeURI(e).replace(Xy.percentDecode,"%")}catch{return null}return e}function Q1n(e,t){var o;const r=e.replace(Xy.findPipe,(u,h,f)=>{let p=!1,m=h;for(;--m>=0&&f[m]==="\\";)p=!p;return p?"|":" |"}),a=r.split(Xy.splitPipe);let s=0;if(a[0].trim()||a.shift(),a.length>0&&!((o=a.at(-1))!=null&&o.trim())&&a.pop(),t)if(a.length>t)a.splice(t);else for(;a.length0?-2:-1}function Z1n(e,t,r,a,s){const o=t.href,u=t.title||null,h=e[1].replace(s.other.outputLinkReplace,"$1");a.state.inLink=!0;const f={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:o,title:u,text:h,tokens:a.inlineTokens(h)};return a.state.inLink=!1,f}function qQr(e,t,r){const a=e.match(r.other.indentCodeCompensation);if(a===null)return t;const s=a[1];return t.split(` `).map(o=>{const u=o.match(r.other.beginningSpace);if(u===null)return o;const[h]=u;return h.length>=s.length?o.slice(s.length):o}).join(` `)}var e4e=class{constructor(e){Gi(this,"options");Gi(this,"rules");Gi(this,"lexer");this.options=e||w$}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const r=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Are(r,` `)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],a=qQr(r,t[3]||"",this.rules);return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:a}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(this.rules.other.endingHash.test(r)){const a=Are(r,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(r=a.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Are(t[0],` `)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let r=Are(t[0],` `).split(` `),a="",s="";const o=[];for(;r.length>0;){let u=!1;const h=[];let f;for(f=0;f1,s={type:"list",raw:"",ordered:a,start:a?+r.slice(0,-1):"",loose:!1,items:[]};r=a?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=a?r:"[*+-]");const o=this.rules.other.listItemRegex(r);let u=!1;for(;e;){let f=!1,p="",m="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;p=t[0],e=e.substring(p.length);let b=t[2].split(` `,1)[0].replace(this.rules.other.listReplaceTabs,k=>" ".repeat(3*k.length)),_=e.split(` `,1)[0],w=!b.trim(),S=0;if(this.options.pedantic?(S=2,m=b.trimStart()):w?S=t[1].length+1:(S=t[2].search(this.rules.other.nonSpaceChar),S=S>4?1:S,m=b.slice(S),S+=t[1].length),w&&this.rules.other.blankLine.test(_)&&(p+=_+` `,e=e.substring(_.length+1),f=!0),!f){const k=this.rules.other.nextBulletRegex(S),I=this.rules.other.hrRegex(S),N=this.rules.other.fencesBeginRegex(S),L=this.rules.other.headingBeginRegex(S),P=this.rules.other.htmlBeginRegex(S);for(;e;){const M=e.split(` `,1)[0];let F;if(_=M,this.options.pedantic?(_=_.replace(this.rules.other.listReplaceNesting," "),F=_):F=_.replace(this.rules.other.tabCharGlobal," "),N.test(_)||L.test(_)||P.test(_)||k.test(_)||I.test(_))break;if(F.search(this.rules.other.nonSpaceChar)>=S||!_.trim())m+=` `+F.slice(S);else{if(w||b.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||N.test(b)||L.test(b)||I.test(b))break;m+=` `+_}!w&&!_.trim()&&(w=!0),p+=M+` `,e=e.substring(M.length+1),b=F.slice(S)}}s.loose||(u?s.loose=!0:this.rules.other.doubleBlankLine.test(p)&&(u=!0));let C=null,A;this.options.gfm&&(C=this.rules.other.listIsTask.exec(m),C&&(A=C[0]!=="[ ] ",m=m.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:p,task:!!C,checked:A,loose:!1,text:m,tokens:[]}),s.raw+=p}const h=s.items.at(-1);if(h)h.raw=h.raw.trimEnd(),h.text=h.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let f=0;fb.type==="space"),m=p.length>0&&p.some(b=>this.rules.other.anyLine.test(b.raw));s.loose=m}if(s.loose)for(let f=0;f({text:f,tokens:this.lexer.inline(f),header:!1,align:o.align[p]})));return o}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const r=t[1].charAt(t[1].length-1)===` `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const o=Are(r.slice(0,-1),"\\");if((r.length-o.length)%2===0)return}else{const o=GQr(t[2],"()");if(o===-2)return;if(o>-1){const h=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,h).trim(),t[3]=""}}let a=t[2],s="";if(this.options.pedantic){const o=this.rules.other.pedanticHrefTitle.exec(a);o&&(a=o[1],s=o[3])}else s=t[3]?t[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?a=a.slice(1):a=a.slice(1,-1)),Z1n(t,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){const a=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=t[a.toLowerCase()];if(!s){const o=r[0].charAt(0);return{type:"text",raw:o,text:o}}return Z1n(r,s,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let a=this.rules.inline.emStrongLDelim.exec(e);if(!a||a[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(a[1]||a[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const o=[...a[0]].length-1;let u,h,f=o,p=0;const m=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,t=t.slice(-1*e.length+o);(a=m.exec(t))!=null;){if(u=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!u)continue;if(h=[...u].length,a[3]||a[4]){f+=h;continue}else if((a[5]||a[6])&&o%3&&!((o+h)%3)){p+=h;continue}if(f-=h,f>0)continue;h=Math.min(h,h+f+p);const b=[...a[0]][0].length,_=e.slice(0,o+a.index+b+h);if(Math.min(o,h)%2){const S=_.slice(1,-1);return{type:"em",raw:_,text:S,tokens:this.lexer.inlineTokens(S)}}const w=_.slice(2,-2);return{type:"strong",raw:_,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," ");const a=this.rules.other.nonSpaceChar.test(r),s=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return a&&s&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let r,a;return t[2]==="@"?(r=t[1],a="mailto:"+r):(r=t[1],a=r),{type:"link",raw:t[0],text:r,href:a,tokens:[{type:"text",raw:r,text:r}]}}}url(e){var r;let t;if(t=this.rules.inline.url.exec(e)){let a,s;if(t[2]==="@")a=t[0],s="mailto:"+a;else{let o;do o=t[0],t[0]=((r=this.rules.inline._backpedal.exec(t[0]))==null?void 0:r[0])??"";while(o!==t[0]);a=t[0],t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const r=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:r}}}},x7=class aot{constructor(t){Gi(this,"tokens");Gi(this,"options");Gi(this,"state");Gi(this,"tokenizer");Gi(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||w$,this.options.tokenizer=this.options.tokenizer||new e4e,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={other:Xy,block:B_e.normal,inline:Cre.normal};this.options.pedantic?(r.block=B_e.pedantic,r.inline=Cre.pedantic):this.options.gfm&&(r.block=B_e.gfm,this.options.breaks?r.inline=Cre.breaks:r.inline=Cre.gfm),this.tokenizer.rules=r}static get rules(){return{block:B_e,inline:Cre}}static lex(t,r){return new aot(r).lex(t)}static lexInline(t,r){return new aot(r).inlineTokens(t)}lex(t){t=t.replace(Xy.carriageReturn,` `),this.blockTokens(t,this.tokens);for(let r=0;r(h=p.call({lexer:this},t,r))?(t=t.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.space(t)){t=t.substring(h.raw.length);const p=r.at(-1);h.raw.length===1&&p!==void 0?p.raw+=` `:r.push(h);continue}if(h=this.tokenizer.code(t)){t=t.substring(h.raw.length);const p=r.at(-1);(p==null?void 0:p.type)==="paragraph"||(p==null?void 0:p.type)==="text"?(p.raw+=` `+h.raw,p.text+=` `+h.text,this.inlineQueue.at(-1).src=p.text):r.push(h);continue}if(h=this.tokenizer.fences(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.heading(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.hr(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.blockquote(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.list(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.html(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.def(t)){t=t.substring(h.raw.length);const p=r.at(-1);(p==null?void 0:p.type)==="paragraph"||(p==null?void 0:p.type)==="text"?(p.raw+=` `+h.raw,p.text+=` `+h.raw,this.inlineQueue.at(-1).src=p.text):this.tokens.links[h.tag]||(this.tokens.links[h.tag]={href:h.href,title:h.title});continue}if(h=this.tokenizer.table(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.lheading(t)){t=t.substring(h.raw.length),r.push(h);continue}let f=t;if((u=this.options.extensions)!=null&&u.startBlock){let p=1/0;const m=t.slice(1);let b;this.options.extensions.startBlock.forEach(_=>{b=_.call({lexer:this},m),typeof b=="number"&&b>=0&&(p=Math.min(p,b))}),p<1/0&&p>=0&&(f=t.substring(0,p+1))}if(this.state.top&&(h=this.tokenizer.paragraph(f))){const p=r.at(-1);a&&(p==null?void 0:p.type)==="paragraph"?(p.raw+=` `+h.raw,p.text+=` `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):r.push(h),a=f.length!==t.length,t=t.substring(h.raw.length);continue}if(h=this.tokenizer.text(t)){t=t.substring(h.raw.length);const p=r.at(-1);(p==null?void 0:p.type)==="text"?(p.raw+=` `+h.raw,p.text+=` `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):r.push(h);continue}if(t){const p="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var h,f,p;let a=t,s=null;if(this.tokens.links){const m=Object.keys(this.tokens.links);if(m.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)m.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,s.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(s=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let o=!1,u="";for(;t;){o||(u=""),o=!1;let m;if((f=(h=this.options.extensions)==null?void 0:h.inline)!=null&&f.some(_=>(m=_.call({lexer:this},t,r))?(t=t.substring(m.raw.length),r.push(m),!0):!1))continue;if(m=this.tokenizer.escape(t)){t=t.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.tag(t)){t=t.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.link(t)){t=t.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(m.raw.length);const _=r.at(-1);m.type==="text"&&(_==null?void 0:_.type)==="text"?(_.raw+=m.raw,_.text+=m.text):r.push(m);continue}if(m=this.tokenizer.emStrong(t,a,u)){t=t.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.codespan(t)){t=t.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.br(t)){t=t.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.del(t)){t=t.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.autolink(t)){t=t.substring(m.raw.length),r.push(m);continue}if(!this.state.inLink&&(m=this.tokenizer.url(t))){t=t.substring(m.raw.length),r.push(m);continue}let b=t;if((p=this.options.extensions)!=null&&p.startInline){let _=1/0;const w=t.slice(1);let S;this.options.extensions.startInline.forEach(C=>{S=C.call({lexer:this},w),typeof S=="number"&&S>=0&&(_=Math.min(_,S))}),_<1/0&&_>=0&&(b=t.substring(0,_+1))}if(m=this.tokenizer.inlineText(b)){t=t.substring(m.raw.length),m.raw.slice(-1)!=="_"&&(u=m.raw.slice(-1)),o=!0;const _=r.at(-1);(_==null?void 0:_.type)==="text"?(_.raw+=m.raw,_.text+=m.text):r.push(m);continue}if(t){const _="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(_);break}else throw new Error(_)}}return r}},t4e=class{constructor(e){Gi(this,"options");Gi(this,"parser");this.options=e||w$}space(e){return""}code({text:e,lang:t,escaped:r}){var o;const a=(o=(t||"").match(Xy.notSpaceStart))==null?void 0:o[0],s=e.replace(Xy.endingNewline,"")+` `;return a?'
    '+(r?s:vC(s,!0))+`
    `:"
    "+(r?s:vC(s,!0))+`
    `}blockquote({tokens:e}){return`
    ${this.parser.parse(e)}
    `}html({text:e}){return e}heading({tokens:e,depth:t}){return`${this.parser.parseInline(e)} `}hr(e){return`
    `}list(e){const t=e.ordered,r=e.start;let a="";for(let u=0;u `+a+" `}listitem(e){var r;let t="";if(e.task){const a=this.checkbox({checked:!!e.checked});e.loose?((r=e.tokens[0])==null?void 0:r.type)==="paragraph"?(e.tokens[0].text=a+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=a+" "+vC(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:a+" ",text:a+" ",escaped:!0}):t+=a+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`
  • ${t}
  • `}checkbox({checked:e}){return"'}paragraph({tokens:e}){return`

    ${this.parser.parseInline(e)}

    `}table(e){let t="",r="";for(let s=0;s${a}`),` `+t+` `+a+`
    `}tablerow({text:e}){return` ${e} `}tablecell(e){const t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+` `}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${vC(e,!0)}`}br(e){return"
    "}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:t,tokens:r}){const a=this.parser.parseInline(r),s=X1n(e);if(s===null)return a;e=s;let o='
    ",o}image({href:e,title:t,text:r,tokens:a}){a&&(r=this.parser.parseInline(a,this.parser.textRenderer));const s=X1n(e);if(s===null)return vC(r);e=s;let o=`${r}{const f=u[h].flat(1/0);r=r.concat(this.walkTokens(f,t))}):u.tokens&&(r=r.concat(this.walkTokens(u.tokens,t)))}}return r}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{const a={...r};if(a.async=this.defaults.async||a.async||!1,r.extensions&&(r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const o=t.renderers[s.name];o?t.renderers[s.name]=function(...u){let h=s.renderer.apply(this,u);return h===!1&&(h=o.apply(this,u)),h}:t.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=t[s.level];o?o.unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),a.extensions=t),r.renderer){const s=this.defaults.renderer||new t4e(this.defaults);for(const o in r.renderer){if(!(o in s))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const u=o,h=r.renderer[u],f=s[u];s[u]=(...p)=>{let m=h.apply(s,p);return m===!1&&(m=f.apply(s,p)),m||""}}a.renderer=s}if(r.tokenizer){const s=this.defaults.tokenizer||new e4e(this.defaults);for(const o in r.tokenizer){if(!(o in s))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const u=o,h=r.tokenizer[u],f=s[u];s[u]=(...p)=>{let m=h.apply(s,p);return m===!1&&(m=f.apply(s,p)),m}}a.tokenizer=s}if(r.hooks){const s=this.defaults.hooks||new jEe;for(const o in r.hooks){if(!(o in s))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;const u=o,h=r.hooks[u],f=s[u];jEe.passThroughHooks.has(o)?s[u]=p=>{if(this.defaults.async)return Promise.resolve(h.call(s,p)).then(b=>f.call(s,b));const m=h.call(s,p);return f.call(s,m)}:s[u]=(...p)=>{let m=h.apply(s,p);return m===!1&&(m=f.apply(s,p)),m}}a.hooks=s}if(r.walkTokens){const s=this.defaults.walkTokens,o=r.walkTokens;a.walkTokens=function(u){let h=[];return h.push(o.call(this,u)),s&&(h=h.concat(s.call(this,u))),h}}this.defaults={...this.defaults,...a}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return x7.lex(e,t??this.defaults)}parser(e,t){return S7.parse(e,t??this.defaults)}parseMarkdown(e){return(r,a)=>{const s={...a},o={...this.defaults,...s},u=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return u(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=e);const h=o.hooks?o.hooks.provideLexer():e?x7.lex:x7.lexInline,f=o.hooks?o.hooks.provideParser():e?S7.parse:S7.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(r):r).then(p=>h(p,o)).then(p=>o.hooks?o.hooks.processAllTokens(p):p).then(p=>o.walkTokens?Promise.all(this.walkTokens(p,o.walkTokens)).then(()=>p):p).then(p=>f(p,o)).then(p=>o.hooks?o.hooks.postprocess(p):p).catch(u);try{o.hooks&&(r=o.hooks.preprocess(r));let p=h(r,o);o.hooks&&(p=o.hooks.processAllTokens(p)),o.walkTokens&&this.walkTokens(p,o.walkTokens);let m=f(p,o);return o.hooks&&(m=o.hooks.postprocess(m)),m}catch(p){return u(p)}}}onError(e,t){return r=>{if(r.message+=` Please report this to https://github.com/markedjs/marked.`,e){const a="

    An error occurred:

    "+vC(r.message+"",!0)+"
    ";return t?Promise.resolve(a):a}if(t)return Promise.reject(r);throw r}}},RF=new HQr;function _h(e,t){return RF.parse(e,t)}_h.options=_h.setOptions=function(e){return RF.setOptions(e),_h.defaults=RF.defaults,u9n(_h.defaults),_h};_h.getDefaults=f0t;_h.defaults=w$;_h.use=function(...e){return RF.use(...e),_h.defaults=RF.defaults,u9n(_h.defaults),_h};_h.walkTokens=function(e,t){return RF.walkTokens(e,t)};_h.parseInline=RF.parseInline;_h.Parser=S7;_h.parser=S7.parse;_h.Renderer=t4e;_h.TextRenderer=w0t;_h.Lexer=x7;_h.lexer=x7.lex;_h.Tokenizer=e4e;_h.Hooks=jEe;_h.parse=_h;_h.options;_h.setOptions;_h.use;_h.walkTokens;_h.parseInline;S7.parse;x7.lex;/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:w9n,setPrototypeOf:J1n,isFrozen:VQr,getPrototypeOf:YQr,getOwnPropertyDescriptor:jQr}=Object;let{freeze:sv,seal:vS,create:oot}=Object,{apply:lot,construct:cot}=typeof Reflect<"u"&&Reflect;sv||(sv=function(t){return t});vS||(vS=function(t){return t});lot||(lot=function(t,r){for(var a=arguments.length,s=new Array(a>2?a-2:0),o=2;o1?r-1:0),s=1;s1?r-1:0),s=1;s2&&arguments[2]!==void 0?arguments[2]:WEe;J1n&&J1n(e,null);let a=t.length;for(;a--;){let s=t[a];if(typeof s=="string"){const o=r(s);o!==s&&(VQr(t)||(t[a]=o),s=o)}e[s]=!0}return e}function JQr(e){for(let t=0;t/gm),iZr=vS(/\$\{[\w\W]*/gm),aZr=vS(/^data-[\-\w.\u00B7-\uFFFF]+$/),sZr=vS(/^aria-[\-\w]+$/),E9n=vS(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),oZr=vS(/^(?:\w+script|data):/i),lZr=vS(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),x9n=vS(/^html$/i),cZr=vS(/^[a-z][.\w]*(-[.\w]+)+$/i);var apn=Object.freeze({__proto__:null,ARIA_ATTR:sZr,ATTR_WHITESPACE:lZr,CUSTOM_ELEMENT:cZr,DATA_ATTR:aZr,DOCTYPE_NAME:x9n,ERB_EXPR:rZr,IS_ALLOWED_URI:E9n,IS_SCRIPT_OR_DATA:oZr,MUSTACHE_EXPR:nZr,TMPLIT_EXPR:iZr});const Ore={element:1,text:3,progressingInstruction:7,comment:8,document:9},uZr=function(){return typeof window>"u"?null:window},hZr=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let a=null;const s="data-tt-policy-suffix";r&&r.hasAttribute(s)&&(a=r.getAttribute(s));const o="dompurify"+(a?"#"+a:"");try{return t.createPolicy(o,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},spn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function S9n(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uZr();const t=Pt=>S9n(Pt);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==Ore.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const a=r,s=a.currentScript,{DocumentFragment:o,HTMLTemplateElement:u,Node:h,Element:f,NodeFilter:p,NamedNodeMap:m=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:b,DOMParser:_,trustedTypes:w}=e,S=f.prototype,C=Nre(S,"cloneNode"),A=Nre(S,"remove"),k=Nre(S,"nextSibling"),I=Nre(S,"childNodes"),N=Nre(S,"parentNode");if(typeof u=="function"){const Pt=r.createElement("template");Pt.content&&Pt.content.ownerDocument&&(r=Pt.content.ownerDocument)}let L,P="";const{implementation:M,createNodeIterator:F,createDocumentFragment:U,getElementsByTagName:$}=r,{importNode:G}=a;let B=spn();t.isSupported=typeof w9n=="function"&&typeof N=="function"&&M&&M.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Z,ERB_EXPR:z,TMPLIT_EXPR:Y,DATA_ATTR:W,ARIA_ATTR:Q,IS_SCRIPT_OR_DATA:V,ATTR_WHITESPACE:j,CUSTOM_ELEMENT:ee}=apn;let{IS_ALLOWED_URI:te}=apn,ne=null;const se=Jl({},[...tpn,...SQe,...TQe,...CQe,...npn]);let ie=null;const ge=Jl({},[...rpn,...AQe,...ipn,...$_e]);let ce=Object.seal(oot(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,ve=null;const De=Object.seal(oot(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ye=!0,Ee=!0,he=!1,we=!0,Ce=!1,Ie=!0,Le=!1,Fe=!1,Ve=!1,Oe=!1,Dt=!1,ot=!1,sn=!0,Kt=!1;const Ft="user-content-";let Je=!0,ht=!1,et={},qe=null;const He=Jl({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ge=null;const Ye=Jl({},["audio","video","img","source","image","track"]);let Ae=null;const Xe=Jl({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml";let mt=Ke,lt=!1,$t=null;const Ut=Jl({},[fe,Qe,Ke],EQe);let Jt=Jl({},["mi","mo","mn","ms","mtext"]),wn=Jl({},["annotation-xml"]);const Vn=Jl({},["title","style","font","a","script"]);let Wn=null;const Dn=["application/xhtml+xml","text/html"],zn="text/html";let vn=null,Cn=null;const Ar=r.createElement("form"),ur=function(St){return St instanceof RegExp||St instanceof Function},On=function(){let St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Cn&&Cn===St)){if((!St||typeof St!="object")&&(St={}),St=_C(St),Wn=Dn.indexOf(St.PARSER_MEDIA_TYPE)===-1?zn:St.PARSER_MEDIA_TYPE,vn=Wn==="application/xhtml+xml"?EQe:WEe,ne=x3(St,"ALLOWED_TAGS")?Jl({},St.ALLOWED_TAGS,vn):se,ie=x3(St,"ALLOWED_ATTR")?Jl({},St.ALLOWED_ATTR,vn):ge,$t=x3(St,"ALLOWED_NAMESPACES")?Jl({},St.ALLOWED_NAMESPACES,EQe):Ut,Ae=x3(St,"ADD_URI_SAFE_ATTR")?Jl(_C(Xe),St.ADD_URI_SAFE_ATTR,vn):Xe,Ge=x3(St,"ADD_DATA_URI_TAGS")?Jl(_C(Ye),St.ADD_DATA_URI_TAGS,vn):Ye,qe=x3(St,"FORBID_CONTENTS")?Jl({},St.FORBID_CONTENTS,vn):He,be=x3(St,"FORBID_TAGS")?Jl({},St.FORBID_TAGS,vn):_C({}),ve=x3(St,"FORBID_ATTR")?Jl({},St.FORBID_ATTR,vn):_C({}),et=x3(St,"USE_PROFILES")?St.USE_PROFILES:!1,ye=St.ALLOW_ARIA_ATTR!==!1,Ee=St.ALLOW_DATA_ATTR!==!1,he=St.ALLOW_UNKNOWN_PROTOCOLS||!1,we=St.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ce=St.SAFE_FOR_TEMPLATES||!1,Ie=St.SAFE_FOR_XML!==!1,Le=St.WHOLE_DOCUMENT||!1,Oe=St.RETURN_DOM||!1,Dt=St.RETURN_DOM_FRAGMENT||!1,ot=St.RETURN_TRUSTED_TYPE||!1,Ve=St.FORCE_BODY||!1,sn=St.SANITIZE_DOM!==!1,Kt=St.SANITIZE_NAMED_PROPS||!1,Je=St.KEEP_CONTENT!==!1,ht=St.IN_PLACE||!1,te=St.ALLOWED_URI_REGEXP||E9n,mt=St.NAMESPACE||Ke,Jt=St.MATHML_TEXT_INTEGRATION_POINTS||Jt,wn=St.HTML_INTEGRATION_POINTS||wn,ce=St.CUSTOM_ELEMENT_HANDLING||{},St.CUSTOM_ELEMENT_HANDLING&&ur(St.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ce.tagNameCheck=St.CUSTOM_ELEMENT_HANDLING.tagNameCheck),St.CUSTOM_ELEMENT_HANDLING&&ur(St.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ce.attributeNameCheck=St.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),St.CUSTOM_ELEMENT_HANDLING&&typeof St.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ce.allowCustomizedBuiltInElements=St.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ce&&(Ee=!1),Dt&&(Oe=!0),et&&(ne=Jl({},npn),ie=[],et.html===!0&&(Jl(ne,tpn),Jl(ie,rpn)),et.svg===!0&&(Jl(ne,SQe),Jl(ie,AQe),Jl(ie,$_e)),et.svgFilters===!0&&(Jl(ne,TQe),Jl(ie,AQe),Jl(ie,$_e)),et.mathMl===!0&&(Jl(ne,CQe),Jl(ie,ipn),Jl(ie,$_e))),St.ADD_TAGS&&(typeof St.ADD_TAGS=="function"?De.tagCheck=St.ADD_TAGS:(ne===se&&(ne=_C(ne)),Jl(ne,St.ADD_TAGS,vn))),St.ADD_ATTR&&(typeof St.ADD_ATTR=="function"?De.attributeCheck=St.ADD_ATTR:(ie===ge&&(ie=_C(ie)),Jl(ie,St.ADD_ATTR,vn))),St.ADD_URI_SAFE_ATTR&&Jl(Ae,St.ADD_URI_SAFE_ATTR,vn),St.FORBID_CONTENTS&&(qe===He&&(qe=_C(qe)),Jl(qe,St.FORBID_CONTENTS,vn)),St.ADD_FORBID_CONTENTS&&(qe===He&&(qe=_C(qe)),Jl(qe,St.ADD_FORBID_CONTENTS,vn)),Je&&(ne["#text"]=!0),Le&&Jl(ne,["html","head","body"]),ne.table&&(Jl(ne,["tbody"]),delete be.tbody),St.TRUSTED_TYPES_POLICY){if(typeof St.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ire('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof St.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ire('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');L=St.TRUSTED_TYPES_POLICY,P=L.createHTML("")}else L===void 0&&(L=hZr(w,s)),L!==null&&typeof P=="string"&&(P=L.createHTML(""));sv&&sv(St),Cn=St}},Ir=Jl({},[...SQe,...TQe,...eZr]),Ln=Jl({},[...CQe,...tZr]),pr=function(St){let Un=N(St);(!Un||!Un.tagName)&&(Un={namespaceURI:mt,tagName:"template"});const Hr=WEe(St.tagName),za=WEe(Un.tagName);return $t[St.namespaceURI]?St.namespaceURI===Qe?Un.namespaceURI===Ke?Hr==="svg":Un.namespaceURI===fe?Hr==="svg"&&(za==="annotation-xml"||Jt[za]):!!Ir[Hr]:St.namespaceURI===fe?Un.namespaceURI===Ke?Hr==="math":Un.namespaceURI===Qe?Hr==="math"&&wn[za]:!!Ln[Hr]:St.namespaceURI===Ke?Un.namespaceURI===Qe&&!wn[za]||Un.namespaceURI===fe&&!Jt[za]?!1:!Ln[Hr]&&(Vn[Hr]||!Ir[Hr]):!!(Wn==="application/xhtml+xml"&&$t[St.namespaceURI]):!1},Cr=function(St){kre(t.removed,{element:St});try{N(St).removeChild(St)}catch{A(St)}},Zr=function(St,Un){try{kre(t.removed,{attribute:Un.getAttributeNode(St),from:Un})}catch{kre(t.removed,{attribute:null,from:Un})}if(Un.removeAttribute(St),St==="is")if(Oe||Dt)try{Cr(Un)}catch{}else try{Un.setAttribute(St,"")}catch{}},Pr=function(St){let Un=null,Hr=null;if(Ve)St=""+St;else{const Vr=xQe(St,/^[\r\n\t ]+/);Hr=Vr&&Vr[0]}Wn==="application/xhtml+xml"&&mt===Ke&&(St=''+St+"");const za=L?L.createHTML(St):St;if(mt===Ke)try{Un=new _().parseFromString(za,Wn)}catch{}if(!Un||!Un.documentElement){Un=M.createDocument(mt,"template",null);try{Un.documentElement.innerHTML=lt?P:za}catch{}}const Rs=Un.body||Un.documentElement;return St&&Hr&&Rs.insertBefore(r.createTextNode(Hr),Rs.childNodes[0]||null),mt===Ke?$.call(Un,Le?"html":"body")[0]:Le?Un.documentElement:Rs},Ci=function(St){return F.call(St.ownerDocument||St,St,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},ds=function(St){return St instanceof b&&(typeof St.nodeName!="string"||typeof St.textContent!="string"||typeof St.removeChild!="function"||!(St.attributes instanceof m)||typeof St.removeAttribute!="function"||typeof St.setAttribute!="function"||typeof St.namespaceURI!="string"||typeof St.insertBefore!="function"||typeof St.hasChildNodes!="function")},ta=function(St){return typeof h=="function"&&St instanceof h};function Os(Pt,St,Un){F_e(Pt,Hr=>{Hr.call(t,St,Un,Cn)})}const uo=function(St){let Un=null;if(Os(B.beforeSanitizeElements,St,null),ds(St))return Cr(St),!0;const Hr=vn(St.nodeName);if(Os(B.uponSanitizeElement,St,{tagName:Hr,allowedTags:ne}),Ie&&St.hasChildNodes()&&!ta(St.firstElementChild)&&My(/<[/\w!]/g,St.innerHTML)&&My(/<[/\w!]/g,St.textContent)||St.nodeType===Ore.progressingInstruction||Ie&&St.nodeType===Ore.comment&&My(/<[/\w]/g,St.data))return Cr(St),!0;if(!(De.tagCheck instanceof Function&&De.tagCheck(Hr))&&(!ne[Hr]||be[Hr])){if(!be[Hr]&&La(Hr)&&(ce.tagNameCheck instanceof RegExp&&My(ce.tagNameCheck,Hr)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(Hr)))return!1;if(Je&&!qe[Hr]){const za=N(St)||St.parentNode,Rs=I(St)||St.childNodes;if(Rs&&za){const Vr=Rs.length;for(let Ii=Vr-1;Ii>=0;--Ii){const Pa=C(Rs[Ii],!0);Pa.__removalCount=(St.__removalCount||0)+1,za.insertBefore(Pa,k(St))}}}return Cr(St),!0}return St instanceof f&&!pr(St)||(Hr==="noscript"||Hr==="noembed"||Hr==="noframes")&&My(/<\/no(script|embed|frames)/i,St.innerHTML)?(Cr(St),!0):(Ce&&St.nodeType===Ore.text&&(Un=St.textContent,F_e([Z,z,Y],za=>{Un=Rre(Un,za," ")}),St.textContent!==Un&&(kre(t.removed,{element:St.cloneNode()}),St.textContent=Un)),Os(B.afterSanitizeElements,St,null),!1)},Ls=function(St,Un,Hr){if(sn&&(Un==="id"||Un==="name")&&(Hr in r||Hr in Ar))return!1;if(!(Ee&&!ve[Un]&&My(W,Un))){if(!(ye&&My(Q,Un))){if(!(De.attributeCheck instanceof Function&&De.attributeCheck(Un,St))){if(!ie[Un]||ve[Un]){if(!(La(St)&&(ce.tagNameCheck instanceof RegExp&&My(ce.tagNameCheck,St)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(St))&&(ce.attributeNameCheck instanceof RegExp&&My(ce.attributeNameCheck,Un)||ce.attributeNameCheck instanceof Function&&ce.attributeNameCheck(Un,St))||Un==="is"&&ce.allowCustomizedBuiltInElements&&(ce.tagNameCheck instanceof RegExp&&My(ce.tagNameCheck,Hr)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(Hr))))return!1}else if(!Ae[Un]){if(!My(te,Rre(Hr,j,""))){if(!((Un==="src"||Un==="xlink:href"||Un==="href")&&St!=="script"&&XQr(Hr,"data:")===0&&Ge[St])){if(!(he&&!My(V,Rre(Hr,j,"")))){if(Hr)return!1}}}}}}}return!0},La=function(St){return St!=="annotation-xml"&&xQe(St,ee)},to=function(St){Os(B.beforeSanitizeAttributes,St,null);const{attributes:Un}=St;if(!Un||ds(St))return;const Hr={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ie,forceKeepAttr:void 0};let za=Un.length;for(;za--;){const Rs=Un[za],{name:Vr,namespaceURI:Ii,value:Pa}=Rs,Or=vn(Vr),no=Pa;let dt=Vr==="value"?no:QQr(no);if(Hr.attrName=Or,Hr.attrValue=dt,Hr.keepAttr=!0,Hr.forceKeepAttr=void 0,Os(B.uponSanitizeAttribute,St,Hr),dt=Hr.attrValue,Kt&&(Or==="id"||Or==="name")&&(Zr(Vr,St),dt=Ft+dt),Ie&&My(/((--!?|])>)|<\/(style|title|textarea)/i,dt)){Zr(Vr,St);continue}if(Or==="attributename"&&xQe(dt,"href")){Zr(Vr,St);continue}if(Hr.forceKeepAttr)continue;if(!Hr.keepAttr){Zr(Vr,St);continue}if(!we&&My(/\/>/i,dt)){Zr(Vr,St);continue}Ce&&F_e([Z,z,Y],Tt=>{dt=Rre(dt,Tt," ")});const Wi=vn(St.nodeName);if(!Ls(Wi,Or,dt)){Zr(Vr,St);continue}if(L&&typeof w=="object"&&typeof w.getAttributeType=="function"&&!Ii)switch(w.getAttributeType(Wi,Or)){case"TrustedHTML":{dt=L.createHTML(dt);break}case"TrustedScriptURL":{dt=L.createScriptURL(dt);break}}if(dt!==no)try{Ii?St.setAttributeNS(Ii,Vr,dt):St.setAttribute(Vr,dt),ds(St)?Cr(St):epn(t.removed)}catch{Zr(Vr,St)}}Os(B.afterSanitizeAttributes,St,null)},Fi=function Pt(St){let Un=null;const Hr=Ci(St);for(Os(B.beforeSanitizeShadowDOM,St,null);Un=Hr.nextNode();)Os(B.uponSanitizeShadowNode,Un,null),uo(Un),to(Un),Un.content instanceof o&&Pt(Un.content);Os(B.afterSanitizeShadowDOM,St,null)};return t.sanitize=function(Pt){let St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Un=null,Hr=null,za=null,Rs=null;if(lt=!Pt,lt&&(Pt=""),typeof Pt!="string"&&!ta(Pt))if(typeof Pt.toString=="function"){if(Pt=Pt.toString(),typeof Pt!="string")throw Ire("dirty is not a string, aborting")}else throw Ire("toString is not a function");if(!t.isSupported)return Pt;if(Fe||On(St),t.removed=[],typeof Pt=="string"&&(ht=!1),ht){if(Pt.nodeName){const Pa=vn(Pt.nodeName);if(!ne[Pa]||be[Pa])throw Ire("root node is forbidden and cannot be sanitized in-place")}}else if(Pt instanceof h)Un=Pr(""),Hr=Un.ownerDocument.importNode(Pt,!0),Hr.nodeType===Ore.element&&Hr.nodeName==="BODY"||Hr.nodeName==="HTML"?Un=Hr:Un.appendChild(Hr);else{if(!Oe&&!Ce&&!Le&&Pt.indexOf("<")===-1)return L&&ot?L.createHTML(Pt):Pt;if(Un=Pr(Pt),!Un)return Oe?null:ot?P:""}Un&&Ve&&Cr(Un.firstChild);const Vr=Ci(ht?Pt:Un);for(;za=Vr.nextNode();)uo(za),to(za),za.content instanceof o&&Fi(za.content);if(ht)return Pt;if(Oe){if(Dt)for(Rs=U.call(Un.ownerDocument);Un.firstChild;)Rs.appendChild(Un.firstChild);else Rs=Un;return(ie.shadowroot||ie.shadowrootmode)&&(Rs=G.call(a,Rs,!0)),Rs}let Ii=Le?Un.outerHTML:Un.innerHTML;return Le&&ne["!doctype"]&&Un.ownerDocument&&Un.ownerDocument.doctype&&Un.ownerDocument.doctype.name&&My(x9n,Un.ownerDocument.doctype.name)&&(Ii=" `+Ii),Ce&&F_e([Z,z,Y],Pa=>{Ii=Rre(Ii,Pa," ")}),L&&ot?L.createHTML(Ii):Ii},t.setConfig=function(){let Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};On(Pt),Fe=!0},t.clearConfig=function(){Cn=null,Fe=!1},t.isValidAttribute=function(Pt,St,Un){Cn||On({});const Hr=vn(Pt),za=vn(St);return Ls(Hr,za,Un)},t.addHook=function(Pt,St){typeof St=="function"&&kre(B[Pt],St)},t.removeHook=function(Pt,St){if(St!==void 0){const Un=WQr(B[Pt],St);return Un===-1?void 0:KQr(B[Pt],Un,1)[0]}return epn(B[Pt])},t.removeHooks=function(Pt){B[Pt]=[]},t.removeAllHooks=function(){B=spn()},t}var Sj=S9n(),T9n={},E0t={},x0t={},E$={},S0t={},T0t={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(a){a.Root="root",a.Text="text",a.Directive="directive",a.Comment="comment",a.Script="script",a.Style="style",a.Tag="tag",a.CDATA="cdata",a.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function r(a){return a.type===t.Tag||a.type===t.Script||a.type===t.Style}e.isTag=r,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(T0t);var uc={},N9=ml&&ml.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(a[o]=s[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}(),rse=ml&&ml.__assign||function(){return rse=Object.assign||function(e){for(var t,r=1,a=arguments.length;r0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t}(C0t);uc.NodeWithChildren=qCe;var R9n=function(e){N9(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Q2.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(qCe);uc.CDATA=R9n;var I9n=function(e){N9(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Q2.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(qCe);uc.Document=I9n;var N9n=function(e){N9(t,e);function t(r,a,s,o){s===void 0&&(s=[]),o===void 0&&(o=r==="script"?Q2.ElementType.Script:r==="style"?Q2.ElementType.Style:Q2.ElementType.Tag);var u=e.call(this,s)||this;return u.name=r,u.attribs=a,u.type=o,u}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(a){var s,o;return{name:a,value:r.attribs[a],namespace:(s=r["x-attribsNamespace"])===null||s===void 0?void 0:s[a],prefix:(o=r["x-attribsPrefix"])===null||o===void 0?void 0:o[a]}})},enumerable:!1,configurable:!0}),t}(qCe);uc.Element=N9n;function O9n(e){return(0,Q2.isTag)(e)}uc.isTag=O9n;function L9n(e){return e.type===Q2.ElementType.CDATA}uc.isCDATA=L9n;function D9n(e){return e.type===Q2.ElementType.Text}uc.isText=D9n;function M9n(e){return e.type===Q2.ElementType.Comment}uc.isComment=M9n;function P9n(e){return e.type===Q2.ElementType.Directive}uc.isDirective=P9n;function B9n(e){return e.type===Q2.ElementType.Root}uc.isDocument=B9n;function dZr(e){return Object.prototype.hasOwnProperty.call(e,"children")}uc.hasChildren=dZr;function A0t(e,t){t===void 0&&(t=!1);var r;if(D9n(e))r=new C9n(e.data);else if(M9n(e))r=new A9n(e.data);else if(O9n(e)){var a=t?kQe(e.children):[],s=new N9n(e.name,rse({},e.attribs),a);a.forEach(function(f){return f.parent=s}),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=rse({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=rse({},e["x-attribsPrefix"])),r=s}else if(L9n(e)){var a=t?kQe(e.children):[],o=new R9n(a);a.forEach(function(p){return p.parent=o}),r=o}else if(B9n(e)){var a=t?kQe(e.children):[],u=new I9n(a);a.forEach(function(p){return p.parent=u}),e["x-mode"]&&(u["x-mode"]=e["x-mode"]),r=u}else if(P9n(e)){var h=new k9n(e.name,e.data);e["x-name"]!=null&&(h["x-name"]=e["x-name"],h["x-publicId"]=e["x-publicId"],h["x-systemId"]=e["x-systemId"]),r=h}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}uc.cloneNode=A0t;function kQe(e){for(var t=e.map(function(a){return A0t(a,!0)}),r=1;r/i,upn=//i,n4e=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},uot=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},hpn=typeof window=="object"&&window.DOMParser;if(typeof hpn=="function"){var yZr=new hpn,vZr="text/html";uot=function(e,t){return t&&(e="<".concat(t,">").concat(e,"")),yZr.parseFromString(e,vZr)},n4e=uot}if(typeof document=="object"&&document.implementation){var G_e=document.implementation.createHTMLDocument();n4e=function(e,t){if(t){var r=G_e.documentElement.querySelector(t);return r&&(r.innerHTML=e),G_e}return G_e.documentElement.innerHTML=e,G_e}}var q_e=typeof document=="object"&&document.createElement("template"),hot;q_e&&q_e.content&&(hot=function(e){return q_e.innerHTML=e,q_e.content.childNodes});function _Zr(e){var t,r;e=(0,mZr.escapeSpecialCharacters)(e);var a=e.match(bZr),s=a&&a[1]?a[1].toLowerCase():"";switch(s){case opn:{var o=uot(e);if(!cpn.test(e)){var u=o.querySelector(lpn);(t=u==null?void 0:u.parentNode)===null||t===void 0||t.removeChild(u)}if(!upn.test(e)){var u=o.querySelector(z_e);(r=u==null?void 0:u.parentNode)===null||r===void 0||r.removeChild(u)}return o.querySelectorAll(opn)}case lpn:case z_e:{var h=n4e(e).querySelectorAll(s);return upn.test(e)&&cpn.test(e)?h[0].parentNode.childNodes:h}default:{if(hot)return hot(e);var u=n4e(e,z_e).querySelector(z_e);return u.childNodes}}}var wZr=ml&&ml.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(E0t,"__esModule",{value:!0});E0t.default=TZr;var EZr=wZr(x0t),xZr=E$,SZr=/<(![a-zA-Z\s]+)>/;function TZr(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(SZr),r=t?t[1]:void 0;return(0,xZr.formatDOM)((0,EZr.default)(e),null,r)}var HCe={},mT={},VCe={},CZr=0;VCe.SAME=CZr;var AZr=1;VCe.CAMELCASE=AZr;VCe.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};const G9n=0,O9=1,YCe=2,jCe=3,k0t=4,q9n=5,H9n=6;function kZr(e){return Rm.hasOwnProperty(e)?Rm[e]:null}function mv(e,t,r,a,s,o,u){this.acceptsBooleans=t===YCe||t===jCe||t===k0t,this.attributeName=a,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=u}const Rm={},RZr=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];RZr.forEach(e=>{Rm[e]=new mv(e,G9n,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{Rm[e]=new mv(e,O9,!1,t,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(e=>{Rm[e]=new mv(e,YCe,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{Rm[e]=new mv(e,YCe,!1,e,null,!1,!1)});["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{Rm[e]=new mv(e,jCe,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(e=>{Rm[e]=new mv(e,jCe,!0,e,null,!1,!1)});["capture","download"].forEach(e=>{Rm[e]=new mv(e,k0t,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(e=>{Rm[e]=new mv(e,H9n,!1,e,null,!1,!1)});["rowSpan","start"].forEach(e=>{Rm[e]=new mv(e,q9n,!1,e.toLowerCase(),null,!1,!1)});const R0t=/[\-\:]([a-z])/g,I0t=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const t=e.replace(R0t,I0t);Rm[t]=new mv(t,O9,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(R0t,I0t);Rm[t]=new mv(t,O9,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(R0t,I0t);Rm[t]=new mv(t,O9,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(e=>{Rm[e]=new mv(e,O9,!1,e.toLowerCase(),null,!1,!1)});const IZr="xlinkHref";Rm[IZr]=new mv("xlinkHref",O9,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(e=>{Rm[e]=new mv(e,O9,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:NZr,SAME:OZr,possibleStandardNames:dpn}=VCe,LZr=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",DZr=LZr+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",MZr=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+DZr+"]*$")),PZr=Object.keys(dpn).reduce((e,t)=>{const r=dpn[t];return r===OZr?e[t]=t:r===NZr?e[t.toLowerCase()]=t:e[t]=r,e},{});mT.BOOLEAN=jCe;mT.BOOLEANISH_STRING=YCe;mT.NUMERIC=q9n;mT.OVERLOADED_BOOLEAN=k0t;mT.POSITIVE_NUMERIC=H9n;mT.RESERVED=G9n;mT.STRING=O9;mT.getPropertyInfo=kZr;mT.isCustomAttribute=MZr;mT.possibleStandardNames=PZr;var N0t={};(function(e){var t=ml&&ml.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=o,e.setStyleProp=h;var r=ue,a=t(Izr),s=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function o(m,b){return m.includes("-")?!s.has(m):!!(b&&typeof b.is=="string")}var u={reactCompat:!0};function h(m,b){if(typeof m=="string"){if(!m.trim()){b.style={};return}try{b.style=(0,a.default)(m,u)}catch{b.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var f=function(m){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(m.name)};e.canTextBeChildOfNode=f;var p=function(m){return m};e.returnFirstArg=p})(N0t);Object.defineProperty(HCe,"__esModule",{value:!0});HCe.default=UZr;var Iie=mT,fpn=N0t,BZr=["checked","value"],FZr=["input","select","textarea"],$Zr={reset:!0,submit:!0};function UZr(e,t){e===void 0&&(e={});var r={},a=!!(e.type&&$Zr[e.type]);for(var s in e){var o=e[s];if((0,Iie.isCustomAttribute)(s)){r[s]=o;continue}var u=s.toLowerCase(),h=ppn(u);if(h){var f=(0,Iie.getPropertyInfo)(h);switch(BZr.includes(h)&&FZr.includes(t)&&!a&&(h=ppn("default"+u)),r[h]=o,f&&f.type){case Iie.BOOLEAN:r[h]=!0;break;case Iie.OVERLOADED_BOOLEAN:o===""&&(r[h]=!0);break}continue}fpn.PRESERVE_CUSTOM_ATTRIBUTES&&(r[s]=o)}return(0,fpn.setStyleProp)(e.style,r),r}function ppn(e){return Iie.possibleStandardNames[e]}var O0t={},zZr=ml&&ml.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(O0t,"__esModule",{value:!0});O0t.default=V9n;var RQe=ue,GZr=zZr(HCe),ise=N0t,qZr={cloneElement:RQe.cloneElement,createElement:RQe.createElement,isValidElement:RQe.isValidElement};function V9n(e,t){t===void 0&&(t={});for(var r=[],a=typeof t.replace=="function",s=t.transform||ise.returnFirstArg,o=t.library||qZr,u=o.cloneElement,h=o.createElement,f=o.isValidElement,p=e.length,m=0;m1&&(_=u(_,{key:_.key||m})),r.push(s(_,b,m));continue}}if(b.type==="text"){var w=!b.data.trim().length;if(w&&b.parent&&!(0,ise.canTextBeChildOfNode)(b.parent)||t.trim&&w)continue;r.push(s(b.data,b,m));continue}var S=b,C={};HZr(S)?((0,ise.setStyleProp)(S.attribs.style,S.attribs),C=S.attribs):S.attribs&&(C=(0,GZr.default)(S.attribs,S.name));var A=void 0;switch(b.type){case"script":case"style":b.children[0]&&(C.dangerouslySetInnerHTML={__html:b.children[0].data});break;case"tag":b.name==="textarea"&&b.children[0]?C.defaultValue=b.children[0].data:b.children&&b.children.length&&(A=V9n(b.children,t));break;default:continue}p>1&&(C.key=m),r.push(s(h(b.name,C,A),b,m))}return r.length===1?r[0]:r}function HZr(e){return ise.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&(0,ise.isCustomComponent)(e.name,e.attribs)}(function(e){var t=ml&&ml.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=h;var r=t(E0t);e.htmlToDOM=r.default;var a=t(HCe);e.attributesToProps=a.default;var s=t(O0t);e.domToReact=s.default;var o=S0t;Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return o.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return o.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return o.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return o.Text}});var u={lowerCaseAttributeNames:!1};function h(f,p){if(typeof f!="string")throw new TypeError("First argument must be a string");return f?(0,s.default)((0,r.default)(f,(p==null?void 0:p.htmlparser2)||u),p):[]}})(T9n);const gpn=O1(T9n),PTa=gpn.default||gpn;var Y9n={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Y9n);var BTa=Y9n.exports;function FTa(e){var t=LAn();return function(){var r,a=mSe(e);if(t){var s=mSe(this).constructor;r=Reflect.construct(a,arguments,s)}else r=a.apply(this,arguments);return MOr(this,r)}}function mpn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,a)}return r}function AV(e){for(var t=1;t=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var IQe={};function YZr(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return IQe[t]||(IQe[t]=VZr(e)),IQe[t]}function jZr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,a=e.filter(function(o){return o!=="token"}),s=YZr(a);return s.reduce(function(o,u){return AV(AV({},o),r[u])},t)}function bpn(e){return e.join(" ")}function WZr(e,t){var r=0;return function(a){return r+=1,a.map(function(s,o){return j9n({node:s,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(o)})})}}function j9n(e){var t=e.node,r=e.stylesheet,a=e.style,s=a===void 0?{}:a,o=e.useInlineStyles,u=e.key,h=t.properties,f=t.type,p=t.tagName,m=t.value;if(f==="text")return m;if(p){var b=WZr(r,o),_;if(!o)_=AV(AV({},h),{},{className:bpn(h.className)});else{var w=Object.keys(r).reduce(function(k,I){return I.split(".").forEach(function(N){k.includes(N)||k.push(N)}),k},[]),S=h.className&&h.className.includes("token")?["token"]:[],C=h.className&&S.concat(h.className.filter(function(k){return!w.includes(k)}));_=AV(AV({},h),{},{className:bpn(C)||void 0,style:jZr(h.className,Object.assign({},h.style,s),r)})}var A=b(t.children);return Er.createElement(p,Pat({key:u},_),A)}}const KZr=function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1};var XZr=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function ypn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,a)}return r}function hO(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];e.length===void 0&&(e=[e]);for(var a=0;a2&&arguments[2]!==void 0?arguments[2]:[];return KEe({children:P,lineNumber:M,lineNumberStyle:h,largestLineNumber:u,showInlineLineNumbers:s,lineProps:r,className:F,showLineNumbers:a,wrapLongLines:f,wrapLines:t})}function C(P,M){if(a&&M&&s){var F=K9n(h,M,u);P.unshift(W9n(M,F))}return P}function A(P,M){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||F.length>0?S(P,M,F):C(P,M)}for(var k=function(){var M=m[w],F=M.children[0].value,U=ZZr(F);if(U){var $=F.split(` `);$.forEach(function(G,B){var Z=a&&b.length+o,z={type:"text",value:"".concat(G,` `)};if(B===0){var Y=m.slice(_+1,w).concat(KEe({children:[z],className:M.properties.className})),W=A(Y,Z);b.push(W)}else if(B===$.length-1){var Q=m[w+1]&&m[w+1].children&&m[w+1].children[0],V={type:"text",value:"".concat(G)};if(Q){var j=KEe({children:[V],className:M.properties.className});m.splice(w+1,0,j)}else{var ee=[V],te=A(ee,Z,M.properties.className);b.push(te)}}else{var ne=[z],se=A(ne,Z,M.properties.className);b.push(se)}}),_=w}w++};w/g,">").replace(/"/g,""").replace(/'/g,"'")}function dO(e,...t){const r=Object.create(null);for(const a in e)r[a]=e[a];return t.forEach(function(a){for(const s in a)r[s]=a[s]}),r}const lJr="",_pn=e=>!!e.kind;class cJr{constructor(t,r){this.buffer="",this.classPrefix=r.classPrefix,t.walk(this)}addText(t){this.buffer+=YV(t)}openNode(t){if(!_pn(t))return;let r=t.kind;t.sublanguage||(r=`${this.classPrefix}${r}`),this.span(r)}closeNode(t){_pn(t)&&(this.buffer+=lJr)}value(){return this.buffer}span(t){this.buffer+=``}}class D0t{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const r={kind:t,children:[]};this.add(r),this.stack.push(r)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,r){return typeof r=="string"?t.addText(r):r.children&&(t.openNode(r),r.children.forEach(a=>this._walk(t,a)),t.closeNode(r)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(r=>typeof r=="string")?t.children=[t.children.join("")]:t.children.forEach(r=>{D0t._collapse(r)}))}}class uJr extends D0t{constructor(t){super(),this.options=t}addKeyword(t,r){t!==""&&(this.openNode(r),this.addText(t),this.closeNode())}addText(t){t!==""&&this.add(t)}addSublanguage(t,r){const a=t.root;a.kind=r,a.sublanguage=!0,this.add(a)}toHTML(){return new cJr(this,this.options).value()}finalize(){return!0}}function hJr(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function uoe(e){return e?typeof e=="string"?e:e.source:null}function dJr(...e){return e.map(r=>uoe(r)).join("")}function fJr(...e){return"("+e.map(r=>uoe(r)).join("|")+")"}function pJr(e){return new RegExp(e.toString()+"|").exec("").length-1}function gJr(e,t){const r=e&&e.exec(t);return r&&r.index===0}const mJr=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function bJr(e,t="|"){let r=0;return e.map(a=>{r+=1;const s=r;let o=uoe(a),u="";for(;o.length>0;){const h=mJr.exec(o);if(!h){u+=o;break}u+=o.substring(0,h.index),o=o.substring(h.index+h[0].length),h[0][0]==="\\"&&h[1]?u+="\\"+String(Number(h[1])+s):(u+=h[0],h[0]==="("&&r++)}return u}).map(a=>`(${a})`).join(t)}const yJr=/\b\B/,J9n="[a-zA-Z]\\w*",M0t="[a-zA-Z_]\\w*",P0t="\\b\\d+(\\.\\d+)?",eLn="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",tLn="\\b(0b[01]+)",vJr="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",_Jr=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=dJr(t,/.*\b/,e.binary,/\b.*/)),dO({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(r,a)=>{r.index!==0&&a.ignoreMatch()}},e)},hoe={begin:"\\\\[\\s\\S]",relevance:0},wJr={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[hoe]},EJr={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[hoe]},nLn={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},WCe=function(e,t,r={}){const a=dO({className:"comment",begin:e,end:t,contains:[]},r);return a.contains.push(nLn),a.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),a},xJr=WCe("//","$"),SJr=WCe("/\\*","\\*/"),TJr=WCe("#","$"),CJr={className:"number",begin:P0t,relevance:0},AJr={className:"number",begin:eLn,relevance:0},kJr={className:"number",begin:tLn,relevance:0},RJr={className:"number",begin:P0t+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},IJr={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[hoe,{begin:/\[/,end:/\]/,relevance:0,contains:[hoe]}]}]},NJr={className:"title",begin:J9n,relevance:0},OJr={className:"title",begin:M0t,relevance:0},LJr={begin:"\\.\\s*"+M0t,relevance:0},DJr=function(e){return Object.assign(e,{"on:begin":(t,r)=>{r.data._beginMatch=t[1]},"on:end":(t,r)=>{r.data._beginMatch!==t[1]&&r.ignoreMatch()}})};var H_e=Object.freeze({__proto__:null,MATCH_NOTHING_RE:yJr,IDENT_RE:J9n,UNDERSCORE_IDENT_RE:M0t,NUMBER_RE:P0t,C_NUMBER_RE:eLn,BINARY_NUMBER_RE:tLn,RE_STARTERS_RE:vJr,SHEBANG:_Jr,BACKSLASH_ESCAPE:hoe,APOS_STRING_MODE:wJr,QUOTE_STRING_MODE:EJr,PHRASAL_WORDS_MODE:nLn,COMMENT:WCe,C_LINE_COMMENT_MODE:xJr,C_BLOCK_COMMENT_MODE:SJr,HASH_COMMENT_MODE:TJr,NUMBER_MODE:CJr,C_NUMBER_MODE:AJr,BINARY_NUMBER_MODE:kJr,CSS_NUMBER_MODE:RJr,REGEXP_MODE:IJr,TITLE_MODE:NJr,UNDERSCORE_TITLE_MODE:OJr,METHOD_GUARD:LJr,END_SAME_AS_BEGIN:DJr});function MJr(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function PJr(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=MJr,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function BJr(e,t){Array.isArray(e.illegal)&&(e.illegal=fJr(...e.illegal))}function FJr(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function $Jr(e,t){e.relevance===void 0&&(e.relevance=1)}const UJr=["of","and","for","in","not","or","if","then","parent","list","value"],zJr="keyword";function rLn(e,t,r=zJr){const a={};return typeof e=="string"?s(r,e.split(" ")):Array.isArray(e)?s(r,e):Object.keys(e).forEach(function(o){Object.assign(a,rLn(e[o],t,o))}),a;function s(o,u){t&&(u=u.map(h=>h.toLowerCase())),u.forEach(function(h){const f=h.split("|");a[f[0]]=[o,GJr(f[0],f[1])]})}}function GJr(e,t){return t?Number(t):qJr(e)?0:1}function qJr(e){return UJr.includes(e.toLowerCase())}function HJr(e,{plugins:t}){function r(h,f){return new RegExp(uoe(h),"m"+(e.case_insensitive?"i":"")+(f?"g":""))}class a{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(f,p){p.position=this.position++,this.matchIndexes[this.matchAt]=p,this.regexes.push([p,f]),this.matchAt+=pJr(f)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const f=this.regexes.map(p=>p[1]);this.matcherRe=r(bJr(f),!0),this.lastIndex=0}exec(f){this.matcherRe.lastIndex=this.lastIndex;const p=this.matcherRe.exec(f);if(!p)return null;const m=p.findIndex((_,w)=>w>0&&_!==void 0),b=this.matchIndexes[m];return p.splice(0,m),Object.assign(p,b)}}class s{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(f){if(this.multiRegexes[f])return this.multiRegexes[f];const p=new a;return this.rules.slice(f).forEach(([m,b])=>p.addRule(m,b)),p.compile(),this.multiRegexes[f]=p,p}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(f,p){this.rules.push([f,p]),p.type==="begin"&&this.count++}exec(f){const p=this.getMatcher(this.regexIndex);p.lastIndex=this.lastIndex;let m=p.exec(f);if(this.resumingScanAtSamePosition()&&!(m&&m.index===this.lastIndex)){const b=this.getMatcher(0);b.lastIndex=this.lastIndex+1,m=b.exec(f)}return m&&(this.regexIndex+=m.position+1,this.regexIndex===this.count&&this.considerAll()),m}}function o(h){const f=new s;return h.contains.forEach(p=>f.addRule(p.begin,{rule:p,type:"begin"})),h.terminatorEnd&&f.addRule(h.terminatorEnd,{type:"end"}),h.illegal&&f.addRule(h.illegal,{type:"illegal"}),f}function u(h,f){const p=h;if(h.isCompiled)return p;[FJr].forEach(b=>b(h,f)),e.compilerExtensions.forEach(b=>b(h,f)),h.__beforeBegin=null,[PJr,BJr,$Jr].forEach(b=>b(h,f)),h.isCompiled=!0;let m=null;if(typeof h.keywords=="object"&&(m=h.keywords.$pattern,delete h.keywords.$pattern),h.keywords&&(h.keywords=rLn(h.keywords,e.case_insensitive)),h.lexemes&&m)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return m=m||h.lexemes||/\w+/,p.keywordPatternRe=r(m,!0),f&&(h.begin||(h.begin=/\B|\b/),p.beginRe=r(h.begin),h.endSameAsBegin&&(h.end=h.begin),!h.end&&!h.endsWithParent&&(h.end=/\B|\b/),h.end&&(p.endRe=r(h.end)),p.terminatorEnd=uoe(h.end)||"",h.endsWithParent&&f.terminatorEnd&&(p.terminatorEnd+=(h.end?"|":"")+f.terminatorEnd)),h.illegal&&(p.illegalRe=r(h.illegal)),h.contains||(h.contains=[]),h.contains=[].concat(...h.contains.map(function(b){return VJr(b==="self"?h:b)})),h.contains.forEach(function(b){u(b,p)}),h.starts&&u(h.starts,f),p.matcher=o(p),p}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=dO(e.classNameAliases||{}),u(e)}function iLn(e){return e?e.endsWithParent||iLn(e.starts):!1}function VJr(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return dO(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:iLn(e)?dO(e,{starts:e.starts?dO(e.starts):null}):Object.isFrozen(e)?dO(e):e}var YJr="10.7.3";function jJr(e){return!!(e||e==="")}function WJr(e){const t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,YV(this.code);let a={};return this.autoDetect?(a=e.highlightAuto(this.code),this.detectedLanguage=a.language):(a=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),a.value},autoDetect(){return!this.language||jJr(this.autodetect)},ignoreIllegals(){return!0}},render(a){return a("pre",{},[a("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install(a){a.component("highlightjs",t)}}}}const KJr={"after:highlightElement":({el:e,result:t,text:r})=>{const a=wpn(e);if(!a.length)return;const s=document.createElement("div");s.innerHTML=t.value,t.value=XJr(a,wpn(s),r)}};function dot(e){return e.nodeName.toLowerCase()}function wpn(e){const t=[];return function r(a,s){for(let o=a.firstChild;o;o=o.nextSibling)o.nodeType===3?s+=o.nodeValue.length:o.nodeType===1&&(t.push({event:"start",offset:s,node:o}),s=r(o,s),dot(o).match(/br|hr|img|input/)||t.push({event:"stop",offset:s,node:o}));return s}(e,0),t}function XJr(e,t,r){let a=0,s="";const o=[];function u(){return!e.length||!t.length?e.length?e:t:e[0].offset!==t[0].offset?e[0].offset"}function f(m){s+=""}function p(m){(m.event==="start"?h:f)(m.node)}for(;e.length||t.length;){let m=u();if(s+=YV(r.substring(a,m[0].offset)),a=m[0].offset,m===e){o.reverse().forEach(f);do p(m.splice(0,1)[0]),m=u();while(m===e&&m.length&&m[0].offset===a);o.reverse().forEach(h)}else m[0].event==="start"?o.push(m[0].node):o.pop(),p(m.splice(0,1)[0])}return s+YV(r.substr(a))}const Epn={},NQe=e=>{console.error(e)},xpn=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Mx=(e,t)=>{Epn[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Epn[`${e}/${t}`]=!0)},OQe=YV,Spn=dO,Tpn=Symbol("nomatch"),QJr=function(e){const t=Object.create(null),r=Object.create(null),a=[];let s=!0;const o=/(^(<[^>]+>|\t|)+|\n)/gm,u="Could not find the language '{}', did you forget to load/include a language module?",h={disableAutodetect:!0,name:"Plain text",contains:[]};let f={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:uJr};function p(ie){return f.noHighlightRe.test(ie)}function m(ie){let ge=ie.className+" ";ge+=ie.parentNode?ie.parentNode.className:"";const ce=f.languageDetectRe.exec(ge);if(ce){const be=W(ce[1]);return be||(xpn(u.replace("{}",ce[1])),xpn("Falling back to no-highlight mode for this block.",ie)),be?ce[1]:"no-highlight"}return ge.split(/\s+/).find(be=>p(be)||W(be))}function b(ie,ge,ce,be){let ve="",De="";typeof ge=="object"?(ve=ie,ce=ge.ignoreIllegals,De=ge.language,be=void 0):(Mx("10.7.0","highlight(lang, code, ...args) has been deprecated."),Mx("10.7.0",`Please use highlight(code, options) instead. https://github.com/highlightjs/highlight.js/issues/2277`),De=ie,ve=ge);const ye={code:ve,language:De};te("before:highlight",ye);const Ee=ye.result?ye.result:_(ye.language,ye.code,ce,be);return Ee.code=ye.code,te("after:highlight",Ee),Ee}function _(ie,ge,ce,be){function ve(Ye,Ae){const Xe=Dt.case_insensitive?Ae[0].toLowerCase():Ae[0];return Object.prototype.hasOwnProperty.call(Ye.keywords,Xe)&&Ye.keywords[Xe]}function De(){if(!Kt.keywords){Je.addText(ht);return}let Ye=0;Kt.keywordPatternRe.lastIndex=0;let Ae=Kt.keywordPatternRe.exec(ht),Xe="";for(;Ae;){Xe+=ht.substring(Ye,Ae.index);const fe=ve(Kt,Ae);if(fe){const[Qe,Ke]=fe;if(Je.addText(Xe),Xe="",et+=Ke,Qe.startsWith("_"))Xe+=Ae[0];else{const mt=Dt.classNameAliases[Qe]||Qe;Je.addKeyword(Ae[0],mt)}}else Xe+=Ae[0];Ye=Kt.keywordPatternRe.lastIndex,Ae=Kt.keywordPatternRe.exec(ht)}Xe+=ht.substr(Ye),Je.addText(Xe)}function ye(){if(ht==="")return;let Ye=null;if(typeof Kt.subLanguage=="string"){if(!t[Kt.subLanguage]){Je.addText(ht);return}Ye=_(Kt.subLanguage,ht,!0,Ft[Kt.subLanguage]),Ft[Kt.subLanguage]=Ye.top}else Ye=S(ht,Kt.subLanguage.length?Kt.subLanguage:null);Kt.relevance>0&&(et+=Ye.relevance),Je.addSublanguage(Ye.emitter,Ye.language)}function Ee(){Kt.subLanguage!=null?ye():De(),ht=""}function he(Ye){return Ye.className&&Je.openNode(Dt.classNameAliases[Ye.className]||Ye.className),Kt=Object.create(Ye,{parent:{value:Kt}}),Kt}function we(Ye,Ae,Xe){let fe=gJr(Ye.endRe,Xe);if(fe){if(Ye["on:end"]){const Qe=new vpn(Ye);Ye["on:end"](Ae,Qe),Qe.isMatchIgnored&&(fe=!1)}if(fe){for(;Ye.endsParent&&Ye.parent;)Ye=Ye.parent;return Ye}}if(Ye.endsWithParent)return we(Ye.parent,Ae,Xe)}function Ce(Ye){return Kt.matcher.regexIndex===0?(ht+=Ye[0],1):(Ge=!0,0)}function Ie(Ye){const Ae=Ye[0],Xe=Ye.rule,fe=new vpn(Xe),Qe=[Xe.__beforeBegin,Xe["on:begin"]];for(const Ke of Qe)if(Ke&&(Ke(Ye,fe),fe.isMatchIgnored))return Ce(Ae);return Xe&&Xe.endSameAsBegin&&(Xe.endRe=hJr(Ae)),Xe.skip?ht+=Ae:(Xe.excludeBegin&&(ht+=Ae),Ee(),!Xe.returnBegin&&!Xe.excludeBegin&&(ht=Ae)),he(Xe),Xe.returnBegin?0:Ae.length}function Le(Ye){const Ae=Ye[0],Xe=ge.substr(Ye.index),fe=we(Kt,Ye,Xe);if(!fe)return Tpn;const Qe=Kt;Qe.skip?ht+=Ae:(Qe.returnEnd||Qe.excludeEnd||(ht+=Ae),Ee(),Qe.excludeEnd&&(ht=Ae));do Kt.className&&Je.closeNode(),!Kt.skip&&!Kt.subLanguage&&(et+=Kt.relevance),Kt=Kt.parent;while(Kt!==fe.parent);return fe.starts&&(fe.endSameAsBegin&&(fe.starts.endRe=fe.endRe),he(fe.starts)),Qe.returnEnd?0:Ae.length}function Fe(){const Ye=[];for(let Ae=Kt;Ae!==Dt;Ae=Ae.parent)Ae.className&&Ye.unshift(Ae.className);Ye.forEach(Ae=>Je.openNode(Ae))}let Ve={};function Oe(Ye,Ae){const Xe=Ae&&Ae[0];if(ht+=Ye,Xe==null)return Ee(),0;if(Ve.type==="begin"&&Ae.type==="end"&&Ve.index===Ae.index&&Xe===""){if(ht+=ge.slice(Ae.index,Ae.index+1),!s){const fe=new Error("0 width match regex");throw fe.languageName=ie,fe.badRule=Ve.rule,fe}return 1}if(Ve=Ae,Ae.type==="begin")return Ie(Ae);if(Ae.type==="illegal"&&!ce){const fe=new Error('Illegal lexeme "'+Xe+'" for mode "'+(Kt.className||"")+'"');throw fe.mode=Kt,fe}else if(Ae.type==="end"){const fe=Le(Ae);if(fe!==Tpn)return fe}if(Ae.type==="illegal"&&Xe==="")return 1;if(He>1e5&&He>Ae.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ht+=Xe,Xe.length}const Dt=W(ie);if(!Dt)throw NQe(u.replace("{}",ie)),new Error('Unknown language: "'+ie+'"');const ot=HJr(Dt,{plugins:a});let sn="",Kt=be||ot;const Ft={},Je=new f.__emitter(f);Fe();let ht="",et=0,qe=0,He=0,Ge=!1;try{for(Kt.matcher.considerAll();;){He++,Ge?Ge=!1:Kt.matcher.considerAll(),Kt.matcher.lastIndex=qe;const Ye=Kt.matcher.exec(ge);if(!Ye)break;const Ae=ge.substring(qe,Ye.index),Xe=Oe(Ae,Ye);qe=Ye.index+Xe}return Oe(ge.substr(qe)),Je.closeAllNodes(),Je.finalize(),sn=Je.toHTML(),{relevance:Math.floor(et),value:sn,language:ie,illegal:!1,emitter:Je,top:Kt}}catch(Ye){if(Ye.message&&Ye.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:Ye.message,context:ge.slice(qe-100,qe+100),mode:Ye.mode},sofar:sn,relevance:0,value:OQe(ge),emitter:Je};if(s)return{illegal:!1,relevance:0,value:OQe(ge),emitter:Je,language:ie,top:Kt,errorRaised:Ye};throw Ye}}function w(ie){const ge={relevance:0,emitter:new f.__emitter(f),value:OQe(ie),illegal:!1,top:h};return ge.emitter.addText(ie),ge}function S(ie,ge){ge=ge||f.languages||Object.keys(t);const ce=w(ie),be=ge.filter(W).filter(V).map(he=>_(he,ie,!1));be.unshift(ce);const ve=be.sort((he,we)=>{if(he.relevance!==we.relevance)return we.relevance-he.relevance;if(he.language&&we.language){if(W(he.language).supersetOf===we.language)return 1;if(W(we.language).supersetOf===he.language)return-1}return 0}),[De,ye]=ve,Ee=De;return Ee.second_best=ye,Ee}function C(ie){return f.tabReplace||f.useBR?ie.replace(o,ge=>ge===` `?f.useBR?"
    ":ge:f.tabReplace?ge.replace(/\t/g,f.tabReplace):ge):ie}function A(ie,ge,ce){const be=ge?r[ge]:ce;ie.classList.add("hljs"),be&&ie.classList.add(be)}const k={"before:highlightElement":({el:ie})=>{f.useBR&&(ie.innerHTML=ie.innerHTML.replace(/\n/g,"").replace(//g,` `))},"after:highlightElement":({result:ie})=>{f.useBR&&(ie.value=ie.value.replace(/\n/g,"
    "))}},I=/^(<[^>]+>|\t)+/gm,N={"after:highlightElement":({result:ie})=>{f.tabReplace&&(ie.value=ie.value.replace(I,ge=>ge.replace(/\t/g,f.tabReplace)))}};function L(ie){let ge=null;const ce=m(ie);if(p(ce))return;te("before:highlightElement",{el:ie,language:ce}),ge=ie;const be=ge.textContent,ve=ce?b(be,{language:ce,ignoreIllegals:!0}):S(be);te("after:highlightElement",{el:ie,result:ve,text:be}),ie.innerHTML=ve.value,A(ie,ce,ve.language),ie.result={language:ve.language,re:ve.relevance,relavance:ve.relevance},ve.second_best&&(ie.second_best={language:ve.second_best.language,re:ve.second_best.relevance,relavance:ve.second_best.relevance})}function P(ie){ie.useBR&&(Mx("10.3.0","'useBR' will be removed entirely in v11.0"),Mx("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),f=Spn(f,ie)}const M=()=>{if(M.called)return;M.called=!0,Mx("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(L)};function F(){Mx("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),U=!0}let U=!1;function $(){if(document.readyState==="loading"){U=!0;return}document.querySelectorAll("pre code").forEach(L)}function G(){U&&$()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",G,!1);function B(ie,ge){let ce=null;try{ce=ge(e)}catch(be){if(NQe("Language definition for '{}' could not be registered.".replace("{}",ie)),s)NQe(be);else throw be;ce=h}ce.name||(ce.name=ie),t[ie]=ce,ce.rawDefinition=ge.bind(null,e),ce.aliases&&Q(ce.aliases,{languageName:ie})}function Z(ie){delete t[ie];for(const ge of Object.keys(r))r[ge]===ie&&delete r[ge]}function z(){return Object.keys(t)}function Y(ie){Mx("10.4.0","requireLanguage will be removed entirely in v11."),Mx("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const ge=W(ie);if(ge)return ge;throw new Error("The '{}' language is required, but not loaded.".replace("{}",ie))}function W(ie){return ie=(ie||"").toLowerCase(),t[ie]||t[r[ie]]}function Q(ie,{languageName:ge}){typeof ie=="string"&&(ie=[ie]),ie.forEach(ce=>{r[ce.toLowerCase()]=ge})}function V(ie){const ge=W(ie);return ge&&!ge.disableAutodetect}function j(ie){ie["before:highlightBlock"]&&!ie["before:highlightElement"]&&(ie["before:highlightElement"]=ge=>{ie["before:highlightBlock"](Object.assign({block:ge.el},ge))}),ie["after:highlightBlock"]&&!ie["after:highlightElement"]&&(ie["after:highlightElement"]=ge=>{ie["after:highlightBlock"](Object.assign({block:ge.el},ge))})}function ee(ie){j(ie),a.push(ie)}function te(ie,ge){const ce=ie;a.forEach(function(be){be[ce]&&be[ce](ge)})}function ne(ie){return Mx("10.2.0","fixMarkup will be removed entirely in v11.0"),Mx("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),C(ie)}function se(ie){return Mx("10.7.0","highlightBlock will be removed entirely in v12.0"),Mx("10.7.0","Please use highlightElement now."),L(ie)}Object.assign(e,{highlight:b,highlightAuto:S,highlightAll:$,fixMarkup:ne,highlightElement:L,highlightBlock:se,configure:P,initHighlighting:M,initHighlightingOnLoad:F,registerLanguage:B,unregisterLanguage:Z,listLanguages:z,getLanguage:W,registerAliases:Q,requireLanguage:Y,autoDetection:V,inherit:Spn,addPlugin:ee,vuePlugin:WJr(e).VuePlugin}),e.debugMode=function(){s=!1},e.safeMode=function(){s=!0},e.versionString=YJr;for(const ie in H_e)typeof H_e[ie]=="object"&&Z9n(H_e[ie]);return Object.assign(e,H_e),e.addPlugin(k),e.addPlugin(KJr),e.addPlugin(N),e};var ZJr=QJr({}),JJr=ZJr,aLn={exports:{}};(function(e){(function(){var t;t=e.exports=s,t.format=s,t.vsprintf=a,typeof console<"u"&&typeof console.log=="function"&&(t.printf=r);function r(){console.log(s.apply(null,arguments))}function a(o,u){return s.apply(null,[o].concat(u))}function s(o){for(var u=1,h=[].slice.call(arguments),f=0,p=o.length,m="",b,_=!1,w,S,C=!1,A,k=function(){return h[u++]},I=function(){for(var N="";/\d/.test(o[f]);)N+=o[f++],b=o[f];return N.length>0?parseInt(N):null};fh.relevance&&(h=f),f.relevance>u.relevance&&(h=u,u=f));return h.language&&(u.secondBest=h),u}function aei(e,t){$C.registerLanguage(e,t)}function sei(){return $C.listLanguages()}function oei(e,t){var r=e,a;t&&(r={},r[e]=t);for(a in r)$C.registerAliases(r[a],{languageName:a})}function mR(e){this.options=e,this.rootNode={children:[]},this.stack=[this.rootNode]}function lei(e,t){this.openNode(t),this.addText(e),this.closeNode()}function cei(e,t){var r=this.stack,a=r[r.length-1],s=e.rootNode.children,o=t?{type:"element",tagName:"span",properties:{className:[t]},children:s}:s;a.children=a.children.concat(o)}function uei(e){var t=this.stack,r,a;e!==""&&(r=t[t.length-1],a=r.children[r.children.length-1],a&&a.type==="text"?a.value+=e:r.children.push({type:"text",value:e}))}function hei(e){var t=this.stack,r=this.options.classPrefix+e,a=t[t.length-1],s={type:"element",tagName:"span",properties:{className:[r]},children:[]};a.children.push(s),t.push(s)}function dei(){this.stack.pop()}function fei(){return""}function oLn(){}var LQe,Cpn;function pei(){if(Cpn)return LQe;Cpn=1;function e(t){var r="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",a="далее ",s="возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",o=a+s,u="загрузитьизфайла ",h="вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",f=u+h,p="разделительстраниц разделительстрок символтабуляции ",m="ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон ",b="acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища ",_="wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",w=p+m+b+_,S="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля ",C="автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы ",A="виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента ",k="авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных ",I="использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц ",N="отображениевремениэлементовпланировщика ",L="типфайлаформатированногодокумента ",P="обходрезультатазапроса типзаписизапроса ",M="видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов ",F="доступкфайлу режимдиалогавыборафайла режимоткрытияфайла ",U="типизмеренияпостроителязапроса ",$="видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений ",G="wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson ",B="видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных ",Z="важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения ",z="режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации ",Y="расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии ",W="кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip ",Q="звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp ",V="направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса ",j="httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений ",ee="важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",te=S+C+A+k+I+N+L+P+M+F+U+$+G+B+Z+z+Y+W+Q+V+j+ee,ne="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных ",se="comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",ie=ne+se,ge="null истина ложь неопределено",ce=t.inherit(t.NUMBER_MODE),be={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},ve={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},De=t.inherit(t.C_LINE_COMMENT_MODE),ye={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:r,"meta-keyword":o+f},contains:[De]},Ee={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},he={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:r,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:r,keyword:"знач",literal:ge},contains:[ce,be,ve]},De]},t.inherit(t.TITLE_MODE,{begin:r})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:r,keyword:o,built_in:w,class:te,type:ie,literal:ge},contains:[ye,he,De,Ee,ce,be,ve]}}return LQe=e,LQe}var DQe,Apn;function gei(){if(Apn)return DQe;Apn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){const s={ruleDeclaration:/^[a-zA-Z][a-zA-Z0-9-]*/,unexpectedChars:/[!@#$^&',?+~`|:]/},o=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],u=a.COMMENT(/;/,/$/),h={className:"symbol",begin:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+){0,1}/},f={className:"symbol",begin:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+){0,1}/},p={className:"symbol",begin:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+){0,1}/},m={className:"symbol",begin:/%[si]/},b={className:"attribute",begin:t(s.ruleDeclaration,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:s.unexpectedChars,keywords:o,contains:[b,u,h,f,p,m,a.QUOTE_STRING_MODE,a.NUMBER_MODE]}}return DQe=r,DQe}var MQe,kpn;function mei(){if(kpn)return MQe;kpn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(...s){return s.map(u=>e(u)).join("")}function r(...s){return"("+s.map(u=>e(u)).join("|")+")"}function a(s){const o=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:t(/"/,r(...o)),end:/"/,keywords:o,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}return MQe=a,MQe}var PQe,Rpn;function bei(){if(Rpn)return PQe;Rpn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){const s=/[a-zA-Z_$][a-zA-Z0-9_$]*/,o=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,u={className:"rest_arg",begin:/[.]{3}/,end:s,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:"as break case catch class const continue default delete do dynamic each else extends final finally for function get if implements import in include instanceof interface internal is namespace native new override package private protected public return set static super switch this throw try typeof use var void while with",literal:"true false null undefined"},contains:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,a.C_NUMBER_MODE,{className:"class",beginKeywords:"package",end:/\{/,contains:[a.TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},a.TITLE_MODE]},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{"meta-keyword":"import include"}},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[a.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,contains:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,u]},{begin:t(/:\s*/,o)}]},a.METHOD_GUARD],illegal:/#/}}return PQe=r,PQe}var BQe,Ipn;function yei(){if(Ipn)return BQe;Ipn=1;function e(t){const r="\\d(_|\\d)*",a="[eE][-+]?"+r,s=r+"(\\."+r+")?("+a+")?",o="\\w+",h="\\b("+(r+"#"+o+"(\\."+o+")?#("+a+")?")+"|"+s+")",f="[A-Za-z](_?[A-Za-z0-9.])*",p=`[]\\{\\}%#'"`,m=t.COMMENT("--","$"),b={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:p,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:f,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:"abort else new return abs elsif not reverse abstract end accept entry select access exception of separate aliased exit or some all others subtype and for out synchronized array function overriding at tagged generic package task begin goto pragma terminate body private then if procedure type case in protected constant interface is raise use declare range delay limited record when delta loop rem while digits renames with do mod requeue xor",literal:"True False"},contains:[m,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:h,relevance:0},{className:"symbol",begin:"'"+f},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:p},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[m,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:p},b,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:p}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:p},b]}}return BQe=e,BQe}var FQe,Npn;function vei(){if(Npn)return FQe;Npn=1;function e(t){var r={className:"built_in",begin:"\\b(void|bool|int|int8|int16|int32|int64|uint|uint8|uint16|uint32|uint64|string|ref|array|double|float|auto|dictionary)"},a={className:"symbol",begin:"[a-zA-Z0-9_]+@"},s={className:"keyword",begin:"<",end:">",contains:[r,a]};return r.contains=[s],a.contains=[s],{name:"AngelScript",aliases:["asc"],keywords:"for in|0 break continue while do|0 return if else case switch namespace is cast or and xor not get|0 in inout|10 out override set|0 private public const default|0 final shared external mixin|10 enum typedef funcdef this super import from interface abstract|0 try catch protected explicit property",illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[t.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE],relevance:0},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},r,a,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}return FQe=e,FQe}var $Qe,Opn;function _ei(){if(Opn)return $Qe;Opn=1;function e(t){const r={className:"number",begin:/[$%]\d+/},a={className:"number",begin:/\d+/},s={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},o={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[t.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[s,o,t.inherit(t.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",r]},s,a,t.QUOTE_STRING_MODE]}}],illegal:/\S/}}return $Qe=e,$Qe}var UQe,Lpn;function wei(){if(Lpn)return UQe;Lpn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(...s){return s.map(u=>e(u)).join("")}function r(...s){return"("+s.map(u=>e(u)).join("|")+")"}function a(s){const o=s.inherit(s.QUOTE_STRING_MODE,{illegal:null}),u={className:"params",begin:/\(/,end:/\)/,contains:["self",s.C_NUMBER_MODE,o]},h=s.COMMENT(/--/,/$/),f=s.COMMENT(/\(\*/,/\*\)/,{contains:["self",h]}),p=[h,f,s.HASH_COMMENT_MODE],m=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],b=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name paragraph paragraphs rest reverse running time version weekday word words year"},contains:[o,s.C_NUMBER_MODE,{className:"built_in",begin:t(/\b/,r(...b),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:t(/\b/,r(...m),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[s.UNDERSCORE_TITLE_MODE,u]},...p],illegal:/\/\/|->|=>|\[\[/}}return UQe=a,UQe}var zQe,Dpn;function Eei(){if(Dpn)return zQe;Dpn=1;function e(t){const r="[A-Za-z_][0-9A-Za-z_]*",a={keyword:"if for while var new function do return void else break",literal:"BackSlash DoubleQuote false ForwardSlash Infinity NaN NewLine null PI SingleQuote Tab TextFormatting true undefined",built_in:"Abs Acos Angle Attachments Area AreaGeodetic Asin Atan Atan2 Average Bearing Boolean Buffer BufferGeodetic Ceil Centroid Clip Console Constrain Contains Cos Count Crosses Cut Date DateAdd DateDiff Day Decode DefaultValue Dictionary Difference Disjoint Distance DistanceGeodetic Distinct DomainCode DomainName Equals Exp Extent Feature FeatureSet FeatureSetByAssociation FeatureSetById FeatureSetByPortalItem FeatureSetByRelationshipName FeatureSetByTitle FeatureSetByUrl Filter First Floor Geometry GroupBy Guid HasKey Hour IIf IndexOf Intersection Intersects IsEmpty IsNan IsSelfIntersecting Length LengthGeodetic Log Max Mean Millisecond Min Minute Month MultiPartToSinglePart Multipoint NextSequenceValue Now Number OrderBy Overlaps Point Polygon Polyline Portal Pow Random Relate Reverse RingIsClockWise Round Second SetGeometry Sin Sort Sqrt Stdev Sum SymmetricDifference Tan Text Timestamp Today ToLocal Top Touches ToUTC TrackCurrentTime TrackGeometryWindow TrackIndex TrackStartTime TrackWindow TypeOf Union UrlEncode Variance Weekday When Within Year "},s={className:"symbol",begin:"\\$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+"},o={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:t.C_NUMBER_RE}],relevance:0},u={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},h={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,u]};u.contains=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,o,t.REGEXP_MODE];const f=u.contains.concat([t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",keywords:a,contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,s,o,{begin:/[{,]\s*/,relevance:0,contains:[{begin:r+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:r,relevance:0}]}]},{begin:"("+t.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+r+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:r},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:f}]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[t.inherit(t.TITLE_MODE,{begin:r}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:f}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return zQe=e,zQe}var GQe,Mpn;function xei(){if(Mpn)return GQe;Mpn=1;function e(u){return u?typeof u=="string"?u:u.source:null}function t(u){return a("(?=",u,")")}function r(u){return a("(",u,")?")}function a(...u){return u.map(f=>e(f)).join("")}function s(u){const h=u.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),f="decltype\\(auto\\)",p="[a-zA-Z_]\\w*::",b="("+f+"|"+r(p)+"[a-zA-Z_]\\w*"+r("<[^<>]+>")+")",_={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},S={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[u.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},u.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},C={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},A={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},u.inherit(S,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},h,u.C_BLOCK_COMMENT_MODE]},k={className:"title",begin:r(p)+u.IDENT_RE,relevance:0},I=r(p)+u.IDENT_RE+"\\s*\\(",L={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"_Bool _Complex _Imaginary",_relevance_hints:["asin","atan2","atan","calloc","ceil","cosh","cos","exit","exp","fabs","floor","fmod","fprintf","fputs","free","frexp","auto_ptr","deque","list","queue","stack","vector","map","set","pair","bitset","multiset","multimap","unordered_set","fscanf","future","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","tolower","toupper","labs","ldexp","log10","log","malloc","realloc","memchr","memcmp","memcpy","memset","modf","pow","printf","putchar","puts","scanf","sinh","sin","snprintf","sprintf","sqrt","sscanf","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","tanh","tan","unordered_map","unordered_multiset","unordered_multimap","priority_queue","make_pair","array","shared_ptr","abort","terminate","abs","acos","vfprintf","vprintf","vsprintf","endl","initializer_list","unique_ptr","complex","imaginary","std","string","wstring","cin","cout","cerr","clog","stdin","stdout","stderr","stringstream","istringstream","ostringstream"],literal:"true false nullptr NULL"},P={className:"function.dispatch",relevance:0,keywords:L,begin:a(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,u.IDENT_RE,t(/\s*\(/))},M=[P,A,_,h,u.C_BLOCK_COMMENT_MODE,C,S],F={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:L,contains:M.concat([{begin:/\(/,end:/\)/,keywords:L,contains:M.concat(["self"]),relevance:0}]),relevance:0},U={className:"function",begin:"("+b+"[\\*&\\s]+)+"+I,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:L,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:f,keywords:L,relevance:0},{begin:I,returnBegin:!0,contains:[k],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[S,C]},{className:"params",begin:/\(/,end:/\)/,keywords:L,relevance:0,contains:[h,u.C_BLOCK_COMMENT_MODE,S,C,_,{begin:/\(/,end:/\)/,keywords:L,relevance:0,contains:["self",h,u.C_BLOCK_COMMENT_MODE,S,C,_]}]},_,h,u.C_BLOCK_COMMENT_MODE,A]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:L,illegal:"",keywords:L,contains:["self",_]},{begin:u.IDENT_RE+"::",keywords:L},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},u.TITLE_MODE]}]),exports:{preprocessor:A,strings:S,keywords:L}}}function o(u){const h={keyword:"boolean byte word String",built_in:"KeyboardController MouseController SoftwareSerial EthernetServer EthernetClient LiquidCrystal RobotControl GSMVoiceCall EthernetUDP EsploraTFT HttpClient RobotMotor WiFiClient GSMScanner FileSystem Scheduler GSMServer YunClient YunServer IPAddress GSMClient GSMModem Keyboard Ethernet Console GSMBand Esplora Stepper Process WiFiUDP GSM_SMS Mailbox USBHost Firmata PImage Client Server GSMPIN FileIO Bridge Serial EEPROM Stream Mouse Audio Servo File Task GPRS WiFi Wire TFT GSM SPI SD ",_:"setup loop runShellCommandAsynchronously analogWriteResolution retrieveCallingNumber printFirmwareVersion analogReadResolution sendDigitalPortPair noListenOnLocalhost readJoystickButton setFirmwareVersion readJoystickSwitch scrollDisplayRight getVoiceCallStatus scrollDisplayLeft writeMicroseconds delayMicroseconds beginTransmission getSignalStrength runAsynchronously getAsynchronously listenOnLocalhost getCurrentCarrier readAccelerometer messageAvailable sendDigitalPorts lineFollowConfig countryNameWrite runShellCommand readStringUntil rewindDirectory readTemperature setClockDivider readLightSensor endTransmission analogReference detachInterrupt countryNameRead attachInterrupt encryptionType readBytesUntil robotNameWrite readMicrophone robotNameRead cityNameWrite userNameWrite readJoystickY readJoystickX mouseReleased openNextFile scanNetworks noInterrupts digitalWrite beginSpeaker mousePressed isActionDone mouseDragged displayLogos noAutoscroll addParameter remoteNumber getModifiers keyboardRead userNameRead waitContinue processInput parseCommand printVersion readNetworks writeMessage blinkVersion cityNameRead readMessage setDataMode parsePacket isListening setBitOrder beginPacket isDirectory motorsWrite drawCompass digitalRead clearScreen serialEvent rightToLeft setTextSize leftToRight requestFrom keyReleased compassRead analogWrite interrupts WiFiServer disconnect playMelody parseFloat autoscroll getPINUsed setPINUsed setTimeout sendAnalog readSlider analogRead beginWrite createChar motorsStop keyPressed tempoWrite readButton subnetMask debugPrint macAddress writeGreen randomSeed attachGPRS readString sendString remotePort releaseAll mouseMoved background getXChange getYChange answerCall getResult voiceCall endPacket constrain getSocket writeJSON getButton available connected findUntil readBytes exitValue readGreen writeBlue startLoop IPAddress isPressed sendSysex pauseMode gatewayIP setCursor getOemKey tuneWrite noDisplay loadImage switchPIN onRequest onReceive changePIN playFile noBuffer parseInt overflow checkPIN knobRead beginTFT bitClear updateIR bitWrite position writeRGB highByte writeRed setSpeed readBlue noStroke remoteIP transfer shutdown hangCall beginSMS endWrite attached maintain noCursor checkReg checkPUK shiftOut isValid shiftIn pulseIn connect println localIP pinMode getIMEI display noBlink process getBand running beginSD drawBMP lowByte setBand release bitRead prepare pointTo readRed setMode noFill remove listen stroke detach attach noTone exists buffer height bitSet circle config cursor random IRread setDNS endSMS getKey micros millis begin print write ready flush width isPIN blink clear press mkdir rmdir close point yield image BSSID click delay read text move peek beep rect line open seek fill size turn stop home find step tone sqrt RSSI SSID end bit tan cos sin pow map abs max min get run put",literal:"DIGITAL_MESSAGE FIRMATA_STRING ANALOG_MESSAGE REPORT_DIGITAL REPORT_ANALOG INPUT_PULLUP SET_PIN_MODE INTERNAL2V56 SYSTEM_RESET LED_BUILTIN INTERNAL1V1 SYSEX_START INTERNAL EXTERNAL DEFAULT OUTPUT INPUT HIGH LOW"},f=s(u),p=f.keywords;return p.keyword+=" "+h.keyword,p.literal+=" "+h.literal,p.built_in+=" "+h.built_in,p._+=" "+h._,f.name="Arduino",f.aliases=["ino"],f.supersetOf="cpp",f}return GQe=o,GQe}var qQe,Ppn;function Sei(){if(Ppn)return qQe;Ppn=1;function e(t){const r={variants:[t.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),t.COMMENT("[;@]","$",{relevance:0}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+t.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},r,t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}return qQe=e,qQe}var HQe,Bpn;function Tei(){if(Bpn)return HQe;Bpn=1;function e(u){return u?typeof u=="string"?u:u.source:null}function t(u){return a("(?=",u,")")}function r(u){return a("(",u,")?")}function a(...u){return u.map(f=>e(f)).join("")}function s(...u){return"("+u.map(f=>e(f)).join("|")+")"}function o(u){const h=a(/[A-Z_]/,r(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),f=/[A-Za-z0-9._:-]+/,p={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},m={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},b=u.inherit(m,{begin:/\(/,end:/\)/}),_=u.inherit(u.APOS_STRING_MODE,{className:"meta-string"}),w=u.inherit(u.QUOTE_STRING_MODE,{className:"meta-string"}),S={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin://,relevance:10,contains:[m,w,_,b,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[m,b,w,_]}]}]},u.COMMENT(//,{relevance:10}),{begin://,relevance:10},p,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[S],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[S],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:a(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:h,relevance:0,starts:S}]},{className:"tag",begin:a(/<\//,t(a(h,/>/))),contains:[{className:"name",begin:h,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return HQe=o,HQe}var VQe,Fpn;function Cei(){if(Fpn)return VQe;Fpn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){const s={begin:"^'{3,}[ \\t]*$",relevance:10},o=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],u=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:t(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],h=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:t(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],f={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},p={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[a.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),a.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ ].+?([ ]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},p,f,...o,...u,...h,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},s,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}return VQe=r,VQe}var YQe,$pn;function Aei(){if($pn)return YQe;$pn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){const s="false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else extends implements break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws privileged aspectOf adviceexecution proceed cflowbelow cflow initialization preinitialization staticinitialization withincode target within execution getWithinTypeName handler thisJoinPoint thisJoinPointStaticPart thisEnclosingJoinPointStaticPart declare parents warning error soft precedence thisAspectInstance",o="get set args call";return{name:"AspectJ",keywords:s,illegal:/<\/|#/,contains:[a.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},a.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:s+" "+o,excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},a.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:t(a.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[a.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:s,illegal:/["\[\]]/,contains:[{begin:t(a.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:s+" "+o,relevance:0},a.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:s,excludeEnd:!0,contains:[{begin:t(a.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[a.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:s,contains:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,a.C_NUMBER_MODE,a.C_BLOCK_COMMENT_MODE]},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},a.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}return YQe=r,YQe}var jQe,Upn;function kei(){if(Upn)return jQe;Upn=1;function e(t){const r={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[r,t.inherit(t.QUOTE_STRING_MODE,{contains:[r]}),t.COMMENT(";","$",{relevance:0}),t.C_BLOCK_COMMENT_MODE,{className:"number",begin:t.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}return jQe=e,jQe}var WQe,zpn;function Rei(){if(zpn)return WQe;zpn=1;function e(t){const r="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",a=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],s="True False And Null Not Or Default",o="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",u={variants:[t.COMMENT(";","$",{relevance:0}),t.COMMENT("#cs","#ce"),t.COMMENT("#comments-start","#comments-end")]},h={begin:"\\$[A-z0-9_]+"},f={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},p={variants:[t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]},m={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":a},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{"meta-keyword":"include"},end:"$",contains:[f,{className:"meta-string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},f,u]},b={className:"symbol",begin:"@[A-z0-9_]+"},_={className:"function",beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[t.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[h,f,p]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:r,built_in:o,literal:s},contains:[u,h,f,p,m,b,_]}}return WQe=e,WQe}var KQe,Gpn;function Iei(){if(Gpn)return KQe;Gpn=1;function e(t){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+t.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[t.C_BLOCK_COMMENT_MODE,t.COMMENT(";","$",{relevance:0}),t.C_NUMBER_MODE,t.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}return KQe=e,KQe}var XQe,qpn;function Nei(){if(qpn)return XQe;qpn=1;function e(t){const r={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",s={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:a},contains:[r,s,t.REGEXP_MODE,t.HASH_COMMENT_MODE,t.NUMBER_MODE]}}return XQe=e,XQe}var QQe,Hpn;function Oei(){if(Hpn)return QQe;Hpn=1;function e(t){return{name:"X++",aliases:["x++"],keywords:{keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:":",contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]}]}}return QQe=e,QQe}var ZQe,Vpn;function Lei(){if(Vpn)return ZQe;Vpn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){const s={},o={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[s]}]};Object.assign(s,{className:"variable",variants:[{begin:t(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},o]});const u={className:"subst",begin:/\$\(/,end:/\)/,contains:[a.BACKSLASH_ESCAPE]},h={begin:/<<-?\s*(?=\w+)/,starts:{contains:[a.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},f={className:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,s,u]};u.contains.push(f);const p={className:"",begin:/\\"/},m={className:"string",begin:/'/,end:/'/},b={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},a.NUMBER_MODE,s]},_=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],w=a.SHEBANG({binary:`(${_.join("|")})`,relevance:10}),S={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[a.inherit(a.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp"},contains:[w,a.SHEBANG(),S,b,a.HASH_COMMENT_MODE,h,f,p,m,s]}}return ZQe=r,ZQe}var JQe,Ypn;function Dei(){if(Ypn)return JQe;Ypn=1;function e(t){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:"ABS ASC AND ATN AUTO|0 BEEP BLOAD|10 BSAVE|10 CALL CALLS CDBL CHAIN CHDIR CHR$|10 CINT CIRCLE CLEAR CLOSE CLS COLOR COM COMMON CONT COS CSNG CSRLIN CVD CVI CVS DATA DATE$ DEFDBL DEFINT DEFSNG DEFSTR DEF|0 SEG USR DELETE DIM DRAW EDIT END ENVIRON ENVIRON$ EOF EQV ERASE ERDEV ERDEV$ ERL ERR ERROR EXP FIELD FILES FIX FOR|0 FRE GET GOSUB|10 GOTO HEX$ IF THEN ELSE|0 INKEY$ INP INPUT INPUT# INPUT$ INSTR IMP INT IOCTL IOCTL$ KEY ON OFF LIST KILL LEFT$ LEN LET LINE LLIST LOAD LOC LOCATE LOF LOG LPRINT USING LSET MERGE MID$ MKDIR MKD$ MKI$ MKS$ MOD NAME NEW NEXT NOISE NOT OCT$ ON OR PEN PLAY STRIG OPEN OPTION BASE OUT PAINT PALETTE PCOPY PEEK PMAP POINT POKE POS PRINT PRINT] PSET PRESET PUT RANDOMIZE READ REM RENUM RESET|0 RESTORE RESUME RETURN|0 RIGHT$ RMDIR RND RSET RUN SAVE SCREEN SGN SHELL SIN SOUND SPACE$ SPC SQR STEP STICK STOP STR$ STRING$ SWAP SYSTEM TAB TAN TIME$ TIMER TROFF TRON TO USR VAL VARPTR VARPTR$ VIEW WAIT WHILE WEND WIDTH WINDOW WRITE XOR"},contains:[t.QUOTE_STRING_MODE,t.COMMENT("REM","$",{relevance:10}),t.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}return JQe=e,JQe}var eZe,jpn;function Mei(){if(jpn)return eZe;jpn=1;function e(t){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin://},{begin:/::=/,end:/$/,contains:[{begin://},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]}]}}return eZe=e,eZe}var tZe,Wpn;function Pei(){if(Wpn)return tZe;Wpn=1;function e(t){const r={className:"literal",begin:/[+-]/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[t.COMMENT(`[^\\[\\]\\.,\\+\\-<> \r ]`,`[\\[\\]\\.,\\+\\-<> \r ]`,{returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?:\+\+|--)/,contains:[r]},r]}}return tZe=e,tZe}var nZe,Kpn;function Bei(){if(Kpn)return nZe;Kpn=1;function e(u){return u?typeof u=="string"?u:u.source:null}function t(u){return a("(?=",u,")")}function r(u){return a("(",u,")?")}function a(...u){return u.map(f=>e(f)).join("")}function s(u){const h=u.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),f="decltype\\(auto\\)",p="[a-zA-Z_]\\w*::",b="("+f+"|"+r(p)+"[a-zA-Z_]\\w*"+r("<[^<>]+>")+")",_={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},S={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[u.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},u.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},C={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},A={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},u.inherit(S,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},h,u.C_BLOCK_COMMENT_MODE]},k={className:"title",begin:r(p)+u.IDENT_RE,relevance:0},I=r(p)+u.IDENT_RE+"\\s*\\(",L={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"_Bool _Complex _Imaginary",_relevance_hints:["asin","atan2","atan","calloc","ceil","cosh","cos","exit","exp","fabs","floor","fmod","fprintf","fputs","free","frexp","auto_ptr","deque","list","queue","stack","vector","map","set","pair","bitset","multiset","multimap","unordered_set","fscanf","future","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","tolower","toupper","labs","ldexp","log10","log","malloc","realloc","memchr","memcmp","memcpy","memset","modf","pow","printf","putchar","puts","scanf","sinh","sin","snprintf","sprintf","sqrt","sscanf","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","tanh","tan","unordered_map","unordered_multiset","unordered_multimap","priority_queue","make_pair","array","shared_ptr","abort","terminate","abs","acos","vfprintf","vprintf","vsprintf","endl","initializer_list","unique_ptr","complex","imaginary","std","string","wstring","cin","cout","cerr","clog","stdin","stdout","stderr","stringstream","istringstream","ostringstream"],literal:"true false nullptr NULL"},P={className:"function.dispatch",relevance:0,keywords:L,begin:a(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,u.IDENT_RE,t(/\s*\(/))},M=[P,A,_,h,u.C_BLOCK_COMMENT_MODE,C,S],F={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:L,contains:M.concat([{begin:/\(/,end:/\)/,keywords:L,contains:M.concat(["self"]),relevance:0}]),relevance:0},U={className:"function",begin:"("+b+"[\\*&\\s]+)+"+I,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:L,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:f,keywords:L,relevance:0},{begin:I,returnBegin:!0,contains:[k],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[S,C]},{className:"params",begin:/\(/,end:/\)/,keywords:L,relevance:0,contains:[h,u.C_BLOCK_COMMENT_MODE,S,C,_,{begin:/\(/,end:/\)/,keywords:L,relevance:0,contains:["self",h,u.C_BLOCK_COMMENT_MODE,S,C,_]}]},_,h,u.C_BLOCK_COMMENT_MODE,A]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:L,illegal:"",keywords:L,contains:["self",_]},{begin:u.IDENT_RE+"::",keywords:L},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},u.TITLE_MODE]}]),exports:{preprocessor:A,strings:S,keywords:L}}}function o(u){const h=s(u),f=["c","h"],p=["cc","c++","h++","hpp","hh","hxx","cxx"];return h.disableAutodetect=!0,h.aliases=[],u.getLanguage("c")||h.aliases.push(...f),u.getLanguage("cpp")||h.aliases.push(...p),h}return nZe=o,nZe}var rZe,Xpn;function Fei(){if(Xpn)return rZe;Xpn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(s){return r("(",s,")?")}function r(...s){return s.map(u=>e(u)).join("")}function a(s){const o=s.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",h="[a-zA-Z_]\\w*::",p="("+u+"|"+t(h)+"[a-zA-Z_]\\w*"+t("<[^<>]+>")+")",m={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},_={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[s.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},s.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},w={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},S={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},s.inherit(_,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},o,s.C_BLOCK_COMMENT_MODE]},C={className:"title",begin:t(h)+s.IDENT_RE,relevance:0},A=t(h)+s.IDENT_RE+"\\s*\\(",k={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary",literal:"true false nullptr NULL"},I=[S,m,o,s.C_BLOCK_COMMENT_MODE,w,_],N={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:k,contains:I.concat([{begin:/\(/,end:/\)/,keywords:k,contains:I.concat(["self"]),relevance:0}]),relevance:0},L={className:"function",begin:"("+p+"[\\*&\\s]+)+"+A,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:k,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:k,relevance:0},{begin:A,returnBegin:!0,contains:[C],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:[o,s.C_BLOCK_COMMENT_MODE,_,w,m,{begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:["self",o,s.C_BLOCK_COMMENT_MODE,_,w,m]}]},m,o,s.C_BLOCK_COMMENT_MODE,S]};return{name:"C",aliases:["h"],keywords:k,disableAutodetect:!0,illegal:"",keywords:k,contains:["self",m]},{begin:s.IDENT_RE+"::",keywords:k},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},s.TITLE_MODE]}]),exports:{preprocessor:S,strings:_,keywords:k}}}return rZe=a,rZe}var iZe,Qpn;function $ei(){if(Qpn)return iZe;Qpn=1;function e(t){const r="div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to until while with var",a="false true",s=[t.C_LINE_COMMENT_MODE,t.COMMENT(/\{/,/\}/,{relevance:0}),t.COMMENT(/\(\*/,/\*\)/,{relevance:10})],o={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},u={className:"string",begin:/(#\d+)+/},h={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},f={className:"string",begin:'"',end:'"'},p={className:"function",beginKeywords:"procedure",end:/[:;]/,keywords:"procedure|10",contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:r,contains:[o,u]}].concat(s)},m={className:"class",begin:"OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\d+) ([^\\r\\n]+)",returnBegin:!0,contains:[t.TITLE_MODE,p]};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:r,literal:a},illegal:/\/\*/,contains:[o,u,h,f,t.NUMBER_MODE,m,p]}}return iZe=e,iZe}var aZe,Zpn;function Uei(){if(Zpn)return aZe;Zpn=1;function e(t){return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:"struct enum interface union group import using const annotation extends in of on as with from fixed",built_in:"Void Bool Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float32 Float64 Text Data AnyPointer AnyStruct Capability List",literal:"true false"},contains:[t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},{className:"class",beginKeywords:"struct enum",end:/\{/,illegal:/\n/,contains:[t.inherit(t.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"class",beginKeywords:"interface",end:/\{/,illegal:/\n/,contains:[t.inherit(t.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]}]}}return aZe=e,aZe}var sZe,Jpn;function zei(){if(Jpn)return sZe;Jpn=1;function e(t){const r="assembly module package import alias class interface object given value assign void function new of extends satisfies abstracts in out return break continue throw assert dynamic if else switch case for while try catch finally then let this outer super is exists nonempty",a="shared abstract formal default actual variable late native deprecated final sealed annotation suppressWarnings small",s="doc by license see throws tagged",o={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:r,relevance:10},u=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[o]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return o.contains=u,{name:"Ceylon",keywords:{keyword:r+" "+a,meta:s},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(u)}}return sZe=e,sZe}var oZe,egn;function Gei(){if(egn)return oZe;egn=1;function e(t){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:"if let in with where case of class instance otherwise implementation definition system module from import qualified as special code inline foreign export ccall stdcall generic derive infix infixl infixr",built_in:"Int Real Char Bool",literal:"True False"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}return oZe=e,oZe}var lZe,tgn;function qei(){if(tgn)return lZe;tgn=1;function e(t){const r="a-zA-Z_\\-!.?+*=<>&#'",a="["+r+"]["+r+"0-9/;:]*",s="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",o={$pattern:a,"builtin-name":s+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},u="[-+]?\\d+(\\.\\d+)?",h={begin:a,relevance:0},f={className:"number",begin:u,relevance:0},p=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),m=t.COMMENT(";","$",{relevance:0}),b={className:"literal",begin:/\b(true|false|nil)\b/},_={begin:"[\\[\\{]",end:"[\\]\\}]"},w={className:"comment",begin:"\\^"+a},S=t.COMMENT("\\^\\{","\\}"),C={className:"symbol",begin:"[:]{1,2}"+a},A={begin:"\\(",end:"\\)"},k={endsWithParent:!0,relevance:0},I={keywords:o,className:"name",begin:a,relevance:0,starts:k},N=[A,p,w,S,m,C,_,f,b,h],L={beginKeywords:s,lexemes:a,end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:a,relevance:0,excludeEnd:!0,endsParent:!0}].concat(N)};return A.contains=[t.COMMENT("comment",""),L,I,k],k.contains=N,_.contains=N,S.contains=[_],{name:"Clojure",aliases:["clj"],illegal:/\S/,contains:[A,p,w,S,m,C,_,f,b]}}return lZe=e,lZe}var cZe,ngn;function Hei(){if(ngn)return cZe;ngn=1;function e(t){return{name:"Clojure REPL",contains:[{className:"meta",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return cZe=e,cZe}var uZe,rgn;function Vei(){if(rgn)return uZe;rgn=1;function e(t){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE]}}return uZe=e,uZe}var hZe,ign;function Yei(){if(ign)return hZe;ign=1;const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],t=["true","false","null","undefined","NaN","Infinity"],r=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],a=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o=["arguments","this","super","console","window","document","localStorage","module","global"],u=[].concat(s,o,r,a);function h(f){const p=["npm","print"],m=["yes","no","on","off"],b=["then","unless","until","loop","by","when","and","or","is","isnt","not"],_=["var","const","let","function","static"],w=P=>M=>!P.includes(M),S={keyword:e.concat(b).filter(w(_)),literal:t.concat(m),built_in:u.concat(p)},C="[A-Za-z$_][0-9A-Za-z$_]*",A={className:"subst",begin:/#\{/,end:/\}/,keywords:S},k=[f.BINARY_NUMBER_MODE,f.inherit(f.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[f.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[f.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[f.BACKSLASH_ESCAPE,A]},{begin:/"/,end:/"/,contains:[f.BACKSLASH_ESCAPE,A]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[A,f.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+C},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];A.contains=k;const I=f.inherit(f.TITLE_MODE,{begin:C}),N="(\\(.*\\)\\s*)?\\B[-=]>",L={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:S,contains:["self"].concat(k)}]};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:S,illegal:/\/\*/,contains:k.concat([f.COMMENT("###","###"),f.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+C+"\\s*=\\s*"+N,end:"[-=]>",returnBegin:!0,contains:[I,L]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:N,end:"[-=]>",returnBegin:!0,contains:[L]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[I]},I]},{begin:C+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return hZe=h,hZe}var dZe,agn;function jei(){if(agn)return dZe;agn=1;function e(t){return{name:"Coq",keywords:{keyword:"_|0 as at cofix else end exists exists2 fix for forall fun if IF in let match mod Prop return Set then Type using where with Abort About Add Admit Admitted All Arguments Assumptions Axiom Back BackTo Backtrack Bind Blacklist Canonical Cd Check Class Classes Close Coercion Coercions CoFixpoint CoInductive Collection Combined Compute Conjecture Conjectures Constant constr Constraint Constructors Context Corollary CreateHintDb Cut Declare Defined Definition Delimit Dependencies Dependent Derive Drop eauto End Equality Eval Example Existential Existentials Existing Export exporting Extern Extract Extraction Fact Field Fields File Fixpoint Focus for From Function Functional Generalizable Global Goal Grab Grammar Graph Guarded Heap Hint HintDb Hints Hypotheses Hypothesis ident Identity If Immediate Implicit Import Include Inductive Infix Info Initial Inline Inspect Instance Instances Intro Intros Inversion Inversion_clear Language Left Lemma Let Libraries Library Load LoadPath Local Locate Ltac ML Mode Module Modules Monomorphic Morphism Next NoInline Notation Obligation Obligations Opaque Open Optimize Options Parameter Parameters Parametric Path Paths pattern Polymorphic Preterm Print Printing Program Projections Proof Proposition Pwd Qed Quit Rec Record Recursive Redirect Relation Remark Remove Require Reserved Reset Resolve Restart Rewrite Right Ring Rings Save Scheme Scope Scopes Script Search SearchAbout SearchHead SearchPattern SearchRewrite Section Separate Set Setoid Show Solve Sorted Step Strategies Strategy Structure SubClass Table Tables Tactic Term Test Theorem Time Timeout Transparent Type Typeclasses Types Undelimit Undo Unfocus Unfocused Unfold Universe Universes Unset Unshelve using Variable Variables Variant Verbose Visibility where with",built_in:"abstract absurd admit after apply as assert assumption at auto autorewrite autounfold before bottom btauto by case case_eq cbn cbv change classical_left classical_right clear clearbody cofix compare compute congruence constr_eq constructor contradict contradiction cut cutrewrite cycle decide decompose dependent destruct destruction dintuition discriminate discrR do double dtauto eapply eassumption eauto ecase econstructor edestruct ediscriminate eelim eexact eexists einduction einjection eleft elim elimtype enough equality erewrite eright esimplify_eq esplit evar exact exactly_once exfalso exists f_equal fail field field_simplify field_simplify_eq first firstorder fix fold fourier functional generalize generalizing gfail give_up has_evar hnf idtac in induction injection instantiate intro intro_pattern intros intuition inversion inversion_clear is_evar is_var lapply lazy left lia lra move native_compute nia nsatz omega once pattern pose progress proof psatz quote record red refine reflexivity remember rename repeat replace revert revgoals rewrite rewrite_strat right ring ring_simplify rtauto set setoid_reflexivity setoid_replace setoid_rewrite setoid_symmetry setoid_transitivity shelve shelve_unifiable simpl simple simplify_eq solve specialize split split_Rabs split_Rmult stepl stepr subst sum swap symmetry tactic tauto time timeout top transitivity trivial try tryif unfold unify until using vm_compute with"},contains:[t.QUOTE_STRING_MODE,t.COMMENT("\\(\\*","\\*\\)"),t.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}return dZe=e,dZe}var fZe,sgn;function Wei(){if(sgn)return fZe;sgn=1;function e(t){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*\s*>/,subLanguage:"xml"}]}}return fZe=e,fZe}var pZe,ogn;function Kei(){if(ogn)return pZe;ogn=1;function e(o){return o?typeof o=="string"?o:o.source:null}function t(o){return a("(?=",o,")")}function r(o){return a("(",o,")?")}function a(...o){return o.map(h=>e(h)).join("")}function s(o){const u=o.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),h="decltype\\(auto\\)",f="[a-zA-Z_]\\w*::",m="("+h+"|"+r(f)+"[a-zA-Z_]\\w*"+r("<[^<>]+>")+")",b={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},w={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[o.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},o.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},S={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},C={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},o.inherit(w,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},u,o.C_BLOCK_COMMENT_MODE]},A={className:"title",begin:r(f)+o.IDENT_RE,relevance:0},k=r(f)+o.IDENT_RE+"\\s*\\(",N={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"_Bool _Complex _Imaginary",_relevance_hints:["asin","atan2","atan","calloc","ceil","cosh","cos","exit","exp","fabs","floor","fmod","fprintf","fputs","free","frexp","auto_ptr","deque","list","queue","stack","vector","map","set","pair","bitset","multiset","multimap","unordered_set","fscanf","future","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","tolower","toupper","labs","ldexp","log10","log","malloc","realloc","memchr","memcmp","memcpy","memset","modf","pow","printf","putchar","puts","scanf","sinh","sin","snprintf","sprintf","sqrt","sscanf","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","tanh","tan","unordered_map","unordered_multiset","unordered_multimap","priority_queue","make_pair","array","shared_ptr","abort","terminate","abs","acos","vfprintf","vprintf","vsprintf","endl","initializer_list","unique_ptr","complex","imaginary","std","string","wstring","cin","cout","cerr","clog","stdin","stdout","stderr","stringstream","istringstream","ostringstream"],literal:"true false nullptr NULL"},L={className:"function.dispatch",relevance:0,keywords:N,begin:a(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,o.IDENT_RE,t(/\s*\(/))},P=[L,C,b,u,o.C_BLOCK_COMMENT_MODE,S,w],M={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:N,contains:P.concat([{begin:/\(/,end:/\)/,keywords:N,contains:P.concat(["self"]),relevance:0}]),relevance:0},F={className:"function",begin:"("+m+"[\\*&\\s]+)+"+k,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:N,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:h,keywords:N,relevance:0},{begin:k,returnBegin:!0,contains:[A],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[w,S]},{className:"params",begin:/\(/,end:/\)/,keywords:N,relevance:0,contains:[u,o.C_BLOCK_COMMENT_MODE,w,S,b,{begin:/\(/,end:/\)/,keywords:N,relevance:0,contains:["self",u,o.C_BLOCK_COMMENT_MODE,w,S,b]}]},b,u,o.C_BLOCK_COMMENT_MODE,C]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:N,illegal:"",keywords:N,contains:["self",b]},{begin:o.IDENT_RE+"::",keywords:N},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},o.TITLE_MODE]}]),exports:{preprocessor:C,strings:w,keywords:N}}}return pZe=s,pZe}var gZe,lgn;function Xei(){if(lgn)return gZe;lgn=1;function e(t){const r="primitive rsc_template",a="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization"+" "+"read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\"+" "+"number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[t.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:r,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+a.split(" ").join("|")+")\\s+",keywords:a,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},t.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"",relevance:0}]}}return gZe=e,gZe}var mZe,cgn;function Qei(){if(cgn)return mZe;cgn=1;function e(t){const r="(_?[ui](8|16|32|64|128))?",a="(_?f(32|64))?",s="[a-zA-Z_]\\w*[!?=]?",o="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",u="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",h={$pattern:s,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},f={className:"subst",begin:/#\{/,end:/\}/,keywords:h},p={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:h};function m(k,I){const N=[{begin:k,end:I}];return N[0].contains=N,N}const b={className:"string",contains:[t.BACKSLASH_ESCAPE,f],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:m("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:m("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:m(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:m("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},_={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:m("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:m("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:m(/\{/,/\}/)},{begin:"%q<",end:">",contains:m("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},w={begin:"(?!%\\})("+t.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,f],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},S={className:"regexp",contains:[t.BACKSLASH_ESCAPE,f],variants:[{begin:"%r\\(",end:"\\)",contains:m("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:m("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:m(/\{/,/\}/)},{begin:"%r<",end:">",contains:m("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},C={className:"meta",begin:"@\\[",end:"\\]",contains:[t.inherit(t.QUOTE_STRING_MODE,{className:"meta-string"})]},A=[p,b,_,S,w,C,t.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[t.HASH_COMMENT_MODE,t.inherit(t.TITLE_MODE,{begin:u}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[t.HASH_COMMENT_MODE,t.inherit(t.TITLE_MODE,{begin:u})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[t.HASH_COMMENT_MODE,t.inherit(t.TITLE_MODE,{begin:u})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[t.inherit(t.TITLE_MODE,{begin:o,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[t.inherit(t.TITLE_MODE,{begin:o,endsParent:!0})],relevance:2},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[b,{begin:o}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+r},{begin:"\\b0o([0-7_]+)"+r},{begin:"\\b0x([A-Fa-f0-9_]+)"+r},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+a+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+r}],relevance:0}];return f.contains=A,p.contains=A.slice(1),{name:"Crystal",aliases:["cr"],keywords:h,contains:A}}return mZe=e,mZe}var bZe,ugn;function Zei(){if(ugn)return bZe;ugn=1;function e(t){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],a=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],s=["default","false","null","true"],o=["abstract","as","base","break","case","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],u=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],h={keyword:o.concat(u),built_in:r,literal:s},f=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),p={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},m={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},b=t.inherit(m,{illegal:/\n/}),_={className:"subst",begin:/\{/,end:/\}/,keywords:h},w=t.inherit(_,{illegal:/\n/}),S={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,w]},C={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},_]},A=t.inherit(C,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},w]});_.contains=[C,S,m,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,p,t.C_BLOCK_COMMENT_MODE],w.contains=[A,S,b,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,p,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const k={variants:[C,S,m,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},I={begin:"<",end:">",contains:[{beginKeywords:"in out"},f]},N=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",L={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:h,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},k,p,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},f,I,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[f,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[f,I,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"meta-string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+N+"\\s+)+"+t.IDENT_RE+"\\s*(<.+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:h,contains:[{beginKeywords:a.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<.+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,I],relevance:0},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,relevance:0,contains:[k,p,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},L]}}return bZe=e,bZe}var yZe,hgn;function Jei(){if(hgn)return yZe;hgn=1;function e(t){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:"base-uri child-src connect-src default-src font-src form-action frame-ancestors frame-src img-src media-src object-src plugin-types report-uri sandbox script-src style-src"},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}return yZe=e,yZe}var vZe,dgn;function eti(){if(dgn)return vZe;dgn=1;const e=m=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();function u(m){return m?typeof m=="string"?m:m.source:null}function h(m){return f("(?=",m,")")}function f(...m){return m.map(_=>u(_)).join("")}function p(m){const b=e(m),_={className:"built_in",begin:/[\w-]+(?=\()/},w={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},S="and or not only",C=/@-?\w[\w]*(-\w+)*/,A="[a-zA-Z-][a-zA-Z0-9_-]*",k=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[m.C_BLOCK_COMMENT_MODE,w,m.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+A,relevance:0},b.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+a.join("|")+")"},{begin:"::("+s.join("|")+")"}]},{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:":",end:"[;}]",contains:[b.HEXCOLOR,b.IMPORTANT,m.CSS_NUMBER_MODE,...k,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},_]},{begin:h(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:C},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:S,attribute:r.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...k,m.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+t.join("|")+")\\b"}]}}return vZe=p,vZe}var _Ze,fgn;function tti(){if(fgn)return _Ze;fgn=1;function e(t){const r={$pattern:t.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},a="(0|[1-9][\\d_]*)",s="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",o="0[bB][01_]+",u="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",h="0[xX]"+u,f="([eE][+-]?"+s+")",p="("+s+"(\\.\\d*|"+f+")|\\d+\\."+s+"|\\."+a+f+"?)",m="(0[xX]("+u+"\\."+u+"|\\.?"+u+")[pP][+-]?"+s+")",b="("+a+"|"+o+"|"+h+")",_="("+m+"|"+p+")",w=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,S={className:"number",begin:"\\b"+b+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},C={className:"number",begin:"\\b("+_+"([fF]|L|i|[fF]i|Li)?|"+b+"(i|[fF]i|Li))",relevance:0},A={className:"string",begin:"'("+w+"|.)",end:"'",illegal:"."},I={className:"string",begin:'"',contains:[{begin:w,relevance:0}],end:'"[cwd]?'},N={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},L={className:"string",begin:"`",end:"`[cwd]?"},P={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},M={className:"string",begin:'q"\\{',end:'\\}"'},F={className:"meta",begin:"^#!",end:"$",relevance:5},U={className:"meta",begin:"#(line)",end:"$",relevance:5},$={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},G=t.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:r,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,G,P,I,N,L,M,C,S,A,F,U,$]}}return _Ze=e,_Ze}var wZe,pgn;function nti(){if(pgn)return wZe;pgn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){const s={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},o={begin:"^[-\\*]{3,}",end:"$"},u={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},h={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},f={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},m={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.+?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},b={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},_={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]};b.contains.push(_),_.contains.push(b);let w=[s,m];return b.contains=b.contains.concat(w),_.contains=_.contains.concat(w),w=w.concat(b,_),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:w},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:w}]}]},s,h,b,_,{className:"quote",begin:"^>\\s+",contains:w,end:"$"},u,o,m,f]}}return wZe=r,wZe}var EZe,ggn;function rti(){if(ggn)return EZe;ggn=1;function e(t){const r={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},a={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},s={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[t.BACKSLASH_ESCAPE,r,a]},{begin:'"""',end:'"""',contains:[t.BACKSLASH_ESCAPE,r,a]},{begin:"'",end:"'",illegal:"\\n",contains:[t.BACKSLASH_ESCAPE,r,a]},{begin:'"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE,r,a]}]};a.contains=[t.C_NUMBER_MODE,s];const o=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],u=o.map(f=>`${f}?`);return{name:"Dart",keywords:{keyword:"abstract as assert async await break case catch class const continue covariant default deferred do dynamic else enum export extends extension external factory false final finally for Function get hide if implements import in inferface is late library mixin new null on operator part required rethrow return set show static super switch sync this throw true try typedef var void while with yield",built_in:o.concat(u).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[s,t.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),t.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},t.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return EZe=e,EZe}var xZe,mgn;function iti(){if(mgn)return xZe;mgn=1;function e(t){const r="exports register file shl array record property for mod while set ally label uses raise not stored class safecall var interface or private static exit index inherited to else stdcall override shr asm far resourcestring finalization packed virtual out and protected library do xorwrite goto near function end div overload object unit begin string on inline repeat until destructor write message program with read initialization except default nil if case cdecl in downto threadvar of try pascal const external constructor type public then implementation finally published procedure absolute reintroduce operator as is abstract alias assembler bitpacked break continue cppdecl cvar enumerator experimental platform deprecated unimplemented dynamic export far16 forward generic helper implements interrupt iochecks local name nodefault noreturn nostackframe oldfpccall otherwise saveregisters softfloat specialize strict unaligned varargs ",a=[t.C_LINE_COMMENT_MODE,t.COMMENT(/\{/,/\}/,{relevance:0}),t.COMMENT(/\(\*/,/\*\)/,{relevance:10})],s={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},o={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},u={className:"number",relevance:0,variants:[{begin:"\\$[0-9A-Fa-f]+"},{begin:"&[0-7]+"},{begin:"%[01]+"}]},h={className:"string",begin:/(#\d+)+/},f={begin:t.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[t.TITLE_MODE]},p={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:r,contains:[o,h,s].concat(a)},s].concat(a)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal","freepascal","lazarus","lpr","lfm"],case_insensitive:!0,keywords:r,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[o,h,t.NUMBER_MODE,u,f,p,s].concat(a)}}return xZe=e,xZe}var SZe,bgn;function ati(){if(bgn)return SZe;bgn=1;function e(t){return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,variants:[{begin:/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/},{begin:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{begin:/^--- +\d+,\d+ +----$/}]},{className:"comment",variants:[{begin:/Index: /,end:/$/},{begin:/^index/,end:/$/},{begin:/={3,}/,end:/$/},{begin:/^-{3}/,end:/$/},{begin:/^\*{3} /,end:/$/},{begin:/^\+{3}/,end:/$/},{begin:/^\*{15}$/},{begin:/^diff --git/,end:/$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return SZe=e,SZe}var TZe,ygn;function sti(){if(ygn)return TZe;ygn=1;function e(t){const r={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[t.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),t.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[r],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[r]}]}}return TZe=e,TZe}var CZe,vgn;function oti(){if(vgn)return CZe;vgn=1;function e(t){return{name:"DNS Zone",aliases:["bind","zone"],keywords:{keyword:"IN A AAAA AFSDB APL CAA CDNSKEY CDS CERT CNAME DHCID DLV DNAME DNSKEY DS HIP IPSECKEY KEY KX LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM PTR RRSIG RP SIG SOA SRV SSHFP TA TKEY TLSA TSIG TXT"},contains:[t.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},t.inherit(t.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}return CZe=e,CZe}var AZe,_gn;function lti(){if(_gn)return AZe;_gn=1;function e(t){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:"from maintainer expose env arg user onbuild stopsignal",contains:[t.HASH_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"",illegal:"\\n"}]},r,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},o={className:"variable",begin:/&[a-z\d_]*\b/},u={className:"meta-keyword",begin:"/[a-z][a-z\\d-]*/"},h={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},f={className:"params",begin:"<",end:">",contains:[a,o]},p={className:"class",begin:/[a-zA-Z_][a-zA-Z\d_@]*\s\{/,end:/[{;=]/,returnBegin:!0,excludeEnd:!0};return{name:"Device Tree",keywords:"",contains:[{className:"class",begin:"/\\s*\\{",end:/\};/,relevance:10,contains:[o,u,h,p,f,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,a,r]},o,u,h,p,f,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,a,r,s,{begin:t.IDENT_RE+"::",keywords:""}]}}return IZe=e,IZe}var NZe,Sgn;function dti(){if(Sgn)return NZe;Sgn=1;function e(t){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[t.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}return NZe=e,NZe}var OZe,Tgn;function fti(){if(Tgn)return OZe;Tgn=1;function e(t){const r=t.COMMENT(/\(\*/,/\*\)/),a={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},o={begin:/=/,end:/[.;]/,contains:[r,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[r,a,o]}}return OZe=e,OZe}var LZe,Cgn;function pti(){if(Cgn)return LZe;Cgn=1;function e(t){const r="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",a="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",s={$pattern:r,keyword:"and false then defined module in return redo retry end for true self when next until do begin unless nil break not case cond alias while ensure or include use alias fn quote require import with|0"},o={className:"subst",begin:/#\{/,end:/\}/,keywords:s},u={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[1-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},h=`[/|([{<"']`,f={className:"string",begin:"~[a-z](?="+h+")",contains:[{endsParent:!0,contains:[{contains:[t.BACKSLASH_ESCAPE,o],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin://}]}]}]},p={className:"string",begin:"~[A-Z](?="+h+")",contains:[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin://}]},m={className:"string",contains:[t.BACKSLASH_ESCAPE,o],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},b={className:"function",beginKeywords:"def defp defmacro",end:/\B\b/,contains:[t.inherit(t.TITLE_MODE,{begin:r,endsParent:!0})]},_=t.inherit(b,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),w=[m,p,f,t.HASH_COMMENT_MODE,_,b,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[m,{begin:a}],relevance:0},{className:"symbol",begin:r+":(?!:)",relevance:0},u,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"},{begin:"->"},{begin:"("+t.RE_STARTERS_RE+")\\s*",contains:[t.HASH_COMMENT_MODE,{begin:/\/: (?=\d+\s*[,\]])/,relevance:0,contains:[u]},{className:"regexp",illegal:"\\n",contains:[t.BACKSLASH_ESCAPE,o],variants:[{begin:"/",end:"/[a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}],relevance:0}];return o.contains=w,{name:"Elixir",keywords:s,contains:w}}return LZe=e,LZe}var DZe,Agn;function gti(){if(Agn)return DZe;Agn=1;function e(t){const r={variants:[t.COMMENT("--","$"),t.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},a={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},s={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},r]},o={begin:/\{/,end:/\}/,contains:s.contains},u={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:"let in if then else case of where module import exposing type alias as infix infixl infixr port effect command subscription",contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[s,r],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[s,r],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[a,s,o,r]},{beginKeywords:"infix infixl infixr",end:"$",contains:[t.C_NUMBER_MODE,r]},{begin:"port",end:"$",keywords:"port",contains:[r]},u,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,a,t.inherit(t.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),r,{begin:"->|<-"}],illegal:/;/}}return DZe=e,DZe}var MZe,kgn;function mti(){if(kgn)return MZe;kgn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(s){return r("(?=",s,")")}function r(...s){return s.map(u=>e(u)).join("")}function a(s){const o="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",u={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor __FILE__",built_in:"proc lambda",literal:"true false nil"},h={className:"doctag",begin:"@[A-Za-z]+"},f={begin:"#<",end:">"},p=[s.COMMENT("#","$",{contains:[h]}),s.COMMENT("^=begin","^=end",{contains:[h],relevance:10}),s.COMMENT("^__END__","\\n$")],m={className:"subst",begin:/#\{/,end:/\}/,keywords:u},b={className:"string",contains:[s.BACKSLASH_ESCAPE,m],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:/<<[-~]?'?(\w+)\n(?:[^\n]*\n)*?\s*\1\b/,returnBegin:!0,contains:[{begin:/<<[-~]?'?/},s.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[s.BACKSLASH_ESCAPE,m]})]}]},_="[1-9](_?[0-9])*|0",w="[0-9](_?[0-9])*",S={className:"number",relevance:0,variants:[{begin:`\\b(${_})(\\.(${w}))?([eE][+-]?(${w})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},C={className:"params",begin:"\\(",end:"\\)",endsParent:!0,keywords:u},A=[b,{className:"class",beginKeywords:"class module",end:"$|;",illegal:/=/,contains:[s.inherit(s.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|!)?"}),{begin:"<\\s*",contains:[{begin:"("+s.IDENT_RE+"::)?"+s.IDENT_RE,relevance:0}]}].concat(p)},{className:"function",begin:r(/def\s+/,t(o+"\\s*(\\(|;|$)")),relevance:0,keywords:"def",end:"$|;",contains:[s.inherit(s.TITLE_MODE,{begin:o}),C].concat(p)},{begin:s.IDENT_RE+"::"},{className:"symbol",begin:s.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[b,{begin:o}],relevance:0},S,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,relevance:0,keywords:u},{begin:"("+s.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[s.BACKSLASH_ESCAPE,m],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(f,p),relevance:0}].concat(f,p);m.contains=A,C.contains=A;const L=[{begin:/^\s*=>/,starts:{end:"$",contains:A}},{className:"meta",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+>"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",contains:A}}];return p.unshift(f),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:u,illegal:/\/\*/,contains:[s.SHEBANG({binary:"ruby"})].concat(L).concat(p).concat(A)}}return MZe=a,MZe}var PZe,Rgn;function bti(){if(Rgn)return PZe;Rgn=1;function e(t){return{name:"ERB",subLanguage:"xml",contains:[t.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return PZe=e,PZe}var BZe,Ign;function yti(){if(Ign)return BZe;Ign=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta",begin:"^[0-9]+> ",relevance:10},a.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,{begin:t(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}return BZe=r,BZe}var FZe,Ngn;function vti(){if(Ngn)return FZe;Ngn=1;function e(t){const r="[a-z'][a-zA-Z0-9_']*",a="("+r+":"+r+"|"+r+")",s={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},o=t.COMMENT("%","$"),u={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},h={begin:"fun\\s+"+r+"/\\d+"},f={begin:a+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:a,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},p={begin:/\{/,end:/\}/,relevance:0},m={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},b={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},_={begin:"#"+t.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+t.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},w={beginKeywords:"fun receive if try case",end:"end",keywords:s};w.contains=[o,h,t.inherit(t.APOS_STRING_MODE,{className:""}),w,f,t.QUOTE_STRING_MODE,u,p,m,b,_];const S=[o,h,w,f,t.QUOTE_STRING_MODE,u,p,m,b,_];f.contains[1].contains=S,p.contains=S,_.contains[1].contains=S;const C=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"],A={className:"params",begin:"\\(",end:"\\)",contains:S};return{name:"Erlang",aliases:["erl"],keywords:s,illegal:"(",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[A,t.inherit(t.TITLE_MODE,{begin:r})],starts:{end:";|\\.",keywords:s,contains:S}},o,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+t.IDENT_RE,keyword:C.map(k=>`${k}|1.5`).join(" ")},contains:[A]},u,t.QUOTE_STRING_MODE,_,m,b,p,{begin:/\.$/}]}}return FZe=e,FZe}var $Ze,Ogn;function _ti(){if(Ogn)return $Ze;Ogn=1;function e(t){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:"ABS ACCRINT ACCRINTM ACOS ACOSH ACOT ACOTH AGGREGATE ADDRESS AMORDEGRC AMORLINC AND ARABIC AREAS ASC ASIN ASINH ATAN ATAN2 ATANH AVEDEV AVERAGE AVERAGEA AVERAGEIF AVERAGEIFS BAHTTEXT BASE BESSELI BESSELJ BESSELK BESSELY BETADIST BETA.DIST BETAINV BETA.INV BIN2DEC BIN2HEX BIN2OCT BINOMDIST BINOM.DIST BINOM.DIST.RANGE BINOM.INV BITAND BITLSHIFT BITOR BITRSHIFT BITXOR CALL CEILING CEILING.MATH CEILING.PRECISE CELL CHAR CHIDIST CHIINV CHITEST CHISQ.DIST CHISQ.DIST.RT CHISQ.INV CHISQ.INV.RT CHISQ.TEST CHOOSE CLEAN CODE COLUMN COLUMNS COMBIN COMBINA COMPLEX CONCAT CONCATENATE CONFIDENCE CONFIDENCE.NORM CONFIDENCE.T CONVERT CORREL COS COSH COT COTH COUNT COUNTA COUNTBLANK COUNTIF COUNTIFS COUPDAYBS COUPDAYS COUPDAYSNC COUPNCD COUPNUM COUPPCD COVAR COVARIANCE.P COVARIANCE.S CRITBINOM CSC CSCH CUBEKPIMEMBER CUBEMEMBER CUBEMEMBERPROPERTY CUBERANKEDMEMBER CUBESET CUBESETCOUNT CUBEVALUE CUMIPMT CUMPRINC DATE DATEDIF DATEVALUE DAVERAGE DAY DAYS DAYS360 DB DBCS DCOUNT DCOUNTA DDB DEC2BIN DEC2HEX DEC2OCT DECIMAL DEGREES DELTA DEVSQ DGET DISC DMAX DMIN DOLLAR DOLLARDE DOLLARFR DPRODUCT DSTDEV DSTDEVP DSUM DURATION DVAR DVARP EDATE EFFECT ENCODEURL EOMONTH ERF ERF.PRECISE ERFC ERFC.PRECISE ERROR.TYPE EUROCONVERT EVEN EXACT EXP EXPON.DIST EXPONDIST FACT FACTDOUBLE FALSE|0 F.DIST FDIST F.DIST.RT FILTERXML FIND FINDB F.INV F.INV.RT FINV FISHER FISHERINV FIXED FLOOR FLOOR.MATH FLOOR.PRECISE FORECAST FORECAST.ETS FORECAST.ETS.CONFINT FORECAST.ETS.SEASONALITY FORECAST.ETS.STAT FORECAST.LINEAR FORMULATEXT FREQUENCY F.TEST FTEST FV FVSCHEDULE GAMMA GAMMA.DIST GAMMADIST GAMMA.INV GAMMAINV GAMMALN GAMMALN.PRECISE GAUSS GCD GEOMEAN GESTEP GETPIVOTDATA GROWTH HARMEAN HEX2BIN HEX2DEC HEX2OCT HLOOKUP HOUR HYPERLINK HYPGEOM.DIST HYPGEOMDIST IF IFERROR IFNA IFS IMABS IMAGINARY IMARGUMENT IMCONJUGATE IMCOS IMCOSH IMCOT IMCSC IMCSCH IMDIV IMEXP IMLN IMLOG10 IMLOG2 IMPOWER IMPRODUCT IMREAL IMSEC IMSECH IMSIN IMSINH IMSQRT IMSUB IMSUM IMTAN INDEX INDIRECT INFO INT INTERCEPT INTRATE IPMT IRR ISBLANK ISERR ISERROR ISEVEN ISFORMULA ISLOGICAL ISNA ISNONTEXT ISNUMBER ISODD ISREF ISTEXT ISO.CEILING ISOWEEKNUM ISPMT JIS KURT LARGE LCM LEFT LEFTB LEN LENB LINEST LN LOG LOG10 LOGEST LOGINV LOGNORM.DIST LOGNORMDIST LOGNORM.INV LOOKUP LOWER MATCH MAX MAXA MAXIFS MDETERM MDURATION MEDIAN MID MIDBs MIN MINIFS MINA MINUTE MINVERSE MIRR MMULT MOD MODE MODE.MULT MODE.SNGL MONTH MROUND MULTINOMIAL MUNIT N NA NEGBINOM.DIST NEGBINOMDIST NETWORKDAYS NETWORKDAYS.INTL NOMINAL NORM.DIST NORMDIST NORMINV NORM.INV NORM.S.DIST NORMSDIST NORM.S.INV NORMSINV NOT NOW NPER NPV NUMBERVALUE OCT2BIN OCT2DEC OCT2HEX ODD ODDFPRICE ODDFYIELD ODDLPRICE ODDLYIELD OFFSET OR PDURATION PEARSON PERCENTILE.EXC PERCENTILE.INC PERCENTILE PERCENTRANK.EXC PERCENTRANK.INC PERCENTRANK PERMUT PERMUTATIONA PHI PHONETIC PI PMT POISSON.DIST POISSON POWER PPMT PRICE PRICEDISC PRICEMAT PROB PRODUCT PROPER PV QUARTILE QUARTILE.EXC QUARTILE.INC QUOTIENT RADIANS RAND RANDBETWEEN RANK.AVG RANK.EQ RANK RATE RECEIVED REGISTER.ID REPLACE REPLACEB REPT RIGHT RIGHTB ROMAN ROUND ROUNDDOWN ROUNDUP ROW ROWS RRI RSQ RTD SEARCH SEARCHB SEC SECH SECOND SERIESSUM SHEET SHEETS SIGN SIN SINH SKEW SKEW.P SLN SLOPE SMALL SQL.REQUEST SQRT SQRTPI STANDARDIZE STDEV STDEV.P STDEV.S STDEVA STDEVP STDEVPA STEYX SUBSTITUTE SUBTOTAL SUM SUMIF SUMIFS SUMPRODUCT SUMSQ SUMX2MY2 SUMX2PY2 SUMXMY2 SWITCH SYD T TAN TANH TBILLEQ TBILLPRICE TBILLYIELD T.DIST T.DIST.2T T.DIST.RT TDIST TEXT TEXTJOIN TIME TIMEVALUE T.INV T.INV.2T TINV TODAY TRANSPOSE TREND TRIM TRIMMEAN TRUE|0 TRUNC T.TEST TTEST TYPE UNICHAR UNICODE UPPER VALUE VAR VAR.P VAR.S VARA VARP VARPA VDB VLOOKUP WEBSERVICE WEEKDAY WEEKNUM WEIBULL WEIBULL.DIST WORKDAY WORKDAY.INTL XIRR XNPV XOR YEAR YEARFRAC YIELD YIELDDISC YIELDMAT Z.TEST ZTEST"},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},t.BACKSLASH_ESCAPE,t.QUOTE_STRING_MODE,{className:"number",begin:t.NUMBER_RE+"(%)?",relevance:0},t.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}return $Ze=e,$Ze}var UZe,Lgn;function wti(){if(Lgn)return UZe;Lgn=1;function e(t){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}return UZe=e,UZe}var zZe,Dgn;function Eti(){if(Dgn)return zZe;Dgn=1;function e(t){const r={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},a={className:"string",variants:[{begin:'"',end:'"'}]},o={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{literal:"true false",keyword:"case class def else enum if impl import in lat rel index let match namespace switch type yield with"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,r,a,o,t.C_NUMBER_MODE]}}return zZe=e,zZe}var GZe,Mgn;function xti(){if(Mgn)return GZe;Mgn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){const s={className:"params",begin:"\\(",end:"\\)"},o={variants:[a.COMMENT("!","$",{relevance:0}),a.COMMENT("^C[ ]","$",{relevance:0}),a.COMMENT("^C$","$",{relevance:0})]},u=/(_[a-z_\d]+)?/,h=/([de][+-]?\d+)?/,f={className:"number",variants:[{begin:t(/\b\d+/,/\.(\d*)/,h,u)},{begin:t(/\b\d+/,h,u)},{begin:t(/\.\d+/,h,u)}],relevance:0},p={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[a.UNDERSCORE_TITLE_MODE,s]},m={className:"string",relevance:0,variants:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{literal:".False. .True.",keyword:"kind do concurrent local shared while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then block endblock endassociate public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure impure integer real character complex logical codimension dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image sync change team co_broadcast co_max co_min co_sum co_reduce"},illegal:/\/\*/,contains:[m,p,{begin:/^C\s*=(?!=)/,relevance:0},o,f]}}return GZe=r,GZe}var qZe,Pgn;function Sti(){if(Pgn)return qZe;Pgn=1;function e(t){const r={begin:"<",end:">",contains:[t.inherit(t.TITLE_MODE,{begin:/'[a-zA-Z0-9_]+/})]};return{name:"F#",aliases:["fs"],keywords:"abstract and as assert base begin class default delegate do done downcast downto elif else end exception extern false finally for fun function global if in inherit inline interface internal lazy let match member module mutable namespace new null of open or override private public rec return sig static struct then to true try type upcast use val void when while with yield",illegal:/\/\*/,contains:[{className:"keyword",begin:/\b(yield|return|let|do)!/},{className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:'"""',end:'"""'},t.COMMENT("\\(\\*(\\s)","\\*\\)",{contains:["self"]}),{className:"class",beginKeywords:"type",end:"\\(|=|$",excludeEnd:!0,contains:[t.UNDERSCORE_TITLE_MODE,r]},{className:"meta",begin:"\\[<",end:">\\]",relevance:10},{className:"symbol",begin:"\\B('[A-Za-z])\\b",contains:[t.BACKSLASH_ESCAPE]},t.C_LINE_COMMENT_MODE,t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),t.C_NUMBER_MODE]}}return qZe=e,qZe}var HZe,Bgn;function Tti(){if(Bgn)return HZe;Bgn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(s){return r("(",s,")*")}function r(...s){return s.map(u=>e(u)).join("")}function a(s){const o={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},u={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},h={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},f={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[s.BACKSLASH_ESCAPE]},p={begin:"/",end:"/",keywords:o,contains:[f,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,s.C_NUMBER_MODE]},m=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,b={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[f,p,{className:"comment",begin:r(m,t(r(/[ ]+/,m))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:o,contains:[s.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"meta-keyword",begin:"^\\$[a-z0-9]+"}]},s.COMMENT("^\\*","$"),s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[s.COMMENT("^\\*","$"),s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,p,b]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[b]},s.COMMENT("^\\*","$"),s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,s.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},u,h]},s.C_NUMBER_MODE,h]}}return HZe=a,HZe}var VZe,Fgn;function Cti(){if(Fgn)return VZe;Fgn=1;function e(t){const r={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},a=t.COMMENT("@","@"),s={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{"meta-keyword":"include"},contains:[{className:"meta-string",begin:'"',end:'"',illegal:"\\n"}]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,a]},o={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:t.UNDERSCORE_IDENT_RE,relevance:0}]},u=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,a,o]}],h={className:"title",begin:t.UNDERSCORE_IDENT_RE,relevance:0},f=function(w,S,C){const A=t.inherit({className:"function",beginKeywords:w,end:S,excludeEnd:!0,contains:[].concat(u)},{});return A.contains.push(h),A.contains.push(t.C_NUMBER_MODE),A.contains.push(t.C_BLOCK_COMMENT_MODE),A.contains.push(a),A},p={className:"built_in",begin:"\\b("+r.built_in.split(" ").join("|")+")\\b"},m={className:"string",begin:'"',end:'"',contains:[t.BACKSLASH_ESCAPE],relevance:0},b={begin:t.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:r,relevance:0,contains:[{beginKeywords:r.keyword},p,{className:"built_in",begin:t.UNDERSCORE_IDENT_RE,relevance:0}]},_={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:r.built_in,literal:r.literal},contains:[t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,a,p,b,m,"self"]};return b.contains.push(_),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:r,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,a,m,s,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},f("proc keyword",";"),f("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[t.C_BLOCK_COMMENT_MODE,a,_]},{variants:[{begin:t.UNDERSCORE_IDENT_RE+"\\."+t.UNDERSCORE_IDENT_RE},{begin:t.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},b,o]}}return VZe=e,VZe}var YZe,$gn;function Ati(){if($gn)return YZe;$gn=1;function e(t){const r="[A-Z_][A-Z0-9_.]*",a="%",s={$pattern:r,keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},o={className:"meta",begin:"([O])([0-9]+)"},u=t.inherit(t.C_NUMBER_MODE,{begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+t.C_NUMBER_RE}),h=[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT(/\(/,/\)/),u,t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",contains:[u],end:"\\]"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,keywords:s,contains:[{className:"meta",begin:a},o].concat(h)}}return YZe=e,YZe}var jZe,Ugn;function kti(){if(Ugn)return jZe;Ugn=1;function e(t){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},t.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},t.QUOTE_STRING_MODE]}}return jZe=e,jZe}var WZe,zgn;function Rti(){if(zgn)return WZe;zgn=1;function e(t){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}return WZe=e,WZe}var KZe,Ggn;function Iti(){if(Ggn)return KZe;Ggn=1;function e(t){return{name:"GML",case_insensitive:!1,keywords:{keyword:"begin end if then else while do for break continue with until repeat exit and or xor not return mod div switch case default var globalvar enum function constructor delete #macro #region #endregion",built_in:"is_real is_string is_array is_undefined is_int32 is_int64 is_ptr is_vec3 is_vec4 is_matrix is_bool is_method is_struct is_infinity is_nan is_numeric typeof variable_global_exists variable_global_get variable_global_set variable_instance_exists variable_instance_get variable_instance_set variable_instance_get_names variable_struct_exists variable_struct_get variable_struct_get_names variable_struct_names_count variable_struct_remove variable_struct_set array_delete array_insert array_length array_length_1d array_length_2d array_height_2d array_equals array_create array_copy array_pop array_push array_resize array_sort random random_range irandom irandom_range random_set_seed random_get_seed randomize randomise choose abs round floor ceil sign frac sqrt sqr exp ln log2 log10 sin cos tan arcsin arccos arctan arctan2 dsin dcos dtan darcsin darccos darctan darctan2 degtorad radtodeg power logn min max mean median clamp lerp dot_product dot_product_3d dot_product_normalised dot_product_3d_normalised dot_product_normalized dot_product_3d_normalized math_set_epsilon math_get_epsilon angle_difference point_distance_3d point_distance point_direction lengthdir_x lengthdir_y real string int64 ptr string_format chr ansi_char ord string_length string_byte_length string_pos string_copy string_char_at string_ord_at string_byte_at string_set_byte_at string_delete string_insert string_lower string_upper string_repeat string_letters string_digits string_lettersdigits string_replace string_replace_all string_count string_hash_to_newline clipboard_has_text clipboard_set_text clipboard_get_text date_current_datetime date_create_datetime date_valid_datetime date_inc_year date_inc_month date_inc_week date_inc_day date_inc_hour date_inc_minute date_inc_second date_get_year date_get_month date_get_week date_get_day date_get_hour date_get_minute date_get_second date_get_weekday date_get_day_of_year date_get_hour_of_year date_get_minute_of_year date_get_second_of_year date_year_span date_month_span date_week_span date_day_span date_hour_span date_minute_span date_second_span date_compare_datetime date_compare_date date_compare_time date_date_of date_time_of date_datetime_string date_date_string date_time_string date_days_in_month date_days_in_year date_leap_year date_is_today date_set_timezone date_get_timezone game_set_speed game_get_speed motion_set motion_add place_free place_empty place_meeting place_snapped move_random move_snap move_towards_point move_contact_solid move_contact_all move_outside_solid move_outside_all move_bounce_solid move_bounce_all move_wrap distance_to_point distance_to_object position_empty position_meeting path_start path_end mp_linear_step mp_potential_step mp_linear_step_object mp_potential_step_object mp_potential_settings mp_linear_path mp_potential_path mp_linear_path_object mp_potential_path_object mp_grid_create mp_grid_destroy mp_grid_clear_all mp_grid_clear_cell mp_grid_clear_rectangle mp_grid_add_cell mp_grid_get_cell mp_grid_add_rectangle mp_grid_add_instances mp_grid_path mp_grid_draw mp_grid_to_ds_grid collision_point collision_rectangle collision_circle collision_ellipse collision_line collision_point_list collision_rectangle_list collision_circle_list collision_ellipse_list collision_line_list instance_position_list instance_place_list point_in_rectangle point_in_triangle point_in_circle rectangle_in_rectangle rectangle_in_triangle rectangle_in_circle instance_find instance_exists instance_number instance_position instance_nearest instance_furthest instance_place instance_create_depth instance_create_layer instance_copy instance_change instance_destroy position_destroy position_change instance_id_get instance_deactivate_all instance_deactivate_object instance_deactivate_region instance_activate_all instance_activate_object instance_activate_region room_goto room_goto_previous room_goto_next room_previous room_next room_restart game_end game_restart game_load game_save game_save_buffer game_load_buffer event_perform event_user event_perform_object event_inherited show_debug_message show_debug_overlay debug_event debug_get_callstack alarm_get alarm_set font_texture_page_size keyboard_set_map keyboard_get_map keyboard_unset_map keyboard_check keyboard_check_pressed keyboard_check_released keyboard_check_direct keyboard_get_numlock keyboard_set_numlock keyboard_key_press keyboard_key_release keyboard_clear io_clear mouse_check_button mouse_check_button_pressed mouse_check_button_released mouse_wheel_up mouse_wheel_down mouse_clear draw_self draw_sprite draw_sprite_pos draw_sprite_ext draw_sprite_stretched draw_sprite_stretched_ext draw_sprite_tiled draw_sprite_tiled_ext draw_sprite_part draw_sprite_part_ext draw_sprite_general draw_clear draw_clear_alpha draw_point draw_line draw_line_width draw_rectangle draw_roundrect draw_roundrect_ext draw_triangle draw_circle draw_ellipse draw_set_circle_precision draw_arrow draw_button draw_path draw_healthbar draw_getpixel draw_getpixel_ext draw_set_colour draw_set_color draw_set_alpha draw_get_colour draw_get_color draw_get_alpha merge_colour make_colour_rgb make_colour_hsv colour_get_red colour_get_green colour_get_blue colour_get_hue colour_get_saturation colour_get_value merge_color make_color_rgb make_color_hsv color_get_red color_get_green color_get_blue color_get_hue color_get_saturation color_get_value merge_color screen_save screen_save_part draw_set_font draw_set_halign draw_set_valign draw_text draw_text_ext string_width string_height string_width_ext string_height_ext draw_text_transformed draw_text_ext_transformed draw_text_colour draw_text_ext_colour draw_text_transformed_colour draw_text_ext_transformed_colour draw_text_color draw_text_ext_color draw_text_transformed_color draw_text_ext_transformed_color draw_point_colour draw_line_colour draw_line_width_colour draw_rectangle_colour draw_roundrect_colour draw_roundrect_colour_ext draw_triangle_colour draw_circle_colour draw_ellipse_colour draw_point_color draw_line_color draw_line_width_color draw_rectangle_color draw_roundrect_color draw_roundrect_color_ext draw_triangle_color draw_circle_color draw_ellipse_color draw_primitive_begin draw_vertex draw_vertex_colour draw_vertex_color draw_primitive_end sprite_get_uvs font_get_uvs sprite_get_texture font_get_texture texture_get_width texture_get_height texture_get_uvs draw_primitive_begin_texture draw_vertex_texture draw_vertex_texture_colour draw_vertex_texture_color texture_global_scale surface_create surface_create_ext surface_resize surface_free surface_exists surface_get_width surface_get_height surface_get_texture surface_set_target surface_set_target_ext surface_reset_target surface_depth_disable surface_get_depth_disable draw_surface draw_surface_stretched draw_surface_tiled draw_surface_part draw_surface_ext draw_surface_stretched_ext draw_surface_tiled_ext draw_surface_part_ext draw_surface_general surface_getpixel surface_getpixel_ext surface_save surface_save_part surface_copy surface_copy_part application_surface_draw_enable application_get_position application_surface_enable application_surface_is_enabled display_get_width display_get_height display_get_orientation display_get_gui_width display_get_gui_height display_reset display_mouse_get_x display_mouse_get_y display_mouse_set display_set_ui_visibility window_set_fullscreen window_get_fullscreen window_set_caption window_set_min_width window_set_max_width window_set_min_height window_set_max_height window_get_visible_rects window_get_caption window_set_cursor window_get_cursor window_set_colour window_get_colour window_set_color window_get_color window_set_position window_set_size window_set_rectangle window_center window_get_x window_get_y window_get_width window_get_height window_mouse_get_x window_mouse_get_y window_mouse_set window_view_mouse_get_x window_view_mouse_get_y window_views_mouse_get_x window_views_mouse_get_y audio_listener_position audio_listener_velocity audio_listener_orientation audio_emitter_position audio_emitter_create audio_emitter_free audio_emitter_exists audio_emitter_pitch audio_emitter_velocity audio_emitter_falloff audio_emitter_gain audio_play_sound audio_play_sound_on audio_play_sound_at audio_stop_sound audio_resume_music audio_music_is_playing audio_resume_sound audio_pause_sound audio_pause_music audio_channel_num audio_sound_length audio_get_type audio_falloff_set_model audio_play_music audio_stop_music audio_master_gain audio_music_gain audio_sound_gain audio_sound_pitch audio_stop_all audio_resume_all audio_pause_all audio_is_playing audio_is_paused audio_exists audio_sound_set_track_position audio_sound_get_track_position audio_emitter_get_gain audio_emitter_get_pitch audio_emitter_get_x audio_emitter_get_y audio_emitter_get_z audio_emitter_get_vx audio_emitter_get_vy audio_emitter_get_vz audio_listener_set_position audio_listener_set_velocity audio_listener_set_orientation audio_listener_get_data audio_set_master_gain audio_get_master_gain audio_sound_get_gain audio_sound_get_pitch audio_get_name audio_sound_set_track_position audio_sound_get_track_position audio_create_stream audio_destroy_stream audio_create_sync_group audio_destroy_sync_group audio_play_in_sync_group audio_start_sync_group audio_stop_sync_group audio_pause_sync_group audio_resume_sync_group audio_sync_group_get_track_pos audio_sync_group_debug audio_sync_group_is_playing audio_debug audio_group_load audio_group_unload audio_group_is_loaded audio_group_load_progress audio_group_name audio_group_stop_all audio_group_set_gain audio_create_buffer_sound audio_free_buffer_sound audio_create_play_queue audio_free_play_queue audio_queue_sound audio_get_recorder_count audio_get_recorder_info audio_start_recording audio_stop_recording audio_sound_get_listener_mask audio_emitter_get_listener_mask audio_get_listener_mask audio_sound_set_listener_mask audio_emitter_set_listener_mask audio_set_listener_mask audio_get_listener_count audio_get_listener_info audio_system show_message show_message_async clickable_add clickable_add_ext clickable_change clickable_change_ext clickable_delete clickable_exists clickable_set_style show_question show_question_async get_integer get_string get_integer_async get_string_async get_login_async get_open_filename get_save_filename get_open_filename_ext get_save_filename_ext show_error highscore_clear highscore_add highscore_value highscore_name draw_highscore sprite_exists sprite_get_name sprite_get_number sprite_get_width sprite_get_height sprite_get_xoffset sprite_get_yoffset sprite_get_bbox_left sprite_get_bbox_right sprite_get_bbox_top sprite_get_bbox_bottom sprite_save sprite_save_strip sprite_set_cache_size sprite_set_cache_size_ext sprite_get_tpe sprite_prefetch sprite_prefetch_multi sprite_flush sprite_flush_multi sprite_set_speed sprite_get_speed_type sprite_get_speed font_exists font_get_name font_get_fontname font_get_bold font_get_italic font_get_first font_get_last font_get_size font_set_cache_size path_exists path_get_name path_get_length path_get_time path_get_kind path_get_closed path_get_precision path_get_number path_get_point_x path_get_point_y path_get_point_speed path_get_x path_get_y path_get_speed script_exists script_get_name timeline_add timeline_delete timeline_clear timeline_exists timeline_get_name timeline_moment_clear timeline_moment_add_script timeline_size timeline_max_moment object_exists object_get_name object_get_sprite object_get_solid object_get_visible object_get_persistent object_get_mask object_get_parent object_get_physics object_is_ancestor room_exists room_get_name sprite_set_offset sprite_duplicate sprite_assign sprite_merge sprite_add sprite_replace sprite_create_from_surface sprite_add_from_surface sprite_delete sprite_set_alpha_from_sprite sprite_collision_mask font_add_enable_aa font_add_get_enable_aa font_add font_add_sprite font_add_sprite_ext font_replace font_replace_sprite font_replace_sprite_ext font_delete path_set_kind path_set_closed path_set_precision path_add path_assign path_duplicate path_append path_delete path_add_point path_insert_point path_change_point path_delete_point path_clear_points path_reverse path_mirror path_flip path_rotate path_rescale path_shift script_execute object_set_sprite object_set_solid object_set_visible object_set_persistent object_set_mask room_set_width room_set_height room_set_persistent room_set_background_colour room_set_background_color room_set_view room_set_viewport room_get_viewport room_set_view_enabled room_add room_duplicate room_assign room_instance_add room_instance_clear room_get_camera room_set_camera asset_get_index asset_get_type file_text_open_from_string file_text_open_read file_text_open_write file_text_open_append file_text_close file_text_write_string file_text_write_real file_text_writeln file_text_read_string file_text_read_real file_text_readln file_text_eof file_text_eoln file_exists file_delete file_rename file_copy directory_exists directory_create directory_destroy file_find_first file_find_next file_find_close file_attributes filename_name filename_path filename_dir filename_drive filename_ext filename_change_ext file_bin_open file_bin_rewrite file_bin_close file_bin_position file_bin_size file_bin_seek file_bin_write_byte file_bin_read_byte parameter_count parameter_string environment_get_variable ini_open_from_string ini_open ini_close ini_read_string ini_read_real ini_write_string ini_write_real ini_key_exists ini_section_exists ini_key_delete ini_section_delete ds_set_precision ds_exists ds_stack_create ds_stack_destroy ds_stack_clear ds_stack_copy ds_stack_size ds_stack_empty ds_stack_push ds_stack_pop ds_stack_top ds_stack_write ds_stack_read ds_queue_create ds_queue_destroy ds_queue_clear ds_queue_copy ds_queue_size ds_queue_empty ds_queue_enqueue ds_queue_dequeue ds_queue_head ds_queue_tail ds_queue_write ds_queue_read ds_list_create ds_list_destroy ds_list_clear ds_list_copy ds_list_size ds_list_empty ds_list_add ds_list_insert ds_list_replace ds_list_delete ds_list_find_index ds_list_find_value ds_list_mark_as_list ds_list_mark_as_map ds_list_sort ds_list_shuffle ds_list_write ds_list_read ds_list_set ds_map_create ds_map_destroy ds_map_clear ds_map_copy ds_map_size ds_map_empty ds_map_add ds_map_add_list ds_map_add_map ds_map_replace ds_map_replace_map ds_map_replace_list ds_map_delete ds_map_exists ds_map_find_value ds_map_find_previous ds_map_find_next ds_map_find_first ds_map_find_last ds_map_write ds_map_read ds_map_secure_save ds_map_secure_load ds_map_secure_load_buffer ds_map_secure_save_buffer ds_map_set ds_priority_create ds_priority_destroy ds_priority_clear ds_priority_copy ds_priority_size ds_priority_empty ds_priority_add ds_priority_change_priority ds_priority_find_priority ds_priority_delete_value ds_priority_delete_min ds_priority_find_min ds_priority_delete_max ds_priority_find_max ds_priority_write ds_priority_read ds_grid_create ds_grid_destroy ds_grid_copy ds_grid_resize ds_grid_width ds_grid_height ds_grid_clear ds_grid_set ds_grid_add ds_grid_multiply ds_grid_set_region ds_grid_add_region ds_grid_multiply_region ds_grid_set_disk ds_grid_add_disk ds_grid_multiply_disk ds_grid_set_grid_region ds_grid_add_grid_region ds_grid_multiply_grid_region ds_grid_get ds_grid_get_sum ds_grid_get_max ds_grid_get_min ds_grid_get_mean ds_grid_get_disk_sum ds_grid_get_disk_min ds_grid_get_disk_max ds_grid_get_disk_mean ds_grid_value_exists ds_grid_value_x ds_grid_value_y ds_grid_value_disk_exists ds_grid_value_disk_x ds_grid_value_disk_y ds_grid_shuffle ds_grid_write ds_grid_read ds_grid_sort ds_grid_set ds_grid_get effect_create_below effect_create_above effect_clear part_type_create part_type_destroy part_type_exists part_type_clear part_type_shape part_type_sprite part_type_size part_type_scale part_type_orientation part_type_life part_type_step part_type_death part_type_speed part_type_direction part_type_gravity part_type_colour1 part_type_colour2 part_type_colour3 part_type_colour_mix part_type_colour_rgb part_type_colour_hsv part_type_color1 part_type_color2 part_type_color3 part_type_color_mix part_type_color_rgb part_type_color_hsv part_type_alpha1 part_type_alpha2 part_type_alpha3 part_type_blend part_system_create part_system_create_layer part_system_destroy part_system_exists part_system_clear part_system_draw_order part_system_depth part_system_position part_system_automatic_update part_system_automatic_draw part_system_update part_system_drawit part_system_get_layer part_system_layer part_particles_create part_particles_create_colour part_particles_create_color part_particles_clear part_particles_count part_emitter_create part_emitter_destroy part_emitter_destroy_all part_emitter_exists part_emitter_clear part_emitter_region part_emitter_burst part_emitter_stream external_call external_define external_free window_handle window_device matrix_get matrix_set matrix_build_identity matrix_build matrix_build_lookat matrix_build_projection_ortho matrix_build_projection_perspective matrix_build_projection_perspective_fov matrix_multiply matrix_transform_vertex matrix_stack_push matrix_stack_pop matrix_stack_multiply matrix_stack_set matrix_stack_clear matrix_stack_top matrix_stack_is_empty browser_input_capture os_get_config os_get_info os_get_language os_get_region os_lock_orientation display_get_dpi_x display_get_dpi_y display_set_gui_size display_set_gui_maximise display_set_gui_maximize device_mouse_dbclick_enable display_set_timing_method display_get_timing_method display_set_sleep_margin display_get_sleep_margin virtual_key_add virtual_key_hide virtual_key_delete virtual_key_show draw_enable_drawevent draw_enable_swf_aa draw_set_swf_aa_level draw_get_swf_aa_level draw_texture_flush draw_flush gpu_set_blendenable gpu_set_ztestenable gpu_set_zfunc gpu_set_zwriteenable gpu_set_lightingenable gpu_set_fog gpu_set_cullmode gpu_set_blendmode gpu_set_blendmode_ext gpu_set_blendmode_ext_sepalpha gpu_set_colorwriteenable gpu_set_colourwriteenable gpu_set_alphatestenable gpu_set_alphatestref gpu_set_alphatestfunc gpu_set_texfilter gpu_set_texfilter_ext gpu_set_texrepeat gpu_set_texrepeat_ext gpu_set_tex_filter gpu_set_tex_filter_ext gpu_set_tex_repeat gpu_set_tex_repeat_ext gpu_set_tex_mip_filter gpu_set_tex_mip_filter_ext gpu_set_tex_mip_bias gpu_set_tex_mip_bias_ext gpu_set_tex_min_mip gpu_set_tex_min_mip_ext gpu_set_tex_max_mip gpu_set_tex_max_mip_ext gpu_set_tex_max_aniso gpu_set_tex_max_aniso_ext gpu_set_tex_mip_enable gpu_set_tex_mip_enable_ext gpu_get_blendenable gpu_get_ztestenable gpu_get_zfunc gpu_get_zwriteenable gpu_get_lightingenable gpu_get_fog gpu_get_cullmode gpu_get_blendmode gpu_get_blendmode_ext gpu_get_blendmode_ext_sepalpha gpu_get_blendmode_src gpu_get_blendmode_dest gpu_get_blendmode_srcalpha gpu_get_blendmode_destalpha gpu_get_colorwriteenable gpu_get_colourwriteenable gpu_get_alphatestenable gpu_get_alphatestref gpu_get_alphatestfunc gpu_get_texfilter gpu_get_texfilter_ext gpu_get_texrepeat gpu_get_texrepeat_ext gpu_get_tex_filter gpu_get_tex_filter_ext gpu_get_tex_repeat gpu_get_tex_repeat_ext gpu_get_tex_mip_filter gpu_get_tex_mip_filter_ext gpu_get_tex_mip_bias gpu_get_tex_mip_bias_ext gpu_get_tex_min_mip gpu_get_tex_min_mip_ext gpu_get_tex_max_mip gpu_get_tex_max_mip_ext gpu_get_tex_max_aniso gpu_get_tex_max_aniso_ext gpu_get_tex_mip_enable gpu_get_tex_mip_enable_ext gpu_push_state gpu_pop_state gpu_get_state gpu_set_state draw_light_define_ambient draw_light_define_direction draw_light_define_point draw_light_enable draw_set_lighting draw_light_get_ambient draw_light_get draw_get_lighting shop_leave_rating url_get_domain url_open url_open_ext url_open_full get_timer achievement_login achievement_logout achievement_post achievement_increment achievement_post_score achievement_available achievement_show_achievements achievement_show_leaderboards achievement_load_friends achievement_load_leaderboard achievement_send_challenge achievement_load_progress achievement_reset achievement_login_status achievement_get_pic achievement_show_challenge_notifications achievement_get_challenges achievement_event achievement_show achievement_get_info cloud_file_save cloud_string_save cloud_synchronise ads_enable ads_disable ads_setup ads_engagement_launch ads_engagement_available ads_engagement_active ads_event ads_event_preload ads_set_reward_callback ads_get_display_height ads_get_display_width ads_move ads_interstitial_available ads_interstitial_display device_get_tilt_x device_get_tilt_y device_get_tilt_z device_is_keypad_open device_mouse_check_button device_mouse_check_button_pressed device_mouse_check_button_released device_mouse_x device_mouse_y device_mouse_raw_x device_mouse_raw_y device_mouse_x_to_gui device_mouse_y_to_gui iap_activate iap_status iap_enumerate_products iap_restore_all iap_acquire iap_consume iap_product_details iap_purchase_details facebook_init facebook_login facebook_status facebook_graph_request facebook_dialog facebook_logout facebook_launch_offerwall facebook_post_message facebook_send_invite facebook_user_id facebook_accesstoken facebook_check_permission facebook_request_read_permissions facebook_request_publish_permissions gamepad_is_supported gamepad_get_device_count gamepad_is_connected gamepad_get_description gamepad_get_button_threshold gamepad_set_button_threshold gamepad_get_axis_deadzone gamepad_set_axis_deadzone gamepad_button_count gamepad_button_check gamepad_button_check_pressed gamepad_button_check_released gamepad_button_value gamepad_axis_count gamepad_axis_value gamepad_set_vibration gamepad_set_colour gamepad_set_color os_is_paused window_has_focus code_is_compiled http_get http_get_file http_post_string http_request json_encode json_decode zip_unzip load_csv base64_encode base64_decode md5_string_unicode md5_string_utf8 md5_file os_is_network_connected sha1_string_unicode sha1_string_utf8 sha1_file os_powersave_enable analytics_event analytics_event_ext win8_livetile_tile_notification win8_livetile_tile_clear win8_livetile_badge_notification win8_livetile_badge_clear win8_livetile_queue_enable win8_secondarytile_pin win8_secondarytile_badge_notification win8_secondarytile_delete win8_livetile_notification_begin win8_livetile_notification_secondary_begin win8_livetile_notification_expiry win8_livetile_notification_tag win8_livetile_notification_text_add win8_livetile_notification_image_add win8_livetile_notification_end win8_appbar_enable win8_appbar_add_element win8_appbar_remove_element win8_settingscharm_add_entry win8_settingscharm_add_html_entry win8_settingscharm_add_xaml_entry win8_settingscharm_set_xaml_property win8_settingscharm_get_xaml_property win8_settingscharm_remove_entry win8_share_image win8_share_screenshot win8_share_file win8_share_url win8_share_text win8_search_enable win8_search_disable win8_search_add_suggestions win8_device_touchscreen_available win8_license_initialize_sandbox win8_license_trial_version winphone_license_trial_version winphone_tile_title winphone_tile_count winphone_tile_back_title winphone_tile_back_content winphone_tile_back_content_wide winphone_tile_front_image winphone_tile_front_image_small winphone_tile_front_image_wide winphone_tile_back_image winphone_tile_back_image_wide winphone_tile_background_colour winphone_tile_background_color winphone_tile_icon_image winphone_tile_small_icon_image winphone_tile_wide_content winphone_tile_cycle_images winphone_tile_small_background_image physics_world_create physics_world_gravity physics_world_update_speed physics_world_update_iterations physics_world_draw_debug physics_pause_enable physics_fixture_create physics_fixture_set_kinematic physics_fixture_set_density physics_fixture_set_awake physics_fixture_set_restitution physics_fixture_set_friction physics_fixture_set_collision_group physics_fixture_set_sensor physics_fixture_set_linear_damping physics_fixture_set_angular_damping physics_fixture_set_circle_shape physics_fixture_set_box_shape physics_fixture_set_edge_shape physics_fixture_set_polygon_shape physics_fixture_set_chain_shape physics_fixture_add_point physics_fixture_bind physics_fixture_bind_ext physics_fixture_delete physics_apply_force physics_apply_impulse physics_apply_angular_impulse physics_apply_local_force physics_apply_local_impulse physics_apply_torque physics_mass_properties physics_draw_debug physics_test_overlap physics_remove_fixture physics_set_friction physics_set_density physics_set_restitution physics_get_friction physics_get_density physics_get_restitution physics_joint_distance_create physics_joint_rope_create physics_joint_revolute_create physics_joint_prismatic_create physics_joint_pulley_create physics_joint_wheel_create physics_joint_weld_create physics_joint_friction_create physics_joint_gear_create physics_joint_enable_motor physics_joint_get_value physics_joint_set_value physics_joint_delete physics_particle_create physics_particle_delete physics_particle_delete_region_circle physics_particle_delete_region_box physics_particle_delete_region_poly physics_particle_set_flags physics_particle_set_category_flags physics_particle_draw physics_particle_draw_ext physics_particle_count physics_particle_get_data physics_particle_get_data_particle physics_particle_group_begin physics_particle_group_circle physics_particle_group_box physics_particle_group_polygon physics_particle_group_add_point physics_particle_group_end physics_particle_group_join physics_particle_group_delete physics_particle_group_count physics_particle_group_get_data physics_particle_group_get_mass physics_particle_group_get_inertia physics_particle_group_get_centre_x physics_particle_group_get_centre_y physics_particle_group_get_vel_x physics_particle_group_get_vel_y physics_particle_group_get_ang_vel physics_particle_group_get_x physics_particle_group_get_y physics_particle_group_get_angle physics_particle_set_group_flags physics_particle_get_group_flags physics_particle_get_max_count physics_particle_get_radius physics_particle_get_density physics_particle_get_damping physics_particle_get_gravity_scale physics_particle_set_max_count physics_particle_set_radius physics_particle_set_density physics_particle_set_damping physics_particle_set_gravity_scale network_create_socket network_create_socket_ext network_create_server network_create_server_raw network_connect network_connect_raw network_send_packet network_send_raw network_send_broadcast network_send_udp network_send_udp_raw network_set_timeout network_set_config network_resolve network_destroy buffer_create buffer_write buffer_read buffer_seek buffer_get_surface buffer_set_surface buffer_delete buffer_exists buffer_get_type buffer_get_alignment buffer_poke buffer_peek buffer_save buffer_save_ext buffer_load buffer_load_ext buffer_load_partial buffer_copy buffer_fill buffer_get_size buffer_tell buffer_resize buffer_md5 buffer_sha1 buffer_base64_encode buffer_base64_decode buffer_base64_decode_ext buffer_sizeof buffer_get_address buffer_create_from_vertex_buffer buffer_create_from_vertex_buffer_ext buffer_copy_from_vertex_buffer buffer_async_group_begin buffer_async_group_option buffer_async_group_end buffer_load_async buffer_save_async gml_release_mode gml_pragma steam_activate_overlay steam_is_overlay_enabled steam_is_overlay_activated steam_get_persona_name steam_initialised steam_is_cloud_enabled_for_app steam_is_cloud_enabled_for_account steam_file_persisted steam_get_quota_total steam_get_quota_free steam_file_write steam_file_write_file steam_file_read steam_file_delete steam_file_exists steam_file_size steam_file_share steam_is_screenshot_requested steam_send_screenshot steam_is_user_logged_on steam_get_user_steam_id steam_user_owns_dlc steam_user_installed_dlc steam_set_achievement steam_get_achievement steam_clear_achievement steam_set_stat_int steam_set_stat_float steam_set_stat_avg_rate steam_get_stat_int steam_get_stat_float steam_get_stat_avg_rate steam_reset_all_stats steam_reset_all_stats_achievements steam_stats_ready steam_create_leaderboard steam_upload_score steam_upload_score_ext steam_download_scores_around_user steam_download_scores steam_download_friends_scores steam_upload_score_buffer steam_upload_score_buffer_ext steam_current_game_language steam_available_languages steam_activate_overlay_browser steam_activate_overlay_user steam_activate_overlay_store steam_get_user_persona_name steam_get_app_id steam_get_user_account_id steam_ugc_download steam_ugc_create_item steam_ugc_start_item_update steam_ugc_set_item_title steam_ugc_set_item_description steam_ugc_set_item_visibility steam_ugc_set_item_tags steam_ugc_set_item_content steam_ugc_set_item_preview steam_ugc_submit_item_update steam_ugc_get_item_update_progress steam_ugc_subscribe_item steam_ugc_unsubscribe_item steam_ugc_num_subscribed_items steam_ugc_get_subscribed_items steam_ugc_get_item_install_info steam_ugc_get_item_update_info steam_ugc_request_item_details steam_ugc_create_query_user steam_ugc_create_query_user_ex steam_ugc_create_query_all steam_ugc_create_query_all_ex steam_ugc_query_set_cloud_filename_filter steam_ugc_query_set_match_any_tag steam_ugc_query_set_search_text steam_ugc_query_set_ranked_by_trend_days steam_ugc_query_add_required_tag steam_ugc_query_add_excluded_tag steam_ugc_query_set_return_long_description steam_ugc_query_set_return_total_only steam_ugc_query_set_allow_cached_response steam_ugc_send_query shader_set shader_get_name shader_reset shader_current shader_is_compiled shader_get_sampler_index shader_get_uniform shader_set_uniform_i shader_set_uniform_i_array shader_set_uniform_f shader_set_uniform_f_array shader_set_uniform_matrix shader_set_uniform_matrix_array shader_enable_corner_id texture_set_stage texture_get_texel_width texture_get_texel_height shaders_are_supported vertex_format_begin vertex_format_end vertex_format_delete vertex_format_add_position vertex_format_add_position_3d vertex_format_add_colour vertex_format_add_color vertex_format_add_normal vertex_format_add_texcoord vertex_format_add_textcoord vertex_format_add_custom vertex_create_buffer vertex_create_buffer_ext vertex_delete_buffer vertex_begin vertex_end vertex_position vertex_position_3d vertex_colour vertex_color vertex_argb vertex_texcoord vertex_normal vertex_float1 vertex_float2 vertex_float3 vertex_float4 vertex_ubyte4 vertex_submit vertex_freeze vertex_get_number vertex_get_buffer_size vertex_create_buffer_from_buffer vertex_create_buffer_from_buffer_ext push_local_notification push_get_first_local_notification push_get_next_local_notification push_cancel_local_notification skeleton_animation_set skeleton_animation_get skeleton_animation_mix skeleton_animation_set_ext skeleton_animation_get_ext skeleton_animation_get_duration skeleton_animation_get_frames skeleton_animation_clear skeleton_skin_set skeleton_skin_get skeleton_attachment_set skeleton_attachment_get skeleton_attachment_create skeleton_collision_draw_set skeleton_bone_data_get skeleton_bone_data_set skeleton_bone_state_get skeleton_bone_state_set skeleton_get_minmax skeleton_get_num_bounds skeleton_get_bounds skeleton_animation_get_frame skeleton_animation_set_frame draw_skeleton draw_skeleton_time draw_skeleton_instance draw_skeleton_collision skeleton_animation_list skeleton_skin_list skeleton_slot_data layer_get_id layer_get_id_at_depth layer_get_depth layer_create layer_destroy layer_destroy_instances layer_add_instance layer_has_instance layer_set_visible layer_get_visible layer_exists layer_x layer_y layer_get_x layer_get_y layer_hspeed layer_vspeed layer_get_hspeed layer_get_vspeed layer_script_begin layer_script_end layer_shader layer_get_script_begin layer_get_script_end layer_get_shader layer_set_target_room layer_get_target_room layer_reset_target_room layer_get_all layer_get_all_elements layer_get_name layer_depth layer_get_element_layer layer_get_element_type layer_element_move layer_force_draw_depth layer_is_draw_depth_forced layer_get_forced_depth layer_background_get_id layer_background_exists layer_background_create layer_background_destroy layer_background_visible layer_background_change layer_background_sprite layer_background_htiled layer_background_vtiled layer_background_stretch layer_background_yscale layer_background_xscale layer_background_blend layer_background_alpha layer_background_index layer_background_speed layer_background_get_visible layer_background_get_sprite layer_background_get_htiled layer_background_get_vtiled layer_background_get_stretch layer_background_get_yscale layer_background_get_xscale layer_background_get_blend layer_background_get_alpha layer_background_get_index layer_background_get_speed layer_sprite_get_id layer_sprite_exists layer_sprite_create layer_sprite_destroy layer_sprite_change layer_sprite_index layer_sprite_speed layer_sprite_xscale layer_sprite_yscale layer_sprite_angle layer_sprite_blend layer_sprite_alpha layer_sprite_x layer_sprite_y layer_sprite_get_sprite layer_sprite_get_index layer_sprite_get_speed layer_sprite_get_xscale layer_sprite_get_yscale layer_sprite_get_angle layer_sprite_get_blend layer_sprite_get_alpha layer_sprite_get_x layer_sprite_get_y layer_tilemap_get_id layer_tilemap_exists layer_tilemap_create layer_tilemap_destroy tilemap_tileset tilemap_x tilemap_y tilemap_set tilemap_set_at_pixel tilemap_get_tileset tilemap_get_tile_width tilemap_get_tile_height tilemap_get_width tilemap_get_height tilemap_get_x tilemap_get_y tilemap_get tilemap_get_at_pixel tilemap_get_cell_x_at_pixel tilemap_get_cell_y_at_pixel tilemap_clear draw_tilemap draw_tile tilemap_set_global_mask tilemap_get_global_mask tilemap_set_mask tilemap_get_mask tilemap_get_frame tile_set_empty tile_set_index tile_set_flip tile_set_mirror tile_set_rotate tile_get_empty tile_get_index tile_get_flip tile_get_mirror tile_get_rotate layer_tile_exists layer_tile_create layer_tile_destroy layer_tile_change layer_tile_xscale layer_tile_yscale layer_tile_blend layer_tile_alpha layer_tile_x layer_tile_y layer_tile_region layer_tile_visible layer_tile_get_sprite layer_tile_get_xscale layer_tile_get_yscale layer_tile_get_blend layer_tile_get_alpha layer_tile_get_x layer_tile_get_y layer_tile_get_region layer_tile_get_visible layer_instance_get_instance instance_activate_layer instance_deactivate_layer camera_create camera_create_view camera_destroy camera_apply camera_get_active camera_get_default camera_set_default camera_set_view_mat camera_set_proj_mat camera_set_update_script camera_set_begin_script camera_set_end_script camera_set_view_pos camera_set_view_size camera_set_view_speed camera_set_view_border camera_set_view_angle camera_set_view_target camera_get_view_mat camera_get_proj_mat camera_get_update_script camera_get_begin_script camera_get_end_script camera_get_view_x camera_get_view_y camera_get_view_width camera_get_view_height camera_get_view_speed_x camera_get_view_speed_y camera_get_view_border_x camera_get_view_border_y camera_get_view_angle camera_get_view_target view_get_camera view_get_visible view_get_xport view_get_yport view_get_wport view_get_hport view_get_surface_id view_set_camera view_set_visible view_set_xport view_set_yport view_set_wport view_set_hport view_set_surface_id gesture_drag_time gesture_drag_distance gesture_flick_speed gesture_double_tap_time gesture_double_tap_distance gesture_pinch_distance gesture_pinch_angle_towards gesture_pinch_angle_away gesture_rotate_time gesture_rotate_angle gesture_tap_count gesture_get_drag_time gesture_get_drag_distance gesture_get_flick_speed gesture_get_double_tap_time gesture_get_double_tap_distance gesture_get_pinch_distance gesture_get_pinch_angle_towards gesture_get_pinch_angle_away gesture_get_rotate_time gesture_get_rotate_angle gesture_get_tap_count keyboard_virtual_show keyboard_virtual_hide keyboard_virtual_status keyboard_virtual_height",literal:"self other all noone global local undefined pointer_invalid pointer_null path_action_stop path_action_restart path_action_continue path_action_reverse true false pi GM_build_date GM_version GM_runtime_version timezone_local timezone_utc gamespeed_fps gamespeed_microseconds ev_create ev_destroy ev_step ev_alarm ev_keyboard ev_mouse ev_collision ev_other ev_draw ev_draw_begin ev_draw_end ev_draw_pre ev_draw_post ev_keypress ev_keyrelease ev_trigger ev_left_button ev_right_button ev_middle_button ev_no_button ev_left_press ev_right_press ev_middle_press ev_left_release ev_right_release ev_middle_release ev_mouse_enter ev_mouse_leave ev_mouse_wheel_up ev_mouse_wheel_down ev_global_left_button ev_global_right_button ev_global_middle_button ev_global_left_press ev_global_right_press ev_global_middle_press ev_global_left_release ev_global_right_release ev_global_middle_release ev_joystick1_left ev_joystick1_right ev_joystick1_up ev_joystick1_down ev_joystick1_button1 ev_joystick1_button2 ev_joystick1_button3 ev_joystick1_button4 ev_joystick1_button5 ev_joystick1_button6 ev_joystick1_button7 ev_joystick1_button8 ev_joystick2_left ev_joystick2_right ev_joystick2_up ev_joystick2_down ev_joystick2_button1 ev_joystick2_button2 ev_joystick2_button3 ev_joystick2_button4 ev_joystick2_button5 ev_joystick2_button6 ev_joystick2_button7 ev_joystick2_button8 ev_outside ev_boundary ev_game_start ev_game_end ev_room_start ev_room_end ev_no_more_lives ev_animation_end ev_end_of_path ev_no_more_health ev_close_button ev_user0 ev_user1 ev_user2 ev_user3 ev_user4 ev_user5 ev_user6 ev_user7 ev_user8 ev_user9 ev_user10 ev_user11 ev_user12 ev_user13 ev_user14 ev_user15 ev_step_normal ev_step_begin ev_step_end ev_gui ev_gui_begin ev_gui_end ev_cleanup ev_gesture ev_gesture_tap ev_gesture_double_tap ev_gesture_drag_start ev_gesture_dragging ev_gesture_drag_end ev_gesture_flick ev_gesture_pinch_start ev_gesture_pinch_in ev_gesture_pinch_out ev_gesture_pinch_end ev_gesture_rotate_start ev_gesture_rotating ev_gesture_rotate_end ev_global_gesture_tap ev_global_gesture_double_tap ev_global_gesture_drag_start ev_global_gesture_dragging ev_global_gesture_drag_end ev_global_gesture_flick ev_global_gesture_pinch_start ev_global_gesture_pinch_in ev_global_gesture_pinch_out ev_global_gesture_pinch_end ev_global_gesture_rotate_start ev_global_gesture_rotating ev_global_gesture_rotate_end vk_nokey vk_anykey vk_enter vk_return vk_shift vk_control vk_alt vk_escape vk_space vk_backspace vk_tab vk_pause vk_printscreen vk_left vk_right vk_up vk_down vk_home vk_end vk_delete vk_insert vk_pageup vk_pagedown vk_f1 vk_f2 vk_f3 vk_f4 vk_f5 vk_f6 vk_f7 vk_f8 vk_f9 vk_f10 vk_f11 vk_f12 vk_numpad0 vk_numpad1 vk_numpad2 vk_numpad3 vk_numpad4 vk_numpad5 vk_numpad6 vk_numpad7 vk_numpad8 vk_numpad9 vk_divide vk_multiply vk_subtract vk_add vk_decimal vk_lshift vk_lcontrol vk_lalt vk_rshift vk_rcontrol vk_ralt mb_any mb_none mb_left mb_right mb_middle c_aqua c_black c_blue c_dkgray c_fuchsia c_gray c_green c_lime c_ltgray c_maroon c_navy c_olive c_purple c_red c_silver c_teal c_white c_yellow c_orange fa_left fa_center fa_right fa_top fa_middle fa_bottom pr_pointlist pr_linelist pr_linestrip pr_trianglelist pr_trianglestrip pr_trianglefan bm_complex bm_normal bm_add bm_max bm_subtract bm_zero bm_one bm_src_colour bm_inv_src_colour bm_src_color bm_inv_src_color bm_src_alpha bm_inv_src_alpha bm_dest_alpha bm_inv_dest_alpha bm_dest_colour bm_inv_dest_colour bm_dest_color bm_inv_dest_color bm_src_alpha_sat tf_point tf_linear tf_anisotropic mip_off mip_on mip_markedonly audio_falloff_none audio_falloff_inverse_distance audio_falloff_inverse_distance_clamped audio_falloff_linear_distance audio_falloff_linear_distance_clamped audio_falloff_exponent_distance audio_falloff_exponent_distance_clamped audio_old_system audio_new_system audio_mono audio_stereo audio_3d cr_default cr_none cr_arrow cr_cross cr_beam cr_size_nesw cr_size_ns cr_size_nwse cr_size_we cr_uparrow cr_hourglass cr_drag cr_appstart cr_handpoint cr_size_all spritespeed_framespersecond spritespeed_framespergameframe asset_object asset_unknown asset_sprite asset_sound asset_room asset_path asset_script asset_font asset_timeline asset_tiles asset_shader fa_readonly fa_hidden fa_sysfile fa_volumeid fa_directory fa_archive ds_type_map ds_type_list ds_type_stack ds_type_queue ds_type_grid ds_type_priority ef_explosion ef_ring ef_ellipse ef_firework ef_smoke ef_smokeup ef_star ef_spark ef_flare ef_cloud ef_rain ef_snow pt_shape_pixel pt_shape_disk pt_shape_square pt_shape_line pt_shape_star pt_shape_circle pt_shape_ring pt_shape_sphere pt_shape_flare pt_shape_spark pt_shape_explosion pt_shape_cloud pt_shape_smoke pt_shape_snow ps_distr_linear ps_distr_gaussian ps_distr_invgaussian ps_shape_rectangle ps_shape_ellipse ps_shape_diamond ps_shape_line ty_real ty_string dll_cdecl dll_stdcall matrix_view matrix_projection matrix_world os_win32 os_windows os_macosx os_ios os_android os_symbian os_linux os_unknown os_winphone os_tizen os_win8native os_wiiu os_3ds os_psvita os_bb10 os_ps4 os_xboxone os_ps3 os_xbox360 os_uwp os_tvos os_switch browser_not_a_browser browser_unknown browser_ie browser_firefox browser_chrome browser_safari browser_safari_mobile browser_opera browser_tizen browser_edge browser_windows_store browser_ie_mobile device_ios_unknown device_ios_iphone device_ios_iphone_retina device_ios_ipad device_ios_ipad_retina device_ios_iphone5 device_ios_iphone6 device_ios_iphone6plus device_emulator device_tablet display_landscape display_landscape_flipped display_portrait display_portrait_flipped tm_sleep tm_countvsyncs of_challenge_win of_challen ge_lose of_challenge_tie leaderboard_type_number leaderboard_type_time_mins_secs cmpfunc_never cmpfunc_less cmpfunc_equal cmpfunc_lessequal cmpfunc_greater cmpfunc_notequal cmpfunc_greaterequal cmpfunc_always cull_noculling cull_clockwise cull_counterclockwise lighttype_dir lighttype_point iap_ev_storeload iap_ev_product iap_ev_purchase iap_ev_consume iap_ev_restore iap_storeload_ok iap_storeload_failed iap_status_uninitialised iap_status_unavailable iap_status_loading iap_status_available iap_status_processing iap_status_restoring iap_failed iap_unavailable iap_available iap_purchased iap_canceled iap_refunded fb_login_default fb_login_fallback_to_webview fb_login_no_fallback_to_webview fb_login_forcing_webview fb_login_use_system_account fb_login_forcing_safari phy_joint_anchor_1_x phy_joint_anchor_1_y phy_joint_anchor_2_x phy_joint_anchor_2_y phy_joint_reaction_force_x phy_joint_reaction_force_y phy_joint_reaction_torque phy_joint_motor_speed phy_joint_angle phy_joint_motor_torque phy_joint_max_motor_torque phy_joint_translation phy_joint_speed phy_joint_motor_force phy_joint_max_motor_force phy_joint_length_1 phy_joint_length_2 phy_joint_damping_ratio phy_joint_frequency phy_joint_lower_angle_limit phy_joint_upper_angle_limit phy_joint_angle_limits phy_joint_max_length phy_joint_max_torque phy_joint_max_force phy_debug_render_aabb phy_debug_render_collision_pairs phy_debug_render_coms phy_debug_render_core_shapes phy_debug_render_joints phy_debug_render_obb phy_debug_render_shapes phy_particle_flag_water phy_particle_flag_zombie phy_particle_flag_wall phy_particle_flag_spring phy_particle_flag_elastic phy_particle_flag_viscous phy_particle_flag_powder phy_particle_flag_tensile phy_particle_flag_colourmixing phy_particle_flag_colormixing phy_particle_group_flag_solid phy_particle_group_flag_rigid phy_particle_data_flag_typeflags phy_particle_data_flag_position phy_particle_data_flag_velocity phy_particle_data_flag_colour phy_particle_data_flag_color phy_particle_data_flag_category achievement_our_info achievement_friends_info achievement_leaderboard_info achievement_achievement_info achievement_filter_all_players achievement_filter_friends_only achievement_filter_favorites_only achievement_type_achievement_challenge achievement_type_score_challenge achievement_pic_loaded achievement_show_ui achievement_show_profile achievement_show_leaderboard achievement_show_achievement achievement_show_bank achievement_show_friend_picker achievement_show_purchase_prompt network_socket_tcp network_socket_udp network_socket_bluetooth network_type_connect network_type_disconnect network_type_data network_type_non_blocking_connect network_config_connect_timeout network_config_use_non_blocking_socket network_config_enable_reliable_udp network_config_disable_reliable_udp buffer_fixed buffer_grow buffer_wrap buffer_fast buffer_vbuffer buffer_network buffer_u8 buffer_s8 buffer_u16 buffer_s16 buffer_u32 buffer_s32 buffer_u64 buffer_f16 buffer_f32 buffer_f64 buffer_bool buffer_text buffer_string buffer_surface_copy buffer_seek_start buffer_seek_relative buffer_seek_end buffer_generalerror buffer_outofspace buffer_outofbounds buffer_invalidtype text_type button_type input_type ANSI_CHARSET DEFAULT_CHARSET EASTEUROPE_CHARSET RUSSIAN_CHARSET SYMBOL_CHARSET SHIFTJIS_CHARSET HANGEUL_CHARSET GB2312_CHARSET CHINESEBIG5_CHARSET JOHAB_CHARSET HEBREW_CHARSET ARABIC_CHARSET GREEK_CHARSET TURKISH_CHARSET VIETNAMESE_CHARSET THAI_CHARSET MAC_CHARSET BALTIC_CHARSET OEM_CHARSET gp_face1 gp_face2 gp_face3 gp_face4 gp_shoulderl gp_shoulderr gp_shoulderlb gp_shoulderrb gp_select gp_start gp_stickl gp_stickr gp_padu gp_padd gp_padl gp_padr gp_axislh gp_axislv gp_axisrh gp_axisrv ov_friends ov_community ov_players ov_settings ov_gamegroup ov_achievements lb_sort_none lb_sort_ascending lb_sort_descending lb_disp_none lb_disp_numeric lb_disp_time_sec lb_disp_time_ms ugc_result_success ugc_filetype_community ugc_filetype_microtrans ugc_visibility_public ugc_visibility_friends_only ugc_visibility_private ugc_query_RankedByVote ugc_query_RankedByPublicationDate ugc_query_AcceptedForGameRankedByAcceptanceDate ugc_query_RankedByTrend ugc_query_FavoritedByFriendsRankedByPublicationDate ugc_query_CreatedByFriendsRankedByPublicationDate ugc_query_RankedByNumTimesReported ugc_query_CreatedByFollowedUsersRankedByPublicationDate ugc_query_NotYetRated ugc_query_RankedByTotalVotesAsc ugc_query_RankedByVotesUp ugc_query_RankedByTextSearch ugc_sortorder_CreationOrderDesc ugc_sortorder_CreationOrderAsc ugc_sortorder_TitleAsc ugc_sortorder_LastUpdatedDesc ugc_sortorder_SubscriptionDateDesc ugc_sortorder_VoteScoreDesc ugc_sortorder_ForModeration ugc_list_Published ugc_list_VotedOn ugc_list_VotedUp ugc_list_VotedDown ugc_list_WillVoteLater ugc_list_Favorited ugc_list_Subscribed ugc_list_UsedOrPlayed ugc_list_Followed ugc_match_Items ugc_match_Items_Mtx ugc_match_Items_ReadyToUse ugc_match_Collections ugc_match_Artwork ugc_match_Videos ugc_match_Screenshots ugc_match_AllGuides ugc_match_WebGuides ugc_match_IntegratedGuides ugc_match_UsableInGame ugc_match_ControllerBindings vertex_usage_position vertex_usage_colour vertex_usage_color vertex_usage_normal vertex_usage_texcoord vertex_usage_textcoord vertex_usage_blendweight vertex_usage_blendindices vertex_usage_psize vertex_usage_tangent vertex_usage_binormal vertex_usage_fog vertex_usage_depth vertex_usage_sample vertex_type_float1 vertex_type_float2 vertex_type_float3 vertex_type_float4 vertex_type_colour vertex_type_color vertex_type_ubyte4 layerelementtype_undefined layerelementtype_background layerelementtype_instance layerelementtype_oldtilemap layerelementtype_sprite layerelementtype_tilemap layerelementtype_particlesystem layerelementtype_tile tile_rotate tile_flip tile_mirror tile_index_mask kbv_type_default kbv_type_ascii kbv_type_url kbv_type_email kbv_type_numbers kbv_type_phone kbv_type_phone_name kbv_returnkey_default kbv_returnkey_go kbv_returnkey_google kbv_returnkey_join kbv_returnkey_next kbv_returnkey_route kbv_returnkey_search kbv_returnkey_send kbv_returnkey_yahoo kbv_returnkey_done kbv_returnkey_continue kbv_returnkey_emergency kbv_autocapitalize_none kbv_autocapitalize_words kbv_autocapitalize_sentences kbv_autocapitalize_characters",symbol:"argument_relative argument argument0 argument1 argument2 argument3 argument4 argument5 argument6 argument7 argument8 argument9 argument10 argument11 argument12 argument13 argument14 argument15 argument_count x|0 y|0 xprevious yprevious xstart ystart hspeed vspeed direction speed friction gravity gravity_direction path_index path_position path_positionprevious path_speed path_scale path_orientation path_endaction object_index id solid persistent mask_index instance_count instance_id room_speed fps fps_real current_time current_year current_month current_day current_weekday current_hour current_minute current_second alarm timeline_index timeline_position timeline_speed timeline_running timeline_loop room room_first room_last room_width room_height room_caption room_persistent score lives health show_score show_lives show_health caption_score caption_lives caption_health event_type event_number event_object event_action application_surface gamemaker_pro gamemaker_registered gamemaker_version error_occurred error_last debug_mode keyboard_key keyboard_lastkey keyboard_lastchar keyboard_string mouse_x mouse_y mouse_button mouse_lastbutton cursor_sprite visible sprite_index sprite_width sprite_height sprite_xoffset sprite_yoffset image_number image_index image_speed depth image_xscale image_yscale image_angle image_alpha image_blend bbox_left bbox_right bbox_top bbox_bottom layer background_colour background_showcolour background_color background_showcolor view_enabled view_current view_visible view_xview view_yview view_wview view_hview view_xport view_yport view_wport view_hport view_angle view_hborder view_vborder view_hspeed view_vspeed view_object view_surface_id view_camera game_id game_display_name game_project_name game_save_id working_directory temp_directory program_directory browser_width browser_height os_type os_device os_browser os_version display_aa async_load delta_time webgl_enabled event_data iap_data phy_rotation phy_position_x phy_position_y phy_angular_velocity phy_linear_velocity_x phy_linear_velocity_y phy_speed_x phy_speed_y phy_speed phy_angular_damping phy_linear_damping phy_bullet phy_fixed_rotation phy_active phy_mass phy_inertia phy_com_x phy_com_y phy_dynamic phy_kinematic phy_sleeping phy_collision_points phy_collision_x phy_collision_y phy_col_normal_x phy_col_normal_y phy_position_xprevious phy_position_yprevious"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE]}}return KZe=e,KZe}var XZe,qgn;function Nti(){if(qgn)return XZe;qgn=1;function e(t){const r={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{name:"Go",aliases:["golang"],keywords:r,illegal:"e(h)).join("")}function a(o,u={}){return u.variants=o,u}function s(o){const u="[A-Za-z0-9_$]+",h=a([o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),f={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[o.BACKSLASH_ESCAPE]},p=a([o.BINARY_NUMBER_MODE,o.C_NUMBER_MODE]),m=a([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},o.APOS_STRING_MODE,o.QUOTE_STRING_MODE],{className:"string"});return{name:"Groovy",keywords:{built_in:"this super",literal:"true false null",keyword:"byte short char int long boolean float double void def as in assert trait abstract static volatile transient public private protected synchronized final class interface enum if else for while switch case break default continue throw throws try catch finally implements extends new import package return instanceof"},contains:[o.SHEBANG({binary:"groovy",relevance:10}),h,m,f,p,{className:"class",beginKeywords:"class interface trait enum",end:/\{/,illegal:":",contains:[{beginKeywords:"extends implements"},o.UNDERSCORE_TITLE_MODE]},{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:u+"[ ]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[h,m,f,p,"self"]},{className:"symbol",begin:"^[ ]*"+t(u+":"),excludeBegin:!0,end:u+":",relevance:0}],illegal:/#|<\//}}return JZe=s,JZe}var eJe,jgn;function Mti(){if(jgn)return eJe;jgn=1;function e(t){return{name:"HAML",case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},t.COMMENT("^\\s*(!=#|=#|-#|/).*$",!1,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",starts:{end:"\\n",subLanguage:"ruby"}},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,starts:{end:/\}/,subLanguage:"ruby"}}]}}return eJe=e,eJe}var tJe,Wgn;function Pti(){if(Wgn)return tJe;Wgn=1;function e(u){return u?typeof u=="string"?u:u.source:null}function t(u){return a("(",u,")*")}function r(u){return a("(",u,")?")}function a(...u){return u.map(f=>e(f)).join("")}function s(...u){return"("+u.map(f=>e(f)).join("|")+")"}function o(u){const h={"builtin-name":["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},f={literal:["true","false","undefined","null"]},p=/""|"[^"]+"/,m=/''|'[^']+'/,b=/\[\]|\[[^\]]+\]/,_=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,w=/(\.|\/)/,S=s(p,m,b,_),C=a(r(/\.|\.\/|\//),S,t(a(w,S))),A=a("(",b,"|",_,")(?==)"),k={begin:C,lexemes:/[\w.\/]+/},I=u.inherit(k,{keywords:f}),N={begin:/\(/,end:/\)/},L={className:"attr",begin:A,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[u.NUMBER_MODE,u.QUOTE_STRING_MODE,u.APOS_STRING_MODE,I,N]}}},P={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},M={contains:[u.NUMBER_MODE,u.QUOTE_STRING_MODE,u.APOS_STRING_MODE,P,L,I,N],returnEnd:!0},F=u.inherit(k,{className:"name",keywords:h,starts:u.inherit(M,{end:/\)/})});N.contains=[F];const U=u.inherit(k,{keywords:h,className:"name",starts:u.inherit(M,{end:/\}\}/})}),$=u.inherit(k,{keywords:h,className:"name"}),G=u.inherit(k,{className:"name",keywords:h,starts:u.inherit(M,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},u.COMMENT(/\{\{!--/,/--\}\}/),u.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[U],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[$]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[U]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[$]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[G]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[G]}]}}return tJe=o,tJe}var nJe,Kgn;function Bti(){if(Kgn)return nJe;Kgn=1;function e(t){const r={variants:[t.COMMENT("--","$"),t.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},a={className:"meta",begin:/\{-#/,end:/#-\}/},s={className:"meta",begin:"^#",end:"$"},o={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},u={begin:"\\(",end:"\\)",illegal:'"',contains:[a,s,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t.inherit(t.TITLE_MODE,{begin:"[_a-z][\\w']*"}),r]},h={begin:/\{/,end:/\}/,contains:u.contains};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[u,r],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[u,r],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[o,u,r]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[a,o,u,h,r]},{beginKeywords:"default",end:"$",contains:[o,u,r]},{beginKeywords:"infix infixl infixr",end:"$",contains:[t.C_NUMBER_MODE,r]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[o,t.QUOTE_STRING_MODE,r]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},a,s,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,o,t.inherit(t.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),r,{begin:"->|<-"}]}}return nJe=e,nJe}var rJe,Xgn;function Fti(){if(Xgn)return rJe;Xgn=1;function e(t){return{name:"Haxe",aliases:["hx"],keywords:{keyword:"break case cast catch continue default do dynamic else enum extern for function here if import in inline never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+"Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"},{className:"subst",begin:"\\$",end:/\W\}/}]},t.QUOTE_STRING_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"@:",end:"$"},{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elseif end error"}},{className:"type",begin:":[ ]*",end:"[^A-Za-z0-9_ \\->]",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:":[ ]*",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"new *",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"class",beginKeywords:"enum",end:"\\{",contains:[t.TITLE_MODE]},{className:"class",beginKeywords:"abstract",end:"[\\{$]",contains:[{className:"type",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"from +",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"to +",end:"\\W",excludeBegin:!0,excludeEnd:!0},t.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"class",begin:"\\b(class|interface) +",end:"[\\{$]",excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:"\\b(extends|implements) +",keywords:"extends implements",contains:[{className:"type",begin:t.IDENT_RE,relevance:0}]},t.TITLE_MODE]},{className:"function",beginKeywords:"function",end:"\\(",excludeEnd:!0,illegal:"\\S",contains:[t.TITLE_MODE]}],illegal:/<\//}}return rJe=e,rJe}var iJe,Qgn;function $ti(){if(Qgn)return iJe;Qgn=1;function e(t){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[t.BACKSLASH_ESCAPE]},t.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[t.inherit(t.QUOTE_STRING_MODE,{className:"meta-string"}),t.NUMBER_MODE,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},t.NUMBER_MODE,t.C_NUMBER_MODE]}}return iJe=e,iJe}var aJe,Zgn;function Uti(){if(Zgn)return aJe;Zgn=1;function e(h){return h?typeof h=="string"?h:h.source:null}function t(h){return a("(",h,")*")}function r(h){return a("(",h,")?")}function a(...h){return h.map(p=>e(p)).join("")}function s(...h){return"("+h.map(p=>e(p)).join("|")+")"}function o(h){const f={"builtin-name":["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},p={literal:["true","false","undefined","null"]},m=/""|"[^"]+"/,b=/''|'[^']+'/,_=/\[\]|\[[^\]]+\]/,w=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,S=/(\.|\/)/,C=s(m,b,_,w),A=a(r(/\.|\.\/|\//),C,t(a(S,C))),k=a("(",_,"|",w,")(?==)"),I={begin:A,lexemes:/[\w.\/]+/},N=h.inherit(I,{keywords:p}),L={begin:/\(/,end:/\)/},P={className:"attr",begin:k,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[h.NUMBER_MODE,h.QUOTE_STRING_MODE,h.APOS_STRING_MODE,N,L]}}},M={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},F={contains:[h.NUMBER_MODE,h.QUOTE_STRING_MODE,h.APOS_STRING_MODE,M,P,N,L],returnEnd:!0},U=h.inherit(I,{className:"name",keywords:f,starts:h.inherit(F,{end:/\)/})});L.contains=[U];const $=h.inherit(I,{keywords:f,className:"name",starts:h.inherit(F,{end:/\}\}/})}),G=h.inherit(I,{keywords:f,className:"name"}),B=h.inherit(I,{className:"name",keywords:f,starts:h.inherit(F,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},h.COMMENT(/\{\{!--/,/--\}\}/),h.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[$],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[G]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[$]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[G]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[B]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[B]}]}}function u(h){const f=o(h);return f.name="HTMLbars",h.getLanguage("handlebars")&&(f.disableAutodetect=!0),f}return aJe=u,aJe}var sJe,Jgn;function zti(){if(Jgn)return sJe;Jgn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){const s="HTTP/(2|1\\.[01])",u={className:"attribute",begin:t("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},h=[u,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+s+" \\d{3})",end:/$/,contains:[{className:"meta",begin:s},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:h}},{begin:"(?=^[A-Z]+ (.*?) "+s+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:s},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:h}},a.inherit(u,{relevance:0})]}}return sJe=r,sJe}var oJe,emn;function Gti(){if(emn)return oJe;emn=1;function e(t){var r="a-zA-Z_\\-!.?+*=<>&#'",a="["+r+"]["+r+"0-9/;:]*",s={$pattern:a,"builtin-name":"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},o="[-+]?\\d+(\\.\\d+)?",u={begin:a,relevance:0},h={className:"number",begin:o,relevance:0},f=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),p=t.COMMENT(";","$",{relevance:0}),m={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},b={begin:"[\\[\\{]",end:"[\\]\\}]"},_={className:"comment",begin:"\\^"+a},w=t.COMMENT("\\^\\{","\\}"),S={className:"symbol",begin:"[:]{1,2}"+a},C={begin:"\\(",end:"\\)"},A={endsWithParent:!0,relevance:0},k={className:"name",relevance:0,keywords:s,begin:a,starts:A},I=[C,f,_,w,p,S,b,h,m,u];return C.contains=[t.COMMENT("comment",""),k,A],A.contains=I,b.contains=I,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[t.SHEBANG(),C,f,_,w,p,S,b,h,m]}}return oJe=e,oJe}var lJe,tmn;function qti(){if(tmn)return lJe;tmn=1;function e(t){const r="\\[",a="\\]";return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:r,end:a}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:r,end:a,contains:["self"]}]}}return lJe=e,lJe}var cJe,nmn;function Hti(){if(nmn)return cJe;nmn=1;function e(o){return o?typeof o=="string"?o:o.source:null}function t(o){return r("(?=",o,")")}function r(...o){return o.map(h=>e(h)).join("")}function a(...o){return"("+o.map(h=>e(h)).join("|")+")"}function s(o){const u={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:o.NUMBER_RE}]},h=o.COMMENT();h.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const f={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},p={className:"literal",begin:/\bon|off|true|false|yes|no\b/},m={className:"string",contains:[o.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},b={begin:/\[/,end:/\]/,contains:[h,p,f,m,u,"self"],relevance:0},C=a(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/),A=r(C,"(\\s*\\.\\s*",C,")*",t(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[h,{className:"section",begin:/\[+/,end:/\]+/},{begin:A,className:"attr",starts:{end:/$/,contains:[h,b,p,f,m,u]}}]}}return cJe=s,cJe}var uJe,rmn;function Vti(){if(rmn)return uJe;rmn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){const s={className:"params",begin:"\\(",end:"\\)"},o=/(_[a-z_\d]+)?/,u=/([de][+-]?\d+)?/,h={className:"number",variants:[{begin:t(/\b\d+/,/\.(\d*)/,u,o)},{begin:t(/\b\d+/,u,o)},{begin:t(/\.\d+/,u,o)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[a.inherit(a.APOS_STRING_MODE,{className:"string",relevance:0}),a.inherit(a.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[a.UNDERSCORE_TITLE_MODE,s]},a.COMMENT("!","$",{relevance:0}),a.COMMENT("begin_doc","end_doc",{relevance:10}),h]}}return uJe=r,uJe}var hJe,imn;function Yti(){if(imn)return hJe;imn=1;function e(t){const r="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",a="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",s="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",ce="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE "+"CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE "+"ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME "+"DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY "+"ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION "+"JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY "+"ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE "+"smHidden smMaximized smMinimized smNormal wmNo wmYes "+"COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND "+"COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE "+"MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY "+"NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY "+"dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT "+"CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM "+"ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME "+"PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE "+"ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE "+"CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT "+"STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER "+"COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE "+"SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID "+"RESULT_VAR_NAME RESULT_VAR_NAME_ENG "+"AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID "+"SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY "+"SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY "+"SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS "+"SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS "+"SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS "+"ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME "+"TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME "+"ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk "+"EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE "+"cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate "+"ISBL_SYNTAX NO_SYNTAX XML_SYNTAX "+"WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY "+"SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",wT="atUser atGroup atRole "+"aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty "+"apBegin apEnd "+"alLeft alRight "+"asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways "+"cirCommon cirRevoked "+"ctSignature ctEncode ctSignatureEncode "+"clbUnchecked clbChecked clbGrayed "+"ceISB ceAlways ceNever "+"ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob "+"cfInternal cfDisplay "+"ciUnspecified ciWrite ciRead "+"ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog "+"ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton "+"cctDate cctInteger cctNumeric cctPick cctReference cctString cctText "+"cltInternal cltPrimary cltGUI "+"dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange "+"dssEdit dssInsert dssBrowse dssInActive "+"dftDate dftShortDate dftDateTime dftTimeStamp "+"dotDays dotHours dotMinutes dotSeconds "+"dtkndLocal dtkndUTC "+"arNone arView arEdit arFull "+"ddaView ddaEdit "+"emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode "+"ecotFile ecotProcess "+"eaGet eaCopy eaCreate eaCreateStandardRoute "+"edltAll edltNothing edltQuery "+"essmText essmCard "+"esvtLast esvtLastActive esvtSpecified "+"edsfExecutive edsfArchive "+"edstSQLServer edstFile "+"edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile "+"vsDefault vsDesign vsActive vsObsolete "+"etNone etCertificate etPassword etCertificatePassword "+"ecException ecWarning ecInformation "+"estAll estApprovingOnly "+"evtLast evtLastActive evtQuery "+"fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger "+"ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch "+"grhAuto grhX1 grhX2 grhX3 "+"hltText hltRTF hltHTML "+"iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG "+"im8bGrayscale im24bRGB im1bMonochrome "+"itBMP itJPEG itWMF itPNG "+"ikhInformation ikhWarning ikhError ikhNoIcon "+"icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler "+"isShow isHide isByUserSettings "+"jkJob jkNotice jkControlJob "+"jtInner jtLeft jtRight jtFull jtCross "+"lbpAbove lbpBelow lbpLeft lbpRight "+"eltPerConnection eltPerUser "+"sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac "+"sfsItalic sfsStrikeout sfsNormal "+"ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents "+"mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom "+"vtEqual vtGreaterOrEqual vtLessOrEqual vtRange "+"rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth "+"rdWindow rdFile rdPrinter "+"rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument "+"reOnChange reOnChangeValues "+"ttGlobal ttLocal ttUser ttSystem "+"ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal "+"smSelect smLike smCard "+"stNone stAuthenticating stApproving "+"sctString sctStream "+"sstAnsiSort sstNaturalSort "+"svtEqual svtContain "+"soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown "+"tarAbortByUser tarAbortByWorkflowException "+"tvtAllWords tvtExactPhrase tvtAnyWord "+"usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp "+"utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected "+"btAnd btDetailAnd btOr btNotOr btOnly "+"vmView vmSelect vmNavigation "+"vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection "+"wfatPrevious wfatNext wfatCancel wfatFinish "+"wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 "+"wfetQueryParameter wfetText wfetDelimiter wfetLabel "+"wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate "+"wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal "+"wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal "+"waAll waPerformers waManual "+"wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause "+"wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection "+"wiLow wiNormal wiHigh "+"wrtSoft wrtHard "+"wsInit wsRunning wsDone wsControlled wsAborted wsContinued "+"wtmFull wtmFromCurrent wtmOnlyCurrent ",d_="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",tE="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",qu="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",$b=ce+wT,Mf=tE,nE="null true false nil ",Pf={className:"number",begin:t.NUMBER_RE,relevance:0},ET={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},Ub={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},jA={className:"comment",begin:"//",end:"$",relevance:0,contains:[t.PHRASAL_WORDS_MODE,Ub]},WA={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[t.PHRASAL_WORDS_MODE,Ub]},KA={variants:[jA,WA]},f0={$pattern:r,keyword:s,built_in:$b,class:Mf,literal:nE},rU={begin:"\\.\\s*"+t.UNDERSCORE_IDENT_RE,keywords:f0,relevance:0},lK={className:"type",begin:":[ \\t]*("+qu.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},cK={className:"variable",keywords:f0,begin:r,relevance:0,contains:[lK,rU]},uK=a+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:f0,illegal:"\\$|\\?|%|,|;$|~|#|@|)?",f="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",p={className:"meta",begin:"@"+u,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]};const m=a;return{name:"Java",aliases:["jsp"],keywords:f,illegal:/<\/|#/,contains:[o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface enum",end:/[{;=]/,excludeEnd:!0,relevance:1,keywords:"class interface enum",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},o.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"class",begin:"record\\s+"+o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,excludeEnd:!0,end:/[{;=]/,keywords:f,contains:[{beginKeywords:"record"},{begin:o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[o.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[o.C_BLOCK_COMMENT_MODE]},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE]},{className:"function",begin:"("+h+"\\s+)+"+o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:f,contains:[{begin:o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[o.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[p,o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,m,o.C_BLOCK_COMMENT_MODE]},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE]},m,p]}}return dJe=s,dJe}var fJe,smn;function Wti(){if(smn)return fJe;smn=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],a=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],s=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],u=["arguments","this","super","console","window","document","localStorage","module","global"],h=[].concat(o,u,a,s);function f(_){return _?typeof _=="string"?_:_.source:null}function p(_){return m("(?=",_,")")}function m(..._){return _.map(S=>f(S)).join("")}function b(_){const w=(Q,{after:V})=>{const j="",end:""},A={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Q,V)=>{const j=Q[0].length+Q.index,ee=Q.input[j];if(ee==="<"){V.ignoreMatch();return}ee===">"&&(w(Q,{after:j})||V.ignoreMatch())}},k={$pattern:e,keyword:t,literal:r,built_in:h},I="[0-9](_?[0-9])*",N=`\\.(${I})`,L="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",P={className:"number",variants:[{begin:`(\\b(${L})((${N})|\\.)?|(${N}))[eE][+-]?(${I})\\b`},{begin:`\\b(${L})\\b((${N})\\b|\\.)?|(${N})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},M={className:"subst",begin:"\\$\\{",end:"\\}",keywords:k,contains:[]},F={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[_.BACKSLASH_ESCAPE,M],subLanguage:"xml"}},U={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[_.BACKSLASH_ESCAPE,M],subLanguage:"css"}},$={className:"string",begin:"`",end:"`",contains:[_.BACKSLASH_ESCAPE,M]},B={className:"comment",variants:[_.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:S+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),_.C_BLOCK_COMMENT_MODE,_.C_LINE_COMMENT_MODE]},Z=[_.APOS_STRING_MODE,_.QUOTE_STRING_MODE,F,U,$,P,_.REGEXP_MODE];M.contains=Z.concat({begin:/\{/,end:/\}/,keywords:k,contains:["self"].concat(Z)});const z=[].concat(B,M.contains),Y=z.concat([{begin:/\(/,end:/\)/,keywords:k,contains:["self"].concat(z)}]),W={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:k,contains:Y};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:k,exports:{PARAMS_CONTAINS:Y},illegal:/#(?![$_A-z])/,contains:[_.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},_.APOS_STRING_MODE,_.QUOTE_STRING_MODE,F,U,$,B,P,{begin:m(/[{,\n]\s*/,p(m(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,S+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:S+p("\\s*:"),relevance:0}]},{begin:"("+_.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[B,_.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+_.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:_.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:k,contains:Y}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:C.begin,end:C.end},{begin:A.begin,"on:begin":A.isTrulyOpeningTag,end:A.end}],subLanguage:"xml",contains:[{begin:A.begin,end:A.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:k,contains:["self",_.inherit(_.TITLE_MODE,{begin:S}),W],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:_.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[W,_.inherit(_.TITLE_MODE,{begin:S})]},{variants:[{begin:"\\."+S},{begin:"\\$"+S}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},_.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[_.inherit(_.TITLE_MODE,{begin:S}),"self",W]},{begin:"(get|set)\\s+(?="+S+"\\()",end:/\{/,keywords:"get set",contains:[_.inherit(_.TITLE_MODE,{begin:S}),{begin:/\(\)/},W]},{begin:/\$[(.]/}]}}return fJe=b,fJe}var pJe,omn;function Kti(){if(omn)return pJe;omn=1;function e(t){const a={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},s={className:"function",begin:/:[\w\-.]+/,relevance:0},o={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},u={className:"params",begin:/--[\w\-=\/]+/};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,u,s,o,a]}}return pJe=e,pJe}var gJe,lmn;function Xti(){if(lmn)return gJe;lmn=1;function e(t){const r={literal:"true false null"},a=[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],s=[t.QUOTE_STRING_MODE,t.C_NUMBER_MODE],o={end:",",endsWithParent:!0,excludeEnd:!0,contains:s,keywords:r},u={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE],illegal:"\\n"},t.inherit(o,{begin:/:/})].concat(a),illegal:"\\S"},h={begin:"\\[",end:"\\]",contains:[t.inherit(o)],illegal:"\\S"};return s.push(u,h),a.forEach(function(f){s.push(f)}),{name:"JSON",contains:s,keywords:r,illegal:"\\S"}}return gJe=e,gJe}var mJe,cmn;function Qti(){if(cmn)return mJe;cmn=1;function e(t){var r="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",a=["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],s=["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],o=["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"],u={$pattern:r,keyword:a,literal:s,built_in:o},h={keywords:u,illegal:/<\//},f={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},p={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},m={className:"subst",begin:/\$\(/,end:/\)/,keywords:u},b={className:"variable",begin:"\\$"+r},_={className:"string",contains:[t.BACKSLASH_ESCAPE,m,b],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},w={className:"string",contains:[t.BACKSLASH_ESCAPE,m,b],begin:"`",end:"`"},S={className:"meta",begin:"@"+r},C={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return h.name="Julia",h.contains=[f,p,_,w,S,C,t.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],m.contains=h.contains,h}return mJe=e,mJe}var bJe,umn;function Zti(){if(umn)return bJe;umn=1;function e(t){return{name:"Julia REPL",contains:[{className:"meta",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"},aliases:["jldoctest"]}]}}return bJe=e,bJe}var yJe,hmn;function Jti(){if(hmn)return yJe;hmn=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",a={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function s(o){const u={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},h={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},f={className:"symbol",begin:o.UNDERSCORE_IDENT_RE+"@"},p={className:"subst",begin:/\$\{/,end:/\}/,contains:[o.C_NUMBER_MODE]},m={className:"variable",begin:"\\$"+o.UNDERSCORE_IDENT_RE},b={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[m,p]},{begin:"'",end:"'",illegal:/\n/,contains:[o.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[o.BACKSLASH_ESCAPE,m,p]}]};p.contains.push(b);const _={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+o.UNDERSCORE_IDENT_RE+")?"},w={className:"meta",begin:"@"+o.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[o.inherit(b,{className:"meta-string"})]}]},S=a,C=o.COMMENT("/\\*","\\*/",{contains:[o.C_BLOCK_COMMENT_MODE]}),A={variants:[{className:"type",begin:o.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},k=A;return k.variants[1].contains=[A],A.variants[1].contains=[k],{name:"Kotlin",aliases:["kt","kts"],keywords:u,contains:[o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),o.C_LINE_COMMENT_MODE,C,h,f,_,w,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:u,relevance:5,contains:[{begin:o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[o.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:u,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[A,o.C_LINE_COMMENT_MODE,C],relevance:0},o.C_LINE_COMMENT_MODE,C,_,w,b,o.C_NUMBER_MODE]},C]},{className:"class",beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},o.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/,excludeBegin:!0,returnEnd:!0},_,w]},b,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` `},S]}}return yJe=s,yJe}var vJe,dmn;function eni(){if(dmn)return vJe;dmn=1;function e(t){const r="[a-zA-Z_][\\w.]*",a="<\\?(lasso(script)?|=)",s="\\]|\\?>",o={$pattern:r+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},u=t.COMMENT("",{relevance:0}),h={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[u]}},f={className:"meta",begin:"\\[/noprocess|"+a},p={className:"symbol",begin:"'"+r+"'"},m=[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.inherit(t.C_NUMBER_MODE,{begin:t.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+r},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:r,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+r,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[p]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[t.inherit(t.TITLE_MODE,{begin:r+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:o,contains:[{className:"meta",begin:s,relevance:0,starts:{end:"\\[|"+a,returnEnd:!0,relevance:0,contains:[u]}},h,f,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:o,contains:[{className:"meta",begin:s,relevance:0,starts:{end:"\\[noprocess\\]|"+a,returnEnd:!0,contains:[u]}},h,f].concat(m)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(m)}}return vJe=e,vJe}var _Je,fmn;function tni(){if(fmn)return _Je;fmn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return"("+a.map(o=>e(o)).join("|")+")"}function r(a){const s=t(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(Z=>Z+"(?![a-zA-Z@:_])")),o=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(Z=>Z+"(?![a-zA-Z:_])").join("|")),u=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],h=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],f={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:s},{endsParent:!0,begin:o},{endsParent:!0,variants:h},{endsParent:!0,relevance:0,variants:u}]},p={className:"params",relevance:0,begin:/#+\d?/},m={variants:h},b={className:"built_in",relevance:0,begin:/[$&^_]/},_={className:"meta",begin:"% !TeX",end:"$",relevance:10},w=a.COMMENT("%","$",{relevance:0}),S=[f,p,m,b,_,w],C={begin:/\{/,end:/\}/,relevance:0,contains:["self",...S]},A=a.inherit(C,{relevance:0,endsParent:!0,contains:[C,...S]}),k={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[C,...S]},I={begin:/\s+/,relevance:0},N=[A],L=[k],P=function(Z,z){return{contains:[I],starts:{relevance:0,contains:Z,starts:z}}},M=function(Z,z){return{begin:"\\\\"+Z+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+Z},relevance:0,contains:[I],starts:z}},F=function(Z,z){return a.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+Z+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},P(N,z))},U=(Z="string")=>a.END_SAME_AS_BEGIN({className:Z,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),$=function(Z){return{className:"string",end:"(?=\\\\end\\{"+Z+"\\})"}},G=(Z="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:Z,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),B=[...["verb","lstinline"].map(Z=>M(Z,{contains:[U()]})),M("mint",P(N,{contains:[U()]})),M("mintinline",P(N,{contains:[G(),U()]})),M("url",{contains:[G("link"),G("link")]}),M("hyperref",{contains:[G("link")]}),M("href",P(L,{contains:[G("link")]})),...[].concat(...["","\\*"].map(Z=>[F("verbatim"+Z,$("verbatim"+Z)),F("filecontents"+Z,P(N,$("filecontents"+Z))),...["","B","L"].map(z=>F(z+"Verbatim"+Z,P(L,$(z+"Verbatim"+Z))))])),F("minted",P(L,P(N,$("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...B,...S]}}return _Je=r,_Je}var wJe,pmn;function nni(){if(pmn)return wJe;pmn=1;function e(t){return{name:"LDIF",contains:[{className:"attribute",begin:"^dn",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0},relevance:10},{className:"attribute",begin:"^\\w",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0}},{className:"literal",begin:"^-",end:"$"},t.HASH_COMMENT_MODE]}}return wJe=e,wJe}var EJe,gmn;function rni(){if(gmn)return EJe;gmn=1;function e(t){return{name:"Leaf",contains:[{className:"function",begin:"#+[A-Za-z_0-9]*\\(",end:/ \{/,returnBegin:!0,excludeEnd:!0,contains:[{className:"keyword",begin:"#+"},{className:"title",begin:"[A-Za-z_][A-Za-z_0-9]*"},{className:"params",begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"string",begin:'"',end:'"'},{className:"variable",begin:"[A-Za-z_][A-Za-z_0-9]*"}]}]}]}}return EJe=e,EJe}var xJe,mmn;function ini(){if(mmn)return xJe;mmn=1;const e=f=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE]}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse(),u=a.concat(s);function h(f){const p=e(f),m=u,b="and or not only",_="[\\w-]+",w="("+_+"|@\\{"+_+"\\})",S=[],C=[],A=function(B){return{className:"string",begin:"~?"+B+".*?"+B}},k=function(B,Z,z){return{className:B,begin:Z,relevance:z}},I={$pattern:/[a-z-]+/,keyword:b,attribute:r.join(" ")},N={begin:"\\(",end:"\\)",contains:C,keywords:I,relevance:0};C.push(f.C_LINE_COMMENT_MODE,f.C_BLOCK_COMMENT_MODE,A("'"),A('"'),f.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},p.HEXCOLOR,N,k("variable","@@?"+_,10),k("variable","@\\{"+_+"\\}"),k("built_in","~?`[^`]*?`"),{className:"attribute",begin:_+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},p.IMPORTANT);const L=C.concat({begin:/\{/,end:/\}/,contains:S}),P={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(C)},M={begin:w+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},{className:"attribute",begin:"\\b("+o.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:C}}]},F={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:I,returnEnd:!0,contains:C,relevance:0}},U={className:"variable",variants:[{begin:"@"+_+"\\s*:",relevance:15},{begin:"@"+_}],starts:{end:"[;}]",returnEnd:!0,contains:L}},$={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:w,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[f.C_LINE_COMMENT_MODE,f.C_BLOCK_COMMENT_MODE,P,k("keyword","all\\b"),k("variable","@\\{"+_+"\\}"),{begin:"\\b("+t.join("|")+")\\b",className:"selector-tag"},k("selector-tag",w+"%?",0),k("selector-id","#"+w),k("selector-class","\\."+w,0),k("selector-tag","&",0),p.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+a.join("|")+")"},{className:"selector-pseudo",begin:"::("+s.join("|")+")"},{begin:"\\(",end:"\\)",contains:L},{begin:"!important"}]},G={begin:_+`:(:)?(${m.join("|")})`,returnBegin:!0,contains:[$]};return S.push(f.C_LINE_COMMENT_MODE,f.C_BLOCK_COMMENT_MODE,F,U,G,M,$),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:S}}return xJe=h,xJe}var SJe,bmn;function ani(){if(bmn)return SJe;bmn=1;function e(t){var r="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",a="\\|[^]*?\\|",s="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",o={className:"literal",begin:"\\b(t{1}|nil)\\b"},u={className:"number",variants:[{begin:s,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+s+" +"+s,end:"\\)"}]},h=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),f=t.COMMENT(";","$",{relevance:0}),p={begin:"\\*",end:"\\*"},m={className:"symbol",begin:"[:&]"+r},b={begin:r,relevance:0},_={begin:a},w={begin:"\\(",end:"\\)",contains:["self",o,h,u,b]},S={contains:[u,h,p,m,w,b],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+a}]},C={variants:[{begin:"'"+r},{begin:"#'"+r+"(::"+r+")*"}]},A={begin:"\\(\\s*",end:"\\)"},k={endsWithParent:!0,relevance:0};return A.contains=[{className:"name",variants:[{begin:r,relevance:0},{begin:a}]},k],k.contains=[S,C,A,o,u,h,f,p,m,_,b],{name:"Lisp",illegal:/\S/,contains:[u,t.SHEBANG(),o,h,f,S,C,A,b]}}return SJe=e,SJe}var TJe,ymn;function sni(){if(ymn)return TJe;ymn=1;function e(t){const r={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},a=[t.C_BLOCK_COMMENT_MODE,t.HASH_COMMENT_MODE,t.COMMENT("--","$"),t.COMMENT("[^:]//","$")],s=t.inherit(t.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),o=t.inherit(t.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[r,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[r,o,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE,s]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[o,s],relevance:0},{beginKeywords:"command on",end:"$",contains:[r,o,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE,s]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE,s].concat(a),illegal:";$|^\\[|^=|&|\\{"}}return TJe=e,TJe}var CJe,vmn;function oni(){if(vmn)return CJe;vmn=1;const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],t=["true","false","null","undefined","NaN","Infinity"],r=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],a=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o=["arguments","this","super","console","window","document","localStorage","module","global"],u=[].concat(s,o,r,a);function h(f){const p=["npm","print"],m=["yes","no","on","off","it","that","void"],b=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],_={keyword:e.concat(b),literal:t.concat(m),built_in:u.concat(p)},w="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",S=f.inherit(f.TITLE_MODE,{begin:w}),C={className:"subst",begin:/#\{/,end:/\}/,keywords:_},A={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:_},k=[f.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[f.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[f.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[f.BACKSLASH_ESCAPE,C,A]},{begin:/"/,end:/"/,contains:[f.BACKSLASH_ESCAPE,C,A]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[C,f.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+w},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];C.contains=k;const I={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:_,contains:["self"].concat(k)}]},N={begin:"(#=>|=>|\\|>>|-?->|!->)"};return{name:"LiveScript",aliases:["ls"],keywords:_,illegal:/\/\*/,contains:k.concat([f.COMMENT("\\/\\*","\\*\\/"),f.HASH_COMMENT_MODE,N,{className:"function",contains:[S,I],returnBegin:!0,variants:[{begin:"("+w+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+w+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+w+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[S]},S]},{begin:w+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return CJe=h,CJe}var AJe,_mn;function lni(){if(_mn)return AJe;_mn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){const s=/([-a-zA-Z$._][\w$.-]*)/,o={className:"type",begin:/\bi\d+(?=\s|\b)/},u={className:"operator",relevance:0,begin:/=/},h={className:"punctuation",relevance:0,begin:/,/},f={className:"number",variants:[{begin:/0[xX][a-fA-F0-9]+/},{begin:/-?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},p={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},m={className:"variable",variants:[{begin:t(/%/,s)},{begin:/%\d+/},{begin:/#\d+/}]},b={className:"title",variants:[{begin:t(/@/,s)},{begin:/@\d+/},{begin:t(/!/,s)},{begin:t(/!\d+/,s)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly double",contains:[o,a.COMMENT(/;\s*$/,null,{relevance:0}),a.COMMENT(/;/,/$/),a.QUOTE_STRING_MODE,{className:"string",variants:[{begin:/"/,end:/[^\\]"/}]},b,h,u,m,p,f]}}return AJe=r,AJe}var kJe,wmn;function cni(){if(wmn)return kJe;wmn=1;function e(t){var r={className:"subst",begin:/\\[tn"\\]/},a={className:"string",begin:'"',end:'"',contains:[r]},s={className:"number",relevance:0,begin:t.C_NUMBER_RE},o={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},u={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[a,{className:"comment",variants:[t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/")],relevance:0},s,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},u,o,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return kJe=e,kJe}var RJe,Emn;function uni(){if(Emn)return RJe;Emn=1;function e(t){const r="\\[=*\\[",a="\\]=*\\]",s={begin:r,end:a,contains:["self"]},o=[t.COMMENT("--(?!"+r+")","$"),t.COMMENT("--"+r,a,{contains:[s],relevance:10})];return{name:"Lua",keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:o.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:o}].concat(o)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:r,end:a,contains:[s],relevance:5}])}}return RJe=e,RJe}var IJe,xmn;function hni(){if(xmn)return IJe;xmn=1;function e(t){const r={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%t(f)).join("")}function s(...u){return"("+u.map(f=>t(f)).join("|")+")"}function o(u){const h=/([2-9]|[1-2]\d|[3][0-5])\^\^/,f=/(\w*\.\w+|\w+\.\w*|\w+)/,p=/(\d*\.\d+|\d+\.\d*|\d+)/,m=s(a(h,f),p),w=s(/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/),S=/\*\^[+-]?\d+/,A={className:"number",relevance:0,begin:a(m,r(w),r(S))},k=/[a-zA-Z$][a-zA-Z0-9$]*/,I=new Set(e),N={variants:[{className:"builtin-symbol",begin:k,"on:begin":(G,B)=>{I.has(G[0])||B.ignoreMatch()}},{className:"symbol",relevance:0,begin:k}]},L={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},P={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},M={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},F={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},U={className:"brace",relevance:0,begin:/[[\](){}]/},$={className:"message-name",relevance:0,begin:a("::",k)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[u.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),M,F,$,N,L,u.QUOTE_STRING_MODE,A,P,U]}}return NJe=o,NJe}var OJe,Tmn;function fni(){if(Tmn)return OJe;Tmn=1;function e(t){var r="('|\\.')+",a={relevance:0,contains:[{begin:r}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[t.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:a},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+r,relevance:0},{className:"number",begin:t.C_NUMBER_RE,relevance:0,starts:a},{className:"string",begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE,{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:a},{className:"string",begin:'"',end:'"',contains:[t.BACKSLASH_ESCAPE,{begin:'""'}],starts:a},t.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),t.COMMENT("%","$")]}}return OJe=e,OJe}var LJe,Cmn;function pni(){if(Cmn)return LJe;Cmn=1;function e(t){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},t.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}return LJe=e,LJe}var DJe,Amn;function gni(){if(Amn)return DJe;Amn=1;function e(t){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:""},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},a,t.C_BLOCK_COMMENT_MODE,s,t.NUMBER_MODE,o,u,{begin:/:-/},{begin:/\.$/}]}}return MJe=e,MJe}var PJe,Rmn;function bni(){if(Rmn)return PJe;Rmn=1;function e(t){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+t.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},t.COMMENT("[;#](?!\\s*$)","$"),t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}return PJe=e,PJe}var BJe,Imn;function yni(){if(Imn)return BJe;Imn=1;function e(t){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[t.COMMENT("::","$")]}}return BJe=e,BJe}var FJe,Nmn;function vni(){if(Nmn)return FJe;Nmn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(...s){return s.map(u=>e(u)).join("")}function r(...s){return"("+s.map(u=>e(u)).join("|")+")"}function a(s){const o=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],u=/[dualxmsipngr]{0,12}/,h={$pattern:/[\w.]+/,keyword:o.join(" ")},f={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:h},p={begin:/->\{/,end:/\}/},m={variants:[{begin:/\$\d/},{begin:t(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},b=[s.BACKSLASH_ESCAPE,f,m],_=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],w=(A,k,I="\\1")=>{const N=I==="\\1"?I:t(I,k);return t(t("(?:",A,")"),k,/(?:\\.|[^\\\/])*?/,N,/(?:\\.|[^\\\/])*?/,I,u)},S=(A,k,I)=>t(t("(?:",A,")"),k,/(?:\\.|[^\\\/])*?/,I,u),C=[m,s.HASH_COMMENT_MODE,s.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),p,{className:"string",contains:b,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[s.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[s.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+s.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[s.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:w("s|tr|y",r(..._))},{begin:w("s|tr|y","\\(","\\)")},{begin:w("s|tr|y","\\[","\\]")},{begin:w("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:S("(?:m|qr)?",/\//,/\//)},{begin:S("m|qr",r(..._),/\1/)},{begin:S("m|qr",/\(/,/\)/)},{begin:S("m|qr",/\[/,/\]/)},{begin:S("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[s.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return f.contains=C,p.contains=C,{name:"Perl",aliases:["pl","pm"],keywords:h,contains:C}}return FJe=a,FJe}var $Je,Omn;function _ni(){if(Omn)return $Je;Omn=1;function e(t){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}return $Je=e,$Je}var UJe,Lmn;function wni(){if(Lmn)return UJe;Lmn=1;function e(t){const r={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},t.NUMBER_MODE]};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:"public private property continue exit extern new try catch eachin not abstract final select case default const local global field end if then else elseif endif while wend repeat until forever for to step next return module inline throw import",built_in:"DebugLog DebugStop Error Print ACos ACosr ASin ASinr ATan ATan2 ATan2r ATanr Abs Abs Ceil Clamp Clamp Cos Cosr Exp Floor Log Max Max Min Min Pow Sgn Sgn Sin Sinr Sqrt Tan Tanr Seed PI HALFPI TWOPI",literal:"true false null and or shl shr mod"},illegal:/\/\*/,contains:[t.COMMENT("#rem","#end"),t.COMMENT("'","$",{relevance:0}),{className:"function",beginKeywords:"function method",end:"[(=:]|$",illegal:/\n/,contains:[t.UNDERSCORE_TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:"$",contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{className:"built_in",begin:"\\b(self|super)\\b"},{className:"meta",begin:"\\s*#",end:"$",keywords:{"meta-keyword":"if else elseif endif end then"}},{className:"meta",begin:"^\\s*strict\\b"},{beginKeywords:"alias",end:"=",contains:[t.UNDERSCORE_TITLE_MODE]},t.QUOTE_STRING_MODE,r]}}return UJe=e,UJe}var zJe,Dmn;function Eni(){if(Dmn)return zJe;Dmn=1;function e(t){const r={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},a="[A-Za-z$_][0-9A-Za-z$_]*",s={className:"subst",begin:/#\{/,end:/\}/,keywords:r},o=[t.inherit(t.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[t.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,s]}]},{className:"built_in",begin:"@__"+t.IDENT_RE},{begin:"@"+t.IDENT_RE},{begin:t.IDENT_RE+"\\\\"+t.IDENT_RE}];s.contains=o;const u=t.inherit(t.TITLE_MODE,{begin:a}),h="(\\(.*\\)\\s*)?\\B[-=]>",f={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:r,contains:["self"].concat(o)}]};return{name:"MoonScript",aliases:["moon"],keywords:r,illegal:/\/\*/,contains:o.concat([t.COMMENT("--","$"),{className:"function",begin:"^\\s*"+a+"\\s*=\\s*"+h,end:"[-=]>",returnBegin:!0,contains:[u,f]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:h,end:"[-=]>",returnBegin:!0,contains:[f]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[u]},u]},{className:"name",begin:a+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return zJe=e,zJe}var GJe,Mmn;function xni(){if(Mmn)return GJe;Mmn=1;function e(t){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,endsWithParent:!0,keywords:{keyword:"all alter analyze and any array as asc begin between binary boolean break bucket build by call case cast cluster collate collection commit connect continue correlate cover create database dataset datastore declare decrement delete derived desc describe distinct do drop each element else end every except exclude execute exists explain fetch first flatten for force from function grant group gsi having if ignore ilike in include increment index infer inline inner insert intersect into is join key keys keyspace known last left let letting like limit lsm map mapping matched materialized merge minus namespace nest not number object offset on option or order outer over parse partition password path pool prepare primary private privilege procedure public raw realm reduce rename return returning revoke right role rollback satisfies schema select self semi set show some start statistics string system then to transaction trigger truncate under union unique unknown unnest unset update upsert use user using validate value valued values via view when where while with within work xor",literal:"true false null missing|5",built_in:"array_agg array_append array_concat array_contains array_count array_distinct array_ifnull array_length array_max array_min array_position array_prepend array_put array_range array_remove array_repeat array_replace array_reverse array_sort array_sum avg count max min sum greatest least ifmissing ifmissingornull ifnull missingif nullif ifinf ifnan ifnanorinf naninf neginfif posinfif clock_millis clock_str date_add_millis date_add_str date_diff_millis date_diff_str date_part_millis date_part_str date_trunc_millis date_trunc_str duration_to_str millis str_to_millis millis_to_str millis_to_utc millis_to_zone_name now_millis now_str str_to_duration str_to_utc str_to_zone_name decode_json encode_json encoded_size poly_length base64 base64_encode base64_decode meta uuid abs acos asin atan atan2 ceil cos degrees e exp ln log floor pi power radians random round sign sin sqrt tan trunc object_length object_names object_pairs object_inner_pairs object_values object_inner_values object_add object_put object_remove object_unwrap regexp_contains regexp_like regexp_position regexp_replace contains initcap length lower ltrim position repeat replace rtrim split substr title trim upper isarray isatom isboolean isnumber isobject isstring type toarray toatom toboolean tonumber toobject tostring"},contains:[{className:"string",begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[t.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE],relevance:2},t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE]},t.C_BLOCK_COMMENT_MODE]}}return GJe=e,GJe}var qJe,Pmn;function Sni(){if(Pmn)return qJe;Pmn=1;function e(t){const r={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{/,end:/\}/},{begin:/[$@]/+t.UNDERSCORE_IDENT_RE}]},a={endsWithParent:!0,keywords:{$pattern:"[a-z/_]+",literal:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},relevance:0,illegal:"=>",contains:[t.HASH_COMMENT_MODE,{className:"string",contains:[t.BACKSLASH_ESCAPE,r],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[r]},{className:"regexp",contains:[t.BACKSLASH_ESCAPE,r],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]*\\b",relevance:0},r]};return{name:"Nginx config",aliases:["nginxconf"],contains:[t.HASH_COMMENT_MODE,{begin:t.UNDERSCORE_IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\{/,contains:[{className:"section",begin:t.UNDERSCORE_IDENT_RE}],relevance:0},{begin:t.UNDERSCORE_IDENT_RE+"\\s",end:";|\\{",returnBegin:!0,contains:[{className:"attribute",begin:t.UNDERSCORE_IDENT_RE,starts:a}],relevance:0}],illegal:"[^\\s\\}]"}}return qJe=e,qJe}var HJe,Bmn;function Tni(){if(Bmn)return HJe;Bmn=1;function e(t){return{name:"Nim",keywords:{keyword:"addr and as asm bind block break case cast const continue converter discard distinct div do elif else end enum except export finally for from func generic if import in include interface is isnot iterator let macro method mixin mod nil not notin object of or out proc ptr raise ref return shl shr static template try tuple type using var when while with without xor yield",literal:"shared guarded stdin stdout stderr result true false",built_in:"int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 float float32 float64 bool char string cstring pointer expr stmt void auto any range array openarray varargs seq set clong culong cchar cschar cshort cint csize clonglong cfloat cdouble clongdouble cuchar cushort cuint culonglong cstringarray semistatic"},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},t.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},t.HASH_COMMENT_MODE]}}return HJe=e,HJe}var VJe,Fmn;function Cni(){if(Fmn)return VJe;Fmn=1;function e(t){const r={keyword:"rec with let in inherit assert if else then",literal:"true false or and null",built_in:"import abort baseNameOf dirOf isNull builtins map removeAttrs throw toString derivation"},a={className:"subst",begin:/\$\{/,end:/\}/,keywords:r},s={begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/}]},o={className:"string",contains:[a],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},u=[t.NUMBER_MODE,t.HASH_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,o,s];return a.contains=u,{name:"Nix",aliases:["nixos"],keywords:r,contains:u}}return VJe=e,VJe}var YJe,$mn;function Ani(){if($mn)return YJe;$mn=1;function e(t){return{name:"Node REPL",contains:[{className:"meta",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return YJe=e,YJe}var jJe,Umn;function kni(){if(Umn)return jJe;Umn=1;function e(t){const r={className:"variable",begin:/\$(ADMINTOOLS|APPDATA|CDBURN_AREA|CMDLINE|COMMONFILES32|COMMONFILES64|COMMONFILES|COOKIES|DESKTOP|DOCUMENTS|EXEDIR|EXEFILE|EXEPATH|FAVORITES|FONTS|HISTORY|HWNDPARENT|INSTDIR|INTERNET_CACHE|LANGUAGE|LOCALAPPDATA|MUSIC|NETHOOD|OUTDIR|PICTURES|PLUGINSDIR|PRINTHOOD|PROFILE|PROGRAMFILES32|PROGRAMFILES64|PROGRAMFILES|QUICKLAUNCH|RECENT|RESOURCES_LOCALIZED|RESOURCES|SENDTO|SMPROGRAMS|SMSTARTUP|STARTMENU|SYSDIR|TEMP|TEMPLATES|VIDEOS|WINDIR)/},a={className:"variable",begin:/\$+\{[\w.:-]+\}/},s={className:"variable",begin:/\$+\w+/,illegal:/\(\)\{\}/},o={className:"variable",begin:/\$+\([\w^.:-]+\)/},u={className:"params",begin:"(ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HKCR|HKCU|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM|HKPD|HKU|IDABORT|IDCANCEL|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY)"},h={className:"keyword",begin:/!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|searchparse|searchreplace|system|tempfile|undef|verbose|warning)/},f={className:"meta",begin:/\$(\\[nrt]|\$)/},p={className:"class",begin:/\w+::\w+/},m={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[f,r,a,s,o]};return{name:"NSIS",case_insensitive:!1,keywords:{keyword:"Abort AddBrandingImage AddSize AllowRootDirInstall AllowSkipFiles AutoCloseWindow BGFont BGGradient BrandingText BringToFront Call CallInstDLL Caption ChangeUI CheckBitmap ClearErrors CompletedText ComponentText CopyFiles CRCCheck CreateDirectory CreateFont CreateShortCut Delete DeleteINISec DeleteINIStr DeleteRegKey DeleteRegValue DetailPrint DetailsButtonText DirText DirVar DirVerify EnableWindow EnumRegKey EnumRegValue Exch Exec ExecShell ExecShellWait ExecWait ExpandEnvStrings File FileBufSize FileClose FileErrorText FileOpen FileRead FileReadByte FileReadUTF16LE FileReadWord FileWriteUTF16LE FileSeek FileWrite FileWriteByte FileWriteWord FindClose FindFirst FindNext FindWindow FlushINI GetCurInstType GetCurrentAddress GetDlgItem GetDLLVersion GetDLLVersionLocal GetErrorLevel GetFileTime GetFileTimeLocal GetFullPathName GetFunctionAddress GetInstDirError GetKnownFolderPath GetLabelAddress GetTempFileName Goto HideWindow Icon IfAbort IfErrors IfFileExists IfRebootFlag IfRtlLanguage IfShellVarContextAll IfSilent InitPluginsDir InstallButtonText InstallColors InstallDir InstallDirRegKey InstProgressFlags InstType InstTypeGetText InstTypeSetText Int64Cmp Int64CmpU Int64Fmt IntCmp IntCmpU IntFmt IntOp IntPtrCmp IntPtrCmpU IntPtrOp IsWindow LangString LicenseBkColor LicenseData LicenseForceSelection LicenseLangString LicenseText LoadAndSetImage LoadLanguageFile LockWindow LogSet LogText ManifestDPIAware ManifestLongPathAware ManifestMaxVersionTested ManifestSupportedOS MessageBox MiscButtonText Name Nop OutFile Page PageCallbacks PEAddResource PEDllCharacteristics PERemoveResource PESubsysVer Pop Push Quit ReadEnvStr ReadINIStr ReadRegDWORD ReadRegStr Reboot RegDLL Rename RequestExecutionLevel ReserveFile Return RMDir SearchPath SectionGetFlags SectionGetInstTypes SectionGetSize SectionGetText SectionIn SectionSetFlags SectionSetInstTypes SectionSetSize SectionSetText SendMessage SetAutoClose SetBrandingImage SetCompress SetCompressor SetCompressorDictSize SetCtlColors SetCurInstType SetDatablockOptimize SetDateSave SetDetailsPrint SetDetailsView SetErrorLevel SetErrors SetFileAttributes SetFont SetOutPath SetOverwrite SetRebootFlag SetRegView SetShellVarContext SetSilent ShowInstDetails ShowUninstDetails ShowWindow SilentInstall SilentUnInstall Sleep SpaceTexts StrCmp StrCmpS StrCpy StrLen SubCaption Unicode UninstallButtonText UninstallCaption UninstallIcon UninstallSubCaption UninstallText UninstPage UnRegDLL Var VIAddVersionKey VIFileVersion VIProductVersion WindowIcon WriteINIStr WriteRegBin WriteRegDWORD WriteRegExpandStr WriteRegMultiStr WriteRegNone WriteRegStr WriteUninstaller XPStyle",literal:"admin all auto both bottom bzip2 colored components current custom directory false force hide highest ifdiff ifnewer instfiles lastused leave left license listonly lzma nevershow none normal notset off on open print right show silent silentlog smooth textonly top true try un.components un.custom un.directory un.instfiles un.license uninstConfirm user Win10 Win7 Win8 WinVista zlib"},contains:[t.HASH_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT(";","$",{relevance:0}),{className:"function",beginKeywords:"Function PageEx Section SectionGroup",end:"$"},m,h,a,s,o,u,p,t.NUMBER_MODE]}}return jJe=e,jJe}var WJe,zmn;function Rni(){if(zmn)return WJe;zmn=1;function e(t){const r={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},a=/[a-zA-Z@][a-zA-Z0-9_]*/,s={$pattern:a,keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required @encode @package @import @defs @compatibility_alias __bridge __bridge_transfer __bridge_retained __bridge_retain __covariant __contravariant __kindof _Nonnull _Nullable _Null_unspecified __FUNCTION__ __PRETTY_FUNCTION__ __attribute__ getter setter retain unsafe_unretained nonnull nullable null_unspecified null_resettable class instancetype NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},o={$pattern:a,keyword:"@interface @class @protocol @implementation"};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+o.keyword.split(" ").join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:o,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}return WJe=e,WJe}var KJe,Gmn;function Ini(){if(Gmn)return KJe;Gmn=1;function e(t){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},t.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},t.inherit(t.APOS_STRING_MODE,{className:"string",relevance:0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}return KJe=e,KJe}var XJe,qmn;function Nni(){if(qmn)return XJe;qmn=1;function e(t){const r={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},a={className:"literal",begin:"false|true|PI|undef"},s={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},o=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),u={className:"meta",keywords:{"meta-keyword":"include use"},begin:"include|use <",end:">"},h={className:"params",begin:"\\(",end:"\\)",contains:["self",s,o,r,a]},f={begin:"[*!#%]",relevance:0},p={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[h,t.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,s,u,o,r,f,p]}}return XJe=e,XJe}var QJe,Hmn;function Oni(){if(Hmn)return QJe;Hmn=1;function e(t){const r={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},a=t.COMMENT(/\{/,/\}/,{relevance:0}),s=t.COMMENT("\\(\\*","\\*\\)",{relevance:10}),o={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},u={className:"string",begin:"(#\\d+)+"},h={className:"function",beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[t.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",keywords:r,contains:[o,u]},a,s]};return{name:"Oxygene",case_insensitive:!0,keywords:r,illegal:'("|\\$[G-Zg-z]|\\/\\*||->)',contains:[a,s,t.C_LINE_COMMENT_MODE,o,u,t.NUMBER_MODE,h,{className:"class",begin:"=\\bclass\\b",end:"end;",keywords:r,contains:[o,u,a,s,t.C_LINE_COMMENT_MODE,h]}]}}return QJe=e,QJe}var ZJe,Vmn;function Lni(){if(Vmn)return ZJe;Vmn=1;function e(t){const r=t.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[t.COMMENT("^#","$"),t.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[r]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},t.C_NUMBER_MODE]}}return ZJe=e,ZJe}var JJe,Ymn;function Dni(){if(Ymn)return JJe;Ymn=1;function e(t){const r={className:"variable",begin:/\$[\w\d#@][\w\d_]*/},a={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[t.HASH_COMMENT_MODE,t.NUMBER_MODE,t.QUOTE_STRING_MODE,r,a]}}return JJe=e,JJe}var eet,jmn;function Mni(){if(jmn)return eet;jmn=1;function e(t){const r=t.COMMENT("--","$"),a="[a-zA-Z_][a-zA-Z_0-9$]*",s="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",o="<<\\s*"+a+"\\s*>>",u="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",h="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",f="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",p="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",m=p.trim().split(" ").map(function(A){return A.split("|")[0]}).join("|"),b="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",_="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",w="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",C="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(A){return A.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],case_insensitive:!0,keywords:{keyword:u+f+h,built_in:b+_+w},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:t.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+C+")\\s*\\("},{begin:"\\.("+m+")\\b"},{begin:"\\b("+m+")\\s+PATH\\b",keywords:{keyword:"PATH",type:p.replace("PATH ","")}},{className:"type",begin:"\\b("+m+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},t.END_SAME_AS_BEGIN({begin:s,end:s,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,r,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:o,relevance:10}]}}return eet=e,eet}var tet,Wmn;function Pni(){if(Wmn)return tet;Wmn=1;function e(t){const r={className:"variable",begin:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*(?![A-Za-z0-9])(?![$])"},a={className:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?[=]?/},{begin:/\?>/}]},s={className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},o=t.inherit(t.APOS_STRING_MODE,{illegal:null}),u=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(s)}),h=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(s)}),f={className:"string",contains:[t.BACKSLASH_ESCAPE,a],variants:[t.inherit(o,{begin:"b'",end:"'"}),t.inherit(u,{begin:'b"',end:'"'}),u,o,h]},p={className:"number",variants:[{begin:"\\b0b[01]+(?:_[01]+)*\\b"},{begin:"\\b0o[0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0x[\\da-f]+(?:_[\\da-f]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:e[+-]?\\d+)?"}],relevance:0},m={keyword:"__CLASS__ __DIR__ __FILE__ __FUNCTION__ __LINE__ __METHOD__ __NAMESPACE__ __TRAIT__ die echo exit include include_once print require require_once array abstract and as binary bool boolean break callable case catch class clone const continue declare default do double else elseif empty enddeclare endfor endforeach endif endswitch endwhile enum eval extends final finally float for foreach from global goto if implements instanceof insteadof int integer interface isset iterable list match|0 mixed new object or private protected public real return string switch throw trait try unset use var void while xor yield",literal:"false null true",built_in:"Error|0 AppendIterator ArgumentCountError ArithmeticError ArrayIterator ArrayObject AssertionError BadFunctionCallException BadMethodCallException CachingIterator CallbackFilterIterator CompileError Countable DirectoryIterator DivisionByZeroError DomainException EmptyIterator ErrorException Exception FilesystemIterator FilterIterator GlobIterator InfiniteIterator InvalidArgumentException IteratorIterator LengthException LimitIterator LogicException MultipleIterator NoRewindIterator OutOfBoundsException OutOfRangeException OuterIterator OverflowException ParentIterator ParseError RangeException RecursiveArrayIterator RecursiveCachingIterator RecursiveCallbackFilterIterator RecursiveDirectoryIterator RecursiveFilterIterator RecursiveIterator RecursiveIteratorIterator RecursiveRegexIterator RecursiveTreeIterator RegexIterator RuntimeException SeekableIterator SplDoublyLinkedList SplFileInfo SplFileObject SplFixedArray SplHeap SplMaxHeap SplMinHeap SplObjectStorage SplObserver SplObserver SplPriorityQueue SplQueue SplStack SplSubject SplSubject SplTempFileObject TypeError UnderflowException UnexpectedValueException UnhandledMatchError ArrayAccess Closure Generator Iterator IteratorAggregate Serializable Stringable Throwable Traversable WeakReference WeakMap Directory __PHP_Incomplete_Class parent php_user_filter self static stdClass"};return{aliases:["php3","php4","php5","php6","php7","php8"],case_insensitive:!0,keywords:m,contains:[t.HASH_COMMENT_MODE,t.COMMENT("//","$",{contains:[a]}),t.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),t.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler"}),a,{className:"keyword",begin:/\$this\b/},r,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{className:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:m,contains:["self",r,t.C_BLOCK_COMMENT_MODE,f,p]}]},{className:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",relevance:0,end:";",contains:[t.UNDERSCORE_TITLE_MODE]},f,p]}}return tet=e,tet}var net,Kmn;function Bni(){if(Kmn)return net;Kmn=1;function e(t){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return net=e,net}var ret,Xmn;function Fni(){if(Xmn)return ret;Xmn=1;function e(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return ret=e,ret}var iet,Qmn;function $ni(){if(Qmn)return iet;Qmn=1;function e(t){const r={keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},a={className:"string",begin:'"""',end:'"""',relevance:10},s={className:"string",begin:'"',end:'"',contains:[t.BACKSLASH_ESCAPE]},o={className:"string",begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE],relevance:0},u={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},h={begin:t.IDENT_RE+"'",relevance:0};return{name:"Pony",keywords:r,contains:[u,a,s,o,h,{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}}return iet=e,iet}var aet,Zmn;function Uni(){if(Zmn)return aet;Zmn=1;function e(t){const r=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],a="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",s="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",o={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},u=/\w[\w\d]*((-)[\w\d]+)*/,h={begin:"`[\\s\\S]",relevance:0},f={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},p={className:"literal",begin:/\$(null|true|false)\b/},m={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[h,f,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},b={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},_={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},w=t.inherit(t.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[_]}),S={className:"built_in",variants:[{begin:"(".concat(a,")+(-)[\\w\\d]+")}]},C={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[t.TITLE_MODE]},A={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:u,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[f]}]},k={begin:/using\s/,end:/$/,returnBegin:!0,contains:[m,b,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},I={variants:[{className:"operator",begin:"(".concat(s,")\\b")},{className:"literal",begin:/(-)[\w\d]+/,relevance:0}]},N={className:"selector-tag",begin:/@\B/,relevance:0},L={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(o.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},t.inherit(t.TITLE_MODE,{endsParent:!0})]},P=[L,w,h,t.NUMBER_MODE,m,b,S,f,p,N],M={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",P,{begin:"("+r.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return L.contains.unshift(M),{name:"PowerShell",aliases:["ps","ps1"],case_insensitive:!0,keywords:o,contains:P.concat(C,A,k,I,M)}}return aet=e,aet}var set,Jmn;function zni(){if(Jmn)return set;Jmn=1;function e(t){return{name:"Processing",keywords:{keyword:"BufferedReader PVector PFont PImage PGraphics HashMap boolean byte char color double float int long String Array FloatDict FloatList IntDict IntList JSONArray JSONObject Object StringDict StringList Table TableRow XML false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private",literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI",title:"setup draw",built_in:"displayHeight displayWidth mouseY mouseX mousePressed pmouseX pmouseY key keyCode pixels focused frameCount frameRate height width size createGraphics beginDraw createShape loadShape PShape arc ellipse line point quad rect triangle bezier bezierDetail bezierPoint bezierTangent curve curveDetail curvePoint curveTangent curveTightness shape shapeMode beginContour beginShape bezierVertex curveVertex endContour endShape quadraticVertex vertex ellipseMode noSmooth rectMode smooth strokeCap strokeJoin strokeWeight mouseClicked mouseDragged mouseMoved mousePressed mouseReleased mouseWheel keyPressed keyPressedkeyReleased keyTyped print println save saveFrame day hour millis minute month second year background clear colorMode fill noFill noStroke stroke alpha blue brightness color green hue lerpColor red saturation modelX modelY modelZ screenX screenY screenZ ambient emissive shininess specular add createImage beginCamera camera endCamera frustum ortho perspective printCamera printProjection cursor frameRate noCursor exit loop noLoop popStyle pushStyle redraw binary boolean byte char float hex int str unbinary unhex join match matchAll nf nfc nfp nfs split splitTokens trim append arrayCopy concat expand reverse shorten sort splice subset box sphere sphereDetail createInput createReader loadBytes loadJSONArray loadJSONObject loadStrings loadTable loadXML open parseXML saveTable selectFolder selectInput beginRaw beginRecord createOutput createWriter endRaw endRecord PrintWritersaveBytes saveJSONArray saveJSONObject saveStream saveStrings saveXML selectOutput popMatrix printMatrix pushMatrix resetMatrix rotate rotateX rotateY rotateZ scale shearX shearY translate ambientLight directionalLight lightFalloff lights lightSpecular noLights normal pointLight spotLight image imageMode loadImage noTint requestImage tint texture textureMode textureWrap blend copy filter get loadPixels set updatePixels blendMode loadShader PShaderresetShader shader createFont loadFont text textFont textAlign textLeading textMode textSize textWidth textAscent textDescent abs ceil constrain dist exp floor lerp log mag map max min norm pow round sq sqrt acos asin atan atan2 cos degrees radians sin tan noise noiseDetail noiseSeed random randomGaussian randomSeed"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE]}}return set=e,set}var oet,ebn;function Gni(){if(ebn)return oet;ebn=1;function e(t){return{name:"Python profiler",contains:[t.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[t.C_NUMBER_MODE],relevance:10},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}return oet=e,oet}var cet,tbn;function qni(){if(tbn)return cet;tbn=1;function e(t){const r={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},a={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},s={begin:/\(/,end:/\)/,relevance:0},o={begin:/\[/,end:/\]/},u={className:"comment",begin:/%/,end:/$/,contains:[t.PHRASAL_WORDS_MODE]},h={className:"string",begin:/`/,end:/`/,contains:[t.BACKSLASH_ESCAPE]},f={className:"string",begin:/0'(\\'|.)/},p={className:"string",begin:/0'\\s/},b=[r,a,s,{begin:/:-/},o,u,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,h,f,p,t.C_NUMBER_MODE];return s.contains=b,o.contains=b,{name:"Prolog",contains:b.concat([{begin:/\.$/}])}}return cet=e,cet}var uet,nbn;function Hni(){if(nbn)return uet;nbn=1;function e(t){var r="[ \\t\\f]*",a="[ \\t\\f]+",s=r+"[:=]"+r,o=a,u="("+s+"|"+o+")",h="([^\\\\\\W:= \\t\\f\\n]|\\\\.)+",f="([^\\\\:= \\t\\f\\n]|\\\\.)+",p={end:u,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",case_insensitive:!0,illegal:/\S/,contains:[t.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:h+s,relevance:1},{begin:h+o,relevance:0}],contains:[{className:"attr",begin:h,endsParent:!0,relevance:0}],starts:p},{begin:f+u,returnBegin:!0,relevance:0,contains:[{className:"meta",begin:f,endsParent:!0,relevance:0}],starts:p},{className:"attr",relevance:0,begin:f+r+"$"}]}}return uet=e,uet}var het,rbn;function Vni(){if(rbn)return het;rbn=1;function e(t){return{name:"Protocol Buffers",keywords:{keyword:"package import option optional required repeated group oneof",built_in:"double float int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 bool string bytes",literal:"true false"},contains:[t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"message enum service",end:/\{/,illegal:/\n/,contains:[t.inherit(t.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}return het=e,het}var det,ibn;function Yni(){if(ibn)return det;ibn=1;function e(t){const r={keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},a=t.COMMENT("#","$"),s="([A-Za-z_]|::)(\\w|::)*",o=t.inherit(t.TITLE_MODE,{begin:s}),u={className:"variable",begin:"\\$"+s},h={className:"string",contains:[t.BACKSLASH_ESCAPE,u],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[a,u,h,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[o,a]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:t.IDENT_RE,endsParent:!0}]},{begin:t.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:t.IDENT_RE},{begin:/\{/,end:/\}/,keywords:r,relevance:0,contains:[h,a,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:t.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},u]}],relevance:0}]}}return det=e,det}var fet,abn;function jni(){if(abn)return fet;abn=1;function e(t){const r={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},a={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[t.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},t.UNDERSCORE_TITLE_MODE]},r,a]}}return fet=e,fet}var pet,sbn;function Wni(){if(sbn)return pet;sbn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(s){return r("(?=",s,")")}function r(...s){return s.map(u=>e(u)).join("")}function a(s){const p={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:["and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},m={className:"meta",begin:/^(>>>|\.\.\.) /},b={className:"subst",begin:/\{/,end:/\}/,keywords:p,illegal:/#/},_={begin:/\{\{/,relevance:0},w={className:"string",contains:[s.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[s.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[s.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[s.BACKSLASH_ESCAPE,m,_,b]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[s.BACKSLASH_ESCAPE,m,_,b]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[s.BACKSLASH_ESCAPE,_,b]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[s.BACKSLASH_ESCAPE,_,b]},s.APOS_STRING_MODE,s.QUOTE_STRING_MODE]},S="[0-9](_?[0-9])*",C=`(\\b(${S}))?\\.(${S})|\\b(${S})\\.`,A={className:"number",relevance:0,variants:[{begin:`(\\b(${S})|(${C}))[eE][+-]?(${S})[jJ]?\\b`},{begin:`(${C})[jJ]?`},{begin:"\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?\\b"},{begin:"\\b0[bB](_?[01])+[lL]?\\b"},{begin:"\\b0[oO](_?[0-7])+[lL]?\\b"},{begin:"\\b0[xX](_?[0-9a-fA-F])+[lL]?\\b"},{begin:`\\b(${S})[jJ]\\b`}]},k={className:"comment",begin:t(/# type:/),end:/$/,keywords:p,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},I={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:["self",m,A,w,s.HASH_COMMENT_MODE]}]};return b.contains=[w,A,m],{name:"Python",aliases:["py","gyp","ipython"],keywords:p,illegal:/(<\/|->|\?)|=>/,contains:[m,A,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},w,k,s.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def"},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[s.UNDERSCORE_TITLE_MODE,I,{begin:/->/,endsWithParent:!0,keywords:p}]},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[A,I,w]}]}}return pet=a,pet}var get,obn;function Kni(){if(obn)return get;obn=1;function e(t){return{aliases:["pycon"],contains:[{className:"meta",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return get=e,get}var met,lbn;function Xni(){if(lbn)return met;lbn=1;function e(t){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[t.C_LINE_COMMENT_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE]}}return met=e,met}var bet,cbn;function Qni(){if(cbn)return bet;cbn=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(...a){return a.map(o=>e(o)).join("")}function r(a){const s={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},o="[a-zA-Z_][a-zA-Z0-9\\._]*",u={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},h={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},f={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:o,returnEnd:!1}},p={begin:o+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:o,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},m={begin:t(o,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[a.inherit(a.TITLE_MODE,{begin:o})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:s,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[a.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:a.C_NUMBER_RE}],relevance:0},{begin:"("+a.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,a.REGEXP_MODE,{begin:/\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},h,u,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[a.inherit(a.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+a.IDENT_RE,relevance:0},f,p,m],illegal:/#/}}return bet=r,bet}var yet,ubn;function Zni(){if(ubn)return yet;ubn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(s){return r("(?=",s,")")}function r(...s){return s.map(u=>e(u)).join("")}function a(s){const o=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,u=/[a-zA-Z][a-zA-Z_0-9]*/;return{name:"R",illegal:/->/,keywords:{$pattern:o,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},compilerExtensions:[(h,f)=>{if(!h.beforeMatch)return;if(h.starts)throw new Error("beforeMatch cannot be used with starts");const p=Object.assign({},h);Object.keys(h).forEach(m=>{delete h[m]}),h.begin=r(p.beforeMatch,t(p.begin)),h.starts={relevance:0,contains:[Object.assign(p,{endsParent:!0})]},h.relevance=0,delete p.beforeMatch}],contains:[s.COMMENT(/#'/,/$/,{contains:[{className:"doctag",begin:"@examples",starts:{contains:[{begin:/\n/},{begin:/#'\s*(?=@[a-zA-Z]+)/,endsParent:!0},{begin:/#'/,end:/$/,excludeBegin:!0}]}},{className:"doctag",begin:"@param",end:/$/,contains:[{className:"variable",variants:[{begin:o},{begin:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{className:"doctag",begin:/@[a-zA-Z]+/},{className:"meta-keyword",begin:/\\[a-zA-Z]+/}]}),s.HASH_COMMENT_MODE,{className:"string",contains:[s.BACKSLASH_ESCAPE],variants:[s.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),s.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),s.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),s.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),s.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),s.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{className:"number",relevance:0,beforeMatch:/([^a-zA-Z0-9._])/,variants:[{match:/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/},{match:/0[xX][0-9a-fA-F]+([pP][+-]?\d+)?[Li]?/},{match:/(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?[Li]?/}]},{begin:"%",end:"%"},{begin:r(u,"\\s+<-\\s+")},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return yet=a,yet}var vet,hbn;function Jni(){if(hbn)return vet;hbn=1;function e(t){function r(M){return M.map(function(F){return F.split("").map(function(U){return"\\"+U}).join("")}).join("|")}const a="~?[a-z$_][0-9a-zA-Z$_]*",s="`?[A-Z$_][0-9a-zA-Z$_]*",o="'?[a-z$_][0-9a-z$_]*",u="\\s*:\\s*[a-z$_][0-9a-z$_]*(\\(\\s*("+o+"\\s*(,"+o+"\\s*)*)?\\))?",h=a+"("+u+"){0,2}",f="("+r(["||","++","**","+.","*","/","*.","/.","..."])+"|\\|>|&&|==|===)",p="\\s+"+f+"\\s+",m={keyword:"and as asr assert begin class constraint do done downto else end exception external for fun function functor if in include inherit initializer land lazy let lor lsl lsr lxor match method mod module mutable new nonrec object of open or private rec sig struct then to try type val virtual when while with",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 ref string unit ",literal:"true false"},b="\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",_={className:"number",relevance:0,variants:[{begin:b},{begin:"\\(-"+b+"\\)"}]},w={className:"operator",relevance:0,begin:f},S=[{className:"identifier",relevance:0,begin:a},w,_],C=[t.QUOTE_STRING_MODE,w,{className:"module",begin:"\\b"+s,returnBegin:!0,end:".",contains:[{className:"identifier",begin:s,relevance:0}]}],A=[{className:"module",begin:"\\b"+s,returnBegin:!0,end:".",relevance:0,contains:[{className:"identifier",begin:s,relevance:0}]}],k={begin:a,end:"(,|\\n|\\))",relevance:0,contains:[w,{className:"typing",begin:":",end:"(,|\\n)",returnBegin:!0,relevance:0,contains:A}]},I={className:"function",relevance:0,keywords:m,variants:[{begin:"\\s(\\(\\.?.*?\\)|"+a+")\\s*=>",end:"\\s*=>",returnBegin:!0,relevance:0,contains:[{className:"params",variants:[{begin:a},{begin:h},{begin:/\(\s*\)/}]}]},{begin:"\\s\\(\\.?[^;\\|]*\\)\\s*=>",end:"\\s=>",returnBegin:!0,relevance:0,contains:[{className:"params",relevance:0,variants:[k]}]},{begin:"\\(\\.\\s"+a+"\\)\\s*=>"}]};C.push(I);const N={className:"constructor",begin:s+"\\(",end:"\\)",illegal:"\\n",keywords:m,contains:[t.QUOTE_STRING_MODE,w,{className:"params",begin:"\\b"+a}]},L={className:"pattern-match",begin:"\\|",returnBegin:!0,keywords:m,end:"=>",relevance:0,contains:[N,w,{relevance:0,className:"constructor",begin:s}]},P={className:"module-access",keywords:m,returnBegin:!0,variants:[{begin:"\\b("+s+"\\.)+"+a},{begin:"\\b("+s+"\\.)+\\(",end:"\\)",returnBegin:!0,contains:[I,{begin:"\\(",end:"\\)",skip:!0}].concat(C)},{begin:"\\b("+s+"\\.)+\\{",end:/\}/}],contains:C};return A.push(P),{name:"ReasonML",aliases:["re"],keywords:m,illegal:"(:-|:=|\\$\\{|\\+=)",contains:[t.COMMENT("/\\*","\\*/",{illegal:"^(#,\\/\\/)"}),{className:"character",begin:"'(\\\\[^']+|[^'])'",illegal:"\\n",relevance:0},t.QUOTE_STRING_MODE,{className:"literal",begin:"\\(\\)",relevance:0},{className:"literal",begin:"\\[\\|",end:"\\|\\]",relevance:0,contains:S},{className:"literal",begin:"\\[",end:"\\]",relevance:0,contains:S},N,{className:"operator",begin:p,illegal:"-->",relevance:0},_,t.C_LINE_COMMENT_MODE,L,I,{className:"module-def",begin:"\\bmodule\\s+"+a+"\\s+"+s+"\\s+=\\s+\\{",end:/\}/,returnBegin:!0,keywords:m,relevance:0,contains:[{className:"module",relevance:0,begin:s},{begin:/\{/,end:/\}/,skip:!0}].concat(C)},P]}}return vet=e,vet}var _et,dbn;function eri(){if(dbn)return _et;dbn=1;function e(t){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"/}],illegal:/./},t.COMMENT("^#","$"),f,p,h,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[f,p,h,{className:"literal",begin:"\\b("+o.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+s.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"builtin-name",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+u.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}return Eet=e,Eet}var xet,gbn;function rri(){if(gbn)return xet;gbn=1;function e(t){return{name:"RenderMan RSL",keywords:{keyword:"float color point normal vector matrix while for if do return else break extern continue",built_in:"abs acos ambient area asin atan atmosphere attribute calculatenormal ceil cellnoise clamp comp concat cos degrees depth Deriv diffuse distance Du Dv environment exp faceforward filterstep floor format fresnel incident length lightsource log match max min mod noise normalize ntransform opposite option phong pnoise pow printf ptlined radians random reflect refract renderinfo round setcomp setxcomp setycomp setzcomp shadow sign sin smoothstep specular specularbrdf spline sqrt step tan texture textureinfo trace transform vtransform xcomp ycomp zcomp"},illegal:""}]}}return Cet=e,Cet}var Aet,ybn;function sri(){if(ybn)return Aet;ybn=1;function e(t){return{name:"SAS",case_insensitive:!0,keywords:{literal:"null missing _all_ _automatic_ _character_ _infile_ _n_ _name_ _null_ _numeric_ _user_ _webout_",meta:"do if then else end until while abort array attrib by call cards cards4 catname continue datalines datalines4 delete delim delimiter display dm drop endsas error file filename footnote format goto in infile informat input keep label leave length libname link list lostcard merge missing modify options output out page put redirect remove rename replace retain return select set skip startsas stop title update waitsas where window x systask add and alter as cascade check create delete describe distinct drop foreign from group having index insert into in key like message modify msgtype not null on or order primary references reset restrict select set table unique update validate view where"},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{className:"emphasis",begin:/^\s*datalines|cards.*;/,end:/^\s*;\s*$/},{className:"built_in",begin:"%("+"bquote|nrbquote|cmpres|qcmpres|compstor|datatyp|display|do|else|end|eval|global|goto|if|index|input|keydef|label|left|length|let|local|lowcase|macro|mend|nrbquote|nrquote|nrstr|put|qcmpres|qleft|qlowcase|qscan|qsubstr|qsysfunc|qtrim|quote|qupcase|scan|str|substr|superq|syscall|sysevalf|sysexec|sysfunc|sysget|syslput|sysprod|sysrc|sysrput|then|to|trim|unquote|until|upcase|verify|while|window"+")"},{className:"name",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:"[^%]("+"abs|addr|airy|arcos|arsin|atan|attrc|attrn|band|betainv|blshift|bnot|bor|brshift|bxor|byte|cdf|ceil|cexist|cinv|close|cnonct|collate|compbl|compound|compress|cos|cosh|css|curobs|cv|daccdb|daccdbsl|daccsl|daccsyd|dacctab|dairy|date|datejul|datepart|datetime|day|dclose|depdb|depdbsl|depdbsl|depsl|depsl|depsyd|depsyd|deptab|deptab|dequote|dhms|dif|digamma|dim|dinfo|dnum|dopen|doptname|doptnum|dread|dropnote|dsname|erf|erfc|exist|exp|fappend|fclose|fcol|fdelete|fetch|fetchobs|fexist|fget|fileexist|filename|fileref|finfo|finv|fipname|fipnamel|fipstate|floor|fnonct|fnote|fopen|foptname|foptnum|fpoint|fpos|fput|fread|frewind|frlen|fsep|fuzz|fwrite|gaminv|gamma|getoption|getvarc|getvarn|hbound|hms|hosthelp|hour|ibessel|index|indexc|indexw|input|inputc|inputn|int|intck|intnx|intrr|irr|jbessel|juldate|kurtosis|lag|lbound|left|length|lgamma|libname|libref|log|log10|log2|logpdf|logpmf|logsdf|lowcase|max|mdy|mean|min|minute|mod|month|mopen|mort|n|netpv|nmiss|normal|note|npv|open|ordinal|pathname|pdf|peek|peekc|pmf|point|poisson|poke|probbeta|probbnml|probchi|probf|probgam|probhypr|probit|probnegb|probnorm|probt|put|putc|putn|qtr|quote|ranbin|rancau|ranexp|rangam|range|rank|rannor|ranpoi|rantbl|rantri|ranuni|repeat|resolve|reverse|rewind|right|round|saving|scan|sdf|second|sign|sin|sinh|skewness|soundex|spedis|sqrt|std|stderr|stfips|stname|stnamel|substr|sum|symget|sysget|sysmsg|sysprod|sysrc|system|tan|tanh|time|timepart|tinv|tnonct|today|translate|tranwrd|trigamma|trim|trimn|trunc|uniform|upcase|uss|var|varfmt|varinfmt|varlabel|varlen|varname|varnum|varray|varrayx|vartype|verify|vformat|vformatd|vformatdx|vformatn|vformatnx|vformatw|vformatwx|vformatx|vinarray|vinarrayx|vinformat|vinformatd|vinformatdx|vinformatn|vinformatnx|vinformatw|vinformatwx|vinformatx|vlabel|vlabelx|vlength|vlengthx|vname|vnamex|vtype|vtypex|weekday|year|yyq|zipfips|zipname|zipnamel|zipstate"+")[(]"},{className:"string",variants:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},t.COMMENT("\\*",";"),t.C_BLOCK_COMMENT_MODE]}}return Aet=e,Aet}var ket,vbn;function ori(){if(vbn)return ket;vbn=1;function e(t){const r={className:"meta",begin:"@[A-Za-z]+"},a={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},s={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE,a]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[a],relevance:10}]},o={className:"symbol",begin:"'\\w[\\w\\d_]*(?!')"},u={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},h={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},f={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[u]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[u]},h]},p={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[h]};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if forSome for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,s,o,u,p,f,t.C_NUMBER_MODE,r]}}return ket=e,ket}var Ret,_bn;function lri(){if(_bn)return Ret;_bn=1;function e(t){const r="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",a="(-|\\+)?\\d+([./]\\d+)?",s=a+"[+\\-]"+a+"i",o={$pattern:r,"builtin-name":"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},u={className:"literal",begin:"(#t|#f|#\\\\"+r+"|#\\\\.)"},h={className:"number",variants:[{begin:a,relevance:0},{begin:s,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},f=t.QUOTE_STRING_MODE,p=[t.COMMENT(";","$",{relevance:0}),t.COMMENT("#\\|","\\|#")],m={begin:r,relevance:0},b={className:"symbol",begin:"'"+r},_={endsWithParent:!0,relevance:0},w={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",u,f,h,m,b]}]},S={className:"name",relevance:0,begin:r,keywords:o},A={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[S,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[m]}]},S,_]};return _.contains=[u,h,f,m,b,w,A].concat(p),{name:"Scheme",illegal:/\S/,contains:[t.SHEBANG(),h,f,b,w,A].concat(p)}}return Ret=e,Ret}var Iet,wbn;function cri(){if(wbn)return Iet;wbn=1;function e(t){const r=[t.C_NUMBER_MODE,{className:"string",begin:`'|"`,end:`'|"`,contains:[t.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[t.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:r},t.COMMENT("//","$")].concat(r)}}return Iet=e,Iet}var Net,Ebn;function uri(){if(Ebn)return Net;Ebn=1;const e=h=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE]}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();function u(h){const f=e(h),p=s,m=a,b="@[a-z-]+",_="and or not only",S={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b"};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[h.C_LINE_COMMENT_MODE,h.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},f.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+t.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+m.join("|")+")"},{className:"selector-pseudo",begin:"::("+p.join("|")+")"},S,{begin:/\(/,end:/\)/,contains:[h.CSS_NUMBER_MODE]},{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[S,f.HEXCOLOR,h.CSS_NUMBER_MODE,h.QUOTE_STRING_MODE,h.APOS_STRING_MODE,f.IMPORTANT]},{begin:"@(page|font-face)",lexemes:b,keywords:"@page @font-face"},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:_,attribute:r.join(" ")},contains:[{begin:b,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},S,h.QUOTE_STRING_MODE,h.APOS_STRING_MODE,f.HEXCOLOR,h.CSS_NUMBER_MODE]}]}}return Net=u,Net}var Oet,xbn;function hri(){if(xbn)return Oet;xbn=1;function e(t){return{name:"Shell Session",aliases:["console"],contains:[{className:"meta",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#]/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return Oet=e,Oet}var Let,Sbn;function dri(){if(Sbn)return Let;Sbn=1;function e(t){const r=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],a=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],s=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},t.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+s.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+r.join("|")+")\\s"},{begin:"\\s("+r.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+a.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;: ]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return Let=e,Let}var Det,Tbn;function fri(){if(Tbn)return Det;Tbn=1;function e(t){const r="[a-z][a-zA-Z0-9_]*",a={className:"string",begin:"\\$.{1}"},s={className:"symbol",begin:"#"+t.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:"self super nil true false thisContext",contains:[t.COMMENT('"','"'),t.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:r+":",relevance:0},t.C_NUMBER_MODE,s,a,{begin:"\\|[ ]*"+r+"([ ]+"+r+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+r}]},{begin:"#\\(",end:"\\)",contains:[t.APOS_STRING_MODE,a,t.C_NUMBER_MODE,s]}]}}return Det=e,Det}var Met,Cbn;function pri(){if(Cbn)return Met;Cbn=1;function e(t){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},t.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},t.inherit(t.APOS_STRING_MODE,{className:"string",relevance:0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return Met=e,Met}var Pet,Abn;function gri(){if(Abn)return Pet;Abn=1;function e(t){const r={className:"variable",begin:/\b_+[a-zA-Z]\w*/},a={className:"title",begin:/[a-zA-Z][a-zA-Z0-9]+_fnc_\w*/},s={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},o={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"define undef ifdef ifndef else endif include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(s,{className:"meta-string"}),{className:"meta-string",begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:"case catch default do else exit exitWith for forEach from if private switch then throw to try waitUntil while with",built_in:"abs accTime acos action actionIDs actionKeys actionKeysImages actionKeysNames actionKeysNamesArray actionName actionParams activateAddons activatedAddons activateKey add3DENConnection add3DENEventHandler add3DENLayer addAction addBackpack addBackpackCargo addBackpackCargoGlobal addBackpackGlobal addCamShake addCuratorAddons addCuratorCameraArea addCuratorEditableObjects addCuratorEditingArea addCuratorPoints addEditorObject addEventHandler addForce addGoggles addGroupIcon addHandgunItem addHeadgear addItem addItemCargo addItemCargoGlobal addItemPool addItemToBackpack addItemToUniform addItemToVest addLiveStats addMagazine addMagazineAmmoCargo addMagazineCargo addMagazineCargoGlobal addMagazineGlobal addMagazinePool addMagazines addMagazineTurret addMenu addMenuItem addMissionEventHandler addMPEventHandler addMusicEventHandler addOwnedMine addPlayerScores addPrimaryWeaponItem addPublicVariableEventHandler addRating addResources addScore addScoreSide addSecondaryWeaponItem addSwitchableUnit addTeamMember addToRemainsCollector addTorque addUniform addVehicle addVest addWaypoint addWeapon addWeaponCargo addWeaponCargoGlobal addWeaponGlobal addWeaponItem addWeaponPool addWeaponTurret admin agent agents AGLToASL aimedAtTarget aimPos airDensityRTD airplaneThrottle airportSide AISFinishHeal alive all3DENEntities allAirports allControls allCurators allCutLayers allDead allDeadMen allDisplays allGroups allMapMarkers allMines allMissionObjects allow3DMode allowCrewInImmobile allowCuratorLogicIgnoreAreas allowDamage allowDammage allowFileOperations allowFleeing allowGetIn allowSprint allPlayers allSimpleObjects allSites allTurrets allUnits allUnitsUAV allVariables ammo ammoOnPylon and animate animateBay animateDoor animatePylon animateSource animationNames animationPhase animationSourcePhase animationState append apply armoryPoints arrayIntersect asin ASLToAGL ASLToATL assert assignAsCargo assignAsCargoIndex assignAsCommander assignAsDriver assignAsGunner assignAsTurret assignCurator assignedCargo assignedCommander assignedDriver assignedGunner assignedItems assignedTarget assignedTeam assignedVehicle assignedVehicleRole assignItem assignTeam assignToAirport atan atan2 atg ATLToASL attachedObject attachedObjects attachedTo attachObject attachTo attackEnabled backpack backpackCargo backpackContainer backpackItems backpackMagazines backpackSpaceFor behaviour benchmark binocular boundingBox boundingBoxReal boundingCenter breakOut breakTo briefingName buildingExit buildingPos buttonAction buttonSetAction cadetMode call callExtension camCommand camCommit camCommitPrepared camCommitted camConstuctionSetParams camCreate camDestroy cameraEffect cameraEffectEnableHUD cameraInterest cameraOn cameraView campaignConfigFile camPreload camPreloaded camPrepareBank camPrepareDir camPrepareDive camPrepareFocus camPrepareFov camPrepareFovRange camPreparePos camPrepareRelPos camPrepareTarget camSetBank camSetDir camSetDive camSetFocus camSetFov camSetFovRange camSetPos camSetRelPos camSetTarget camTarget camUseNVG canAdd canAddItemToBackpack canAddItemToUniform canAddItemToVest cancelSimpleTaskDestination canFire canMove canSlingLoad canStand canSuspend canTriggerDynamicSimulation canUnloadInCombat canVehicleCargo captive captiveNum cbChecked cbSetChecked ceil channelEnabled cheatsEnabled checkAIFeature checkVisibility className clearAllItemsFromBackpack clearBackpackCargo clearBackpackCargoGlobal clearGroupIcons clearItemCargo clearItemCargoGlobal clearItemPool clearMagazineCargo clearMagazineCargoGlobal clearMagazinePool clearOverlay clearRadio clearWeaponCargo clearWeaponCargoGlobal clearWeaponPool clientOwner closeDialog closeDisplay closeOverlay collapseObjectTree collect3DENHistory collectiveRTD combatMode commandArtilleryFire commandChat commander commandFire commandFollow commandFSM commandGetOut commandingMenu commandMove commandRadio commandStop commandSuppressiveFire commandTarget commandWatch comment commitOverlay compile compileFinal completedFSM composeText configClasses configFile configHierarchy configName configProperties configSourceAddonList configSourceMod configSourceModList confirmSensorTarget connectTerminalToUAV controlsGroupCtrl copyFromClipboard copyToClipboard copyWaypoints cos count countEnemy countFriendly countSide countType countUnknown create3DENComposition create3DENEntity createAgent createCenter createDialog createDiaryLink createDiaryRecord createDiarySubject createDisplay createGearDialog createGroup createGuardedPoint createLocation createMarker createMarkerLocal createMenu createMine createMissionDisplay createMPCampaignDisplay createSimpleObject createSimpleTask createSite createSoundSource createTask createTeam createTrigger createUnit createVehicle createVehicleCrew createVehicleLocal crew ctAddHeader ctAddRow ctClear ctCurSel ctData ctFindHeaderRows ctFindRowHeader ctHeaderControls ctHeaderCount ctRemoveHeaders ctRemoveRows ctrlActivate ctrlAddEventHandler ctrlAngle ctrlAutoScrollDelay ctrlAutoScrollRewind ctrlAutoScrollSpeed ctrlChecked ctrlClassName ctrlCommit ctrlCommitted ctrlCreate ctrlDelete ctrlEnable ctrlEnabled ctrlFade ctrlHTMLLoaded ctrlIDC ctrlIDD ctrlMapAnimAdd ctrlMapAnimClear ctrlMapAnimCommit ctrlMapAnimDone ctrlMapCursor ctrlMapMouseOver ctrlMapScale ctrlMapScreenToWorld ctrlMapWorldToScreen ctrlModel ctrlModelDirAndUp ctrlModelScale ctrlParent ctrlParentControlsGroup ctrlPosition ctrlRemoveAllEventHandlers ctrlRemoveEventHandler ctrlScale ctrlSetActiveColor ctrlSetAngle ctrlSetAutoScrollDelay ctrlSetAutoScrollRewind ctrlSetAutoScrollSpeed ctrlSetBackgroundColor ctrlSetChecked ctrlSetEventHandler ctrlSetFade ctrlSetFocus ctrlSetFont ctrlSetFontH1 ctrlSetFontH1B ctrlSetFontH2 ctrlSetFontH2B ctrlSetFontH3 ctrlSetFontH3B ctrlSetFontH4 ctrlSetFontH4B ctrlSetFontH5 ctrlSetFontH5B ctrlSetFontH6 ctrlSetFontH6B ctrlSetFontHeight ctrlSetFontHeightH1 ctrlSetFontHeightH2 ctrlSetFontHeightH3 ctrlSetFontHeightH4 ctrlSetFontHeightH5 ctrlSetFontHeightH6 ctrlSetFontHeightSecondary ctrlSetFontP ctrlSetFontPB ctrlSetFontSecondary ctrlSetForegroundColor ctrlSetModel ctrlSetModelDirAndUp ctrlSetModelScale ctrlSetPixelPrecision ctrlSetPosition ctrlSetScale ctrlSetStructuredText ctrlSetText ctrlSetTextColor ctrlSetTooltip ctrlSetTooltipColorBox ctrlSetTooltipColorShade ctrlSetTooltipColorText ctrlShow ctrlShown ctrlText ctrlTextHeight ctrlTextWidth ctrlType ctrlVisible ctRowControls ctRowCount ctSetCurSel ctSetData ctSetHeaderTemplate ctSetRowTemplate ctSetValue ctValue curatorAddons curatorCamera curatorCameraArea curatorCameraAreaCeiling curatorCoef curatorEditableObjects curatorEditingArea curatorEditingAreaType curatorMouseOver curatorPoints curatorRegisteredObjects curatorSelected curatorWaypointCost current3DENOperation currentChannel currentCommand currentMagazine currentMagazineDetail currentMagazineDetailTurret currentMagazineTurret currentMuzzle currentNamespace currentTask currentTasks currentThrowable currentVisionMode currentWaypoint currentWeapon currentWeaponMode currentWeaponTurret currentZeroing cursorObject cursorTarget customChat customRadio cutFadeOut cutObj cutRsc cutText damage date dateToNumber daytime deActivateKey debriefingText debugFSM debugLog deg delete3DENEntities deleteAt deleteCenter deleteCollection deleteEditorObject deleteGroup deleteGroupWhenEmpty deleteIdentity deleteLocation deleteMarker deleteMarkerLocal deleteRange deleteResources deleteSite deleteStatus deleteTeam deleteVehicle deleteVehicleCrew deleteWaypoint detach detectedMines diag_activeMissionFSMs diag_activeScripts diag_activeSQFScripts diag_activeSQSScripts diag_captureFrame diag_captureFrameToFile diag_captureSlowFrame diag_codePerformance diag_drawMode diag_enable diag_enabled diag_fps diag_fpsMin diag_frameNo diag_lightNewLoad diag_list diag_log diag_logSlowFrame diag_mergeConfigFile diag_recordTurretLimits diag_setLightNew diag_tickTime diag_toggle dialog diarySubjectExists didJIP didJIPOwner difficulty difficultyEnabled difficultyEnabledRTD difficultyOption direction directSay disableAI disableCollisionWith disableConversation disableDebriefingStats disableMapIndicators disableNVGEquipment disableRemoteSensors disableSerialization disableTIEquipment disableUAVConnectability disableUserInput displayAddEventHandler displayCtrl displayParent displayRemoveAllEventHandlers displayRemoveEventHandler displaySetEventHandler dissolveTeam distance distance2D distanceSqr distributionRegion do3DENAction doArtilleryFire doFire doFollow doFSM doGetOut doMove doorPhase doStop doSuppressiveFire doTarget doWatch drawArrow drawEllipse drawIcon drawIcon3D drawLine drawLine3D drawLink drawLocation drawPolygon drawRectangle drawTriangle driver drop dynamicSimulationDistance dynamicSimulationDistanceCoef dynamicSimulationEnabled dynamicSimulationSystemEnabled echo edit3DENMissionAttributes editObject editorSetEventHandler effectiveCommander emptyPositions enableAI enableAIFeature enableAimPrecision enableAttack enableAudioFeature enableAutoStartUpRTD enableAutoTrimRTD enableCamShake enableCaustics enableChannel enableCollisionWith enableCopilot enableDebriefingStats enableDiagLegend enableDynamicSimulation enableDynamicSimulationSystem enableEndDialog enableEngineArtillery enableEnvironment enableFatigue enableGunLights enableInfoPanelComponent enableIRLasers enableMimics enablePersonTurret enableRadio enableReload enableRopeAttach enableSatNormalOnDetail enableSaving enableSentences enableSimulation enableSimulationGlobal enableStamina enableTeamSwitch enableTraffic enableUAVConnectability enableUAVWaypoints enableVehicleCargo enableVehicleSensor enableWeaponDisassembly endLoadingScreen endMission engineOn enginesIsOnRTD enginesRpmRTD enginesTorqueRTD entities environmentEnabled estimatedEndServerTime estimatedTimeLeft evalObjectArgument everyBackpack everyContainer exec execEditorScript execFSM execVM exp expectedDestination exportJIPMessages eyeDirection eyePos face faction fadeMusic fadeRadio fadeSound fadeSpeech failMission fillWeaponsFromPool find findCover findDisplay findEditorObject findEmptyPosition findEmptyPositionReady findIf findNearestEnemy finishMissionInit finite fire fireAtTarget firstBackpack flag flagAnimationPhase flagOwner flagSide flagTexture fleeing floor flyInHeight flyInHeightASL fog fogForecast fogParams forceAddUniform forcedMap forceEnd forceFlagTexture forceFollowRoad forceMap forceRespawn forceSpeed forceWalk forceWeaponFire forceWeatherChange forEachMember forEachMemberAgent forEachMemberTeam forgetTarget format formation formationDirection formationLeader formationMembers formationPosition formationTask formatText formLeader freeLook fromEditor fuel fullCrew gearIDCAmmoCount gearSlotAmmoCount gearSlotData get3DENActionState get3DENAttribute get3DENCamera get3DENConnections get3DENEntity get3DENEntityID get3DENGrid get3DENIconsVisible get3DENLayerEntities get3DENLinesVisible get3DENMissionAttribute get3DENMouseOver get3DENSelected getAimingCoef getAllEnvSoundControllers getAllHitPointsDamage getAllOwnedMines getAllSoundControllers getAmmoCargo getAnimAimPrecision getAnimSpeedCoef getArray getArtilleryAmmo getArtilleryComputerSettings getArtilleryETA getAssignedCuratorLogic getAssignedCuratorUnit getBackpackCargo getBleedingRemaining getBurningValue getCameraViewDirection getCargoIndex getCenterOfMass getClientState getClientStateNumber getCompatiblePylonMagazines getConnectedUAV getContainerMaxLoad getCursorObjectParams getCustomAimCoef getDammage getDescription getDir getDirVisual getDLCAssetsUsage getDLCAssetsUsageByName getDLCs getEditorCamera getEditorMode getEditorObjectScope getElevationOffset getEnvSoundController getFatigue getForcedFlagTexture getFriend getFSMVariable getFuelCargo getGroupIcon getGroupIconParams getGroupIcons getHideFrom getHit getHitIndex getHitPointDamage getItemCargo getMagazineCargo getMarkerColor getMarkerPos getMarkerSize getMarkerType getMass getMissionConfig getMissionConfigValue getMissionDLCs getMissionLayerEntities getModelInfo getMousePosition getMusicPlayedTime getNumber getObjectArgument getObjectChildren getObjectDLC getObjectMaterials getObjectProxy getObjectTextures getObjectType getObjectViewDistance getOxygenRemaining getPersonUsedDLCs getPilotCameraDirection getPilotCameraPosition getPilotCameraRotation getPilotCameraTarget getPlateNumber getPlayerChannel getPlayerScores getPlayerUID getPos getPosASL getPosASLVisual getPosASLW getPosATL getPosATLVisual getPosVisual getPosWorld getPylonMagazines getRelDir getRelPos getRemoteSensorsDisabled getRepairCargo getResolution getShadowDistance getShotParents getSlingLoad getSoundController getSoundControllerResult getSpeed getStamina getStatValue getSuppression getTerrainGrid getTerrainHeightASL getText getTotalDLCUsageTime getUnitLoadout getUnitTrait getUserMFDText getUserMFDvalue getVariable getVehicleCargo getWeaponCargo getWeaponSway getWingsOrientationRTD getWingsPositionRTD getWPPos glanceAt globalChat globalRadio goggles goto group groupChat groupFromNetId groupIconSelectable groupIconsVisible groupId groupOwner groupRadio groupSelectedUnits groupSelectUnit gunner gusts halt handgunItems handgunMagazine handgunWeapon handsHit hasInterface hasPilotCamera hasWeapon hcAllGroups hcGroupParams hcLeader hcRemoveAllGroups hcRemoveGroup hcSelected hcSelectGroup hcSetGroup hcShowBar hcShownBar headgear hideBody hideObject hideObjectGlobal hideSelection hint hintC hintCadet hintSilent hmd hostMission htmlLoad HUDMovementLevels humidity image importAllGroups importance in inArea inAreaArray incapacitatedState inflame inflamed infoPanel infoPanelComponentEnabled infoPanelComponents infoPanels inGameUISetEventHandler inheritsFrom initAmbientLife inPolygon inputAction inRangeOfArtillery insertEditorObject intersect is3DEN is3DENMultiplayer isAbleToBreathe isAgent isArray isAutoHoverOn isAutonomous isAutotest isBleeding isBurning isClass isCollisionLightOn isCopilotEnabled isDamageAllowed isDedicated isDLCAvailable isEngineOn isEqualTo isEqualType isEqualTypeAll isEqualTypeAny isEqualTypeArray isEqualTypeParams isFilePatchingEnabled isFlashlightOn isFlatEmpty isForcedWalk isFormationLeader isGroupDeletedWhenEmpty isHidden isInRemainsCollector isInstructorFigureEnabled isIRLaserOn isKeyActive isKindOf isLaserOn isLightOn isLocalized isManualFire isMarkedForCollection isMultiplayer isMultiplayerSolo isNil isNull isNumber isObjectHidden isObjectRTD isOnRoad isPipEnabled isPlayer isRealTime isRemoteExecuted isRemoteExecutedJIP isServer isShowing3DIcons isSimpleObject isSprintAllowed isStaminaEnabled isSteamMission isStreamFriendlyUIEnabled isText isTouchingGround isTurnedOut isTutHintsEnabled isUAVConnectable isUAVConnected isUIContext isUniformAllowed isVehicleCargo isVehicleRadarOn isVehicleSensorEnabled isWalking isWeaponDeployed isWeaponRested itemCargo items itemsWithMagazines join joinAs joinAsSilent joinSilent joinString kbAddDatabase kbAddDatabaseTargets kbAddTopic kbHasTopic kbReact kbRemoveTopic kbTell kbWasSaid keyImage keyName knowsAbout land landAt landResult language laserTarget lbAdd lbClear lbColor lbColorRight lbCurSel lbData lbDelete lbIsSelected lbPicture lbPictureRight lbSelection lbSetColor lbSetColorRight lbSetCurSel lbSetData lbSetPicture lbSetPictureColor lbSetPictureColorDisabled lbSetPictureColorSelected lbSetPictureRight lbSetPictureRightColor lbSetPictureRightColorDisabled lbSetPictureRightColorSelected lbSetSelectColor lbSetSelectColorRight lbSetSelected lbSetText lbSetTextRight lbSetTooltip lbSetValue lbSize lbSort lbSortByValue lbText lbTextRight lbValue leader leaderboardDeInit leaderboardGetRows leaderboardInit leaderboardRequestRowsFriends leaderboardsRequestUploadScore leaderboardsRequestUploadScoreKeepBest leaderboardState leaveVehicle libraryCredits libraryDisclaimers lifeState lightAttachObject lightDetachObject lightIsOn lightnings limitSpeed linearConversion lineIntersects lineIntersectsObjs lineIntersectsSurfaces lineIntersectsWith linkItem list listObjects listRemoteTargets listVehicleSensors ln lnbAddArray lnbAddColumn lnbAddRow lnbClear lnbColor lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow lnbGetColumnsPosition lnbPicture lnbSetColor lnbSetColumnsPos lnbSetCurSelRow lnbSetData lnbSetPicture lnbSetText lnbSetValue lnbSize lnbSort lnbSortByValue lnbText lnbValue load loadAbs loadBackpack loadFile loadGame loadIdentity loadMagazine loadOverlay loadStatus loadUniform loadVest local localize locationPosition lock lockCameraTo lockCargo lockDriver locked lockedCargo lockedDriver lockedTurret lockIdentity lockTurret lockWP log logEntities logNetwork logNetworkTerminate lookAt lookAtPos magazineCargo magazines magazinesAllTurrets magazinesAmmo magazinesAmmoCargo magazinesAmmoFull magazinesDetail magazinesDetailBackpack magazinesDetailUniform magazinesDetailVest magazinesTurret magazineTurretAmmo mapAnimAdd mapAnimClear mapAnimCommit mapAnimDone mapCenterOnCamera mapGridPosition markAsFinishedOnSteam markerAlpha markerBrush markerColor markerDir markerPos markerShape markerSize markerText markerType max members menuAction menuAdd menuChecked menuClear menuCollapse menuData menuDelete menuEnable menuEnabled menuExpand menuHover menuPicture menuSetAction menuSetCheck menuSetData menuSetPicture menuSetValue menuShortcut menuShortcutText menuSize menuSort menuText menuURL menuValue min mineActive mineDetectedBy missionConfigFile missionDifficulty missionName missionNamespace missionStart missionVersion mod modelToWorld modelToWorldVisual modelToWorldVisualWorld modelToWorldWorld modParams moonIntensity moonPhase morale move move3DENCamera moveInAny moveInCargo moveInCommander moveInDriver moveInGunner moveInTurret moveObjectToEnd moveOut moveTime moveTo moveToCompleted moveToFailed musicVolume name nameSound nearEntities nearestBuilding nearestLocation nearestLocations nearestLocationWithDubbing nearestObject nearestObjects nearestTerrainObjects nearObjects nearObjectsReady nearRoads nearSupplies nearTargets needReload netId netObjNull newOverlay nextMenuItemIndex nextWeatherChange nMenuItems not numberOfEnginesRTD numberToDate objectCurators objectFromNetId objectParent objStatus onBriefingGroup onBriefingNotes onBriefingPlan onBriefingTeamSwitch onCommandModeChanged onDoubleClick onEachFrame onGroupIconClick onGroupIconOverEnter onGroupIconOverLeave onHCGroupSelectionChanged onMapSingleClick onPlayerConnected onPlayerDisconnected onPreloadFinished onPreloadStarted onShowNewObject onTeamSwitch openCuratorInterface openDLCPage openMap openSteamApp openYoutubeVideo or orderGetIn overcast overcastForecast owner param params parseNumber parseSimpleArray parseText parsingNamespace particlesQuality pickWeaponPool pitch pixelGrid pixelGridBase pixelGridNoUIScale pixelH pixelW playableSlotsNumber playableUnits playAction playActionNow player playerRespawnTime playerSide playersNumber playGesture playMission playMove playMoveNow playMusic playScriptedMission playSound playSound3D position positionCameraToWorld posScreenToWorld posWorldToScreen ppEffectAdjust ppEffectCommit ppEffectCommitted ppEffectCreate ppEffectDestroy ppEffectEnable ppEffectEnabled ppEffectForceInNVG precision preloadCamera preloadObject preloadSound preloadTitleObj preloadTitleRsc preprocessFile preprocessFileLineNumbers primaryWeapon primaryWeaponItems primaryWeaponMagazine priority processDiaryLink productVersion profileName profileNamespace profileNameSteam progressLoadingScreen progressPosition progressSetPosition publicVariable publicVariableClient publicVariableServer pushBack pushBackUnique putWeaponPool queryItemsPool queryMagazinePool queryWeaponPool rad radioChannelAdd radioChannelCreate radioChannelRemove radioChannelSetCallSign radioChannelSetLabel radioVolume rain rainbow random rank rankId rating rectangular registeredTasks registerTask reload reloadEnabled remoteControl remoteExec remoteExecCall remoteExecutedOwner remove3DENConnection remove3DENEventHandler remove3DENLayer removeAction removeAll3DENEventHandlers removeAllActions removeAllAssignedItems removeAllContainers removeAllCuratorAddons removeAllCuratorCameraAreas removeAllCuratorEditingAreas removeAllEventHandlers removeAllHandgunItems removeAllItems removeAllItemsWithMagazines removeAllMissionEventHandlers removeAllMPEventHandlers removeAllMusicEventHandlers removeAllOwnedMines removeAllPrimaryWeaponItems removeAllWeapons removeBackpack removeBackpackGlobal removeCuratorAddons removeCuratorCameraArea removeCuratorEditableObjects removeCuratorEditingArea removeDrawIcon removeDrawLinks removeEventHandler removeFromRemainsCollector removeGoggles removeGroupIcon removeHandgunItem removeHeadgear removeItem removeItemFromBackpack removeItemFromUniform removeItemFromVest removeItems removeMagazine removeMagazineGlobal removeMagazines removeMagazinesTurret removeMagazineTurret removeMenuItem removeMissionEventHandler removeMPEventHandler removeMusicEventHandler removeOwnedMine removePrimaryWeaponItem removeSecondaryWeaponItem removeSimpleTask removeSwitchableUnit removeTeamMember removeUniform removeVest removeWeapon removeWeaponAttachmentCargo removeWeaponCargo removeWeaponGlobal removeWeaponTurret reportRemoteTarget requiredVersion resetCamShake resetSubgroupDirection resize resources respawnVehicle restartEditorCamera reveal revealMine reverse reversedMouseY roadAt roadsConnectedTo roleDescription ropeAttachedObjects ropeAttachedTo ropeAttachEnabled ropeAttachTo ropeCreate ropeCut ropeDestroy ropeDetach ropeEndPosition ropeLength ropes ropeUnwind ropeUnwound rotorsForcesRTD rotorsRpmRTD round runInitScript safeZoneH safeZoneW safeZoneWAbs safeZoneX safeZoneXAbs safeZoneY save3DENInventory saveGame saveIdentity saveJoysticks saveOverlay saveProfileNamespace saveStatus saveVar savingEnabled say say2D say3D scopeName score scoreSide screenshot screenToWorld scriptDone scriptName scudState secondaryWeapon secondaryWeaponItems secondaryWeaponMagazine select selectBestPlaces selectDiarySubject selectedEditorObjects selectEditorObject selectionNames selectionPosition selectLeader selectMax selectMin selectNoPlayer selectPlayer selectRandom selectRandomWeighted selectWeapon selectWeaponTurret sendAUMessage sendSimpleCommand sendTask sendTaskResult sendUDPMessage serverCommand serverCommandAvailable serverCommandExecutable serverName serverTime set set3DENAttribute set3DENAttributes set3DENGrid set3DENIconsVisible set3DENLayer set3DENLinesVisible set3DENLogicType set3DENMissionAttribute set3DENMissionAttributes set3DENModelsVisible set3DENObjectType set3DENSelected setAccTime setActualCollectiveRTD setAirplaneThrottle setAirportSide setAmmo setAmmoCargo setAmmoOnPylon setAnimSpeedCoef setAperture setApertureNew setArmoryPoints setAttributes setAutonomous setBehaviour setBleedingRemaining setBrakesRTD setCameraInterest setCamShakeDefParams setCamShakeParams setCamUseTI setCaptive setCenterOfMass setCollisionLight setCombatMode setCompassOscillation setConvoySeparation setCuratorCameraAreaCeiling setCuratorCoef setCuratorEditingAreaType setCuratorWaypointCost setCurrentChannel setCurrentTask setCurrentWaypoint setCustomAimCoef setCustomWeightRTD setDamage setDammage setDate setDebriefingText setDefaultCamera setDestination setDetailMapBlendPars setDir setDirection setDrawIcon setDriveOnPath setDropInterval setDynamicSimulationDistance setDynamicSimulationDistanceCoef setEditorMode setEditorObjectScope setEffectCondition setEngineRPMRTD setFace setFaceAnimation setFatigue setFeatureType setFlagAnimationPhase setFlagOwner setFlagSide setFlagTexture setFog setFormation setFormationTask setFormDir setFriend setFromEditor setFSMVariable setFuel setFuelCargo setGroupIcon setGroupIconParams setGroupIconsSelectable setGroupIconsVisible setGroupId setGroupIdGlobal setGroupOwner setGusts setHideBehind setHit setHitIndex setHitPointDamage setHorizonParallaxCoef setHUDMovementLevels setIdentity setImportance setInfoPanel setLeader setLightAmbient setLightAttenuation setLightBrightness setLightColor setLightDayLight setLightFlareMaxDistance setLightFlareSize setLightIntensity setLightnings setLightUseFlare setLocalWindParams setMagazineTurretAmmo setMarkerAlpha setMarkerAlphaLocal setMarkerBrush setMarkerBrushLocal setMarkerColor setMarkerColorLocal setMarkerDir setMarkerDirLocal setMarkerPos setMarkerPosLocal setMarkerShape setMarkerShapeLocal setMarkerSize setMarkerSizeLocal setMarkerText setMarkerTextLocal setMarkerType setMarkerTypeLocal setMass setMimic setMousePosition setMusicEffect setMusicEventHandler setName setNameSound setObjectArguments setObjectMaterial setObjectMaterialGlobal setObjectProxy setObjectTexture setObjectTextureGlobal setObjectViewDistance setOvercast setOwner setOxygenRemaining setParticleCircle setParticleClass setParticleFire setParticleParams setParticleRandom setPilotCameraDirection setPilotCameraRotation setPilotCameraTarget setPilotLight setPiPEffect setPitch setPlateNumber setPlayable setPlayerRespawnTime setPos setPosASL setPosASL2 setPosASLW setPosATL setPosition setPosWorld setPylonLoadOut setPylonsPriority setRadioMsg setRain setRainbow setRandomLip setRank setRectangular setRepairCargo setRotorBrakeRTD setShadowDistance setShotParents setSide setSimpleTaskAlwaysVisible setSimpleTaskCustomData setSimpleTaskDescription setSimpleTaskDestination setSimpleTaskTarget setSimpleTaskType setSimulWeatherLayers setSize setSkill setSlingLoad setSoundEffect setSpeaker setSpeech setSpeedMode setStamina setStaminaScheme setStatValue setSuppression setSystemOfUnits setTargetAge setTaskMarkerOffset setTaskResult setTaskState setTerrainGrid setText setTimeMultiplier setTitleEffect setTrafficDensity setTrafficDistance setTrafficGap setTrafficSpeed setTriggerActivation setTriggerArea setTriggerStatements setTriggerText setTriggerTimeout setTriggerType setType setUnconscious setUnitAbility setUnitLoadout setUnitPos setUnitPosWeak setUnitRank setUnitRecoilCoefficient setUnitTrait setUnloadInCombat setUserActionText setUserMFDText setUserMFDvalue setVariable setVectorDir setVectorDirAndUp setVectorUp setVehicleAmmo setVehicleAmmoDef setVehicleArmor setVehicleCargo setVehicleId setVehicleLock setVehiclePosition setVehicleRadar setVehicleReceiveRemoteTargets setVehicleReportOwnPosition setVehicleReportRemoteTargets setVehicleTIPars setVehicleVarName setVelocity setVelocityModelSpace setVelocityTransformation setViewDistance setVisibleIfTreeCollapsed setWantedRPMRTD setWaves setWaypointBehaviour setWaypointCombatMode setWaypointCompletionRadius setWaypointDescription setWaypointForceBehaviour setWaypointFormation setWaypointHousePosition setWaypointLoiterRadius setWaypointLoiterType setWaypointName setWaypointPosition setWaypointScript setWaypointSpeed setWaypointStatements setWaypointTimeout setWaypointType setWaypointVisible setWeaponReloadingTime setWind setWindDir setWindForce setWindStr setWingForceScaleRTD setWPPos show3DIcons showChat showCinemaBorder showCommandingMenu showCompass showCuratorCompass showGPS showHUD showLegend showMap shownArtilleryComputer shownChat shownCompass shownCuratorCompass showNewEditorObject shownGPS shownHUD shownMap shownPad shownRadio shownScoretable shownUAVFeed shownWarrant shownWatch showPad showRadio showScoretable showSubtitles showUAVFeed showWarrant showWatch showWaypoint showWaypoints side sideChat sideEnemy sideFriendly sideRadio simpleTasks simulationEnabled simulCloudDensity simulCloudOcclusion simulInClouds simulWeatherSync sin size sizeOf skill skillFinal skipTime sleep sliderPosition sliderRange sliderSetPosition sliderSetRange sliderSetSpeed sliderSpeed slingLoadAssistantShown soldierMagazines someAmmo sort soundVolume spawn speaker speed speedMode splitString sqrt squadParams stance startLoadingScreen step stop stopEngineRTD stopped str sunOrMoon supportInfo suppressFor surfaceIsWater surfaceNormal surfaceType swimInDepth switchableUnits switchAction switchCamera switchGesture switchLight switchMove synchronizedObjects synchronizedTriggers synchronizedWaypoints synchronizeObjectsAdd synchronizeObjectsRemove synchronizeTrigger synchronizeWaypoint systemChat systemOfUnits tan targetKnowledge targets targetsAggregate targetsQuery taskAlwaysVisible taskChildren taskCompleted taskCustomData taskDescription taskDestination taskHint taskMarkerOffset taskParent taskResult taskState taskType teamMember teamName teams teamSwitch teamSwitchEnabled teamType terminate terrainIntersect terrainIntersectASL terrainIntersectAtASL text textLog textLogFormat tg time timeMultiplier titleCut titleFadeOut titleObj titleRsc titleText toArray toFixed toLower toString toUpper triggerActivated triggerActivation triggerArea triggerAttachedVehicle triggerAttachObject triggerAttachVehicle triggerDynamicSimulation triggerStatements triggerText triggerTimeout triggerTimeoutCurrent triggerType turretLocal turretOwner turretUnit tvAdd tvClear tvCollapse tvCollapseAll tvCount tvCurSel tvData tvDelete tvExpand tvExpandAll tvPicture tvSetColor tvSetCurSel tvSetData tvSetPicture tvSetPictureColor tvSetPictureColorDisabled tvSetPictureColorSelected tvSetPictureRight tvSetPictureRightColor tvSetPictureRightColorDisabled tvSetPictureRightColorSelected tvSetText tvSetTooltip tvSetValue tvSort tvSortByValue tvText tvTooltip tvValue type typeName typeOf UAVControl uiNamespace uiSleep unassignCurator unassignItem unassignTeam unassignVehicle underwater uniform uniformContainer uniformItems uniformMagazines unitAddons unitAimPosition unitAimPositionVisual unitBackpack unitIsUAV unitPos unitReady unitRecoilCoefficient units unitsBelowHeight unlinkItem unlockAchievement unregisterTask updateDrawIcon updateMenuItem updateObjectTree useAISteeringComponent useAudioTimeForMoves userInputDisabled vectorAdd vectorCos vectorCrossProduct vectorDiff vectorDir vectorDirVisual vectorDistance vectorDistanceSqr vectorDotProduct vectorFromTo vectorMagnitude vectorMagnitudeSqr vectorModelToWorld vectorModelToWorldVisual vectorMultiply vectorNormalized vectorUp vectorUpVisual vectorWorldToModel vectorWorldToModelVisual vehicle vehicleCargoEnabled vehicleChat vehicleRadio vehicleReceiveRemoteTargets vehicleReportOwnPosition vehicleReportRemoteTargets vehicles vehicleVarName velocity velocityModelSpace verifySignature vest vestContainer vestItems vestMagazines viewDistance visibleCompass visibleGPS visibleMap visiblePosition visiblePositionASL visibleScoretable visibleWatch waves waypointAttachedObject waypointAttachedVehicle waypointAttachObject waypointAttachVehicle waypointBehaviour waypointCombatMode waypointCompletionRadius waypointDescription waypointForceBehaviour waypointFormation waypointHousePosition waypointLoiterRadius waypointLoiterType waypointName waypointPosition waypoints waypointScript waypointsEnabledUAV waypointShow waypointSpeed waypointStatements waypointTimeout waypointTimeoutCurrent waypointType waypointVisible weaponAccessories weaponAccessoriesCargo weaponCargo weaponDirection weaponInertia weaponLowered weapons weaponsItems weaponsItemsCargo weaponState weaponsTurret weightRTD WFSideText wind ",literal:"blufor civilian configNull controlNull displayNull east endl false grpNull independent lineBreak locationNull nil objNull opfor pi resistance scriptNull sideAmbientLife sideEmpty sideLogic sideUnknown taskNull teamMemberNull true west"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.NUMBER_MODE,r,a,s,o],illegal:/#|^\$ /}}return Pet=e,Pet}var Bet,kbn;function mri(){if(kbn)return Bet;kbn=1;function e(t){var r=t.COMMENT("--","$");return{name:"SQL (more)",aliases:["mysql","oracle"],disableAutodetect:!0,case_insensitive:!0,illegal:/[<>{}*]/,contains:[{beginKeywords:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment values with",end:/;/,endsWithParent:!0,keywords:{$pattern:/[\w\.]+/,keyword:"as abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias all allocate allow alter always analyze ancillary and anti any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound bucket buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain explode export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force foreign form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour hours http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lateral lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minutes minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notnull notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second seconds section securefile security seed segment select self semi sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tablesample tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unnest unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace window with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null unknown",built_in:"array bigint binary bit blob bool boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text time timestamp tinyint varchar varchar2 varying void"},contains:[{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:"`",end:"`"},t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,r,t.HASH_COMMENT_MODE]},t.C_BLOCK_COMMENT_MODE,r,t.HASH_COMMENT_MODE]}}return Bet=e,Bet}var Fet,Rbn;function bri(){if(Rbn)return Fet;Rbn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(...s){return s.map(u=>e(u)).join("")}function r(...s){return"("+s.map(u=>e(u)).join("|")+")"}function a(s){const o=s.COMMENT("--","$"),u={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},h={begin:/"/,end:/"/,contains:[{begin:/""/}]},f=["true","false","unknown"],p=["double precision","large object","with timezone","without timezone"],m=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],b=["add","asc","collation","desc","final","first","last","view"],_=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update ","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],w=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],S=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],C=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],A=w,k=[..._,...b].filter(M=>!w.includes(M)),I={className:"variable",begin:/@[a-z0-9]+/},N={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},L={begin:t(/\b/,r(...A),/\s*\(/),keywords:{built_in:A}};function P(M,{exceptions:F,when:U}={}){const $=U;return F=F||[],M.map(G=>G.match(/\|\d+$/)||F.includes(G)?G:$(G)?`${G}|0`:G)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:P(k,{when:M=>M.length<3}),literal:f,type:m,built_in:S},contains:[{begin:r(...C),keywords:{$pattern:/[\w\.]+/,keyword:k.concat(C),literal:f,type:m}},{className:"type",begin:r(...p)},L,I,u,h,s.C_NUMBER_MODE,s.C_BLOCK_COMMENT_MODE,o,N]}}return Fet=a,Fet}var $et,Ibn;function yri(){if(Ibn)return $et;Ibn=1;function e(t){const r=["functions","model","data","parameters","quantities","transformed","generated"],a=["for","in","if","else","while","break","continue","return"],s=["print","reject","increment_log_prob|10","integrate_ode|10","integrate_ode_rk45|10","integrate_ode_bdf|10","algebra_solver"],o=["int","real","vector","ordered","positive_ordered","simplex","unit_vector","row_vector","matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],u=["Phi","Phi_approx","abs","acos","acosh","algebra_solver","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bernoulli_cdf","bernoulli_lccdf","bernoulli_lcdf","bernoulli_logit_lpmf","bernoulli_logit_rng","bernoulli_lpmf","bernoulli_rng","bessel_first_kind","bessel_second_kind","beta_binomial_cdf","beta_binomial_lccdf","beta_binomial_lcdf","beta_binomial_lpmf","beta_binomial_rng","beta_cdf","beta_lccdf","beta_lcdf","beta_lpdf","beta_rng","binary_log_loss","binomial_cdf","binomial_coefficient_log","binomial_lccdf","binomial_lcdf","binomial_logit_lpmf","binomial_lpmf","binomial_rng","block","categorical_logit_lpmf","categorical_logit_rng","categorical_lpmf","categorical_rng","cauchy_cdf","cauchy_lccdf","cauchy_lcdf","cauchy_lpdf","cauchy_rng","cbrt","ceil","chi_square_cdf","chi_square_lccdf","chi_square_lcdf","chi_square_lpdf","chi_square_rng","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","cos","cosh","cov_exp_quad","crossprod","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","determinant","diag_matrix","diag_post_multiply","diag_pre_multiply","diagonal","digamma","dims","dirichlet_lpdf","dirichlet_rng","distance","dot_product","dot_self","double_exponential_cdf","double_exponential_lccdf","double_exponential_lcdf","double_exponential_lpdf","double_exponential_rng","e","eigenvalues_sym","eigenvectors_sym","erf","erfc","exp","exp2","exp_mod_normal_cdf","exp_mod_normal_lccdf","exp_mod_normal_lcdf","exp_mod_normal_lpdf","exp_mod_normal_rng","expm1","exponential_cdf","exponential_lccdf","exponential_lcdf","exponential_lpdf","exponential_rng","fabs","falling_factorial","fdim","floor","fma","fmax","fmin","fmod","frechet_cdf","frechet_lccdf","frechet_lcdf","frechet_lpdf","frechet_rng","gamma_cdf","gamma_lccdf","gamma_lcdf","gamma_lpdf","gamma_p","gamma_q","gamma_rng","gaussian_dlm_obs_lpdf","get_lp","gumbel_cdf","gumbel_lccdf","gumbel_lcdf","gumbel_lpdf","gumbel_rng","head","hypergeometric_lpmf","hypergeometric_rng","hypot","inc_beta","int_step","integrate_ode","integrate_ode_bdf","integrate_ode_rk45","inv","inv_Phi","inv_chi_square_cdf","inv_chi_square_lccdf","inv_chi_square_lcdf","inv_chi_square_lpdf","inv_chi_square_rng","inv_cloglog","inv_gamma_cdf","inv_gamma_lccdf","inv_gamma_lcdf","inv_gamma_lpdf","inv_gamma_rng","inv_logit","inv_sqrt","inv_square","inv_wishart_lpdf","inv_wishart_rng","inverse","inverse_spd","is_inf","is_nan","lbeta","lchoose","lgamma","lkj_corr_cholesky_lpdf","lkj_corr_cholesky_rng","lkj_corr_lpdf","lkj_corr_rng","lmgamma","lmultiply","log","log10","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log2","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_mix","log_rising_factorial","log_softmax","log_sum_exp","logistic_cdf","logistic_lccdf","logistic_lcdf","logistic_lpdf","logistic_rng","logit","lognormal_cdf","lognormal_lccdf","lognormal_lcdf","lognormal_lpdf","lognormal_rng","machine_precision","matrix_exp","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multi_gp_cholesky_lpdf","multi_gp_lpdf","multi_normal_cholesky_lpdf","multi_normal_cholesky_rng","multi_normal_lpdf","multi_normal_prec_lpdf","multi_normal_rng","multi_student_t_lpdf","multi_student_t_rng","multinomial_lpmf","multinomial_rng","multiply_log","multiply_lower_tri_self_transpose","neg_binomial_2_cdf","neg_binomial_2_lccdf","neg_binomial_2_lcdf","neg_binomial_2_log_lpmf","neg_binomial_2_log_rng","neg_binomial_2_lpmf","neg_binomial_2_rng","neg_binomial_cdf","neg_binomial_lccdf","neg_binomial_lcdf","neg_binomial_lpmf","neg_binomial_rng","negative_infinity","normal_cdf","normal_lccdf","normal_lcdf","normal_lpdf","normal_rng","not_a_number","num_elements","ordered_logistic_lpmf","ordered_logistic_rng","owens_t","pareto_cdf","pareto_lccdf","pareto_lcdf","pareto_lpdf","pareto_rng","pareto_type_2_cdf","pareto_type_2_lccdf","pareto_type_2_lcdf","pareto_type_2_lpdf","pareto_type_2_rng","pi","poisson_cdf","poisson_lccdf","poisson_lcdf","poisson_log_lpmf","poisson_log_rng","poisson_lpmf","poisson_rng","positive_infinity","pow","print","prod","qr_Q","qr_R","quad_form","quad_form_diag","quad_form_sym","rank","rayleigh_cdf","rayleigh_lccdf","rayleigh_lcdf","rayleigh_lpdf","rayleigh_rng","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scaled_inv_chi_square_cdf","scaled_inv_chi_square_lccdf","scaled_inv_chi_square_lcdf","scaled_inv_chi_square_lpdf","scaled_inv_chi_square_rng","sd","segment","sin","singular_values","sinh","size","skew_normal_cdf","skew_normal_lccdf","skew_normal_lcdf","skew_normal_lpdf","skew_normal_rng","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","sqrt2","square","squared_distance","step","student_t_cdf","student_t_lccdf","student_t_lcdf","student_t_lpdf","student_t_rng","sub_col","sub_row","sum","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_cdf","uniform_lccdf","uniform_lcdf","uniform_lpdf","uniform_rng","variance","von_mises_lpdf","von_mises_rng","weibull_cdf","weibull_lccdf","weibull_lcdf","weibull_lpdf","weibull_rng","wiener_lpdf","wishart_lpdf","wishart_rng"],h=["bernoulli","bernoulli_logit","beta","beta_binomial","binomial","binomial_logit","categorical","categorical_logit","cauchy","chi_square","dirichlet","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","lkj_corr","lkj_corr_cholesky","logistic","lognormal","multi_gp","multi_gp_cholesky","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_t","multinomial","neg_binomial","neg_binomial_2","neg_binomial_2_log","normal","ordered_logistic","pareto","pareto_type_2","poisson","poisson_log","rayleigh","scaled_inv_chi_square","skew_normal","student_t","uniform","von_mises","weibull","wiener","wishart"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:t.IDENT_RE,title:r,keyword:a.concat(o).concat(s),built_in:u},contains:[t.C_LINE_COMMENT_MODE,t.COMMENT(/#/,/$/,{relevance:0,keywords:{"meta-keyword":"include"}}),t.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{className:"doctag",begin:/@(return|param)/}]}),{begin:/<\s*lower\s*=/,keywords:"lower"},{begin:/[<,]\s*upper\s*=/,keywords:"upper"},{className:"keyword",begin:/\btarget\s*\+=/,relevance:10},{begin:"~\\s*("+t.IDENT_RE+")\\s*\\(",keywords:h},{className:"number",variants:[{begin:/\b\d+(?:\.\d*)?(?:[eE][+-]?\d+)?/},{begin:/\.\d+(?:[eE][+-]?\d+)?\b/}],relevance:0},{className:"string",begin:'"',end:'"',relevance:0}]}}return $et=e,$et}var Uet,Nbn;function vri(){if(Nbn)return Uet;Nbn=1;function e(t){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/},{className:"string",variants:[{begin:`\`"[^\r ]*?"'`},{begin:`"[^\r "]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},t.COMMENT("^[ ]*\\*.*$",!1),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}}return Uet=e,Uet}var zet,Obn;function _ri(){if(Obn)return zet;Obn=1;function e(t){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:"HEADER ENDSEC DATA"},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT("/\\*\\*!","\\*/"),t.C_NUMBER_MODE,t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return zet=e,zet}var Get,Lbn;function wri(){if(Lbn)return Get;Lbn=1;const e=h=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE]}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();function u(h){const f=e(h),p="and or not only",m={className:"variable",begin:"\\$"+h.IDENT_RE},b=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],_="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[h.QUOTE_STRING_MODE,h.APOS_STRING_MODE,h.C_LINE_COMMENT_MODE,h.C_BLOCK_COMMENT_MODE,f.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+_,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+_,className:"selector-id"},{begin:"\\b("+t.join("|")+")"+_,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+a.join("|")+")"+_},{className:"selector-pseudo",begin:"&?::("+s.join("|")+")"+_},f.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:p,attribute:r.join(" ")},contains:[h.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+b.join("|")+"))\\b"},m,h.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[f.HEXCOLOR,m,h.APOS_STRING_MODE,h.CSS_NUMBER_MODE,h.QUOTE_STRING_MODE]}]},{className:"attribute",begin:"\\b("+o.join("|")+")\\b",starts:{end:/;|$/,contains:[f.HEXCOLOR,m,h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,h.CSS_NUMBER_MODE,h.C_BLOCK_COMMENT_MODE,f.IMPORTANT],illegal:/\./,relevance:0}}]}}return Get=u,Get}var qet,Dbn;function Eri(){if(Dbn)return qet;Dbn=1;function e(t){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:`\\[ (multipart)?`,end:`\\] `},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return qet=e,qet}var Het,Mbn;function xri(){if(Mbn)return Het;Mbn=1;function e(F){return F?typeof F=="string"?F:F.source:null}function t(F){return r("(?=",F,")")}function r(...F){return F.map($=>e($)).join("")}function a(...F){return"("+F.map($=>e($)).join("|")+")"}const s=F=>r(/\b/,F,/\w$/.test(F)?/\b/:/\B/),o=["Protocol","Type"].map(s),u=["init","self"].map(s),h=["Any","Self"],f=["associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],p=["false","nil","true"],m=["assignment","associativity","higherThan","left","lowerThan","none","right"],b=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],_=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],w=a(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),S=a(w,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),C=r(w,S,"*"),A=a(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),k=a(A,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),I=r(A,k,"*"),N=r(/[A-Z]/,k,"*"),L=["autoclosure",r(/convention\(/,a("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,I,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","testable","UIApplicationMain","unknown","usableFromInline"],P=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function M(F){const U={match:/\s+/,relevance:0},$=F.COMMENT("/\\*","\\*/",{contains:["self"]}),G=[F.C_LINE_COMMENT_MODE,$],B={className:"keyword",begin:r(/\./,t(a(...o,...u))),end:a(...o,...u),excludeBegin:!0},Z={match:r(/\./,a(...f)),relevance:0},z=f.filter(fe=>typeof fe=="string").concat(["_|0"]),Y=f.filter(fe=>typeof fe!="string").concat(h).map(s),W={variants:[{className:"keyword",match:a(...Y,...u)}]},Q={$pattern:a(/\b\w+/,/#\w+/),keyword:z.concat(b),literal:p},V=[B,Z,W],j={match:r(/\./,a(..._)),relevance:0},ee={className:"built_in",match:r(/\b/,a(..._),/(?=\()/)},te=[j,ee],ne={match:/->/,relevance:0},se={className:"operator",relevance:0,variants:[{match:C},{match:`\\.(\\.|${S})+`}]},ie=[ne,se],ge="([0-9]_*)+",ce="([0-9a-fA-F]_*)+",be={className:"number",relevance:0,variants:[{match:`\\b(${ge})(\\.(${ge}))?([eE][+-]?(${ge}))?\\b`},{match:`\\b0x(${ce})(\\.(${ce}))?([pP][+-]?(${ge}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},ve=(fe="")=>({className:"subst",variants:[{match:r(/\\/,fe,/[0\\tnr"']/)},{match:r(/\\/,fe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),De=(fe="")=>({className:"subst",match:r(/\\/,fe,/[\t ]*(?:[\r\n]|\r\n)/)}),ye=(fe="")=>({className:"subst",label:"interpol",begin:r(/\\/,fe,/\(/),end:/\)/}),Ee=(fe="")=>({begin:r(fe,/"""/),end:r(/"""/,fe),contains:[ve(fe),De(fe),ye(fe)]}),he=(fe="")=>({begin:r(fe,/"/),end:r(/"/,fe),contains:[ve(fe),ye(fe)]}),we={className:"string",variants:[Ee(),Ee("#"),Ee("##"),Ee("###"),he(),he("#"),he("##"),he("###")]},Ce={match:r(/`/,I,/`/)},Ie={className:"variable",match:/\$\d+/},Le={className:"variable",match:`\\$${k}+`},Fe=[Ce,Ie,Le],Ve={match:/(@|#)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:P,contains:[...ie,be,we]}]}},Oe={className:"keyword",match:r(/@/,a(...L))},Dt={className:"meta",match:r(/@/,I)},ot=[Ve,Oe,Dt],sn={match:t(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:r(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,k,"+")},{className:"type",match:N,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,t(N)),relevance:0}]},Kt={begin://,keywords:Q,contains:[...G,...V,...ot,ne,sn]};sn.contains.push(Kt);const Ft={match:r(I,/\s*:/),keywords:"_|0",relevance:0},Je={begin:/\(/,end:/\)/,relevance:0,keywords:Q,contains:["self",Ft,...G,...V,...te,...ie,be,we,...Fe,...ot,sn]},ht={beginKeywords:"func",contains:[{className:"title",match:a(Ce.match,I,C),endsParent:!0,relevance:0},U]},et={begin://,contains:[...G,sn]},qe={begin:a(t(r(I,/\s*:/)),t(r(I,/\s+/,I,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:I}]},He={begin:/\(/,end:/\)/,keywords:Q,contains:[qe,...G,...V,...ie,be,we,...ot,sn,Je],endsParent:!0,illegal:/["']/},Ge={className:"function",match:t(/\bfunc\b/),contains:[ht,et,He,U],illegal:[/\[/,/%/]},Ye={className:"function",match:/\b(subscript|init[?!]?)\s*(?=[<(])/,keywords:{keyword:"subscript init init? init!",$pattern:/\w+[?!]?/},contains:[et,He,U],illegal:/\[|%/},Ae={beginKeywords:"operator",end:F.MATCH_NOTHING_RE,contains:[{className:"title",match:C,endsParent:!0,relevance:0}]},Xe={beginKeywords:"precedencegroup",end:F.MATCH_NOTHING_RE,contains:[{className:"title",match:N,relevance:0},{begin:/{/,end:/}/,relevance:0,endsParent:!0,keywords:[...m,...p],contains:[sn]}]};for(const fe of we.variants){const Qe=fe.contains.find(mt=>mt.label==="interpol");Qe.keywords=Q;const Ke=[...V,...te,...ie,be,we,...Fe];Qe.contains=[...Ke,{begin:/\(/,end:/\)/,contains:["self",...Ke]}]}return{name:"Swift",keywords:Q,contains:[...G,Ge,Ye,{className:"class",beginKeywords:"struct protocol class extension enum",end:"\\{",excludeEnd:!0,keywords:Q,contains:[F.inherit(F.TITLE_MODE,{begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...V]},Ae,Xe,{beginKeywords:"import",end:/$/,contains:[...G],relevance:0},...V,...te,...ie,be,we,...Fe,...ot,sn,Je]}}return Het=M,Het}var Vet,Pbn;function Sri(){if(Pbn)return Vet;Pbn=1;function e(t){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\(/,end:/\)/,contains:["self",{begin:/\\./}]}],relevance:10},{className:"keyword",begin:/\$(?!noop)[a-zA-Z][_a-zA-Z0-9]*/,end:/\(/,excludeEnd:!0},{className:"variable",begin:/%[_a-zA-Z0-9:]*/,end:"%"},{className:"symbol",begin:/\\./}]}}return Vet=e,Vet}var Yet,Bbn;function Tri(){if(Bbn)return Yet;Bbn=1;function e(t){var r="true false yes no null",a="[\\w#;/?:@&=+$,.~*'()[\\]]+",s={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},o={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},u={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,o]},h=t.inherit(u,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),f="[0-9]{4}(-[0-9][0-9]){0,2}",p="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",m="(\\.[0-9]*)?",b="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",_={className:"number",begin:"\\b"+f+p+m+b+"\\b"},w={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},S={begin:/\{/,end:/\}/,contains:[w],illegal:"\\n",relevance:0},C={begin:"\\[",end:"\\]",contains:[w],illegal:"\\n",relevance:0},A=[s,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+a},{className:"type",begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},_,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},S,C,u],k=[...A];return k.pop(),k.push(h),w.contains=k,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:A}}return Yet=e,Yet}var jet,Fbn;function Cri(){if(Fbn)return jet;Fbn=1;function e(t){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[t.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}return jet=e,jet}var Wet,$bn;function Ari(){if($bn)return Wet;$bn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(s){return r("(",s,")?")}function r(...s){return s.map(u=>e(u)).join("")}function a(s){const o=/[a-zA-Z_][a-zA-Z0-9_]*/,u={className:"number",variants:[s.BINARY_NUMBER_MODE,s.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:"after append apply array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd chan clock close concat continue dde dict encoding eof error eval exec exit expr fblocked fconfigure fcopy file fileevent filename flush for foreach format gets glob global history http if incr info interp join lappend|10 lassign|10 lindex|10 linsert|10 list llength|10 load lrange|10 lrepeat|10 lreplace|10 lreverse|10 lsearch|10 lset|10 lsort|10 mathfunc mathop memory msgcat namespace open package parray pid pkg::create pkg_mkIndex platform platform::shell proc puts pwd read refchan regexp registry regsub|10 rename return safe scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_startOfPreviousWord tcl_wordBreakAfter tcl_wordBreakBefore tcltest tclvars tell time tm trace unknown unload unset update uplevel upvar variable vwait while",contains:[s.COMMENT(";[ \\t]*#","$"),s.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:r(/\$/,t(/::/),o,"(::",o,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[u]}]},{className:"string",contains:[s.BACKSLASH_ESCAPE],variants:[s.inherit(s.QUOTE_STRING_MODE,{illegal:null})]},u]}}return Wet=a,Wet}var Ket,Ubn;function kri(){if(Ubn)return Ket;Ubn=1;function e(t){const r="bool byte i16 i32 i64 double string binary";return{name:"Thrift",keywords:{keyword:"namespace const typedef struct enum service exception void oneway set list map required optional",built_in:r,literal:"true false"},contains:[t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[t.inherit(t.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",end:">",keywords:r,contains:["self"]}]}}return Ket=e,Ket}var Xet,zbn;function Rri(){if(zbn)return Xet;zbn=1;function e(t){const r={className:"number",begin:"[1-9][0-9]*",relevance:0},a={className:"symbol",begin:":[^\\]]+"},s={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",r,a]},o={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",r,t.QUOTE_STRING_MODE,a]};return{name:"TP",keywords:{keyword:"ABORT ACC ADJUST AND AP_LD BREAK CALL CNT COL CONDITION CONFIG DA DB DIV DETECT ELSE END ENDFOR ERR_NUM ERROR_PROG FINE FOR GP GUARD INC IF JMP LINEAR_MAX_SPEED LOCK MOD MONITOR OFFSET Offset OR OVERRIDE PAUSE PREG PTH RT_LD RUN SELECT SKIP Skip TA TB TO TOOL_OFFSET Tool_Offset UF UT UFRAME_NUM UTOOL_NUM UNLOCK WAIT X Y Z W P R STRLEN SUBSTR FINDSTR VOFFSET PROG ATTR MN POS",literal:"ON OFF max_speed LPOS JPOS ENABLE DISABLE START STOP RESET"},contains:[s,o,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},t.COMMENT("//","[;$]"),t.COMMENT("!","[;$]"),t.COMMENT("--eg:","$"),t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},t.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}return Xet=e,Xet}var Qet,Gbn;function Iri(){if(Gbn)return Qet;Gbn=1;function e(t){var r={className:"params",begin:"\\(",end:"\\)"},a="attribute block constant cycle date dump include max min parent random range source template_from_string",s={beginKeywords:a,keywords:{name:a},relevance:0,contains:[r]},o={begin:/\|[A-Za-z_]+:?/,keywords:"abs batch capitalize column convert_encoding date date_modify default escape filter first format inky_to_html inline_css join json_encode keys last length lower map markdown merge nl2br number_format raw reduce replace reverse round slice sort spaceless split striptags title trim upper url_encode",contains:[s]},u="apply autoescape block deprecated do embed extends filter flush for from if import include macro sandbox set use verbatim with";return u=u+" "+u.split(" ").map(function(h){return"end"+h}).join(" "),{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[t.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:u,starts:{endsWithParent:!0,contains:[o,s],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",o,s]}]}}return Qet=e,Qet}var Zet,qbn;function Nri(){if(qbn)return Zet;qbn=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],a=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],s=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],u=["arguments","this","super","console","window","document","localStorage","module","global"],h=[].concat(o,u,a,s);function f(w){return w?typeof w=="string"?w:w.source:null}function p(w){return m("(?=",w,")")}function m(...w){return w.map(C=>f(C)).join("")}function b(w){const S=(V,{after:j})=>{const ee="",end:""},k={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(V,j)=>{const ee=V[0].length+V.index,te=V.input[ee];if(te==="<"){j.ignoreMatch();return}te===">"&&(S(V,{after:ee})||j.ignoreMatch())}},I={$pattern:e,keyword:t,literal:r,built_in:h},N="[0-9](_?[0-9])*",L=`\\.(${N})`,P="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",M={className:"number",variants:[{begin:`(\\b(${P})((${L})|\\.)?|(${L}))[eE][+-]?(${N})\\b`},{begin:`\\b(${P})\\b((${L})\\b|\\.)?|(${L})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},F={className:"subst",begin:"\\$\\{",end:"\\}",keywords:I,contains:[]},U={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[w.BACKSLASH_ESCAPE,F],subLanguage:"xml"}},$={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[w.BACKSLASH_ESCAPE,F],subLanguage:"css"}},G={className:"string",begin:"`",end:"`",contains:[w.BACKSLASH_ESCAPE,F]},Z={className:"comment",variants:[w.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:C+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),w.C_BLOCK_COMMENT_MODE,w.C_LINE_COMMENT_MODE]},z=[w.APOS_STRING_MODE,w.QUOTE_STRING_MODE,U,$,G,M,w.REGEXP_MODE];F.contains=z.concat({begin:/\{/,end:/\}/,keywords:I,contains:["self"].concat(z)});const Y=[].concat(Z,F.contains),W=Y.concat([{begin:/\(/,end:/\)/,keywords:I,contains:["self"].concat(Y)}]),Q={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:I,contains:W};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:I,exports:{PARAMS_CONTAINS:W},illegal:/#(?![$_A-z])/,contains:[w.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},w.APOS_STRING_MODE,w.QUOTE_STRING_MODE,U,$,G,Z,M,{begin:m(/[{,\n]\s*/,p(m(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,C+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:C+p("\\s*:"),relevance:0}]},{begin:"("+w.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[Z,w.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+w.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:w.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:I,contains:W}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:A.begin,end:A.end},{begin:k.begin,"on:begin":k.isTrulyOpeningTag,end:k.end}],subLanguage:"xml",contains:[{begin:k.begin,end:k.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:I,contains:["self",w.inherit(w.TITLE_MODE,{begin:C}),Q],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:w.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[Q,w.inherit(w.TITLE_MODE,{begin:C})]},{variants:[{begin:"\\."+C},{begin:"\\$"+C}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},w.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[w.inherit(w.TITLE_MODE,{begin:C}),"self",Q]},{begin:"(get|set)\\s+(?="+C+"\\()",end:/\{/,keywords:"get set",contains:[w.inherit(w.TITLE_MODE,{begin:C}),{begin:/\(\)/},Q]},{begin:/\$[(.]/}]}}function _(w){const S=e,C={beginKeywords:"namespace",end:/\{/,excludeEnd:!0},A={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"},k={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},I=["any","void","number","boolean","string","object","never","enum"],N=["type","namespace","typedef","interface","public","private","protected","implements","declare","abstract","readonly"],L={$pattern:e,keyword:t.concat(N),literal:r,built_in:h.concat(I)},P={className:"meta",begin:"@"+S},M=($,G,B)=>{const Z=$.contains.findIndex(z=>z.label===G);if(Z===-1)throw new Error("can not find mode to replace");$.contains.splice(Z,1,B)},F=b(w);Object.assign(F.keywords,L),F.exports.PARAMS_CONTAINS.push(P),F.contains=F.contains.concat([P,C,A]),M(F,"shebang",w.SHEBANG()),M(F,"use_strict",k);const U=F.contains.find($=>$.className==="function");return U.relevance=0,Object.assign(F,{name:"TypeScript",aliases:["ts","tsx"]}),F}return Zet=_,Zet}var Jet,Hbn;function Ori(){if(Hbn)return Jet;Hbn=1;function e(t){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[t.UNDERSCORE_TITLE_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$",relevance:2}]}}return Jet=e,Jet}var ett,Vbn;function Lri(){if(Vbn)return ett;Vbn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(...s){return s.map(u=>e(u)).join("")}function r(...s){return"("+s.map(u=>e(u)).join("|")+")"}function a(s){const o={className:"string",begin:/"(""|[^/n])"C\b/},u={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},h=/\d{1,2}\/\d{1,2}\/\d{4}/,f=/\d{4}-\d{1,2}-\d{1,2}/,p=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,m=/\d{1,2}(:\d{1,2}){1,2}/,b={className:"literal",variants:[{begin:t(/# */,r(f,h),/ *#/)},{begin:t(/# */,m,/ *#/)},{begin:t(/# */,p,/ *#/)},{begin:t(/# */,r(f,h),/ +/,r(p,m),/ *#/)}]},_={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},w={className:"label",begin:/^\w+:/},S=s.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),C=s.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[o,u,b,_,w,S,C,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{"meta-keyword":"const disable else elseif enable end externalsource if region then"},contains:[C]}]}}return ett=a,ett}var ttt,Ybn;function Dri(){if(Ybn)return ttt;Ybn=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(...s){return s.map(u=>e(u)).join("")}function r(...s){return"("+s.map(u=>e(u)).join("|")+")"}function a(s){const o="lcase month vartype instrrev ubound setlocale getobject rgb getref string weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency conversions csng timevalue second year space abs clng timeserial fixs len asc isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim strcomp int createobject loadpicture tan formatnumber mid split cint sin datepart ltrim sqr time derived eval date formatpercent exp inputbox left ascw chrw regexp cstr err".split(" "),u=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],h={begin:t(r(...o),"\\s*\\("),relevance:0,keywords:{built_in:o}};return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:"call class const dim do loop erase execute executeglobal exit for each next function if then else on error option explicit new private property let get public randomize redim rem select case set stop sub while wend with end to elseif is or xor and not class_initialize class_terminate default preserve in me byval byref step resume goto",built_in:u,literal:"true false null nothing empty"},illegal:"//",contains:[h,s.inherit(s.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),s.COMMENT(/'/,/$/,{relevance:0}),s.C_NUMBER_MODE]}}return ttt=a,ttt}var ntt,jbn;function Mri(){if(jbn)return ntt;jbn=1;function e(t){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}return ntt=e,ntt}var rtt,Wbn;function Pri(){if(Wbn)return rtt;Wbn=1;function e(t){return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:{$pattern:/[\w\$]+/,keyword:"accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf|0 bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate|5 genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 or output package packed parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor",literal:"null",built_in:"$finish $stop $exit $fatal $error $warning $info $realtime $time $printtimescale $bitstoreal $bitstoshortreal $itor $signed $cast $bits $stime $timeformat $realtobits $shortrealtobits $rtoi $unsigned $asserton $assertkill $assertpasson $assertfailon $assertnonvacuouson $assertoff $assertcontrol $assertpassoff $assertfailoff $assertvacuousoff $isunbounded $sampled $fell $changed $past_gclk $fell_gclk $changed_gclk $rising_gclk $steady_gclk $coverage_control $coverage_get $coverage_save $set_coverage_db_name $rose $stable $past $rose_gclk $stable_gclk $future_gclk $falling_gclk $changing_gclk $display $coverage_get_max $coverage_merge $get_coverage $load_coverage_db $typename $unpacked_dimensions $left $low $increment $clog2 $ln $log10 $exp $sqrt $pow $floor $ceil $sin $cos $tan $countbits $onehot $isunknown $fatal $warning $dimensions $right $high $size $asin $acos $atan $atan2 $hypot $sinh $cosh $tanh $asinh $acosh $atanh $countones $onehot0 $error $info $random $dist_chi_square $dist_erlang $dist_exponential $dist_normal $dist_poisson $dist_t $dist_uniform $q_initialize $q_remove $q_exam $async$and$array $async$nand$array $async$or$array $async$nor$array $sync$and$array $sync$nand$array $sync$or$array $sync$nor$array $q_add $q_full $psprintf $async$and$plane $async$nand$plane $async$or$plane $async$nor$plane $sync$and$plane $sync$nand$plane $sync$or$plane $sync$nor$plane $system $display $displayb $displayh $displayo $strobe $strobeb $strobeh $strobeo $write $readmemb $readmemh $writememh $value$plusargs $dumpvars $dumpon $dumplimit $dumpports $dumpportson $dumpportslimit $writeb $writeh $writeo $monitor $monitorb $monitorh $monitoro $writememb $dumpfile $dumpoff $dumpall $dumpflush $dumpportsoff $dumpportsall $dumpportsflush $fclose $fdisplay $fdisplayb $fdisplayh $fdisplayo $fstrobe $fstrobeb $fstrobeh $fstrobeo $swrite $swriteb $swriteh $swriteo $fscanf $fread $fseek $fflush $feof $fopen $fwrite $fwriteb $fwriteh $fwriteo $fmonitor $fmonitorb $fmonitorh $fmonitoro $sformat $sformatf $fgetc $ungetc $fgets $sscanf $rewind $ftell $ferror"},contains:[t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE,t.QUOTE_STRING_MODE,{className:"number",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:"\\b((\\d+'(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\B(('(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\b([0-9_])+",relevance:0}]},{className:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{className:"meta",begin:"`",end:"$",keywords:{"meta-keyword":"define __FILE__ __LINE__ begin_keywords celldefine default_nettype define else elsif end_keywords endcelldefine endif ifdef ifndef include line nounconnected_drive pragma resetall timescale unconnected_drive undef undefineall"},relevance:0}]}}return rtt=e,rtt}var itt,Kbn;function Bri(){if(Kbn)return itt;Kbn=1;function e(t){const r="\\d(_|\\d)*",a="[eE][-+]?"+r,s=r+"(\\."+r+")?("+a+")?",o="\\w+",h="\\b("+(r+"#"+o+"(\\."+o+")?#("+a+")?")+"|"+s+")";return{name:"VHDL",case_insensitive:!0,keywords:{keyword:"abs access after alias all and architecture array assert assume assume_guarantee attribute begin block body buffer bus case component configuration constant context cover disconnect downto default else elsif end entity exit fairness file for force function generate generic group guarded if impure in inertial inout is label library linkage literal loop map mod nand new next nor not null of on open or others out package parameter port postponed procedure process property protected pure range record register reject release rem report restrict restrict_guarantee return rol ror select sequence severity shared signal sla sll sra srl strong subtype then to transport type unaffected units until use variable view vmode vprop vunit wait when while with xnor xor",built_in:"boolean bit character integer time delay_length natural positive string bit_vector file_open_kind file_open_status std_logic std_logic_vector unsigned signed boolean_vector integer_vector std_ulogic std_ulogic_vector unresolved_unsigned u_unsigned unresolved_signed u_signed real_vector time_vector",literal:"false true note warning error failure line text side width"},illegal:/\{/,contains:[t.C_BLOCK_COMMENT_MODE,t.COMMENT("--","$"),t.QUOTE_STRING_MODE,{className:"number",begin:h,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[t.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[t.BACKSLASH_ESCAPE]}]}}return itt=e,itt}var att,Xbn;function Fri(){if(Xbn)return att;Xbn=1;function e(t){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[t.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},t.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]*/},{className:"function",beginKeywords:"function function!",end:"$",relevance:0,contains:[t.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}return att=e,att}var stt,Qbn;function $ri(){if(Qbn)return stt;Qbn=1;function e(t){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+t.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[t.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},t.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}return stt=e,stt}var ott,Zbn;function Uri(){if(Zbn)return ott;Zbn=1;function e(t){const a={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:"if then else do while until for loop import with is as where when by data constant integer real text name boolean symbol infix prefix postfix block tree",literal:"true false nil",built_in:"in mod rem and or xor not abs sign floor ceil sqrt sin cos tan asin acos atan exp expm1 log log2 log10 log1p pi at text_length text_range text_find text_replace contains page slide basic_slide title_slide title subtitle fade_in fade_out fade_at clear_color color line_color line_width texture_wrap texture_transform texture scale_?x scale_?y scale_?z? translate_?x translate_?y translate_?z? rotate_?x rotate_?y rotate_?z? rectangle circle ellipse sphere path line_to move_to quad_to curve_to theme background contents locally time mouse_?x mouse_?y mouse_buttons "+"ObjectLoader Animate MovieCredits Slides Filters Shading Materials LensFlare Mapping VLCAudioVideo StereoDecoder PointCloud NetworkAccess RemoteControl RegExp ChromaKey Snowfall NodeJS Speech Charts"},s={className:"string",begin:'"',end:'"',illegal:"\\n"},o={className:"string",begin:"'",end:"'",illegal:"\\n"},u={className:"string",begin:"<<",end:">>"},h={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},f={beginKeywords:"import",end:"$",keywords:a,contains:[s]},p={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[t.inherit(t.TITLE_MODE,{starts:{endsWithParent:!0,keywords:a}})]};return{name:"XL",aliases:["tao"],keywords:a,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,s,o,u,p,f,h,t.NUMBER_MODE]}}return ott=e,ott}var ltt,Jbn;function zri(){if(Jbn)return ltt;Jbn=1;function e(t){return{name:"XQuery",aliases:["xpath","xq"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:"module schema namespace boundary-space preserve no-preserve strip default collation base-uri ordering context decimal-format decimal-separator copy-namespaces empty-sequence except exponent-separator external grouping-separator inherit no-inherit lax minus-sign per-mille percent schema-attribute schema-element strict unordered zero-digit declare import option function validate variable for at in let where order group by return if then else tumbling sliding window start when only end previous next stable ascending descending allowing empty greatest least some every satisfies switch case typeswitch try catch and or to union intersect instance of treat as castable cast map array delete insert into replace value rename copy modify update",type:"item document-node node attribute document element comment namespace namespace-node processing-instruction text construction xs:anyAtomicType xs:untypedAtomic xs:duration xs:time xs:decimal xs:float xs:double xs:gYearMonth xs:gYear xs:gMonthDay xs:gMonth xs:gDay xs:boolean xs:base64Binary xs:hexBinary xs:anyURI xs:QName xs:NOTATION xs:dateTime xs:dateTimeStamp xs:date xs:string xs:normalizedString xs:token xs:language xs:NMTOKEN xs:Name xs:NCName xs:ID xs:IDREF xs:ENTITY xs:integer xs:nonPositiveInteger xs:negativeInteger xs:long xs:int xs:short xs:byte xs:nonNegativeInteger xs:unisignedLong xs:unsignedInt xs:unsignedShort xs:unsignedByte xs:positiveInteger xs:yearMonthDuration xs:dayTimeDuration",literal:"eq ne lt le gt ge is self:: child:: descendant:: descendant-or-self:: attribute:: following:: following-sibling:: parent:: ancestor:: ancestor-or-self:: preceding:: preceding-sibling:: NaN"},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}return ltt=e,ltt}var ctt,eyn;function Gri(){if(eyn)return ctt;eyn=1;function e(t){const r={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null})]},a=t.UNDERSCORE_TITLE_MODE,s={variants:[t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]},o="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:o,contains:[t.C_LINE_COMMENT_MODE,t.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[t.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[a,{className:"params",begin:/\(/,end:/\)/,keywords:o,contains:["self",t.C_BLOCK_COMMENT_MODE,r,s]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},a]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[a]},{beginKeywords:"use",end:/;/,contains:[a]},{begin:/=>/},r,s]}}return ctt=e,ctt}var In=LW,qri=In;In.registerLanguage("1c",pei());In.registerLanguage("abnf",gei());In.registerLanguage("accesslog",mei());In.registerLanguage("actionscript",bei());In.registerLanguage("ada",yei());In.registerLanguage("angelscript",vei());In.registerLanguage("apache",_ei());In.registerLanguage("applescript",wei());In.registerLanguage("arcade",Eei());In.registerLanguage("arduino",xei());In.registerLanguage("armasm",Sei());In.registerLanguage("xml",Tei());In.registerLanguage("asciidoc",Cei());In.registerLanguage("aspectj",Aei());In.registerLanguage("autohotkey",kei());In.registerLanguage("autoit",Rei());In.registerLanguage("avrasm",Iei());In.registerLanguage("awk",Nei());In.registerLanguage("axapta",Oei());In.registerLanguage("bash",Lei());In.registerLanguage("basic",Dei());In.registerLanguage("bnf",Mei());In.registerLanguage("brainfuck",Pei());In.registerLanguage("c-like",Bei());In.registerLanguage("c",Fei());In.registerLanguage("cal",$ei());In.registerLanguage("capnproto",Uei());In.registerLanguage("ceylon",zei());In.registerLanguage("clean",Gei());In.registerLanguage("clojure",qei());In.registerLanguage("clojure-repl",Hei());In.registerLanguage("cmake",Vei());In.registerLanguage("coffeescript",Yei());In.registerLanguage("coq",jei());In.registerLanguage("cos",Wei());In.registerLanguage("cpp",Kei());In.registerLanguage("crmsh",Xei());In.registerLanguage("crystal",Qei());In.registerLanguage("csharp",Zei());In.registerLanguage("csp",Jei());In.registerLanguage("css",eti());In.registerLanguage("d",tti());In.registerLanguage("markdown",nti());In.registerLanguage("dart",rti());In.registerLanguage("delphi",iti());In.registerLanguage("diff",ati());In.registerLanguage("django",sti());In.registerLanguage("dns",oti());In.registerLanguage("dockerfile",lti());In.registerLanguage("dos",cti());In.registerLanguage("dsconfig",uti());In.registerLanguage("dts",hti());In.registerLanguage("dust",dti());In.registerLanguage("ebnf",fti());In.registerLanguage("elixir",pti());In.registerLanguage("elm",gti());In.registerLanguage("ruby",mti());In.registerLanguage("erb",bti());In.registerLanguage("erlang-repl",yti());In.registerLanguage("erlang",vti());In.registerLanguage("excel",_ti());In.registerLanguage("fix",wti());In.registerLanguage("flix",Eti());In.registerLanguage("fortran",xti());In.registerLanguage("fsharp",Sti());In.registerLanguage("gams",Tti());In.registerLanguage("gauss",Cti());In.registerLanguage("gcode",Ati());In.registerLanguage("gherkin",kti());In.registerLanguage("glsl",Rti());In.registerLanguage("gml",Iti());In.registerLanguage("go",Nti());In.registerLanguage("golo",Oti());In.registerLanguage("gradle",Lti());In.registerLanguage("groovy",Dti());In.registerLanguage("haml",Mti());In.registerLanguage("handlebars",Pti());In.registerLanguage("haskell",Bti());In.registerLanguage("haxe",Fti());In.registerLanguage("hsp",$ti());In.registerLanguage("htmlbars",Uti());In.registerLanguage("http",zti());In.registerLanguage("hy",Gti());In.registerLanguage("inform7",qti());In.registerLanguage("ini",Hti());In.registerLanguage("irpf90",Vti());In.registerLanguage("isbl",Yti());In.registerLanguage("java",jti());In.registerLanguage("javascript",Wti());In.registerLanguage("jboss-cli",Kti());In.registerLanguage("json",Xti());In.registerLanguage("julia",Qti());In.registerLanguage("julia-repl",Zti());In.registerLanguage("kotlin",Jti());In.registerLanguage("lasso",eni());In.registerLanguage("latex",tni());In.registerLanguage("ldif",nni());In.registerLanguage("leaf",rni());In.registerLanguage("less",ini());In.registerLanguage("lisp",ani());In.registerLanguage("livecodeserver",sni());In.registerLanguage("livescript",oni());In.registerLanguage("llvm",lni());In.registerLanguage("lsl",cni());In.registerLanguage("lua",uni());In.registerLanguage("makefile",hni());In.registerLanguage("mathematica",dni());In.registerLanguage("matlab",fni());In.registerLanguage("maxima",pni());In.registerLanguage("mel",gni());In.registerLanguage("mercury",mni());In.registerLanguage("mipsasm",bni());In.registerLanguage("mizar",yni());In.registerLanguage("perl",vni());In.registerLanguage("mojolicious",_ni());In.registerLanguage("monkey",wni());In.registerLanguage("moonscript",Eni());In.registerLanguage("n1ql",xni());In.registerLanguage("nginx",Sni());In.registerLanguage("nim",Tni());In.registerLanguage("nix",Cni());In.registerLanguage("node-repl",Ani());In.registerLanguage("nsis",kni());In.registerLanguage("objectivec",Rni());In.registerLanguage("ocaml",Ini());In.registerLanguage("openscad",Nni());In.registerLanguage("oxygene",Oni());In.registerLanguage("parser3",Lni());In.registerLanguage("pf",Dni());In.registerLanguage("pgsql",Mni());In.registerLanguage("php",Pni());In.registerLanguage("php-template",Bni());In.registerLanguage("plaintext",Fni());In.registerLanguage("pony",$ni());In.registerLanguage("powershell",Uni());In.registerLanguage("processing",zni());In.registerLanguage("profile",Gni());In.registerLanguage("prolog",qni());In.registerLanguage("properties",Hni());In.registerLanguage("protobuf",Vni());In.registerLanguage("puppet",Yni());In.registerLanguage("purebasic",jni());In.registerLanguage("python",Wni());In.registerLanguage("python-repl",Kni());In.registerLanguage("q",Xni());In.registerLanguage("qml",Qni());In.registerLanguage("r",Zni());In.registerLanguage("reasonml",Jni());In.registerLanguage("rib",eri());In.registerLanguage("roboconf",tri());In.registerLanguage("routeros",nri());In.registerLanguage("rsl",rri());In.registerLanguage("ruleslanguage",iri());In.registerLanguage("rust",ari());In.registerLanguage("sas",sri());In.registerLanguage("scala",ori());In.registerLanguage("scheme",lri());In.registerLanguage("scilab",cri());In.registerLanguage("scss",uri());In.registerLanguage("shell",hri());In.registerLanguage("smali",dri());In.registerLanguage("smalltalk",fri());In.registerLanguage("sml",pri());In.registerLanguage("sqf",gri());In.registerLanguage("sql_more",mri());In.registerLanguage("sql",bri());In.registerLanguage("stan",yri());In.registerLanguage("stata",vri());In.registerLanguage("step21",_ri());In.registerLanguage("stylus",wri());In.registerLanguage("subunit",Eri());In.registerLanguage("swift",xri());In.registerLanguage("taggerscript",Sri());In.registerLanguage("yaml",Tri());In.registerLanguage("tap",Cri());In.registerLanguage("tcl",Ari());In.registerLanguage("thrift",kri());In.registerLanguage("tp",Rri());In.registerLanguage("twig",Iri());In.registerLanguage("typescript",Nri());In.registerLanguage("vala",Ori());In.registerLanguage("vbnet",Lri());In.registerLanguage("vbscript",Dri());In.registerLanguage("vbscript-html",Mri());In.registerLanguage("verilog",Pri());In.registerLanguage("vhdl",Bri());In.registerLanguage("vim",Fri());In.registerLanguage("x86asm",$ri());In.registerLanguage("xl",Uri());In.registerLanguage("xquery",zri());In.registerLanguage("zephir",Gri());const Hri=O1(qri),Vri=["1c","abnf","accesslog","actionscript","ada","angelscript","apache","applescript","arcade","arduino","armasm","asciidoc","aspectj","autohotkey","autoit","avrasm","awk","axapta","bash","basic","bnf","brainfuck","c-like","c","cal","capnproto","ceylon","clean","clojure-repl","clojure","cmake","coffeescript","coq","cos","cpp","crmsh","crystal","csharp","csp","css","d","dart","delphi","diff","django","dns","dockerfile","dos","dsconfig","dts","dust","ebnf","elixir","elm","erb","erlang-repl","erlang","excel","fix","flix","fortran","fsharp","gams","gauss","gcode","gherkin","glsl","gml","go","golo","gradle","groovy","haml","handlebars","haskell","haxe","hsp","htmlbars","http","hy","inform7","ini","irpf90","isbl","java","javascript","jboss-cli","json","julia-repl","julia","kotlin","lasso","latex","ldif","leaf","less","lisp","livecodeserver","livescript","llvm","lsl","lua","makefile","markdown","mathematica","matlab","maxima","mel","mercury","mipsasm","mizar","mojolicious","monkey","moonscript","n1ql","nginx","nim","nix","node-repl","nsis","objectivec","ocaml","openscad","oxygene","parser3","perl","pf","pgsql","php-template","php","plaintext","pony","powershell","processing","profile","prolog","properties","protobuf","puppet","purebasic","python-repl","python","q","qml","r","reasonml","rib","roboconf","routeros","rsl","ruby","ruleslanguage","rust","sas","scala","scheme","scilab","scss","shell","smali","smalltalk","sml","sqf","sql","sql_more","stan","stata","step21","stylus","subunit","swift","taggerscript","tap","tcl","thrift","tp","twig","typescript","vala","vbnet","vbscript-html","vbscript","verilog","vhdl","vim","x86asm","xl","xml","xquery","yaml","zephir"];var Yri=aJr(Hri,sJr);Yri.supportedLanguages=Vri;var lLn="Expected a function",tyn=NaN,jri="[object Symbol]",Wri=/^\s+|\s+$/g,Kri=/^[-+]0x[0-9a-f]+$/i,Xri=/^0b[01]+$/i,Qri=/^0o[0-7]+$/i,Zri=parseInt,Jri=typeof ml=="object"&&ml&&ml.Object===Object&&ml,eii=typeof self=="object"&&self&&self.Object===Object&&self,tii=Jri||eii||Function("return this")(),nii=Object.prototype,rii=nii.toString,iii=Math.max,aii=Math.min,utt=function(){return tii.Date.now()};function sii(e,t,r){var a,s,o,u,h,f,p=0,m=!1,b=!1,_=!0;if(typeof e!="function")throw new TypeError(lLn);t=nyn(t)||0,r4e(r)&&(m=!!r.leading,b="maxWait"in r,o=b?iii(nyn(r.maxWait)||0,t):o,_="trailing"in r?!!r.trailing:_);function w(M){var F=a,U=s;return a=s=void 0,p=M,u=e.apply(U,F),u}function S(M){return p=M,h=setTimeout(k,t),m?w(M):u}function C(M){var F=M-f,U=M-p,$=t-F;return b?aii($,o-U):$}function A(M){var F=M-f,U=M-p;return f===void 0||F>=t||F<0||b&&U>=o}function k(){var M=utt();if(A(M))return I(M);h=setTimeout(k,C(M))}function I(M){return h=void 0,_&&a?w(M):(a=s=void 0,u)}function N(){h!==void 0&&clearTimeout(h),p=0,a=f=s=h=void 0}function L(){return h===void 0?u:I(utt())}function P(){var M=utt(),F=A(M);if(a=arguments,s=this,f=M,F){if(h===void 0)return S(f);if(b)return h=setTimeout(k,t),w(f)}return h===void 0&&(h=setTimeout(k,t)),u}return P.cancel=N,P.flush=L,P}function oii(e,t,r){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(lLn);return r4e(r)&&(a="leading"in r?!!r.leading:a,s="trailing"in r?!!r.trailing:s),sii(e,t,{leading:a,maxWait:t,trailing:s})}function r4e(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function lii(e){return!!e&&typeof e=="object"}function cii(e){return typeof e=="symbol"||lii(e)&&rii.call(e)==jri}function nyn(e){if(typeof e=="number")return e;if(cii(e))return tyn;if(r4e(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=r4e(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Wri,"");var r=Xri.test(e);return r||Qri.test(e)?Zri(e.slice(2),r?2:8):Kri.test(e)?tyn:+e}var uii=oii;const UTa=O1(uii);var fot={name:"mermaid",version:"11.12.2",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}},cLn=Object.defineProperty,X=(e,t)=>cLn(e,"name",{value:t,configurable:!0}),KCe=(e,t)=>{for(var r in t)cLn(e,r,{get:t[r],enumerable:!0})},V6={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},it={trace:X((...e)=>{},"trace"),debug:X((...e)=>{},"debug"),info:X((...e)=>{},"info"),warn:X((...e)=>{},"warn"),error:X((...e)=>{},"error"),fatal:X((...e)=>{},"fatal")},B0t=X(function(e="fatal"){let t=V6.fatal;typeof e=="string"?e.toLowerCase()in V6&&(t=V6[e]):typeof e=="number"&&(t=e),it.trace=()=>{},it.debug=()=>{},it.info=()=>{},it.warn=()=>{},it.error=()=>{},it.fatal=()=>{},t<=V6.fatal&&(it.fatal=console.error?console.error.bind(console,Px("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Px("FATAL"))),t<=V6.error&&(it.error=console.error?console.error.bind(console,Px("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Px("ERROR"))),t<=V6.warn&&(it.warn=console.warn?console.warn.bind(console,Px("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Px("WARN"))),t<=V6.info&&(it.info=console.info?console.info.bind(console,Px("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Px("INFO"))),t<=V6.debug&&(it.debug=console.debug?console.debug.bind(console,Px("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Px("DEBUG"))),t<=V6.trace&&(it.trace=console.debug?console.debug.bind(console,Px("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Px("TRACE")))},"setLogLevel"),Px=X(e=>`%c${Fc().format("ss.SSS")} : ${e} : `,"format");const QEe={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},a)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const s=r<.5?r*(1+t):r+t-r*t,o=2*r-s;switch(a){case"r":return QEe.hue2rgb(o,s,e+1/3)*255;case"g":return QEe.hue2rgb(o,s,e)*255;case"b":return QEe.hue2rgb(o,s,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},a)=>{e/=255,t/=255,r/=255;const s=Math.max(e,t,r),o=Math.min(e,t,r),u=(s+o)/2;if(a==="l")return u*100;if(s===o)return 0;const h=s-o,f=u>.5?h/(2-s-o):h/(s+o);if(a==="s")return f*100;switch(s){case e:return((t-r)/h+(tt>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},dii={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},Lo={channel:QEe,lang:hii,unit:dii},VN={};for(let e=0;e<=255;e++)VN[e]=Lo.unit.dec2hex(e);const pb={ALL:0,RGB:1,HSL:2};let fii=class{constructor(){this.type=pb.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=pb.ALL}is(t){return this.type===t}};class pii{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new fii}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=pb.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:a,l:s}=t;r===void 0&&(t.h=Lo.channel.rgb2hsl(t,"h")),a===void 0&&(t.s=Lo.channel.rgb2hsl(t,"s")),s===void 0&&(t.l=Lo.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:a,b:s}=t;r===void 0&&(t.r=Lo.channel.hsl2rgb(t,"r")),a===void 0&&(t.g=Lo.channel.hsl2rgb(t,"g")),s===void 0&&(t.b=Lo.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(pb.HSL)&&r!==void 0?r:(this._ensureHSL(),Lo.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(pb.HSL)&&r!==void 0?r:(this._ensureHSL(),Lo.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(pb.HSL)&&r!==void 0?r:(this._ensureHSL(),Lo.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(pb.RGB)&&r!==void 0?r:(this._ensureRGB(),Lo.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(pb.RGB)&&r!==void 0?r:(this._ensureRGB(),Lo.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(pb.RGB)&&r!==void 0?r:(this._ensureRGB(),Lo.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(pb.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(pb.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(pb.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(pb.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(pb.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(pb.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const XCe=new pii({r:0,g:0,b:0,a:0},"transparent"),jV={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(jV.re);if(!t)return;const r=t[1],a=parseInt(r,16),s=r.length,o=s%4===0,u=s>4,h=u?1:17,f=u?8:4,p=o?0:-1,m=u?255:15;return XCe.set({r:(a>>f*(p+3)&m)*h,g:(a>>f*(p+2)&m)*h,b:(a>>f*(p+1)&m)*h,a:o?(a&m)*h/255:1},e)},stringify:e=>{const{r:t,g:r,b:a,a:s}=e;return s<1?`#${VN[Math.round(t)]}${VN[Math.round(r)]}${VN[Math.round(a)]}${VN[Math.round(s*255)]}`:`#${VN[Math.round(t)]}${VN[Math.round(r)]}${VN[Math.round(a)]}`}},QB={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(QB.hueRe);if(t){const[,r,a]=t;switch(a){case"grad":return Lo.channel.clamp.h(parseFloat(r)*.9);case"rad":return Lo.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Lo.channel.clamp.h(parseFloat(r)*360)}}return Lo.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(QB.re);if(!r)return;const[,a,s,o,u,h]=r;return XCe.set({h:QB._hue2deg(a),s:Lo.channel.clamp.s(parseFloat(s)),l:Lo.channel.clamp.l(parseFloat(o)),a:u?Lo.channel.clamp.a(h?parseFloat(u)/100:parseFloat(u)):1},e)},stringify:e=>{const{h:t,s:r,l:a,a:s}=e;return s<1?`hsla(${Lo.lang.round(t)}, ${Lo.lang.round(r)}%, ${Lo.lang.round(a)}%, ${s})`:`hsl(${Lo.lang.round(t)}, ${Lo.lang.round(r)}%, ${Lo.lang.round(a)}%)`}},ase={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=ase.colors[e];if(t)return jV.parse(t)},stringify:e=>{const t=jV.stringify(e);for(const r in ase.colors)if(ase.colors[r]===t)return r}},Nie={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(Nie.re);if(!r)return;const[,a,s,o,u,h,f,p,m]=r;return XCe.set({r:Lo.channel.clamp.r(s?parseFloat(a)*2.55:parseFloat(a)),g:Lo.channel.clamp.g(u?parseFloat(o)*2.55:parseFloat(o)),b:Lo.channel.clamp.b(f?parseFloat(h)*2.55:parseFloat(h)),a:p?Lo.channel.clamp.a(m?parseFloat(p)/100:parseFloat(p)):1},e)},stringify:e=>{const{r:t,g:r,b:a,a:s}=e;return s<1?`rgba(${Lo.lang.round(t)}, ${Lo.lang.round(r)}, ${Lo.lang.round(a)}, ${Lo.lang.round(s)})`:`rgb(${Lo.lang.round(t)}, ${Lo.lang.round(r)}, ${Lo.lang.round(a)})`}},aT={format:{keyword:ase,hex:jV,rgb:Nie,rgba:Nie,hsl:QB,hsla:QB},parse:e=>{if(typeof e!="string")return e;const t=jV.parse(e)||Nie.parse(e)||QB.parse(e)||ase.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(pb.HSL)||e.data.r===void 0?QB.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Nie.stringify(e):jV.stringify(e)},uLn=(e,t)=>{const r=aT.parse(e);for(const a in t)r[a]=Lo.channel.clamp[a](t[a]);return aT.stringify(r)},Z2=(e,t,r=0,a=1)=>{if(typeof e!="number")return uLn(e,{a:t});const s=XCe.set({r:Lo.channel.clamp.r(e),g:Lo.channel.clamp.g(t),b:Lo.channel.clamp.b(r),a:Lo.channel.clamp.a(a)});return aT.stringify(s)},ece=(e,t)=>Lo.lang.round(aT.parse(e)[t]),gii=e=>{const{r:t,g:r,b:a}=aT.parse(e),s=.2126*Lo.channel.toLinear(t)+.7152*Lo.channel.toLinear(r)+.0722*Lo.channel.toLinear(a);return Lo.lang.round(s)},mii=e=>gii(e)>=.5,bv=e=>!mii(e),hLn=(e,t,r)=>{const a=aT.parse(e),s=a[t],o=Lo.channel.clamp[t](s+r);return s!==o&&(a[t]=o),aT.stringify(a)},Nr=(e,t)=>hLn(e,"l",t),qr=(e,t)=>hLn(e,"l",-t),gt=(e,t)=>{const r=aT.parse(e),a={};for(const s in t)t[s]&&(a[s]=r[s]+t[s]);return uLn(e,a)},bii=(e,t,r=50)=>{const{r:a,g:s,b:o,a:u}=aT.parse(e),{r:h,g:f,b:p,a:m}=aT.parse(t),b=r/100,_=b*2-1,w=u-m,C=((_*w===-1?_:(_+w)/(1+_*w))+1)/2,A=1-C,k=a*C+h*A,I=s*C+f*A,N=o*C+p*A,L=u*b+m*(1-b);return Z2(k,I,N,L)},ir=(e,t=100)=>{const r=aT.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,bii(r,e,t)};var dLn=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,sse=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,yii=/\s*%%.*\n/gm,pY,fLn=(pY=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},X(pY,"UnknownDiagramError"),pY),IF={},F0t=X(function(e,t){e=e.replace(dLn,"").replace(sse,"").replace(yii,` `);for(const[r,{detector:a}]of Object.entries(IF))if(a(e,t))return r;throw new fLn(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),pot=X((...e)=>{for(const{id:t,detector:r,loader:a}of e)pLn(t,r,a)},"registerLazyLoadedDiagrams"),pLn=X((e,t,r)=>{IF[e]&&it.warn(`Detector with key ${e} already exists. Overwriting.`),IF[e]={detector:t,loader:r},it.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),vii=X(e=>IF[e].loader,"getDiagramLoader"),got=X((e,t,{depth:r=2,clobber:a=!1}={})=>{const s={depth:r,clobber:a};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(o=>got(e,o,s)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(o=>{e.includes(o)||e.push(o)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(o=>{typeof t[o]=="object"&&(e[o]===void 0||typeof e[o]=="object")?(e[o]===void 0&&(e[o]=Array.isArray(t[o])?[]:{}),e[o]=got(e[o],t[o],{depth:r-1,clobber:a})):(a||typeof e[o]!="object"&&typeof t[o]!="object")&&(e[o]=t[o])}),e)},"assignWithDepth"),W0=got,QCe="#ffffff",ZCe="#f2f2f2",Qy=X((e,t)=>t?gt(e,{s:-40,l:10}):gt(e,{s:-40,l:-10}),"mkBorder"),gY,_ii=(gY=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var r,a,s,o,u,h,f,p,m,b,_,w,S,C,A,k,I,N,L,P,M;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||gt(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||gt(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Qy(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Qy(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Qy(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Qy(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||ir(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ir(this.tertiaryColor),this.lineColor=this.lineColor||ir(this.background),this.arrowheadColor=this.arrowheadColor||ir(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?qr(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||qr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ir(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Nr(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||qr(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||qr(this.mainBkg,10)):(this.rowOdd=this.rowOdd||Nr(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Nr(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||gt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||gt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||gt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||gt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||gt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||gt(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||gt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||gt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||gt(this.primaryColor,{h:330}),this.darkMode)for(let F=0;F{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}},X(gY,"Theme"),gY),wii=X(e=>{const t=new _ii;return t.calculate(e),t},"getThemeVariables"),mY,Eii=(mY=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Nr(this.primaryColor,16),this.tertiaryColor=gt(this.primaryColor,{h:-160}),this.primaryBorderColor=ir(this.background),this.secondaryBorderColor=Qy(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qy(this.tertiaryColor,this.darkMode),this.primaryTextColor=ir(this.primaryColor),this.secondaryTextColor=ir(this.secondaryColor),this.tertiaryTextColor=ir(this.tertiaryColor),this.lineColor=ir(this.background),this.textColor=ir(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Nr(ir("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Z2(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=qr("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=qr(this.sectionBkgColor,10),this.taskBorderColor=Z2(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Z2(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Nr(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||qr(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var t,r,a,s,o,u,h,f,p,m,b,_,w,S,C,A,k,I,N,L,P;this.secondBkg=Nr(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Nr(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=Nr(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=gt(this.primaryColor,{h:64}),this.fillType3=gt(this.secondaryColor,{h:64}),this.fillType4=gt(this.primaryColor,{h:-64}),this.fillType5=gt(this.secondaryColor,{h:-64}),this.fillType6=gt(this.primaryColor,{h:128}),this.fillType7=gt(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||gt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||gt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||gt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||gt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||gt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||gt(this.primaryColor,{h:210}),this.cScale9=this.cScale9||gt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||gt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||gt(this.primaryColor,{h:330});for(let M=0;M{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}},X(mY,"Theme"),mY),xii=X(e=>{const t=new Eii;return t.calculate(e),t},"getThemeVariables"),bY,Sii=(bY=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=gt(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=gt(this.primaryColor,{h:-160}),this.primaryBorderColor=Qy(this.primaryColor,this.darkMode),this.secondaryBorderColor=Qy(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qy(this.tertiaryColor,this.darkMode),this.primaryTextColor=ir(this.primaryColor),this.secondaryTextColor=ir(this.secondaryColor),this.tertiaryTextColor=ir(this.tertiaryColor),this.lineColor=ir(this.background),this.textColor=ir(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Z2(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var t,r,a,s,o,u,h,f,p,m,b,_,w,S,C,A,k,I,N,L,P;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||gt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||gt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||gt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||gt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||gt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||gt(this.primaryColor,{h:210}),this.cScale9=this.cScale9||gt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||gt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||gt(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||qr(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||qr(this.tertiaryColor,40);for(let M=0;M{this[a]==="calculated"&&(this[a]=void 0)}),typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(a=>{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}},X(bY,"Theme"),bY),JCe=X(e=>{const t=new Sii;return t.calculate(e),t},"getThemeVariables"),yY,Tii=(yY=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=Nr("#cde498",10),this.primaryBorderColor=Qy(this.primaryColor,this.darkMode),this.secondaryBorderColor=Qy(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qy(this.tertiaryColor,this.darkMode),this.primaryTextColor=ir(this.primaryColor),this.secondaryTextColor=ir(this.secondaryColor),this.tertiaryTextColor=ir(this.primaryColor),this.lineColor=ir(this.background),this.textColor=ir(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,a,s,o,u,h,f,p,m,b,_,w,S,C,A,k,I,N,L,P;this.actorBorder=qr(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||gt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||gt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||gt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||gt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||gt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||gt(this.primaryColor,{h:210}),this.cScale9=this.cScale9||gt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||gt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||gt(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||qr(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||qr(this.tertiaryColor,40);for(let M=0;M{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}},X(yY,"Theme"),yY),Cii=X(e=>{const t=new Tii;return t.calculate(e),t},"getThemeVariables"),vY,Aii=(vY=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Nr(this.contrast,55),this.background="#ffffff",this.tertiaryColor=gt(this.primaryColor,{h:-160}),this.primaryBorderColor=Qy(this.primaryColor,this.darkMode),this.secondaryBorderColor=Qy(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qy(this.tertiaryColor,this.darkMode),this.primaryTextColor=ir(this.primaryColor),this.secondaryTextColor=ir(this.secondaryColor),this.tertiaryTextColor=ir(this.tertiaryColor),this.lineColor=ir(this.background),this.textColor=ir(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Nr(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,a,s,o,u,h,f,p,m,b,_,w,S,C,A,k,I,N,L,P;this.secondBkg=Nr(this.contrast,55),this.border2=this.contrast,this.actorBorder=Nr(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let M=0;M{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}},X(vY,"Theme"),vY),kii=X(e=>{const t=new Aii;return t.calculate(e),t},"getThemeVariables"),$7={base:{getThemeVariables:wii},dark:{getThemeVariables:xii},default:{getThemeVariables:JCe},forest:{getThemeVariables:Cii},neutral:{getThemeVariables:kii}},fC={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},gLn={...fC,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:$7.default.getThemeVariables(),sequence:{...fC.sequence,messageFont:X(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:X(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:X(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...fC.gantt,tickInterval:void 0,useWidth:void 0},c4:{...fC.c4,useWidth:void 0,personFont:X(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...fC.flowchart,inheritDir:!1},external_personFont:X(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:X(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:X(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:X(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:X(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:X(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:X(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:X(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:X(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:X(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:X(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:X(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:X(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:X(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:X(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:X(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:X(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:X(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:X(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:X(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:X(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...fC.pie,useWidth:984},xyChart:{...fC.xyChart,useWidth:void 0},requirement:{...fC.requirement,useWidth:void 0},packet:{...fC.packet},radar:{...fC.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},mLn=X((e,t="")=>Object.keys(e).reduce((r,a)=>Array.isArray(e[a])?r:typeof e[a]=="object"&&e[a]!==null?[...r,t+a,...mLn(e[a],"")]:[...r,t+a],[]),"keyify"),Rii=new Set(mLn(gLn,"")),Cc=gLn,i4e=X(e=>{if(it.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>i4e(t));return}for(const t of Object.keys(e)){if(it.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!Rii.has(t)||e[t]==null){it.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){it.debug("sanitizing object",t),i4e(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const a of r)t.includes(a)&&(it.debug("sanitizing css option",t),e[t]=Iii(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}it.debug("After sanitization",e)}},"sanitizeDirective"),Iii=X(e=>{let t=0,r=0;for(const a of e){if(t{let r=W0({},e),a={};for(const s of t)vLn(s),a=W0(a,s);if(r=W0(r,a),a.theme&&a.theme in $7){const s=W0({},a4e),o=W0(s.themeVariables||{},a.themeVariables);r.theme&&r.theme in $7&&(r.themeVariables=$7[r.theme].getThemeVariables(o))}return ose=r,_Ln(ose),ose},"updateCurrentConfig"),Nii=X(e=>(P2=W0({},Tj),P2=W0(P2,e),e.theme&&$7[e.theme]&&(P2.themeVariables=$7[e.theme].getThemeVariables(e.themeVariables)),eAe(P2,NF),P2),"setSiteConfig"),Oii=X(e=>{a4e=W0({},e)},"saveConfigFromInitialize"),Lii=X(e=>(P2=W0(P2,e),eAe(P2,NF),P2),"updateSiteConfig"),bLn=X(()=>W0({},P2),"getSiteConfig"),yLn=X(e=>(_Ln(e),W0(ose,e),$c()),"setConfig"),$c=X(()=>W0({},ose),"getConfig"),vLn=X(e=>{e&&(["secure",...P2.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(it.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&vLn(e[t])}))},"sanitize"),Dii=X(e=>{var t;i4e(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),NF.push(e),eAe(P2,NF)},"addDirective"),s4e=X((e=P2)=>{NF=[],eAe(e,NF)},"reset"),Mii={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},ryn={},Pii=X(e=>{ryn[e]||(it.warn(Mii[e]),ryn[e]=!0)},"issueWarning"),_Ln=X(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Pii("LAZY_LOAD_DEPRECATED")},"checkConfig"),Bii=X(()=>{let e={};a4e&&(e=W0(e,a4e));for(const t of NF)e=W0(e,t);return e},"getUserDefinedConfig"),DW=//gi,Fii=X(e=>e?xLn(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),$ii=(()=>{let e=!1;return()=>{e||(wLn(),e=!0)}})();function wLn(){const e="data-temp-href-target";Sj.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Sj.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}X(wLn,"setupDompurifyHooks");var ELn=X(e=>($ii(),Sj.sanitize(e)),"removeScript"),iyn=X((e,t)=>{var r;if(((r=t.flowchart)==null?void 0:r.htmlLabels)!==!1){const a=t.securityLevel;a==="antiscript"||a==="strict"?e=ELn(e):a!=="loose"&&(e=xLn(e),e=e.replace(//g,">"),e=e.replace(/=/g,"="),e=qii(e))}return e},"sanitizeMore"),Ic=X((e,t)=>e&&(t.dompurifyConfig?e=Sj.sanitize(iyn(e,t),t.dompurifyConfig).toString():e=Sj.sanitize(iyn(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),Uii=X((e,t)=>typeof e=="string"?Ic(e,t):e.flat().map(r=>Ic(r,t)),"sanitizeTextOrArray"),zii=X(e=>DW.test(e),"hasBreaks"),Gii=X(e=>e.split(DW),"splitBreaks"),qii=X(e=>e.replace(/#br#/g,"
    "),"placeholderToBreak"),xLn=X(e=>e.replace(DW,"#br#"),"breakToPlaceholder"),tAe=X(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),nh=X(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Hii=X(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),Vii=X(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),WN=X(function(e){const t=e.split(/(,)/),r=[];for(let a=0;a0&&a+1Math.max(0,e.split(t).length-1),"countOccurrence"),Yii=X((e,t)=>{const r=mot(e,"~"),a=mot(t,"~");return r===1&&a===1},"shouldCombineSets"),jii=X(e=>{const t=mot(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const a=[...e];let s=a.indexOf("~"),o=a.lastIndexOf("~");for(;s!==-1&&o!==-1&&s!==o;)a[s]="<",a[o]=">",s=a.indexOf("~"),o=a.lastIndexOf("~");return r&&a.unshift("~"),a.join("")},"processSet"),ayn=X(()=>window.MathMLElement!==void 0,"isMathMLSupported"),bot=/\$\$(.*)\$\$/g,u0=X(e=>{var t;return(((t=e.match(bot))==null?void 0:t.length)??0)>0},"hasKatex"),tce=X(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await nce(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const a=document.querySelector("body");a==null||a.insertAdjacentElement("beforeend",r);const s={width:r.clientWidth,height:r.clientHeight};return r.remove(),s},"calculateMathMLDimensions"),Wii=X(async(e,t)=>{if(!u0(e))return e;if(!(ayn()||t.legacyMathML||t.forceLegacyMathML))return e.replace(bot,"MathML is unsupported in this environment.");{const{default:r}=await ea(async()=>{const{default:s}=await Promise.resolve().then(()=>CTi);return{default:s}},void 0),a=t.forceLegacyMathML||!ayn()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(DW).map(s=>u0(s)?`
    ${s}
    `:`
    ${s}
    `).join("").replace(bot,(s,o)=>r.renderToString(o,{throwOnError:!0,displayMode:!0,output:a}).replace(/\n/g," ").replace(//g,""))}},"renderKatexUnsanitized"),nce=X(async(e,t)=>Ic(await Wii(e,t),t),"renderKatexSanitized"),Ti={getRows:Fii,sanitizeText:Ic,sanitizeTextOrArray:Uii,hasBreaks:zii,splitBreaks:Gii,lineBreakRegex:DW,removeScript:ELn,getUrl:tAe,evaluate:nh,getMax:Hii,getMin:Vii},Kii=X(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),Xii=X(function(e,t,r){let a=new Map;return r?(a.set("width","100%"),a.set("style",`max-width: ${t}px;`)):(a.set("height",e),a.set("width",t)),a},"calculateSvgSizeAttrs"),yv=X(function(e,t,r,a){const s=Xii(t,r,a);Kii(e,s)},"configureSvgSize"),rce=X(function(e,t,r,a){const s=t.node().getBBox(),o=s.width,u=s.height;it.info(`SVG bounds: ${o}x${u}`,s);let h=0,f=0;it.info(`Graph bounds: ${h}x${f}`,e),h=o+r*2,f=u+r*2,it.info(`Calculated bounds: ${h}x${f}`),yv(t,f,h,a);const p=`${s.x-r} ${s.y-r} ${s.width+2*r} ${s.height+2*r}`;t.attr("viewBox",p)},"setupGraphViewbox"),ZEe={},Qii=X((e,t,r)=>{let a="";return e in ZEe&&ZEe[e]?a=ZEe[e](r):it.warn(`No theme found for ${e}`),` & { font-family: ${r.fontFamily}; font-size: ${r.fontSize}; fill: ${r.textColor} } @keyframes edge-animation-frame { from { stroke-dashoffset: 0; } } @keyframes dash { to { stroke-dashoffset: 0; } } & .edge-animation-slow { stroke-dasharray: 9,5 !important; stroke-dashoffset: 900; animation: dash 50s linear infinite; stroke-linecap: round; } & .edge-animation-fast { stroke-dasharray: 9,5 !important; stroke-dashoffset: 900; animation: dash 20s linear infinite; stroke-linecap: round; } /* Classes common for multiple diagrams */ & .error-icon { fill: ${r.errorBkgColor}; } & .error-text { fill: ${r.errorTextColor}; stroke: ${r.errorTextColor}; } & .edge-thickness-normal { stroke-width: 1px; } & .edge-thickness-thick { stroke-width: 3.5px } & .edge-pattern-solid { stroke-dasharray: 0; } & .edge-thickness-invisible { stroke-width: 0; fill: none; } & .edge-pattern-dashed{ stroke-dasharray: 3; } .edge-pattern-dotted { stroke-dasharray: 2; } & .marker { fill: ${r.lineColor}; stroke: ${r.lineColor}; } & .marker.cross { stroke: ${r.lineColor}; } & svg { font-family: ${r.fontFamily}; font-size: ${r.fontSize}; } & p { margin: 0 } ${a} ${t} `},"getStyles"),Zii=X((e,t)=>{t!==void 0&&(ZEe[e]=t)},"addStylesForDiagram"),Jii=Qii,$0t={};KCe($0t,{clear:()=>M1,getAccDescription:()=>Bp,getAccTitle:()=>Mp,getDiagramTitle:()=>P1,setAccDescription:()=>Pp,setAccTitle:()=>N1,setDiagramTitle:()=>Og});var U0t="",z0t="",G0t="",q0t=X(e=>Ic(e,$c()),"sanitizeText"),M1=X(()=>{U0t="",G0t="",z0t=""},"clear"),N1=X(e=>{U0t=q0t(e).replace(/^\s+/g,"")},"setAccTitle"),Mp=X(()=>U0t,"getAccTitle"),Pp=X(e=>{G0t=q0t(e).replace(/\n\s+/g,` `)},"setAccDescription"),Bp=X(()=>G0t,"getAccDescription"),Og=X(e=>{z0t=q0t(e)},"setDiagramTitle"),P1=X(()=>z0t,"getDiagramTitle"),syn=it,eai=B0t,nn=$c,yot=yLn,SLn=Tj,H0t=X(e=>Ic(e,nn()),"sanitizeText"),TLn=rce,tai=X(()=>$0t,"getCommonDb"),o4e={},l4e=X((e,t,r)=>{var a;o4e[e]&&syn.warn(`Diagram with id ${e} already registered. Overwriting.`),o4e[e]=t,r&&pLn(e,r),Zii(e,t.styles),(a=t.injectUtils)==null||a.call(t,syn,eai,nn,H0t,TLn,tai(),()=>{})},"registerDiagram"),vot=X(e=>{if(e in o4e)return o4e[e];throw new nai(e)},"getDiagram"),_Y,nai=(_Y=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},X(_Y,"DiagramNotFoundError"),_Y);function JEe(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function rai(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function V0t(e){let t,r,a;e.length!==2?(t=JEe,r=(h,f)=>JEe(e(h),f),a=(h,f)=>e(h)-f):(t=e===JEe||e===rai?e:iai,r=e,a=e);function s(h,f,p=0,m=h.length){if(p>>1;r(h[b],f)<0?p=b+1:m=b}while(p>>1;r(h[b],f)<=0?p=b+1:m=b}while(pp&&a(h[b-1],f)>-a(h[b],f)?b-1:b}return{left:s,center:u,right:o}}function iai(){return 0}function aai(e){return e===null?NaN:+e}const sai=V0t(JEe),oai=sai.right;V0t(aai).center;class oyn extends Map{constructor(t,r=uai){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[a,s]of t)this.set(a,s)}get(t){return super.get(lyn(this,t))}has(t){return super.has(lyn(this,t))}set(t,r){return super.set(lai(this,t),r)}delete(t){return super.delete(cai(this,t))}}function lyn({_intern:e,_key:t},r){const a=t(r);return e.has(a)?e.get(a):r}function lai({_intern:e,_key:t},r){const a=t(r);return e.has(a)?e.get(a):(e.set(a,r),r)}function cai({_intern:e,_key:t},r){const a=t(r);return e.has(a)&&(r=e.get(a),e.delete(a)),r}function uai(e){return e!==null&&typeof e=="object"?e.valueOf():e}const hai=Math.sqrt(50),dai=Math.sqrt(10),fai=Math.sqrt(2);function c4e(e,t,r){const a=(t-e)/Math.max(0,r),s=Math.floor(Math.log10(a)),o=a/Math.pow(10,s),u=o>=hai?10:o>=dai?5:o>=fai?2:1;let h,f,p;return s<0?(p=Math.pow(10,-s)/u,h=Math.round(e*p),f=Math.round(t*p),h/pt&&--f,p=-p):(p=Math.pow(10,s)*u,h=Math.round(e/p),f=Math.round(t/p),h*pt&&--f),f0))return[];if(e===t)return[e];const a=t=s))return[];const h=o-s+1,f=new Array(h);if(a)if(u<0)for(let p=0;p=a)&&(r=a);else{let a=-1;for(let s of e)(s=t(s,++a,e))!=null&&(r=s)&&(r=s)}return r}function ALn(e,t){let r;if(t===void 0)for(const a of e)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let s of e)(s=t(s,++a,e))!=null&&(r>s||r===void 0&&s>=s)&&(r=s)}return r}function gai(e,t,r){e=+e,t=+t,r=(s=arguments.length)<2?(t=e,e=0,1):s<3?1:+r;for(var a=-1,s=Math.max(0,Math.ceil((t-e)/r))|0,o=new Array(s);++a+e(t)}function _ai(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}function wai(){return!this.__axis}function kLn(e,t){var r=[],a=null,s=null,o=6,u=6,h=3,f=typeof window<"u"&&window.devicePixelRatio>1?0:.5,p=e===exe||e===V_e?-1:1,m=e===V_e||e===htt?"x":"y",b=e===exe||e===Eot?bai:yai;function _(w){var S=a??(t.ticks?t.ticks.apply(t,r):t.domain()),C=s??(t.tickFormat?t.tickFormat.apply(t,r):mai),A=Math.max(o,0)+h,k=t.range(),I=+k[0]+f,N=+k[k.length-1]+f,L=(t.bandwidth?_ai:vai)(t.copy(),f),P=w.selection?w.selection():w,M=P.selectAll(".domain").data([null]),F=P.selectAll(".tick").data(S,t).order(),U=F.exit(),$=F.enter().append("g").attr("class","tick"),G=F.select("line"),B=F.select("text");M=M.merge(M.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),F=F.merge($),G=G.merge($.append("line").attr("stroke","currentColor").attr(m+"2",p*o)),B=B.merge($.append("text").attr("fill","currentColor").attr(m,p*A).attr("dy",e===exe?"0em":e===Eot?"0.71em":"0.32em")),w!==P&&(M=M.transition(w),F=F.transition(w),G=G.transition(w),B=B.transition(w),U=U.transition(w).attr("opacity",cyn).attr("transform",function(Z){return isFinite(Z=L(Z))?b(Z+f):this.getAttribute("transform")}),$.attr("opacity",cyn).attr("transform",function(Z){var z=this.parentNode.__axis;return b((z&&isFinite(z=z(Z))?z:L(Z))+f)})),U.remove(),M.attr("d",e===V_e||e===htt?u?"M"+p*u+","+I+"H"+f+"V"+N+"H"+p*u:"M"+f+","+I+"V"+N:u?"M"+I+","+p*u+"V"+f+"H"+N+"V"+p*u:"M"+I+","+f+"H"+N),F.attr("opacity",1).attr("transform",function(Z){return b(L(Z)+f)}),G.attr(m+"2",p*o),B.attr(m,p*A).text(C),P.filter(wai).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===htt?"start":e===V_e?"end":"middle"),P.each(function(){this.__axis=L})}return _.scale=function(w){return arguments.length?(t=w,_):t},_.ticks=function(){return r=Array.from(arguments),_},_.tickArguments=function(w){return arguments.length?(r=w==null?[]:Array.from(w),_):r.slice()},_.tickValues=function(w){return arguments.length?(a=w==null?null:Array.from(w),_):a&&a.slice()},_.tickFormat=function(w){return arguments.length?(s=w,_):s},_.tickSize=function(w){return arguments.length?(o=u=+w,_):o},_.tickSizeInner=function(w){return arguments.length?(o=+w,_):o},_.tickSizeOuter=function(w){return arguments.length?(u=+w,_):u},_.tickPadding=function(w){return arguments.length?(h=+w,_):h},_.offset=function(w){return arguments.length?(f=+w,_):f},_}function RLn(e){return kLn(exe,e)}function ILn(e){return kLn(Eot,e)}var Eai={value:()=>{}};function NLn(){for(var e=0,t=arguments.length,r={},a;e=0&&(a=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}txe.prototype=NLn.prototype={constructor:txe,on:function(e,t){var r=this._,a=xai(e+"",r),s,o=-1,u=a.length;if(arguments.length<2){for(;++o0)for(var r=new Array(s),a=0,s,o;a=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),hyn.hasOwnProperty(t)?{space:hyn[t],local:e}:e}function Tai(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===xot&&t.documentElement.namespaceURI===xot?t.createElement(e):t.createElementNS(r,e)}}function Cai(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function OLn(e){var t=nAe(e);return(t.local?Cai:Tai)(t)}function Aai(){}function Y0t(e){return e==null?Aai:function(){return this.querySelector(e)}}function kai(e){typeof e!="function"&&(e=Y0t(e));for(var t=this._groups,r=t.length,a=new Array(r),s=0;s=N&&(N=I+1);!(P=A[N])&&++N=0;)(u=a[s])&&(o&&u.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(u,o),o=u);return this}function Zai(e){e||(e=Jai);function t(b,_){return b&&_?e(b.__data__,_.__data__):!b-!_}for(var r=this._groups,a=r.length,s=new Array(a),o=0;ot?1:e>=t?0:NaN}function esi(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function tsi(){return Array.from(this)}function nsi(){for(var e=this._groups,t=0,r=e.length;t1?this.each((t==null?fsi:typeof t=="function"?gsi:psi)(e,t,r??"")):Cj(this.node(),e)}function Cj(e,t){return e.style.getPropertyValue(t)||FLn(e).getComputedStyle(e,null).getPropertyValue(t)}function bsi(e){return function(){delete this[e]}}function ysi(e,t){return function(){this[e]=t}}function vsi(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function _si(e,t){return arguments.length>1?this.each((t==null?bsi:typeof t=="function"?vsi:ysi)(e,t)):this.node()[e]}function $Ln(e){return e.trim().split(/^|\s+/)}function j0t(e){return e.classList||new ULn(e)}function ULn(e){this._node=e,this._names=$Ln(e.getAttribute("class")||"")}ULn.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function zLn(e,t){for(var r=j0t(e),a=-1,s=t.length;++a=0&&(r=t.slice(a+1),t=t.slice(0,a)),{type:t,name:r}})}function Wsi(e){return function(){var t=this.__on;if(t){for(var r=0,a=-1,s=t.length,o;r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Y_e(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Y_e(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=roi.exec(e))?new wb(t[1],t[2],t[3],1):(t=ioi.exec(e))?new wb(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=aoi.exec(e))?Y_e(t[1],t[2],t[3],t[4]):(t=soi.exec(e))?Y_e(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ooi.exec(e))?yyn(t[1],t[2]/100,t[3]/100,1):(t=loi.exec(e))?yyn(t[1],t[2]/100,t[3]/100,t[4]):dyn.hasOwnProperty(e)?gyn(dyn[e]):e==="transparent"?new wb(NaN,NaN,NaN,0):null}function gyn(e){return new wb(e>>16&255,e>>8&255,e&255,1)}function Y_e(e,t,r,a){return a<=0&&(e=t=r=NaN),new wb(e,t,r,a)}function VLn(e){return e instanceof x$||(e=OF(e)),e?(e=e.rgb(),new wb(e.r,e.g,e.b,e.opacity)):new wb}function Sot(e,t,r,a){return arguments.length===1?VLn(e):new wb(e,t,r,a??1)}function wb(e,t,r,a){this.r=+e,this.g=+t,this.b=+r,this.opacity=+a}ace(wb,Sot,rAe(x$,{brighter(e){return e=e==null?h4e:Math.pow(h4e,e),new wb(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?doe:Math.pow(doe,e),new wb(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new wb(fF(this.r),fF(this.g),fF(this.b),d4e(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:myn,formatHex:myn,formatHex8:hoi,formatRgb:byn,toString:byn}));function myn(){return`#${ZB(this.r)}${ZB(this.g)}${ZB(this.b)}`}function hoi(){return`#${ZB(this.r)}${ZB(this.g)}${ZB(this.b)}${ZB((isNaN(this.opacity)?1:this.opacity)*255)}`}function byn(){const e=d4e(this.opacity);return`${e===1?"rgb(":"rgba("}${fF(this.r)}, ${fF(this.g)}, ${fF(this.b)}${e===1?")":`, ${e})`}`}function d4e(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function fF(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ZB(e){return e=fF(e),(e<16?"0":"")+e.toString(16)}function yyn(e,t,r,a){return a<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new B3(e,t,r,a)}function YLn(e){if(e instanceof B3)return new B3(e.h,e.s,e.l,e.opacity);if(e instanceof x$||(e=OF(e)),!e)return new B3;if(e instanceof B3)return e;e=e.rgb();var t=e.r/255,r=e.g/255,a=e.b/255,s=Math.min(t,r,a),o=Math.max(t,r,a),u=NaN,h=o-s,f=(o+s)/2;return h?(t===o?u=(r-a)/h+(r0&&f<1?0:u,new B3(u,h,f,e.opacity)}function doi(e,t,r,a){return arguments.length===1?YLn(e):new B3(e,t,r,a??1)}function B3(e,t,r,a){this.h=+e,this.s=+t,this.l=+r,this.opacity=+a}ace(B3,doi,rAe(x$,{brighter(e){return e=e==null?h4e:Math.pow(h4e,e),new B3(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?doe:Math.pow(doe,e),new B3(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*t,s=2*r-a;return new wb(dtt(e>=240?e-240:e+120,s,a),dtt(e,s,a),dtt(e<120?e+240:e-120,s,a),this.opacity)},clamp(){return new B3(vyn(this.h),j_e(this.s),j_e(this.l),d4e(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=d4e(this.opacity);return`${e===1?"hsl(":"hsla("}${vyn(this.h)}, ${j_e(this.s)*100}%, ${j_e(this.l)*100}%${e===1?")":`, ${e})`}`}}));function vyn(e){return e=(e||0)%360,e<0?e+360:e}function j_e(e){return Math.max(0,Math.min(1,e||0))}function dtt(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const foi=Math.PI/180,poi=180/Math.PI,f4e=18,jLn=.96422,WLn=1,KLn=.82521,XLn=4/29,KV=6/29,QLn=3*KV*KV,goi=KV*KV*KV;function ZLn(e){if(e instanceof lA)return new lA(e.l,e.a,e.b,e.opacity);if(e instanceof T7)return JLn(e);e instanceof wb||(e=VLn(e));var t=mtt(e.r),r=mtt(e.g),a=mtt(e.b),s=ftt((.2225045*t+.7168786*r+.0606169*a)/WLn),o,u;return t===r&&r===a?o=u=s:(o=ftt((.4360747*t+.3850649*r+.1430804*a)/jLn),u=ftt((.0139322*t+.0971045*r+.7141733*a)/KLn)),new lA(116*s-16,500*(o-s),200*(s-u),e.opacity)}function moi(e,t,r,a){return arguments.length===1?ZLn(e):new lA(e,t,r,a??1)}function lA(e,t,r,a){this.l=+e,this.a=+t,this.b=+r,this.opacity=+a}ace(lA,moi,rAe(x$,{brighter(e){return new lA(this.l+f4e*(e??1),this.a,this.b,this.opacity)},darker(e){return new lA(this.l-f4e*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=jLn*ptt(t),e=WLn*ptt(e),r=KLn*ptt(r),new wb(gtt(3.1338561*t-1.6168667*e-.4906146*r),gtt(-.9787684*t+1.9161415*e+.033454*r),gtt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function ftt(e){return e>goi?Math.pow(e,1/3):e/QLn+XLn}function ptt(e){return e>KV?e*e*e:QLn*(e-XLn)}function gtt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function mtt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function boi(e){if(e instanceof T7)return new T7(e.h,e.c,e.l,e.opacity);if(e instanceof lA||(e=ZLn(e)),e.a===0&&e.b===0)return new T7(NaN,0()=>e;function eDn(e,t){return function(r){return e+r*t}}function yoi(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(a){return Math.pow(e+a*t,r)}}function voi(e,t){var r=t-e;return r?eDn(e,r>180||r<-180?r-360*Math.round(r/360):r):iAe(isNaN(e)?t:e)}function _oi(e){return(e=+e)==1?lse:function(t,r){return r-t?yoi(t,r,e):iAe(isNaN(t)?r:t)}}function lse(e,t){var r=t-e;return r?eDn(e,r):iAe(isNaN(e)?t:e)}const p4e=function e(t){var r=_oi(t);function a(s,o){var u=r((s=Sot(s)).r,(o=Sot(o)).r),h=r(s.g,o.g),f=r(s.b,o.b),p=lse(s.opacity,o.opacity);return function(m){return s.r=u(m),s.g=h(m),s.b=f(m),s.opacity=p(m),s+""}}return a.gamma=e,a}(1);function woi(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,a=t.slice(),s;return function(o){for(s=0;sr&&(o=t.slice(r,o),h[u]?h[u]+=o:h[++u]=o),(a=a[0])===(s=s[0])?h[u]?h[u]+=s:h[++u]=s:(h[++u]=null,f.push({i:u,x:D3(a,s)})),r=btt.lastIndex;return r180?m+=360:m-p>180&&(p+=360),_.push({i:b.push(s(b)+"rotate(",null,a)-2,x:D3(p,m)})):m&&b.push(s(b)+"rotate("+m+a)}function h(p,m,b,_){p!==m?_.push({i:b.push(s(b)+"skewX(",null,a)-2,x:D3(p,m)}):m&&b.push(s(b)+"skewX("+m+a)}function f(p,m,b,_,w,S){if(p!==b||m!==_){var C=w.push(s(w)+"scale(",null,",",null,")");S.push({i:C-4,x:D3(p,b)},{i:C-2,x:D3(m,_)})}else(b!==1||_!==1)&&w.push(s(w)+"scale("+b+","+_+")")}return function(p,m){var b=[],_=[];return p=e(p),m=e(m),o(p.translateX,p.translateY,m.translateX,m.translateY,b,_),u(p.rotate,m.rotate,b,_),h(p.skewX,m.skewX,b,_),f(p.scaleX,p.scaleY,m.scaleX,m.scaleY,b,_),p=m=null,function(w){for(var S=-1,C=_.length,A;++S=0&&e._call.call(void 0,t),e=e._next;--Aj}function wyn(){LF=(m4e=poe.now())+aAe,Aj=Oie=0;try{Moi()}finally{Aj=0,Boi(),LF=0}}function Poi(){var e=poe.now(),t=e-m4e;t>aDn&&(aAe-=t,m4e=e)}function Boi(){for(var e,t=g4e,r,a=1/0;t;)t._call?(a>t._time&&(a=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:g4e=r);Lie=e,kot(a)}function kot(e){if(!Aj){Oie&&(Oie=clearTimeout(Oie));var t=e-LF;t>24?(e<1/0&&(Oie=setTimeout(wyn,e-poe.now()-aAe)),Lre&&(Lre=clearInterval(Lre))):(Lre||(m4e=poe.now(),Lre=setInterval(Poi,aDn)),Aj=1,sDn(wyn))}}function Eyn(e,t,r){var a=new b4e;return t=t==null?0:+t,a.restart(s=>{a.stop(),e(s+t)},t,r),a}var Foi=NLn("start","end","cancel","interrupt"),$oi=[],lDn=0,xyn=1,Rot=2,nxe=3,Syn=4,Iot=5,rxe=6;function sAe(e,t,r,a,s,o){var u=e.__transition;if(!u)e.__transition={};else if(r in u)return;Uoi(e,r,{name:t,index:a,group:s,on:Foi,tween:$oi,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:lDn})}function Q0t(e,t){var r=bT(e,t);if(r.state>lDn)throw new Error("too late; already scheduled");return r}function NA(e,t){var r=bT(e,t);if(r.state>nxe)throw new Error("too late; already running");return r}function bT(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Uoi(e,t,r){var a=e.__transition,s;a[t]=r,r.timer=oDn(o,0,r.time);function o(p){r.state=xyn,r.timer.restart(u,r.delay,r.time),r.delay<=p&&u(p-r.delay)}function u(p){var m,b,_,w;if(r.state!==xyn)return f();for(m in a)if(w=a[m],w.name===r.name){if(w.state===nxe)return Eyn(u);w.state===Syn?(w.state=rxe,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete a[m]):+mRot&&a.state=0&&(t=t.slice(0,r)),!t||t==="start"})}function bli(e,t,r){var a,s,o=mli(t)?Q0t:NA;return function(){var u=o(this,e),h=u.on;h!==a&&(s=(a=h).copy()).on(t,r),u.on=s}}function yli(e,t){var r=this._id;return arguments.length<2?bT(this.node(),r).on.on(e):this.each(bli(r,e,t))}function vli(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function _li(){return this.on("end.remove",vli(this._id))}function wli(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Y0t(e));for(var a=this._groups,s=a.length,o=new Array(s),u=0;u=0))throw new Error(`invalid digits: ${e}`);if(t>15)return dDn;const r=10**t;return function(a){this._+=a[0];for(let s=1,o=a.length;sAB)if(!(Math.abs(b*f-p*m)>AB)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let w=a-u,S=s-h,C=f*f+p*p,A=w*w+S*S,k=Math.sqrt(C),I=Math.sqrt(_),N=o*Math.tan((Not-Math.acos((C+_-A)/(2*k*I)))/2),L=N/I,P=N/k;Math.abs(L-1)>AB&&this._append`L${t+L*m},${r+L*b}`,this._append`A${o},${o},0,0,${+(b*w>m*S)},${this._x1=t+P*f},${this._y1=r+P*p}`}}arc(t,r,a,s,o,u){if(t=+t,r=+r,a=+a,u=!!u,a<0)throw new Error(`negative radius: ${a}`);let h=a*Math.cos(s),f=a*Math.sin(s),p=t+h,m=r+f,b=1^u,_=u?s-o:o-s;this._x1===null?this._append`M${p},${m}`:(Math.abs(this._x1-p)>AB||Math.abs(this._y1-m)>AB)&&this._append`L${p},${m}`,a&&(_<0&&(_=_%Oot+Oot),_>Yli?this._append`A${a},${a},0,1,${b},${t-h},${r-f}A${a},${a},0,1,${b},${this._x1=p},${this._y1=m}`:_>AB&&this._append`A${a},${a},0,${+(_>=Not)},${b},${this._x1=t+a*Math.cos(o)},${this._y1=r+a*Math.sin(o)}`)}rect(t,r,a,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${a=+a}v${+s}h${-a}Z`}toString(){return this._}};function Kli(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}function Xli(e,t){return fetch(e,t).then(Kli)}function Qli(e){return(t,r)=>Xli(t,r).then(a=>new DOMParser().parseFromString(a,e))}var Zli=Qli("image/svg+xml");function Jli(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function y4e(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,a=e.slice(0,r);return[a.length>1?a[0]+a.slice(2):a,+e.slice(r+1)]}function kj(e){return e=y4e(Math.abs(e)),e?e[1]:NaN}function eci(e,t){return function(r,a){for(var s=r.length,o=[],u=0,h=e[0],f=0;s>0&&h>0&&(f+h+1>a&&(h=Math.max(1,a-f)),o.push(r.substring(s-=h,s+h)),!((f+=h+1)>a));)h=e[u=(u+1)%e.length];return o.reverse().join(t)}}function tci(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var nci=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function v4e(e){if(!(t=nci.exec(e)))throw new Error("invalid format: "+e);var t;return new J0t({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}v4e.prototype=J0t.prototype;function J0t(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}J0t.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function rci(e){e:for(var t=e.length,r=1,a=-1,s;r0&&(a=0);break}return a>0?e.slice(0,a)+e.slice(s+1):e}var fDn;function ici(e,t){var r=y4e(e,t);if(!r)return e+"";var a=r[0],s=r[1],o=s-(fDn=Math.max(-8,Math.min(8,Math.floor(s/3)))*3)+1,u=a.length;return o===u?a:o>u?a+new Array(o-u+1).join("0"):o>0?a.slice(0,o)+"."+a.slice(o):"0."+new Array(1-o).join("0")+y4e(e,Math.max(0,t+o-1))[0]}function Tyn(e,t){var r=y4e(e,t);if(!r)return e+"";var a=r[0],s=r[1];return s<0?"0."+new Array(-s).join("0")+a:a.length>s+1?a.slice(0,s+1)+"."+a.slice(s+1):a+new Array(s-a.length+2).join("0")}const Cyn={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Jli,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Tyn(e*100,t),r:Tyn,s:ici,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Ayn(e){return e}var kyn=Array.prototype.map,Ryn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function aci(e){var t=e.grouping===void 0||e.thousands===void 0?Ayn:eci(kyn.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",a=e.currency===void 0?"":e.currency[1]+"",s=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?Ayn:tci(kyn.call(e.numerals,String)),u=e.percent===void 0?"%":e.percent+"",h=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function p(b){b=v4e(b);var _=b.fill,w=b.align,S=b.sign,C=b.symbol,A=b.zero,k=b.width,I=b.comma,N=b.precision,L=b.trim,P=b.type;P==="n"?(I=!0,P="g"):Cyn[P]||(N===void 0&&(N=12),L=!0,P="g"),(A||_==="0"&&w==="=")&&(A=!0,_="0",w="=");var M=C==="$"?r:C==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",F=C==="$"?a:/[%p]/.test(P)?u:"",U=Cyn[P],$=/[defgprs%]/.test(P);N=N===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,N)):Math.max(0,Math.min(20,N));function G(B){var Z=M,z=F,Y,W,Q;if(P==="c")z=U(B)+z,B="";else{B=+B;var V=B<0||1/B<0;if(B=isNaN(B)?f:U(Math.abs(B),N),L&&(B=rci(B)),V&&+B==0&&S!=="+"&&(V=!1),Z=(V?S==="("?S:h:S==="-"||S==="("?"":S)+Z,z=(P==="s"?Ryn[8+fDn/3]:"")+z+(V&&S==="("?")":""),$){for(Y=-1,W=B.length;++YQ||Q>57){z=(Q===46?s+B.slice(Y+1):B.slice(Y))+z,B=B.slice(0,Y);break}}}I&&!A&&(B=t(B,1/0));var j=Z.length+B.length+z.length,ee=j>1)+Z+B+z+ee.slice(j);break;default:B=ee+Z+B+z;break}return o(B)}return G.toString=function(){return b+""},G}function m(b,_){var w=p((b=v4e(b),b.type="f",b)),S=Math.max(-8,Math.min(8,Math.floor(kj(_)/3)))*3,C=Math.pow(10,-S),A=Ryn[8+S/3];return function(k){return w(C*k)+A}}return{format:p,formatPrefix:m}}var K_e,PB,pDn;sci({thousands:",",grouping:[3],currency:["$",""]});function sci(e){return K_e=aci(e),PB=K_e.format,pDn=K_e.formatPrefix,K_e}function oci(e){return Math.max(0,-kj(Math.abs(e)))}function lci(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(kj(t)/3)))*3-kj(Math.abs(e)))}function cci(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,kj(t)-kj(e))+1}function uci(e){var t=0,r=e.children,a=r&&r.length;if(!a)t=1;else for(;--a>=0;)t+=r[a].value;e.value=t}function hci(){return this.eachAfter(uci)}function dci(e,t){let r=-1;for(const a of this)e.call(t,a,++r,this);return this}function fci(e,t){for(var r=this,a=[r],s,o,u=-1;r=a.pop();)if(e.call(t,r,++u,this),s=r.children)for(o=s.length-1;o>=0;--o)a.push(s[o]);return this}function pci(e,t){for(var r=this,a=[r],s=[],o,u,h,f=-1;r=a.pop();)if(s.push(r),o=r.children)for(u=0,h=o.length;u=0;)r+=a[s].value;t.value=r})}function bci(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function yci(e){for(var t=this,r=vci(t,e),a=[t];t!==r;)t=t.parent,a.push(t);for(var s=a.length;e!==r;)a.splice(s,0,e),e=e.parent;return a}function vci(e,t){if(e===t)return e;var r=e.ancestors(),a=t.ancestors(),s=null;for(e=r.pop(),t=a.pop();e===t;)s=e,e=r.pop(),t=a.pop();return s}function _ci(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function wci(){return Array.from(this)}function Eci(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function xci(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function*Sci(){var e=this,t,r=[e],a,s,o;do for(t=r.reverse(),r=[];e=t.pop();)if(yield e,a=e.children)for(s=0,o=a.length;s=0;--h)s.push(o=u[h]=new _4e(u[h])),o.parent=a,o.depth=a.depth+1;return r.eachBefore(Rci)}function Tci(){return e1t(this).eachBefore(kci)}function Cci(e){return e.children}function Aci(e){return Array.isArray(e)?e[1]:null}function kci(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Rci(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function _4e(e){this.data=e,this.depth=this.height=0,this.parent=null}_4e.prototype=e1t.prototype={constructor:_4e,count:hci,each:dci,eachAfter:pci,eachBefore:fci,find:gci,sum:mci,sort:bci,path:yci,ancestors:_ci,descendants:wci,leaves:Eci,links:xci,copy:Tci,[Symbol.iterator]:Sci};function Ici(e){if(typeof e!="function")throw new Error;return e}function Dre(){return 0}function Mre(e){return function(){return e}}function Nci(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Oci(e,t,r,a,s){for(var o=e.children,u,h=-1,f=o.length,p=e.value&&(a-t)/e.value;++hI&&(I=p),M=A*A*P,N=Math.max(I/M,M/k),N>L){A-=p;break}L=N}u.push(f={value:A,dice:w1?a:1)},r}(Dci);function Bci(){var e=Pci,t=!1,r=1,a=1,s=[0],o=Dre,u=Dre,h=Dre,f=Dre,p=Dre;function m(_){return _.x0=_.y0=0,_.x1=r,_.y1=a,_.eachBefore(b),s=[0],t&&_.eachBefore(Nci),_}function b(_){var w=s[_.depth],S=_.x0+w,C=_.y0+w,A=_.x1-w,k=_.y1-w;At&&(r=e,e=t,t=r),function(a){return Math.max(e,Math.min(t,a))}}function zci(e,t,r){var a=e[0],s=e[1],o=t[0],u=t[1];return s2?Gci:zci,f=p=null,b}function b(_){return _==null||isNaN(_=+_)?o:(f||(f=h(e.map(a),t,r)))(a(u(_)))}return b.invert=function(_){return u(s((p||(p=h(t,e.map(a),D3)))(_)))},b.domain=function(_){return arguments.length?(e=Array.from(_,$ci),m()):e.slice()},b.range=function(_){return arguments.length?(t=Array.from(_),m()):t.slice()},b.rangeRound=function(_){return t=Array.from(_),r=koi,m()},b.clamp=function(_){return arguments.length?(u=_?!0:kV,m()):u!==kV},b.interpolate=function(_){return arguments.length?(r=_,m()):r},b.unknown=function(_){return arguments.length?(o=_,b):o},function(_,w){return a=_,s=w,m()}}function mDn(){return qci()(kV,kV)}function Hci(e,t,r,a){var s=wot(e,t,r),o;switch(a=v4e(a??",f"),a.type){case"s":{var u=Math.max(Math.abs(e),Math.abs(t));return a.precision==null&&!isNaN(o=lci(s,u))&&(a.precision=o),pDn(a,u)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(o=cci(s,Math.max(Math.abs(e),Math.abs(t))))&&(a.precision=o-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(o=oci(s))&&(a.precision=o-(a.type==="%")*2);break}}return PB(a)}function Vci(e){var t=e.domain;return e.ticks=function(r){var a=t();return pai(a[0],a[a.length-1],r??10)},e.tickFormat=function(r,a){var s=t();return Hci(s[0],s[s.length-1],r??10,a)},e.nice=function(r){r==null&&(r=10);var a=t(),s=0,o=a.length-1,u=a[s],h=a[o],f,p,m=10;for(h0;){if(p=_ot(u,h,r),p===f)return a[s]=u,a[o]=h,t(a);if(p>0)u=Math.floor(u/p)*p,h=Math.ceil(h/p)*p;else if(p<0)u=Math.ceil(u*p)/p,h=Math.floor(h*p)/p;else break;f=p}return e},e}function sT(){var e=mDn();return e.copy=function(){return gDn(e,sT())},oAe.apply(e,arguments),Vci(e)}function Yci(e,t){e=e.slice();var r=0,a=e.length-1,s=e[r],o=e[a],u;return o(e(o=new Date(+o)),o),s.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),s.round=o=>{const u=s(o),h=s.ceil(o);return o-u(t(o=new Date(+o),u==null?1:Math.floor(u)),o),s.range=(o,u,h)=>{const f=[];if(o=s.ceil(o),h=h==null?1:Math.floor(h),!(o0))return f;let p;do f.push(p=new Date(+o)),t(o,h),e(o);while(pFp(u=>{if(u>=u)for(;e(u),!o(u);)u.setTime(u-1)},(u,h)=>{if(u>=u)if(h<0)for(;++h<=0;)for(;t(u,-1),!o(u););else for(;--h>=0;)for(;t(u,1),!o(u););}),r&&(s.count=(o,u)=>(ytt.setTime(+o),vtt.setTime(+u),e(ytt),e(vtt),Math.floor(r(ytt,vtt))),s.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?s.filter(a?u=>a(u)%o===0:u=>s.count(0,u)%o===0):s)),s}const VO=Fp(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);VO.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Fp(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):VO);VO.range;const C7=1e3,aS=C7*60,A7=aS*60,eR=A7*24,t1t=eR*7,Oyn=eR*30,_tt=eR*365,WC=Fp(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*C7)},(e,t)=>(t-e)/C7,e=>e.getUTCSeconds());WC.range;const DF=Fp(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*C7)},(e,t)=>{e.setTime(+e+t*aS)},(e,t)=>(t-e)/aS,e=>e.getMinutes());DF.range;const jci=Fp(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*aS)},(e,t)=>(t-e)/aS,e=>e.getUTCMinutes());jci.range;const MF=Fp(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*C7-e.getMinutes()*aS)},(e,t)=>{e.setTime(+e+t*A7)},(e,t)=>(t-e)/A7,e=>e.getHours());MF.range;const Wci=Fp(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*A7)},(e,t)=>(t-e)/A7,e=>e.getUTCHours());Wci.range;const tR=Fp(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*aS)/eR,e=>e.getDate()-1);tR.range;const n1t=Fp(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/eR,e=>e.getUTCDate()-1);n1t.range;const Kci=Fp(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/eR,e=>Math.floor(e/eR));Kci.range;function S$(e){return Fp(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*aS)/t1t)}const MW=S$(0),Rj=S$(1),r1t=S$(2),i1t=S$(3),YO=S$(4),a1t=S$(5),s1t=S$(6);MW.range;Rj.range;r1t.range;i1t.range;YO.range;a1t.range;s1t.range;function T$(e){return Fp(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/t1t)}const bDn=T$(0),w4e=T$(1),Xci=T$(2),Qci=T$(3),Ij=T$(4),Zci=T$(5),Jci=T$(6);bDn.range;w4e.range;Xci.range;Qci.range;Ij.range;Zci.range;Jci.range;const PF=Fp(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());PF.range;const eui=Fp(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());eui.range;const nR=Fp(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());nR.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Fp(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});nR.range;const BF=Fp(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());BF.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Fp(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});BF.range;function tui(e,t,r,a,s,o){const u=[[WC,1,C7],[WC,5,5*C7],[WC,15,15*C7],[WC,30,30*C7],[o,1,aS],[o,5,5*aS],[o,15,15*aS],[o,30,30*aS],[s,1,A7],[s,3,3*A7],[s,6,6*A7],[s,12,12*A7],[a,1,eR],[a,2,2*eR],[r,1,t1t],[t,1,Oyn],[t,3,3*Oyn],[e,1,_tt]];function h(p,m,b){const _=mA).right(u,_);if(w===u.length)return e.every(wot(p/_tt,m/_tt,b));if(w===0)return VO.every(Math.max(wot(p,m,b),1));const[S,C]=u[_/u[w-1][2]53)return null;"w"in we||(we.w=1),"Z"in we?(Ie=Ett(Pre(we.y,0,1)),Le=Ie.getUTCDay(),Ie=Le>4||Le===0?w4e.ceil(Ie):w4e(Ie),Ie=n1t.offset(Ie,(we.V-1)*7),we.y=Ie.getUTCFullYear(),we.m=Ie.getUTCMonth(),we.d=Ie.getUTCDate()+(we.w+6)%7):(Ie=wtt(Pre(we.y,0,1)),Le=Ie.getDay(),Ie=Le>4||Le===0?Rj.ceil(Ie):Rj(Ie),Ie=tR.offset(Ie,(we.V-1)*7),we.y=Ie.getFullYear(),we.m=Ie.getMonth(),we.d=Ie.getDate()+(we.w+6)%7)}else("W"in we||"U"in we)&&("w"in we||(we.w="u"in we?we.u%7:"W"in we?1:0),Le="Z"in we?Ett(Pre(we.y,0,1)).getUTCDay():wtt(Pre(we.y,0,1)).getDay(),we.m=0,we.d="W"in we?(we.w+6)%7+we.W*7-(Le+5)%7:we.w+we.U*7-(Le+6)%7);return"Z"in we?(we.H+=we.Z/100|0,we.M+=we.Z%100,Ett(we)):wtt(we)}}function U(ye,Ee,he,we){for(var Ce=0,Ie=Ee.length,Le=he.length,Fe,Ve;Ce=Le)return-1;if(Fe=Ee.charCodeAt(Ce++),Fe===37){if(Fe=Ee.charAt(Ce++),Ve=P[Fe in Lyn?Ee.charAt(Ce++):Fe],!Ve||(we=Ve(ye,he,we))<0)return-1}else if(Fe!=he.charCodeAt(we++))return-1}return we}function $(ye,Ee,he){var we=p.exec(Ee.slice(he));return we?(ye.p=m.get(we[0].toLowerCase()),he+we[0].length):-1}function G(ye,Ee,he){var we=w.exec(Ee.slice(he));return we?(ye.w=S.get(we[0].toLowerCase()),he+we[0].length):-1}function B(ye,Ee,he){var we=b.exec(Ee.slice(he));return we?(ye.w=_.get(we[0].toLowerCase()),he+we[0].length):-1}function Z(ye,Ee,he){var we=k.exec(Ee.slice(he));return we?(ye.m=I.get(we[0].toLowerCase()),he+we[0].length):-1}function z(ye,Ee,he){var we=C.exec(Ee.slice(he));return we?(ye.m=A.get(we[0].toLowerCase()),he+we[0].length):-1}function Y(ye,Ee,he){return U(ye,t,Ee,he)}function W(ye,Ee,he){return U(ye,r,Ee,he)}function Q(ye,Ee,he){return U(ye,a,Ee,he)}function V(ye){return u[ye.getDay()]}function j(ye){return o[ye.getDay()]}function ee(ye){return f[ye.getMonth()]}function te(ye){return h[ye.getMonth()]}function ne(ye){return s[+(ye.getHours()>=12)]}function se(ye){return 1+~~(ye.getMonth()/3)}function ie(ye){return u[ye.getUTCDay()]}function ge(ye){return o[ye.getUTCDay()]}function ce(ye){return f[ye.getUTCMonth()]}function be(ye){return h[ye.getUTCMonth()]}function ve(ye){return s[+(ye.getUTCHours()>=12)]}function De(ye){return 1+~~(ye.getUTCMonth()/3)}return{format:function(ye){var Ee=M(ye+="",N);return Ee.toString=function(){return ye},Ee},parse:function(ye){var Ee=F(ye+="",!1);return Ee.toString=function(){return ye},Ee},utcFormat:function(ye){var Ee=M(ye+="",L);return Ee.toString=function(){return ye},Ee},utcParse:function(ye){var Ee=F(ye+="",!0);return Ee.toString=function(){return ye},Ee}}}var Lyn={"-":"",_:" ",0:"0"},Lg=/^\s*\d+/,aui=/^%/,sui=/[\\^$*+?|[\]().{}]/g;function fu(e,t,r){var a=e<0?"-":"",s=(a?-e:e)+"",o=s.length;return a+(o[t.toLowerCase(),r]))}function lui(e,t,r){var a=Lg.exec(t.slice(r,r+1));return a?(e.w=+a[0],r+a[0].length):-1}function cui(e,t,r){var a=Lg.exec(t.slice(r,r+1));return a?(e.u=+a[0],r+a[0].length):-1}function uui(e,t,r){var a=Lg.exec(t.slice(r,r+2));return a?(e.U=+a[0],r+a[0].length):-1}function hui(e,t,r){var a=Lg.exec(t.slice(r,r+2));return a?(e.V=+a[0],r+a[0].length):-1}function dui(e,t,r){var a=Lg.exec(t.slice(r,r+2));return a?(e.W=+a[0],r+a[0].length):-1}function Dyn(e,t,r){var a=Lg.exec(t.slice(r,r+4));return a?(e.y=+a[0],r+a[0].length):-1}function Myn(e,t,r){var a=Lg.exec(t.slice(r,r+2));return a?(e.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function fui(e,t,r){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return a?(e.Z=a[1]?0:-(a[2]+(a[3]||"00")),r+a[0].length):-1}function pui(e,t,r){var a=Lg.exec(t.slice(r,r+1));return a?(e.q=a[0]*3-3,r+a[0].length):-1}function gui(e,t,r){var a=Lg.exec(t.slice(r,r+2));return a?(e.m=a[0]-1,r+a[0].length):-1}function Pyn(e,t,r){var a=Lg.exec(t.slice(r,r+2));return a?(e.d=+a[0],r+a[0].length):-1}function mui(e,t,r){var a=Lg.exec(t.slice(r,r+3));return a?(e.m=0,e.d=+a[0],r+a[0].length):-1}function Byn(e,t,r){var a=Lg.exec(t.slice(r,r+2));return a?(e.H=+a[0],r+a[0].length):-1}function bui(e,t,r){var a=Lg.exec(t.slice(r,r+2));return a?(e.M=+a[0],r+a[0].length):-1}function yui(e,t,r){var a=Lg.exec(t.slice(r,r+2));return a?(e.S=+a[0],r+a[0].length):-1}function vui(e,t,r){var a=Lg.exec(t.slice(r,r+3));return a?(e.L=+a[0],r+a[0].length):-1}function _ui(e,t,r){var a=Lg.exec(t.slice(r,r+6));return a?(e.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function wui(e,t,r){var a=aui.exec(t.slice(r,r+1));return a?r+a[0].length:-1}function Eui(e,t,r){var a=Lg.exec(t.slice(r));return a?(e.Q=+a[0],r+a[0].length):-1}function xui(e,t,r){var a=Lg.exec(t.slice(r));return a?(e.s=+a[0],r+a[0].length):-1}function Fyn(e,t){return fu(e.getDate(),t,2)}function Sui(e,t){return fu(e.getHours(),t,2)}function Tui(e,t){return fu(e.getHours()%12||12,t,2)}function Cui(e,t){return fu(1+tR.count(nR(e),e),t,3)}function yDn(e,t){return fu(e.getMilliseconds(),t,3)}function Aui(e,t){return yDn(e,t)+"000"}function kui(e,t){return fu(e.getMonth()+1,t,2)}function Rui(e,t){return fu(e.getMinutes(),t,2)}function Iui(e,t){return fu(e.getSeconds(),t,2)}function Nui(e){var t=e.getDay();return t===0?7:t}function Oui(e,t){return fu(MW.count(nR(e)-1,e),t,2)}function vDn(e){var t=e.getDay();return t>=4||t===0?YO(e):YO.ceil(e)}function Lui(e,t){return e=vDn(e),fu(YO.count(nR(e),e)+(nR(e).getDay()===4),t,2)}function Dui(e){return e.getDay()}function Mui(e,t){return fu(Rj.count(nR(e)-1,e),t,2)}function Pui(e,t){return fu(e.getFullYear()%100,t,2)}function Bui(e,t){return e=vDn(e),fu(e.getFullYear()%100,t,2)}function Fui(e,t){return fu(e.getFullYear()%1e4,t,4)}function $ui(e,t){var r=e.getDay();return e=r>=4||r===0?YO(e):YO.ceil(e),fu(e.getFullYear()%1e4,t,4)}function Uui(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+fu(t/60|0,"0",2)+fu(t%60,"0",2)}function $yn(e,t){return fu(e.getUTCDate(),t,2)}function zui(e,t){return fu(e.getUTCHours(),t,2)}function Gui(e,t){return fu(e.getUTCHours()%12||12,t,2)}function qui(e,t){return fu(1+n1t.count(BF(e),e),t,3)}function _Dn(e,t){return fu(e.getUTCMilliseconds(),t,3)}function Hui(e,t){return _Dn(e,t)+"000"}function Vui(e,t){return fu(e.getUTCMonth()+1,t,2)}function Yui(e,t){return fu(e.getUTCMinutes(),t,2)}function jui(e,t){return fu(e.getUTCSeconds(),t,2)}function Wui(e){var t=e.getUTCDay();return t===0?7:t}function Kui(e,t){return fu(bDn.count(BF(e)-1,e),t,2)}function wDn(e){var t=e.getUTCDay();return t>=4||t===0?Ij(e):Ij.ceil(e)}function Xui(e,t){return e=wDn(e),fu(Ij.count(BF(e),e)+(BF(e).getUTCDay()===4),t,2)}function Qui(e){return e.getUTCDay()}function Zui(e,t){return fu(w4e.count(BF(e)-1,e),t,2)}function Jui(e,t){return fu(e.getUTCFullYear()%100,t,2)}function ehi(e,t){return e=wDn(e),fu(e.getUTCFullYear()%100,t,2)}function thi(e,t){return fu(e.getUTCFullYear()%1e4,t,4)}function nhi(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Ij(e):Ij.ceil(e),fu(e.getUTCFullYear()%1e4,t,4)}function rhi(){return"+0000"}function Uyn(){return"%"}function zyn(e){return+e}function Gyn(e){return Math.floor(+e/1e3)}var $H,Nj;ihi({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function ihi(e){return $H=iui(e),Nj=$H.format,$H.parse,$H.utcFormat,$H.utcParse,$H}function ahi(e){return new Date(e)}function shi(e){return e instanceof Date?+e:+new Date(+e)}function EDn(e,t,r,a,s,o,u,h,f,p){var m=mDn(),b=m.invert,_=m.domain,w=p(".%L"),S=p(":%S"),C=p("%I:%M"),A=p("%I %p"),k=p("%a %d"),I=p("%b %d"),N=p("%B"),L=p("%Y");function P(M){return(f(M)1?0:e<-1?moe:Math.acos(e)}function Hyn(e){return e>=1?E4e:e<=-1?-E4e:Math.asin(e)}function SDn(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const a=Math.floor(r);if(!(a>=0))throw new RangeError(`invalid digits: ${r}`);t=a}return e},()=>new Wli(t)}function uhi(e){return e.innerRadius}function hhi(e){return e.outerRadius}function dhi(e){return e.startAngle}function fhi(e){return e.endAngle}function phi(e){return e&&e.padAngle}function ghi(e,t,r,a,s,o,u,h){var f=r-e,p=a-t,m=u-s,b=h-o,_=b*f-m*p;if(!(_*_Y*Y+W*W&&(U=G,$=B),{cx:U,cy:$,x01:-m,y01:-b,x11:U*(s/P-1),y11:$*(s/P-1)}}function _S(){var e=uhi,t=hhi,r=j0(0),a=null,s=dhi,o=fhi,u=phi,h=null,f=SDn(p);function p(){var m,b,_=+e.apply(this,arguments),w=+t.apply(this,arguments),S=s.apply(this,arguments)-E4e,C=o.apply(this,arguments)-E4e,A=qyn(C-S),k=C>S;if(h||(h=m=f()),w<_&&(b=w,w=_,_=b),!(w>gb))h.moveTo(0,0);else if(A>ixe-gb)h.moveTo(w*pB(S),w*pC(S)),h.arc(0,0,w,S,C,!k),_>gb&&(h.moveTo(_*pB(C),_*pC(C)),h.arc(0,0,_,C,S,k));else{var I=S,N=C,L=S,P=C,M=A,F=A,U=u.apply(this,arguments)/2,$=U>gb&&(a?+a.apply(this,arguments):RV(_*_+w*w)),G=xtt(qyn(w-_)/2,+r.apply(this,arguments)),B=G,Z=G,z,Y;if($>gb){var W=Hyn($/_*pC(U)),Q=Hyn($/w*pC(U));(M-=W*2)>gb?(W*=k?1:-1,L+=W,P-=W):(M=0,L=P=(S+C)/2),(F-=Q*2)>gb?(Q*=k?1:-1,I+=Q,N-=Q):(F=0,I=N=(S+C)/2)}var V=w*pB(I),j=w*pC(I),ee=_*pB(P),te=_*pC(P);if(G>gb){var ne=w*pB(N),se=w*pC(N),ie=_*pB(L),ge=_*pC(L),ce;if(Agb?Z>gb?(z=X_e(ie,ge,V,j,w,Z,k),Y=X_e(ne,se,ee,te,w,Z,k),h.moveTo(z.cx+z.x01,z.cy+z.y01),Zgb)||!(M>gb)?h.lineTo(ee,te):B>gb?(z=X_e(ee,te,ne,se,_,-B,k),Y=X_e(V,j,ie,ge,_,-B,k),h.lineTo(z.cx+z.x01,z.cy+z.y01),Be?1:t>=e?0:NaN}function vhi(e){return e}function ADn(){var e=vhi,t=yhi,r=null,a=j0(0),s=j0(ixe),o=j0(0);function u(h){var f,p=(h=TDn(h)).length,m,b,_=0,w=new Array(p),S=new Array(p),C=+a.apply(this,arguments),A=Math.min(ixe,Math.max(-ixe,s.apply(this,arguments)-C)),k,I=Math.min(Math.abs(A)/p,o.apply(this,arguments)),N=I*(A<0?-1:1),L;for(f=0;f0&&(_+=L);for(t!=null?w.sort(function(P,M){return t(S[P],S[M])}):r!=null&&w.sort(function(P,M){return r(h[P],h[M])}),f=0,b=_?(A-p*N)/_:0;f0?L*b:0)+N,S[m]={data:h[m],index:f,value:L,startAngle:C,endAngle:k,padAngle:I};return S}return u.value=function(h){return arguments.length?(e=typeof h=="function"?h:j0(+h),u):e},u.sortValues=function(h){return arguments.length?(t=h,r=null,u):t},u.sort=function(h){return arguments.length?(r=h,t=null,u):r},u.startAngle=function(h){return arguments.length?(a=typeof h=="function"?h:j0(+h),u):a},u.endAngle=function(h){return arguments.length?(s=typeof h=="function"?h:j0(+h),u):s},u.padAngle=function(h){return arguments.length?(o=typeof h=="function"?h:j0(+h),u):o},u}class kDn{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function l1t(e){return new kDn(e,!0)}function c1t(e){return new kDn(e,!1)}function jO(){}function x4e(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function lAe(e){this._context=e}lAe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:x4e(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:x4e(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function j3(e){return new lAe(e)}function RDn(e){this._context=e}RDn.prototype={areaStart:jO,areaEnd:jO,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:x4e(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function IDn(e){return new RDn(e)}function NDn(e){this._context=e}NDn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,a=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 3:this._point=4;default:x4e(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ODn(e){return new NDn(e)}function LDn(e,t){this._basis=new lAe(e),this._beta=t}LDn.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var a=e[0],s=t[0],o=e[r]-a,u=t[r]-s,h=-1,f;++h<=r;)f=h/r,this._basis.point(this._beta*e[h]+(1-this._beta)*(a+f*o),this._beta*t[h]+(1-this._beta)*(s+f*u));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const DDn=function e(t){function r(a){return t===1?new lAe(a):new LDn(a,t)}return r.beta=function(a){return e(+a)},r}(.85);function S4e(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function u1t(e,t){this._context=e,this._k=(1-t)/6}u1t.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:S4e(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:S4e(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const h1t=function e(t){function r(a){return new u1t(a,t)}return r.tension=function(a){return e(+a)},r}(0);function d1t(e,t){this._context=e,this._k=(1-t)/6}d1t.prototype={areaStart:jO,areaEnd:jO,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:S4e(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const MDn=function e(t){function r(a){return new d1t(a,t)}return r.tension=function(a){return e(+a)},r}(0);function f1t(e,t){this._context=e,this._k=(1-t)/6}f1t.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:S4e(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const PDn=function e(t){function r(a){return new f1t(a,t)}return r.tension=function(a){return e(+a)},r}(0);function p1t(e,t,r){var a=e._x1,s=e._y1,o=e._x2,u=e._y2;if(e._l01_a>gb){var h=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,f=3*e._l01_a*(e._l01_a+e._l12_a);a=(a*h-e._x0*e._l12_2a+e._x2*e._l01_2a)/f,s=(s*h-e._y0*e._l12_2a+e._y2*e._l01_2a)/f}if(e._l23_a>gb){var p=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,m=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*p+e._x1*e._l23_2a-t*e._l12_2a)/m,u=(u*p+e._y1*e._l23_2a-r*e._l12_2a)/m}e._context.bezierCurveTo(a,s,o,u,e._x2,e._y2)}function BDn(e,t){this._context=e,this._alpha=t}BDn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,a=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:p1t(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const g1t=function e(t){function r(a){return t?new BDn(a,t):new u1t(a,0)}return r.alpha=function(a){return e(+a)},r}(.5);function FDn(e,t){this._context=e,this._alpha=t}FDn.prototype={areaStart:jO,areaEnd:jO,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,a=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:p1t(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const $Dn=function e(t){function r(a){return t?new FDn(a,t):new d1t(a,0)}return r.alpha=function(a){return e(+a)},r}(.5);function UDn(e,t){this._context=e,this._alpha=t}UDn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,a=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+a*a,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:p1t(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const zDn=function e(t){function r(a){return t?new UDn(a,t):new f1t(a,0)}return r.alpha=function(a){return e(+a)},r}(.5);function GDn(e){this._context=e}GDn.prototype={areaStart:jO,areaEnd:jO,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function qDn(e){return new GDn(e)}function Vyn(e){return e<0?-1:1}function Yyn(e,t,r){var a=e._x1-e._x0,s=t-e._x1,o=(e._y1-e._y0)/(a||s<0&&-0),u=(r-e._y1)/(s||a<0&&-0),h=(o*s+u*a)/(a+s);return(Vyn(o)+Vyn(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(h))||0}function jyn(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Stt(e,t,r){var a=e._x0,s=e._y0,o=e._x1,u=e._y1,h=(o-a)/3;e._context.bezierCurveTo(a+h,s+h*t,o-h,u-h*r,o,u)}function T4e(e){this._context=e}T4e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Stt(this,this._t0,jyn(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Stt(this,jyn(this,r=Yyn(this,e,t)),r);break;default:Stt(this,this._t0,r=Yyn(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function HDn(e){this._context=new VDn(e)}(HDn.prototype=Object.create(T4e.prototype)).point=function(e,t){T4e.prototype.point.call(this,t,e)};function VDn(e){this._context=e}VDn.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,a,s,o){this._context.bezierCurveTo(t,e,a,r,o,s)}};function m1t(e){return new T4e(e)}function b1t(e){return new HDn(e)}function YDn(e){this._context=e}YDn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var a=Wyn(e),s=Wyn(t),o=0,u=1;u=0;--t)s[t]=(u[t]-s[t+1])/o[t];for(o[r-1]=(e[r]+s[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function v1t(e){return new cAe(e,.5)}function _1t(e){return new cAe(e,0)}function w1t(e){return new cAe(e,1)}function Die(e,t,r){this.k=e,this.x=t,this.y=r}Die.prototype={constructor:Die,scale:function(e){return e===1?this:new Die(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Die(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Die.prototype;var bR=X(e=>{var s;const{securityLevel:t}=nn();let r=gn("body");if(t==="sandbox"){const u=((s=gn(`#i${e}`).node())==null?void 0:s.contentDocument)??document;r=gn(u.body)}return r.select(`#${e}`)},"selectSvgElement");function E1t(e){return typeof e>"u"||e===null}X(E1t,"isNothing");function jDn(e){return typeof e=="object"&&e!==null}X(jDn,"isObject");function WDn(e){return Array.isArray(e)?e:E1t(e)?[]:[e]}X(WDn,"toArray");function KDn(e,t){var r,a,s,o;if(t)for(o=Object.keys(t),r=0,a=o.length;rh&&(o=" ... ",t=a-h+o.length),r-a>h&&(u=" ...",r=a+h-u.length),{str:o+e.slice(t,r).replace(/\t/g,"→")+u,pos:a-t+o.length}}X(axe,"getLine");function sxe(e,t){return Cp.repeat(" ",t-e.length)+e}X(sxe,"padStart");function ZDn(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,a=[0],s=[],o,u=-1;o=r.exec(e.buffer);)s.push(o.index),a.push(o.index+o[0].length),e.position<=o.index&&u<0&&(u=a.length-2);u<0&&(u=a.length-1);var h="",f,p,m=Math.min(e.line+t.linesAfter,s.length).toString().length,b=t.maxLength-(t.indent+m+3);for(f=1;f<=t.linesBefore&&!(u-f<0);f++)p=axe(e.buffer,a[u-f],s[u-f],e.position-(a[u]-a[u-f]),b),h=Cp.repeat(" ",t.indent)+sxe((e.line-f+1).toString(),m)+" | "+p.str+` `+h;for(p=axe(e.buffer,a[u],s[u],e.position,b),h+=Cp.repeat(" ",t.indent)+sxe((e.line+1).toString(),m)+" | "+p.str+` `,h+=Cp.repeat("-",t.indent+m+3+p.pos)+`^ `,f=1;f<=t.linesAfter&&!(u+f>=s.length);f++)p=axe(e.buffer,a[u+f],s[u+f],e.position-(a[u]-a[u+f]),b),h+=Cp.repeat(" ",t.indent)+sxe((e.line+f+1).toString(),m)+" | "+p.str+` `;return h.replace(/\n$/,"")}X(ZDn,"makeSnippet");var Chi=ZDn,Ahi=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],khi=["scalar","sequence","mapping"];function JDn(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(a){t[String(a)]=r})}),t}X(JDn,"compileStyleAliases");function eMn(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Ahi.indexOf(r)===-1)throw new z2('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=JDn(t.styleAliases||null),khi.indexOf(this.kind)===-1)throw new z2('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}X(eMn,"Type$1");var Sb=eMn;function Dot(e,t){var r=[];return e[t].forEach(function(a){var s=r.length;r.forEach(function(o,u){o.tag===a.tag&&o.kind===a.kind&&o.multi===a.multi&&(s=u)}),r[s]=a}),r}X(Dot,"compileList");function tMn(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function a(s){s.multi?(e.multi[s.kind].push(s),e.multi.fallback.push(s)):e[s.kind][s.tag]=e.fallback[s.tag]=s}for(X(a,"collectType"),t=0,r=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:X(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:X(function(e){return e.toString(10)},"decimal"),hexadecimal:X(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Bhi=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function pMn(e){return!(e===null||!Bhi.test(e)||e[e.length-1]==="_")}X(pMn,"resolveYamlFloat");function gMn(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}X(gMn,"constructYamlFloat");var Fhi=/^[-+]?[0-9]+e/;function mMn(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Cp.isNegativeZero(e))return"-0.0";return r=e.toString(10),Fhi.test(r)?r.replace("e",".e"):r}X(mMn,"representYamlFloat");function bMn(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Cp.isNegativeZero(e))}X(bMn,"isFloat");var $hi=new Sb("tag:yaml.org,2002:float",{kind:"scalar",resolve:pMn,construct:gMn,predicate:bMn,represent:mMn,defaultStyle:"lowercase"}),yMn=Lhi.extend({implicit:[Dhi,Mhi,Phi,$hi]}),Uhi=yMn,vMn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),_Mn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function wMn(e){return e===null?!1:vMn.exec(e)!==null||_Mn.exec(e)!==null}X(wMn,"resolveYamlTimestamp");function EMn(e){var t,r,a,s,o,u,h,f=0,p=null,m,b,_;if(t=vMn.exec(e),t===null&&(t=_Mn.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],a=+t[2]-1,s=+t[3],!t[4])return new Date(Date.UTC(r,a,s));if(o=+t[4],u=+t[5],h=+t[6],t[7]){for(f=t[7].slice(0,3);f.length<3;)f+="0";f=+f}return t[9]&&(m=+t[10],b=+(t[11]||0),p=(m*60+b)*6e4,t[9]==="-"&&(p=-p)),_=new Date(Date.UTC(r,a,s,o,u,h,f)),p&&_.setTime(_.getTime()-p),_}X(EMn,"constructYamlTimestamp");function xMn(e){return e.toISOString()}X(xMn,"representYamlTimestamp");var zhi=new Sb("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:wMn,construct:EMn,instanceOf:Date,represent:xMn});function SMn(e){return e==="<<"||e===null}X(SMn,"resolveYamlMerge");var Ghi=new Sb("tag:yaml.org,2002:merge",{kind:"scalar",resolve:SMn}),S1t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`;function TMn(e){if(e===null)return!1;var t,r,a=0,s=e.length,o=S1t;for(r=0;r64)){if(t<0)return!1;a+=6}return a%8===0}X(TMn,"resolveYamlBinary");function CMn(e){var t,r,a=e.replace(/[\r\n=]/g,""),s=a.length,o=S1t,u=0,h=[];for(t=0;t>16&255),h.push(u>>8&255),h.push(u&255)),u=u<<6|o.indexOf(a.charAt(t));return r=s%4*6,r===0?(h.push(u>>16&255),h.push(u>>8&255),h.push(u&255)):r===18?(h.push(u>>10&255),h.push(u>>2&255)):r===12&&h.push(u>>4&255),new Uint8Array(h)}X(CMn,"constructYamlBinary");function AMn(e){var t="",r=0,a,s,o=e.length,u=S1t;for(a=0;a>18&63],t+=u[r>>12&63],t+=u[r>>6&63],t+=u[r&63]),r=(r<<8)+e[a];return s=o%3,s===0?(t+=u[r>>18&63],t+=u[r>>12&63],t+=u[r>>6&63],t+=u[r&63]):s===2?(t+=u[r>>10&63],t+=u[r>>4&63],t+=u[r<<2&63],t+=u[64]):s===1&&(t+=u[r>>2&63],t+=u[r<<4&63],t+=u[64],t+=u[64]),t}X(AMn,"representYamlBinary");function kMn(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}X(kMn,"isBinary");var qhi=new Sb("tag:yaml.org,2002:binary",{kind:"scalar",resolve:TMn,construct:CMn,predicate:kMn,represent:AMn}),Hhi=Object.prototype.hasOwnProperty,Vhi=Object.prototype.toString;function RMn(e){if(e===null)return!0;var t=[],r,a,s,o,u,h=e;for(r=0,a=h.length;r>10)+55296,(e-65536&1023)+56320)}X(qMn,"charFromCodepoint");var HMn=new Array(256),VMn=new Array(256);for(gB=0;gB<256;gB++)HMn[gB]=Pot(gB)?1:0,VMn[gB]=Pot(gB);var gB;function YMn(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||MMn,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}X(YMn,"State$1");function T1t(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=Chi(r),new z2(t,r)}X(T1t,"generateError");function ks(e,t){throw T1t(e,t)}X(ks,"throwError");function boe(e,t){e.onWarning&&e.onWarning.call(null,T1t(e,t))}X(boe,"throwWarning");var Xyn={YAML:X(function(t,r,a){var s,o,u;t.version!==null&&ks(t,"duplication of %YAML directive"),a.length!==1&&ks(t,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(a[0]),s===null&&ks(t,"ill-formed argument of the YAML directive"),o=parseInt(s[1],10),u=parseInt(s[2],10),o!==1&&ks(t,"unacceptable YAML version of the document"),t.version=a[0],t.checkLineBreaks=u<2,u!==1&&u!==2&&boe(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:X(function(t,r,a){var s,o;a.length!==2&&ks(t,"TAG directive accepts exactly two arguments"),s=a[0],o=a[1],FMn.test(s)||ks(t,"ill-formed tag handle (first argument) of the TAG directive"),WO.call(t.tagMap,s)&&ks(t,'there is a previously declared suffix for "'+s+'" tag handle'),$Mn.test(o)||ks(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{ks(t,"tag prefix is malformed: "+o)}t.tagMap[s]=o},"handleTagDirective")};function U7(e,t,r,a){var s,o,u,h;if(t1&&(e.result+=Cp.repeat(` `,t-1))}X(hAe,"writeFoldedLines");function jMn(e,t,r){var a,s,o,u,h,f,p,m,b=e.kind,_=e.result,w;if(w=e.input.charCodeAt(e.position),Zy(w)||JB(w)||w===35||w===38||w===42||w===33||w===124||w===62||w===39||w===34||w===37||w===64||w===96||(w===63||w===45)&&(s=e.input.charCodeAt(e.position+1),Zy(s)||r&&JB(s)))return!1;for(e.kind="scalar",e.result="",o=u=e.position,h=!1;w!==0;){if(w===58){if(s=e.input.charCodeAt(e.position+1),Zy(s)||r&&JB(s))break}else if(w===35){if(a=e.input.charCodeAt(e.position-1),Zy(a))break}else{if(e.position===e.lineStart&&sce(e)||r&&JB(w))break;if(W3(w))if(f=e.line,p=e.lineStart,m=e.lineIndent,K0(e,!1,-1),e.lineIndent>=t){h=!0,w=e.input.charCodeAt(e.position);continue}else{e.position=u,e.line=f,e.lineStart=p,e.lineIndent=m;break}}h&&(U7(e,o,u,!1),hAe(e,e.line-f),o=u=e.position,h=!1),AO(w)||(u=e.position+1),w=e.input.charCodeAt(++e.position)}return U7(e,o,u,!1),e.result?!0:(e.kind=b,e.result=_,!1)}X(jMn,"readPlainScalar");function WMn(e,t){var r,a,s;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,a=s=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(U7(e,a,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)a=e.position,e.position++,s=e.position;else return!0;else W3(r)?(U7(e,a,s,!0),hAe(e,K0(e,!1,t)),a=s=e.position):e.position===e.lineStart&&sce(e)?ks(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);ks(e,"unexpected end of the stream within a single quoted scalar")}X(WMn,"readSingleQuotedScalar");function KMn(e,t){var r,a,s,o,u,h;if(h=e.input.charCodeAt(e.position),h!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(h=e.input.charCodeAt(e.position))!==0;){if(h===34)return U7(e,r,e.position,!0),e.position++,!0;if(h===92){if(U7(e,r,e.position,!0),h=e.input.charCodeAt(++e.position),W3(h))K0(e,!1,t);else if(h<256&&HMn[h])e.result+=VMn[h],e.position++;else if((u=zMn(h))>0){for(s=u,o=0;s>0;s--)h=e.input.charCodeAt(++e.position),(u=UMn(h))>=0?o=(o<<4)+u:ks(e,"expected hexadecimal character");e.result+=qMn(o),e.position++}else ks(e,"unknown escape sequence");r=a=e.position}else W3(h)?(U7(e,r,a,!0),hAe(e,K0(e,!1,t)),r=a=e.position):e.position===e.lineStart&&sce(e)?ks(e,"unexpected end of the document within a double quoted scalar"):(e.position++,a=e.position)}ks(e,"unexpected end of the stream within a double quoted scalar")}X(KMn,"readDoubleQuotedScalar");function XMn(e,t){var r=!0,a,s,o,u=e.tag,h,f=e.anchor,p,m,b,_,w,S=Object.create(null),C,A,k,I;if(I=e.input.charCodeAt(e.position),I===91)m=93,w=!1,h=[];else if(I===123)m=125,w=!0,h={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),I=e.input.charCodeAt(++e.position);I!==0;){if(K0(e,!0,t),I=e.input.charCodeAt(e.position),I===m)return e.position++,e.tag=u,e.anchor=f,e.kind=w?"mapping":"sequence",e.result=h,!0;r?I===44&&ks(e,"expected the node content, but found ','"):ks(e,"missed comma between flow collection entries"),A=C=k=null,b=_=!1,I===63&&(p=e.input.charCodeAt(e.position+1),Zy(p)&&(b=_=!0,e.position++,K0(e,!0,t))),a=e.line,s=e.lineStart,o=e.position,FF(e,t,A4e,!1,!0),A=e.tag,C=e.result,K0(e,!0,t),I=e.input.charCodeAt(e.position),(_||e.line===a)&&I===58&&(b=!0,I=e.input.charCodeAt(++e.position),K0(e,!0,t),FF(e,t,A4e,!1,!0),k=e.result),w?eF(e,h,S,A,C,k,a,s,o):b?h.push(eF(e,null,S,A,C,k,a,s,o)):h.push(C),K0(e,!0,t),I=e.input.charCodeAt(e.position),I===44?(r=!0,I=e.input.charCodeAt(++e.position)):r=!1}ks(e,"unexpected end of the stream within a flow collection")}X(XMn,"readFlowCollection");function QMn(e,t){var r,a,s=Ttt,o=!1,u=!1,h=t,f=0,p=!1,m,b;if(b=e.input.charCodeAt(e.position),b===124)a=!1;else if(b===62)a=!0;else return!1;for(e.kind="scalar",e.result="";b!==0;)if(b=e.input.charCodeAt(++e.position),b===43||b===45)Ttt===s?s=b===43?Kyn:Qhi:ks(e,"repeat of a chomping mode identifier");else if((m=GMn(b))>=0)m===0?ks(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?ks(e,"repeat of an indentation width identifier"):(h=t+m-1,u=!0);else break;if(AO(b)){do b=e.input.charCodeAt(++e.position);while(AO(b));if(b===35)do b=e.input.charCodeAt(++e.position);while(!W3(b)&&b!==0)}for(;b!==0;){for(uAe(e),e.lineIndent=0,b=e.input.charCodeAt(e.position);(!u||e.lineIndenth&&(h=e.lineIndent),W3(b)){f++;continue}if(e.lineIndentt)&&f!==0)ks(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(A&&(u=e.line,h=e.lineStart,f=e.position),FF(e,t,k4e,!0,s)&&(A?S=e.result:C=e.result),A||(eF(e,b,_,w,S,C,u,h,f),w=S=C=null),K0(e,!0,-1),I=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&I!==0)ks(e,"bad indentation of a mapping entry");else if(e.lineIndentt?f=1:e.lineIndent===t?f=0:e.lineIndentt?f=1:e.lineIndent===t?f=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),b=0,_=e.implicitTypes.length;b<_;b+=1)if(S=e.implicitTypes[b],S.resolve(e.result)){e.result=S.construct(e.result),e.tag=S.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(WO.call(e.typeMap[e.kind||"fallback"],e.tag))S=e.typeMap[e.kind||"fallback"][e.tag];else for(S=null,w=e.typeMap.multi[e.kind||"fallback"],b=0,_=w.length;b<_;b+=1)if(e.tag.slice(0,w[b].tag.length)===w[b].tag){S=w[b];break}S||ks(e,"unknown tag !<"+e.tag+">"),e.result!==null&&S.kind!==e.kind&&ks(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+S.kind+'", not "'+e.kind+'"'),S.resolve(e.result,e.tag)?(e.result=S.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ks(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||m}X(FF,"composeNode");function nPn(e){var t=e.position,r,a,s,o=!1,u;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(u=e.input.charCodeAt(e.position))!==0&&(K0(e,!0,-1),u=e.input.charCodeAt(e.position),!(e.lineIndent>0||u!==37));){for(o=!0,u=e.input.charCodeAt(++e.position),r=e.position;u!==0&&!Zy(u);)u=e.input.charCodeAt(++e.position);for(a=e.input.slice(r,e.position),s=[],a.length<1&&ks(e,"directive name must not be less than one character in length");u!==0;){for(;AO(u);)u=e.input.charCodeAt(++e.position);if(u===35){do u=e.input.charCodeAt(++e.position);while(u!==0&&!W3(u));break}if(W3(u))break;for(r=e.position;u!==0&&!Zy(u);)u=e.input.charCodeAt(++e.position);s.push(e.input.slice(r,e.position))}u!==0&&uAe(e),WO.call(Xyn,a)?Xyn[a](e,a,s):boe(e,'unknown document directive "'+a+'"')}if(K0(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,K0(e,!0,-1)):o&&ks(e,"directives end mark is expected"),FF(e,e.lineIndent-1,k4e,!1,!0),K0(e,!0,-1),e.checkLineBreaks&&Jhi.test(e.input.slice(t,e.position))&&boe(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&sce(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,K0(e,!0,-1));return}if(e.position"u"&&(r=t,t=null);var a=C1t(e,r);if(typeof t!="function")return a;for(var s=0,o=a.length;s=55296&&r<=56319&&t+1=56320&&a<=57343)?(r-55296)*1024+a-56320+65536:r}X(IV,"codePointAt");function k1t(e){var t=/^\n* /;return t.test(e)}X(k1t,"needIndentIndicator");var bPn=1,qot=2,yPn=3,vPn=4,uV=5;function _Pn(e,t,r,a,s,o,u,h){var f,p=0,m=null,b=!1,_=!1,w=a!==-1,S=-1,C=gPn(IV(e,0))&&mPn(IV(e,e.length-1));if(t||u)for(f=0;f=65536?f+=2:f++){if(p=IV(e,f),!Lj(p))return uV;C=C&&Got(p,m,h),m=p}else{for(f=0;f=65536?f+=2:f++){if(p=IV(e,f),p===yoe)b=!0,w&&(_=_||f-S-1>a&&e[S+1]!==" ",S=f);else if(!Lj(p))return uV;C=C&&Got(p,m,h),m=p}_=_||w&&f-S-1>a&&e[S+1]!==" "}return!b&&!_?C&&!u&&!s(e)?bPn:o===voe?uV:qot:r>9&&k1t(e)?uV:u?o===voe?uV:qot:_?vPn:yPn}X(_Pn,"chooseScalarStyle");function wPn(e,t,r,a,s){e.dump=function(){if(t.length===0)return e.quotingType===voe?'""':"''";if(!e.noCompatMode&&(_di.indexOf(t)!==-1||wdi.test(t)))return e.quotingType===voe?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,r),u=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),h=a||e.flowLevel>-1&&r>=e.flowLevel;function f(p){return pPn(e,p)}switch(X(f,"testAmbiguity"),_Pn(t,h,e.indent,u,f,e.quotingType,e.forceQuotes&&!a,s)){case bPn:return t;case qot:return"'"+t.replace(/'/g,"''")+"'";case yPn:return"|"+Hot(t,e.indent)+Vot(Uot(t,o));case vPn:return">"+Hot(t,e.indent)+Vot(Uot(EPn(t,u),o));case uV:return'"'+xPn(t)+'"';default:throw new z2("impossible error: invalid scalar style")}}()}X(wPn,"writeScalar");function Hot(e,t){var r=k1t(e)?String(t):"",a=e[e.length-1]===` `,s=a&&(e[e.length-2]===` `||e===` `),o=s?"+":a?"":"-";return r+o+` `}X(Hot,"blockHeader");function Vot(e){return e[e.length-1]===` `?e.slice(0,-1):e}X(Vot,"dropEndingNewline");function EPn(e,t){for(var r=/(\n+)([^\n]*)/g,a=function(){var p=e.indexOf(` `);return p=p!==-1?p:e.length,r.lastIndex=p,Yot(e.slice(0,p),t)}(),s=e[0]===` `||e[0]===" ",o,u;u=r.exec(e);){var h=u[1],f=u[2];o=f[0]===" ",a+=h+(!s&&!o&&f!==""?` `:"")+Yot(f,t),s=o}return a}X(EPn,"foldString");function Yot(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,a,s=0,o,u=0,h=0,f="";a=r.exec(e);)h=a.index,h-s>t&&(o=u>s?u:h,f+=` `+e.slice(s,o),s=o+1),u=h;return f+=` `,e.length-s>t&&u>s?f+=e.slice(s,u)+` `+e.slice(u+1):f+=e.slice(s),f.slice(1)}X(Yot,"foldLine");function xPn(e){for(var t="",r=0,a,s=0;s=65536?s+=2:s++)r=IV(e,s),a=Ob[r],!a&&Lj(r)?(t+=e[s],r>=65536&&(t+=e[s+1])):t+=a||dPn(r);return t}X(xPn,"escapeString");function SPn(e,t,r){var a="",s=e.tag,o,u,h;for(o=0,u=r.length;o"u"&&bA(e,t,null,!1,!1))&&(a!==""&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=s,e.dump="["+a+"]"}X(SPn,"writeFlowSequence");function jot(e,t,r,a){var s="",o=e.tag,u,h,f;for(u=0,h=r.length;u"u"&&bA(e,t+1,null,!0,!0,!1,!0))&&((!a||s!=="")&&(s+=I4e(e,t)),e.dump&&yoe===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=o,e.dump=s||"[]"}X(jot,"writeBlockSequence");function TPn(e,t,r){var a="",s=e.tag,o=Object.keys(r),u,h,f,p,m;for(u=0,h=o.length;u1024&&(m+="? "),m+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),bA(e,t,p,!1,!1)&&(m+=e.dump,a+=m));e.tag=s,e.dump="{"+a+"}"}X(TPn,"writeFlowMapping");function CPn(e,t,r,a){var s="",o=e.tag,u=Object.keys(r),h,f,p,m,b,_;if(e.sortKeys===!0)u.sort();else if(typeof e.sortKeys=="function")u.sort(e.sortKeys);else if(e.sortKeys)throw new z2("sortKeys must be a boolean or a function");for(h=0,f=u.length;h1024,b&&(e.dump&&yoe===e.dump.charCodeAt(0)?_+="?":_+="? "),_+=e.dump,b&&(_+=I4e(e,t)),bA(e,t+1,m,!0,b)&&(e.dump&&yoe===e.dump.charCodeAt(0)?_+=":":_+=": ",_+=e.dump,s+=_));e.tag=o,e.dump=s||"{}"}X(CPn,"writeBlockMapping");function Wot(e,t,r){var a,s,o,u,h,f;for(s=r?e.explicitTypes:e.implicitTypes,o=0,u=s.length;o tag resolver accepts not "'+f+'" style');e.dump=a}return!0}return!1}X(Wot,"detectType");function bA(e,t,r,a,s,o,u){e.tag=null,e.dump=r,Wot(e,r,!1)||Wot(e,r,!0);var h=iPn.call(e.dump),f=a,p;a&&(a=e.flowLevel<0||e.flowLevel>t);var m=h==="[object Object]"||h==="[object Array]",b,_;if(m&&(b=e.duplicates.indexOf(r),_=b!==-1),(e.tag!==null&&e.tag!=="?"||_||e.indent!==2&&t>0)&&(s=!1),_&&e.usedDuplicates[b])e.dump="*ref_"+b;else{if(m&&_&&!e.usedDuplicates[b]&&(e.usedDuplicates[b]=!0),h==="[object Object]")a&&Object.keys(e.dump).length!==0?(CPn(e,t,e.dump,s),_&&(e.dump="&ref_"+b+e.dump)):(TPn(e,t,e.dump),_&&(e.dump="&ref_"+b+" "+e.dump));else if(h==="[object Array]")a&&e.dump.length!==0?(e.noArrayIndent&&!u&&t>0?jot(e,t-1,e.dump,s):jot(e,t,e.dump,s),_&&(e.dump="&ref_"+b+e.dump)):(SPn(e,t,e.dump),_&&(e.dump="&ref_"+b+" "+e.dump));else if(h==="[object String]")e.tag!=="?"&&wPn(e,e.dump,t,o,f);else{if(h==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new z2("unacceptable kind of an object to dump "+h)}e.tag!==null&&e.tag!=="?"&&(p=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?p="!"+p:p.slice(0,18)==="tag:yaml.org,2002:"?p="!!"+p.slice(18):p="!<"+p+">",e.dump=p+" "+e.dump)}return!0}X(bA,"writeNode");function APn(e,t){var r=[],a=[],s,o;for(N4e(e,r,a),s=0,o=a.length;sArray.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),kPn=X(e=>({x:X(function(t,r,a){let s=0;const o=Hd(a[0]).x=0?1:-1)}else if(r===a.length-1&&Object.hasOwn(bb,e.arrowTypeEnd)){const{angle:w,deltaX:S}=Mie(a[a.length-1],a[a.length-2]);s=bb[e.arrowTypeEnd]*Math.cos(w)*(S>=0?1:-1)}const u=Math.abs(Hd(t).x-Hd(a[a.length-1]).x),h=Math.abs(Hd(t).y-Hd(a[a.length-1]).y),f=Math.abs(Hd(t).x-Hd(a[0]).x),p=Math.abs(Hd(t).y-Hd(a[0]).y),m=bb[e.arrowTypeStart],b=bb[e.arrowTypeEnd],_=1;if(u0&&h0&&p=0?1:-1)}else if(r===a.length-1&&Object.hasOwn(bb,e.arrowTypeEnd)){const{angle:w,deltaY:S}=Mie(a[a.length-1],a[a.length-2]);s=bb[e.arrowTypeEnd]*Math.abs(Math.sin(w))*(S>=0?1:-1)}const u=Math.abs(Hd(t).y-Hd(a[a.length-1]).y),h=Math.abs(Hd(t).x-Hd(a[a.length-1]).x),f=Math.abs(Hd(t).y-Hd(a[0]).y),p=Math.abs(Hd(t).x-Hd(a[0]).x),m=bb[e.arrowTypeStart],b=bb[e.arrowTypeEnd],_=1;if(u0&&h0&&p{var s,o;const t=((s=e==null?void 0:e.subGraphTitleMargin)==null?void 0:s.top)??0,r=((o=e==null?void 0:e.subGraphTitleMargin)==null?void 0:o.bottom)??0,a=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:a}},"getSubGraphTitleMargins"),Tdi=X(e=>{const{handDrawnSeed:t}=nn();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),PW=X(e=>{const t=Cdi([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),Cdi=X(e=>{const t=new Map;return e.forEach(r=>{const[a,s]=r.split(":");t.set(a.trim(),s==null?void 0:s.trim())}),t},"styles2Map"),R1t=X(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),Ia=X(e=>{const{stylesArray:t}=PW(e),r=[],a=[],s=[],o=[];return t.forEach(u=>{const h=u[0];R1t(h)?r.push(u.join(":")+" !important"):(a.push(u.join(":")+" !important"),h.includes("stroke")&&s.push(u.join(":")+" !important"),h==="fill"&&o.push(u.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:a.join(";"),stylesArray:t,borderStyles:s,backgroundStyles:o}},"styles2String"),Ja=X((e,t)=>{var f;const{themeVariables:r,handDrawnSeed:a}=nn(),{nodeBorder:s,mainBkg:o}=r,{stylesMap:u}=PW(e);return Object.assign({roughness:.7,fill:u.get("fill")||o,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:u.get("stroke")||s,seed:a,strokeWidth:((f=u.get("stroke-width"))==null?void 0:f.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:Adi(u.get("stroke-dasharray"))},t)},"userNodeOverrides"),Adi=X(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(t.length===1){const s=isNaN(t[0])?0:t[0];return[s,s]}const r=isNaN(t[0])?0:t[0],a=isNaN(t[1])?0:t[1];return[r,a]},"getStrokeDashArray"),I1t={},xg={};Object.defineProperty(xg,"__esModule",{value:!0});xg.BLANK_URL=xg.relativeFirstCharacters=xg.whitespaceEscapeCharsRegex=xg.urlSchemeRegex=xg.ctrlCharactersRegex=xg.htmlCtrlEntityRegex=xg.htmlEntitiesRegex=xg.invalidProtocolRegex=void 0;xg.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;xg.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;xg.htmlCtrlEntityRegex=/&(newline|tab);/gi;xg.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;xg.urlSchemeRegex=/^.+(:|:)/gim;xg.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;xg.relativeFirstCharacters=[".","/"];xg.BLANK_URL="about:blank";Object.defineProperty(I1t,"__esModule",{value:!0});var M9=I1t.sanitizeUrl=void 0,mb=xg;function kdi(e){return mb.relativeFirstCharacters.indexOf(e[0])>-1}function Rdi(e){var t=e.replace(mb.ctrlCharactersRegex,"");return t.replace(mb.htmlEntitiesRegex,function(r,a){return String.fromCharCode(a)})}function Idi(e){return URL.canParse(e)}function Zyn(e){try{return decodeURIComponent(e)}catch{return e}}function Ndi(e){if(!e)return mb.BLANK_URL;var t,r=Zyn(e.trim());do r=Rdi(r).replace(mb.htmlCtrlEntityRegex,"").replace(mb.ctrlCharactersRegex,"").replace(mb.whitespaceEscapeCharsRegex,"").trim(),r=Zyn(r),t=r.match(mb.ctrlCharactersRegex)||r.match(mb.htmlEntitiesRegex)||r.match(mb.htmlCtrlEntityRegex)||r.match(mb.whitespaceEscapeCharsRegex);while(t&&t.length>0);var a=r;if(!a)return mb.BLANK_URL;if(kdi(a))return a;var s=a.trimStart(),o=s.match(mb.urlSchemeRegex);if(!o)return a;var u=o[0].toLowerCase().trim();if(mb.invalidProtocolRegex.test(u))return mb.BLANK_URL;var h=s.replace(/\\/g,"/");if(u==="mailto:"||u.includes("://"))return h;if(u==="http:"||u==="https:"){if(!Idi(h))return mb.BLANK_URL;var f=new URL(h);return f.protocol=f.protocol.toLowerCase(),f.hostname=f.hostname.toLowerCase(),f.toString()}return h}M9=I1t.sanitizeUrl=Ndi;var RPn=typeof global=="object"&&global&&global.Object===Object&&global,Odi=typeof self=="object"&&self&&self.Object===Object&&self,OA=RPn||Odi||Function("return this")(),wS=OA.Symbol,IPn=Object.prototype,Ldi=IPn.hasOwnProperty,Ddi=IPn.toString,$re=wS?wS.toStringTag:void 0;function Mdi(e){var t=Ldi.call(e,$re),r=e[$re];try{e[$re]=void 0;var a=!0}catch{}var s=Ddi.call(e);return a&&(t?e[$re]=r:delete e[$re]),s}var Pdi=Object.prototype,Bdi=Pdi.toString;function Fdi(e){return Bdi.call(e)}var $di="[object Null]",Udi="[object Undefined]",Jyn=wS?wS.toStringTag:void 0;function C$(e){return e==null?e===void 0?Udi:$di:Jyn&&Jyn in Object(e)?Mdi(e):Fdi(e)}function $w(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var zdi="[object AsyncFunction]",Gdi="[object Function]",qdi="[object GeneratorFunction]",Hdi="[object Proxy]";function KO(e){if(!$w(e))return!1;var t=C$(e);return t==Gdi||t==qdi||t==zdi||t==Hdi}var Ctt=OA["__core-js_shared__"],evn=function(){var e=/[^.]+$/.exec(Ctt&&Ctt.keys&&Ctt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Vdi(e){return!!evn&&evn in e}var Ydi=Function.prototype,jdi=Ydi.toString;function A$(e){if(e!=null){try{return jdi.call(e)}catch{}try{return e+""}catch{}}return""}var Wdi=/[\\^$.*+?()[\]{}|]/g,Kdi=/^\[object .+?Constructor\]$/,Xdi=Function.prototype,Qdi=Object.prototype,Zdi=Xdi.toString,Jdi=Qdi.hasOwnProperty,efi=RegExp("^"+Zdi.call(Jdi).replace(Wdi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tfi(e){if(!$w(e)||Vdi(e))return!1;var t=KO(e)?efi:Kdi;return t.test(A$(e))}function nfi(e,t){return e==null?void 0:e[t]}function k$(e,t){var r=nfi(e,t);return tfi(r)?r:void 0}var woe=k$(Object,"create");function rfi(){this.__data__=woe?woe(null):{},this.size=0}function ifi(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var afi="__lodash_hash_undefined__",sfi=Object.prototype,ofi=sfi.hasOwnProperty;function lfi(e){var t=this.__data__;if(woe){var r=t[e];return r===afi?void 0:r}return ofi.call(t,e)?t[e]:void 0}var cfi=Object.prototype,ufi=cfi.hasOwnProperty;function hfi(e){var t=this.__data__;return woe?t[e]!==void 0:ufi.call(t,e)}var dfi="__lodash_hash_undefined__";function ffi(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=woe&&t===void 0?dfi:t,this}function $F(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}function _fi(e,t){var r=this.__data__,a=pAe(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}function yR(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=zfi}function P9(e){return e!=null&&D1t(e.length)&&!KO(e)}function FPn(e){return yA(e)&&P9(e)}function Gfi(){return!1}var $Pn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,svn=$Pn&&typeof module=="object"&&module&&!module.nodeType&&module,qfi=svn&&svn.exports===$Pn,ovn=qfi?OA.Buffer:void 0,Hfi=ovn?ovn.isBuffer:void 0,Mj=Hfi||Gfi,Vfi="[object Object]",Yfi=Function.prototype,jfi=Object.prototype,UPn=Yfi.toString,Wfi=jfi.hasOwnProperty,Kfi=UPn.call(Object);function zPn(e){if(!yA(e)||C$(e)!=Vfi)return!1;var t=L1t(e);if(t===null)return!0;var r=Wfi.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&UPn.call(r)==Kfi}var Xfi="[object Arguments]",Qfi="[object Array]",Zfi="[object Boolean]",Jfi="[object Date]",e0i="[object Error]",t0i="[object Function]",n0i="[object Map]",r0i="[object Number]",i0i="[object Object]",a0i="[object RegExp]",s0i="[object Set]",o0i="[object String]",l0i="[object WeakMap]",c0i="[object ArrayBuffer]",u0i="[object DataView]",h0i="[object Float32Array]",d0i="[object Float64Array]",f0i="[object Int8Array]",p0i="[object Int16Array]",g0i="[object Int32Array]",m0i="[object Uint8Array]",b0i="[object Uint8ClampedArray]",y0i="[object Uint16Array]",v0i="[object Uint32Array]",pd={};pd[h0i]=pd[d0i]=pd[f0i]=pd[p0i]=pd[g0i]=pd[m0i]=pd[b0i]=pd[y0i]=pd[v0i]=!0;pd[Xfi]=pd[Qfi]=pd[c0i]=pd[Zfi]=pd[u0i]=pd[Jfi]=pd[e0i]=pd[t0i]=pd[n0i]=pd[r0i]=pd[i0i]=pd[a0i]=pd[s0i]=pd[o0i]=pd[l0i]=!1;function _0i(e){return yA(e)&&D1t(e.length)&&!!pd[C$(e)]}function yAe(e){return function(t){return e(t)}}var GPn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,cse=GPn&&typeof module=="object"&&module&&!module.nodeType&&module,w0i=cse&&cse.exports===GPn,Att=w0i&&RPn.process,Pj=function(){try{var e=cse&&cse.require&&cse.require("util").types;return e||Att&&Att.binding&&Att.binding("util")}catch{}}(),lvn=Pj&&Pj.isTypedArray,vAe=lvn?yAe(lvn):_0i;function Xot(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var E0i=Object.prototype,x0i=E0i.hasOwnProperty;function _Ae(e,t,r){var a=e[t];(!(x0i.call(e,t)&&BW(a,r))||r===void 0&&!(t in e))&&mAe(e,t,r)}function lce(e,t,r,a){var s=!r;r||(r={});for(var o=-1,u=t.length;++o-1&&e%1==0&&e0){if(++t>=B0i)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var YPn=U0i(P0i);function EAe(e,t){return YPn(VPn(e,t,I$),e+"")}function xoe(e,t,r){if(!$w(r))return!1;var a=typeof t;return(a=="number"?P9(r)&&wAe(t,r.length):a=="string"&&t in r)?BW(r[t],e):!1}function z0i(e){return EAe(function(t,r){var a=-1,s=r.length,o=s>1?r[s-1]:void 0,u=s>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(s--,o):void 0,u&&xoe(r[0],r[1],u)&&(o=s<3?void 0:o,s=1),t=Object(t);++ah.args);i4e(u),a=W0(a,[...u])}else a=r.args;if(!a)return;let s=F0t(e,t);const o="config";return a[o]!==void 0&&(s==="flowchart-v2"&&(s="flowchart"),a[s]=a[o],delete a[o]),a},"detectInit"),WPn=X(function(e,t=null){var r,a;try{const s=new RegExp(`[%]{2}(?![{]${q0i.source})(?=[}][%]{2}).* `,"ig");e=e.trim().replace(s,"").replace(/'/gm,'"'),it.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let o;const u=[];for(;(o=sse.exec(e))!==null;)if(o.index===sse.lastIndex&&sse.lastIndex++,o&&!t||t&&((r=o[1])!=null&&r.match(t))||t&&((a=o[2])!=null&&a.match(t))){const h=o[1]?o[1]:o[2],f=o[3]?o[3].trim():o[4]?JSON.parse(o[4].trim()):null;u.push({type:h,args:f})}return u.length===0?{type:e,args:null}:u.length===1?u[0]:u}catch(s){return it.error(`ERROR: ${s.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),V0i=X(function(e){return e.replace(sse,"")},"removeDirectives"),Y0i=X(function(e,t){for(const[r,a]of t.entries())if(a.match(e))return r;return-1},"isSubstringInArray");function M1t(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return G0i[r]??t}X(M1t,"interpolateToCurve");function KPn(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?M9(r):r}X(KPn,"formatUrl");var j0i=X((e,...t)=>{const r=e.split("."),a=r.length-1,s=r[a];let o=window;for(let u=0;u{r+=P1t(s,t),t=s});const a=r/2;return B1t(e,a)}X(XPn,"traverseEdge");function QPn(e){return e.length===1?e[0]:XPn(e)}X(QPn,"calcLabelPosition");var uvn=X((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),B1t=X((e,t)=>{let r,a=t;for(const s of e){if(r){const o=P1t(s,r);if(o===0)return r;if(o=1)return{x:s.x,y:s.y};if(u>0&&u<1)return{x:uvn((1-u)*r.x+u*s.x,5),y:uvn((1-u)*r.y+u*s.y,5)}}}r=s}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),W0i=X((e,t,r)=>{it.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const s=B1t(t,25),o=e?10:5,u=Math.atan2(t[0].y-s.y,t[0].x-s.x),h={x:0,y:0};return h.x=Math.sin(u)*o+(t[0].x+s.x)/2,h.y=-Math.cos(u)*o+(t[0].y+s.y)/2,h},"calcCardinalityPosition");function ZPn(e,t,r){const a=structuredClone(r);it.info("our points",a),t!=="start_left"&&t!=="start_right"&&a.reverse();const s=25+e,o=B1t(a,s),u=10+e*.5,h=Math.atan2(a[0].y-o.y,a[0].x-o.x),f={x:0,y:0};return t==="start_left"?(f.x=Math.sin(h+Math.PI)*u+(a[0].x+o.x)/2,f.y=-Math.cos(h+Math.PI)*u+(a[0].y+o.y)/2):t==="end_right"?(f.x=Math.sin(h-Math.PI)*u+(a[0].x+o.x)/2-5,f.y=-Math.cos(h-Math.PI)*u+(a[0].y+o.y)/2-5):t==="end_left"?(f.x=Math.sin(h)*u+(a[0].x+o.x)/2-5,f.y=-Math.cos(h)*u+(a[0].y+o.y)/2-5):(f.x=Math.sin(h)*u+(a[0].x+o.x)/2,f.y=-Math.cos(h)*u+(a[0].y+o.y)/2),f}X(ZPn,"calcTerminalLabelPosition");function F1t(e){let t="",r="";for(const a of e)a!==void 0&&(a.startsWith("color:")||a.startsWith("text-align:")?r=r+a+";":t=t+a+";");return{style:t,labelStyle:r}}X(F1t,"getStylesFromArray");var hvn=0,JPn=X(()=>(hvn++,"id-"+Math.random().toString(36).substr(2,12)+"-"+hvn),"generateId");function eBn(e){let t="";const r="0123456789abcdef",a=r.length;for(let s=0;seBn(e.length),"random"),K0i=X(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),X0i=X(function(e,t){const r=t.text.replace(Ti.lineBreakRegex," "),[,a]=N$(t.fontSize),s=e.append("text");s.attr("x",t.x),s.attr("y",t.y),s.style("text-anchor",t.anchor),s.style("font-family",t.fontFamily),s.style("font-size",a),s.style("font-weight",t.fontWeight),s.attr("fill",t.fill),t.class!==void 0&&s.attr("class",t.class);const o=s.append("tspan");return o.attr("x",t.x+t.textMargin*2),o.attr("fill",t.fill),o.text(r),s},"drawSimpleText"),nBn=_R((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
    "},r),Ti.lineBreakRegex.test(e)))return e;const a=e.split(" ").filter(Boolean),s=[];let o="";return a.forEach((u,h)=>{const f=nv(`${u} `,r),p=nv(o,r);if(f>t){const{hyphenatedStrings:_,remainingWord:w}=Q0i(u,t,"-",r);s.push(o,..._),o=w}else p+f>=t?(s.push(o),o=u):o=[o,u].filter(Boolean).join(" ");h+1===a.length&&s.push(o)}),s.filter(u=>u!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),Q0i=_R((e,t,r="-",a)=>{a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},a);const s=[...e],o=[];let u="";return s.forEach((h,f)=>{const p=`${u}${h}`;if(nv(p,a)>=t){const b=f+1,_=s.length===b,w=`${p}${r}`;o.push(_?p:w),u=""}else u=p}),{hyphenatedStrings:o,remainingWord:u}},(e,t,r="-",a)=>`${e}${t}${r}${a.fontSize}${a.fontWeight}${a.fontFamily}`);function D4e(e,t){return $1t(e,t).height}X(D4e,"calculateTextHeight");function nv(e,t){return $1t(e,t).width}X(nv,"calculateTextWidth");var $1t=_R((e,t)=>{const{fontSize:r=12,fontFamily:a="Arial",fontWeight:s=400}=t;if(!e)return{width:0,height:0};const[,o]=N$(r),u=["sans-serif",a],h=e.split(Ti.lineBreakRegex),f=[],p=gn("body");if(!p.remove)return{width:0,height:0,lineHeight:0};const m=p.append("svg");for(const _ of u){let w=0;const S={width:0,height:0,lineHeight:0};for(const C of h){const A=K0i();A.text=C||jPn;const k=X0i(m,A).style("font-size",o).style("font-weight",s).style("font-family",_),I=(k._groups||k)[0][0].getBBox();if(I.width===0&&I.height===0)throw new Error("svg element not in render tree");S.width=Math.round(Math.max(S.width,I.width)),w=Math.round(I.height),S.height+=w,S.lineHeight=Math.round(Math.max(S.lineHeight,w))}f.push(S)}m.remove();const b=isNaN(f[1].height)||isNaN(f[1].width)||isNaN(f[1].lineHeight)||f[0].height>f[1].height&&f[0].width>f[1].width&&f[0].lineHeight>f[1].lineHeight?0:1;return f[b]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),wY,Z0i=(wY=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},X(wY,"InitIDGenerator"),wY),Q_e,J0i=X(function(e){return Q_e=Q_e||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Q_e.innerHTML=e,unescape(Q_e.textContent)},"entityDecode");function U1t(e){return"str"in e}X(U1t,"isDetailedError");var e1i=X((e,t,r,a)=>{var o;if(!a)return;const s=(o=e.node())==null?void 0:o.getBBox();s&&e.append("text").text(a).attr("text-anchor","middle").attr("x",s.x+s.width/2).attr("y",-r).attr("class",t)},"insertTitle"),N$=X(e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function cv(e,t){return XO({},e,t)}X(cv,"cleanAndMerge");var Vo={assignWithDepth:W0,wrapLabel:nBn,calculateTextHeight:D4e,calculateTextWidth:nv,calculateTextDimensions:$1t,cleanAndMerge:cv,detectInit:H0i,detectDirective:WPn,isSubstringInArray:Y0i,interpolateToCurve:M1t,calcLabelPosition:QPn,calcCardinalityPosition:W0i,calcTerminalLabelPosition:ZPn,formatUrl:KPn,getStylesFromArray:F1t,generateId:JPn,random:tBn,runFunc:j0i,entityDecode:J0i,insertTitle:e1i,isLabelCoordinateInPath:rBn,parseFontSize:N$,InitIDGenerator:Z0i},t1i=X(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){const a=r.substring(1,r.length-1);return/^\+?\d+$/.test(a)?"fl°°"+a+"¶ß":"fl°"+a+"¶ß"}),t},"encodeEntities"),vA=X(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),XV=X((e,t,{counter:r=0,prefix:a,suffix:s},o)=>o||`${a?`${a}_`:""}${e}_${t}_${r}${s?`_${s}`:""}`,"getEdgeId");function Tb(e){return e??null}X(Tb,"handleUndefinedAttr");function rBn(e,t){const r=Math.round(e.x),a=Math.round(e.y),s=t.replace(/(\d+\.\d+)/g,o=>Math.round(parseFloat(o)).toString());return s.includes(r.toString())||s.includes(a.toString())}X(rBn,"isLabelCoordinateInPath");const n1i=Object.freeze({left:0,top:0,width:16,height:16}),M4e=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),iBn=Object.freeze({...n1i,...M4e}),r1i=Object.freeze({...iBn,body:"",hidden:!1}),i1i=Object.freeze({width:null,height:null}),a1i=Object.freeze({...i1i,...M4e}),s1i=(e,t,r,a="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;a=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const h=s.pop(),f=s.pop(),p={provider:s.length>0?s[0]:a,prefix:f,name:h};return ktt(p)?p:null}const o=s[0],u=o.split("-");if(u.length>1){const h={provider:a,prefix:u.shift(),name:u.join("-")};return ktt(h)?h:null}if(r&&a===""){const h={provider:a,prefix:"",name:o};return ktt(h,r)?h:null}return null},ktt=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function o1i(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const a=((e.rotate||0)+(t.rotate||0))%4;return a&&(r.rotate=a),r}function dvn(e,t){const r=o1i(e,t);for(const a in r1i)a in M4e?a in e&&!(a in r)&&(r[a]=M4e[a]):a in t?r[a]=t[a]:a in e&&(r[a]=e[a]);return r}function l1i(e,t){const r=e.icons,a=e.aliases||Object.create(null),s=Object.create(null);function o(u){if(r[u])return s[u]=[];if(!(u in s)){s[u]=null;const h=a[u]&&a[u].parent,f=h&&o(h);f&&(s[u]=[h].concat(f))}return s[u]}return(t||Object.keys(r).concat(Object.keys(a))).forEach(o),s}function fvn(e,t,r){const a=e.icons,s=e.aliases||Object.create(null);let o={};function u(h){o=dvn(a[h]||s[h],o)}return u(t),r.forEach(u),dvn(e,o)}function c1i(e,t){if(e.icons[t])return fvn(e,t,[]);const r=l1i(e,[t])[t];return r?fvn(e,t,r):null}const u1i=/(-?[0-9.]*[0-9]+[0-9.]*)/g,h1i=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function pvn(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const a=e.split(u1i);if(a===null||!a.length)return e;const s=[];let o=a.shift(),u=h1i.test(o);for(;;){if(u){const h=parseFloat(o);isNaN(h)?s.push(o):s.push(Math.ceil(h*t*r)/r)}else s.push(o);if(o=a.shift(),o===void 0)return s.join("");u=!u}}function d1i(e,t="defs"){let r="";const a=e.indexOf("<"+t);for(;a>=0;){const s=e.indexOf(">",a),o=e.indexOf("",o);if(u===-1)break;r+=e.slice(s+1,o).trim(),e=e.slice(0,a).trim()+e.slice(u+1)}return{defs:r,content:e}}function f1i(e,t){return e?""+e+""+t:t}function p1i(e,t,r){const a=d1i(e);return f1i(a.defs,t+a.content+r)}const g1i=e=>e==="unset"||e==="undefined"||e==="none";function m1i(e,t){const r={...iBn,...e},a={...a1i,...t},s={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,a].forEach(C=>{const A=[],k=C.hFlip,I=C.vFlip;let N=C.rotate;k?I?N+=2:(A.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),A.push("scale(-1 1)"),s.top=s.left=0):I&&(A.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),A.push("scale(1 -1)"),s.top=s.left=0);let L;switch(N<0&&(N-=Math.floor(N/4)*4),N=N%4,N){case 1:L=s.height/2+s.top,A.unshift("rotate(90 "+L.toString()+" "+L.toString()+")");break;case 2:A.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:L=s.width/2+s.left,A.unshift("rotate(-90 "+L.toString()+" "+L.toString()+")");break}N%2===1&&(s.left!==s.top&&(L=s.left,s.left=s.top,s.top=L),s.width!==s.height&&(L=s.width,s.width=s.height,s.height=L)),A.length&&(o=p1i(o,'',""))});const u=a.width,h=a.height,f=s.width,p=s.height;let m,b;u===null?(b=h===null?"1em":h==="auto"?p:h,m=pvn(b,f/p)):(m=u==="auto"?f:u,b=h===null?pvn(m,p/f):h==="auto"?p:h);const _={},w=(C,A)=>{g1i(A)||(_[C]=A.toString())};w("width",m),w("height",b);const S=[s.left,s.top,f,p];return _.viewBox=S.join(" "),{attributes:_,viewBox:S,body:o}}const b1i=/\sid="(\S+)"/g,gvn=new Map;function y1i(e){e=e.replace(/[0-9]+$/,"")||"a";const t=gvn.get(e)||0;return gvn.set(e,t+1),t?`${e}${t}`:e}function v1i(e){const t=[];let r;for(;r=b1i.exec(e);)t.push(r[1]);if(!t.length)return e;const a="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(s=>{const o=y1i(s),u=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+u+')([")]|\\.[a-z])',"g"),"$1"+o+a+"$3")}),e=e.replace(new RegExp(a,"g"),""),e}function _1i(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const a in t)r+=" "+a+'="'+t[a]+'"';return'"+e+""}function z1t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var O$=z1t();function aBn(e){O$=e}var use={exec:()=>null};function pu(e,t=""){let r=typeof e=="string"?e:e.source,a={replace:(s,o)=>{let u=typeof o=="string"?o:o.source;return u=u.replace(Jy.caret,"$1"),r=r.replace(s,u),a},getRegex:()=>new RegExp(r,t)};return a}var w1i=(()=>{try{return!!new RegExp("(?<=1)(?/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^
    /i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},E1i=/^(?:[ \t]*(?:\n|$))+/,x1i=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,S1i=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,cce=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,T1i=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,G1t=/(?:[*+-]|\d{1,9}[.)])/,sBn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,oBn=pu(sBn).replace(/bull/g,G1t).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),C1i=pu(sBn).replace(/bull/g,G1t).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),q1t=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,A1i=/^[^\n]+/,H1t=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,k1i=pu(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",H1t).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),R1i=pu(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,G1t).getRegex(),xAe="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",V1t=/|$))/,I1i=pu("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",V1t).replace("tag",xAe).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),lBn=pu(q1t).replace("hr",cce).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",xAe).getRegex(),N1i=pu(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",lBn).getRegex(),Y1t={blockquote:N1i,code:x1i,def:k1i,fences:S1i,heading:T1i,hr:cce,html:I1i,lheading:oBn,list:R1i,newline:E1i,paragraph:lBn,table:use,text:A1i},mvn=pu("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",cce).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",xAe).getRegex(),O1i={...Y1t,lheading:C1i,table:mvn,paragraph:pu(q1t).replace("hr",cce).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",mvn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",xAe).getRegex()},L1i={...Y1t,html:pu(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",V1t).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:use,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:pu(q1t).replace("hr",cce).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",oBn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},D1i=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,M1i=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,cBn=/^( {2,}|\\)\n(?!\s*$)/,P1i=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",w1i?"(?`+)[^`]+\k(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),dBn=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,z1i=pu(dBn,"u").replace(/punct/g,SAe).getRegex(),G1i=pu(dBn,"u").replace(/punct/g,hBn).getRegex(),fBn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",q1i=pu(fBn,"gu").replace(/notPunctSpace/g,uBn).replace(/punctSpace/g,j1t).replace(/punct/g,SAe).getRegex(),H1i=pu(fBn,"gu").replace(/notPunctSpace/g,$1i).replace(/punctSpace/g,F1i).replace(/punct/g,hBn).getRegex(),V1i=pu("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,uBn).replace(/punctSpace/g,j1t).replace(/punct/g,SAe).getRegex(),Y1i=pu(/\\(punct)/,"gu").replace(/punct/g,SAe).getRegex(),j1i=pu(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),W1i=pu(V1t).replace("(?:-->|$)","-->").getRegex(),K1i=pu("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",W1i).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),P4e=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,X1i=pu(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",P4e).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),pBn=pu(/^!?\[(label)\]\[(ref)\]/).replace("label",P4e).replace("ref",H1t).getRegex(),gBn=pu(/^!?\[(ref)\](?:\[\])?/).replace("ref",H1t).getRegex(),Q1i=pu("reflink|nolink(?!\\()","g").replace("reflink",pBn).replace("nolink",gBn).getRegex(),bvn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,W1t={_backpedal:use,anyPunctuation:Y1i,autolink:j1i,blockSkip:U1i,br:cBn,code:M1i,del:use,emStrongLDelim:z1i,emStrongRDelimAst:q1i,emStrongRDelimUnd:V1i,escape:D1i,link:X1i,nolink:gBn,punctuation:B1i,reflink:pBn,reflinkSearch:Q1i,tag:K1i,text:P1i,url:use},Z1i={...W1t,link:pu(/^!?\[(label)\]\((.*?)\)/).replace("label",P4e).getRegex(),reflink:pu(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",P4e).getRegex()},Qot={...W1t,emStrongRDelimAst:H1i,emStrongLDelim:G1i,url:pu(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",bvn).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:pu(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},yvn=e=>epi[e];function wC(e,t){if(t){if(Jy.escapeTest.test(e))return e.replace(Jy.escapeReplace,yvn)}else if(Jy.escapeTestNoEncode.test(e))return e.replace(Jy.escapeReplaceNoEncode,yvn);return e}function vvn(e){try{e=encodeURI(e).replace(Jy.percentDecode,"%")}catch{return null}return e}function _vn(e,t){var o;let r=e.replace(Jy.findPipe,(u,h,f)=>{let p=!1,m=h;for(;--m>=0&&f[m]==="\\";)p=!p;return p?"|":" |"}),a=r.split(Jy.splitPipe),s=0;if(a[0].trim()||a.shift(),a.length>0&&!((o=a.at(-1))!=null&&o.trim())&&a.pop(),t)if(a.length>t)a.splice(t);else for(;a.length0?-2:-1}function wvn(e,t,r,a,s){let o=t.href,u=t.title||null,h=e[1].replace(s.other.outputLinkReplace,"$1");a.state.inLink=!0;let f={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:o,title:u,text:h,tokens:a.inlineTokens(h)};return a.state.inLink=!1,f}function npi(e,t,r){let a=e.match(r.other.indentCodeCompensation);if(a===null)return t;let s=a[1];return t.split(` `).map(o=>{let u=o.match(r.other.beginningSpace);if(u===null)return o;let[h]=u;return h.length>=s.length?o.slice(s.length):o}).join(` `)}var B4e=class{constructor(t){Gi(this,"options");Gi(this,"rules");Gi(this,"lexer");this.options=t||O$}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let a=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?a:zre(a,` `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let a=r[0],s=npi(a,r[3]||"",this.rules);return{type:"code",raw:a,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:s}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let a=r[2].trim();if(this.rules.other.endingHash.test(a)){let s=zre(a,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(a=s.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:a,tokens:this.lexer.inline(a)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:zre(r[0],` `)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let a=zre(r[0],` `).split(` `),s="",o="",u=[];for(;a.length>0;){let h=!1,f=[],p;for(p=0;p1,o={type:"list",raw:"",ordered:s,start:s?+a.slice(0,-1):"",loose:!1,items:[]};a=s?`\\d{1,9}\\${a.slice(-1)}`:`\\${a}`,this.options.pedantic&&(a=s?a:"[*+-]");let u=this.rules.other.listItemRegex(a),h=!1;for(;t;){let p=!1,m="",b="";if(!(r=u.exec(t))||this.rules.block.hr.test(t))break;m=r[0],t=t.substring(m.length);let _=r[2].split(` `,1)[0].replace(this.rules.other.listReplaceTabs,I=>" ".repeat(3*I.length)),w=t.split(` `,1)[0],S=!_.trim(),C=0;if(this.options.pedantic?(C=2,b=_.trimStart()):S?C=r[1].length+1:(C=r[2].search(this.rules.other.nonSpaceChar),C=C>4?1:C,b=_.slice(C),C+=r[1].length),S&&this.rules.other.blankLine.test(w)&&(m+=w+` `,t=t.substring(w.length+1),p=!0),!p){let I=this.rules.other.nextBulletRegex(C),N=this.rules.other.hrRegex(C),L=this.rules.other.fencesBeginRegex(C),P=this.rules.other.headingBeginRegex(C),M=this.rules.other.htmlBeginRegex(C);for(;t;){let F=t.split(` `,1)[0],U;if(w=F,this.options.pedantic?(w=w.replace(this.rules.other.listReplaceNesting," "),U=w):U=w.replace(this.rules.other.tabCharGlobal," "),L.test(w)||P.test(w)||M.test(w)||I.test(w)||N.test(w))break;if(U.search(this.rules.other.nonSpaceChar)>=C||!w.trim())b+=` `+U.slice(C);else{if(S||_.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||L.test(_)||P.test(_)||N.test(_))break;b+=` `+w}!S&&!w.trim()&&(S=!0),m+=F+` `,t=t.substring(F.length+1),_=U.slice(C)}}o.loose||(h?o.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(h=!0));let A=null,k;this.options.gfm&&(A=this.rules.other.listIsTask.exec(b),A&&(k=A[0]!=="[ ] ",b=b.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:m,task:!!A,checked:k,loose:!1,text:b,tokens:[]}),o.raw+=m}let f=o.items.at(-1);if(f)f.raw=f.raw.trimEnd(),f.text=f.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let p=0;p_.type==="space"),b=m.length>0&&m.some(_=>this.rules.other.anyLine.test(_.raw));o.loose=b}if(o.loose)for(let p=0;p({text:p,tokens:this.lexer.inline(p),header:!1,align:u.align[m]})));return u}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let a=r[1].charAt(r[1].length-1)===` `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:a,tokens:this.lexer.inline(a)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let a=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(a)){if(!this.rules.other.endAngleBracket.test(a))return;let u=zre(a.slice(0,-1),"\\");if((a.length-u.length)%2===0)return}else{let u=tpi(r[2],"()");if(u===-2)return;if(u>-1){let h=(r[0].indexOf("!")===0?5:4)+r[1].length+u;r[2]=r[2].substring(0,u),r[0]=r[0].substring(0,h).trim(),r[3]=""}}let s=r[2],o="";if(this.options.pedantic){let u=this.rules.other.pedanticHrefTitle.exec(s);u&&(s=u[1],o=u[3])}else o=r[3]?r[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(a)?s=s.slice(1):s=s.slice(1,-1)),wvn(r,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let a;if((a=this.rules.inline.reflink.exec(t))||(a=this.rules.inline.nolink.exec(t))){let s=(a[2]||a[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=r[s.toLowerCase()];if(!o){let u=a[0].charAt(0);return{type:"text",raw:u,text:u}}return wvn(a,o,a[0],this.lexer,this.rules)}}emStrong(t,r,a=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&a.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!a||this.rules.inline.punctuation.exec(a))){let o=[...s[0]].length-1,u,h,f=o,p=0,m=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,r=r.slice(-1*t.length+o);(s=m.exec(r))!=null;){if(u=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!u)continue;if(h=[...u].length,s[3]||s[4]){f+=h;continue}else if((s[5]||s[6])&&o%3&&!((o+h)%3)){p+=h;continue}if(f-=h,f>0)continue;h=Math.min(h,h+f+p);let b=[...s[0]][0].length,_=t.slice(0,o+s.index+b+h);if(Math.min(o,h)%2){let S=_.slice(1,-1);return{type:"em",raw:_,text:S,tokens:this.lexer.inlineTokens(S)}}let w=_.slice(2,-2);return{type:"strong",raw:_,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let a=r[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(a),o=this.rules.other.startingSpaceChar.test(a)&&this.rules.other.endingSpaceChar.test(a);return s&&o&&(a=a.substring(1,a.length-1)),{type:"codespan",raw:r[0],text:a}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let a,s;return r[2]==="@"?(a=r[1],s="mailto:"+a):(a=r[1],s=a),{type:"link",raw:r[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}}url(t){var a;let r;if(r=this.rules.inline.url.exec(t)){let s,o;if(r[2]==="@")s=r[0],o="mailto:"+s;else{let u;do u=r[0],r[0]=((a=this.rules.inline._backpedal.exec(r[0]))==null?void 0:a[0])??"";while(u!==r[0]);s=r[0],r[1]==="www."?o="http://"+r[0]:o=r[0]}return{type:"link",raw:r[0],text:s,href:o,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let a=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:a}}}},M3=class Zot{constructor(t){Gi(this,"tokens");Gi(this,"options");Gi(this,"state");Gi(this,"tokenizer");Gi(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||O$,this.options.tokenizer=this.options.tokenizer||new B4e,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Jy,block:Z_e.normal,inline:Ure.normal};this.options.pedantic?(r.block=Z_e.pedantic,r.inline=Ure.pedantic):this.options.gfm&&(r.block=Z_e.gfm,this.options.breaks?r.inline=Ure.breaks:r.inline=Ure.gfm),this.tokenizer.rules=r}static get rules(){return{block:Z_e,inline:Ure}}static lex(t,r){return new Zot(r).lex(t)}static lexInline(t,r){return new Zot(r).inlineTokens(t)}lex(t){t=t.replace(Jy.carriageReturn,` `),this.blockTokens(t,this.tokens);for(let r=0;r(h=p.call({lexer:this},t,r))?(t=t.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.space(t)){t=t.substring(h.raw.length);let p=r.at(-1);h.raw.length===1&&p!==void 0?p.raw+=` `:r.push(h);continue}if(h=this.tokenizer.code(t)){t=t.substring(h.raw.length);let p=r.at(-1);(p==null?void 0:p.type)==="paragraph"||(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith(` `)?"":` `)+h.raw,p.text+=` `+h.text,this.inlineQueue.at(-1).src=p.text):r.push(h);continue}if(h=this.tokenizer.fences(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.heading(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.hr(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.blockquote(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.list(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.html(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.def(t)){t=t.substring(h.raw.length);let p=r.at(-1);(p==null?void 0:p.type)==="paragraph"||(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith(` `)?"":` `)+h.raw,p.text+=` `+h.raw,this.inlineQueue.at(-1).src=p.text):this.tokens.links[h.tag]||(this.tokens.links[h.tag]={href:h.href,title:h.title},r.push(h));continue}if(h=this.tokenizer.table(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.lheading(t)){t=t.substring(h.raw.length),r.push(h);continue}let f=t;if((u=this.options.extensions)!=null&&u.startBlock){let p=1/0,m=t.slice(1),b;this.options.extensions.startBlock.forEach(_=>{b=_.call({lexer:this},m),typeof b=="number"&&b>=0&&(p=Math.min(p,b))}),p<1/0&&p>=0&&(f=t.substring(0,p+1))}if(this.state.top&&(h=this.tokenizer.paragraph(f))){let p=r.at(-1);a&&(p==null?void 0:p.type)==="paragraph"?(p.raw+=(p.raw.endsWith(` `)?"":` `)+h.raw,p.text+=` `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):r.push(h),a=f.length!==t.length,t=t.substring(h.raw.length);continue}if(h=this.tokenizer.text(t)){t=t.substring(h.raw.length);let p=r.at(-1);(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith(` `)?"":` `)+h.raw,p.text+=` `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):r.push(h);continue}if(t){let p="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var f,p,m,b,_;let a=t,s=null;if(this.tokens.links){let w=Object.keys(this.tokens.links);if(w.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)w.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,s.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)o=s[2]?s[2].length:0,a=a.slice(0,s.index+o)+"["+"a".repeat(s[0].length-o-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);a=((p=(f=this.options.hooks)==null?void 0:f.emStrongMask)==null?void 0:p.call({lexer:this},a))??a;let u=!1,h="";for(;t;){u||(h=""),u=!1;let w;if((b=(m=this.options.extensions)==null?void 0:m.inline)!=null&&b.some(C=>(w=C.call({lexer:this},t,r))?(t=t.substring(w.raw.length),r.push(w),!0):!1))continue;if(w=this.tokenizer.escape(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.tag(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.link(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(w.raw.length);let C=r.at(-1);w.type==="text"&&(C==null?void 0:C.type)==="text"?(C.raw+=w.raw,C.text+=w.text):r.push(w);continue}if(w=this.tokenizer.emStrong(t,a,h)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.codespan(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.br(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.del(t)){t=t.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.autolink(t)){t=t.substring(w.raw.length),r.push(w);continue}if(!this.state.inLink&&(w=this.tokenizer.url(t))){t=t.substring(w.raw.length),r.push(w);continue}let S=t;if((_=this.options.extensions)!=null&&_.startInline){let C=1/0,A=t.slice(1),k;this.options.extensions.startInline.forEach(I=>{k=I.call({lexer:this},A),typeof k=="number"&&k>=0&&(C=Math.min(C,k))}),C<1/0&&C>=0&&(S=t.substring(0,C+1))}if(w=this.tokenizer.inlineText(S)){t=t.substring(w.raw.length),w.raw.slice(-1)!=="_"&&(h=w.raw.slice(-1)),u=!0;let C=r.at(-1);(C==null?void 0:C.type)==="text"?(C.raw+=w.raw,C.text+=w.text):r.push(w);continue}if(t){let C="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(C);break}else throw new Error(C)}}return r}},F4e=class{constructor(t){Gi(this,"options");Gi(this,"parser");this.options=t||O$}space(t){return""}code({text:t,lang:r,escaped:a}){var u;let s=(u=(r||"").match(Jy.notSpaceStart))==null?void 0:u[0],o=t.replace(Jy.endingNewline,"")+` `;return s?'
    '+(a?o:wC(o,!0))+`
    `:"
    "+(a?o:wC(o,!0))+`
    `}blockquote({tokens:t}){return`
    ${this.parser.parse(t)}
    `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`${this.parser.parseInline(t)} `}hr(t){return`
    `}list(t){let r=t.ordered,a=t.start,s="";for(let h=0;h `+s+" `}listitem(t){var a;let r="";if(t.task){let s=this.checkbox({checked:!!t.checked});t.loose?((a=t.tokens[0])==null?void 0:a.type)==="paragraph"?(t.tokens[0].text=s+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=s+" "+wC(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):r+=s+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`
  • ${r}
  • `}checkbox({checked:t}){return"'}paragraph({tokens:t}){return`

    ${this.parser.parseInline(t)}

    `}table(t){let r="",a="";for(let o=0;o${s}`),` `+r+` `+s+`
    `}tablerow({text:t}){return` ${t} `}tablecell(t){let r=this.parser.parseInline(t.tokens),a=t.header?"th":"td";return(t.align?`<${a} align="${t.align}">`:`<${a}>`)+r+` `}strong({tokens:t}){return`${this.parser.parseInline(t)}`}em({tokens:t}){return`${this.parser.parseInline(t)}`}codespan({text:t}){return`${wC(t,!0)}`}br(t){return"
    "}del({tokens:t}){return`${this.parser.parseInline(t)}`}link({href:t,title:r,tokens:a}){let s=this.parser.parseInline(a),o=vvn(t);if(o===null)return s;t=o;let u='
    ",u}image({href:t,title:r,text:a,tokens:s}){s&&(a=this.parser.parseInline(s,this.parser.textRenderer));let o=vvn(t);if(o===null)return wC(a);t=o;let u=`${a}{let p=h[f].flat(1/0);a=a.concat(this.walkTokens(p,r))}):h.tokens&&(a=a.concat(this.walkTokens(h.tokens,r)))}}return a}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(a=>{let s={...a};if(s.async=this.defaults.async||s.async||!1,a.extensions&&(a.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let u=r.renderers[o.name];u?r.renderers[o.name]=function(...h){let f=o.renderer.apply(this,h);return f===!1&&(f=u.apply(this,h)),f}:r.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let u=r[o.level];u?u.unshift(o.tokenizer):r[o.level]=[o.tokenizer],o.start&&(o.level==="block"?r.startBlock?r.startBlock.push(o.start):r.startBlock=[o.start]:o.level==="inline"&&(r.startInline?r.startInline.push(o.start):r.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(r.childTokens[o.name]=o.childTokens)}),s.extensions=r),a.renderer){let o=this.defaults.renderer||new F4e(this.defaults);for(let u in a.renderer){if(!(u in o))throw new Error(`renderer '${u}' does not exist`);if(["options","parser"].includes(u))continue;let h=u,f=a.renderer[h],p=o[h];o[h]=(...m)=>{let b=f.apply(o,m);return b===!1&&(b=p.apply(o,m)),b||""}}s.renderer=o}if(a.tokenizer){let o=this.defaults.tokenizer||new B4e(this.defaults);for(let u in a.tokenizer){if(!(u in o))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;let h=u,f=a.tokenizer[h],p=o[h];o[h]=(...m)=>{let b=f.apply(o,m);return b===!1&&(b=p.apply(o,m)),b}}s.tokenizer=o}if(a.hooks){let o=this.defaults.hooks||new Pie;for(let u in a.hooks){if(!(u in o))throw new Error(`hook '${u}' does not exist`);if(["options","block"].includes(u))continue;let h=u,f=a.hooks[h],p=o[h];Pie.passThroughHooks.has(u)?o[h]=m=>{if(this.defaults.async&&Pie.passThroughHooksRespectAsync.has(u))return(async()=>{let _=await f.call(o,m);return p.call(o,_)})();let b=f.call(o,m);return p.call(o,b)}:o[h]=(...m)=>{if(this.defaults.async)return(async()=>{let _=await f.apply(o,m);return _===!1&&(_=await p.apply(o,m)),_})();let b=f.apply(o,m);return b===!1&&(b=p.apply(o,m)),b}}s.hooks=o}if(a.walkTokens){let o=this.defaults.walkTokens,u=a.walkTokens;s.walkTokens=function(h){let f=[];return f.push(u.call(this,h)),o&&(f=f.concat(o.call(this,h))),f}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return M3.lex(t,r??this.defaults)}parser(t,r){return P3.parse(t,r??this.defaults)}parseMarkdown(t){return(r,a)=>{let s={...a},o={...this.defaults,...s},u=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return u(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=t),o.async)return(async()=>{let h=o.hooks?await o.hooks.preprocess(r):r,f=await(o.hooks?await o.hooks.provideLexer():t?M3.lex:M3.lexInline)(h,o),p=o.hooks?await o.hooks.processAllTokens(f):f;o.walkTokens&&await Promise.all(this.walkTokens(p,o.walkTokens));let m=await(o.hooks?await o.hooks.provideParser():t?P3.parse:P3.parseInline)(p,o);return o.hooks?await o.hooks.postprocess(m):m})().catch(u);try{o.hooks&&(r=o.hooks.preprocess(r));let h=(o.hooks?o.hooks.provideLexer():t?M3.lex:M3.lexInline)(r,o);o.hooks&&(h=o.hooks.processAllTokens(h)),o.walkTokens&&this.walkTokens(h,o.walkTokens);let f=(o.hooks?o.hooks.provideParser():t?P3.parse:P3.parseInline)(h,o);return o.hooks&&(f=o.hooks.postprocess(f)),f}catch(h){return u(h)}}}onError(t,r){return a=>{if(a.message+=` Please report this to https://github.com/markedjs/marked.`,t){let s="

    An error occurred:

    "+wC(a.message+"",!0)+"
    ";return r?Promise.resolve(s):s}if(r)return Promise.reject(a);throw a}}},UF=new rpi;function $u(e,t){return UF.parse(e,t)}$u.options=$u.setOptions=function(e){return UF.setOptions(e),$u.defaults=UF.defaults,aBn($u.defaults),$u};$u.getDefaults=z1t;$u.defaults=O$;$u.use=function(...e){return UF.use(...e),$u.defaults=UF.defaults,aBn($u.defaults),$u};$u.walkTokens=function(e,t){return UF.walkTokens(e,t)};$u.parseInline=UF.parseInline;$u.Parser=P3;$u.parser=P3.parse;$u.Renderer=F4e;$u.TextRenderer=K1t;$u.Lexer=M3;$u.lexer=M3.lex;$u.Tokenizer=B4e;$u.Hooks=Pie;$u.parse=$u;$u.options;$u.setOptions;$u.use;$u.walkTokens;$u.parseInline;P3.parse;M3.lex;function TAe(e){for(var t=[],r=1;r?',height:80,width:80},elt=new Map,bBn=new Map,yBn=X(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(it.debug("Registering icon pack:",t.name),"loader"in t)bBn.set(t.name,t.loader);else if("icons"in t)elt.set(t.name,t.icons);else throw it.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),vBn=X(async(e,t)=>{const r=s1i(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);const a=r.prefix||t;if(!a)throw new Error(`Icon name must contain a prefix: ${e}`);let s=elt.get(a);if(!s){const u=bBn.get(a);if(!u)throw new Error(`Icon set not found: ${r.prefix}`);try{s={...await u(),prefix:a},elt.set(a,s)}catch(h){throw it.error(h),new Error(`Failed to load icon set: ${r.prefix}`)}}const o=c1i(s,r.name);if(!o)throw new Error(`Icon not found: ${e}`);return o},"getRegisteredIconData"),ipi=X(async e=>{try{return await vBn(e),!0}catch{return!1}},"isIconAvailable"),QO=X(async(e,t,r)=>{let a;try{a=await vBn(e,t==null?void 0:t.fallbackPrefix)}catch(u){it.error(u),a=mBn}const s=m1i(a,t),o=_1i(v1i(s.body),{...s.attributes,...r});return Ic(o,$c())},"getIconSVG");function _Bn(e,{markdownAutoWrap:t}){const a=e.replace(//g,` `).replace(/\n{2,}/g,` `),s=TAe(a);return t===!1?s.replace(/ /g," "):s}X(_Bn,"preprocessMarkdown");function wBn(e,t={}){const r=_Bn(e,t),a=$u.lexer(r),s=[[]];let o=0;function u(h,f="normal"){h.type==="text"?h.text.split(` `).forEach((m,b)=>{b!==0&&(o++,s.push([])),m.split(" ").forEach(_=>{_=_.replace(/'/g,"'"),_&&s[o].push({content:_,type:f})})}):h.type==="strong"||h.type==="em"?h.tokens.forEach(p=>{u(p,h.type)}):h.type==="html"&&s[o].push({content:h.text,type:"normal"})}return X(u,"processNode"),a.forEach(h=>{var f;h.type==="paragraph"?(f=h.tokens)==null||f.forEach(p=>{u(p)}):h.type==="html"?s[o].push({content:h.text,type:"normal"}):s[o].push({content:h.raw,type:"normal"})}),s}X(wBn,"markdownToLines");function EBn(e,{markdownAutoWrap:t}={}){const r=$u.lexer(e);function a(s){var o,u,h;return s.type==="text"?t===!1?s.text.replace(/\n */g,"
    ").replace(/ /g," "):s.text.replace(/\n */g,"
    "):s.type==="strong"?`${(o=s.tokens)==null?void 0:o.map(a).join("")}`:s.type==="em"?`${(u=s.tokens)==null?void 0:u.map(a).join("")}`:s.type==="paragraph"?`

    ${(h=s.tokens)==null?void 0:h.map(a).join("")}

    `:s.type==="space"?"":s.type==="html"?`${s.text}`:s.type==="escape"?s.text:(it.warn(`Unsupported markdown: ${s.type}`),s.raw)}return X(a,"output"),r.map(a).join("")}X(EBn,"markdownToHTML");function xBn(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}X(xBn,"splitTextToChars");function SBn(e,t){const r=xBn(t.content);return X1t(e,[],r,t.type)}X(SBn,"splitWordToFitWidth");function X1t(e,t,r,a){if(r.length===0)return[{content:t.join(""),type:a},{content:"",type:a}];const[s,...o]=r,u=[...t,s];return e([{content:u.join(""),type:a}])?X1t(e,u,o,a):(t.length===0&&s&&(t.push(s),r.shift()),[{content:t.join(""),type:a},{content:r.join(""),type:a}])}X(X1t,"splitWordToFitWidthRecursion");function TBn(e,t){if(e.some(({content:r})=>r.includes(` `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return $4e(e,t)}X(TBn,"splitLineToFitWidth");function $4e(e,t,r=[],a=[]){if(e.length===0)return a.length>0&&r.push(a),r.length>0?r:[];let s="";e[0].content===" "&&(s=" ",e.shift());const o=e.shift()??{content:" ",type:"normal"},u=[...a];if(s!==""&&u.push({content:s,type:"normal"}),u.push(o),t(u))return $4e(e,t,r,u);if(a.length>0)r.push(a),e.unshift(o);else if(o.content){const[h,f]=SBn(t,o);r.push([h]),f.content&&e.unshift(f)}return $4e(e,t,r)}X($4e,"splitLineToFitWidthRecursion");function tlt(e,t){t&&e.attr("style",t)}X(tlt,"applyStyle");async function CBn(e,t,r,a,s=!1,o=$c()){const u=e.append("foreignObject");u.attr("width",`${10*r}px`),u.attr("height",`${10*r}px`);const h=u.append("xhtml:div"),f=u0(t.label)?await nce(t.label.replace(Ti.lineBreakRegex,` `),o):Ic(t.label,o),p=t.isNode?"nodeLabel":"edgeLabel",m=h.append("span");m.html(f),tlt(m,t.labelStyle),m.attr("class",`${p} ${a}`),tlt(h,t.labelStyle),h.style("display","table-cell"),h.style("white-space","nowrap"),h.style("line-height","1.5"),h.style("max-width",r+"px"),h.style("text-align","center"),h.attr("xmlns","http://www.w3.org/1999/xhtml"),s&&h.attr("class","labelBkg");let b=h.node().getBoundingClientRect();return b.width===r&&(h.style("display","table"),h.style("white-space","break-spaces"),h.style("width",r+"px"),b=h.node().getBoundingClientRect()),u.node()}X(CBn,"addHtmlSpan");function CAe(e,t,r){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em")}X(CAe,"createTspan");function ABn(e,t,r){const a=e.append("text"),s=CAe(a,1,t);AAe(s,r);const o=s.node().getComputedTextLength();return a.remove(),o}X(ABn,"computeWidthOfText");function kBn(e,t,r){var u;const a=e.append("text"),s=CAe(a,1,t);AAe(s,[{content:r,type:"normal"}]);const o=(u=s.node())==null?void 0:u.getBoundingClientRect();return o&&a.remove(),o}X(kBn,"computeDimensionOfText");function RBn(e,t,r,a=!1){const o=t.append("g"),u=o.insert("rect").attr("class","background").attr("style","stroke: none"),h=o.append("text").attr("y","-10.1");let f=0;for(const p of r){const m=X(_=>ABn(o,1.1,_)<=e,"checkWidth"),b=m(p)?[p]:TBn(p,m);for(const _ of b){const w=CAe(h,f,1.1);AAe(w,_),f++}}if(a){const p=h.node().getBBox(),m=2;return u.attr("x",p.x-m).attr("y",p.y-m).attr("width",p.width+2*m).attr("height",p.height+2*m),o.node()}else return h.node()}X(RBn,"createFormattedText");function AAe(e,t){e.text(""),t.forEach((r,a)=>{const s=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");a===0?s.text(r.content):s.text(" "+r.content)})}X(AAe,"updateTextContentAndStyles");async function Q1t(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(s,o,u)=>(r.push((async()=>{const h=`${o}:${u}`;return await ipi(h)?await QO(h,void 0,{class:"label-icon"}):``})()),s));const a=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>a.shift()??"")}X(Q1t,"replaceIconSubstring");var Yw=X(async(e,t="",{style:r="",isTitle:a=!1,classes:s="",useHtmlLabels:o=!0,isNode:u=!0,width:h=200,addSvgBackground:f=!1}={},p)=>{if(it.debug("XYZ createText",t,r,a,s,o,u,"addSvgBackground: ",f),o){const m=EBn(t,p),b=await Q1t(vA(m),p),_=t.replace(/\\\\/g,"\\"),w={isNode:u,label:u0(t)?_:b,labelStyle:r.replace("fill:","color:")};return await CBn(e,w,h,s,f,p)}else{const m=t.replace(//g,"
    "),b=wBn(m.replace("
    ","
    "),p),_=RBn(h,e,b,t?f:!1);if(u){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const w=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");gn(_).attr("style",w)}else{const w=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");gn(_).select("rect").attr("style",w.replace(/background:/g,"fill:"));const S=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");gn(_).select("text").attr("style",S)}return _}},"createText");function Rtt(e,t,r){if(e&&e.length){const[a,s]=t,o=Math.PI/180*r,u=Math.cos(o),h=Math.sin(o);for(const f of e){const[p,m]=f;f[0]=(p-a)*u-(m-s)*h+a,f[1]=(p-a)*h+(m-s)*u+s}}}function api(e,t){return e[0]===t[0]&&e[1]===t[1]}function spi(e,t,r,a=1){const s=r,o=Math.max(t,.1),u=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,h=[0,0];if(s)for(const p of u)Rtt(p,h,s);const f=function(p,m,b){const _=[];for(const I of p){const N=[...I];api(N[0],N[N.length-1])||N.push([N[0][0],N[0][1]]),N.length>2&&_.push(N)}const w=[];m=Math.max(m,.1);const S=[];for(const I of _)for(let N=0;NI.yminN.ymin?1:I.xN.x?1:I.ymax===N.ymax?0:(I.ymax-N.ymax)/Math.abs(I.ymax-N.ymax)),!S.length)return w;let C=[],A=S[0].ymin,k=0;for(;C.length||S.length;){if(S.length){let I=-1;for(let N=0;NA);N++)I=N;S.splice(0,I+1).forEach(N=>{C.push({s:A,edge:N})})}if(C=C.filter(I=>!(I.edge.ymax<=A)),C.sort((I,N)=>I.edge.x===N.edge.x?0:(I.edge.x-N.edge.x)/Math.abs(I.edge.x-N.edge.x)),(b!==1||k%m==0)&&C.length>1)for(let I=0;I=C.length)break;const L=C[I].edge,P=C[N].edge;w.push([[Math.round(L.x),A],[Math.round(P.x),A]])}A+=b,C.forEach(I=>{I.edge.x=I.edge.x+b*I.edge.islope}),k++}return w}(u,o,a);if(s){for(const p of u)Rtt(p,h,-s);(function(p,m,b){const _=[];p.forEach(w=>_.push(...w)),Rtt(_,m,b)})(f,h,-s)}return f}function uce(e,t){var r;const a=t.hachureAngle+90;let s=t.hachureGap;s<0&&(s=4*t.strokeWidth),s=Math.round(Math.max(s,.1));let o=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(o=s),spi(e,s,a,o||1)}let Z1t=class{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const a=uce(t,r);return{type:"fillSketch",ops:this.renderLines(a,r)}}renderLines(t,r){const a=[];for(const s of t)a.push(...this.helper.doubleLineOps(s[0][0],s[0][1],s[1][0],s[1][1],r));return a}};function kAe(e){const t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class opi extends Z1t{fillPolygons(t,r){let a=r.hachureGap;a<0&&(a=4*r.strokeWidth),a=Math.max(a,.1);const s=uce(t,Object.assign({},r,{hachureGap:a})),o=Math.PI/180*r.hachureAngle,u=[],h=.5*a*Math.cos(o),f=.5*a*Math.sin(o);for(const[p,m]of s)kAe([p,m])&&u.push([[p[0]-h,p[1]+f],[...m]],[[p[0]+h,p[1]-f],[...m]]);return{type:"fillSketch",ops:this.renderLines(u,r)}}}let lpi=class extends Z1t{fillPolygons(t,r){const a=this._fillPolygons(t,r),s=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),o=this._fillPolygons(t,s);return a.ops=a.ops.concat(o.ops),a}},cpi=class{constructor(t){this.helper=t}fillPolygons(t,r){const a=uce(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(a,r)}dotsOnLines(t,r){const a=[];let s=r.hachureGap;s<0&&(s=4*r.strokeWidth),s=Math.max(s,.1);let o=r.fillWeight;o<0&&(o=r.strokeWidth/2);const u=s/4;for(const h of t){const f=kAe(h),p=f/s,m=Math.ceil(p)-1,b=f-m*s,_=(h[0][0]+h[1][0])/2-s/4,w=Math.min(h[0][1],h[1][1]);for(let S=0;S{const h=kAe(u),f=Math.floor(h/(a+s)),p=(h+s-f*(a+s))/2;let m=u[0],b=u[1];m[0]>b[0]&&(m=u[1],b=u[0]);const _=Math.atan((b[1]-m[1])/(b[0]-m[0]));for(let w=0;w{const u=kAe(o),h=Math.round(u/(2*r));let f=o[0],p=o[1];f[0]>p[0]&&(f=o[1],p=o[0]);const m=Math.atan((p[1]-f[1])/(p[0]-f[0]));for(let b=0;bm%2?p+r:p+t);o.push({key:"C",data:f}),t=f[4],r=f[5];break}case"Q":o.push({key:"Q",data:[...h]}),t=h[2],r=h[3];break;case"q":{const f=h.map((p,m)=>m%2?p+r:p+t);o.push({key:"Q",data:f}),t=f[2],r=f[3];break}case"A":o.push({key:"A",data:[...h]}),t=h[5],r=h[6];break;case"a":t+=h[5],r+=h[6],o.push({key:"A",data:[h[0],h[1],h[2],h[3],h[4],t,r]});break;case"H":o.push({key:"H",data:[...h]}),t=h[0];break;case"h":t+=h[0],o.push({key:"H",data:[t]});break;case"V":o.push({key:"V",data:[...h]}),r=h[0];break;case"v":r+=h[0],o.push({key:"V",data:[r]});break;case"S":o.push({key:"S",data:[...h]}),t=h[2],r=h[3];break;case"s":{const f=h.map((p,m)=>m%2?p+r:p+t);o.push({key:"S",data:f}),t=f[2],r=f[3];break}case"T":o.push({key:"T",data:[...h]}),t=h[0],r=h[1];break;case"t":t+=h[0],r+=h[1],o.push({key:"T",data:[t,r]});break;case"Z":case"z":o.push({key:"Z",data:[]}),t=a,r=s}return o}function NBn(e){const t=[];let r="",a=0,s=0,o=0,u=0,h=0,f=0;for(const{key:p,data:m}of e){switch(p){case"M":t.push({key:"M",data:[...m]}),[a,s]=m,[o,u]=m;break;case"C":t.push({key:"C",data:[...m]}),a=m[4],s=m[5],h=m[2],f=m[3];break;case"L":t.push({key:"L",data:[...m]}),[a,s]=m;break;case"H":a=m[0],t.push({key:"L",data:[a,s]});break;case"V":s=m[0],t.push({key:"L",data:[a,s]});break;case"S":{let b=0,_=0;r==="C"||r==="S"?(b=a+(a-h),_=s+(s-f)):(b=a,_=s),t.push({key:"C",data:[b,_,...m]}),h=m[0],f=m[1],a=m[2],s=m[3];break}case"T":{const[b,_]=m;let w=0,S=0;r==="Q"||r==="T"?(w=a+(a-h),S=s+(s-f)):(w=a,S=s);const C=a+2*(w-a)/3,A=s+2*(S-s)/3,k=b+2*(w-b)/3,I=_+2*(S-_)/3;t.push({key:"C",data:[C,A,k,I,b,_]}),h=w,f=S,a=b,s=_;break}case"Q":{const[b,_,w,S]=m,C=a+2*(b-a)/3,A=s+2*(_-s)/3,k=w+2*(b-w)/3,I=S+2*(_-S)/3;t.push({key:"C",data:[C,A,k,I,w,S]}),h=b,f=_,a=w,s=S;break}case"A":{const b=Math.abs(m[0]),_=Math.abs(m[1]),w=m[2],S=m[3],C=m[4],A=m[5],k=m[6];b===0||_===0?(t.push({key:"C",data:[a,s,A,k,A,k]}),a=A,s=k):(a!==A||s!==k)&&(OBn(a,s,A,k,b,_,w,S,C).forEach(function(I){t.push({key:"C",data:I})}),a=A,s=k);break}case"Z":t.push({key:"Z",data:[]}),a=o,s=u}r=p}return t}function Gre(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function OBn(e,t,r,a,s,o,u,h,f,p){const m=(b=u,Math.PI*b/180);var b;let _=[],w=0,S=0,C=0,A=0;if(p)[w,S,C,A]=p;else{[e,t]=Gre(e,t,-m),[r,a]=Gre(r,a,-m);const z=(e-r)/2,Y=(t-a)/2;let W=z*z/(s*s)+Y*Y/(o*o);W>1&&(W=Math.sqrt(W),s*=W,o*=W);const Q=s*s,V=o*o,j=Q*V-Q*Y*Y-V*z*z,ee=Q*Y*Y+V*z*z,te=(h===f?-1:1)*Math.sqrt(Math.abs(j/ee));C=te*s*Y/o+(e+r)/2,A=te*-o*z/s+(t+a)/2,w=Math.asin(parseFloat(((t-A)/o).toFixed(9))),S=Math.asin(parseFloat(((a-A)/o).toFixed(9))),eS&&(w-=2*Math.PI),!f&&S>w&&(S-=2*Math.PI)}let k=S-w;if(Math.abs(k)>120*Math.PI/180){const z=S,Y=r,W=a;S=f&&S>w?w+120*Math.PI/180*1:w+120*Math.PI/180*-1,_=OBn(r=C+s*Math.cos(S),a=A+o*Math.sin(S),Y,W,s,o,u,0,f,[S,z,C,A])}k=S-w;const I=Math.cos(w),N=Math.sin(w),L=Math.cos(S),P=Math.sin(S),M=Math.tan(k/4),F=4/3*s*M,U=4/3*o*M,$=[e,t],G=[e+F*N,t-U*I],B=[r+F*P,a-U*L],Z=[r,a];if(G[0]=2*$[0]-G[0],G[1]=2*$[1]-G[1],p)return[G,B,Z].concat(_);{_=[G,B,Z].concat(_);const z=[];for(let Y=0;Y<_.length;Y+=3){const W=Gre(_[Y][0],_[Y][1],m),Q=Gre(_[Y+1][0],_[Y+1][1],m),V=Gre(_[Y+2][0],_[Y+2][1],m);z.push([W[0],W[1],Q[0],Q[1],V[0],V[1]])}return z}}const ppi={randOffset:function(e,t){return yo(e,t)},randOffsetWithRange:function(e,t,r){return U4e(e,t,r)},ellipse:function(e,t,r,a,s){const o=DBn(r,a,s);return nlt(e,t,s,o).opset},doubleLineOps:function(e,t,r,a,s){return ZO(e,t,r,a,s,!0)}};function LBn(e,t,r,a,s){return{type:"path",ops:ZO(e,t,r,a,s)}}function oxe(e,t,r){const a=(e||[]).length;if(a>2){const s=[];for(let o=0;o2*Math.PI&&(w=0,S=2*Math.PI);const C=2*Math.PI/f.curveStepCount,A=Math.min(C/2,(S-w)/2),k=kvn(A,p,m,b,_,w,S,1,f);if(!f.disableMultiStroke){const I=kvn(A,p,m,b,_,w,S,1.5,f);k.push(...I)}return u&&(h?k.push(...ZO(p,m,p+b*Math.cos(w),m+_*Math.sin(w),f),...ZO(p,m,p+b*Math.cos(S),m+_*Math.sin(S),f)):k.push({op:"lineTo",data:[p,m]},{op:"lineTo",data:[p+b*Math.cos(w),m+_*Math.sin(w)]})),{type:"path",ops:k}}function Tvn(e,t){const r=NBn(IBn(J1t(e))),a=[];let s=[0,0],o=[0,0];for(const{key:u,data:h}of r)switch(u){case"M":o=[h[0],h[1]],s=[h[0],h[1]];break;case"L":a.push(...ZO(o[0],o[1],h[0],h[1],t)),o=[h[0],h[1]];break;case"C":{const[f,p,m,b,_,w]=h;a.push(...mpi(f,p,m,b,_,w,o,t)),o=[_,w];break}case"Z":a.push(...ZO(o[0],o[1],s[0],s[1],t)),o=[s[0],s[1]]}return{type:"path",ops:a}}function Ott(e,t){const r=[];for(const a of e)if(a.length){const s=t.maxRandomnessOffset||0,o=a.length;if(o>2){r.push({op:"move",data:[a[0][0]+yo(s,t),a[0][1]+yo(s,t)]});for(let u=1;u500?.4:-.0016668*f+1.233334;let m=s.maxRandomnessOffset||0;m*m*100>h&&(m=f/10);const b=m/2,_=.2+.2*MBn(s);let w=s.bowing*s.maxRandomnessOffset*(a-t)/200,S=s.bowing*s.maxRandomnessOffset*(e-r)/200;w=yo(w,s,p),S=yo(S,s,p);const C=[],A=()=>yo(b,s,p),k=()=>yo(m,s,p),I=s.preserveVertices;return u?C.push({op:"move",data:[e+(I?0:A()),t+(I?0:A())]}):C.push({op:"move",data:[e+(I?0:yo(m,s,p)),t+(I?0:yo(m,s,p))]}),u?C.push({op:"bcurveTo",data:[w+e+(r-e)*_+A(),S+t+(a-t)*_+A(),w+e+2*(r-e)*_+A(),S+t+2*(a-t)*_+A(),r+(I?0:A()),a+(I?0:A())]}):C.push({op:"bcurveTo",data:[w+e+(r-e)*_+k(),S+t+(a-t)*_+k(),w+e+2*(r-e)*_+k(),S+t+2*(a-t)*_+k(),r+(I?0:k()),a+(I?0:k())]}),C}function ewe(e,t,r){if(!e.length)return[];const a=[];a.push([e[0][0]+yo(t,r),e[0][1]+yo(t,r)]),a.push([e[0][0]+yo(t,r),e[0][1]+yo(t,r)]);for(let s=1;s3){const o=[],u=1-r.curveTightness;s.push({op:"move",data:[e[1][0],e[1][1]]});for(let h=1;h+21&&s.push(h)):s.push(h),s.push(e[t+3])}else{const f=e[t+0],p=e[t+1],m=e[t+2],b=e[t+3],_=kB(f,p,.5),w=kB(p,m,.5),S=kB(m,b,.5),C=kB(_,w,.5),A=kB(w,S,.5),k=kB(C,A,.5);ilt([f,_,C,k],0,r,s),ilt([k,A,S,b],0,r,s)}var o,u;return s}function ypi(e,t){return G4e(e,0,e.length,t)}function G4e(e,t,r,a,s){const o=s||[],u=e[t],h=e[r-1];let f=0,p=1;for(let m=t+1;mf&&(f=b,p=m)}return Math.sqrt(f)>a?(G4e(e,t,p+1,a,o),G4e(e,p,r,a,o)):(o.length||o.push(u),o.push(h)),o}function Ltt(e,t=.15,r){const a=[],s=(e.length-1)/3;for(let o=0;o0?G4e(a,0,a.length,r):a}const xw="none";let q4e=class{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,r,a){return{shape:t,sets:r||[],options:a||this.defaultOptions}}line(t,r,a,s,o){const u=this._o(o);return this._d("line",[LBn(t,r,a,s,u)],u)}rectangle(t,r,a,s,o){const u=this._o(o),h=[],f=gpi(t,r,a,s,u);if(u.fill){const p=[[t,r],[t+a,r],[t+a,r+s],[t,r+s]];u.fillStyle==="solid"?h.push(Ott([p],u)):h.push(UH([p],u))}return u.stroke!==xw&&h.push(f),this._d("rectangle",h,u)}ellipse(t,r,a,s,o){const u=this._o(o),h=[],f=DBn(a,s,u),p=nlt(t,r,u,f);if(u.fill)if(u.fillStyle==="solid"){const m=nlt(t,r,u,f).opset;m.type="fillPath",h.push(m)}else h.push(UH([p.estimatedPoints],u));return u.stroke!==xw&&h.push(p.opset),this._d("ellipse",h,u)}circle(t,r,a,s){const o=this.ellipse(t,r,a,a,s);return o.shape="circle",o}linearPath(t,r){const a=this._o(r);return this._d("linearPath",[oxe(t,!1,a)],a)}arc(t,r,a,s,o,u,h=!1,f){const p=this._o(f),m=[],b=Svn(t,r,a,s,o,u,h,!0,p);if(h&&p.fill)if(p.fillStyle==="solid"){const _=Object.assign({},p);_.disableMultiStroke=!0;const w=Svn(t,r,a,s,o,u,!0,!1,_);w.type="fillPath",m.push(w)}else m.push(function(_,w,S,C,A,k,I){const N=_,L=w;let P=Math.abs(S/2),M=Math.abs(C/2);P+=yo(.01*P,I),M+=yo(.01*M,I);let F=A,U=k;for(;F<0;)F+=2*Math.PI,U+=2*Math.PI;U-F>2*Math.PI&&(F=0,U=2*Math.PI);const $=(U-F)/I.curveStepCount,G=[];for(let B=F;B<=U;B+=$)G.push([N+P*Math.cos(B),L+M*Math.sin(B)]);return G.push([N+P*Math.cos(U),L+M*Math.sin(U)]),G.push([N,L]),UH([G],I)}(t,r,a,s,o,u,p));return p.stroke!==xw&&m.push(b),this._d("arc",m,p)}curve(t,r){const a=this._o(r),s=[],o=xvn(t,a);if(a.fill&&a.fill!==xw)if(a.fillStyle==="solid"){const u=xvn(t,Object.assign(Object.assign({},a),{disableMultiStroke:!0,roughness:a.roughness?a.roughness+a.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(u.ops)})}else{const u=[],h=t;if(h.length){const f=typeof h[0][0]=="number"?[h]:h;for(const p of f)p.length<3?u.push(...p):p.length===3?u.push(...Ltt(Rvn([p[0],p[0],p[1],p[2]]),10,(1+a.roughness)/2)):u.push(...Ltt(Rvn(p),10,(1+a.roughness)/2))}u.length&&s.push(UH([u],a))}return a.stroke!==xw&&s.push(o),this._d("curve",s,a)}polygon(t,r){const a=this._o(r),s=[],o=oxe(t,!0,a);return a.fill&&(a.fillStyle==="solid"?s.push(Ott([t],a)):s.push(UH([t],a))),a.stroke!==xw&&s.push(o),this._d("polygon",s,a)}path(t,r){const a=this._o(r),s=[];if(!t)return this._d("path",s,a);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=a.fill&&a.fill!=="transparent"&&a.fill!==xw,u=a.stroke!==xw,h=!!(a.simplification&&a.simplification<1),f=function(m,b,_){const w=NBn(IBn(J1t(m))),S=[];let C=[],A=[0,0],k=[];const I=()=>{k.length>=4&&C.push(...Ltt(k,b)),k=[]},N=()=>{I(),C.length&&(S.push(C),C=[])};for(const{key:P,data:M}of w)switch(P){case"M":N(),A=[M[0],M[1]],C.push(A);break;case"L":I(),C.push([M[0],M[1]]);break;case"C":if(!k.length){const F=C.length?C[C.length-1]:A;k.push([F[0],F[1]])}k.push([M[0],M[1]]),k.push([M[2],M[3]]),k.push([M[4],M[5]]);break;case"Z":I(),C.push([A[0],A[1]])}if(N(),!_)return S;const L=[];for(const P of S){const M=ypi(P,_);M.length&&L.push(M)}return L}(t,1,h?4-4*(a.simplification||1):(1+a.roughness)/2),p=Tvn(t,a);if(o)if(a.fillStyle==="solid")if(f.length===1){const m=Tvn(t,Object.assign(Object.assign({},a),{disableMultiStroke:!0,roughness:a.roughness?a.roughness+a.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(m.ops)})}else s.push(Ott(f,a));else s.push(UH(f,a));return u&&(h?f.forEach(m=>{s.push(oxe(m,!1,a))}):s.push(p)),this._d("path",s,a)}opsToPath(t,r){let a="";for(const s of t.ops){const o=typeof r=="number"&&r>=0?s.data.map(u=>+u.toFixed(r)):s.data;switch(s.op){case"move":a+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":a+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":a+=`L${o[0]} ${o[1]} `}}return a.trim()}toPaths(t){const r=t.sets||[],a=t.options||this.defaultOptions,s=[];for(const o of r){let u=null;switch(o.type){case"path":u={d:this.opsToPath(o),stroke:a.stroke,strokeWidth:a.strokeWidth,fill:xw};break;case"fillPath":u={d:this.opsToPath(o),stroke:xw,strokeWidth:0,fill:a.fill||xw};break;case"fillSketch":u=this.fillSketch(o,a)}u&&s.push(u)}return s}fillSketch(t,r){let a=r.fillWeight;return a<0&&(a=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||xw,strokeWidth:a,fill:xw}}_mergedShape(t){return t.filter((r,a)=>a===0||r.op!=="move")}},vpi=class{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new q4e(r)}draw(t){const r=t.sets||[],a=t.options||this.getDefaultOptions(),s=this.ctx,o=t.options.fixedDecimalPlaceDigits;for(const u of r)switch(u.type){case"path":s.save(),s.strokeStyle=a.stroke==="none"?"transparent":a.stroke,s.lineWidth=a.strokeWidth,a.strokeLineDash&&s.setLineDash(a.strokeLineDash),a.strokeLineDashOffset&&(s.lineDashOffset=a.strokeLineDashOffset),this._drawToContext(s,u,o),s.restore();break;case"fillPath":{s.save(),s.fillStyle=a.fill||"";const h=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(s,u,o,h),s.restore();break}case"fillSketch":this.fillSketch(s,u,a)}}fillSketch(t,r,a){let s=a.fillWeight;s<0&&(s=a.strokeWidth/2),t.save(),a.fillLineDash&&t.setLineDash(a.fillLineDash),a.fillLineDashOffset&&(t.lineDashOffset=a.fillLineDashOffset),t.strokeStyle=a.fill||"",t.lineWidth=s,this._drawToContext(t,r,a.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,a,s="nonzero"){t.beginPath();for(const o of r.ops){const u=typeof a=="number"&&a>=0?o.data.map(h=>+h.toFixed(a)):o.data;switch(o.op){case"move":t.moveTo(u[0],u[1]);break;case"bcurveTo":t.bezierCurveTo(u[0],u[1],u[2],u[3],u[4],u[5]);break;case"lineTo":t.lineTo(u[0],u[1])}}r.type==="fillPath"?t.fill(s):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,a,s,o){const u=this.gen.line(t,r,a,s,o);return this.draw(u),u}rectangle(t,r,a,s,o){const u=this.gen.rectangle(t,r,a,s,o);return this.draw(u),u}ellipse(t,r,a,s,o){const u=this.gen.ellipse(t,r,a,s,o);return this.draw(u),u}circle(t,r,a,s){const o=this.gen.circle(t,r,a,s);return this.draw(o),o}linearPath(t,r){const a=this.gen.linearPath(t,r);return this.draw(a),a}polygon(t,r){const a=this.gen.polygon(t,r);return this.draw(a),a}arc(t,r,a,s,o,u,h=!1,f){const p=this.gen.arc(t,r,a,s,o,u,h,f);return this.draw(p),p}curve(t,r){const a=this.gen.curve(t,r);return this.draw(a),a}path(t,r){const a=this.gen.path(t,r);return this.draw(a),a}};const twe="http://www.w3.org/2000/svg";let _pi=class{constructor(t,r){this.svg=t,this.gen=new q4e(r)}draw(t){const r=t.sets||[],a=t.options||this.getDefaultOptions(),s=this.svg.ownerDocument||window.document,o=s.createElementNS(twe,"g"),u=t.options.fixedDecimalPlaceDigits;for(const h of r){let f=null;switch(h.type){case"path":f=s.createElementNS(twe,"path"),f.setAttribute("d",this.opsToPath(h,u)),f.setAttribute("stroke",a.stroke),f.setAttribute("stroke-width",a.strokeWidth+""),f.setAttribute("fill","none"),a.strokeLineDash&&f.setAttribute("stroke-dasharray",a.strokeLineDash.join(" ").trim()),a.strokeLineDashOffset&&f.setAttribute("stroke-dashoffset",`${a.strokeLineDashOffset}`);break;case"fillPath":f=s.createElementNS(twe,"path"),f.setAttribute("d",this.opsToPath(h,u)),f.setAttribute("stroke","none"),f.setAttribute("stroke-width","0"),f.setAttribute("fill",a.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||f.setAttribute("fill-rule","evenodd");break;case"fillSketch":f=this.fillSketch(s,h,a)}f&&o.appendChild(f)}return o}fillSketch(t,r,a){let s=a.fillWeight;s<0&&(s=a.strokeWidth/2);const o=t.createElementNS(twe,"path");return o.setAttribute("d",this.opsToPath(r,a.fixedDecimalPlaceDigits)),o.setAttribute("stroke",a.fill||""),o.setAttribute("stroke-width",s+""),o.setAttribute("fill","none"),a.fillLineDash&&o.setAttribute("stroke-dasharray",a.fillLineDash.join(" ").trim()),a.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${a.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,a,s,o){const u=this.gen.line(t,r,a,s,o);return this.draw(u)}rectangle(t,r,a,s,o){const u=this.gen.rectangle(t,r,a,s,o);return this.draw(u)}ellipse(t,r,a,s,o){const u=this.gen.ellipse(t,r,a,s,o);return this.draw(u)}circle(t,r,a,s){const o=this.gen.circle(t,r,a,s);return this.draw(o)}linearPath(t,r){const a=this.gen.linearPath(t,r);return this.draw(a)}polygon(t,r){const a=this.gen.polygon(t,r);return this.draw(a)}arc(t,r,a,s,o,u,h=!1,f){const p=this.gen.arc(t,r,a,s,o,u,h,f);return this.draw(p)}curve(t,r){const a=this.gen.curve(t,r);return this.draw(a)}path(t,r){const a=this.gen.path(t,r);return this.draw(a)}};var Wa={canvas:(e,t)=>new vpi(e,t),svg:(e,t)=>new _pi(e,t),generator:e=>new q4e(e),newSeed:()=>q4e.newSeed()},oo=X(async(e,t,r)=>{var b,_;let a;const s=t.useHtmlLabels||nh((b=nn())==null?void 0:b.htmlLabels);r?a=r:a="node default";const o=e.insert("g").attr("class",a).attr("id",t.domId||t.id),u=o.insert("g").attr("class","label").attr("style",Tb(t.labelStyle));let h;t.label===void 0?h="":h=typeof t.label=="string"?t.label:t.label[0];const f=await Yw(u,Ic(vA(h),nn()),{useHtmlLabels:s,width:t.width||((_=nn().flowchart)==null?void 0:_.wrappingWidth),cssClasses:"markdown-node-label",style:t.labelStyle,addSvgBackground:!!t.icon||!!t.img});let p=f.getBBox();const m=((t==null?void 0:t.padding)??0)/2;if(s){const w=f.children[0],S=gn(f),C=w.getElementsByTagName("img");if(C){const A=h.replace(/]*>/g,"").trim()==="";await Promise.all([...C].map(k=>new Promise(I=>{function N(){if(k.style.display="flex",k.style.flexDirection="column",A){const L=nn().fontSize?nn().fontSize:window.getComputedStyle(document.body).fontSize,P=5,[M=Cc.fontSize]=N$(L),F=M*P+"px";k.style.minWidth=F,k.style.maxWidth=F}else k.style.width="100%";I(k)}X(N,"setupImage"),setTimeout(()=>{k.complete&&N()}),k.addEventListener("error",N),k.addEventListener("load",N)})))}p=w.getBoundingClientRect(),S.attr("width",p.width),S.attr("height",p.height)}return s?u.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"):u.attr("transform","translate(0, "+-p.height/2+")"),t.centerLabel&&u.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),u.insert("rect",":first-child"),{shapeSvg:o,bbox:p,halfPadding:m,label:u}},"labelHelper"),Dtt=X(async(e,t,r)=>{var f,p,m,b,_,w;const a=r.useHtmlLabels||nh((p=(f=nn())==null?void 0:f.flowchart)==null?void 0:p.htmlLabels),s=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),o=await Yw(s,Ic(vA(t),nn()),{useHtmlLabels:a,width:r.width||((b=(m=nn())==null?void 0:m.flowchart)==null?void 0:b.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let u=o.getBBox();const h=r.padding/2;if(nh((w=(_=nn())==null?void 0:_.flowchart)==null?void 0:w.htmlLabels)){const S=o.children[0],C=gn(o);u=S.getBoundingClientRect(),C.attr("width",u.width),C.attr("height",u.height)}return a?s.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"):s.attr("transform","translate(0, "+-u.height/2+")"),r.centerLabel&&s.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:e,bbox:u,halfPadding:h,label:s}},"insertLabel"),es=X((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),Ys=X((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function hc(e){const t=e.map((r,a)=>`${a===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}X(hc,"createPathFromPoints");function JO(e,t,r,a,s,o){const u=[],f=r-e,p=a-t,m=f/o,b=2*Math.PI/m,_=t+p/2;for(let w=0;w<=50;w++){const S=w/50,C=e+S*f,A=_+s*Math.sin(b*(C-e));u.push({x:C,y:A})}return u}X(JO,"generateFullSineWavePoints");function Soe(e,t,r,a,s,o){const u=[],h=s*Math.PI/180,m=(o*Math.PI/180-h)/(a-1);for(let b=0;b{var r=e.x,a=e.y,s=t.x-r,o=t.y-a,u=e.width/2,h=e.height/2,f,p;return Math.abs(o)*u>Math.abs(s)*h?(o<0&&(h=-h),f=o===0?0:h*s/o,p=h):(s<0&&(u=-u),f=u,p=s===0?0:u*o/s),{x:r+f,y:a+p}},"intersectRect"),FW=wpi;function PBn(e,t){t&&e.attr("style",t)}X(PBn,"applyStyle");async function BBn(e){const t=gn(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div"),a=nn();let s=e.label;e.label&&u0(e.label)&&(s=await nce(e.label.replace(Ti.lineBreakRegex,` `),a));const u='"+s+"";return r.html(Ic(u,a)),PBn(r,e.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}X(BBn,"addHtmlLabel");var Epi=X(async(e,t,r,a)=>{let s=e||"";if(typeof s=="object"&&(s=s[0]),nh(nn().flowchart.htmlLabels)){s=s.replace(/\\n|\n/g,"
    "),it.info("vertexText"+s);const o={isNode:a,label:vA(s).replace(/fa[blrs]?:fa-[\w-]+/g,h=>``),labelStyle:t&&t.replace("fill:","color:")};return await BBn(o)}else{const o=document.createElementNS("http://www.w3.org/2000/svg","text");o.setAttribute("style",t.replace("color:","fill:"));let u=[];typeof s=="string"?u=s.split(/\\n|\n|/gi):Array.isArray(s)?u=s:u=[];for(const h of u){const f=document.createElementNS("http://www.w3.org/2000/svg","tspan");f.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),f.setAttribute("dy","1em"),f.setAttribute("x","0"),r?f.setAttribute("class","title-row"):f.setAttribute("class","row"),f.textContent=h.trim(),o.appendChild(f)}return o}},"createLabel"),tF=Epi,B9=X((e,t,r,a,s)=>["M",e+s,t,"H",e+r-s,"A",s,s,0,0,1,e+r,t+s,"V",t+a-s,"A",s,s,0,0,1,e+r-s,t+a,"H",e+s,"A",s,s,0,0,1,e,t+a-s,"V",t+s,"A",s,s,0,0,1,e+s,t,"Z"].join(" "),"createRoundedRectPathD"),FBn=X(async(e,t)=>{it.info("Creating subgraph rect for ",t.id,t);const r=nn(),{themeVariables:a,handDrawnSeed:s}=r,{clusterBkg:o,clusterBorder:u}=a,{labelStyles:h,nodeStyles:f,borderStyles:p,backgroundStyles:m}=Ia(t),b=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),_=nh(r.flowchart.htmlLabels),w=b.insert("g").attr("class","cluster-label "),S=await Yw(w,t.label,{style:t.labelStyle,useHtmlLabels:_,isNode:!0});let C=S.getBBox();if(nh(r.flowchart.htmlLabels)){const F=S.children[0],U=gn(S);C=F.getBoundingClientRect(),U.attr("width",C.width),U.attr("height",C.height)}const A=t.width<=C.width+t.padding?C.width+t.padding:t.width;t.width<=C.width+t.padding?t.diff=(A-t.width)/2-t.padding:t.diff=-t.padding;const k=t.height,I=t.x-A/2,N=t.y-k/2;it.trace("Data ",t,JSON.stringify(t));let L;if(t.look==="handDrawn"){const F=Wa.svg(b),U=Ja(t,{roughness:.7,fill:o,stroke:u,fillWeight:3,seed:s}),$=F.path(B9(I,N,A,k,0),U);L=b.insert(()=>(it.debug("Rough node insert CXC",$),$),":first-child"),L.select("path:nth-child(2)").attr("style",p.join(";")),L.select("path").attr("style",m.join(";").replace("fill","stroke"))}else L=b.insert("rect",":first-child"),L.attr("style",f).attr("rx",t.rx).attr("ry",t.ry).attr("x",I).attr("y",N).attr("width",A).attr("height",k);const{subGraphTitleTopMargin:P}=oce(r);if(w.attr("transform",`translate(${t.x-C.width/2}, ${t.y-t.height/2+P})`),h){const F=w.select("span");F&&F.attr("style",h)}const M=L.node().getBBox();return t.offsetX=0,t.width=M.width,t.height=M.height,t.offsetY=C.height-t.padding/2,t.intersect=function(F){return FW(t,F)},{cluster:b,labelBBox:C}},"rect"),xpi=X((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.id),a=r.insert("rect",":first-child"),s=0*t.padding,o=s/2;a.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2-o).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const u=a.node().getBBox();return t.width=u.width,t.height=u.height,t.intersect=function(h){return FW(t,h)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),Spi=X(async(e,t)=>{const r=nn(),{themeVariables:a,handDrawnSeed:s}=r,{altBackground:o,compositeBackground:u,compositeTitleBackground:h,nodeBorder:f}=a,p=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-id",t.id).attr("data-look",t.look),m=p.insert("g",":first-child"),b=p.insert("g").attr("class","cluster-label");let _=p.append("rect");const w=b.node().appendChild(await tF(t.label,t.labelStyle,void 0,!0));let S=w.getBBox();if(nh(r.flowchart.htmlLabels)){const $=w.children[0],G=gn(w);S=$.getBoundingClientRect(),G.attr("width",S.width),G.attr("height",S.height)}const C=0*t.padding,A=C/2,k=(t.width<=S.width+t.padding?S.width+t.padding:t.width)+C;t.width<=S.width+t.padding?t.diff=(k-t.width)/2-t.padding:t.diff=-t.padding;const I=t.height+C,N=t.height+C-S.height-6,L=t.x-k/2,P=t.y-I/2;t.width=k;const M=t.y-t.height/2-A+S.height+2;let F;if(t.look==="handDrawn"){const $=t.cssClasses.includes("statediagram-cluster-alt"),G=Wa.svg(p),B=t.rx||t.ry?G.path(B9(L,P,k,I,10),{roughness:.7,fill:h,fillStyle:"solid",stroke:f,seed:s}):G.rectangle(L,P,k,I,{seed:s});F=p.insert(()=>B,":first-child");const Z=G.rectangle(L,M,k,N,{fill:$?o:u,fillStyle:$?"hachure":"solid",stroke:f,seed:s});F=p.insert(()=>B,":first-child"),_=p.insert(()=>Z)}else F=m.insert("rect",":first-child"),F.attr("class","outer").attr("x",L).attr("y",P).attr("width",k).attr("height",I).attr("data-look",t.look),_.attr("class","inner").attr("x",L).attr("y",M).attr("width",k).attr("height",N);b.attr("transform",`translate(${t.x-S.width/2}, ${P+1-(nh(r.flowchart.htmlLabels)?0:3)})`);const U=F.node().getBBox();return t.height=U.height,t.offsetX=0,t.offsetY=S.height-t.padding/2,t.labelBBox=S,t.intersect=function($){return FW(t,$)},{cluster:p,labelBBox:S}},"roundedWithTitle"),Tpi=X(async(e,t)=>{it.info("Creating subgraph rect for ",t.id,t);const r=nn(),{themeVariables:a,handDrawnSeed:s}=r,{clusterBkg:o,clusterBorder:u}=a,{labelStyles:h,nodeStyles:f,borderStyles:p,backgroundStyles:m}=Ia(t),b=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),_=nh(r.flowchart.htmlLabels),w=b.insert("g").attr("class","cluster-label "),S=await Yw(w,t.label,{style:t.labelStyle,useHtmlLabels:_,isNode:!0,width:t.width});let C=S.getBBox();if(nh(r.flowchart.htmlLabels)){const F=S.children[0],U=gn(S);C=F.getBoundingClientRect(),U.attr("width",C.width),U.attr("height",C.height)}const A=t.width<=C.width+t.padding?C.width+t.padding:t.width;t.width<=C.width+t.padding?t.diff=(A-t.width)/2-t.padding:t.diff=-t.padding;const k=t.height,I=t.x-A/2,N=t.y-k/2;it.trace("Data ",t,JSON.stringify(t));let L;if(t.look==="handDrawn"){const F=Wa.svg(b),U=Ja(t,{roughness:.7,fill:o,stroke:u,fillWeight:4,seed:s}),$=F.path(B9(I,N,A,k,t.rx),U);L=b.insert(()=>(it.debug("Rough node insert CXC",$),$),":first-child"),L.select("path:nth-child(2)").attr("style",p.join(";")),L.select("path").attr("style",m.join(";").replace("fill","stroke"))}else L=b.insert("rect",":first-child"),L.attr("style",f).attr("rx",t.rx).attr("ry",t.ry).attr("x",I).attr("y",N).attr("width",A).attr("height",k);const{subGraphTitleTopMargin:P}=oce(r);if(w.attr("transform",`translate(${t.x-C.width/2}, ${t.y-t.height/2+P})`),h){const F=w.select("span");F&&F.attr("style",h)}const M=L.node().getBBox();return t.offsetX=0,t.width=M.width,t.height=M.height,t.offsetY=C.height-t.padding/2,t.intersect=function(F){return FW(t,F)},{cluster:b,labelBBox:C}},"kanbanSection"),Cpi=X((e,t)=>{const r=nn(),{themeVariables:a,handDrawnSeed:s}=r,{nodeBorder:o}=a,u=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-look",t.look),h=u.insert("g",":first-child"),f=0*t.padding,p=t.width+f;t.diff=-t.padding;const m=t.height+f,b=t.x-p/2,_=t.y-m/2;t.width=p;let w;if(t.look==="handDrawn"){const A=Wa.svg(u).rectangle(b,_,p,m,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:o,seed:s});w=u.insert(()=>A,":first-child")}else w=h.insert("rect",":first-child"),w.attr("class","divider").attr("x",b).attr("y",_).attr("width",p).attr("height",m).attr("data-look",t.look);const S=w.node().getBBox();return t.height=S.height,t.offsetX=0,t.offsetY=0,t.intersect=function(C){return FW(t,C)},{cluster:u,labelBBox:{}}},"divider"),Api=FBn,kpi={rect:FBn,squareRect:Api,roundedWithTitle:Spi,noteGroup:xpi,divider:Cpi,kanbanSection:Tpi},$Bn=new Map,ept=X(async(e,t)=>{const r=t.shape||"rect",a=await kpi[r](e,t);return $Bn.set(t.id,a),a},"insertCluster"),Rpi=X(()=>{$Bn=new Map},"clear");function UBn(e,t){return e.intersect(t)}X(UBn,"intersectNode");var Ipi=UBn;function zBn(e,t,r,a){var s=e.x,o=e.y,u=s-a.x,h=o-a.y,f=Math.sqrt(t*t*h*h+r*r*u*u),p=Math.abs(t*r*u/f);a.x0}X(alt,"sameSign");var Opi=HBn;function VBn(e,t,r){let a=e.x,s=e.y,o=[],u=Number.POSITIVE_INFINITY,h=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(m){u=Math.min(u,m.x),h=Math.min(h,m.y)}):(u=Math.min(u,t.x),h=Math.min(h,t.y));let f=a-e.width/2-u,p=s-e.height/2-h;for(let m=0;m1&&o.sort(function(m,b){let _=m.x-r.x,w=m.y-r.y,S=Math.sqrt(_*_+w*w),C=b.x-r.x,A=b.y-r.y,k=Math.sqrt(C*C+A*A);return Sm,":first-child");return b.attr("class","anchor").attr("style",Tb(h)),es(t,b),t.intersect=function(_){return it.info("Circle intersect",t,u,_),Sa.circle(t,u,_)},o}X(YBn,"anchor");function slt(e,t,r,a,s,o,u){const f=(e+r)/2,p=(t+a)/2,m=Math.atan2(a-t,r-e),b=(r-e)/2,_=(a-t)/2,w=b/s,S=_/o,C=Math.sqrt(w**2+S**2);if(C>1)throw new Error("The given radii are too small to create an arc between the points.");const A=Math.sqrt(1-C**2),k=f+A*o*Math.sin(m)*(u?-1:1),I=p-A*s*Math.cos(m)*(u?-1:1),N=Math.atan2((t-I)/o,(e-k)/s);let P=Math.atan2((a-I)/o,(r-k)/s)-N;u&&P<0&&(P+=2*Math.PI),!u&&P>0&&(P-=2*Math.PI);const M=[];for(let F=0;F<20;F++){const U=F/19,$=N+U*P,G=k+s*Math.cos($),B=I+o*Math.sin($);M.push({x:G,y:B})}return M}X(slt,"generateArcPoints");async function jBn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=o.width+t.padding+20,h=o.height+t.padding,f=h/2,p=f/(2.5+h/50),{cssStyles:m}=t,b=[{x:u/2,y:-h/2},{x:-u/2,y:-h/2},...slt(-u/2,-h/2,-u/2,h/2,p,f,!1),{x:u/2,y:h/2},...slt(u/2,h/2,u/2,-h/2,p,f,!0)],_=Wa.svg(s),w=Ja(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=hc(b),C=_.path(S,w),A=s.insert(()=>C,":first-child");return A.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",m),a&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",a),A.attr("transform",`translate(${p/2}, 0)`),es(t,A),t.intersect=function(k){return Sa.polygon(t,b,k)},s}X(jBn,"bowTieRect");function F9(e,t,r,a){return e.insert("polygon",":first-child").attr("points",a.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}X(F9,"insertPolygonShape");async function WBn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=o.height+t.padding,h=12,f=o.width+t.padding+h,p=0,m=f,b=-u,_=0,w=[{x:p+h,y:b},{x:m,y:b},{x:m,y:_},{x:p,y:_},{x:p,y:b+h},{x:p+h,y:b}];let S;const{cssStyles:C}=t;if(t.look==="handDrawn"){const A=Wa.svg(s),k=Ja(t,{}),I=hc(w),N=A.path(I,k);S=s.insert(()=>N,":first-child").attr("transform",`translate(${-f/2}, ${u/2})`),C&&S.attr("style",C)}else S=F9(s,f,u,w);return a&&S.attr("style",a),es(t,S),t.intersect=function(A){return Sa.polygon(t,w,A)},s}X(WBn,"card");function KBn(e,t){const{nodeStyles:r}=Ia(t);t.label="";const a=e.insert("g").attr("class",Ys(t)).attr("id",t.domId??t.id),{cssStyles:s}=t,o=Math.max(28,t.width??0),u=[{x:0,y:o/2},{x:o/2,y:0},{x:0,y:-o/2},{x:-o/2,y:0}],h=Wa.svg(a),f=Ja(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const p=hc(u),m=h.path(p,f),b=a.insert(()=>m,":first-child");return s&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",s),r&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(_){return Sa.polygon(t,u,_)},a}X(KBn,"choice");async function tpt(e,t,r){const{labelStyles:a,nodeStyles:s}=Ia(t);t.labelStyle=a;const{shapeSvg:o,bbox:u,halfPadding:h}=await oo(e,t,Ys(t)),f=(r==null?void 0:r.padding)??h,p=u.width/2+f;let m;const{cssStyles:b}=t;if(t.look==="handDrawn"){const _=Wa.svg(o),w=Ja(t,{}),S=_.circle(0,0,p*2,w);m=o.insert(()=>S,":first-child"),m.attr("class","basic label-container").attr("style",Tb(b))}else m=o.insert("circle",":first-child").attr("class","basic label-container").attr("style",s).attr("r",p).attr("cx",0).attr("cy",0);return es(t,m),t.calcIntersect=function(_,w){const S=_.width/2;return Sa.circle(_,S,w)},t.intersect=function(_){return it.info("Circle intersect",t,p,_),Sa.circle(t,p,_)},o}X(tpt,"circle");function XBn(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),a=e*2,s={x:a/2*t,y:a/2*r},o={x:-(a/2)*t,y:a/2*r},u={x:-(a/2)*t,y:-(a/2)*r},h={x:a/2*t,y:-(a/2)*r};return`M ${o.x},${o.y} L ${h.x},${h.y} M ${s.x},${s.y} L ${u.x},${u.y}`}X(XBn,"createLine");function QBn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r,t.label="";const s=e.insert("g").attr("class",Ys(t)).attr("id",t.domId??t.id),o=Math.max(30,(t==null?void 0:t.width)??0),{cssStyles:u}=t,h=Wa.svg(s),f=Ja(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const p=h.circle(0,0,o*2,f),m=XBn(o),b=h.path(m,f),_=s.insert(()=>p,":first-child");return _.insert(()=>b),u&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",u),a&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",a),es(t,_),t.intersect=function(w){return it.info("crossedCircle intersect",t,{radius:o,point:w}),Sa.circle(t,o,w)},s}X(QBn,"crossedCircle");function i7(e,t,r,a=100,s=0,o=180){const u=[],h=s*Math.PI/180,m=(o*Math.PI/180-h)/(a-1);for(let b=0;bN,":first-child").attr("stroke-opacity",0),L.insert(()=>k,":first-child"),L.attr("class","text"),m&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",m),a&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",a),L.attr("transform",`translate(${p}, 0)`),u.attr("transform",`translate(${-h/2+p-(o.x-(o.left??0))},${-f/2+(t.padding??0)/2-(o.y-(o.top??0))})`),es(t,L),t.intersect=function(P){return Sa.polygon(t,_,P)},s}X(ZBn,"curlyBraceLeft");function a7(e,t,r,a=100,s=0,o=180){const u=[],h=s*Math.PI/180,m=(o*Math.PI/180-h)/(a-1);for(let b=0;bN,":first-child").attr("stroke-opacity",0),L.insert(()=>k,":first-child"),L.attr("class","text"),m&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",m),a&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",a),L.attr("transform",`translate(${-p}, 0)`),u.attr("transform",`translate(${-h/2+(t.padding??0)/2-(o.x-(o.left??0))},${-f/2+(t.padding??0)/2-(o.y-(o.top??0))})`),es(t,L),t.intersect=function(P){return Sa.polygon(t,_,P)},s}X(JBn,"curlyBraceRight");function um(e,t,r,a=100,s=0,o=180){const u=[],h=s*Math.PI/180,m=(o*Math.PI/180-h)/(a-1);for(let b=0;bF,":first-child").attr("stroke-opacity",0),U.insert(()=>I,":first-child"),U.insert(()=>P,":first-child"),U.attr("class","text"),m&&t.look!=="handDrawn"&&U.selectAll("path").attr("style",m),a&&t.look!=="handDrawn"&&U.selectAll("path").attr("style",a),U.attr("transform",`translate(${p-p/4}, 0)`),u.attr("transform",`translate(${-h/2+(t.padding??0)/2-(o.x-(o.left??0))},${-f/2+(t.padding??0)/2-(o.y-(o.top??0))})`),es(t,U),t.intersect=function($){return Sa.polygon(t,w,$)},s}X(eFn,"curlyBraces");async function tFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=80,h=20,f=Math.max(u,(o.width+(t.padding??0)*2)*1.25,(t==null?void 0:t.width)??0),p=Math.max(h,o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),m=p/2,{cssStyles:b}=t,_=Wa.svg(s),w=Ja(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=f,C=p,A=S-m,k=C/4,I=[{x:A,y:0},{x:k,y:0},{x:0,y:C/2},{x:k,y:C},{x:A,y:C},...Soe(-A,-C/2,m,50,270,90)],N=hc(I),L=_.path(N,w),P=s.insert(()=>L,":first-child");return P.attr("class","basic label-container"),b&&t.look!=="handDrawn"&&P.selectChildren("path").attr("style",b),a&&t.look!=="handDrawn"&&P.selectChildren("path").attr("style",a),P.attr("transform",`translate(${-f/2}, ${-p/2})`),es(t,P),t.intersect=function(M){return Sa.polygon(t,I,M)},s}X(tFn,"curvedTrapezoid");var Dpi=X((e,t,r,a,s,o)=>[`M${e},${t+o}`,`a${s},${o} 0,0,0 ${r},0`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${a}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-a}`].join(" "),"createCylinderPathD"),Mpi=X((e,t,r,a,s,o)=>[`M${e},${t+o}`,`M${e+r},${t+o}`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${a}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-a}`].join(" "),"createOuterCylinderPathD"),Ppi=X((e,t,r,a,s,o)=>[`M${e-r/2},${-a/2}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function nFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=Math.max(o.width+t.padding,t.width??0),f=h/2,p=f/(2.5+h/50),m=Math.max(o.height+p+t.padding,t.height??0);let b;const{cssStyles:_}=t;if(t.look==="handDrawn"){const w=Wa.svg(s),S=Mpi(0,0,h,m,f,p),C=Ppi(0,p,h,m,f,p),A=w.path(S,Ja(t,{})),k=w.path(C,Ja(t,{fill:"none"}));b=s.insert(()=>k,":first-child"),b=s.insert(()=>A,":first-child"),b.attr("class","basic label-container"),_&&b.attr("style",_)}else{const w=Dpi(0,0,h,m,f,p);b=s.insert("path",":first-child").attr("d",w).attr("class","basic label-container").attr("style",Tb(_)).attr("style",a)}return b.attr("label-offset-y",p),b.attr("transform",`translate(${-h/2}, ${-(m/2+p)})`),es(t,b),u.attr("transform",`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${-(o.height/2)+(t.padding??0)/1.5-(o.y-(o.top??0))})`),t.intersect=function(w){const S=Sa.rect(t,w),C=S.x-(t.x??0);if(f!=0&&(Math.abs(C)<(t.width??0)/2||Math.abs(C)==(t.width??0)/2&&Math.abs(S.y-(t.y??0))>(t.height??0)/2-p)){let A=p*p*(1-C*C/(f*f));A>0&&(A=Math.sqrt(A)),A=p-A,w.y-(t.y??0)>0&&(A=-A),S.y+=A}return S},s}X(nFn,"cylinder");async function rFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=o.width+t.padding,f=o.height+t.padding,p=f*.2,m=-h/2,b=-f/2-p/2,{cssStyles:_}=t,w=Wa.svg(s),S=Ja(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const C=[{x:m,y:b+p},{x:-m,y:b+p},{x:-m,y:-b},{x:m,y:-b},{x:m,y:b},{x:-m,y:b},{x:-m,y:b+p}],A=w.polygon(C.map(I=>[I.x,I.y]),S),k=s.insert(()=>A,":first-child");return k.attr("class","basic label-container"),_&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",_),a&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",a),u.attr("transform",`translate(${m+(t.padding??0)/2-(o.x-(o.left??0))}, ${b+p+(t.padding??0)/2-(o.y-(o.top??0))})`),es(t,k),t.intersect=function(I){return Sa.rect(t,I)},s}X(rFn,"dividedRectangle");async function iFn(e,t){var _,w;const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:u}=await oo(e,t,Ys(t)),f=o.width/2+u+5,p=o.width/2+u;let m;const{cssStyles:b}=t;if(t.look==="handDrawn"){const S=Wa.svg(s),C=Ja(t,{roughness:.2,strokeWidth:2.5}),A=Ja(t,{roughness:.2,strokeWidth:1.5}),k=S.circle(0,0,f*2,C),I=S.circle(0,0,p*2,A);m=s.insert("g",":first-child"),m.attr("class",Tb(t.cssClasses)).attr("style",Tb(b)),(_=m.node())==null||_.appendChild(k),(w=m.node())==null||w.appendChild(I)}else{m=s.insert("g",":first-child");const S=m.insert("circle",":first-child"),C=m.insert("circle");m.attr("class","basic label-container").attr("style",a),S.attr("class","outer-circle").attr("style",a).attr("r",f).attr("cx",0).attr("cy",0),C.attr("class","inner-circle").attr("style",a).attr("r",p).attr("cx",0).attr("cy",0)}return es(t,m),t.intersect=function(S){return it.info("DoubleCircle intersect",t,f,S),Sa.circle(t,f,S)},s}X(iFn,"doublecircle");function aFn(e,t,{config:{themeVariables:r}}){const{labelStyles:a,nodeStyles:s}=Ia(t);t.label="",t.labelStyle=a;const o=e.insert("g").attr("class",Ys(t)).attr("id",t.domId??t.id),u=7,{cssStyles:h}=t,f=Wa.svg(o),{nodeBorder:p}=r,m=Ja(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(m.roughness=0);const b=f.circle(0,0,u*2,m),_=o.insert(()=>b,":first-child");return _.selectAll("path").attr("style",`fill: ${p} !important;`),h&&h.length>0&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",h),s&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",s),es(t,_),t.intersect=function(w){return it.info("filledCircle intersect",t,{radius:u,point:w}),Sa.circle(t,u,w)},o}X(aFn,"filledCircle");async function sFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=o.width+(t.padding??0),f=h+o.height,p=h+o.height,m=[{x:0,y:-f},{x:p,y:-f},{x:p/2,y:0}],{cssStyles:b}=t,_=Wa.svg(s),w=Ja(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=hc(m),C=_.path(S,w),A=s.insert(()=>C,":first-child").attr("transform",`translate(${-f/2}, ${f/2})`);return b&&t.look!=="handDrawn"&&A.selectChildren("path").attr("style",b),a&&t.look!=="handDrawn"&&A.selectChildren("path").attr("style",a),t.width=h,t.height=f,es(t,A),u.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-f/2+(t.padding??0)/2+(o.y-(o.top??0))})`),t.intersect=function(k){return it.info("Triangle intersect",t,m,k),Sa.polygon(t,m,k)},s}X(sFn,"flippedTriangle");function oFn(e,t,{dir:r,config:{state:a,themeVariables:s}}){const{nodeStyles:o}=Ia(t);t.label="";const u=e.insert("g").attr("class",Ys(t)).attr("id",t.domId??t.id),{cssStyles:h}=t;let f=Math.max(70,(t==null?void 0:t.width)??0),p=Math.max(10,(t==null?void 0:t.height)??0);r==="LR"&&(f=Math.max(10,(t==null?void 0:t.width)??0),p=Math.max(70,(t==null?void 0:t.height)??0));const m=-1*f/2,b=-1*p/2,_=Wa.svg(u),w=Ja(t,{stroke:s.lineColor,fill:s.lineColor});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=_.rectangle(m,b,f,p,w),C=u.insert(()=>S,":first-child");h&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",h),o&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",o),es(t,C);const A=(a==null?void 0:a.padding)??0;return t.width&&t.height&&(t.width+=A/2||0,t.height+=A/2||0),t.intersect=function(k){return Sa.rect(t,k)},u}X(oFn,"forkJoin");async function lFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const s=80,o=50,{shapeSvg:u,bbox:h}=await oo(e,t,Ys(t)),f=Math.max(s,h.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),p=Math.max(o,h.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),m=p/2,{cssStyles:b}=t,_=Wa.svg(u),w=Ja(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=[{x:-f/2,y:-p/2},{x:f/2-m,y:-p/2},...Soe(-f/2+m,0,m,50,90,270),{x:f/2-m,y:p/2},{x:-f/2,y:p/2}],C=hc(S),A=_.path(C,w),k=u.insert(()=>A,":first-child");return k.attr("class","basic label-container"),b&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",b),a&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",a),es(t,k),t.intersect=function(I){return it.info("Pill intersect",t,{radius:m,point:I}),Sa.polygon(t,S,I)},u}X(lFn,"halfRoundedRectangle");async function cFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=o.height+(t.padding??0),h=o.width+(t.padding??0)*2.5,{cssStyles:f}=t,p=Wa.svg(s),m=Ja(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let b=h/2;const _=b/6;b=b+_;const w=u/2,S=w/2,C=b-S,A=[{x:-C,y:-w},{x:0,y:-w},{x:C,y:-w},{x:b,y:0},{x:C,y:w},{x:0,y:w},{x:-C,y:w},{x:-b,y:0}],k=hc(A),I=p.path(k,m),N=s.insert(()=>I,":first-child");return N.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&N.selectChildren("path").attr("style",f),a&&t.look!=="handDrawn"&&N.selectChildren("path").attr("style",a),t.width=h,t.height=u,es(t,N),t.intersect=function(L){return Sa.polygon(t,A,L)},s}X(cFn,"hexagon");async function uFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.label="",t.labelStyle=r;const{shapeSvg:s}=await oo(e,t,Ys(t)),o=Math.max(30,(t==null?void 0:t.width)??0),u=Math.max(30,(t==null?void 0:t.height)??0),{cssStyles:h}=t,f=Wa.svg(s),p=Ja(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=[{x:0,y:0},{x:o,y:0},{x:0,y:u},{x:o,y:u}],b=hc(m),_=f.path(b,p),w=s.insert(()=>_,":first-child");return w.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",h),a&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",a),w.attr("transform",`translate(${-o/2}, ${-u/2})`),es(t,w),t.intersect=function(S){return it.info("Pill intersect",t,{points:m}),Sa.polygon(t,m,S)},s}X(uFn,"hourglass");async function hFn(e,t,{config:{themeVariables:r,flowchart:a}}){const{labelStyles:s}=Ia(t);t.labelStyle=s;const o=t.assetHeight??48,u=t.assetWidth??48,h=Math.max(o,u),f=a==null?void 0:a.wrappingWidth;t.width=Math.max(h,f??0);const{shapeSvg:p,bbox:m,label:b}=await oo(e,t,"icon-shape default"),_=t.pos==="t",w=h,S=h,{nodeBorder:C}=r,{stylesMap:A}=PW(t),k=-S/2,I=-w/2,N=t.label?8:0,L=Wa.svg(p),P=Ja(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(P.roughness=0,P.fillStyle="solid");const M=L.rectangle(k,I,S,w,P),F=Math.max(S,m.width),U=w+m.height+N,$=L.rectangle(-F/2,-U/2,F,U,{...P,fill:"transparent",stroke:"none"}),G=p.insert(()=>M,":first-child"),B=p.insert(()=>$);if(t.icon){const Z=p.append("g");Z.html(`${await QO(t.icon,{height:h,width:h,fallbackPrefix:""})}`);const z=Z.node().getBBox(),Y=z.width,W=z.height,Q=z.x,V=z.y;Z.attr("transform",`translate(${-Y/2-Q},${_?m.height/2+N/2-W/2-V:-m.height/2-N/2-W/2-V})`),Z.attr("style",`color: ${A.get("stroke")??C};`)}return b.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${_?-U/2:U/2-m.height})`),G.attr("transform",`translate(0,${_?m.height/2+N/2:-m.height/2-N/2})`),es(t,B),t.intersect=function(Z){if(it.info("iconSquare intersect",t,Z),!t.label)return Sa.rect(t,Z);const z=t.x??0,Y=t.y??0,W=t.height??0;let Q=[];return _?Q=[{x:z-m.width/2,y:Y-W/2},{x:z+m.width/2,y:Y-W/2},{x:z+m.width/2,y:Y-W/2+m.height+N},{x:z+S/2,y:Y-W/2+m.height+N},{x:z+S/2,y:Y+W/2},{x:z-S/2,y:Y+W/2},{x:z-S/2,y:Y-W/2+m.height+N},{x:z-m.width/2,y:Y-W/2+m.height+N}]:Q=[{x:z-S/2,y:Y-W/2},{x:z+S/2,y:Y-W/2},{x:z+S/2,y:Y-W/2+w},{x:z+m.width/2,y:Y-W/2+w},{x:z+m.width/2/2,y:Y+W/2},{x:z-m.width/2,y:Y+W/2},{x:z-m.width/2,y:Y-W/2+w},{x:z-S/2,y:Y-W/2+w}],Sa.polygon(t,Q,Z)},p}X(hFn,"icon");async function dFn(e,t,{config:{themeVariables:r,flowchart:a}}){const{labelStyles:s}=Ia(t);t.labelStyle=s;const o=t.assetHeight??48,u=t.assetWidth??48,h=Math.max(o,u),f=a==null?void 0:a.wrappingWidth;t.width=Math.max(h,f??0);const{shapeSvg:p,bbox:m,label:b}=await oo(e,t,"icon-shape default"),_=20,w=t.label?8:0,S=t.pos==="t",{nodeBorder:C,mainBkg:A}=r,{stylesMap:k}=PW(t),I=Wa.svg(p),N=Ja(t,{});t.look!=="handDrawn"&&(N.roughness=0,N.fillStyle="solid");const L=k.get("fill");N.stroke=L??A;const P=p.append("g");t.icon&&P.html(`${await QO(t.icon,{height:h,width:h,fallbackPrefix:""})}`);const M=P.node().getBBox(),F=M.width,U=M.height,$=M.x,G=M.y,B=Math.max(F,U)*Math.SQRT2+_*2,Z=I.circle(0,0,B,N),z=Math.max(B,m.width),Y=B+m.height+w,W=I.rectangle(-z/2,-Y/2,z,Y,{...N,fill:"transparent",stroke:"none"}),Q=p.insert(()=>Z,":first-child"),V=p.insert(()=>W);return P.attr("transform",`translate(${-F/2-$},${S?m.height/2+w/2-U/2-G:-m.height/2-w/2-U/2-G})`),P.attr("style",`color: ${k.get("stroke")??C};`),b.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${S?-Y/2:Y/2-m.height})`),Q.attr("transform",`translate(0,${S?m.height/2+w/2:-m.height/2-w/2})`),es(t,V),t.intersect=function(j){return it.info("iconSquare intersect",t,j),Sa.rect(t,j)},p}X(dFn,"iconCircle");async function fFn(e,t,{config:{themeVariables:r,flowchart:a}}){const{labelStyles:s}=Ia(t);t.labelStyle=s;const o=t.assetHeight??48,u=t.assetWidth??48,h=Math.max(o,u),f=a==null?void 0:a.wrappingWidth;t.width=Math.max(h,f??0);const{shapeSvg:p,bbox:m,halfPadding:b,label:_}=await oo(e,t,"icon-shape default"),w=t.pos==="t",S=h+b*2,C=h+b*2,{nodeBorder:A,mainBkg:k}=r,{stylesMap:I}=PW(t),N=-C/2,L=-S/2,P=t.label?8:0,M=Wa.svg(p),F=Ja(t,{});t.look!=="handDrawn"&&(F.roughness=0,F.fillStyle="solid");const U=I.get("fill");F.stroke=U??k;const $=M.path(B9(N,L,C,S,5),F),G=Math.max(C,m.width),B=S+m.height+P,Z=M.rectangle(-G/2,-B/2,G,B,{...F,fill:"transparent",stroke:"none"}),z=p.insert(()=>$,":first-child").attr("class","icon-shape2"),Y=p.insert(()=>Z);if(t.icon){const W=p.append("g");W.html(`${await QO(t.icon,{height:h,width:h,fallbackPrefix:""})}`);const Q=W.node().getBBox(),V=Q.width,j=Q.height,ee=Q.x,te=Q.y;W.attr("transform",`translate(${-V/2-ee},${w?m.height/2+P/2-j/2-te:-m.height/2-P/2-j/2-te})`),W.attr("style",`color: ${I.get("stroke")??A};`)}return _.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${w?-B/2:B/2-m.height})`),z.attr("transform",`translate(0,${w?m.height/2+P/2:-m.height/2-P/2})`),es(t,Y),t.intersect=function(W){if(it.info("iconSquare intersect",t,W),!t.label)return Sa.rect(t,W);const Q=t.x??0,V=t.y??0,j=t.height??0;let ee=[];return w?ee=[{x:Q-m.width/2,y:V-j/2},{x:Q+m.width/2,y:V-j/2},{x:Q+m.width/2,y:V-j/2+m.height+P},{x:Q+C/2,y:V-j/2+m.height+P},{x:Q+C/2,y:V+j/2},{x:Q-C/2,y:V+j/2},{x:Q-C/2,y:V-j/2+m.height+P},{x:Q-m.width/2,y:V-j/2+m.height+P}]:ee=[{x:Q-C/2,y:V-j/2},{x:Q+C/2,y:V-j/2},{x:Q+C/2,y:V-j/2+S},{x:Q+m.width/2,y:V-j/2+S},{x:Q+m.width/2/2,y:V+j/2},{x:Q-m.width/2,y:V+j/2},{x:Q-m.width/2,y:V-j/2+S},{x:Q-C/2,y:V-j/2+S}],Sa.polygon(t,ee,W)},p}X(fFn,"iconRounded");async function pFn(e,t,{config:{themeVariables:r,flowchart:a}}){const{labelStyles:s}=Ia(t);t.labelStyle=s;const o=t.assetHeight??48,u=t.assetWidth??48,h=Math.max(o,u),f=a==null?void 0:a.wrappingWidth;t.width=Math.max(h,f??0);const{shapeSvg:p,bbox:m,halfPadding:b,label:_}=await oo(e,t,"icon-shape default"),w=t.pos==="t",S=h+b*2,C=h+b*2,{nodeBorder:A,mainBkg:k}=r,{stylesMap:I}=PW(t),N=-C/2,L=-S/2,P=t.label?8:0,M=Wa.svg(p),F=Ja(t,{});t.look!=="handDrawn"&&(F.roughness=0,F.fillStyle="solid");const U=I.get("fill");F.stroke=U??k;const $=M.path(B9(N,L,C,S,.1),F),G=Math.max(C,m.width),B=S+m.height+P,Z=M.rectangle(-G/2,-B/2,G,B,{...F,fill:"transparent",stroke:"none"}),z=p.insert(()=>$,":first-child"),Y=p.insert(()=>Z);if(t.icon){const W=p.append("g");W.html(`${await QO(t.icon,{height:h,width:h,fallbackPrefix:""})}`);const Q=W.node().getBBox(),V=Q.width,j=Q.height,ee=Q.x,te=Q.y;W.attr("transform",`translate(${-V/2-ee},${w?m.height/2+P/2-j/2-te:-m.height/2-P/2-j/2-te})`),W.attr("style",`color: ${I.get("stroke")??A};`)}return _.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${w?-B/2:B/2-m.height})`),z.attr("transform",`translate(0,${w?m.height/2+P/2:-m.height/2-P/2})`),es(t,Y),t.intersect=function(W){if(it.info("iconSquare intersect",t,W),!t.label)return Sa.rect(t,W);const Q=t.x??0,V=t.y??0,j=t.height??0;let ee=[];return w?ee=[{x:Q-m.width/2,y:V-j/2},{x:Q+m.width/2,y:V-j/2},{x:Q+m.width/2,y:V-j/2+m.height+P},{x:Q+C/2,y:V-j/2+m.height+P},{x:Q+C/2,y:V+j/2},{x:Q-C/2,y:V+j/2},{x:Q-C/2,y:V-j/2+m.height+P},{x:Q-m.width/2,y:V-j/2+m.height+P}]:ee=[{x:Q-C/2,y:V-j/2},{x:Q+C/2,y:V-j/2},{x:Q+C/2,y:V-j/2+S},{x:Q+m.width/2,y:V-j/2+S},{x:Q+m.width/2/2,y:V+j/2},{x:Q-m.width/2,y:V+j/2},{x:Q-m.width/2,y:V-j/2+S},{x:Q-C/2,y:V-j/2+S}],Sa.polygon(t,ee,W)},p}X(pFn,"iconSquare");async function gFn(e,t,{config:{flowchart:r}}){const a=new Image;a.src=(t==null?void 0:t.img)??"",await a.decode();const s=Number(a.naturalWidth.toString().replace("px","")),o=Number(a.naturalHeight.toString().replace("px",""));t.imageAspectRatio=s/o;const{labelStyles:u}=Ia(t);t.labelStyle=u;const h=r==null?void 0:r.wrappingWidth;t.defaultWidth=r==null?void 0:r.wrappingWidth;const f=Math.max(t.label?h??0:0,(t==null?void 0:t.assetWidth)??s),p=t.constraint==="on"&&t!=null&&t.assetHeight?t.assetHeight*t.imageAspectRatio:f,m=t.constraint==="on"?p/t.imageAspectRatio:(t==null?void 0:t.assetHeight)??o;t.width=Math.max(p,h??0);const{shapeSvg:b,bbox:_,label:w}=await oo(e,t,"image-shape default"),S=t.pos==="t",C=-p/2,A=-m/2,k=t.label?8:0,I=Wa.svg(b),N=Ja(t,{});t.look!=="handDrawn"&&(N.roughness=0,N.fillStyle="solid");const L=I.rectangle(C,A,p,m,N),P=Math.max(p,_.width),M=m+_.height+k,F=I.rectangle(-P/2,-M/2,P,M,{...N,fill:"none",stroke:"none"}),U=b.insert(()=>L,":first-child"),$=b.insert(()=>F);if(t.img){const G=b.append("image");G.attr("href",t.img),G.attr("width",p),G.attr("height",m),G.attr("preserveAspectRatio","none"),G.attr("transform",`translate(${-p/2},${S?M/2-m:-M/2})`)}return w.attr("transform",`translate(${-_.width/2-(_.x-(_.left??0))},${S?-m/2-_.height/2-k/2:m/2-_.height/2+k/2})`),U.attr("transform",`translate(0,${S?_.height/2+k/2:-_.height/2-k/2})`),es(t,$),t.intersect=function(G){if(it.info("iconSquare intersect",t,G),!t.label)return Sa.rect(t,G);const B=t.x??0,Z=t.y??0,z=t.height??0;let Y=[];return S?Y=[{x:B-_.width/2,y:Z-z/2},{x:B+_.width/2,y:Z-z/2},{x:B+_.width/2,y:Z-z/2+_.height+k},{x:B+p/2,y:Z-z/2+_.height+k},{x:B+p/2,y:Z+z/2},{x:B-p/2,y:Z+z/2},{x:B-p/2,y:Z-z/2+_.height+k},{x:B-_.width/2,y:Z-z/2+_.height+k}]:Y=[{x:B-p/2,y:Z-z/2},{x:B+p/2,y:Z-z/2},{x:B+p/2,y:Z-z/2+m},{x:B+_.width/2,y:Z-z/2+m},{x:B+_.width/2/2,y:Z+z/2},{x:B-_.width/2,y:Z+z/2},{x:B-_.width/2,y:Z-z/2+m},{x:B-p/2,y:Z-z/2+m}],Sa.polygon(t,Y,G)},b}X(gFn,"imageSquare");async function mFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),f=[{x:0,y:0},{x:u,y:0},{x:u+3*h/6,y:-h},{x:-3*h/6,y:-h}];let p;const{cssStyles:m}=t;if(t.look==="handDrawn"){const b=Wa.svg(s),_=Ja(t,{}),w=hc(f),S=b.path(w,_);p=s.insert(()=>S,":first-child").attr("transform",`translate(${-u/2}, ${h/2})`),m&&p.attr("style",m)}else p=F9(s,u,h,f);return a&&p.attr("style",a),t.width=u,t.height=h,es(t,p),t.intersect=function(b){return Sa.polygon(t,f,b)},s}X(mFn,"inv_trapezoid");async function RAe(e,t,r){const{labelStyles:a,nodeStyles:s}=Ia(t);t.labelStyle=a;const{shapeSvg:o,bbox:u}=await oo(e,t,Ys(t)),h=Math.max(u.width+r.labelPaddingX*2,(t==null?void 0:t.width)||0),f=Math.max(u.height+r.labelPaddingY*2,(t==null?void 0:t.height)||0),p=-h/2,m=-f/2;let b,{rx:_,ry:w}=t;const{cssStyles:S}=t;if(r!=null&&r.rx&&r.ry&&(_=r.rx,w=r.ry),t.look==="handDrawn"){const C=Wa.svg(o),A=Ja(t,{}),k=_||w?C.path(B9(p,m,h,f,_||0),A):C.rectangle(p,m,h,f,A);b=o.insert(()=>k,":first-child"),b.attr("class","basic label-container").attr("style",Tb(S))}else b=o.insert("rect",":first-child"),b.attr("class","basic label-container").attr("style",s).attr("rx",Tb(_)).attr("ry",Tb(w)).attr("x",p).attr("y",m).attr("width",h).attr("height",f);return es(t,b),t.calcIntersect=function(C,A){return Sa.rect(C,A)},t.intersect=function(C){return Sa.rect(t,C)},o}X(RAe,"drawRect");async function bFn(e,t){const{shapeSvg:r,bbox:a,label:s}=await oo(e,t,"label"),o=r.insert("rect",":first-child");return o.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),s.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),es(t,o),t.intersect=function(f){return Sa.rect(t,f)},r}X(bFn,"labelRect");async function yFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=Math.max(o.width+(t.padding??0),(t==null?void 0:t.width)??0),h=Math.max(o.height+(t.padding??0),(t==null?void 0:t.height)??0),f=[{x:0,y:0},{x:u+3*h/6,y:0},{x:u,y:-h},{x:-(3*h)/6,y:-h}];let p;const{cssStyles:m}=t;if(t.look==="handDrawn"){const b=Wa.svg(s),_=Ja(t,{}),w=hc(f),S=b.path(w,_);p=s.insert(()=>S,":first-child").attr("transform",`translate(${-u/2}, ${h/2})`),m&&p.attr("style",m)}else p=F9(s,u,h,f);return a&&p.attr("style",a),t.width=u,t.height=h,es(t,p),t.intersect=function(b){return Sa.polygon(t,f,b)},s}X(yFn,"lean_left");async function vFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=Math.max(o.width+(t.padding??0),(t==null?void 0:t.width)??0),h=Math.max(o.height+(t.padding??0),(t==null?void 0:t.height)??0),f=[{x:-3*h/6,y:0},{x:u,y:0},{x:u+3*h/6,y:-h},{x:0,y:-h}];let p;const{cssStyles:m}=t;if(t.look==="handDrawn"){const b=Wa.svg(s),_=Ja(t,{}),w=hc(f),S=b.path(w,_);p=s.insert(()=>S,":first-child").attr("transform",`translate(${-u/2}, ${h/2})`),m&&p.attr("style",m)}else p=F9(s,u,h,f);return a&&p.attr("style",a),t.width=u,t.height=h,es(t,p),t.intersect=function(b){return Sa.polygon(t,f,b)},s}X(vFn,"lean_right");function _Fn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.label="",t.labelStyle=r;const s=e.insert("g").attr("class",Ys(t)).attr("id",t.domId??t.id),{cssStyles:o}=t,u=Math.max(35,(t==null?void 0:t.width)??0),h=Math.max(35,(t==null?void 0:t.height)??0),f=7,p=[{x:u,y:0},{x:0,y:h+f/2},{x:u-2*f,y:h+f/2},{x:0,y:2*h},{x:u,y:h-f/2},{x:2*f,y:h-f/2}],m=Wa.svg(s),b=Ja(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const _=hc(p),w=m.path(_,b),S=s.insert(()=>w,":first-child");return o&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",o),a&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",a),S.attr("transform",`translate(-${u/2},${-h})`),es(t,S),t.intersect=function(C){return it.info("lightningBolt intersect",t,C),Sa.polygon(t,p,C)},s}X(_Fn,"lightningBolt");var Bpi=X((e,t,r,a,s,o,u)=>[`M${e},${t+o}`,`a${s},${o} 0,0,0 ${r},0`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${a}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-a}`,`M${e},${t+o+u}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),Fpi=X((e,t,r,a,s,o,u)=>[`M${e},${t+o}`,`M${e+r},${t+o}`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${a}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-a}`,`M${e},${t+o+u}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),$pi=X((e,t,r,a,s,o)=>[`M${e-r/2},${-a/2}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function wFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=Math.max(o.width+(t.padding??0),t.width??0),f=h/2,p=f/(2.5+h/50),m=Math.max(o.height+p+(t.padding??0),t.height??0),b=m*.1;let _;const{cssStyles:w}=t;if(t.look==="handDrawn"){const S=Wa.svg(s),C=Fpi(0,0,h,m,f,p,b),A=$pi(0,p,h,m,f,p),k=Ja(t,{}),I=S.path(C,k),N=S.path(A,k);s.insert(()=>N,":first-child").attr("class","line"),_=s.insert(()=>I,":first-child"),_.attr("class","basic label-container"),w&&_.attr("style",w)}else{const S=Bpi(0,0,h,m,f,p,b);_=s.insert("path",":first-child").attr("d",S).attr("class","basic label-container").attr("style",Tb(w)).attr("style",a)}return _.attr("label-offset-y",p),_.attr("transform",`translate(${-h/2}, ${-(m/2+p)})`),es(t,_),u.attr("transform",`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${-(o.height/2)+p-(o.y-(o.top??0))})`),t.intersect=function(S){const C=Sa.rect(t,S),A=C.x-(t.x??0);if(f!=0&&(Math.abs(A)<(t.width??0)/2||Math.abs(A)==(t.width??0)/2&&Math.abs(C.y-(t.y??0))>(t.height??0)/2-p)){let k=p*p*(1-A*A/(f*f));k>0&&(k=Math.sqrt(k)),k=p-k,S.y-(t.y??0)>0&&(k=-k),C.y+=k}return C},s}X(wFn,"linedCylinder");async function EFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),f=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),p=f/4,m=f+p,{cssStyles:b}=t,_=Wa.svg(s),w=Ja(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=[{x:-h/2-h/2*.1,y:-m/2},{x:-h/2-h/2*.1,y:m/2},...JO(-h/2-h/2*.1,m/2,h/2+h/2*.1,m/2,p,.8),{x:h/2+h/2*.1,y:-m/2},{x:-h/2-h/2*.1,y:-m/2},{x:-h/2,y:-m/2},{x:-h/2,y:m/2*1.1},{x:-h/2,y:-m/2}],C=_.polygon(S.map(k=>[k.x,k.y]),w),A=s.insert(()=>C,":first-child");return A.attr("class","basic label-container"),b&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",b),a&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",a),A.attr("transform",`translate(0,${-p/2})`),u.attr("transform",`translate(${-h/2+(t.padding??0)+h/2*.1/2-(o.x-(o.left??0))},${-f/2+(t.padding??0)-p/2-(o.y-(o.top??0))})`),es(t,A),t.intersect=function(k){return Sa.polygon(t,S,k)},s}X(EFn,"linedWaveEdgedRect");async function xFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),f=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),p=5,m=-h/2,b=-f/2,{cssStyles:_}=t,w=Wa.svg(s),S=Ja(t,{}),C=[{x:m-p,y:b+p},{x:m-p,y:b+f+p},{x:m+h-p,y:b+f+p},{x:m+h-p,y:b+f},{x:m+h,y:b+f},{x:m+h,y:b+f-p},{x:m+h+p,y:b+f-p},{x:m+h+p,y:b-p},{x:m+p,y:b-p},{x:m+p,y:b},{x:m,y:b},{x:m,y:b+p}],A=[{x:m,y:b+p},{x:m+h-p,y:b+p},{x:m+h-p,y:b+f},{x:m+h,y:b+f},{x:m+h,y:b},{x:m,y:b}];t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const k=hc(C),I=w.path(k,S),N=hc(A),L=w.path(N,{...S,fill:"none"}),P=s.insert(()=>L,":first-child");return P.insert(()=>I,":first-child"),P.attr("class","basic label-container"),_&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",_),a&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",a),u.attr("transform",`translate(${-(o.width/2)-p-(o.x-(o.left??0))}, ${-(o.height/2)+p-(o.y-(o.top??0))})`),es(t,P),t.intersect=function(M){return Sa.polygon(t,C,M)},s}X(xFn,"multiRect");async function SFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),f=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),p=f/4,m=f+p,b=-h/2,_=-m/2,w=5,{cssStyles:S}=t,C=JO(b-w,_+m+w,b+h-w,_+m+w,p,.8),A=C==null?void 0:C[C.length-1],k=[{x:b-w,y:_+w},{x:b-w,y:_+m+w},...C,{x:b+h-w,y:A.y-w},{x:b+h,y:A.y-w},{x:b+h,y:A.y-2*w},{x:b+h+w,y:A.y-2*w},{x:b+h+w,y:_-w},{x:b+w,y:_-w},{x:b+w,y:_},{x:b,y:_},{x:b,y:_+w}],I=[{x:b,y:_+w},{x:b+h-w,y:_+w},{x:b+h-w,y:A.y-w},{x:b+h,y:A.y-w},{x:b+h,y:_},{x:b,y:_}],N=Wa.svg(s),L=Ja(t,{});t.look!=="handDrawn"&&(L.roughness=0,L.fillStyle="solid");const P=hc(k),M=N.path(P,L),F=hc(I),U=N.path(F,L),$=s.insert(()=>M,":first-child");return $.insert(()=>U),$.attr("class","basic label-container"),S&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",S),a&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",a),$.attr("transform",`translate(0,${-p/2})`),u.attr("transform",`translate(${-(o.width/2)-w-(o.x-(o.left??0))}, ${-(o.height/2)+w-p/2-(o.y-(o.top??0))})`),es(t,$),t.intersect=function(G){return Sa.polygon(t,k,G)},s}X(SFn,"multiWaveEdgedRectangle");async function TFn(e,t,{config:{themeVariables:r}}){var I;const{labelStyles:a,nodeStyles:s}=Ia(t);t.labelStyle=a,t.useHtmlLabels||((I=$c().flowchart)==null?void 0:I.htmlLabels)!==!1||(t.centerLabel=!0);const{shapeSvg:u,bbox:h,label:f}=await oo(e,t,Ys(t)),p=Math.max(h.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),m=Math.max(h.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),b=-p/2,_=-m/2,{cssStyles:w}=t,S=Wa.svg(u),C=Ja(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const A=S.rectangle(b,_,p,m,C),k=u.insert(()=>A,":first-child");return k.attr("class","basic label-container"),w&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",w),s&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",s),f.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),es(t,k),t.intersect=function(N){return Sa.rect(t,N)},u}X(TFn,"note");var Upi=X((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function CFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=o.width+t.padding,h=o.height+t.padding,f=u+h,p=.5,m=[{x:f/2,y:0},{x:f,y:-f/2},{x:f/2,y:-f},{x:0,y:-f/2}];let b;const{cssStyles:_}=t;if(t.look==="handDrawn"){const w=Wa.svg(s),S=Ja(t,{}),C=Upi(0,0,f),A=w.path(C,S);b=s.insert(()=>A,":first-child").attr("transform",`translate(${-f/2+p}, ${f/2})`),_&&b.attr("style",_)}else b=F9(s,f,f,m),b.attr("transform",`translate(${-f/2+p}, ${f/2})`);return a&&b.attr("style",a),es(t,b),t.calcIntersect=function(w,S){const C=w.width,A=[{x:C/2,y:0},{x:C,y:-C/2},{x:C/2,y:-C},{x:0,y:-C/2}],k=Sa.polygon(w,A,S);return{x:k.x-.5,y:k.y-.5}},t.intersect=function(w){return this.calcIntersect(t,w)},s}X(CFn,"question");async function AFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=Math.max(o.width+(t.padding??0),(t==null?void 0:t.width)??0),f=Math.max(o.height+(t.padding??0),(t==null?void 0:t.height)??0),p=-h/2,m=-f/2,b=m/2,_=[{x:p+b,y:m},{x:p,y:0},{x:p+b,y:-m},{x:-p,y:-m},{x:-p,y:m}],{cssStyles:w}=t,S=Wa.svg(s),C=Ja(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const A=hc(_),k=S.path(A,C),I=s.insert(()=>k,":first-child");return I.attr("class","basic label-container"),w&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",w),a&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",a),I.attr("transform",`translate(${-b/2},0)`),u.attr("transform",`translate(${-b/2-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),es(t,I),t.intersect=function(N){return Sa.polygon(t,_,N)},s}X(AFn,"rect_left_inv_arrow");async function kFn(e,t){var U,$;const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;let s;t.cssClasses?s="node "+t.cssClasses:s="node default";const o=e.insert("g").attr("class",s).attr("id",t.domId||t.id),u=o.insert("g"),h=o.insert("g").attr("class","label").attr("style",a),f=t.description,p=t.label,m=h.node().appendChild(await tF(p,t.labelStyle,!0,!0));let b={width:0,height:0};if(nh(($=(U=nn())==null?void 0:U.flowchart)==null?void 0:$.htmlLabels)){const G=m.children[0],B=gn(m);b=G.getBoundingClientRect(),B.attr("width",b.width),B.attr("height",b.height)}it.info("Text 2",f);const _=f||[],w=m.getBBox(),S=h.node().appendChild(await tF(_.join?_.join("
    "):_,t.labelStyle,!0,!0)),C=S.children[0],A=gn(S);b=C.getBoundingClientRect(),A.attr("width",b.width),A.attr("height",b.height);const k=(t.padding||0)/2;gn(S).attr("transform","translate( "+(b.width>w.width?0:(w.width-b.width)/2)+", "+(w.height+k+5)+")"),gn(m).attr("transform","translate( "+(b.width(it.debug("Rough node insert CXC",Z),z),":first-child"),M=o.insert(()=>(it.debug("Rough node insert CXC",Z),Z),":first-child")}else M=u.insert("rect",":first-child"),F=u.insert("line"),M.attr("class","outer title-state").attr("style",a).attr("x",-b.width/2-k).attr("y",-b.height/2-k).attr("width",b.width+(t.padding||0)).attr("height",b.height+(t.padding||0)),F.attr("class","divider").attr("x1",-b.width/2-k).attr("x2",b.width/2+k).attr("y1",-b.height/2-k+w.height+k).attr("y2",-b.height/2-k+w.height+k);return es(t,M),t.intersect=function(G){return Sa.rect(t,G)},o}X(kFn,"rectWithTitle");function Bie(e,t,r,a,s,o,u){const f=(e+r)/2,p=(t+a)/2,m=Math.atan2(a-t,r-e),b=(r-e)/2,_=(a-t)/2,w=b/s,S=_/o,C=Math.sqrt(w**2+S**2);if(C>1)throw new Error("The given radii are too small to create an arc between the points.");const A=Math.sqrt(1-C**2),k=f+A*o*Math.sin(m)*(u?-1:1),I=p-A*s*Math.cos(m)*(u?-1:1),N=Math.atan2((t-I)/o,(e-k)/s);let P=Math.atan2((a-I)/o,(r-k)/s)-N;u&&P<0&&(P+=2*Math.PI),!u&&P>0&&(P-=2*Math.PI);const M=[];for(let F=0;F<20;F++){const U=F/19,$=N+U*P,G=k+s*Math.cos($),B=I+o*Math.sin($);M.push({x:G,y:B})}return M}X(Bie,"generateArcPoints");async function RFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=(t==null?void 0:t.padding)??0,h=(t==null?void 0:t.padding)??0,f=(t!=null&&t.width?t==null?void 0:t.width:o.width)+u*2,p=(t!=null&&t.height?t==null?void 0:t.height:o.height)+h*2,m=t.radius||5,b=t.taper||5,{cssStyles:_}=t,w=Wa.svg(s),S=Ja(t,{});t.stroke&&(S.stroke=t.stroke),t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const C=[{x:-f/2+b,y:-p/2},{x:f/2-b,y:-p/2},...Bie(f/2-b,-p/2,f/2,-p/2+b,m,m,!0),{x:f/2,y:-p/2+b},{x:f/2,y:p/2-b},...Bie(f/2,p/2-b,f/2-b,p/2,m,m,!0),{x:f/2-b,y:p/2},{x:-f/2+b,y:p/2},...Bie(-f/2+b,p/2,-f/2,p/2-b,m,m,!0),{x:-f/2,y:p/2-b},{x:-f/2,y:-p/2+b},...Bie(-f/2,-p/2+b,-f/2+b,-p/2,m,m,!0)],A=hc(C),k=w.path(A,S),I=s.insert(()=>k,":first-child");return I.attr("class","basic label-container outer-path"),_&&t.look!=="handDrawn"&&I.selectChildren("path").attr("style",_),a&&t.look!=="handDrawn"&&I.selectChildren("path").attr("style",a),es(t,I),t.intersect=function(N){return Sa.polygon(t,C,N)},s}X(RFn,"roundedRect");async function IFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=(t==null?void 0:t.padding)??0,f=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),p=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),m=-o.width/2-h,b=-o.height/2-h,{cssStyles:_}=t,w=Wa.svg(s),S=Ja(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const C=[{x:m,y:b},{x:m+f+8,y:b},{x:m+f+8,y:b+p},{x:m-8,y:b+p},{x:m-8,y:b},{x:m,y:b},{x:m,y:b+p}],A=w.polygon(C.map(I=>[I.x,I.y]),S),k=s.insert(()=>A,":first-child");return k.attr("class","basic label-container").attr("style",Tb(_)),a&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",a),_&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",a),u.attr("transform",`translate(${-f/2+4+(t.padding??0)-(o.x-(o.left??0))},${-p/2+(t.padding??0)-(o.y-(o.top??0))})`),es(t,k),t.intersect=function(I){return Sa.rect(t,I)},s}X(IFn,"shadedProcess");async function NFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),f=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),p=-h/2,m=-f/2,{cssStyles:b}=t,_=Wa.svg(s),w=Ja(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=[{x:p,y:m},{x:p,y:m+f},{x:p+h,y:m+f},{x:p+h,y:m-f/2}],C=hc(S),A=_.path(C,w),k=s.insert(()=>A,":first-child");return k.attr("class","basic label-container"),b&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",b),a&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",a),k.attr("transform",`translate(0, ${f/4})`),u.attr("transform",`translate(${-h/2+(t.padding??0)-(o.x-(o.left??0))}, ${-f/4+(t.padding??0)-(o.y-(o.top??0))})`),es(t,k),t.intersect=function(I){return Sa.polygon(t,S,I)},s}X(NFn,"slopedRect");async function OFn(e,t){const r={rx:0,ry:0,labelPaddingX:t.labelPaddingX??((t==null?void 0:t.padding)||0)*2,labelPaddingY:((t==null?void 0:t.padding)||0)*1};return RAe(e,t,r)}X(OFn,"squareRect");async function LFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=o.height+t.padding,h=o.width+u/4+t.padding,f=u/2,{cssStyles:p}=t,m=Wa.svg(s),b=Ja(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const _=[{x:-h/2+f,y:-u/2},{x:h/2-f,y:-u/2},...Soe(-h/2+f,0,f,50,90,270),{x:h/2-f,y:u/2},...Soe(h/2-f,0,f,50,270,450)],w=hc(_),S=m.path(w,b),C=s.insert(()=>S,":first-child");return C.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",p),a&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",a),es(t,C),t.intersect=function(A){return Sa.polygon(t,_,A)},s}X(LFn,"stadium");async function DFn(e,t){return RAe(e,t,{rx:5,ry:5})}X(DFn,"state");function MFn(e,t,{config:{themeVariables:r}}){const{labelStyles:a,nodeStyles:s}=Ia(t);t.labelStyle=a;const{cssStyles:o}=t,{lineColor:u,stateBorder:h,nodeBorder:f}=r,p=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),m=Wa.svg(p),b=Ja(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const _=m.circle(0,0,14,{...b,stroke:u,strokeWidth:2}),w=h??f,S=m.circle(0,0,5,{...b,fill:w,stroke:w,strokeWidth:2,fillStyle:"solid"}),C=p.insert(()=>_,":first-child");return C.insert(()=>S),o&&C.selectAll("path").attr("style",o),s&&C.selectAll("path").attr("style",s),es(t,C),t.intersect=function(A){return Sa.circle(t,7,A)},p}X(MFn,"stateEnd");function PFn(e,t,{config:{themeVariables:r}}){const{lineColor:a}=r,s=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let o;if(t.look==="handDrawn"){const h=Wa.svg(s).circle(0,0,14,Tdi(a));o=s.insert(()=>h),o.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else o=s.insert("circle",":first-child"),o.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return es(t,o),t.intersect=function(u){return Sa.circle(t,7,u)},s}X(PFn,"stateStart");async function BFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=((t==null?void 0:t.padding)||0)/2,h=o.width+t.padding,f=o.height+t.padding,p=-o.width/2-u,m=-o.height/2-u,b=[{x:0,y:0},{x:h,y:0},{x:h,y:-f},{x:0,y:-f},{x:0,y:0},{x:-8,y:0},{x:h+8,y:0},{x:h+8,y:-f},{x:-8,y:-f},{x:-8,y:0}];if(t.look==="handDrawn"){const _=Wa.svg(s),w=Ja(t,{}),S=_.rectangle(p-8,m,h+16,f,w),C=_.line(p,m,p,m+f,w),A=_.line(p+h,m,p+h,m+f,w);s.insert(()=>C,":first-child"),s.insert(()=>A,":first-child");const k=s.insert(()=>S,":first-child"),{cssStyles:I}=t;k.attr("class","basic label-container").attr("style",Tb(I)),es(t,k)}else{const _=F9(s,h,f,b);a&&_.attr("style",a),es(t,_)}return t.intersect=function(_){return Sa.polygon(t,b,_)},s}X(BFn,"subroutine");async function FFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),f=-u/2,p=-h/2,m=.2*h,b=.2*h,{cssStyles:_}=t,w=Wa.svg(s),S=Ja(t,{}),C=[{x:f-m/2,y:p},{x:f+u+m/2,y:p},{x:f+u+m/2,y:p+h},{x:f-m/2,y:p+h}],A=[{x:f+u-m/2,y:p+h},{x:f+u+m/2,y:p+h},{x:f+u+m/2,y:p+h-b}];t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const k=hc(C),I=w.path(k,S),N=hc(A),L=w.path(N,{...S,fillStyle:"solid"}),P=s.insert(()=>L,":first-child");return P.insert(()=>I,":first-child"),P.attr("class","basic label-container"),_&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",_),a&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",a),es(t,P),t.intersect=function(M){return Sa.polygon(t,C,M)},s}X(FFn,"taggedRect");async function $Fn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),f=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),p=f/4,m=.2*h,b=.2*f,_=f+p,{cssStyles:w}=t,S=Wa.svg(s),C=Ja(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const A=[{x:-h/2-h/2*.1,y:_/2},...JO(-h/2-h/2*.1,_/2,h/2+h/2*.1,_/2,p,.8),{x:h/2+h/2*.1,y:-_/2},{x:-h/2-h/2*.1,y:-_/2}],k=-h/2+h/2*.1,I=-_/2-b*.4,N=[{x:k+h-m,y:(I+f)*1.4},{x:k+h,y:I+f-b},{x:k+h,y:(I+f)*.9},...JO(k+h,(I+f)*1.3,k+h-m,(I+f)*1.5,-f*.03,.5)],L=hc(A),P=S.path(L,C),M=hc(N),F=S.path(M,{...C,fillStyle:"solid"}),U=s.insert(()=>F,":first-child");return U.insert(()=>P,":first-child"),U.attr("class","basic label-container"),w&&t.look!=="handDrawn"&&U.selectAll("path").attr("style",w),a&&t.look!=="handDrawn"&&U.selectAll("path").attr("style",a),U.attr("transform",`translate(0,${-p/2})`),u.attr("transform",`translate(${-h/2+(t.padding??0)-(o.x-(o.left??0))},${-f/2+(t.padding??0)-p/2-(o.y-(o.top??0))})`),es(t,U),t.intersect=function($){return Sa.polygon(t,A,$)},s}X($Fn,"taggedWaveEdgedRectangle");async function UFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=Math.max(o.width+t.padding,(t==null?void 0:t.width)||0),h=Math.max(o.height+t.padding,(t==null?void 0:t.height)||0),f=-u/2,p=-h/2,m=s.insert("rect",":first-child");return m.attr("class","text").attr("style",a).attr("rx",0).attr("ry",0).attr("x",f).attr("y",p).attr("width",u).attr("height",h),es(t,m),t.intersect=function(b){return Sa.rect(t,b)},s}X(UFn,"text");var zpi=X((e,t,r,a,s,o)=>`M${e},${t} a${s},${o} 0,0,1 0,${-a} l${r},0 a${s},${o} 0,0,1 0,${a} M${r},${-a} a${s},${o} 0,0,0 0,${a} l${-r},0`,"createCylinderPathD"),Gpi=X((e,t,r,a,s,o)=>[`M${e},${t}`,`M${e+r},${t}`,`a${s},${o} 0,0,0 0,${-a}`,`l${-r},0`,`a${s},${o} 0,0,0 0,${a}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),qpi=X((e,t,r,a,s,o)=>[`M${e+r/2},${-a/2}`,`a${s},${o} 0,0,0 0,${a}`].join(" "),"createInnerCylinderPathD");async function zFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u,halfPadding:h}=await oo(e,t,Ys(t)),f=t.look==="neo"?h*2:h,p=o.height+f,m=p/2,b=m/(2.5+p/50),_=o.width+b+f,{cssStyles:w}=t;let S;if(t.look==="handDrawn"){const C=Wa.svg(s),A=Gpi(0,0,_,p,b,m),k=qpi(0,0,_,p,b,m),I=C.path(A,Ja(t,{})),N=C.path(k,Ja(t,{fill:"none"}));S=s.insert(()=>N,":first-child"),S=s.insert(()=>I,":first-child"),S.attr("class","basic label-container"),w&&S.attr("style",w)}else{const C=zpi(0,0,_,p,b,m);S=s.insert("path",":first-child").attr("d",C).attr("class","basic label-container").attr("style",Tb(w)).attr("style",a),S.attr("class","basic label-container"),w&&S.selectAll("path").attr("style",w),a&&S.selectAll("path").attr("style",a)}return S.attr("label-offset-x",b),S.attr("transform",`translate(${-_/2}, ${p/2} )`),u.attr("transform",`translate(${-(o.width/2)-b-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),es(t,S),t.intersect=function(C){const A=Sa.rect(t,C),k=A.y-(t.y??0);if(m!=0&&(Math.abs(k)<(t.height??0)/2||Math.abs(k)==(t.height??0)/2&&Math.abs(A.x-(t.x??0))>(t.width??0)/2-b)){let I=b*b*(1-k*k/(m*m));I!=0&&(I=Math.sqrt(Math.abs(I))),I=b-I,C.x-(t.x??0)>0&&(I=-I),A.x+=I}return A},s}X(zFn,"tiltedCylinder");async function GFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=o.width+t.padding,h=o.height+t.padding,f=[{x:-3*h/6,y:0},{x:u+3*h/6,y:0},{x:u,y:-h},{x:0,y:-h}];let p;const{cssStyles:m}=t;if(t.look==="handDrawn"){const b=Wa.svg(s),_=Ja(t,{}),w=hc(f),S=b.path(w,_);p=s.insert(()=>S,":first-child").attr("transform",`translate(${-u/2}, ${h/2})`),m&&p.attr("style",m)}else p=F9(s,u,h,f);return a&&p.attr("style",a),t.width=u,t.height=h,es(t,p),t.intersect=function(b){return Sa.polygon(t,f,b)},s}X(GFn,"trapezoid");async function qFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=60,h=20,f=Math.max(u,o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),p=Math.max(h,o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),{cssStyles:m}=t,b=Wa.svg(s),_=Ja(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const w=[{x:-f/2*.8,y:-p/2},{x:f/2*.8,y:-p/2},{x:f/2,y:-p/2*.6},{x:f/2,y:p/2},{x:-f/2,y:p/2},{x:-f/2,y:-p/2*.6}],S=hc(w),C=b.path(S,_),A=s.insert(()=>C,":first-child");return A.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&A.selectChildren("path").attr("style",m),a&&t.look!=="handDrawn"&&A.selectChildren("path").attr("style",a),es(t,A),t.intersect=function(k){return Sa.polygon(t,w,k)},s}X(qFn,"trapezoidalPentagon");async function HFn(e,t){var I;const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=nh((I=nn().flowchart)==null?void 0:I.htmlLabels),f=o.width+(t.padding??0),p=f+o.height,m=f+o.height,b=[{x:0,y:0},{x:m,y:0},{x:m/2,y:-p}],{cssStyles:_}=t,w=Wa.svg(s),S=Ja(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const C=hc(b),A=w.path(C,S),k=s.insert(()=>A,":first-child").attr("transform",`translate(${-p/2}, ${p/2})`);return _&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",_),a&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",a),t.width=f,t.height=p,es(t,k),u.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${p/2-(o.height+(t.padding??0)/(h?2:1)-(o.y-(o.top??0)))})`),t.intersect=function(N){return it.info("Triangle intersect",t,b,N),Sa.polygon(t,b,N)},s}X(HFn,"triangle");async function VFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),f=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),p=f/8,m=f+p,{cssStyles:b}=t,w=70-h,S=w>0?w/2:0,C=Wa.svg(s),A=Ja(t,{});t.look!=="handDrawn"&&(A.roughness=0,A.fillStyle="solid");const k=[{x:-h/2-S,y:m/2},...JO(-h/2-S,m/2,h/2+S,m/2,p,.8),{x:h/2+S,y:-m/2},{x:-h/2-S,y:-m/2}],I=hc(k),N=C.path(I,A),L=s.insert(()=>N,":first-child");return L.attr("class","basic label-container"),b&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",b),a&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",a),L.attr("transform",`translate(0,${-p/2})`),u.attr("transform",`translate(${-h/2+(t.padding??0)-(o.x-(o.left??0))},${-f/2+(t.padding??0)-p-(o.y-(o.top??0))})`),es(t,L),t.intersect=function(P){return Sa.polygon(t,k,P)},s}X(VFn,"waveEdgedRectangle");async function YFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await oo(e,t,Ys(t)),u=100,h=50,f=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),p=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),m=f/p;let b=f,_=p;b>_*m?_=b/m:b=_*m,b=Math.max(b,u),_=Math.max(_,h);const w=Math.min(_*.2,_/4),S=_+w*2,{cssStyles:C}=t,A=Wa.svg(s),k=Ja(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const I=[{x:-b/2,y:S/2},...JO(-b/2,S/2,b/2,S/2,w,1),{x:b/2,y:-S/2},...JO(b/2,-S/2,-b/2,-S/2,w,-1)],N=hc(I),L=A.path(N,k),P=s.insert(()=>L,":first-child");return P.attr("class","basic label-container"),C&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",C),a&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",a),es(t,P),t.intersect=function(M){return Sa.polygon(t,I,M)},s}X(YFn,"waveRectangle");async function jFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:u}=await oo(e,t,Ys(t)),h=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),f=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),p=5,m=-h/2,b=-f/2,{cssStyles:_}=t,w=Wa.svg(s),S=Ja(t,{}),C=[{x:m-p,y:b-p},{x:m-p,y:b+f},{x:m+h,y:b+f},{x:m+h,y:b-p}],A=`M${m-p},${b-p} L${m+h},${b-p} L${m+h},${b+f} L${m-p},${b+f} L${m-p},${b-p} M${m-p},${b} L${m+h},${b} M${m},${b-p} L${m},${b+f}`;t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const k=w.path(A,S),I=s.insert(()=>k,":first-child");return I.attr("transform",`translate(${p/2}, ${p/2})`),I.attr("class","basic label-container"),_&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",_),a&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",a),u.attr("transform",`translate(${-(o.width/2)+p/2-(o.x-(o.left??0))}, ${-(o.height/2)+p/2-(o.y-(o.top??0))})`),es(t,I),t.intersect=function(N){return Sa.polygon(t,C,N)},s}X(jFn,"windowPane");async function npt(e,t){var se,ie,ge,ce;const r=t;if(r.alias&&(t.label=r.alias),t.look==="handDrawn"){const{themeVariables:be}=$c(),{background:ve}=be,De={...t,id:t.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${ve}`]};await npt(e,De)}const a=$c();t.useHtmlLabels=a.htmlLabels;let s=((se=a.er)==null?void 0:se.diagramPadding)??10,o=((ie=a.er)==null?void 0:ie.entityPadding)??6;const{cssStyles:u}=t,{labelStyles:h,nodeStyles:f}=Ia(t);if(r.attributes.length===0&&t.label){const be={rx:0,ry:0,labelPaddingX:s,labelPaddingY:s*1.5};nv(t.label,a)+be.labelPaddingX*20){const be=b.width+s*2-(C+A+k+I);C+=be/P,A+=be/P,k>0&&(k+=be/P),I>0&&(I+=be/P)}const F=C+A+k+I,U=Wa.svg(m),$=Ja(t,{});t.look!=="handDrawn"&&($.roughness=0,$.fillStyle="solid");let G=0;S.length>0&&(G=S.reduce((be,ve)=>be+((ve==null?void 0:ve.rowHeight)??0),0));const B=Math.max(M.width+s*2,(t==null?void 0:t.width)||0,F),Z=Math.max((G??0)+b.height,(t==null?void 0:t.height)||0),z=-B/2,Y=-Z/2;m.selectAll("g:not(:first-child)").each((be,ve,De)=>{const ye=gn(De[ve]),Ee=ye.attr("transform");let he=0,we=0;if(Ee){const Ie=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Ee);Ie&&(he=parseFloat(Ie[1]),we=parseFloat(Ie[2]),ye.attr("class").includes("attribute-name")?he+=C:ye.attr("class").includes("attribute-keys")?he+=C+A:ye.attr("class").includes("attribute-comment")&&(he+=C+A+k))}ye.attr("transform",`translate(${z+s/2+he}, ${we+Y+b.height+o/2})`)}),m.select(".name").attr("transform","translate("+-b.width/2+", "+(Y+o/2)+")");const W=U.rectangle(z,Y,B,Z,$),Q=m.insert(()=>W,":first-child").attr("style",u.join("")),{themeVariables:V}=$c(),{rowEven:j,rowOdd:ee,nodeBorder:te}=V;w.push(0);for(const[be,ve]of S.entries()){const ye=(be+1)%2===0&&ve.yOffset!==0,Ee=U.rectangle(z,b.height+Y+(ve==null?void 0:ve.yOffset),B,ve==null?void 0:ve.rowHeight,{...$,fill:ye?j:ee,stroke:te});m.insert(()=>Ee,"g.label").attr("style",u.join("")).attr("class",`row-rect-${ye?"even":"odd"}`)}let ne=U.line(z,b.height+Y,B+z,b.height+Y,$);m.insert(()=>ne).attr("class","divider"),ne=U.line(C+z,b.height+Y,C+z,Z+Y,$),m.insert(()=>ne).attr("class","divider"),N&&(ne=U.line(C+A+z,b.height+Y,C+A+z,Z+Y,$),m.insert(()=>ne).attr("class","divider")),L&&(ne=U.line(C+A+k+z,b.height+Y,C+A+k+z,Z+Y,$),m.insert(()=>ne).attr("class","divider"));for(const be of w)ne=U.line(z,b.height+Y+be,B+z,b.height+Y+be,$),m.insert(()=>ne).attr("class","divider");if(es(t,Q),f&&t.look!=="handDrawn"){const be=f.split(";"),ve=(ce=be==null?void 0:be.filter(De=>De.includes("stroke")))==null?void 0:ce.map(De=>`${De}`).join("; ");m.selectAll("path").attr("style",ve??""),m.selectAll(".row-rect-even path").attr("style",f)}return t.intersect=function(be){return Sa.rect(t,be)},m}X(npt,"erBox");async function hV(e,t,r,a=0,s=0,o=[],u=""){const h=e.insert("g").attr("class",`label ${o.join(" ")}`).attr("transform",`translate(${a}, ${s})`).attr("style",u);t!==WN(t)&&(t=WN(t),t=t.replaceAll("<","<").replaceAll(">",">"));const f=h.node().appendChild(await Yw(h,t,{width:nv(t,r)+100,style:u,useHtmlLabels:r.htmlLabels},r));if(t.includes("<")||t.includes(">")){let m=f.children[0];for(m.textContent=m.textContent.replaceAll("<","<").replaceAll(">",">");m.childNodes[0];)m=m.childNodes[0],m.textContent=m.textContent.replaceAll("<","<").replaceAll(">",">")}let p=f.getBBox();if(nh(r.htmlLabels)){const m=f.children[0];m.style.textAlign="start";const b=gn(f);p=m.getBoundingClientRect(),b.attr("width",p.width),b.attr("height",p.height)}return p}X(hV,"addText");async function WFn(e,t,r,a,s=r.class.padding??12){const o=a?0:3,u=e.insert("g").attr("class",Ys(t)).attr("id",t.domId||t.id);let h=null,f=null,p=null,m=null,b=0,_=0,w=0;if(h=u.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const I=t.annotations[0];await Fie(h,{text:`«${I}»`},0),b=h.node().getBBox().height}f=u.insert("g").attr("class","label-group text"),await Fie(f,t,0,["font-weight: bolder"]);const S=f.node().getBBox();_=S.height,p=u.insert("g").attr("class","members-group text");let C=0;for(const I of t.members){const N=await Fie(p,I,C,[I.parseClassifier()]);C+=N+o}w=p.node().getBBox().height,w<=0&&(w=s/2),m=u.insert("g").attr("class","methods-group text");let A=0;for(const I of t.methods){const N=await Fie(m,I,A,[I.parseClassifier()]);A+=N+o}let k=u.node().getBBox();if(h!==null){const I=h.node().getBBox();h.attr("transform",`translate(${-I.width/2})`)}return f.attr("transform",`translate(${-S.width/2}, ${b})`),k=u.node().getBBox(),p.attr("transform",`translate(0, ${b+_+s*2})`),k=u.node().getBBox(),m.attr("transform",`translate(0, ${b+_+(w?w+s*4:s*2)})`),k=u.node().getBBox(),{shapeSvg:u,bbox:k}}X(WFn,"textHelper");async function Fie(e,t,r,a=[]){const s=e.insert("g").attr("class","label").attr("style",a.join("; ")),o=$c();let u="useHtmlLabels"in t?t.useHtmlLabels:nh(o.htmlLabels)??!0,h="";"text"in t?h=t.text:h=t.label,!u&&h.startsWith("\\")&&(h=h.substring(1)),u0(h)&&(u=!0);const f=await Yw(s,H0t(vA(h)),{width:nv(h,o)+50,classes:"markdown-node-label",useHtmlLabels:u},o);let p,m=1;if(u){const b=f.children[0],_=gn(f);m=b.innerHTML.split("
    ").length,b.innerHTML.includes("")&&(m+=b.innerHTML.split("").length-1);const w=b.getElementsByTagName("img");if(w){const S=h.replace(/]*>/g,"").trim()==="";await Promise.all([...w].map(C=>new Promise(A=>{function k(){var I;if(C.style.display="flex",C.style.flexDirection="column",S){const N=((I=o.fontSize)==null?void 0:I.toString())??window.getComputedStyle(document.body).fontSize,P=parseInt(N,10)*5+"px";C.style.minWidth=P,C.style.maxWidth=P}else C.style.width="100%";A(C)}X(k,"setupImage"),setTimeout(()=>{C.complete&&k()}),C.addEventListener("error",k),C.addEventListener("load",k)})))}p=b.getBoundingClientRect(),_.attr("width",p.width),_.attr("height",p.height)}else{a.includes("font-weight: bolder")&&gn(f).selectAll("tspan").attr("font-weight",""),m=f.children.length;const b=f.children[0];(f.textContent===""||f.textContent.includes(">"))&&(b.textContent=h[0]+h.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),h[1]===" "&&(b.textContent=b.textContent[0]+" "+b.textContent.substring(1))),b.textContent==="undefined"&&(b.textContent=""),p=f.getBBox()}return s.attr("transform","translate(0,"+(-p.height/(2*m)+r)+")"),p.height}X(Fie,"addText");async function KFn(e,t){var $,G;const r=nn(),a=r.class.padding??12,s=a,o=t.useHtmlLabels??nh(r.htmlLabels)??!0,u=t;u.annotations=u.annotations??[],u.members=u.members??[],u.methods=u.methods??[];const{shapeSvg:h,bbox:f}=await WFn(e,t,r,o,s),{labelStyles:p,nodeStyles:m}=Ia(t);t.labelStyle=p,t.cssStyles=u.styles||"";const b=(($=u.styles)==null?void 0:$.join(";"))||m||"";t.cssStyles||(t.cssStyles=b.replaceAll("!important","").split(";"));const _=u.members.length===0&&u.methods.length===0&&!((G=r.class)!=null&&G.hideEmptyMembersBox),w=Wa.svg(h),S=Ja(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const C=f.width;let A=f.height;u.members.length===0&&u.methods.length===0?A+=s:u.members.length>0&&u.methods.length===0&&(A+=s*2);const k=-C/2,I=-A/2,N=w.rectangle(k-a,I-a-(_?a:u.members.length===0&&u.methods.length===0?-a/2:0),C+2*a,A+2*a+(_?a*2:u.members.length===0&&u.methods.length===0?-a:0),S),L=h.insert(()=>N,":first-child");L.attr("class","basic label-container");const P=L.node().getBBox();h.selectAll(".text").each((B,Z,z)=>{var ee;const Y=gn(z[Z]),W=Y.attr("transform");let Q=0;if(W){const ne=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(W);ne&&(Q=parseFloat(ne[2]))}let V=Q+I+a-(_?a:u.members.length===0&&u.methods.length===0?-a/2:0);o||(V-=4);let j=k;(Y.attr("class").includes("label-group")||Y.attr("class").includes("annotation-group"))&&(j=-((ee=Y.node())==null?void 0:ee.getBBox().width)/2||0,h.selectAll("text").each(function(te,ne,se){window.getComputedStyle(se[ne]).textAnchor==="middle"&&(j=0)})),Y.attr("transform",`translate(${j}, ${V})`)});const M=h.select(".annotation-group").node().getBBox().height-(_?a/2:0)||0,F=h.select(".label-group").node().getBBox().height-(_?a/2:0)||0,U=h.select(".members-group").node().getBBox().height-(_?a/2:0)||0;if(u.members.length>0||u.methods.length>0||_){const B=w.line(P.x,M+F+I+a,P.x+P.width,M+F+I+a,S);h.insert(()=>B).attr("class","divider").attr("style",b)}if(_||u.members.length>0||u.methods.length>0){const B=w.line(P.x,M+F+U+I+s*2+a,P.x+P.width,M+F+U+I+a+s*2,S);h.insert(()=>B).attr("class","divider").attr("style",b)}if(u.look!=="handDrawn"&&h.selectAll("path").attr("style",b),L.select(":nth-child(2)").attr("style",b),h.selectAll(".divider").select("path").attr("style",b),t.labelStyle?h.selectAll("span").attr("style",t.labelStyle):h.selectAll("span").attr("style",b),!o){const B=RegExp(/color\s*:\s*([^;]*)/),Z=B.exec(b);if(Z){const z=Z[0].replace("color","fill");h.selectAll("tspan").attr("style",z)}else if(p){const z=B.exec(p);if(z){const Y=z[0].replace("color","fill");h.selectAll("tspan").attr("style",Y)}}}return es(t,L),t.intersect=function(B){return Sa.rect(t,B)},h}X(KFn,"classBox");async function XFn(e,t){var M,F;const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const s=t,o=t,u=20,h=20,f="verifyMethod"in t,p=Ys(t),m=e.insert("g").attr("class",p).attr("id",t.domId??t.id);let b;f?b=await EC(m,`<<${s.type}>>`,0,t.labelStyle):b=await EC(m,"<<Element>>",0,t.labelStyle);let _=b;const w=await EC(m,s.name,_,t.labelStyle+"; font-weight: bold;");if(_+=w+h,f){const U=await EC(m,`${s.requirementId?`ID: ${s.requirementId}`:""}`,_,t.labelStyle);_+=U;const $=await EC(m,`${s.text?`Text: ${s.text}`:""}`,_,t.labelStyle);_+=$;const G=await EC(m,`${s.risk?`Risk: ${s.risk}`:""}`,_,t.labelStyle);_+=G,await EC(m,`${s.verifyMethod?`Verification: ${s.verifyMethod}`:""}`,_,t.labelStyle)}else{const U=await EC(m,`${o.type?`Type: ${o.type}`:""}`,_,t.labelStyle);_+=U,await EC(m,`${o.docRef?`Doc Ref: ${o.docRef}`:""}`,_,t.labelStyle)}const S=(((M=m.node())==null?void 0:M.getBBox().width)??200)+u,C=(((F=m.node())==null?void 0:F.getBBox().height)??200)+u,A=-S/2,k=-C/2,I=Wa.svg(m),N=Ja(t,{});t.look!=="handDrawn"&&(N.roughness=0,N.fillStyle="solid");const L=I.rectangle(A,k,S,C,N),P=m.insert(()=>L,":first-child");if(P.attr("class","basic label-container").attr("style",a),m.selectAll(".label").each((U,$,G)=>{const B=gn(G[$]),Z=B.attr("transform");let z=0,Y=0;if(Z){const j=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Z);j&&(z=parseFloat(j[1]),Y=parseFloat(j[2]))}const W=Y-C/2;let Q=A+u/2;($===0||$===1)&&(Q=z),B.attr("transform",`translate(${Q}, ${W+u})`)}),_>b+w+h){const U=I.line(A,k+b+w+h,A+S,k+b+w+h,N);m.insert(()=>U).attr("style",a)}return es(t,P),t.intersect=function(U){return Sa.rect(t,U)},m}X(XFn,"requirementBox");async function EC(e,t,r,a=""){if(t==="")return 0;const s=e.insert("g").attr("class","label").attr("style",a),o=nn(),u=o.htmlLabels??!0,h=await Yw(s,H0t(vA(t)),{width:nv(t,o)+50,classes:"markdown-node-label",useHtmlLabels:u,style:a},o);let f;if(u){const p=h.children[0],m=gn(h);f=p.getBoundingClientRect(),m.attr("width",f.width),m.attr("height",f.height)}else{const p=h.children[0];for(const m of p.children)m.textContent=m.textContent.replaceAll(">",">").replaceAll("<","<"),a&&m.setAttribute("style",a);f=h.getBBox(),f.height+=6}return s.attr("transform",`translate(${-f.width/2},${-f.height/2+r})`),f.height}X(EC,"addText");var Hpi=X(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function QFn(e,t,{config:r}){var Z,z;const{labelStyles:a,nodeStyles:s}=Ia(t);t.labelStyle=a||"";const o=10,u=t.width;t.width=(t.width??200)-10;const{shapeSvg:h,bbox:f,label:p}=await oo(e,t,Ys(t)),m=t.padding||10;let b="",_;"ticket"in t&&t.ticket&&((Z=r==null?void 0:r.kanban)!=null&&Z.ticketBaseUrl)&&(b=(z=r==null?void 0:r.kanban)==null?void 0:z.ticketBaseUrl.replace("#TICKET#",t.ticket),_=h.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",b).attr("target","_blank"));const w={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let S,C;_?{label:S,bbox:C}=await Dtt(_,"ticket"in t&&t.ticket||"",w):{label:S,bbox:C}=await Dtt(h,"ticket"in t&&t.ticket||"",w);const{label:A,bbox:k}=await Dtt(h,"assigned"in t&&t.assigned||"",w);t.width=u;const I=10,N=(t==null?void 0:t.width)||0,L=Math.max(C.height,k.height)/2,P=Math.max(f.height+I*2,(t==null?void 0:t.height)||0)+L,M=-N/2,F=-P/2;p.attr("transform","translate("+(m-N/2)+", "+(-L-f.height/2)+")"),S.attr("transform","translate("+(m-N/2)+", "+(-L+f.height/2)+")"),A.attr("transform","translate("+(m+N/2-k.width-2*o)+", "+(-L+f.height/2)+")");let U;const{rx:$,ry:G}=t,{cssStyles:B}=t;if(t.look==="handDrawn"){const Y=Wa.svg(h),W=Ja(t,{}),Q=$||G?Y.path(B9(M,F,N,P,$||0),W):Y.rectangle(M,F,N,P,W);U=h.insert(()=>Q,":first-child"),U.attr("class","basic label-container").attr("style",B||null)}else{U=h.insert("rect",":first-child"),U.attr("class","basic label-container __APA__").attr("style",s).attr("rx",$??5).attr("ry",G??5).attr("x",M).attr("y",F).attr("width",N).attr("height",P);const Y="priority"in t&&t.priority;if(Y){const W=h.append("line"),Q=M+2,V=F+Math.floor(($??0)/2),j=F+P-Math.floor(($??0)/2);W.attr("x1",Q).attr("y1",V).attr("x2",Q).attr("y2",j).attr("stroke-width","4").attr("stroke",Hpi(Y))}}return es(t,U),t.height=P,t.intersect=function(Y){return Sa.rect(t,Y)},h}X(QFn,"kanbanItem");async function ZFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:u,label:h}=await oo(e,t,Ys(t)),f=o.width+10*u,p=o.height+8*u,m=.15*f,{cssStyles:b}=t,_=o.width+20,w=o.height+20,S=Math.max(f,_),C=Math.max(p,w);h.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`);let A;const k=`M0 0 a${m},${m} 1 0,0 ${S*.25},${-1*C*.1} a${m},${m} 1 0,0 ${S*.25},0 a${m},${m} 1 0,0 ${S*.25},0 a${m},${m} 1 0,0 ${S*.25},${C*.1} a${m},${m} 1 0,0 ${S*.15},${C*.33} a${m*.8},${m*.8} 1 0,0 0,${C*.34} a${m},${m} 1 0,0 ${-1*S*.15},${C*.33} a${m},${m} 1 0,0 ${-1*S*.25},${C*.15} a${m},${m} 1 0,0 ${-1*S*.25},0 a${m},${m} 1 0,0 ${-1*S*.25},0 a${m},${m} 1 0,0 ${-1*S*.25},${-1*C*.15} a${m},${m} 1 0,0 ${-1*S*.1},${-1*C*.33} a${m*.8},${m*.8} 1 0,0 0,${-1*C*.34} a${m},${m} 1 0,0 ${S*.1},${-1*C*.33} H0 V0 Z`;if(t.look==="handDrawn"){const I=Wa.svg(s),N=Ja(t,{}),L=I.path(k,N);A=s.insert(()=>L,":first-child"),A.attr("class","basic label-container").attr("style",Tb(b))}else A=s.insert("path",":first-child").attr("class","basic label-container").attr("style",a).attr("d",k);return A.attr("transform",`translate(${-S/2}, ${-C/2})`),es(t,A),t.calcIntersect=function(I,N){return Sa.rect(I,N)},t.intersect=function(I){return it.info("Bang intersect",t,I),Sa.rect(t,I)},s}X(ZFn,"bang");async function JFn(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:u,label:h}=await oo(e,t,Ys(t)),f=o.width+2*u,p=o.height+2*u,m=.15*f,b=.25*f,_=.35*f,w=.2*f,{cssStyles:S}=t;let C;const A=`M0 0 a${m},${m} 0 0,1 ${f*.25},${-1*f*.1} a${_},${_} 1 0,1 ${f*.4},${-1*f*.1} a${b},${b} 1 0,1 ${f*.35},${f*.2} a${m},${m} 1 0,1 ${f*.15},${p*.35} a${w},${w} 1 0,1 ${-1*f*.15},${p*.65} a${b},${m} 1 0,1 ${-1*f*.25},${f*.15} a${_},${_} 1 0,1 ${-1*f*.5},0 a${m},${m} 1 0,1 ${-1*f*.25},${-1*f*.15} a${m},${m} 1 0,1 ${-1*f*.1},${-1*p*.35} a${w},${w} 1 0,1 ${f*.1},${-1*p*.65} H0 V0 Z`;if(t.look==="handDrawn"){const k=Wa.svg(s),I=Ja(t,{}),N=k.path(A,I);C=s.insert(()=>N,":first-child"),C.attr("class","basic label-container").attr("style",Tb(S))}else C=s.insert("path",":first-child").attr("class","basic label-container").attr("style",a).attr("d",A);return h.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),C.attr("transform",`translate(${-f/2}, ${-p/2})`),es(t,C),t.calcIntersect=function(k,I){return Sa.rect(k,I)},t.intersect=function(k){return it.info("Cloud intersect",t,k),Sa.rect(t,k)},s}X(JFn,"cloud");async function e$n(e,t){const{labelStyles:r,nodeStyles:a}=Ia(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:u,label:h}=await oo(e,t,Ys(t)),f=o.width+8*u,p=o.height+2*u,m=5,b=` M${-f/2} ${p/2-m} v${-p+2*m} q0,-${m} ${m},-${m} h${f-2*m} q${m},0 ${m},${m} v${p-2*m} q0,${m} -${m},${m} h${-f+2*m} q-${m},0 -${m},-${m} Z `,_=s.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("style",a).attr("d",b);return s.append("line").attr("class","node-line-").attr("x1",-f/2).attr("y1",p/2).attr("x2",f/2).attr("y2",p/2),h.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),s.append(()=>h.node()),es(t,_),t.calcIntersect=function(w,S){return Sa.rect(w,S)},t.intersect=function(w){return Sa.rect(t,w)},s}X(e$n,"defaultMindmapNode");async function t$n(e,t){const r={padding:t.padding??0};return tpt(e,t,r)}X(t$n,"mindmapCircle");var Vpi=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:OFn},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:RFn},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:LFn},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:BFn},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:nFn},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:tpt},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:ZFn},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:JFn},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:CFn},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:cFn},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:vFn},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:yFn},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:GFn},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:mFn},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:iFn},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:UFn},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:WBn},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:IFn},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:PFn},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:MFn},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:oFn},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:uFn},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:ZBn},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:JBn},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:eFn},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:_Fn},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:VFn},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:lFn},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:zFn},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:wFn},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:tFn},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:rFn},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:HFn},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:jFn},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:aFn},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:qFn},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:sFn},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:NFn},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:SFn},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:xFn},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:jBn},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:QBn},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:$Fn},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:FFn},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:YFn},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:AFn},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:EFn}],Ypi=X(()=>{const t=[...Object.entries({state:DFn,choice:KBn,note:TFn,rectWithTitle:kFn,labelRect:bFn,iconSquare:pFn,iconCircle:dFn,icon:hFn,iconRounded:fFn,imageSquare:gFn,anchor:YBn,kanbanItem:QFn,mindmapCircle:t$n,defaultMindmapNode:e$n,classBox:KFn,erBox:npt,requirementBox:XFn}),...Vpi.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(s=>[s,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),n$n=Ypi();function r$n(e){return e in n$n}X(r$n,"isValidShape");var IAe=new Map;async function NAe(e,t,r){let a,s;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const o=t.shape?n$n[t.shape]:void 0;if(!o)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let u;r.config.securityLevel==="sandbox"?u="_top":t.linkTarget&&(u=t.linkTarget||"_blank"),a=e.insert("svg:a").attr("xlink:href",t.link).attr("target",u??null),s=await o(a,t,r)}else s=await o(e,t,r),a=s;return t.tooltip&&s.attr("title",t.tooltip),IAe.set(t.id,a),t.haveCallback&&a.attr("class",a.attr("class")+" clickable"),a}X(NAe,"insertNode");var jpi=X((e,t)=>{IAe.set(t.id,e)},"setNodeElem"),Wpi=X(()=>{IAe.clear()},"clear"),olt=X(e=>{const t=IAe.get(e.id);it.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,a=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+a-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),a},"positionNode"),Kpi=X((e,t,r,a,s,o)=>{t.arrowTypeStart&&Ivn(e,"start",t.arrowTypeStart,r,a,s,o),t.arrowTypeEnd&&Ivn(e,"end",t.arrowTypeEnd,r,a,s,o)},"addEdgeMarkers"),Xpi={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},Ivn=X((e,t,r,a,s,o,u)=>{var b;const h=Xpi[r];if(!h){it.warn(`Unknown arrow type: ${r}`);return}const f=h.type,m=`${s}_${o}-${f}${t==="start"?"Start":"End"}`;if(u&&u.trim()!==""){const _=u.replace(/[^\dA-Za-z]/g,"_"),w=`${m}_${_}`;if(!document.getElementById(w)){const S=document.getElementById(m);if(S){const C=S.cloneNode(!0);C.id=w,C.querySelectorAll("path, circle, line").forEach(k=>{k.setAttribute("stroke",u),h.fill&&k.setAttribute("fill",u)}),(b=S.parentNode)==null||b.appendChild(C)}}e.attr(`marker-${t}`,`url(${a}#${w})`)}else e.attr(`marker-${t}`,`url(${a}#${m})`)},"addEdgeMarker"),H4e=new Map,gm=new Map,Qpi=X(()=>{H4e.clear(),gm.clear()},"clear"),nwe=X(e=>e?e.reduce((r,a)=>r+";"+a,""):"","getLabelStyles"),i$n=X(async(e,t)=>{let r=nh(nn().flowchart.htmlLabels);const{labelStyles:a}=Ia(t);t.labelStyle=a;const s=await Yw(e,t.label,{style:t.labelStyle,useHtmlLabels:r,addSvgBackground:!0,isNode:!1});it.info("abc82",t,t.labelType);const o=e.insert("g").attr("class","edgeLabel"),u=o.insert("g").attr("class","label").attr("data-id",t.id);u.node().appendChild(s);let h=s.getBBox();if(r){const p=s.children[0],m=gn(s);h=p.getBoundingClientRect(),m.attr("width",h.width),m.attr("height",h.height)}u.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),H4e.set(t.id,o),t.width=h.width,t.height=h.height;let f;if(t.startLabelLeft){const p=await tF(t.startLabelLeft,nwe(t.labelStyle)),m=e.insert("g").attr("class","edgeTerminals"),b=m.insert("g").attr("class","inner");f=b.node().appendChild(p);const _=p.getBBox();b.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),gm.get(t.id)||gm.set(t.id,{}),gm.get(t.id).startLeft=m,$ie(f,t.startLabelLeft)}if(t.startLabelRight){const p=await tF(t.startLabelRight,nwe(t.labelStyle)),m=e.insert("g").attr("class","edgeTerminals"),b=m.insert("g").attr("class","inner");f=m.node().appendChild(p),b.node().appendChild(p);const _=p.getBBox();b.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),gm.get(t.id)||gm.set(t.id,{}),gm.get(t.id).startRight=m,$ie(f,t.startLabelRight)}if(t.endLabelLeft){const p=await tF(t.endLabelLeft,nwe(t.labelStyle)),m=e.insert("g").attr("class","edgeTerminals"),b=m.insert("g").attr("class","inner");f=b.node().appendChild(p);const _=p.getBBox();b.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),m.node().appendChild(p),gm.get(t.id)||gm.set(t.id,{}),gm.get(t.id).endLeft=m,$ie(f,t.endLabelLeft)}if(t.endLabelRight){const p=await tF(t.endLabelRight,nwe(t.labelStyle)),m=e.insert("g").attr("class","edgeTerminals"),b=m.insert("g").attr("class","inner");f=b.node().appendChild(p);const _=p.getBBox();b.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),m.node().appendChild(p),gm.get(t.id)||gm.set(t.id,{}),gm.get(t.id).endRight=m,$ie(f,t.endLabelRight)}return s},"insertEdgeLabel");function $ie(e,t){nn().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}X($ie,"setTerminalWidth");var a$n=X((e,t)=>{it.debug("Moving label abc88 ",e.id,e.label,H4e.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const a=nn(),{subGraphTitleTotalMargin:s}=oce(a);if(e.label){const o=H4e.get(e.id);let u=e.x,h=e.y;if(r){const f=Vo.calcLabelPosition(r);it.debug("Moving label "+e.label+" from (",u,",",h,") to (",f.x,",",f.y,") abc88"),t.updatedPath&&(u=f.x,h=f.y)}o.attr("transform",`translate(${u}, ${h+s/2})`)}if(e.startLabelLeft){const o=gm.get(e.id).startLeft;let u=e.x,h=e.y;if(r){const f=Vo.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}if(e.startLabelRight){const o=gm.get(e.id).startRight;let u=e.x,h=e.y;if(r){const f=Vo.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}if(e.endLabelLeft){const o=gm.get(e.id).endLeft;let u=e.x,h=e.y;if(r){const f=Vo.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}if(e.endLabelRight){const o=gm.get(e.id).endRight;let u=e.x,h=e.y;if(r){const f=Vo.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}},"positionEdgeLabel"),Zpi=X((e,t)=>{const r=e.x,a=e.y,s=Math.abs(t.x-r),o=Math.abs(t.y-a),u=e.width/2,h=e.height/2;return s>=u||o>=h},"outsideNode"),Jpi=X((e,t,r)=>{it.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(t)} insidePoint : ${JSON.stringify(r)} node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const a=e.x,s=e.y,o=Math.abs(a-r.x),u=e.width/2;let h=r.xMath.abs(a-t.x)*f){let b=r.y{it.warn("abc88 cutPathAtIntersect",e,t);let r=[],a=e[0],s=!1;return e.forEach(o=>{if(it.info("abc88 checking point",o,t),!Zpi(t,o)&&!s){const u=Jpi(t,a,o);it.debug("abc88 inside",o,a,u),it.debug("abc88 intersection",u,t);let h=!1;r.forEach(f=>{h=h||f.x===u.x&&f.y===u.y}),r.some(f=>f.x===u.x&&f.y===u.y)?it.warn("abc88 no intersect",u,r):r.push(u),s=!0}else it.warn("abc88 outside",o,a),a=o,s||r.push(o)}),it.debug("returning points",r),r},"cutPathAtIntersect");function s$n(e){const t=[],r=[];for(let a=1;a5&&Math.abs(o.y-s.y)>5||s.y===o.y&&o.x===u.x&&Math.abs(o.x-s.x)>5&&Math.abs(o.y-u.y)>5)&&(t.push(o),r.push(a))}return{cornerPoints:t,cornerPointPositions:r}}X(s$n,"extractCornerPoints");var Ovn=X(function(e,t,r){const a=t.x-e.x,s=t.y-e.y,o=Math.sqrt(a*a+s*s),u=r/o;return{x:t.x-u*a,y:t.y-u*s}},"findAdjacentPoint"),egi=X(function(e){const{cornerPointPositions:t}=s$n(e),r=[];for(let a=0;a10&&Math.abs(o.y-s.y)>=10){it.debug("Corner point fixing",Math.abs(o.x-s.x),Math.abs(o.y-s.y));const w=5;u.x===h.x?_={x:p<0?h.x-w+b:h.x+w-b,y:m<0?h.y-b:h.y+b}:_={x:p<0?h.x-b:h.x+b,y:m<0?h.y-w+b:h.y+w-b}}else it.debug("Corner point skipping fixing",Math.abs(o.x-s.x),Math.abs(o.y-s.y));r.push(_,f)}else r.push(e[a]);return r},"fixCorners"),tgi=X((e,t,r)=>{const a=e-t-r,s=2,o=2,u=s+o,h=Math.floor(a/u),f=Array(h).fill(`${s} ${o}`).join(" ");return`0 ${t} ${f} ${r}`},"generateDashArray"),o$n=X(function(e,t,r,a,s,o,u,h=!1){var Y;const{handDrawnSeed:f}=nn();let p=t.points,m=!1;const b=s;var _=o;const w=[];for(const W in t.cssCompiledStyles)R1t(W)||w.push(t.cssCompiledStyles[W]);it.debug("UIO intersect check",t.points,_.x,b.x),_.intersect&&b.intersect&&!h&&(p=p.slice(1,t.points.length-1),p.unshift(b.intersect(p[0])),it.debug("Last point UIO",t.start,"-->",t.end,p[p.length-1],_,_.intersect(p[p.length-1])),p.push(_.intersect(p[p.length-1])));const S=btoa(JSON.stringify(p));t.toCluster&&(it.info("to cluster abc88",r.get(t.toCluster)),p=Nvn(t.points,r.get(t.toCluster).node),m=!0),t.fromCluster&&(it.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(p,null,2)),p=Nvn(p.reverse(),r.get(t.fromCluster).node).reverse(),m=!0);let C=p.filter(W=>!Number.isNaN(W.y));C=egi(C);let A=j3;switch(A=Cg,t.curve){case"linear":A=Cg;break;case"basis":A=j3;break;case"cardinal":A=h1t;break;case"bumpX":A=l1t;break;case"bumpY":A=c1t;break;case"catmullRom":A=g1t;break;case"monotoneX":A=m1t;break;case"monotoneY":A=b1t;break;case"natural":A=y1t;break;case"step":A=v1t;break;case"stepAfter":A=w1t;break;case"stepBefore":A=_1t;break;default:A=j3}const{x:k,y:I}=kPn(t),N=r_().x(k).y(I).curve(A);let L;switch(t.thickness){case"normal":L="edge-thickness-normal";break;case"thick":L="edge-thickness-thick";break;case"invisible":L="edge-thickness-invisible";break;default:L="edge-thickness-normal"}switch(t.pattern){case"solid":L+=" edge-pattern-solid";break;case"dotted":L+=" edge-pattern-dotted";break;case"dashed":L+=" edge-pattern-dashed";break;default:L+=" edge-pattern-solid"}let P,M=t.curve==="rounded"?l$n(c$n(C,t),5):N(C);const F=Array.isArray(t.style)?t.style:[t.style];let U=F.find(W=>W==null?void 0:W.startsWith("stroke:")),$=!1;if(t.look==="handDrawn"){const W=Wa.svg(e);Object.assign([],C);const Q=W.path(M,{roughness:.3,seed:f});L+=" transition",P=gn(Q).select("path").attr("id",t.id).attr("class"," "+L+(t.classes?" "+t.classes:"")).attr("style",F?F.reduce((j,ee)=>j+";"+ee,""):"");let V=P.attr("d");P.attr("d",V),e.node().appendChild(P.node())}else{const W=w.join(";"),Q=F?F.reduce((ie,ge)=>ie+ge+";",""):"";let V="";t.animate&&(V=" edge-animation-fast"),t.animation&&(V=" edge-animation-"+t.animation);const j=(W?W+";"+Q+";":Q)+";"+(F?F.reduce((ie,ge)=>ie+";"+ge,""):"");P=e.append("path").attr("d",M).attr("id",t.id).attr("class"," "+L+(t.classes?" "+t.classes:"")+(V??"")).attr("style",j),U=(Y=j.match(/stroke:([^;]+)/))==null?void 0:Y[1],$=t.animate===!0||!!t.animation||W.includes("animation");const ee=P.node(),te=typeof ee.getTotalLength=="function"?ee.getTotalLength():0,ne=Qyn[t.arrowTypeStart]||0,se=Qyn[t.arrowTypeEnd]||0;if(t.look==="neo"&&!$){const ge=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?tgi(te,ne,se):`0 ${ne} ${te-ne-se} ${se}`}; stroke-dashoffset: 0;`;P.attr("style",ge+P.attr("style"))}}P.attr("data-edge",!0),P.attr("data-et","edge"),P.attr("data-id",t.id),P.attr("data-points",S),t.showPoints&&C.forEach(W=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",W.x).attr("cy",W.y)});let G="";(nn().flowchart.arrowMarkerAbsolute||nn().state.arrowMarkerAbsolute)&&(G=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,G=G.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),it.info("arrowTypeStart",t.arrowTypeStart),it.info("arrowTypeEnd",t.arrowTypeEnd),Kpi(P,t,G,u,a,U);const B=Math.floor(p.length/2),Z=p[B];Vo.isLabelCoordinateInPath(Z,P.attr("d"))||(m=!0);let z={};return m&&(z.updatedPath=p),z.originalPath=t.points,z},"insertEdge");function l$n(e,t){if(e.length<2)return"";let r="";const a=e.length,s=1e-5;for(let o=0;o({...s}));if(e.length>=2&&bb[t.arrowTypeStart]){const s=bb[t.arrowTypeStart],o=e[0],u=e[1],{angle:h}=llt(o,u),f=s*Math.cos(h),p=s*Math.sin(h);r[0].x=o.x+f,r[0].y=o.y+p}const a=e.length;if(a>=2&&bb[t.arrowTypeEnd]){const s=bb[t.arrowTypeEnd],o=e[a-1],u=e[a-2],{angle:h}=llt(u,o),f=s*Math.cos(h),p=s*Math.sin(h);r[a-1].x=o.x-f,r[a-1].y=o.y-p}return r}X(c$n,"applyMarkerOffsetsToPoints");var ngi=X((e,t,r,a)=>{t.forEach(s=>{ygi[s](e,r,a)})},"insertMarkers"),rgi=X((e,t,r)=>{it.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),igi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),agi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),sgi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),ogi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),lgi=X((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),cgi=X((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),ugi=X((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),hgi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),dgi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),fgi=X((e,t,r)=>{const a=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),a.append("path").attr("d","M9,0 L9,18");const s=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),s.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),pgi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),ggi=X((e,t,r)=>{const a=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),a.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const s=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),mgi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0 L20,10 M20,10 L0,20`)},"requirement_arrow"),bgi=X((e,t,r)=>{const a=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),ygi={extension:rgi,composition:igi,aggregation:agi,dependency:sgi,lollipop:ogi,point:lgi,circle:cgi,cross:ugi,barb:hgi,only_one:dgi,zero_or_one:fgi,one_or_more:pgi,zero_or_more:ggi,requirement_arrow:mgi,requirement_contains:bgi},u$n=ngi,vgi={common:Ti,getConfig:$c,insertCluster:ept,insertEdge:o$n,insertEdgeLabel:i$n,insertMarkers:u$n,insertNode:NAe,interpolateToCurve:M1t,labelHelper:oo,log:it,positionEdgeLabel:a$n},Toe={},h$n=X(e=>{for(const t of e)Toe[t.name]=t},"registerLayoutLoaders"),_gi=X(()=>{h$n([{name:"dagre",loader:X(async()=>await ea(()=>Promise.resolve().then(()=>I6i),void 0),"loader")},{name:"cose-bilkent",loader:X(async()=>await ea(()=>Promise.resolve().then(()=>d9i),void 0),"loader")}])},"registerDefaultLayoutLoaders");_gi();var $W=X(async(e,t)=>{if(!(e.layoutAlgorithm in Toe))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const r=Toe[e.layoutAlgorithm];return(await r.loader()).render(e,t,vgi,{algorithm:r.algorithm})},"render"),hce=X((e="",{fallback:t="dagre"}={})=>{if(e in Toe)return e;if(t in Toe)return it.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),wgi=MPn(Object.keys,Object),Egi=Object.prototype,xgi=Egi.hasOwnProperty;function d$n(e){if(!bAe(e))return wgi(e);var t=[];for(var r in Object(e))xgi.call(e,r)&&r!="constructor"&&t.push(r);return t}var clt=k$(OA,"DataView"),ult=k$(OA,"Promise"),QV=k$(OA,"Set"),hlt=k$(OA,"WeakMap"),Lvn="[object Map]",Sgi="[object Object]",Dvn="[object Promise]",Mvn="[object Set]",Pvn="[object WeakMap]",Bvn="[object DataView]",Tgi=A$(clt),Cgi=A$(Eoe),Agi=A$(ult),kgi=A$(QV),Rgi=A$(hlt),Qx=C$;(clt&&Qx(new clt(new ArrayBuffer(1)))!=Bvn||Eoe&&Qx(new Eoe)!=Lvn||ult&&Qx(ult.resolve())!=Dvn||QV&&Qx(new QV)!=Mvn||hlt&&Qx(new hlt)!=Pvn)&&(Qx=function(e){var t=C$(e),r=t==Sgi?e.constructor:void 0,a=r?A$(r):"";if(a)switch(a){case Tgi:return Bvn;case Cgi:return Lvn;case Agi:return Dvn;case kgi:return Mvn;case Rgi:return Pvn}return t});var Igi="[object Map]",Ngi="[object Set]",Ogi=Object.prototype,Lgi=Ogi.hasOwnProperty;function uA(e){if(e==null)return!0;if(P9(e)&&(Z0(e)||typeof e=="string"||typeof e.splice=="function"||Mj(e)||vAe(e)||Dj(e)))return!e.length;var t=Qx(e);if(t==Igi||t==Ngi)return!e.size;if(bAe(e))return!d$n(e).length;for(var r in e)if(Lgi.call(e,r))return!1;return!0}var f$n="c4",Dgi=X(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),Mgi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>lLi);return{diagram:t}},void 0);return{id:f$n,diagram:e}},"loader"),Pgi={id:f$n,detector:Dgi,loader:Mgi},Bgi=Pgi,p$n="flowchart",Fgi=X((e,t)=>{var r,a;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((a=t==null?void 0:t.flowchart)==null?void 0:a.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),$gi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>qgt);return{diagram:t}},void 0);return{id:p$n,diagram:e}},"loader"),Ugi={id:p$n,detector:Fgi,loader:$gi},zgi=Ugi,g$n="flowchart-v2",Ggi=X((e,t)=>{var r,a,s;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((a=t==null?void 0:t.flowchart)==null?void 0:a.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((s=t==null?void 0:t.flowchart)==null?void 0:s.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),qgi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>qgt);return{diagram:t}},void 0);return{id:g$n,diagram:e}},"loader"),Hgi={id:g$n,detector:Ggi,loader:qgi},Vgi=Hgi,m$n="er",Ygi=X(e=>/^\s*erDiagram/.test(e),"detector"),jgi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>kLi);return{diagram:t}},void 0);return{id:m$n,diagram:e}},"loader"),Wgi={id:m$n,detector:Ygi,loader:jgi},Kgi=Wgi,b$n="gitGraph",Xgi=X(e=>/^\s*gitGraph/.test(e),"detector"),Qgi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>wYi);return{diagram:t}},void 0);return{id:b$n,diagram:e}},"loader"),Zgi={id:b$n,detector:Xgi,loader:Qgi},Jgi=Zgi,y$n="gantt",emi=X(e=>/^\s*gantt/.test(e),"detector"),tmi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>gji);return{diagram:t}},void 0);return{id:y$n,diagram:e}},"loader"),nmi={id:y$n,detector:emi,loader:tmi},rmi=nmi,v$n="info",imi=X(e=>/^\s*info/.test(e),"detector"),ami=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>xji);return{diagram:t}},void 0);return{id:v$n,diagram:e}},"loader"),smi={id:v$n,detector:imi,loader:ami},_$n="pie",omi=X(e=>/^\s*pie/.test(e),"detector"),lmi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Uji);return{diagram:t}},void 0);return{id:_$n,diagram:e}},"loader"),cmi={id:_$n,detector:omi,loader:lmi},w$n="quadrantChart",umi=X(e=>/^\s*quadrantChart/.test(e),"detector"),hmi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Kji);return{diagram:t}},void 0);return{id:w$n,diagram:e}},"loader"),dmi={id:w$n,detector:umi,loader:hmi},fmi=dmi,E$n="xychart",pmi=X(e=>/^\s*xychart(-beta)?/.test(e),"detector"),gmi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>uWi);return{diagram:t}},void 0);return{id:E$n,diagram:e}},"loader"),mmi={id:E$n,detector:pmi,loader:gmi},bmi=mmi,x$n="requirement",ymi=X(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),vmi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>bWi);return{diagram:t}},void 0);return{id:x$n,diagram:e}},"loader"),_mi={id:x$n,detector:ymi,loader:vmi},wmi=_mi,S$n="sequence",Emi=X(e=>/^\s*sequenceDiagram/.test(e),"detector"),xmi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>iKi);return{diagram:t}},void 0);return{id:S$n,diagram:e}},"loader"),Smi={id:S$n,detector:Emi,loader:xmi},Tmi=Smi,T$n="class",Cmi=X((e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),Ami=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>uKi);return{diagram:t}},void 0);return{id:T$n,diagram:e}},"loader"),kmi={id:T$n,detector:Cmi,loader:Ami},Rmi=kmi,C$n="classDiagram",Imi=X((e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),Nmi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>dKi);return{diagram:t}},void 0);return{id:C$n,diagram:e}},"loader"),Omi={id:C$n,detector:Imi,loader:Nmi},Lmi=Omi,A$n="state",Dmi=X((e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),Mmi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>tXi);return{diagram:t}},void 0);return{id:A$n,diagram:e}},"loader"),Pmi={id:A$n,detector:Dmi,loader:Mmi},Bmi=Pmi,k$n="stateDiagram",Fmi=X((e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),$mi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>rXi);return{diagram:t}},void 0);return{id:k$n,diagram:e}},"loader"),Umi={id:k$n,detector:Fmi,loader:$mi},zmi=Umi,R$n="journey",Gmi=X(e=>/^\s*journey/.test(e),"detector"),qmi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>TXi);return{diagram:t}},void 0);return{id:R$n,diagram:e}},"loader"),Hmi={id:R$n,detector:Gmi,loader:qmi},Vmi=Hmi,Ymi=X((e,t,r)=>{it.debug(`rendering svg for syntax error `);const a=bR(t),s=a.append("g");a.attr("viewBox","0 0 2412 512"),yv(a,100,512,!0),s.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),s.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),s.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),s.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),s.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),s.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),s.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),s.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),I$n={draw:Ymi},jmi=I$n,Wmi={db:{},renderer:I$n,parser:{parse:X(()=>{},"parse")}},Kmi=Wmi,N$n="flowchart-elk",Xmi=X((e,t={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),Qmi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>qgt);return{diagram:t}},void 0);return{id:N$n,diagram:e}},"loader"),Zmi={id:N$n,detector:Xmi,loader:Qmi},Jmi=Zmi,O$n="timeline",ebi=X(e=>/^\s*timeline/.test(e),"detector"),tbi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>jXi);return{diagram:t}},void 0);return{id:O$n,diagram:e}},"loader"),nbi={id:O$n,detector:ebi,loader:tbi},rbi=nbi,L$n="mindmap",ibi=X(e=>/^\s*mindmap/.test(e),"detector"),abi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>oQi);return{diagram:t}},void 0);return{id:L$n,diagram:e}},"loader"),sbi={id:L$n,detector:ibi,loader:abi},obi=sbi,D$n="kanban",lbi=X(e=>/^\s*kanban/.test(e),"detector"),cbi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>AQi);return{diagram:t}},void 0);return{id:D$n,diagram:e}},"loader"),ubi={id:D$n,detector:lbi,loader:cbi},hbi=ubi,M$n="sankey",dbi=X(e=>/^\s*sankey(-beta)?/.test(e),"detector"),fbi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>sZi);return{diagram:t}},void 0);return{id:M$n,diagram:e}},"loader"),pbi={id:M$n,detector:dbi,loader:fbi},gbi=pbi,P$n="packet",mbi=X(e=>/^\s*packet(-beta)?/.test(e),"detector"),bbi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>bZi);return{diagram:t}},void 0);return{id:P$n,diagram:e}},"loader"),ybi={id:P$n,detector:mbi,loader:bbi},B$n="radar",vbi=X(e=>/^\s*radar-beta/.test(e),"detector"),_bi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>FZi);return{diagram:t}},void 0);return{id:B$n,diagram:e}},"loader"),wbi={id:B$n,detector:vbi,loader:_bi},F$n="block",Ebi=X(e=>/^\s*block(-beta)?/.test(e),"detector"),xbi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>uea);return{diagram:t}},void 0);return{id:F$n,diagram:e}},"loader"),Sbi={id:F$n,detector:Ebi,loader:xbi},Tbi=Sbi,$$n="architecture",Cbi=X(e=>/^\s*architecture/.test(e),"detector"),Abi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Dea);return{diagram:t}},void 0);return{id:$$n,diagram:e}},"loader"),kbi={id:$$n,detector:Cbi,loader:Abi},Rbi=kbi,U$n="treemap",Ibi=X(e=>/^\s*treemap/.test(e),"detector"),Nbi=X(async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Vea);return{diagram:t}},void 0);return{id:U$n,diagram:e}},"loader"),Obi={id:U$n,detector:Ibi,loader:Nbi},Fvn=!1,OAe=X(()=>{Fvn||(Fvn=!0,l4e("error",Kmi,e=>e.toLowerCase().trim()==="error"),l4e("---",{db:{clear:X(()=>{},"clear")},styles:{},renderer:{draw:X(()=>{},"draw")},parser:{parse:X(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:X(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),pot(Jmi,obi,Rbi),pot(Bgi,hbi,Lmi,Rmi,Kgi,rmi,smi,cmi,wmi,Tmi,Vgi,zgi,rbi,Jgi,zmi,Bmi,Vmi,fmi,gbi,ybi,bmi,Tbi,wbi,Obi))},"addDiagrams"),Lbi=X(async()=>{it.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(IF).map(async([r,{detector:a,loader:s}])=>{if(s)try{vot(r)}catch{try{const{diagram:o,id:u}=await s();l4e(u,o,a)}catch(o){throw it.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete IF[r],o}}}))).filter(r=>r.status==="rejected");if(t.length>0){it.error(`Failed to load ${t.length} external diagrams`);for(const r of t)it.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),Dbi="graphics-document document";function z$n(e,t){e.attr("role",Dbi),t!==""&&e.attr("aria-roledescription",t)}X(z$n,"setA11yDiagramInfo");function G$n(e,t,r,a){if(e.insert!==void 0){if(r){const s=`chart-desc-${a}`;e.attr("aria-describedby",s),e.insert("desc",":first-child").attr("id",s).text(r)}if(t){const s=`chart-title-${a}`;e.attr("aria-labelledby",s),e.insert("title",":first-child").attr("id",s).text(t)}}}X(G$n,"addSVGa11yTitleDescription");var mF,dlt=(mF=class{constructor(t,r,a,s,o){this.type=t,this.text=r,this.db=a,this.parser=s,this.renderer=o}static async fromText(t,r={}){var p,m;const a=$c(),s=F0t(t,a);t=t1i(t)+` `;try{vot(s)}catch{const b=vii(s);if(!b)throw new fLn(`Diagram ${s} not found.`);const{id:_,diagram:w}=await b();l4e(_,w)}const{db:o,parser:u,renderer:h,init:f}=vot(s);return u.parser&&(u.parser.yy=o),(p=o.clear)==null||p.call(o),f==null||f(a),r.title&&((m=o.setDiagramTitle)==null||m.call(o,r.title)),await u.parse(t),new mF(s,t,o,u,h)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},X(mF,"Diagram"),mF),$vn=[],Mbi=X(()=>{$vn.forEach(e=>{e()}),$vn=[]},"attachFunctions"),Pbi=X(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function q$n(e){const t=e.match(dLn);if(!t)return{text:e,metadata:{}};let r=fAe(t[1],{schema:dAe})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const a={};return r.displayMode&&(a.displayMode=r.displayMode.toString()),r.title&&(a.title=r.title.toString()),r.config&&(a.config=r.config),{text:e.slice(t[0].length),metadata:a}}X(q$n,"extractFrontMatter");var Bbi=X(e=>e.replace(/\r\n?/g,` `).replace(/<(\w+)([^>]*)>/g,(t,r,a)=>"<"+r+a.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),Fbi=X(e=>{const{text:t,metadata:r}=q$n(e),{displayMode:a,title:s,config:o={}}=r;return a&&(o.gantt||(o.gantt={}),o.gantt.displayMode=a),{title:s,config:o,text:t}},"processFrontmatter"),$bi=X(e=>{const t=Vo.detectInit(e)??{},r=Vo.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:a})=>a==="wrap"):(r==null?void 0:r.type)==="wrap"&&(t.wrap=!0),{text:V0i(e),directive:t}},"processDirectives");function rpt(e){const t=Bbi(e),r=Fbi(t),a=$bi(r.text),s=cv(r.config,a.directive);return e=Pbi(a.text),{code:e,title:r.title,config:s}}X(rpt,"preprocessDiagram");function H$n(e){const t=new TextEncoder().encode(e),r=Array.from(t,a=>String.fromCodePoint(a)).join("");return btoa(r)}X(H$n,"toBase64");var Ubi=5e4,zbi="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Gbi="sandbox",qbi="loose",Hbi="http://www.w3.org/2000/svg",Vbi="http://www.w3.org/1999/xlink",Ybi="http://www.w3.org/1999/xhtml",jbi="100%",Wbi="100%",Kbi="border:0;margin:0;",Xbi="margin:0",Qbi="allow-top-navigation-by-user-activation allow-popups",Zbi='The "iframe" tag is not supported by your browser.',Jbi=["foreignobject"],eyi=["dominant-baseline"];function ipt(e){const t=rpt(e);return s4e(),Dii(t.config??{}),t}X(ipt,"processAndSetConfigs");async function V$n(e,t){OAe();try{const{code:r,config:a}=ipt(e);return{diagramType:(await j$n(r)).type,config:a}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}X(V$n,"parse");var Uvn=X((e,t,r=[])=>` .${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),tyi=X((e,t=new Map)=>{var a;let r="";if(e.themeCSS!==void 0&&(r+=` ${e.themeCSS}`),e.fontFamily!==void 0&&(r+=` :root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(r+=` :root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){const h=e.htmlLabels??((a=e.flowchart)==null?void 0:a.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(f=>{uA(f.styles)||h.forEach(p=>{r+=Uvn(f.id,p,f.styles)}),uA(f.textStyles)||(r+=Uvn(f.id,"tspan",((f==null?void 0:f.textStyles)||[]).map(p=>p.replace("color","fill"))))})}return r},"createCssStyles"),nyi=X((e,t,r,a)=>{const s=tyi(e,r),o=Jii(t,s,e.themeVariables);return Gse(RAn(`${a}{${o}}`),NAn)},"createUserStyles"),ryi=X((e="",t,r)=>{let a=e;return!r&&!t&&(a=a.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),a=vA(a),a=a.replace(/
    /g,"
    "),a},"cleanUpSvgCode"),iyi=X((e="",t)=>{var s,o;const r=(o=(s=t==null?void 0:t.viewBox)==null?void 0:s.baseVal)!=null&&o.height?t.viewBox.baseVal.height+"px":Wbi,a=H$n(`${e}`);return``},"putIntoIFrame"),zvn=X((e,t,r,a,s)=>{const o=e.append("div");o.attr("id",r),a&&o.attr("style",a);const u=o.append("svg").attr("id",t).attr("width","100%").attr("xmlns",Hbi);return s&&u.attr("xmlns:xlink",s),u.append("g"),e},"appendDivSvgG");function flt(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}X(flt,"sandboxedIframe");var ayi=X((e,t,r,a)=>{var s,o,u;(s=e.getElementById(t))==null||s.remove(),(o=e.getElementById(r))==null||o.remove(),(u=e.getElementById(a))==null||u.remove()},"removeExistingElements"),syi=X(async function(e,t,r){var Z,z,Y,W,Q,V;OAe();const a=ipt(t);t=a.code;const s=$c();it.debug(s),t.length>((s==null?void 0:s.maxTextSize)??Ubi)&&(t=zbi);const o="#"+e,u="i"+e,h="#"+u,f="d"+e,p="#"+f,m=X(()=>{const ee=gn(_?h:p).node();ee&&"remove"in ee&&ee.remove()},"removeTempElements");let b=gn("body");const _=s.securityLevel===Gbi,w=s.securityLevel===qbi,S=s.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),_){const j=flt(gn(r),u);b=gn(j.nodes()[0].contentDocument.body),b.node().style.margin=0}else b=gn(r);zvn(b,e,f,`font-family: ${S}`,Vbi)}else{if(ayi(document,e,f,u),_){const j=flt(gn("body"),u);b=gn(j.nodes()[0].contentDocument.body),b.node().style.margin=0}else b=gn("body");zvn(b,e,f)}let C,A;try{C=await dlt.fromText(t,{title:a.title})}catch(j){if(s.suppressErrorRendering)throw m(),j;C=await dlt.fromText("error"),A=j}const k=b.select(p).node(),I=C.type,N=k.firstChild,L=N.firstChild,P=(z=(Z=C.renderer).getClasses)==null?void 0:z.call(Z,t,C),M=nyi(s,I,P,o),F=document.createElement("style");F.innerHTML=M,N.insertBefore(F,L);try{await C.renderer.draw(t,e,fot.version,C)}catch(j){throw s.suppressErrorRendering?m():jmi.draw(t,e,fot.version),j}const U=b.select(`${p} svg`),$=(W=(Y=C.db).getAccTitle)==null?void 0:W.call(Y),G=(V=(Q=C.db).getAccDescription)==null?void 0:V.call(Q);W$n(I,U,$,G),b.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",Ybi);let B=b.select(p).node().innerHTML;if(it.debug("config.arrowMarkerAbsolute",s.arrowMarkerAbsolute),B=ryi(B,_,nh(s.arrowMarkerAbsolute)),_){const j=b.select(p+" svg").node();B=iyi(B,j)}else w||(B=Sj.sanitize(B,{ADD_TAGS:Jbi,ADD_ATTR:eyi,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(Mbi(),A)throw A;return m(),{diagramType:I,svg:B,bindFunctions:C.db.bindFunctions}},"render");function Y$n(e={}){var a;const t=W0({},e);t!=null&&t.fontFamily&&!((a=t.themeVariables)!=null&&a.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Oii(t),t!=null&&t.theme&&t.theme in $7?t.themeVariables=$7[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=$7.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?Nii(t):bLn();B0t(r.logLevel),OAe()}X(Y$n,"initialize");var j$n=X((e,t={})=>{const{code:r}=rpt(e);return dlt.fromText(r,t)},"getDiagramFromText");function W$n(e,t,r,a){z$n(t,e),G$n(t,r,a,t.attr("id"))}X(W$n,"addA11yInfo");var zF=Object.freeze({render:syi,parse:V$n,getDiagramFromText:j$n,initialize:Y$n,getConfig:$c,setConfig:yLn,getSiteConfig:bLn,updateSiteConfig:Lii,reset:X(()=>{s4e()},"reset"),globalReset:X(()=>{s4e(Tj)},"globalReset"),defaultConfig:Tj});B0t($c().logLevel);s4e($c());var oyi=X((e,t,r)=>{it.warn(e),U1t(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),K$n=X(async function(e={querySelector:".mermaid"}){try{await lyi(e)}catch(t){if(U1t(t)&&it.error(t.str),Mw.parseError&&Mw.parseError(t),!e.suppressErrors)throw it.error("Use the suppressErrors option to suppress these errors"),t}},"run"),lyi=X(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const a=zF.getConfig();it.debug(`${e?"":"No "}Callback function found`);let s;if(r)s=r;else if(t)s=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");it.debug(`Found ${s.length} diagrams`),(a==null?void 0:a.startOnLoad)!==void 0&&(it.debug("Start On Load: "+(a==null?void 0:a.startOnLoad)),zF.updateSiteConfig({startOnLoad:a==null?void 0:a.startOnLoad}));const o=new Vo.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed);let u;const h=[];for(const f of Array.from(s)){if(it.info("Rendering diagram: "+f.id),f.getAttribute("data-processed"))continue;f.setAttribute("data-processed","true");const p=`mermaid-${o.next()}`;u=f.innerHTML,u=TAe(Vo.entityDecode(u)).trim().replace(//gi,"
    ");const m=Vo.detectInit(u);m&&it.debug("Detected early reinit: ",m);try{const{svg:b,bindFunctions:_}=await J$n(p,u,f);f.innerHTML=b,e&&await e(p),_&&_(f)}catch(b){oyi(b,h,Mw.parseError)}}if(h.length>0)throw h[0]},"runThrowsErrors"),X$n=X(function(e){zF.initialize(e)},"initialize"),cyi=X(async function(e,t,r){it.warn("mermaid.init is deprecated. Please use run instead."),e&&X$n(e);const a={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?a.querySelector=t:t&&(t instanceof HTMLElement?a.nodes=[t]:a.nodes=t),await K$n(a)},"init"),uyi=X(async(e,{lazyLoad:t=!0}={})=>{OAe(),pot(...e),t===!1&&await Lbi()},"registerExternalDiagrams"),Q$n=X(function(){if(Mw.startOnLoad){const{startOnLoad:e}=zF.getConfig();e&&Mw.run().catch(t=>it.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",Q$n,!1);var hyi=X(function(e){Mw.parseError=e},"setParseErrorHandler"),V4e=[],Mtt=!1,Z$n=X(async()=>{if(!Mtt){for(Mtt=!0;V4e.length>0;){const e=V4e.shift();if(e)try{await e()}catch(t){it.error("Error executing queue",t)}}Mtt=!1}},"executeQueue"),dyi=X(async(e,t)=>new Promise((r,a)=>{const s=X(()=>new Promise((o,u)=>{zF.parse(e,t).then(h=>{o(h),r(h)},h=>{var f;it.error("Error parsing",h),(f=Mw.parseError)==null||f.call(Mw,h),u(h),a(h)})}),"performCall");V4e.push(s),Z$n().catch(a)}),"parse"),J$n=X((e,t,r)=>new Promise((a,s)=>{const o=X(()=>new Promise((u,h)=>{zF.render(e,t,r).then(f=>{u(f),a(f)},f=>{var p;it.error("Error parsing",f),(p=Mw.parseError)==null||p.call(Mw,f),h(f),s(f)})}),"performCall");V4e.push(o),Z$n().catch(s)}),"render"),fyi=X(()=>Object.keys(IF).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),Mw={startOnLoad:!0,mermaidAPI:zF,parse:dyi,render:J$n,init:cyi,run:K$n,registerExternalDiagrams:uyi,registerLayoutLoaders:h$n,initialize:X$n,parseError:void 0,contentLoaded:Q$n,setParseErrorHandler:hyi,detectType:F0t,registerIconPacks:yBn,getRegisteredDiagramsMetadata:fyi},r5a=Mw;/*! Check if previously processed *//*! * Wait for document loaded before starting the execution */function zy(e){this.content=e}zy.prototype={constructor:zy,find:function(e){for(var t=0;t>1}};zy.from=function(e){if(e instanceof zy)return e;var t=[];if(e)for(var r in e)t.push(r,e[r]);return new zy(t)};var GF={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Y4e={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},pyi=typeof navigator<"u"&&/Mac/.test(navigator.platform),gyi=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var vm=0;vm<10;vm++)GF[48+vm]=GF[96+vm]=String(vm);for(var vm=1;vm<=24;vm++)GF[vm+111]="F"+vm;for(var vm=65;vm<=90;vm++)GF[vm]=String.fromCharCode(vm+32),Y4e[vm]=String.fromCharCode(vm);for(var Ptt in GF)Y4e.hasOwnProperty(Ptt)||(Y4e[Ptt]=GF[Ptt]);function i5a(e){var t=pyi&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||gyi&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",r=!t&&e.key||(e.shiftKey?Y4e:GF)[e.keyCode]||e.key||"Unidentified";return r=="Esc"&&(r="Escape"),r=="Del"&&(r="Delete"),r=="Left"&&(r="ArrowLeft"),r=="Up"&&(r="ArrowUp"),r=="Right"&&(r="ArrowRight"),r=="Down"&&(r="ArrowDown"),r}const{getOwnPropertyNames:myi,getOwnPropertySymbols:byi}=Object,{hasOwnProperty:yyi}=Object.prototype;function Btt(e,t){return function(a,s,o){return e(a,s,o)&&t(a,s,o)}}function rwe(e){return function(r,a,s){if(!r||!a||typeof r!="object"||typeof a!="object")return e(r,a,s);const{cache:o}=s,u=o.get(r),h=o.get(a);if(u&&h)return u===a&&h===r;o.set(r,a),o.set(a,r);const f=e(r,a,s);return o.delete(r),o.delete(a),f}}function vyi(e){return e!=null?e[Symbol.toStringTag]:void 0}function Gvn(e){return myi(e).concat(byi(e))}const _yi=Object.hasOwn||((e,t)=>yyi.call(e,t));function L$(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const wyi="__v",Eyi="__o",xyi="_owner",{getOwnPropertyDescriptor:qvn,keys:Hvn}=Object;function Syi(e,t){return e.byteLength===t.byteLength&&j4e(new Uint8Array(e),new Uint8Array(t))}function Tyi(e,t,r){let a=e.length;if(t.length!==a)return!1;for(;a-- >0;)if(!r.equals(e[a],t[a],a,a,e,t,r))return!1;return!0}function Cyi(e,t){return e.byteLength===t.byteLength&&j4e(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Ayi(e,t){return L$(e.getTime(),t.getTime())}function kyi(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Ryi(e,t){return e===t}function Vvn(e,t,r){const a=e.size;if(a!==t.size)return!1;if(!a)return!0;const s=new Array(a),o=e.entries();let u,h,f=0;for(;(u=o.next())&&!u.done;){const p=t.entries();let m=!1,b=0;for(;(h=p.next())&&!h.done;){if(s[b]){b++;continue}const _=u.value,w=h.value;if(r.equals(_[0],w[0],f,b,e,t,r)&&r.equals(_[1],w[1],_[0],w[0],e,t,r)){m=s[b]=!0;break}b++}if(!m)return!1;f++}return!0}const Iyi=L$;function Nyi(e,t,r){const a=Hvn(e);let s=a.length;if(Hvn(t).length!==s)return!1;for(;s-- >0;)if(!eUn(e,t,r,a[s]))return!1;return!0}function Hre(e,t,r){const a=Gvn(e);let s=a.length;if(Gvn(t).length!==s)return!1;let o,u,h;for(;s-- >0;)if(o=a[s],!eUn(e,t,r,o)||(u=qvn(e,o),h=qvn(t,o),(u||h)&&(!u||!h||u.configurable!==h.configurable||u.enumerable!==h.enumerable||u.writable!==h.writable)))return!1;return!0}function Oyi(e,t){return L$(e.valueOf(),t.valueOf())}function Lyi(e,t){return e.source===t.source&&e.flags===t.flags}function Yvn(e,t,r){const a=e.size;if(a!==t.size)return!1;if(!a)return!0;const s=new Array(a),o=e.values();let u,h;for(;(u=o.next())&&!u.done;){const f=t.values();let p=!1,m=0;for(;(h=f.next())&&!h.done;){if(!s[m]&&r.equals(u.value,h.value,u.value,h.value,e,t,r)){p=s[m]=!0;break}m++}if(!p)return!1}return!0}function j4e(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function Dyi(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function eUn(e,t,r,a){return(a===xyi||a===Eyi||a===wyi)&&(e.$$typeof||t.$$typeof)?!0:_yi(t,a)&&r.equals(e[a],t[a],a,a,e,t,r)}const Myi="[object ArrayBuffer]",Pyi="[object Arguments]",Byi="[object Boolean]",Fyi="[object DataView]",$yi="[object Date]",Uyi="[object Error]",zyi="[object Map]",Gyi="[object Number]",qyi="[object Object]",Hyi="[object RegExp]",Vyi="[object Set]",Yyi="[object String]",jyi={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},Wyi="[object URL]",Kyi=Object.prototype.toString;function Xyi({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:a,areErrorsEqual:s,areFunctionsEqual:o,areMapsEqual:u,areNumbersEqual:h,areObjectsEqual:f,arePrimitiveWrappersEqual:p,areRegExpsEqual:m,areSetsEqual:b,areTypedArraysEqual:_,areUrlsEqual:w,unknownTagComparators:S}){return function(A,k,I){if(A===k)return!0;if(A==null||k==null)return!1;const N=typeof A;if(N!==typeof k)return!1;if(N!=="object")return N==="number"?h(A,k,I):N==="function"?o(A,k,I):!1;const L=A.constructor;if(L!==k.constructor)return!1;if(L===Object)return f(A,k,I);if(Array.isArray(A))return t(A,k,I);if(L===Date)return a(A,k,I);if(L===RegExp)return m(A,k,I);if(L===Map)return u(A,k,I);if(L===Set)return b(A,k,I);const P=Kyi.call(A);if(P===$yi)return a(A,k,I);if(P===Hyi)return m(A,k,I);if(P===zyi)return u(A,k,I);if(P===Vyi)return b(A,k,I);if(P===qyi)return typeof A.then!="function"&&typeof k.then!="function"&&f(A,k,I);if(P===Wyi)return w(A,k,I);if(P===Uyi)return s(A,k,I);if(P===Pyi)return f(A,k,I);if(jyi[P])return _(A,k,I);if(P===Myi)return e(A,k,I);if(P===Fyi)return r(A,k,I);if(P===Byi||P===Gyi||P===Yyi)return p(A,k,I);if(S){let M=S[P];if(!M){const F=vyi(A);F&&(M=S[F])}if(M)return M(A,k,I)}return!1}}function Qyi({circular:e,createCustomConfig:t,strict:r}){let a={areArrayBuffersEqual:Syi,areArraysEqual:r?Hre:Tyi,areDataViewsEqual:Cyi,areDatesEqual:Ayi,areErrorsEqual:kyi,areFunctionsEqual:Ryi,areMapsEqual:r?Btt(Vvn,Hre):Vvn,areNumbersEqual:Iyi,areObjectsEqual:r?Hre:Nyi,arePrimitiveWrappersEqual:Oyi,areRegExpsEqual:Lyi,areSetsEqual:r?Btt(Yvn,Hre):Yvn,areTypedArraysEqual:r?Btt(j4e,Hre):j4e,areUrlsEqual:Dyi,unknownTagComparators:void 0};if(t&&(a=Object.assign({},a,t(a))),e){const s=rwe(a.areArraysEqual),o=rwe(a.areMapsEqual),u=rwe(a.areObjectsEqual),h=rwe(a.areSetsEqual);a=Object.assign({},a,{areArraysEqual:s,areMapsEqual:o,areObjectsEqual:u,areSetsEqual:h})}return a}function Zyi(e){return function(t,r,a,s,o,u,h){return e(t,r,h)}}function Jyi({circular:e,comparator:t,createState:r,equals:a,strict:s}){if(r)return function(h,f){const{cache:p=e?new WeakMap:void 0,meta:m}=r();return t(h,f,{cache:p,equals:a,meta:m,strict:s})};if(e)return function(h,f){return t(h,f,{cache:new WeakMap,equals:a,meta:void 0,strict:s})};const o={cache:void 0,equals:a,meta:void 0,strict:s};return function(h,f){return t(h,f,o)}}const a5a=$9();$9({strict:!0});$9({circular:!0});$9({circular:!0,strict:!0});$9({createInternalComparator:()=>L$});$9({strict:!0,createInternalComparator:()=>L$});$9({circular:!0,createInternalComparator:()=>L$});$9({circular:!0,createInternalComparator:()=>L$,strict:!0});function $9(e={}){const{circular:t=!1,createInternalComparator:r,createState:a,strict:s=!1}=e,o=Qyi(e),u=Xyi(o),h=r?r(u):Zyi(u);return Jyi({circular:t,comparator:u,createState:a,equals:h,strict:s})}const evi="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",tvi="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",plt="numeric",glt="ascii",mlt="alpha",hse="asciinumeric",Uie="alphanumeric",blt="domain",tUn="emoji",nvi="scheme",rvi="slashscheme",Ftt="whitespace";function ivi(e,t){return e in t||(t[e]=[]),t[e]}function nF(e,t,r){t[plt]&&(t[hse]=!0,t[Uie]=!0),t[glt]&&(t[hse]=!0,t[mlt]=!0),t[hse]&&(t[Uie]=!0),t[mlt]&&(t[Uie]=!0),t[Uie]&&(t[blt]=!0),t[tUn]&&(t[blt]=!0);for(const a in t){const s=ivi(a,r);s.indexOf(e)<0&&s.push(e)}}function avi(e,t){const r={};for(const a in t)t[a].indexOf(e)>=0&&(r[a]=!0);return r}function B2(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}B2.groups={};B2.prototype={accepts(){return!!this.t},go(e){const t=this,r=t.j[e];if(r)return r;for(let a=0;ae.ta(t,r,a,s),i0=(e,t,r,a,s)=>e.tr(t,r,a,s),jvn=(e,t,r,a,s)=>e.ts(t,r,a,s),Di=(e,t,r,a,s)=>e.tt(t,r,a,s),s7="WORD",ylt="UWORD",nUn="ASCIINUMERICAL",rUn="ALPHANUMERICAL",Coe="LOCALHOST",vlt="TLD",_lt="UTLD",cxe="SCHEME",dV="SLASH_SCHEME",apt="NUM",wlt="WS",spt="NL",dse="OPENBRACE",fse="CLOSEBRACE",W4e="OPENBRACKET",K4e="CLOSEBRACKET",X4e="OPENPAREN",Q4e="CLOSEPAREN",Z4e="OPENANGLEBRACKET",J4e="CLOSEANGLEBRACKET",e3e="FULLWIDTHLEFTPAREN",t3e="FULLWIDTHRIGHTPAREN",n3e="LEFTCORNERBRACKET",r3e="RIGHTCORNERBRACKET",i3e="LEFTWHITECORNERBRACKET",a3e="RIGHTWHITECORNERBRACKET",s3e="FULLWIDTHLESSTHAN",o3e="FULLWIDTHGREATERTHAN",l3e="AMPERSAND",c3e="APOSTROPHE",u3e="ASTERISK",KN="AT",h3e="BACKSLASH",d3e="BACKTICK",f3e="CARET",eO="COLON",opt="COMMA",p3e="DOLLAR",CC="DOT",g3e="EQUALS",lpt="EXCLAMATION",Vx="HYPHEN",pse="PERCENT",m3e="PIPE",b3e="PLUS",y3e="POUND",gse="QUERY",cpt="QUOTE",iUn="FULLWIDTHMIDDLEDOT",upt="SEMI",AC="SLASH",mse="TILDE",v3e="UNDERSCORE",aUn="EMOJI",_3e="SYM";var sUn=Object.freeze({__proto__:null,ALPHANUMERICAL:rUn,AMPERSAND:l3e,APOSTROPHE:c3e,ASCIINUMERICAL:nUn,ASTERISK:u3e,AT:KN,BACKSLASH:h3e,BACKTICK:d3e,CARET:f3e,CLOSEANGLEBRACKET:J4e,CLOSEBRACE:fse,CLOSEBRACKET:K4e,CLOSEPAREN:Q4e,COLON:eO,COMMA:opt,DOLLAR:p3e,DOT:CC,EMOJI:aUn,EQUALS:g3e,EXCLAMATION:lpt,FULLWIDTHGREATERTHAN:o3e,FULLWIDTHLEFTPAREN:e3e,FULLWIDTHLESSTHAN:s3e,FULLWIDTHMIDDLEDOT:iUn,FULLWIDTHRIGHTPAREN:t3e,HYPHEN:Vx,LEFTCORNERBRACKET:n3e,LEFTWHITECORNERBRACKET:i3e,LOCALHOST:Coe,NL:spt,NUM:apt,OPENANGLEBRACKET:Z4e,OPENBRACE:dse,OPENBRACKET:W4e,OPENPAREN:X4e,PERCENT:pse,PIPE:m3e,PLUS:b3e,POUND:y3e,QUERY:gse,QUOTE:cpt,RIGHTCORNERBRACKET:r3e,RIGHTWHITECORNERBRACKET:a3e,SCHEME:cxe,SEMI:upt,SLASH:AC,SLASH_SCHEME:dV,SYM:_3e,TILDE:mse,TLD:vlt,UNDERSCORE:v3e,UTLD:_lt,UWORD:ylt,WORD:s7,WS:wlt});const j6=/[a-z]/,Vre=new RegExp("\\p{L}","u"),$tt=new RegExp("\\p{Emoji}","u"),W6=/\d/,Utt=/\s/,Wvn="\r",ztt=` `,svi="️",ovi="‍",Gtt="";let iwe=null,awe=null;function lvi(e=[]){const t={};B2.groups=t;const r=new B2;iwe==null&&(iwe=Kvn(evi)),awe==null&&(awe=Kvn(tvi)),Di(r,"'",c3e),Di(r,"{",dse),Di(r,"}",fse),Di(r,"[",W4e),Di(r,"]",K4e),Di(r,"(",X4e),Di(r,")",Q4e),Di(r,"<",Z4e),Di(r,">",J4e),Di(r,"(",e3e),Di(r,")",t3e),Di(r,"「",n3e),Di(r,"」",r3e),Di(r,"『",i3e),Di(r,"』",a3e),Di(r,"<",s3e),Di(r,">",o3e),Di(r,"&",l3e),Di(r,"*",u3e),Di(r,"@",KN),Di(r,"`",d3e),Di(r,"^",f3e),Di(r,":",eO),Di(r,",",opt),Di(r,"$",p3e),Di(r,".",CC),Di(r,"=",g3e),Di(r,"!",lpt),Di(r,"-",Vx),Di(r,"%",pse),Di(r,"|",m3e),Di(r,"+",b3e),Di(r,"#",y3e),Di(r,"?",gse),Di(r,'"',cpt),Di(r,"/",AC),Di(r,";",upt),Di(r,"~",mse),Di(r,"_",v3e),Di(r,"\\",h3e),Di(r,"・",iUn);const a=i0(r,W6,apt,{[plt]:!0});i0(a,W6,a);const s=i0(a,j6,nUn,{[hse]:!0}),o=i0(a,Vre,rUn,{[Uie]:!0}),u=i0(r,j6,s7,{[glt]:!0});i0(u,W6,s),i0(u,j6,u),i0(s,W6,s),i0(s,j6,s);const h=i0(r,Vre,ylt,{[mlt]:!0});i0(h,j6),i0(h,W6,o),i0(h,Vre,h),i0(o,W6,o),i0(o,j6),i0(o,Vre,o);const f=Di(r,ztt,spt,{[Ftt]:!0}),p=Di(r,Wvn,wlt,{[Ftt]:!0}),m=i0(r,Utt,wlt,{[Ftt]:!0});Di(r,Gtt,m),Di(p,ztt,f),Di(p,Gtt,m),i0(p,Utt,m),Di(m,Wvn),Di(m,ztt),i0(m,Utt,m),Di(m,Gtt,m);const b=i0(r,$tt,aUn,{[tUn]:!0});Di(b,"#"),i0(b,$tt,b),Di(b,svi,b);const _=Di(b,ovi);Di(_,"#"),i0(_,$tt,b);const w=[[j6,u],[W6,s]],S=[[j6,null],[Vre,h],[W6,o]];for(let C=0;CC[0]>A[0]?1:-1);for(let C=0;C=0?I[blt]=!0:j6.test(A)?W6.test(A)?I[hse]=!0:I[glt]=!0:I[plt]=!0,jvn(r,A,A,I)}return jvn(r,"localhost",Coe,{ascii:!0}),r.jd=new B2(_3e),{start:r,tokens:Object.assign({groups:t},sUn)}}function oUn(e,t){const r=cvi(t.replace(/[A-Z]/g,h=>h.toLowerCase())),a=r.length,s=[];let o=0,u=0;for(;u=0&&(b+=r[u].length,_++),p+=r[u].length,o+=r[u].length,u++;o-=b,u-=_,p-=b,s.push({t:m.t,v:t.slice(o-p,o),s:o-p,e:o})}return s}function cvi(e){const t=[],r=e.length;let a=0;for(;a56319||a+1===r||(o=e.charCodeAt(a+1))<56320||o>57343?e[a]:e.slice(a,a+2);t.push(u),a+=u.length}return t}function LN(e,t,r,a,s){let o;const u=t.length;for(let h=0;h=0;)o++;if(o>0){t.push(r.join(""));for(let u=parseInt(e.substring(a,a+o),10);u>0;u--)r.pop();a+=o}else r.push(e[a]),a++}return t}const Aoe={defaultProtocol:"http",events:null,format:Xvn,formatHref:Xvn,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function hpt(e,t=null){let r=Object.assign({},Aoe);e&&(r=Object.assign(r,e instanceof hpt?e.o:e));const a=r.ignoreTags,s=[];for(let o=0;or?a.substring(0,r)+"…":a},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=Aoe.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,r=this.toHref(e.get("defaultProtocol")),a=e.get("formatHref",r,this),s=e.get("tagName",r,t),o=this.toFormattedString(e),u={},h=e.get("className",r,t),f=e.get("target",r,t),p=e.get("rel",r,t),m=e.getObj("attributes",r,t),b=e.getObj("events",r,t);return u.href=a,h&&(u.class=h),f&&(u.target=f),p&&(u.rel=p),m&&Object.assign(u,m),{tagName:s,attributes:u,content:o,eventListeners:b}}};function LAe(e,t){class r extends lUn{constructor(s,o){super(s,o),this.t=e}}for(const a in t)r.prototype[a]=t[a];return r.t=e,r}const Qvn=LAe("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Zvn=LAe("text"),uvi=LAe("nl"),swe=LAe("url",{isLink:!0,toHref(e=Aoe.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==Coe&&e[1].t===eO}}),Bx=e=>new B2(e);function hvi({groups:e}){const t=e.domain.concat([l3e,u3e,KN,h3e,d3e,f3e,p3e,g3e,Vx,apt,pse,m3e,b3e,y3e,AC,_3e,mse,v3e]),r=[c3e,eO,opt,CC,lpt,pse,gse,cpt,upt,Z4e,J4e,dse,fse,K4e,W4e,X4e,Q4e,e3e,t3e,n3e,r3e,i3e,a3e,s3e,o3e],a=[l3e,c3e,u3e,h3e,d3e,f3e,p3e,g3e,Vx,dse,fse,pse,m3e,b3e,y3e,gse,AC,_3e,mse,v3e],s=Bx(),o=Di(s,mse);Dl(o,a,o),Dl(o,e.domain,o);const u=Bx(),h=Bx(),f=Bx();Dl(s,e.domain,u),Dl(s,e.scheme,h),Dl(s,e.slashscheme,f),Dl(u,a,o),Dl(u,e.domain,u);const p=Di(u,KN);Di(o,KN,p),Di(h,KN,p),Di(f,KN,p);const m=Di(o,CC);Dl(m,a,o),Dl(m,e.domain,o);const b=Bx();Dl(p,e.domain,b),Dl(b,e.domain,b);const _=Di(b,CC);Dl(_,e.domain,b);const w=Bx(Qvn);Dl(_,e.tld,w),Dl(_,e.utld,w),Di(p,Coe,w);const S=Di(b,Vx);Di(S,Vx,S),Dl(S,e.domain,b),Dl(w,e.domain,b),Di(w,CC,_),Di(w,Vx,S);const C=Di(w,eO);Dl(C,e.numeric,Qvn);const A=Di(u,Vx),k=Di(u,CC);Di(A,Vx,A),Dl(A,e.domain,u),Dl(k,a,o),Dl(k,e.domain,u);const I=Bx(swe);Dl(k,e.tld,I),Dl(k,e.utld,I),Dl(I,e.domain,u),Dl(I,a,o),Di(I,CC,k),Di(I,Vx,A),Di(I,KN,p);const N=Di(I,eO),L=Bx(swe);Dl(N,e.numeric,L);const P=Bx(swe),M=Bx();Dl(P,t,P),Dl(P,r,M),Dl(M,t,P),Dl(M,r,M),Di(I,AC,P),Di(L,AC,P);const F=Di(h,eO),U=Di(f,eO),$=Di(U,AC),G=Di($,AC);Dl(h,e.domain,u),Di(h,CC,k),Di(h,Vx,A),Dl(f,e.domain,u),Di(f,CC,k),Di(f,Vx,A),Dl(F,e.domain,P),Di(F,AC,P),Di(F,gse,P),Dl(G,e.domain,P),Dl(G,t,P),Di(G,AC,P);const B=[[dse,fse],[W4e,K4e],[X4e,Q4e],[Z4e,J4e],[e3e,t3e],[n3e,r3e],[i3e,a3e],[s3e,o3e]];for(let Z=0;Z=0&&_++,s++,m++;if(_<0)s-=m,s0&&(o.push(qtt(Zvn,t,u)),u=[]),s-=_,m-=_;const w=b.t,S=r.slice(s-m,s);o.push(qtt(w,t,S))}}return u.length>0&&o.push(qtt(Zvn,t,u)),o}function qtt(e,t,r){const a=r[0].s,s=r[r.length-1].e,o=t.slice(a,s);return new e(o,r)}const fvi=typeof console<"u"&&console&&console.warn||(()=>{}),pvi="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",md={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function s5a(){return B2.groups={},md.scanner=null,md.parser=null,md.tokenQueue=[],md.pluginQueue=[],md.customSchemes=[],md.initialized=!1,md}function o5a(e,t=!1){if(md.initialized&&fvi(`linkifyjs: already initialized - will not register custom scheme "${e}" ${pvi}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error(`linkifyjs: incorrect scheme format. 1. Must only contain digits, lowercase ASCII letters or "-" 2. Cannot start or end with "-" 3. "-" cannot repeat`);md.customSchemes.push([e,t])}function gvi(){md.scanner=lvi(md.customSchemes);for(let e=0;e=r?Cb.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,r))};Cb.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Cb.prototype.forEach=function(t,r,a){r===void 0&&(r=0),a===void 0&&(a=this.length),r<=a?this.forEachInner(t,r,a,0):this.forEachInvertedInner(t,r,a,0)};Cb.prototype.map=function(t,r,a){r===void 0&&(r=0),a===void 0&&(a=this.length);var s=[];return this.forEach(function(o,u){return s.push(t(o,u))},r,a),s};Cb.from=function(t){return t instanceof Cb?t:t&&t.length?new uUn(t):Cb.empty};var uUn=function(e){function t(a){e.call(this),this.values=a}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(s,o){return s==0&&o==this.length?this:new t(this.values.slice(s,o))},t.prototype.getInner=function(s){return this.values[s]},t.prototype.forEachInner=function(s,o,u,h){for(var f=o;f=u;f--)if(s(this.values[f],h+f)===!1)return!1},t.prototype.leafAppend=function(s){if(this.length+s.length<=w3e)return new t(this.values.concat(s.flatten()))},t.prototype.leafPrepend=function(s){if(this.length+s.length<=w3e)return new t(s.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(t.prototype,r),t}(Cb);Cb.empty=new uUn([]);var mvi=function(e){function t(r,a){e.call(this),this.left=r,this.right=a,this.length=r.length+a.length,this.depth=Math.max(r.depth,a.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(a){return ah&&this.right.forEachInner(a,Math.max(s-h,0),Math.min(this.length,o)-h,u+h)===!1)return!1},t.prototype.forEachInvertedInner=function(a,s,o,u){var h=this.left.length;if(s>h&&this.right.forEachInvertedInner(a,s-h,Math.max(o,h)-h,u+h)===!1||o=o?this.right.slice(a-o,s-o):this.left.slice(a,o).append(this.right.slice(0,s-o))},t.prototype.leafAppend=function(a){var s=this.right.leafAppend(a);if(s)return new t(this.left,s)},t.prototype.leafPrepend=function(a){var s=this.left.leafPrepend(a);if(s)return new t(s,this.right)},t.prototype.appendInner=function(a){return this.left.depth>=Math.max(this.right.depth,a.depth)+1?new t(this.left,new t(this.right,a)):new t(this,a)},t}(Cb);function bvi(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function yvi(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:a}=t;return r+"/"+a}).join(" "):navigator.userAgent}function hUn(){return/apple/i.test(navigator.vendor)}function vvi(){return bvi().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function _vi(){return yvi().includes("jsdom/")}const Jvn="data-floating-ui-focusable",wvi="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Elt(e){let t=e.activeElement;for(;((r=t)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;t=t.shadowRoot.activeElement}return t}function Bj(e,t){if(!e||!t)return!1;const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&fst(r)){let a=t;for(;a;){if(e===a)return!0;a=a.parentNode||a.host}}return!1}function fV(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Htt(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}function Evi(e){return e.matches("html,body")}function KC(e){return(e==null?void 0:e.ownerDocument)||document}function xvi(e){return Fw(e)&&e.matches(wvi)}function Svi(e){if(!e||_vi())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Tvi(e){return e?e.hasAttribute(Jvn)?e:e.querySelector("["+Jvn+"]")||e:null}function uxe(e,t,r){return r===void 0&&(r=!0),e.filter(s=>{var o;return s.parentId===t&&(!r||((o=s.context)==null?void 0:o.open))}).flatMap(s=>[s,...uxe(e,s.id,r)])}function Cvi(e){return"nativeEvent"in e}function xlt(e,t){const r=["mouse","pen"];return r.push("",void 0),r.includes(e)}var Avi=typeof document<"u",kvi=function(){},X3=Avi?ue.useLayoutEffect:kvi;const Rvi={...g$};function owe(e){const t=ue.useRef(e);return X3(()=>{t.current=e}),t}const Ivi=Rvi.useInsertionEffect,Nvi=Ivi||(e=>e());function UC(e){const t=ue.useRef(()=>{});return Nvi(()=>{t.current=e}),ue.useCallback(function(){for(var r=arguments.length,a=new Array(r),s=0;s({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function fUn(e,t){const r=O6n(e,dUn()),a=r.length;if(a===0)return;const s=Elt(KC(e)),o=r.indexOf(s),u=o===-1?t===1?0:a-1:o+t;return r[u]}function Ovi(e){return fUn(KC(e).body,1)||e}function Lvi(e){return fUn(KC(e).body,-1)||e}function Vtt(e,t){const r=t||e.currentTarget,a=e.relatedTarget;return!a||!Bj(r,a)}function Dvi(e){O6n(e,dUn()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function e2n(e){e.querySelectorAll("[data-tabindex]").forEach(r=>{const a=r.dataset.tabindex;delete r.dataset.tabindex,a?r.setAttribute("tabindex",a):r.removeAttribute("tabindex")})}function c5a(e){const t=ue.useRef(void 0),r=ue.useCallback(a=>{const s=e.map(o=>{if(o!=null){if(typeof o=="function"){const u=o,h=u(a);return typeof h=="function"?h:()=>{u(null)}}return o.current=a,()=>{o.current=null}}});return()=>{s.forEach(o=>o==null?void 0:o())}},e);return ue.useMemo(()=>e.every(a=>a==null)?null:a=>{t.current&&(t.current(),t.current=void 0),a!=null&&(t.current=r(a))},e)}const Mvi="data-floating-ui-focusable",t2n="active",n2n="selected",Pvi={...g$};let r2n=!1,Bvi=0;const i2n=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Bvi++;function Fvi(){const[e,t]=ue.useState(()=>r2n?i2n():void 0);return X3(()=>{e==null&&t(i2n())},[]),ue.useEffect(()=>{r2n=!0},[]),e}const $vi=Pvi.useId,dpt=$vi||Fvi;function Uvi(){const e=new Map;return{emit(t,r){var a;(a=e.get(t))==null||a.forEach(s=>s(r))},on(t,r){e.has(t)||e.set(t,new Set),e.get(t).add(r)},off(t,r){var a;(a=e.get(t))==null||a.delete(r)}}}const zvi=ue.createContext(null),Gvi=ue.createContext(null),fpt=()=>{var e;return((e=ue.useContext(zvi))==null?void 0:e.id)||null},ppt=()=>ue.useContext(Gvi);function dce(e){return"data-floating-ui-"+e}function zx(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const a2n=dce("safe-polygon");function Ytt(e,t,r){if(r&&!xlt(r))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const a=e();return typeof a=="number"?a:a==null?void 0:a[t]}return e==null?void 0:e[t]}function jtt(e){return typeof e=="function"?e():e}function u5a(e,t){t===void 0&&(t={});const{open:r,onOpenChange:a,dataRef:s,events:o,elements:u}=e,{enabled:h=!0,delay:f=0,handleClose:p=null,mouseOnly:m=!1,restMs:b=0,move:_=!0}=t,w=ppt(),S=fpt(),C=owe(p),A=owe(f),k=owe(r),I=owe(b),N=ue.useRef(),L=ue.useRef(-1),P=ue.useRef(),M=ue.useRef(-1),F=ue.useRef(!0),U=ue.useRef(!1),$=ue.useRef(()=>{}),G=ue.useRef(!1),B=UC(()=>{var V;const j=(V=s.current.openEvent)==null?void 0:V.type;return(j==null?void 0:j.includes("mouse"))&&j!=="mousedown"});ue.useEffect(()=>{if(!h)return;function V(j){let{open:ee}=j;ee||(zx(L),zx(M),F.current=!0,G.current=!1)}return o.on("openchange",V),()=>{o.off("openchange",V)}},[h,o]),ue.useEffect(()=>{if(!h||!C.current||!r)return;function V(ee){B()&&a(!1,ee,"hover")}const j=KC(u.floating).documentElement;return j.addEventListener("mouseleave",V),()=>{j.removeEventListener("mouseleave",V)}},[u.floating,r,a,h,C,B]);const Z=ue.useCallback(function(V,j,ee){j===void 0&&(j=!0),ee===void 0&&(ee="hover");const te=Ytt(A.current,"close",N.current);te&&!P.current?(zx(L),L.current=window.setTimeout(()=>a(!1,V,ee),te)):j&&(zx(L),a(!1,V,ee))},[A,a]),z=UC(()=>{$.current(),P.current=void 0}),Y=UC(()=>{if(U.current){const V=KC(u.floating).body;V.style.pointerEvents="",V.removeAttribute(a2n),U.current=!1}}),W=UC(()=>s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1);ue.useEffect(()=>{if(!h)return;function V(se){if(zx(L),F.current=!1,m&&!xlt(N.current)||jtt(I.current)>0&&!Ytt(A.current,"open"))return;const ie=Ytt(A.current,"open",N.current);ie?L.current=window.setTimeout(()=>{k.current||a(!0,se,"hover")},ie):r||a(!0,se,"hover")}function j(se){if(W()){Y();return}$.current();const ie=KC(u.floating);if(zx(M),G.current=!1,C.current&&s.current.floatingContext){r||zx(L),P.current=C.current({...s.current.floatingContext,tree:w,x:se.clientX,y:se.clientY,onClose(){Y(),z(),W()||Z(se,!0,"safe-polygon")}});const ce=P.current;ie.addEventListener("mousemove",ce),$.current=()=>{ie.removeEventListener("mousemove",ce)};return}(N.current==="touch"?!Bj(u.floating,se.relatedTarget):!0)&&Z(se)}function ee(se){W()||s.current.floatingContext&&(C.current==null||C.current({...s.current.floatingContext,tree:w,x:se.clientX,y:se.clientY,onClose(){Y(),z(),W()||Z(se)}})(se))}function te(){zx(L)}function ne(se){W()||Z(se,!1)}if(yd(u.domReference)){const se=u.domReference,ie=u.floating;return r&&se.addEventListener("mouseleave",ee),_&&se.addEventListener("mousemove",V,{once:!0}),se.addEventListener("mouseenter",V),se.addEventListener("mouseleave",j),ie&&(ie.addEventListener("mouseleave",ee),ie.addEventListener("mouseenter",te),ie.addEventListener("mouseleave",ne)),()=>{r&&se.removeEventListener("mouseleave",ee),_&&se.removeEventListener("mousemove",V),se.removeEventListener("mouseenter",V),se.removeEventListener("mouseleave",j),ie&&(ie.removeEventListener("mouseleave",ee),ie.removeEventListener("mouseenter",te),ie.removeEventListener("mouseleave",ne))}}},[u,h,e,m,_,Z,z,Y,a,r,k,w,A,C,s,W,I]),X3(()=>{var V;if(h&&r&&(V=C.current)!=null&&(V=V.__options)!=null&&V.blockPointerEvents&&B()){U.current=!0;const ee=u.floating;if(yd(u.domReference)&&ee){var j;const te=KC(u.floating).body;te.setAttribute(a2n,"");const ne=u.domReference,se=w==null||(j=w.nodesRef.current.find(ie=>ie.id===S))==null||(j=j.context)==null?void 0:j.elements.floating;return se&&(se.style.pointerEvents=""),te.style.pointerEvents="none",ne.style.pointerEvents="auto",ee.style.pointerEvents="auto",()=>{te.style.pointerEvents="",ne.style.pointerEvents="",ee.style.pointerEvents=""}}}},[h,r,S,u,w,C,B]),X3(()=>{r||(N.current=void 0,G.current=!1,z(),Y())},[r,z,Y]),ue.useEffect(()=>()=>{z(),zx(L),zx(M),Y()},[h,u.domReference,z,Y]);const Q=ue.useMemo(()=>{function V(j){N.current=j.pointerType}return{onPointerDown:V,onPointerEnter:V,onMouseMove(j){const{nativeEvent:ee}=j;function te(){!F.current&&!k.current&&a(!0,ee,"hover")}m&&!xlt(N.current)||r||jtt(I.current)===0||G.current&&j.movementX**2+j.movementY**2<2||(zx(M),N.current==="touch"?te():(G.current=!0,M.current=window.setTimeout(te,jtt(I.current))))}}},[m,a,r,k,I]);return ue.useMemo(()=>h?{reference:Q}:{},[h,Q])}const s2n=()=>{},qvi=ue.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:s2n,setState:s2n,isInstantPhase:!1});function h5a(e){const{children:t,delay:r,timeoutMs:a=0}=e,[s,o]=ue.useReducer((f,p)=>({...f,...p}),{delay:r,timeoutMs:a,initialDelay:r,currentId:null,isInstantPhase:!1}),u=ue.useRef(null),h=ue.useCallback(f=>{o({currentId:f})},[]);return X3(()=>{s.currentId?u.current===null?u.current=s.currentId:s.isInstantPhase||o({isInstantPhase:!0}):(s.isInstantPhase&&o({isInstantPhase:!1}),u.current=null)},[s.currentId,s.isInstantPhase]),ct.jsx(qvi.Provider,{value:ue.useMemo(()=>({...s,setState:o,setCurrentId:h}),[s,h]),children:t})}const Hvi={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},o2n=ue.forwardRef(function(t,r){const[a,s]=ue.useState();X3(()=>{hUn()&&s("button")},[]);const o={ref:r,tabIndex:0,role:a,"aria-hidden":a?void 0:!0,[dce("focus-guard")]:"",style:Hvi};return ct.jsx("span",{...t,...o})}),Vvi={clipPath:"inset(50%)",position:"fixed",top:0,left:0},pUn=ue.createContext(null),l2n=dce("portal");function Yvi(e){e===void 0&&(e={});const{id:t,root:r}=e,a=dpt(),s=jvi(),[o,u]=ue.useState(null),h=ue.useRef(null);return X3(()=>()=>{o==null||o.remove(),queueMicrotask(()=>{h.current=null})},[o]),X3(()=>{if(!a||h.current)return;const f=t?document.getElementById(t):null;if(!f)return;const p=document.createElement("div");p.id=a,p.setAttribute(l2n,""),f.appendChild(p),h.current=p,u(p)},[t,a]),X3(()=>{if(r===null||!a||h.current)return;let f=r||(s==null?void 0:s.portalNode);f&&!Ydt(f)&&(f=f.current),f=f||document.body;let p=null;t&&(p=document.createElement("div"),p.id=t,f.appendChild(p));const m=document.createElement("div");m.id=a,m.setAttribute(l2n,""),f=p||f,f.appendChild(m),h.current=m,u(m)},[t,r,a,s]),o}function d5a(e){const{children:t,id:r,root:a,preserveTabOrder:s=!0}=e,o=Yvi({id:r,root:a}),[u,h]=ue.useState(null),f=ue.useRef(null),p=ue.useRef(null),m=ue.useRef(null),b=ue.useRef(null),_=u==null?void 0:u.modal,w=u==null?void 0:u.open,S=!!u&&!u.modal&&u.open&&s&&!!(a||o);return ue.useEffect(()=>{if(!o||!s||_)return;function C(A){o&&Vtt(A)&&(A.type==="focusin"?e2n:Dvi)(o)}return o.addEventListener("focusin",C,!0),o.addEventListener("focusout",C,!0),()=>{o.removeEventListener("focusin",C,!0),o.removeEventListener("focusout",C,!0)}},[o,s,_]),ue.useEffect(()=>{o&&(w||e2n(o))},[w,o]),ct.jsxs(pUn.Provider,{value:ue.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:b,portalNode:o,setFocusManagerState:h}),[s,o]),children:[S&&o&&ct.jsx(o2n,{"data-type":"outside",ref:f,onFocus:C=>{if(Vtt(C,o)){var A;(A=m.current)==null||A.focus()}else{const k=u?u.domReference:null,I=Lvi(k);I==null||I.focus()}}}),S&&o&&ct.jsx("span",{"aria-owns":o.id,style:Vvi}),o&&w9.createPortal(t,o),S&&o&&ct.jsx(o2n,{"data-type":"outside",ref:p,onFocus:C=>{if(Vtt(C,o)){var A;(A=b.current)==null||A.focus()}else{const k=u?u.domReference:null,I=Ovi(k);I==null||I.focus(),u!=null&&u.closeOnFocusOut&&(u==null||u.onOpenChange(!1,C.nativeEvent,"focus-out"))}}})]})}const jvi=()=>ue.useContext(pUn),Wvi={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Kvi={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},c2n=e=>{var t,r;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(r=e==null?void 0:e.outsidePress)!=null?r:!0}};function f5a(e,t){t===void 0&&(t={});const{open:r,onOpenChange:a,elements:s,dataRef:o}=e,{enabled:u=!0,escapeKey:h=!0,outsidePress:f=!0,outsidePressEvent:p="pointerdown",referencePress:m=!1,referencePressEvent:b="pointerdown",ancestorScroll:_=!1,bubbles:w,capture:S}=t,C=ppt(),A=UC(typeof f=="function"?f:()=>!1),k=typeof f=="function"?A:f,I=ue.useRef(!1),{escapeKey:N,outsidePress:L}=c2n(w),{escapeKey:P,outsidePress:M}=c2n(S),F=ue.useRef(!1),U=UC(Y=>{var W;if(!r||!u||!h||Y.key!=="Escape"||F.current)return;const Q=(W=o.current.floatingContext)==null?void 0:W.nodeId,V=C?uxe(C.nodesRef.current,Q):[];if(!N&&(Y.stopPropagation(),V.length>0)){let j=!0;if(V.forEach(ee=>{var te;if((te=ee.context)!=null&&te.open&&!ee.context.dataRef.current.__escapeKeyBubbles){j=!1;return}}),!j)return}a(!1,Cvi(Y)?Y.nativeEvent:Y,"escape-key")}),$=UC(Y=>{var W;const Q=()=>{var V;U(Y),(V=fV(Y))==null||V.removeEventListener("keydown",Q)};(W=fV(Y))==null||W.addEventListener("keydown",Q)}),G=UC(Y=>{var W;const Q=o.current.insideReactTree;o.current.insideReactTree=!1;const V=I.current;if(I.current=!1,p==="click"&&V||Q||typeof k=="function"&&!k(Y))return;const j=fV(Y),ee="["+dce("inert")+"]",te=KC(s.floating).querySelectorAll(ee);let ne=yd(j)?j:null;for(;ne&&!P7(ne);){const ce=j7(ne);if(P7(ce)||!yd(ce))break;ne=ce}if(te.length&&yd(j)&&!Evi(j)&&!Bj(j,s.floating)&&Array.from(te).every(ce=>!Bj(ne,ce)))return;if(Fw(j)&&z){const ce=P7(j),be=gS(j),ve=/auto|scroll/,De=ce||ve.test(be.overflowX),ye=ce||ve.test(be.overflowY),Ee=De&&j.clientWidth>0&&j.scrollWidth>j.clientWidth,he=ye&&j.clientHeight>0&&j.scrollHeight>j.clientHeight,we=be.direction==="rtl",Ce=he&&(we?Y.offsetX<=j.offsetWidth-j.clientWidth:Y.offsetX>j.clientWidth),Ie=Ee&&Y.offsetY>j.clientHeight;if(Ce||Ie)return}const se=(W=o.current.floatingContext)==null?void 0:W.nodeId,ie=C&&uxe(C.nodesRef.current,se).some(ce=>{var be;return Htt(Y,(be=ce.context)==null?void 0:be.elements.floating)});if(Htt(Y,s.floating)||Htt(Y,s.domReference)||ie)return;const ge=C?uxe(C.nodesRef.current,se):[];if(ge.length>0){let ce=!0;if(ge.forEach(be=>{var ve;if((ve=be.context)!=null&&ve.open&&!be.context.dataRef.current.__outsidePressBubbles){ce=!1;return}}),!ce)return}a(!1,Y,"outside-press")}),B=UC(Y=>{var W;const Q=()=>{var V;G(Y),(V=fV(Y))==null||V.removeEventListener(p,Q)};(W=fV(Y))==null||W.addEventListener(p,Q)});ue.useEffect(()=>{if(!r||!u)return;o.current.__escapeKeyBubbles=N,o.current.__outsidePressBubbles=L;let Y=-1;function W(te){a(!1,te,"ancestor-scroll")}function Q(){window.clearTimeout(Y),F.current=!0}function V(){Y=window.setTimeout(()=>{F.current=!1},H5e()?5:0)}const j=KC(s.floating);h&&(j.addEventListener("keydown",P?$:U,P),j.addEventListener("compositionstart",Q),j.addEventListener("compositionend",V)),k&&j.addEventListener(p,M?B:G,M);let ee=[];return _&&(yd(s.domReference)&&(ee=wO(s.domReference)),yd(s.floating)&&(ee=ee.concat(wO(s.floating))),!yd(s.reference)&&s.reference&&s.reference.contextElement&&(ee=ee.concat(wO(s.reference.contextElement)))),ee=ee.filter(te=>{var ne;return te!==((ne=j.defaultView)==null?void 0:ne.visualViewport)}),ee.forEach(te=>{te.addEventListener("scroll",W,{passive:!0})}),()=>{h&&(j.removeEventListener("keydown",P?$:U,P),j.removeEventListener("compositionstart",Q),j.removeEventListener("compositionend",V)),k&&j.removeEventListener(p,M?B:G,M),ee.forEach(te=>{te.removeEventListener("scroll",W)}),window.clearTimeout(Y)}},[o,s,h,k,p,r,a,_,u,N,L,U,P,$,G,M,B]),ue.useEffect(()=>{o.current.insideReactTree=!1},[o,k,p]);const Z=ue.useMemo(()=>({onKeyDown:U,...m&&{[Wvi[b]]:Y=>{a(!1,Y.nativeEvent,"reference-press")},...b!=="click"&&{onClick(Y){a(!1,Y.nativeEvent,"reference-press")}}}}),[U,a,m,b]),z=ue.useMemo(()=>({onKeyDown:U,onMouseDown(){I.current=!0},onMouseUp(){I.current=!0},[Kvi[p]]:()=>{o.current.insideReactTree=!0}}),[U,p,o]);return ue.useMemo(()=>u?{reference:Z,floating:z}:{},[u,Z,z])}function Xvi(e){const{open:t=!1,onOpenChange:r,elements:a}=e,s=dpt(),o=ue.useRef({}),[u]=ue.useState(()=>Uvi()),h=fpt()!=null,[f,p]=ue.useState(a.reference),m=UC((w,S,C)=>{o.current.openEvent=w?S:void 0,u.emit("openchange",{open:w,event:S,reason:C,nested:h}),r==null||r(w,S,C)}),b=ue.useMemo(()=>({setPositionReference:p}),[]),_=ue.useMemo(()=>({reference:f||a.reference||null,floating:a.floating||null,domReference:a.reference}),[f,a.reference,a.floating]);return ue.useMemo(()=>({dataRef:o,open:t,onOpenChange:m,elements:_,events:u,floatingId:s,refs:b}),[t,m,_,u,s,b])}function p5a(e){e===void 0&&(e={});const{nodeId:t}=e,r=Xvi({...e,elements:{reference:null,floating:null,...e.elements}}),a=e.rootContext||r,s=a.elements,[o,u]=ue.useState(null),[h,f]=ue.useState(null),m=(s==null?void 0:s.domReference)||o,b=ue.useRef(null),_=ppt();X3(()=>{m&&(b.current=m)},[m]);const w=Zdt({...e,elements:{...s,...h&&{reference:h}}}),S=ue.useCallback(N=>{const L=yd(N)?{getBoundingClientRect:()=>N.getBoundingClientRect(),getClientRects:()=>N.getClientRects(),contextElement:N}:N;f(L),w.refs.setReference(L)},[w.refs]),C=ue.useCallback(N=>{(yd(N)||N===null)&&(b.current=N,u(N)),(yd(w.refs.reference.current)||w.refs.reference.current===null||N!==null&&!yd(N))&&w.refs.setReference(N)},[w.refs]),A=ue.useMemo(()=>({...w.refs,setReference:C,setPositionReference:S,domReference:b}),[w.refs,C,S]),k=ue.useMemo(()=>({...w.elements,domReference:m}),[w.elements,m]),I=ue.useMemo(()=>({...w,...a,refs:A,elements:k,nodeId:t}),[w,A,k,t,a]);return X3(()=>{a.dataRef.current.floatingContext=I;const N=_==null?void 0:_.nodesRef.current.find(L=>L.id===t);N&&(N.context=I)}),ue.useMemo(()=>({...w,context:I,refs:A,elements:k}),[w,A,k,I])}function Wtt(){return vvi()&&hUn()}function g5a(e,t){t===void 0&&(t={});const{open:r,onOpenChange:a,events:s,dataRef:o,elements:u}=e,{enabled:h=!0,visibleOnly:f=!0}=t,p=ue.useRef(!1),m=ue.useRef(-1),b=ue.useRef(!0);ue.useEffect(()=>{if(!h)return;const w=X2(u.domReference);function S(){!r&&Fw(u.domReference)&&u.domReference===Elt(KC(u.domReference))&&(p.current=!0)}function C(){b.current=!0}function A(){b.current=!1}return w.addEventListener("blur",S),Wtt()&&(w.addEventListener("keydown",C,!0),w.addEventListener("pointerdown",A,!0)),()=>{w.removeEventListener("blur",S),Wtt()&&(w.removeEventListener("keydown",C,!0),w.removeEventListener("pointerdown",A,!0))}},[u.domReference,r,h]),ue.useEffect(()=>{if(!h)return;function w(S){let{reason:C}=S;(C==="reference-press"||C==="escape-key")&&(p.current=!0)}return s.on("openchange",w),()=>{s.off("openchange",w)}},[s,h]),ue.useEffect(()=>()=>{zx(m)},[]);const _=ue.useMemo(()=>({onMouseLeave(){p.current=!1},onFocus(w){if(p.current)return;const S=fV(w.nativeEvent);if(f&&yd(S)){if(Wtt()&&!w.relatedTarget){if(!b.current&&!xvi(S))return}else if(!Svi(S))return}a(!0,w.nativeEvent,"focus")},onBlur(w){p.current=!1;const S=w.relatedTarget,C=w.nativeEvent,A=yd(S)&&S.hasAttribute(dce("focus-guard"))&&S.getAttribute("data-type")==="outside";m.current=window.setTimeout(()=>{var k;const I=Elt(u.domReference?u.domReference.ownerDocument:document);!S&&I===u.domReference||Bj((k=o.current.floatingContext)==null?void 0:k.refs.floating.current,I)||Bj(u.domReference,I)||A||a(!1,C,"focus")})}}),[o,u.domReference,a,f]);return ue.useMemo(()=>h?{reference:_}:{},[h,_])}function Ktt(e,t,r){const a=new Map,s=r==="item";let o=e;if(s&&e){const{[t2n]:u,[n2n]:h,...f}=e;o=f}return{...r==="floating"&&{tabIndex:-1,[Mvi]:""},...o,...t.map(u=>{const h=u?u[r]:null;return typeof h=="function"?e?h(e):null:h}).concat(e).reduce((u,h)=>(h&&Object.entries(h).forEach(f=>{let[p,m]=f;if(!(s&&[t2n,n2n].includes(p)))if(p.indexOf("on")===0){if(a.has(p)||a.set(p,[]),typeof m=="function"){var b;(b=a.get(p))==null||b.push(m),u[p]=function(){for(var _,w=arguments.length,S=new Array(w),C=0;CA(...S)).find(A=>A!==void 0)}}}else u[p]=m}),u),{})}}function m5a(e){e===void 0&&(e=[]);const t=e.map(h=>h==null?void 0:h.reference),r=e.map(h=>h==null?void 0:h.floating),a=e.map(h=>h==null?void 0:h.item),s=ue.useCallback(h=>Ktt(h,e,"reference"),t),o=ue.useCallback(h=>Ktt(h,e,"floating"),r),u=ue.useCallback(h=>Ktt(h,e,"item"),a);return ue.useMemo(()=>({getReferenceProps:s,getFloatingProps:o,getItemProps:u}),[s,o,u])}const Qvi=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function b5a(e,t){var r,a;t===void 0&&(t={});const{open:s,elements:o,floatingId:u}=e,{enabled:h=!0,role:f="dialog"}=t,p=dpt(),m=((r=o.domReference)==null?void 0:r.id)||p,b=ue.useMemo(()=>{var I;return((I=Tvi(o.floating))==null?void 0:I.id)||u},[o.floating,u]),_=(a=Qvi.get(f))!=null?a:f,S=fpt()!=null,C=ue.useMemo(()=>_==="tooltip"||f==="label"?{["aria-"+(f==="label"?"labelledby":"describedby")]:s?b:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":_==="alertdialog"?"dialog":_,"aria-controls":s?b:void 0,..._==="listbox"&&{role:"combobox"},..._==="menu"&&{id:m},..._==="menu"&&S&&{role:"menuitem"},...f==="select"&&{"aria-autocomplete":"none"},...f==="combobox"&&{"aria-autocomplete":"list"}},[_,b,S,s,m,f]),A=ue.useMemo(()=>{const I={id:b,..._&&{role:_}};return _==="tooltip"||f==="label"?I:{...I,..._==="menu"&&{"aria-labelledby":m}}},[_,b,m,f]),k=ue.useCallback(I=>{let{active:N,selected:L}=I;const P={role:"option",...N&&{id:b+"-fui-option"}};switch(f){case"select":case"combobox":return{...P,"aria-selected":L}}return{}},[b,f]);return ue.useMemo(()=>h?{reference:C,floating:A,item:k}:{},[h,C,A,k])}var gpt={};(function(e){(function(t){t(typeof DO_NOT_EXPORT_CRC>"u"?e:{})})(function(t){t.version="0.3.0";function r(){for(var p=0,m=new Array(256),b=0;b!=256;++b)p=b,p=p&1?-306674912^p>>>1:p>>>1,p=p&1?-306674912^p>>>1:p>>>1,p=p&1?-306674912^p>>>1:p>>>1,p=p&1?-306674912^p>>>1:p>>>1,p=p&1?-306674912^p>>>1:p>>>1,p=p&1?-306674912^p>>>1:p>>>1,p=p&1?-306674912^p>>>1:p>>>1,p=p&1?-306674912^p>>>1:p>>>1,m[b]=p;return typeof Int32Array<"u"?new Int32Array(m):m}var a=r(),s=typeof Buffer<"u";function o(p){if(p.length>32768&&s)return h(new Buffer(p));for(var m=-1,b=p.length-1,_=0;_>>8,m=a[(m^p.charCodeAt(_++))&255]^m>>>8;return _===b&&(m=m>>>8^a[(m^p.charCodeAt(_))&255]),m^-1}function u(p){if(p.length>1e4)return h(p);for(var m=-1,b=0,_=p.length-3;b<_;)m=m>>>8^a[(m^p[b++])&255],m=m>>>8^a[(m^p[b++])&255],m=m>>>8^a[(m^p[b++])&255],m=m>>>8^a[(m^p[b++])&255];for(;b<_+3;)m=m>>>8^a[(m^p[b++])&255];return m^-1}function h(p){for(var m=-1,b=0,_=p.length-7;b<_;)m=m>>>8^a[(m^p[b++])&255],m=m>>>8^a[(m^p[b++])&255],m=m>>>8^a[(m^p[b++])&255],m=m>>>8^a[(m^p[b++])&255],m=m>>>8^a[(m^p[b++])&255],m=m>>>8^a[(m^p[b++])&255],m=m>>>8^a[(m^p[b++])&255],m=m>>>8^a[(m^p[b++])&255];for(;b<_+7;)m=m>>>8^a[(m^p[b++])&255];return m^-1}function f(p){for(var m=-1,b=0,_=p.length,w,S;b<_;)w=p.charCodeAt(b++),w<128?m=m>>>8^a[(m^w)&255]:w<2048?(m=m>>>8^a[(m^(192|w>>6&31))&255],m=m>>>8^a[(m^(128|w&63))&255]):w>=55296&&w<57344?(w=(w&1023)+64,S=p.charCodeAt(b++)&1023,m=m>>>8^a[(m^(240|w>>8&7))&255],m=m>>>8^a[(m^(128|w>>2&63))&255],m=m>>>8^a[(m^(128|S>>6&15|w&3))&255],m=m>>>8^a[(m^(128|S&63))&255]):(m=m>>>8^a[(m^(224|w>>12&15))&255],m=m>>>8^a[(m^(128|w>>6&63))&255],m=m>>>8^a[(m^(128|w&63))&255]);return m^-1}t.table=a,t.bstr=o,t.buf=u,t.str=f})})(gpt);var Zvi=gpt,Jvi=n2i,kC=new Uint8Array(4),e2i=new Int32Array(kC.buffer),t2i=new Uint32Array(kC.buffer);function n2i(e){if(e[0]!==137)throw new Error("Invalid .png file header");if(e[1]!==80)throw new Error("Invalid .png file header");if(e[2]!==78)throw new Error("Invalid .png file header");if(e[3]!==71)throw new Error("Invalid .png file header");if(e[4]!==13)throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(e[5]!==10)throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(e[6]!==26)throw new Error("Invalid .png file header");if(e[7]!==10)throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");for(var t=!1,r=[],a=8;a=80)throw new Error('Keyword "'+e+'" is longer than the 79-character limit imposed by the PNG specification');for(var r=e.length+t.length+1,a=new Uint8Array(r),s=0,o,u=0;uo;)a[s-o]=e[s];return a},l2i=o2i,c2i=gpt,u2i=f2i,RC=new Uint8Array(4),h2i=new Int32Array(RC.buffer),d2i=new Uint32Array(RC.buffer);function f2i(e){var t=8,r=t,a;for(a=0;a=0;)e[t]=0}const m2i=0,mUn=1,b2i=2,y2i=3,v2i=258,mpt=29,fce=256,koe=fce+1+mpt,ZV=30,bpt=19,bUn=2*koe+1,rF=15,Xtt=16,_2i=7,ypt=256,yUn=16,vUn=17,_Un=18,Slt=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),hxe=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),w2i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),wUn=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),E2i=512,d7=new Array((koe+2)*2);UW(d7);const bse=new Array(ZV*2);UW(bse);const Roe=new Array(E2i);UW(Roe);const Ioe=new Array(v2i-y2i+1);UW(Ioe);const vpt=new Array(mpt);UW(vpt);const E3e=new Array(ZV);UW(E3e);function Qtt(e,t,r,a,s){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=a,this.max_length=s,this.has_stree=e&&e.length}let EUn,xUn,SUn;function Ztt(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const TUn=e=>e<256?Roe[e]:Roe[256+(e>>>7)],Noe=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},j2=(e,t,r)=>{e.bi_valid>Xtt-r?(e.bi_buf|=t<>Xtt-e.bi_valid,e.bi_valid+=r-Xtt):(e.bi_buf|=t<{j2(e,r[t*2],r[t*2+1])},CUn=(e,t)=>{let r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1},x2i=e=>{e.bi_valid===16?(Noe(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},S2i=(e,t)=>{const r=t.dyn_tree,a=t.max_code,s=t.stat_desc.static_tree,o=t.stat_desc.has_stree,u=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,f=t.stat_desc.max_length;let p,m,b,_,w,S,C=0;for(_=0;_<=rF;_++)e.bl_count[_]=0;for(r[e.heap[e.heap_max]*2+1]=0,p=e.heap_max+1;pf&&(_=f,C++),r[m*2+1]=_,!(m>a)&&(e.bl_count[_]++,w=0,m>=h&&(w=u[m-h]),S=r[m*2],e.opt_len+=S*(_+w),o&&(e.static_len+=S*(s[m*2+1]+w)));if(C!==0){do{for(_=f-1;e.bl_count[_]===0;)_--;e.bl_count[_]--,e.bl_count[_+1]+=2,e.bl_count[f]--,C-=2}while(C>0);for(_=f;_!==0;_--)for(m=e.bl_count[_];m!==0;)b=e.heap[--p],!(b>a)&&(r[b*2+1]!==_&&(e.opt_len+=(_-r[b*2+1])*r[b*2],r[b*2+1]=_),m--)}},AUn=(e,t,r)=>{const a=new Array(rF+1);let s=0,o,u;for(o=1;o<=rF;o++)a[o]=s=s+r[o-1]<<1;for(u=0;u<=t;u++){let h=e[u*2+1];h!==0&&(e[u*2]=CUn(a[h]++,h))}},T2i=()=>{let e,t,r,a,s;const o=new Array(rF+1);for(r=0,a=0;a>=7;a{let t;for(t=0;t{e.bi_valid>8?Noe(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},C2i=(e,t,r,a)=>{RUn(e),Noe(e,r),Noe(e,~r),e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r},d2n=(e,t,r,a)=>{const s=t*2,o=r*2;return e[s]{const a=e.heap[r];let s=r<<1;for(;s<=e.heap_len&&(s{let a,s,o=0,u,h;if(e.last_lit!==0)do a=e.pending_buf[e.d_buf+o*2]<<8|e.pending_buf[e.d_buf+o*2+1],s=e.pending_buf[e.l_buf+o],o++,a===0?zC(e,s,t):(u=Ioe[s],zC(e,u+fce+1,t),h=Slt[u],h!==0&&(s-=vpt[u],j2(e,s,h)),a--,u=TUn(a),zC(e,u,r),h=hxe[u],h!==0&&(a-=E3e[u],j2(e,a,h)));while(o{const r=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,o=t.stat_desc.elems;let u,h,f=-1,p;for(e.heap_len=0,e.heap_max=bUn,u=0;u>1;u>=1;u--)Jtt(e,r,u);p=o;do u=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Jtt(e,r,1),h=e.heap[1],e.heap[--e.heap_max]=u,e.heap[--e.heap_max]=h,r[p*2]=r[u*2]+r[h*2],e.depth[p]=(e.depth[u]>=e.depth[h]?e.depth[u]:e.depth[h])+1,r[u*2+1]=r[h*2+1]=p,e.heap[1]=p++,Jtt(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],S2i(e,t),AUn(r,f,e.bl_count)},p2n=(e,t,r)=>{let a,s=-1,o,u=t[0*2+1],h=0,f=7,p=4;for(u===0&&(f=138,p=3),t[(r+1)*2+1]=65535,a=0;a<=r;a++)o=u,u=t[(a+1)*2+1],!(++h{let a,s=-1,o,u=t[0*2+1],h=0,f=7,p=4;for(u===0&&(f=138,p=3),a=0;a<=r;a++)if(o=u,u=t[(a+1)*2+1],!(++h{let t;for(p2n(e,e.dyn_ltree,e.l_desc.max_code),p2n(e,e.dyn_dtree,e.d_desc.max_code),Tlt(e,e.bl_desc),t=bpt-1;t>=3&&e.bl_tree[wUn[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},k2i=(e,t,r,a)=>{let s;for(j2(e,t-257,5),j2(e,r-1,5),j2(e,a-4,4),s=0;s{let t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return u2n;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return h2n;for(r=32;r{m2n||(T2i(),m2n=!0),e.l_desc=new Ztt(e.dyn_ltree,EUn),e.d_desc=new Ztt(e.dyn_dtree,xUn),e.bl_desc=new Ztt(e.bl_tree,SUn),e.bi_buf=0,e.bi_valid=0,kUn(e)},IUn=(e,t,r,a)=>{j2(e,(m2i<<1)+(a?1:0),3),C2i(e,t,r)},N2i=e=>{j2(e,mUn<<1,3),zC(e,ypt,d7),x2i(e)},O2i=(e,t,r,a)=>{let s,o,u=0;e.level>0?(e.strm.data_type===g2i&&(e.strm.data_type=R2i(e)),Tlt(e,e.l_desc),Tlt(e,e.d_desc),u=A2i(e),s=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=s&&(s=o)):s=o=r+5,r+4<=s&&t!==-1?IUn(e,t,r,a):e.strategy===p2i||o===s?(j2(e,(mUn<<1)+(a?1:0),3),f2n(e,d7,bse)):(j2(e,(b2i<<1)+(a?1:0),3),k2i(e,e.l_desc.max_code+1,e.d_desc.max_code+1,u+1),f2n(e,e.dyn_ltree,e.dyn_dtree)),kUn(e),a&&RUn(e)},L2i=(e,t,r)=>(e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(Ioe[r]+fce+1)*2]++,e.dyn_dtree[TUn(t)*2]++),e.last_lit===e.lit_bufsize-1);var D2i=I2i,M2i=IUn,P2i=O2i,B2i=L2i,F2i=N2i,$2i={_tr_init:D2i,_tr_stored_block:M2i,_tr_flush_block:P2i,_tr_tally:B2i,_tr_align:F2i};const U2i=(e,t,r,a)=>{let s=e&65535|0,o=e>>>16&65535|0,u=0;for(;r!==0;){u=r>2e3?2e3:r,r-=u;do s=s+t[a++]|0,o=o+s|0;while(--u);s%=65521,o%=65521}return s|o<<16|0};var Ooe=U2i;const z2i=()=>{let e,t=[];for(var r=0;r<256;r++){e=r;for(var a=0;a<8;a++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t},G2i=new Uint32Array(z2i()),q2i=(e,t,r,a)=>{const s=G2i,o=a+r;e^=-1;for(let u=a;u>>8^s[(e^t[u])&255];return e^-1};var Eg=q2i,qF={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},DAe={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:H2i,_tr_stored_block:V2i,_tr_flush_block:Y2i,_tr_tally:kO,_tr_align:j2i}=$2i,{Z_NO_FLUSH:D$,Z_PARTIAL_FLUSH:W2i,Z_FULL_FLUSH:K2i,Z_FINISH:RO,Z_BLOCK:b2n,Z_OK:GC,Z_STREAM_END:y2n,Z_STREAM_ERROR:hS,Z_DATA_ERROR:X2i,Z_BUF_ERROR:ent,Z_DEFAULT_COMPRESSION:Q2i,Z_FILTERED:Z2i,Z_HUFFMAN_ONLY:lwe,Z_RLE:J2i,Z_FIXED:e_i,Z_DEFAULT_STRATEGY:t_i,Z_UNKNOWN:n_i,Z_DEFLATED:MAe}=DAe,r_i=9,i_i=15,a_i=8,s_i=29,o_i=256,Clt=o_i+1+s_i,l_i=30,c_i=19,u_i=2*Clt+1,h_i=15,kc=3,fO=258,Q3=fO+kc+1,d_i=32,PAe=42,Alt=69,dxe=73,fxe=91,pxe=103,iF=113,zie=666,Ap=1,pce=2,HF=3,zW=4,f_i=3,pO=(e,t)=>(e.msg=qF[t],t),v2n=e=>(e<<1)-(e>4?9:0),tO=e=>{let t=e.length;for(;--t>=0;)e[t]=0};let p_i=(e,t,r)=>(t<{const t=e.state;let r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+r),e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))},xm=(e,t)=>{Y2i(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,YN(e.strm)},lu=(e,t)=>{e.pending_buf[e.pending++]=t},Yre=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},g_i=(e,t,r,a)=>{let s=e.avail_in;return s>a&&(s=a),s===0?0:(e.avail_in-=s,t.set(e.input.subarray(e.next_in,e.next_in+s),r),e.state.wrap===1?e.adler=Ooe(e.adler,t,s,r):e.state.wrap===2&&(e.adler=Eg(e.adler,t,s,r)),e.next_in+=s,e.total_in+=s,s)},NUn=(e,t)=>{let r=e.max_chain_length,a=e.strstart,s,o,u=e.prev_length,h=e.nice_match;const f=e.strstart>e.w_size-Q3?e.strstart-(e.w_size-Q3):0,p=e.window,m=e.w_mask,b=e.prev,_=e.strstart+fO;let w=p[a+u-1],S=p[a+u];e.prev_length>=e.good_match&&(r>>=2),h>e.lookahead&&(h=e.lookahead);do if(s=t,!(p[s+u]!==S||p[s+u-1]!==w||p[s]!==p[a]||p[++s]!==p[a+1])){a+=2,s++;do;while(p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&p[++a]===p[++s]&&a<_);if(o=fO-(_-a),a=_-fO,o>u){if(e.match_start=t,u=o,o>=h)break;w=p[a+u-1],S=p[a+u]}}while((t=b[t&m])>f&&--r!==0);return u<=e.lookahead?u:e.lookahead},VF=e=>{const t=e.w_size;let r,a,s,o,u;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Q3)){e.window.set(e.window.subarray(t,t+t),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,a=e.hash_size,r=a;do s=e.head[--r],e.head[r]=s>=t?s-t:0;while(--a);a=t,r=a;do s=e.prev[--r],e.prev[r]=s>=t?s-t:0;while(--a);o+=t}if(e.strm.avail_in===0)break;if(a=g_i(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=a,e.lookahead+e.insert>=kc)for(u=e.strstart-e.insert,e.ins_h=e.window[u],e.ins_h=IO(e,e.ins_h,e.window[u+1]);e.insert&&(e.ins_h=IO(e,e.ins_h,e.window[u+kc-1]),e.prev[u&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=u,u++,e.insert--,!(e.lookahead+e.insert{let r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(VF(e),e.lookahead===0&&t===D$)return Ap;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;const a=e.block_start+r;if((e.strstart===0||e.strstart>=a)&&(e.lookahead=e.strstart-a,e.strstart=a,xm(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-Q3&&(xm(e,!1),e.strm.avail_out===0))return Ap}return e.insert=0,t===RO?(xm(e,!0),e.strm.avail_out===0?HF:zW):(e.strstart>e.block_start&&(xm(e,!1),e.strm.avail_out===0),Ap)},tnt=(e,t)=>{let r,a;for(;;){if(e.lookahead=kc&&(e.ins_h=IO(e,e.ins_h,e.window[e.strstart+kc-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-Q3&&(e.match_length=NUn(e,r)),e.match_length>=kc)if(a=kO(e,e.strstart-e.match_start,e.match_length-kc),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=kc){e.match_length--;do e.strstart++,e.ins_h=IO(e,e.ins_h,e.window[e.strstart+kc-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=IO(e,e.ins_h,e.window[e.strstart+1]);else a=kO(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(a&&(xm(e,!1),e.strm.avail_out===0))return Ap}return e.insert=e.strstart{let r,a,s;for(;;){if(e.lookahead=kc&&(e.ins_h=IO(e,e.ins_h,e.window[e.strstart+kc-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=kc-1,r!==0&&e.prev_length4096)&&(e.match_length=kc-1)),e.prev_length>=kc&&e.match_length<=e.prev_length){s=e.strstart+e.lookahead-kc,a=kO(e,e.strstart-1-e.prev_match,e.prev_length-kc),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=s&&(e.ins_h=IO(e,e.ins_h,e.window[e.strstart+kc-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=kc-1,e.strstart++,a&&(xm(e,!1),e.strm.avail_out===0))return Ap}else if(e.match_available){if(a=kO(e,0,e.window[e.strstart-1]),a&&xm(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Ap}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(a=kO(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let r,a,s,o;const u=e.window;for(;;){if(e.lookahead<=fO){if(VF(e),e.lookahead<=fO&&t===D$)return Ap;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=kc&&e.strstart>0&&(s=e.strstart-1,a=u[s],a===u[++s]&&a===u[++s]&&a===u[++s])){o=e.strstart+fO;do;while(a===u[++s]&&a===u[++s]&&a===u[++s]&&a===u[++s]&&a===u[++s]&&a===u[++s]&&a===u[++s]&&a===u[++s]&&se.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=kc?(r=kO(e,1,e.match_length-kc),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=kO(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(xm(e,!1),e.strm.avail_out===0))return Ap}return e.insert=0,t===RO?(xm(e,!0),e.strm.avail_out===0?HF:zW):e.last_lit&&(xm(e,!1),e.strm.avail_out===0)?Ap:pce},y_i=(e,t)=>{let r;for(;;){if(e.lookahead===0&&(VF(e),e.lookahead===0)){if(t===D$)return Ap;break}if(e.match_length=0,r=kO(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(xm(e,!1),e.strm.avail_out===0))return Ap}return e.insert=0,t===RO?(xm(e,!0),e.strm.avail_out===0?HF:zW):e.last_lit&&(xm(e,!1),e.strm.avail_out===0)?Ap:pce};function gC(e,t,r,a,s){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=a,this.func=s}const Gie=[new gC(0,0,0,0,m_i),new gC(4,4,8,4,tnt),new gC(4,5,16,8,tnt),new gC(4,6,32,32,tnt),new gC(4,4,16,16,zH),new gC(8,16,32,32,zH),new gC(8,16,128,128,zH),new gC(8,32,128,256,zH),new gC(32,128,258,1024,zH),new gC(32,258,258,4096,zH)],v_i=e=>{e.window_size=2*e.w_size,tO(e.head),e.max_lazy_match=Gie[e.level].max_lazy,e.good_match=Gie[e.level].good_length,e.nice_match=Gie[e.level].nice_length,e.max_chain_length=Gie[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=kc-1,e.match_available=0,e.ins_h=0};function __i(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=MAe,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(u_i*2),this.dyn_dtree=new Uint16Array((2*l_i+1)*2),this.bl_tree=new Uint16Array((2*c_i+1)*2),tO(this.dyn_ltree),tO(this.dyn_dtree),tO(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(h_i+1),this.heap=new Uint16Array(2*Clt+1),tO(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Clt+1),tO(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const OUn=e=>{if(!e||!e.state)return pO(e,hS);e.total_in=e.total_out=0,e.data_type=n_i;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?PAe:iF,e.adler=t.wrap===2?0:1,t.last_flush=D$,H2i(t),GC},LUn=e=>{const t=OUn(e);return t===GC&&v_i(e.state),t},w_i=(e,t)=>!e||!e.state||e.state.wrap!==2?hS:(e.state.gzhead=t,GC),DUn=(e,t,r,a,s,o)=>{if(!e)return hS;let u=1;if(t===Q2i&&(t=6),a<0?(u=0,a=-a):a>15&&(u=2,a-=16),s<1||s>r_i||r!==MAe||a<8||a>15||t<0||t>9||o<0||o>e_i)return pO(e,hS);a===8&&(a=9);const h=new __i;return e.state=h,h.strm=e,h.wrap=u,h.gzhead=null,h.w_bits=a,h.w_size=1<DUn(e,t,MAe,i_i,a_i,t_i),x_i=(e,t)=>{let r,a;if(!e||!e.state||t>b2n||t<0)return e?pO(e,hS):hS;const s=e.state;if(!e.output||!e.input&&e.avail_in!==0||s.status===zie&&t!==RO)return pO(e,e.avail_out===0?ent:hS);s.strm=e;const o=s.last_flush;if(s.last_flush=t,s.status===PAe)if(s.wrap===2)e.adler=0,lu(s,31),lu(s,139),lu(s,8),s.gzhead?(lu(s,(s.gzhead.text?1:0)+(s.gzhead.hcrc?2:0)+(s.gzhead.extra?4:0)+(s.gzhead.name?8:0)+(s.gzhead.comment?16:0)),lu(s,s.gzhead.time&255),lu(s,s.gzhead.time>>8&255),lu(s,s.gzhead.time>>16&255),lu(s,s.gzhead.time>>24&255),lu(s,s.level===9?2:s.strategy>=lwe||s.level<2?4:0),lu(s,s.gzhead.os&255),s.gzhead.extra&&s.gzhead.extra.length&&(lu(s,s.gzhead.extra.length&255),lu(s,s.gzhead.extra.length>>8&255)),s.gzhead.hcrc&&(e.adler=Eg(e.adler,s.pending_buf,s.pending,0)),s.gzindex=0,s.status=Alt):(lu(s,0),lu(s,0),lu(s,0),lu(s,0),lu(s,0),lu(s,s.level===9?2:s.strategy>=lwe||s.level<2?4:0),lu(s,f_i),s.status=iF);else{let u=MAe+(s.w_bits-8<<4)<<8,h=-1;s.strategy>=lwe||s.level<2?h=0:s.level<6?h=1:s.level===6?h=2:h=3,u|=h<<6,s.strstart!==0&&(u|=d_i),u+=31-u%31,s.status=iF,Yre(s,u),s.strstart!==0&&(Yre(s,e.adler>>>16),Yre(s,e.adler&65535)),e.adler=1}if(s.status===Alt)if(s.gzhead.extra){for(r=s.pending;s.gzindex<(s.gzhead.extra.length&65535)&&!(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>r&&(e.adler=Eg(e.adler,s.pending_buf,s.pending-r,r)),YN(e),r=s.pending,s.pending===s.pending_buf_size));)lu(s,s.gzhead.extra[s.gzindex]&255),s.gzindex++;s.gzhead.hcrc&&s.pending>r&&(e.adler=Eg(e.adler,s.pending_buf,s.pending-r,r)),s.gzindex===s.gzhead.extra.length&&(s.gzindex=0,s.status=dxe)}else s.status=dxe;if(s.status===dxe)if(s.gzhead.name){r=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>r&&(e.adler=Eg(e.adler,s.pending_buf,s.pending-r,r)),YN(e),r=s.pending,s.pending===s.pending_buf_size)){a=1;break}s.gzindexr&&(e.adler=Eg(e.adler,s.pending_buf,s.pending-r,r)),a===0&&(s.gzindex=0,s.status=fxe)}else s.status=fxe;if(s.status===fxe)if(s.gzhead.comment){r=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>r&&(e.adler=Eg(e.adler,s.pending_buf,s.pending-r,r)),YN(e),r=s.pending,s.pending===s.pending_buf_size)){a=1;break}s.gzindexr&&(e.adler=Eg(e.adler,s.pending_buf,s.pending-r,r)),a===0&&(s.status=pxe)}else s.status=pxe;if(s.status===pxe&&(s.gzhead.hcrc?(s.pending+2>s.pending_buf_size&&YN(e),s.pending+2<=s.pending_buf_size&&(lu(s,e.adler&255),lu(s,e.adler>>8&255),e.adler=0,s.status=iF)):s.status=iF),s.pending!==0){if(YN(e),e.avail_out===0)return s.last_flush=-1,GC}else if(e.avail_in===0&&v2n(t)<=v2n(o)&&t!==RO)return pO(e,ent);if(s.status===zie&&e.avail_in!==0)return pO(e,ent);if(e.avail_in!==0||s.lookahead!==0||t!==D$&&s.status!==zie){let u=s.strategy===lwe?y_i(s,t):s.strategy===J2i?b_i(s,t):Gie[s.level].func(s,t);if((u===HF||u===zW)&&(s.status=zie),u===Ap||u===HF)return e.avail_out===0&&(s.last_flush=-1),GC;if(u===pce&&(t===W2i?j2i(s):t!==b2n&&(V2i(s,0,0,!1),t===K2i&&(tO(s.head),s.lookahead===0&&(s.strstart=0,s.block_start=0,s.insert=0))),YN(e),e.avail_out===0))return s.last_flush=-1,GC}return t!==RO?GC:s.wrap<=0?y2n:(s.wrap===2?(lu(s,e.adler&255),lu(s,e.adler>>8&255),lu(s,e.adler>>16&255),lu(s,e.adler>>24&255),lu(s,e.total_in&255),lu(s,e.total_in>>8&255),lu(s,e.total_in>>16&255),lu(s,e.total_in>>24&255)):(Yre(s,e.adler>>>16),Yre(s,e.adler&65535)),YN(e),s.wrap>0&&(s.wrap=-s.wrap),s.pending!==0?GC:y2n)},S_i=e=>{if(!e||!e.state)return hS;const t=e.state.status;return t!==PAe&&t!==Alt&&t!==dxe&&t!==fxe&&t!==pxe&&t!==iF&&t!==zie?pO(e,hS):(e.state=null,t===iF?pO(e,X2i):GC)},T_i=(e,t)=>{let r=t.length;if(!e||!e.state)return hS;const a=e.state,s=a.wrap;if(s===2||s===1&&a.status!==PAe||a.lookahead)return hS;if(s===1&&(e.adler=Ooe(e.adler,t,r,0)),a.wrap=0,r>=a.w_size){s===0&&(tO(a.head),a.strstart=0,a.block_start=0,a.insert=0);let f=new Uint8Array(a.w_size);f.set(t.subarray(r-a.w_size,r),0),t=f,r=a.w_size}const o=e.avail_in,u=e.next_in,h=e.input;for(e.avail_in=r,e.next_in=0,e.input=t,VF(a);a.lookahead>=kc;){let f=a.strstart,p=a.lookahead-(kc-1);do a.ins_h=IO(a,a.ins_h,a.window[f+kc-1]),a.prev[f&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=f,f++;while(--p);a.strstart=f,a.lookahead=kc-1,VF(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=kc-1,a.match_available=0,e.next_in=u,e.input=h,e.avail_in=o,a.wrap=s,GC};var C_i=E_i,A_i=DUn,k_i=LUn,R_i=OUn,I_i=w_i,N_i=x_i,O_i=S_i,L_i=T_i,D_i="pako deflate (from Nodeca project)",yse={deflateInit:C_i,deflateInit2:A_i,deflateReset:k_i,deflateResetKeep:R_i,deflateSetHeader:I_i,deflate:N_i,deflateEnd:O_i,deflateSetDictionary:L_i,deflateInfo:D_i};const M_i=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var P_i=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const a in r)M_i(r,a)&&(e[a]=r[a])}}return e},B_i=e=>{let t=0;for(let a=0,s=e.length;a=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Loe[254]=Loe[254]=1;var F_i=e=>{let t,r,a,s,o,u=e.length,h=0;for(s=0;s>>6,t[o++]=128|r&63):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|r&63):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|r&63);return t};const $_i=(e,t)=>{if(t<65534&&e.subarray&&MUn)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let a=0;a{let r,a;const s=t||e.length,o=new Array(s*2);for(a=0,r=0;r4){o[a++]=65533,r+=h-1;continue}for(u&=h===2?31:h===3?15:7;h>1&&r1){o[a++]=65533;continue}u<65536?o[a++]=u:(u-=65536,o[a++]=55296|u>>10&1023,o[a++]=56320|u&1023)}return $_i(o,a)},z_i=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let r=t-1;for(;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+Loe[e[r]]>t?r:t},Doe={string2buf:F_i,buf2string:U_i,utf8border:z_i};function G_i(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var PUn=G_i;const BUn=Object.prototype.toString,{Z_NO_FLUSH:q_i,Z_SYNC_FLUSH:H_i,Z_FULL_FLUSH:V_i,Z_FINISH:Y_i,Z_OK:x3e,Z_STREAM_END:j_i,Z_DEFAULT_COMPRESSION:W_i,Z_DEFAULT_STRATEGY:K_i,Z_DEFLATED:X_i}=DAe;function FAe(e){this.options=BAe.assign({level:W_i,method:X_i,chunkSize:16384,windowBits:15,memLevel:8,strategy:K_i},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new PUn,this.strm.avail_out=0;let r=yse.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==x3e)throw new Error(qF[r]);if(t.header&&yse.deflateSetHeader(this.strm,t.header),t.dictionary){let a;if(typeof t.dictionary=="string"?a=Doe.string2buf(t.dictionary):BUn.call(t.dictionary)==="[object ArrayBuffer]"?a=new Uint8Array(t.dictionary):a=t.dictionary,r=yse.deflateSetDictionary(this.strm,a),r!==x3e)throw new Error(qF[r]);this._dict_set=!0}}FAe.prototype.push=function(e,t){const r=this.strm,a=this.options.chunkSize;let s,o;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?Y_i:q_i,typeof e=="string"?r.input=Doe.string2buf(e):BUn.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){if(r.avail_out===0&&(r.output=new Uint8Array(a),r.next_out=0,r.avail_out=a),(o===H_i||o===V_i)&&r.avail_out<=6){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(s=yse.deflate(r,o),s===j_i)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),s=yse.deflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===x3e;if(r.avail_out===0){this.onData(r.output);continue}if(o>0&&r.next_out>0){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(r.avail_in===0)break}return!0};FAe.prototype.onData=function(e){this.chunks.push(e)};FAe.prototype.onEnd=function(e){e===x3e&&(this.result=BAe.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Q_i(e,t){const r=new FAe(t);if(r.push(e,!0),r.err)throw r.msg||qF[r.err];return r.result}var Z_i=Q_i,J_i={deflate:Z_i};const cwe=30,ewi=12;var twi=function(t,r){let a,s,o,u,h,f,p,m,b,_,w,S,C,A,k,I,N,L,P,M,F,U,$,G;const B=t.state;a=t.next_in,$=t.input,s=a+(t.avail_in-5),o=t.next_out,G=t.output,u=o-(r-t.avail_out),h=o+(t.avail_out-257),f=B.dmax,p=B.wsize,m=B.whave,b=B.wnext,_=B.window,w=B.hold,S=B.bits,C=B.lencode,A=B.distcode,k=(1<>>24,w>>>=L,S-=L,L=N>>>16&255,L===0)G[o++]=N&65535;else if(L&16){P=N&65535,L&=15,L&&(S>>=L,S-=L),S<15&&(w+=$[a++]<>>24,w>>>=L,S-=L,L=N>>>16&255,L&16){if(M=N&65535,L&=15,Sf){t.msg="invalid distance too far back",B.mode=cwe;break e}if(w>>>=L,S-=L,L=o-u,M>L){if(L=M-L,L>m&&B.sane){t.msg="invalid distance too far back",B.mode=cwe;break e}if(F=0,U=_,b===0){if(F+=p-L,L2;)G[o++]=U[F++],G[o++]=U[F++],G[o++]=U[F++],P-=3;P&&(G[o++]=U[F++],P>1&&(G[o++]=U[F++]))}else{F=o-M;do G[o++]=G[F++],G[o++]=G[F++],G[o++]=G[F++],P-=3;while(P>2);P&&(G[o++]=G[F++],P>1&&(G[o++]=G[F++]))}}else if(L&64){t.msg="invalid distance code",B.mode=cwe;break e}else{N=A[(N&65535)+(w&(1<>3,a-=P,S-=P<<3,w&=(1<{const f=h.bits;let p=0,m=0,b=0,_=0,w=0,S=0,C=0,A=0,k=0,I=0,N,L,P,M,F,U=null,$=0,G;const B=new Uint16Array(GH+1),Z=new Uint16Array(GH+1);let z=null,Y=0,W,Q,V;for(p=0;p<=GH;p++)B[p]=0;for(m=0;m=1&&B[_]===0;_--);if(w>_&&(w=_),_===0)return s[o++]=1<<24|64<<16|0,s[o++]=1<<24|64<<16|0,h.bits=1,0;for(b=1;b<_&&B[b]===0;b++);for(w0&&(e===E2n||_!==1))return-1;for(Z[1]=0,p=1;p_2n||e===x2n&&k>w2n)return 1;for(;;){W=p-C,u[m]G?(Q=z[Y+u[m]],V=U[$+u[m]]):(Q=96,V=0),N=1<>C)+L]=W<<24|Q<<16|V|0;while(L!==0);for(N=1<>=1;if(N!==0?(I&=N-1,I+=N):I=0,m++,--B[p]===0){if(p===_)break;p=t[r+u[m]]}if(p>w&&(I&M)!==P){for(C===0&&(C=w),F+=b,S=p-C,A=1<_2n||e===x2n&&k>w2n)return 1;P=I&M,s[P]=w<<24|S<<16|F-o|0}}return I!==0&&(s[F+I]=p-C<<24|64<<16|0),h.bits=w,0};var vse=swi;const owi=0,FUn=1,$Un=2,{Z_FINISH:S2n,Z_BLOCK:lwi,Z_TREES:uwe,Z_OK:YF,Z_STREAM_END:cwi,Z_NEED_DICT:uwi,Z_STREAM_ERROR:ES,Z_DATA_ERROR:UUn,Z_MEM_ERROR:zUn,Z_BUF_ERROR:hwi,Z_DEFLATED:T2n}=DAe,GUn=1,C2n=2,A2n=3,k2n=4,R2n=5,I2n=6,N2n=7,O2n=8,L2n=9,D2n=10,S3e=11,K6=12,rnt=13,M2n=14,int=15,P2n=16,B2n=17,F2n=18,$2n=19,hwe=20,dwe=21,U2n=22,z2n=23,G2n=24,q2n=25,H2n=26,ant=27,V2n=28,Y2n=29,qd=30,qUn=31,dwi=32,fwi=852,pwi=592,gwi=15,mwi=gwi,j2n=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function bwi(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const HUn=e=>{if(!e||!e.state)return ES;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=GUn,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(fwi),t.distcode=t.distdyn=new Int32Array(pwi),t.sane=1,t.back=-1,YF},VUn=e=>{if(!e||!e.state)return ES;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,HUn(e)},YUn=(e,t)=>{let r;if(!e||!e.state)return ES;const a=e.state;return t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15)?ES:(a.window!==null&&a.wbits!==t&&(a.window=null),a.wrap=r,a.wbits=t,VUn(e))},jUn=(e,t)=>{if(!e)return ES;const r=new bwi;e.state=r,r.window=null;const a=YUn(e,t);return a!==YF&&(e.state=null),a},ywi=e=>jUn(e,mwi);let W2n=!0,snt,ont;const vwi=e=>{if(W2n){snt=new Int32Array(512),ont=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(vse(FUn,e.lens,0,288,snt,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;vse($Un,e.lens,0,32,ont,0,e.work,{bits:5}),W2n=!1}e.lencode=snt,e.lenbits=9,e.distcode=ont,e.distbits=5},WUn=(e,t,r,a)=>{let s;const o=e.state;return o.window===null&&(o.wsize=1<=o.wsize?(o.window.set(t.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):(s=o.wsize-o.wnext,s>a&&(s=a),o.window.set(t.subarray(r-a,r-a+s),o.wnext),a-=s,a?(o.window.set(t.subarray(r-a,r),0),o.wnext=a,o.whave=o.wsize):(o.wnext+=s,o.wnext===o.wsize&&(o.wnext=0),o.whave{let r,a,s,o,u,h,f,p,m,b,_,w,S,C,A=0,k,I,N,L,P,M,F,U;const $=new Uint8Array(4);let G,B;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return ES;r=e.state,r.mode===K6&&(r.mode=rnt),u=e.next_out,s=e.output,f=e.avail_out,o=e.next_in,a=e.input,h=e.avail_in,p=r.hold,m=r.bits,b=h,_=f,U=YF;e:for(;;)switch(r.mode){case GUn:if(r.wrap===0){r.mode=rnt;break}for(;m<16;){if(h===0)break e;h--,p+=a[o++]<>>8&255,r.check=Eg(r.check,$,2,0),p=0,m=0,r.mode=C2n;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((p&255)<<8)+(p>>8))%31){e.msg="incorrect header check",r.mode=qd;break}if((p&15)!==T2n){e.msg="unknown compression method",r.mode=qd;break}if(p>>>=4,m-=4,F=(p&15)+8,r.wbits===0)r.wbits=F;else if(F>r.wbits){e.msg="invalid window size",r.mode=qd;break}r.dmax=1<>8&1),r.flags&512&&($[0]=p&255,$[1]=p>>>8&255,r.check=Eg(r.check,$,2,0)),p=0,m=0,r.mode=A2n;case A2n:for(;m<32;){if(h===0)break e;h--,p+=a[o++]<>>8&255,$[2]=p>>>16&255,$[3]=p>>>24&255,r.check=Eg(r.check,$,4,0)),p=0,m=0,r.mode=k2n;case k2n:for(;m<16;){if(h===0)break e;h--,p+=a[o++]<>8),r.flags&512&&($[0]=p&255,$[1]=p>>>8&255,r.check=Eg(r.check,$,2,0)),p=0,m=0,r.mode=R2n;case R2n:if(r.flags&1024){for(;m<16;){if(h===0)break e;h--,p+=a[o++]<>>8&255,r.check=Eg(r.check,$,2,0)),p=0,m=0}else r.head&&(r.head.extra=null);r.mode=I2n;case I2n:if(r.flags&1024&&(w=r.length,w>h&&(w=h),w&&(r.head&&(F=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(a.subarray(o,o+w),F)),r.flags&512&&(r.check=Eg(r.check,a,w,o)),h-=w,o+=w,r.length-=w),r.length))break e;r.length=0,r.mode=N2n;case N2n:if(r.flags&2048){if(h===0)break e;w=0;do F=a[o+w++],r.head&&F&&r.length<65536&&(r.head.name+=String.fromCharCode(F));while(F&&w>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=K6;break;case D2n:for(;m<32;){if(h===0)break e;h--,p+=a[o++]<>>=m&7,m-=m&7,r.mode=ant;break}for(;m<3;){if(h===0)break e;h--,p+=a[o++]<>>=1,m-=1,p&3){case 0:r.mode=M2n;break;case 1:if(vwi(r),r.mode=hwe,t===uwe){p>>>=2,m-=2;break e}break;case 2:r.mode=B2n;break;case 3:e.msg="invalid block type",r.mode=qd}p>>>=2,m-=2;break;case M2n:for(p>>>=m&7,m-=m&7;m<32;){if(h===0)break e;h--,p+=a[o++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=qd;break}if(r.length=p&65535,p=0,m=0,r.mode=int,t===uwe)break e;case int:r.mode=P2n;case P2n:if(w=r.length,w){if(w>h&&(w=h),w>f&&(w=f),w===0)break e;s.set(a.subarray(o,o+w),u),h-=w,o+=w,f-=w,u+=w,r.length-=w;break}r.mode=K6;break;case B2n:for(;m<14;){if(h===0)break e;h--,p+=a[o++]<>>=5,m-=5,r.ndist=(p&31)+1,p>>>=5,m-=5,r.ncode=(p&15)+4,p>>>=4,m-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=qd;break}r.have=0,r.mode=F2n;case F2n:for(;r.have>>=3,m-=3}for(;r.have<19;)r.lens[Z[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,G={bits:r.lenbits},U=vse(owi,r.lens,0,19,r.lencode,0,r.work,G),r.lenbits=G.bits,U){e.msg="invalid code lengths set",r.mode=qd;break}r.have=0,r.mode=$2n;case $2n:for(;r.have>>24,I=A>>>16&255,N=A&65535,!(k<=m);){if(h===0)break e;h--,p+=a[o++]<>>=k,m-=k,r.lens[r.have++]=N;else{if(N===16){for(B=k+2;m>>=k,m-=k,r.have===0){e.msg="invalid bit length repeat",r.mode=qd;break}F=r.lens[r.have-1],w=3+(p&3),p>>>=2,m-=2}else if(N===17){for(B=k+3;m>>=k,m-=k,F=0,w=3+(p&7),p>>>=3,m-=3}else{for(B=k+7;m>>=k,m-=k,F=0,w=11+(p&127),p>>>=7,m-=7}if(r.have+w>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=qd;break}for(;w--;)r.lens[r.have++]=F}}if(r.mode===qd)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=qd;break}if(r.lenbits=9,G={bits:r.lenbits},U=vse(FUn,r.lens,0,r.nlen,r.lencode,0,r.work,G),r.lenbits=G.bits,U){e.msg="invalid literal/lengths set",r.mode=qd;break}if(r.distbits=6,r.distcode=r.distdyn,G={bits:r.distbits},U=vse($Un,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,G),r.distbits=G.bits,U){e.msg="invalid distances set",r.mode=qd;break}if(r.mode=hwe,t===uwe)break e;case hwe:r.mode=dwe;case dwe:if(h>=6&&f>=258){e.next_out=u,e.avail_out=f,e.next_in=o,e.avail_in=h,r.hold=p,r.bits=m,twi(e,_),u=e.next_out,s=e.output,f=e.avail_out,o=e.next_in,a=e.input,h=e.avail_in,p=r.hold,m=r.bits,r.mode===K6&&(r.back=-1);break}for(r.back=0;A=r.lencode[p&(1<>>24,I=A>>>16&255,N=A&65535,!(k<=m);){if(h===0)break e;h--,p+=a[o++]<>L)],k=A>>>24,I=A>>>16&255,N=A&65535,!(L+k<=m);){if(h===0)break e;h--,p+=a[o++]<>>=L,m-=L,r.back+=L}if(p>>>=k,m-=k,r.back+=k,r.length=N,I===0){r.mode=H2n;break}if(I&32){r.back=-1,r.mode=K6;break}if(I&64){e.msg="invalid literal/length code",r.mode=qd;break}r.extra=I&15,r.mode=U2n;case U2n:if(r.extra){for(B=r.extra;m>>=r.extra,m-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=z2n;case z2n:for(;A=r.distcode[p&(1<>>24,I=A>>>16&255,N=A&65535,!(k<=m);){if(h===0)break e;h--,p+=a[o++]<>L)],k=A>>>24,I=A>>>16&255,N=A&65535,!(L+k<=m);){if(h===0)break e;h--,p+=a[o++]<>>=L,m-=L,r.back+=L}if(p>>>=k,m-=k,r.back+=k,I&64){e.msg="invalid distance code",r.mode=qd;break}r.offset=N,r.extra=I&15,r.mode=G2n;case G2n:if(r.extra){for(B=r.extra;m>>=r.extra,m-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=qd;break}r.mode=q2n;case q2n:if(f===0)break e;if(w=_-f,r.offset>w){if(w=r.offset-w,w>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=qd;break}w>r.wnext?(w-=r.wnext,S=r.wsize-w):S=r.wnext-w,w>r.length&&(w=r.length),C=r.window}else C=s,S=u-r.offset,w=r.length;w>f&&(w=f),f-=w,r.length-=w;do s[u++]=C[S++];while(--w);r.length===0&&(r.mode=dwe);break;case H2n:if(f===0)break e;s[u++]=r.length,f--,r.mode=dwe;break;case ant:if(r.wrap){for(;m<32;){if(h===0)break e;h--,p|=a[o++]<{if(!e||!e.state)return ES;let t=e.state;return t.window&&(t.window=null),e.state=null,YF},Ewi=(e,t)=>{if(!e||!e.state)return ES;const r=e.state;return r.wrap&2?(r.head=t,t.done=!1,YF):ES},xwi=(e,t)=>{const r=t.length;let a,s,o;return!e||!e.state||(a=e.state,a.wrap!==0&&a.mode!==S3e)?ES:a.mode===S3e&&(s=1,s=Ooe(s,t,r,0),s!==a.check)?UUn:(o=WUn(e,t,r,r),o?(a.mode=qUn,zUn):(a.havedict=1,YF))};var Swi=VUn,Twi=YUn,Cwi=HUn,Awi=ywi,kwi=jUn,Rwi=_wi,Iwi=wwi,Nwi=Ewi,Owi=xwi,Lwi="pako inflate (from Nodeca project)",f7={inflateReset:Swi,inflateReset2:Twi,inflateResetKeep:Cwi,inflateInit:Awi,inflateInit2:kwi,inflate:Rwi,inflateEnd:Iwi,inflateGetHeader:Nwi,inflateSetDictionary:Owi,inflateInfo:Lwi};function Dwi(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Mwi=Dwi;const KUn=Object.prototype.toString,{Z_NO_FLUSH:Pwi,Z_FINISH:Bwi,Z_OK:Moe,Z_STREAM_END:lnt,Z_NEED_DICT:cnt,Z_STREAM_ERROR:Fwi,Z_DATA_ERROR:K2n,Z_MEM_ERROR:$wi}=DAe;function $Ae(e){this.options=BAe.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new PUn,this.strm.avail_out=0;let r=f7.inflateInit2(this.strm,t.windowBits);if(r!==Moe)throw new Error(qF[r]);if(this.header=new Mwi,f7.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Doe.string2buf(t.dictionary):KUn.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=f7.inflateSetDictionary(this.strm,t.dictionary),r!==Moe)))throw new Error(qF[r])}$Ae.prototype.push=function(e,t){const r=this.strm,a=this.options.chunkSize,s=this.options.dictionary;let o,u,h;if(this.ended)return!1;for(t===~~t?u=t:u=t===!0?Bwi:Pwi,KUn.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(a),r.next_out=0,r.avail_out=a),o=f7.inflate(r,u),o===cnt&&s&&(o=f7.inflateSetDictionary(r,s),o===Moe?o=f7.inflate(r,u):o===K2n&&(o=cnt));r.avail_in>0&&o===lnt&&r.state.wrap>0&&e[r.next_in]!==0;)f7.inflateReset(r),o=f7.inflate(r,u);switch(o){case Fwi:case K2n:case cnt:case $wi:return this.onEnd(o),this.ended=!0,!1}if(h=r.avail_out,r.next_out&&(r.avail_out===0||o===lnt))if(this.options.to==="string"){let f=Doe.utf8border(r.output,r.next_out),p=r.next_out-f,m=Doe.buf2string(r.output,f);r.next_out=p,r.avail_out=a-p,p&&r.output.set(r.output.subarray(f,f+p),0),this.onData(m)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(o===Moe&&h===0)){if(o===lnt)return o=f7.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(r.avail_in===0)break}}return!0};$Ae.prototype.onData=function(e){this.chunks.push(e)};$Ae.prototype.onEnd=function(e){e===Moe&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=BAe.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Uwi(e,t){const r=new $Ae(t);if(r.push(e),r.err)throw r.msg||qF[r.err];return r.result}var zwi=Uwi,Gwi={inflate:zwi};const{deflate:qwi}=J_i,{inflate:Hwi}=Gwi;var _5a=qwi,w5a=Hwi;const Vwi="#ffffff",Ywi="#000000",jwi=["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],Wwi=["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],Kwi=["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],Xwi=["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],Qwi=["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],Zwi=["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],Jwi=["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],eEi=["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],tEi=["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],nEi=["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],rEi=["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],iEi=["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],aEi=["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"],E5a={white:Vwi,black:Ywi,gray:jwi,red:Wwi,pink:Kwi,grape:Xwi,violet:Qwi,indigo:Zwi,blue:Jwi,cyan:eEi,teal:tEi,green:nEi,lime:rEi,yellow:iEi,orange:aEi};let x5a=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,r)=>(r&=63,r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r>62?t+="-":t+="_",t),"");var XUn={exports:{}};(function(e,t){(function(r,a){e.exports=a()})(ml,function(){var r=function(){this._listeners={}};r.prototype.addEventListener=function(p,m){this._listeners[p]=this._listeners[p]||[],this._listeners[p].indexOf(m)<0&&this._listeners[p].push(m)},r.prototype.removeEventListener=function(p,m){if(this._listeners[p]){var b=this._listeners[p].indexOf(m);b>=0&&this._listeners[p].splice(b,1)}},r.prototype.dispatchEvent=function(p){if(this._listeners[p.type]&&this._listeners[p.type].length)for(var m=this._listeners[p.type].slice(),b=0,_=m.length;b<_;++b)m[b].call(this,p)};var a=function(p){return typeof p.constructor=="function"&&p.constructor.name==="GeneratorFunction"},s=function(p){return{next:function(){var m=p();return m?{value:m}:{done:!0}}}},o=function(p){var m=!1;return{next:function(){return m?{done:!0}:(m=!0,{value:p})}}},u=function(p,m){var b=typeof p;if(b==="object"){if(typeof p.next=="function")return p;if(typeof p.then=="function")return o(p)}return b==="function"?a(p)?p():s(p):o(m.resolve(p))},h=function(p,m,b){this.target=p,this.type=m,this.data=b},f=function(p,m,b){if(r.call(this),typeof m!="number"||Math.floor(m)!==m||m<1)throw new Error("Invalid concurrency");this._concurrency=m,this._options=b||{},this._options.promise=this._options.promise||Promise,this._iterator=u(p,this._options.promise),this._done=!1,this._size=0,this._promise=null,this._callbacks=null};return f.prototype=new r,f.prototype.constructor=f,f.prototype.concurrency=function(p){return typeof p<"u"&&(this._concurrency=p,this.active()&&this._proceed()),this._concurrency},f.prototype.size=function(){return this._size},f.prototype.active=function(){return!!this._promise},f.prototype.promise=function(){return this._promise},f.prototype.start=function(){var p=this,m=this._options.promise;return this._promise=new m(function(b,_){p._callbacks={reject:_,resolve:b},p._proceed()}),this._promise},f.prototype._fireEvent=function(p,m){this.dispatchEvent(new h(this,p,m))},f.prototype._settle=function(p){p?this._callbacks.reject(p):this._callbacks.resolve(),this._promise=null,this._callbacks=null},f.prototype._onPooledPromiseFulfilled=function(p,m){this._size--,this.active()&&(this._fireEvent("fulfilled",{promise:p,result:m}),this._proceed())},f.prototype._onPooledPromiseRejected=function(p,m){this._size--,this.active()&&(this._fireEvent("rejected",{promise:p,error:m}),this._settle(m||new Error("Unknown error")))},f.prototype._trackPromise=function(p){var m=this;p.then(function(b){m._onPooledPromiseFulfilled(p,b)},function(b){m._onPooledPromiseRejected(p,b)}).catch(function(b){m._settle(new Error("Promise processing failed: "+b))})},f.prototype._proceed=function(){if(!this._done){for(var p={done:!1};this._sizea.push(...s)),klt(a,t,r)}function lEi(e,t){return e[0]===t[0]&&e[1]===t[1]}function cEi(e,t,r,a=1){const s=r,o=Math.max(t,.1),u=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,h=[0,0];if(s)for(const p of u)klt(p,h,s);const f=uEi(u,o,a);if(s){for(const p of u)klt(p,h,-s);oEi(f,h,-s)}return f}function uEi(e,t,r){const a=[];for(const p of e){const m=[...p];lEi(m[0],m[m.length-1])||m.push([m[0][0],m[0][1]]),m.length>2&&a.push(m)}const s=[];t=Math.max(t,.1);const o=[];for(const p of a)for(let m=0;mp.yminm.ymin?1:p.xm.x?1:p.ymax===m.ymax?0:(p.ymax-m.ymax)/Math.abs(p.ymax-m.ymax)),!o.length)return s;let u=[],h=o[0].ymin,f=0;for(;u.length||o.length;){if(o.length){let p=-1;for(let b=0;bh);b++)p=b;o.splice(0,p+1).forEach(b=>{u.push({s:h,edge:b})})}if(u=u.filter(p=>!(p.edge.ymax<=h)),u.sort((p,m)=>p.edge.x===m.edge.x?0:(p.edge.x-m.edge.x)/Math.abs(p.edge.x-m.edge.x)),(r!==1||f%t===0)&&u.length>1)for(let p=0;p=u.length)break;const b=u[p].edge,_=u[m].edge;s.push([[Math.round(b.x),h],[Math.round(_.x),h]])}h+=r,u.forEach(p=>{p.edge.x=p.edge.x+r*p.edge.islope}),f++}return s}function gce(e,t){var r;const a=t.hachureAngle+90;let s=t.hachureGap;s<0&&(s=t.strokeWidth*4),s=Math.max(s,.1);let o=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(o=s),cEi(e,s,a,o||1)}class _pt{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const a=gce(t,r);return{type:"fillSketch",ops:this.renderLines(a,r)}}renderLines(t,r){const a=[];for(const s of t)a.push(...this.helper.doubleLineOps(s[0][0],s[0][1],s[1][0],s[1][1],r));return a}}function UAe(e){const t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class hEi extends _pt{fillPolygons(t,r){let a=r.hachureGap;a<0&&(a=r.strokeWidth*4),a=Math.max(a,.1);const s=Object.assign({},r,{hachureGap:a}),o=gce(t,s),u=Math.PI/180*r.hachureAngle,h=[],f=a*.5*Math.cos(u),p=a*.5*Math.sin(u);for(const[b,_]of o)UAe([b,_])&&h.push([[b[0]-f,b[1]+p],[..._]],[[b[0]+f,b[1]-p],[..._]]);return{type:"fillSketch",ops:this.renderLines(h,r)}}}class dEi extends _pt{fillPolygons(t,r){const a=this._fillPolygons(t,r),s=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),o=this._fillPolygons(t,s);return a.ops=a.ops.concat(o.ops),a}}class fEi{constructor(t){this.helper=t}fillPolygons(t,r){r=Object.assign({},r,{hachureAngle:0});const a=gce(t,r);return this.dotsOnLines(a,r)}dotsOnLines(t,r){const a=[];let s=r.hachureGap;s<0&&(s=r.strokeWidth*4),s=Math.max(s,.1);let o=r.fillWeight;o<0&&(o=r.strokeWidth/2);const u=s/4;for(const h of t){const f=UAe(h),p=f/s,m=Math.ceil(p)-1,b=f-m*s,_=(h[0][0]+h[1][0])/2-s/4,w=Math.min(h[0][1],h[1][1]);for(let S=0;S{const h=UAe(u),f=Math.floor(h/(a+s)),p=(h+s-f*(a+s))/2;let m=u[0],b=u[1];m[0]>b[0]&&(m=u[1],b=u[0]);const _=Math.atan((b[1]-m[1])/(b[0]-m[0]));for(let w=0;w{const u=UAe(o),h=Math.round(u/(2*r));let f=o[0],p=o[1];f[0]>p[0]&&(f=o[1],p=o[0]);const m=Math.atan((p[1]-f[1])/(p[0]-f[0]));for(let b=0;bm%2?p+r:p+t);o.push({key:"C",data:f}),t=f[4],r=f[5];break}case"Q":o.push({key:"Q",data:[...h]}),t=h[2],r=h[3];break;case"q":{const f=h.map((p,m)=>m%2?p+r:p+t);o.push({key:"Q",data:f}),t=f[2],r=f[3];break}case"A":o.push({key:"A",data:[...h]}),t=h[5],r=h[6];break;case"a":t+=h[5],r+=h[6],o.push({key:"A",data:[h[0],h[1],h[2],h[3],h[4],t,r]});break;case"H":o.push({key:"H",data:[...h]}),t=h[0];break;case"h":t+=h[0],o.push({key:"H",data:[t]});break;case"V":o.push({key:"V",data:[...h]}),r=h[0];break;case"v":r+=h[0],o.push({key:"V",data:[r]});break;case"S":o.push({key:"S",data:[...h]}),t=h[2],r=h[3];break;case"s":{const f=h.map((p,m)=>m%2?p+r:p+t);o.push({key:"S",data:f}),t=f[2],r=f[3];break}case"T":o.push({key:"T",data:[...h]}),t=h[0],r=h[1];break;case"t":t+=h[0],r+=h[1],o.push({key:"T",data:[t,r]});break;case"Z":case"z":o.push({key:"Z",data:[]}),t=a,r=s;break}return o}function JUn(e){const t=[];let r="",a=0,s=0,o=0,u=0,h=0,f=0;for(const{key:p,data:m}of e){switch(p){case"M":t.push({key:"M",data:[...m]}),[a,s]=m,[o,u]=m;break;case"C":t.push({key:"C",data:[...m]}),a=m[4],s=m[5],h=m[2],f=m[3];break;case"L":t.push({key:"L",data:[...m]}),[a,s]=m;break;case"H":a=m[0],t.push({key:"L",data:[a,s]});break;case"V":s=m[0],t.push({key:"L",data:[a,s]});break;case"S":{let b=0,_=0;r==="C"||r==="S"?(b=a+(a-h),_=s+(s-f)):(b=a,_=s),t.push({key:"C",data:[b,_,...m]}),h=m[0],f=m[1],a=m[2],s=m[3];break}case"T":{const[b,_]=m;let w=0,S=0;r==="Q"||r==="T"?(w=a+(a-h),S=s+(s-f)):(w=a,S=s);const C=a+2*(w-a)/3,A=s+2*(S-s)/3,k=b+2*(w-b)/3,I=_+2*(S-_)/3;t.push({key:"C",data:[C,A,k,I,b,_]}),h=w,f=S,a=b,s=_;break}case"Q":{const[b,_,w,S]=m,C=a+2*(b-a)/3,A=s+2*(_-s)/3,k=w+2*(b-w)/3,I=S+2*(_-S)/3;t.push({key:"C",data:[C,A,k,I,w,S]}),h=b,f=_,a=w,s=S;break}case"A":{const b=Math.abs(m[0]),_=Math.abs(m[1]),w=m[2],S=m[3],C=m[4],A=m[5],k=m[6];b===0||_===0?(t.push({key:"C",data:[a,s,A,k,A,k]}),a=A,s=k):(a!==A||s!==k)&&(ezn(a,s,A,k,b,_,w,S,C).forEach(function(N){t.push({key:"C",data:N})}),a=A,s=k);break}case"Z":t.push({key:"Z",data:[]}),a=o,s=u;break}r=p}return t}function wEi(e){return Math.PI*e/180}function jre(e,t,r){const a=e*Math.cos(r)-t*Math.sin(r),s=e*Math.sin(r)+t*Math.cos(r);return[a,s]}function ezn(e,t,r,a,s,o,u,h,f,p){const m=wEi(u);let b=[],_=0,w=0,S=0,C=0;if(p)[_,w,S,C]=p;else{[e,t]=jre(e,t,-m),[r,a]=jre(r,a,-m);const Z=(e-r)/2,z=(t-a)/2;let Y=Z*Z/(s*s)+z*z/(o*o);Y>1&&(Y=Math.sqrt(Y),s=Y*s,o=Y*o);const W=h===f?-1:1,Q=s*s,V=o*o,j=Q*V-Q*z*z-V*Z*Z,ee=Q*z*z+V*Z*Z,te=W*Math.sqrt(Math.abs(j/ee));S=te*s*z/o+(e+r)/2,C=te*-o*Z/s+(t+a)/2,_=Math.asin(parseFloat(((t-C)/o).toFixed(9))),w=Math.asin(parseFloat(((a-C)/o).toFixed(9))),ew&&(_=_-Math.PI*2),!f&&w>_&&(w=w-Math.PI*2)}let A=w-_;if(Math.abs(A)>Math.PI*120/180){const Z=w,z=r,Y=a;f&&w>_?w=_+Math.PI*120/180*1:w=_+Math.PI*120/180*-1,r=S+s*Math.cos(w),a=C+o*Math.sin(w),b=ezn(r,a,z,Y,s,o,u,0,f,[w,Z,S,C])}A=w-_;const k=Math.cos(_),I=Math.sin(_),N=Math.cos(w),L=Math.sin(w),P=Math.tan(A/4),M=4/3*s*P,F=4/3*o*P,U=[e,t],$=[e+M*I,t-F*k],G=[r+M*L,a-F*N],B=[r,a];if($[0]=2*U[0]-$[0],$[1]=2*U[1]-$[1],p)return[$,G,B].concat(b);{b=[$,G,B].concat(b);const Z=[];for(let z=0;z2){const s=[];for(let o=0;oMath.PI*2&&(w=0,S=Math.PI*2);const C=Math.PI*2/f.curveStepCount,A=Math.min(C/2,(S-w)/2),k=n_n(A,p,m,b,_,w,S,1,f);if(!f.disableMultiStroke){const I=n_n(A,p,m,b,_,w,S,1.5,f);k.push(...I)}return u&&(h?k.push(...rR(p,m,p+b*Math.cos(w),m+_*Math.sin(w),f),...rR(p,m,p+b*Math.cos(S),m+_*Math.sin(S),f)):k.push({op:"lineTo",data:[p,m]},{op:"lineTo",data:[p+b*Math.cos(w),m+_*Math.sin(w)]})),{type:"path",ops:k}}function Z2n(e,t){const r=JUn(ZUn(wpt(e))),a=[];let s=[0,0],o=[0,0];for(const{key:u,data:h}of r)switch(u){case"M":{o=[h[0],h[1]],s=[h[0],h[1]];break}case"L":a.push(...rR(o[0],o[1],h[0],h[1],t)),o=[h[0],h[1]];break;case"C":{const[f,p,m,b,_,w]=h;a.push(...NEi(f,p,m,b,_,w,o,t)),o=[_,w];break}case"Z":a.push(...rR(o[0],o[1],s[0],s[1],t)),o=[s[0],s[1]];break}return{type:"path",ops:a}}function hnt(e,t){const r=[];for(const a of e)if(a.length){const s=t.maxRandomnessOffset||0,o=a.length;if(o>2){r.push({op:"move",data:[a[0][0]+vo(s,t),a[0][1]+vo(s,t)]});for(let u=1;uMath.PI*2&&(b=0,_=Math.PI*2);const w=(_-b)/u.curveStepCount,S=[];for(let C=b;C<=_;C=C+w)S.push([h+p*Math.cos(C),f+m*Math.sin(C)]);return S.push([h+p*Math.cos(_),f+m*Math.sin(_)]),S.push([h,f]),pV([S],u)}function AEi(e,t){return vo(e,t)}function kEi(e,t,r){return T3e(e,t,r)}function REi(e,t,r,a,s){return rR(e,t,r,a,s,!0)}function IEi(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function rzn(e){return e.randomizer||(e.randomizer=new yEi(e.seed||0)),e.randomizer.next()}function T3e(e,t,r,a=1){return r.roughness*a*(rzn(r)*(t-e)+e)}function vo(e,t,r=1){return T3e(-e,e,t,r)}function rR(e,t,r,a,s,o=!1){const u=o?s.disableMultiStrokeFill:s.disableMultiStroke,h=J2n(e,t,r,a,s,!0,!1);if(u)return h;const f=J2n(e,t,r,a,s,!0,!0);return h.concat(f)}function J2n(e,t,r,a,s,o,u){const h=Math.pow(e-r,2)+Math.pow(t-a,2),f=Math.sqrt(h);let p=1;f<200?p=1:f>500?p=.4:p=-.0016668*f+1.233334;let m=s.maxRandomnessOffset||0;m*m*100>h&&(m=f/10);const b=m/2,_=.2+rzn(s)*.2;let w=s.bowing*s.maxRandomnessOffset*(a-t)/200,S=s.bowing*s.maxRandomnessOffset*(e-r)/200;w=vo(w,s,p),S=vo(S,s,p);const C=[],A=()=>vo(b,s,p),k=()=>vo(m,s,p),I=s.preserveVertices;return u?C.push({op:"move",data:[e+(I?0:A()),t+(I?0:A())]}):C.push({op:"move",data:[e+(I?0:vo(m,s,p)),t+(I?0:vo(m,s,p))]}),u?C.push({op:"bcurveTo",data:[w+e+(r-e)*_+A(),S+t+(a-t)*_+A(),w+e+2*(r-e)*_+A(),S+t+2*(a-t)*_+A(),r+(I?0:A()),a+(I?0:A())]}):C.push({op:"bcurveTo",data:[w+e+(r-e)*_+k(),S+t+(a-t)*_+k(),w+e+2*(r-e)*_+k(),S+t+2*(a-t)*_+k(),r+(I?0:k()),a+(I?0:k())]}),C}function e_n(e,t,r){const a=[];a.push([e[0][0]+vo(t,r),e[0][1]+vo(t,r)]),a.push([e[0][0]+vo(t,r),e[0][1]+vo(t,r)]);for(let s=1;s3){const o=[],u=1-r.curveTightness;s.push({op:"move",data:[e[1][0],e[1][1]]});for(let h=1;h+21&&s.push(o):s.push(o),s.push(e[t+3])}else{const u=e[t+0],h=e[t+1],f=e[t+2],p=e[t+3],m=RB(u,h,.5),b=RB(h,f,.5),_=RB(f,p,.5),w=RB(m,b,.5),S=RB(b,_,.5),C=RB(w,S,.5);Nlt([u,m,w,C],0,r,s),Nlt([C,S,_,p],0,r,s)}return s}function PEi(e,t){return A3e(e,0,e.length,t)}function A3e(e,t,r,a,s){const o=s||[],u=e[t],h=e[r-1];let f=0,p=1;for(let m=t+1;mf&&(f=b,p=m)}return Math.sqrt(f)>a?(A3e(e,t,p+1,a,o),A3e(e,p,r,a,o)):(o.length||o.push(u),o.push(h)),o}function izn(e,t=.15,r){const a=[],s=(e.length-1)/3;for(let o=0;o0?A3e(a,0,a.length,r):a}function BEi(e,t,r){const a=wpt(e),s=JUn(ZUn(a)),o=[];let u=[],h=[0,0],f=[];const p=()=>{f.length>=4&&u.push(...izn(f,t)),f=[]},m=()=>{p(),u.length&&(o.push(u),u=[])};for(const{key:_,data:w}of s)switch(_){case"M":m(),h=[w[0],w[1]],u.push(h);break;case"L":p(),u.push([w[0],w[1]]);break;case"C":if(!f.length){const S=u.length?u[u.length-1]:h;f.push([S[0],S[1]])}f.push([w[0],w[1]]),f.push([w[2],w[3]]),f.push([w[4],w[5]]);break;case"Z":p(),u.push([h[0],h[1]]);break}if(m(),!r)return o;const b=[];for(const _ of o){const w=PEi(_,r);w.length&&b.push(w)}return b}const Sw="none";class k3e{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return bEi()}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,r,a){return{shape:t,sets:r||[],options:a||this.defaultOptions}}line(t,r,a,s,o){const u=this._o(o);return this._d("line",[tzn(t,r,a,s,u)],u)}rectangle(t,r,a,s,o){const u=this._o(o),h=[],f=SEi(t,r,a,s,u);if(u.fill){const p=[[t,r],[t+a,r],[t+a,r+s],[t,r+s]];u.fillStyle==="solid"?h.push(hnt([p],u)):h.push(pV([p],u))}return u.stroke!==Sw&&h.push(f),this._d("rectangle",h,u)}ellipse(t,r,a,s,o){const u=this._o(o),h=[],f=nzn(a,s,u),p=Ilt(t,r,u,f);if(u.fill)if(u.fillStyle==="solid"){const m=Ilt(t,r,u,f).opset;m.type="fillPath",h.push(m)}else h.push(pV([p.estimatedPoints],u));return u.stroke!==Sw&&h.push(p.opset),this._d("ellipse",h,u)}circle(t,r,a,s){const o=this.ellipse(t,r,a,a,s);return o.shape="circle",o}linearPath(t,r){const a=this._o(r);return this._d("linearPath",[gxe(t,!1,a)],a)}arc(t,r,a,s,o,u,h=!1,f){const p=this._o(f),m=[],b=Q2n(t,r,a,s,o,u,h,!0,p);if(h&&p.fill)if(p.fillStyle==="solid"){const _=Object.assign({},p);_.disableMultiStroke=!0;const w=Q2n(t,r,a,s,o,u,!0,!1,_);w.type="fillPath",m.push(w)}else m.push(CEi(t,r,a,s,o,u,p));return p.stroke!==Sw&&m.push(b),this._d("arc",m,p)}curve(t,r){const a=this._o(r),s=[],o=X2n(t,a);if(a.fill&&a.fill!==Sw&&t.length>=3)if(a.fillStyle==="solid"){const u=X2n(t,Object.assign(Object.assign({},a),{disableMultiStroke:!0,roughness:a.roughness?a.roughness+a.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(u.ops)})}else{const u=OEi(t),h=izn(u,10,(1+a.roughness)/2);s.push(pV([h],a))}return a.stroke!==Sw&&s.push(o),this._d("curve",s,a)}polygon(t,r){const a=this._o(r),s=[],o=gxe(t,!0,a);return a.fill&&(a.fillStyle==="solid"?s.push(hnt([t],a)):s.push(pV([t],a))),a.stroke!==Sw&&s.push(o),this._d("polygon",s,a)}path(t,r){const a=this._o(r),s=[];if(!t)return this._d("path",s,a);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=a.fill&&a.fill!=="transparent"&&a.fill!==Sw,u=a.stroke!==Sw,h=!!(a.simplification&&a.simplification<1),f=h?4-4*(a.simplification||1):(1+a.roughness)/2,p=BEi(t,1,f),m=Z2n(t,a);if(o)if(a.fillStyle==="solid")if(p.length===1){const b=Z2n(t,Object.assign(Object.assign({},a),{disableMultiStroke:!0,roughness:a.roughness?a.roughness+a.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(b.ops)})}else s.push(hnt(p,a));else s.push(pV(p,a));return u&&(h?p.forEach(b=>{s.push(gxe(b,!1,a))}):s.push(m)),this._d("path",s,a)}opsToPath(t,r){let a="";for(const s of t.ops){const o=typeof r=="number"&&r>=0?s.data.map(u=>+u.toFixed(r)):s.data;switch(s.op){case"move":a+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":a+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":a+=`L${o[0]} ${o[1]} `;break}}return a.trim()}toPaths(t){const r=t.sets||[],a=t.options||this.defaultOptions,s=[];for(const o of r){let u=null;switch(o.type){case"path":u={d:this.opsToPath(o),stroke:a.stroke,strokeWidth:a.strokeWidth,fill:Sw};break;case"fillPath":u={d:this.opsToPath(o),stroke:Sw,strokeWidth:0,fill:a.fill||Sw};break;case"fillSketch":u=this.fillSketch(o,a);break}u&&s.push(u)}return s}fillSketch(t,r){let a=r.fillWeight;return a<0&&(a=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||Sw,strokeWidth:a,fill:Sw}}_mergedShape(t){return t.filter((r,a)=>a===0?!0:r.op!=="move")}}class FEi{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new k3e(r)}draw(t){const r=t.sets||[],a=t.options||this.getDefaultOptions(),s=this.ctx,o=t.options.fixedDecimalPlaceDigits;for(const u of r)switch(u.type){case"path":s.save(),s.strokeStyle=a.stroke==="none"?"transparent":a.stroke,s.lineWidth=a.strokeWidth,a.strokeLineDash&&s.setLineDash(a.strokeLineDash),a.strokeLineDashOffset&&(s.lineDashOffset=a.strokeLineDashOffset),this._drawToContext(s,u,o),s.restore();break;case"fillPath":{s.save(),s.fillStyle=a.fill||"";const h=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(s,u,o,h),s.restore();break}case"fillSketch":this.fillSketch(s,u,a);break}}fillSketch(t,r,a){let s=a.fillWeight;s<0&&(s=a.strokeWidth/2),t.save(),a.fillLineDash&&t.setLineDash(a.fillLineDash),a.fillLineDashOffset&&(t.lineDashOffset=a.fillLineDashOffset),t.strokeStyle=a.fill||"",t.lineWidth=s,this._drawToContext(t,r,a.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,a,s="nonzero"){t.beginPath();for(const o of r.ops){const u=typeof a=="number"&&a>=0?o.data.map(h=>+h.toFixed(a)):o.data;switch(o.op){case"move":t.moveTo(u[0],u[1]);break;case"bcurveTo":t.bezierCurveTo(u[0],u[1],u[2],u[3],u[4],u[5]);break;case"lineTo":t.lineTo(u[0],u[1]);break}}r.type==="fillPath"?t.fill(s):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,a,s,o){const u=this.gen.line(t,r,a,s,o);return this.draw(u),u}rectangle(t,r,a,s,o){const u=this.gen.rectangle(t,r,a,s,o);return this.draw(u),u}ellipse(t,r,a,s,o){const u=this.gen.ellipse(t,r,a,s,o);return this.draw(u),u}circle(t,r,a,s){const o=this.gen.circle(t,r,a,s);return this.draw(o),o}linearPath(t,r){const a=this.gen.linearPath(t,r);return this.draw(a),a}polygon(t,r){const a=this.gen.polygon(t,r);return this.draw(a),a}arc(t,r,a,s,o,u,h=!1,f){const p=this.gen.arc(t,r,a,s,o,u,h,f);return this.draw(p),p}curve(t,r){const a=this.gen.curve(t,r);return this.draw(a),a}path(t,r){const a=this.gen.path(t,r);return this.draw(a),a}}const pwe="http://www.w3.org/2000/svg";class $Ei{constructor(t,r){this.svg=t,this.gen=new k3e(r)}draw(t){const r=t.sets||[],a=t.options||this.getDefaultOptions(),s=this.svg.ownerDocument||window.document,o=s.createElementNS(pwe,"g"),u=t.options.fixedDecimalPlaceDigits;for(const h of r){let f=null;switch(h.type){case"path":{f=s.createElementNS(pwe,"path"),f.setAttribute("d",this.opsToPath(h,u)),f.setAttribute("stroke",a.stroke),f.setAttribute("stroke-width",a.strokeWidth+""),f.setAttribute("fill","none"),a.strokeLineDash&&f.setAttribute("stroke-dasharray",a.strokeLineDash.join(" ").trim()),a.strokeLineDashOffset&&f.setAttribute("stroke-dashoffset",`${a.strokeLineDashOffset}`);break}case"fillPath":{f=s.createElementNS(pwe,"path"),f.setAttribute("d",this.opsToPath(h,u)),f.setAttribute("stroke","none"),f.setAttribute("stroke-width","0"),f.setAttribute("fill",a.fill||""),(t.shape==="curve"||t.shape==="polygon")&&f.setAttribute("fill-rule","evenodd");break}case"fillSketch":{f=this.fillSketch(s,h,a);break}}f&&o.appendChild(f)}return o}fillSketch(t,r,a){let s=a.fillWeight;s<0&&(s=a.strokeWidth/2);const o=t.createElementNS(pwe,"path");return o.setAttribute("d",this.opsToPath(r,a.fixedDecimalPlaceDigits)),o.setAttribute("stroke",a.fill||""),o.setAttribute("stroke-width",s+""),o.setAttribute("fill","none"),a.fillLineDash&&o.setAttribute("stroke-dasharray",a.fillLineDash.join(" ").trim()),a.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${a.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,a,s,o){const u=this.gen.line(t,r,a,s,o);return this.draw(u)}rectangle(t,r,a,s,o){const u=this.gen.rectangle(t,r,a,s,o);return this.draw(u)}ellipse(t,r,a,s,o){const u=this.gen.ellipse(t,r,a,s,o);return this.draw(u)}circle(t,r,a,s){const o=this.gen.circle(t,r,a,s);return this.draw(o)}linearPath(t,r){const a=this.gen.linearPath(t,r);return this.draw(a)}polygon(t,r){const a=this.gen.polygon(t,r);return this.draw(a)}arc(t,r,a,s,o,u,h=!1,f){const p=this.gen.arc(t,r,a,s,o,u,h,f);return this.draw(p)}curve(t,r){const a=this.gen.curve(t,r);return this.draw(a)}path(t,r){const a=this.gen.path(t,r);return this.draw(a)}}const T5a={canvas(e,t){return new FEi(e,t)},svg(e,t){return new $Ei(e,t)},generator(e){return new k3e(e)},newSeed(){return k3e.newSeed()}};function r_n(e,t,r,a=s=>s){return e*a(.5-t*(.5-r))}function UEi(e){return[-e[0],-e[1]]}function C3(e,t){return[e[0]+t[0],e[1]+t[1]]}function Yx(e,t){return[e[0]-t[0],e[1]-t[1]]}function S3(e,t){return[e[0]*t,e[1]*t]}function zEi(e,t){return[e[0]/t,e[1]/t]}function Kre(e){return[e[1],-e[0]]}function i_n(e,t){return e[0]*t[0]+e[1]*t[1]}function GEi(e,t){return e[0]===t[0]&&e[1]===t[1]}function qEi(e){return Math.hypot(e[0],e[1])}function HEi(e){return e[0]*e[0]+e[1]*e[1]}function a_n(e,t){return HEi(Yx(e,t))}function azn(e){return zEi(e,qEi(e))}function VEi(e,t){return Math.hypot(e[1]-t[1],e[0]-t[0])}function Xre(e,t,r){let a=Math.sin(r),s=Math.cos(r),o=e[0]-t[0],u=e[1]-t[1],h=o*s-u*a,f=o*a+u*s;return[h+t[0],f+t[1]]}function Olt(e,t,r){return C3(e,S3(Yx(t,e),r))}function s_n(e,t,r){return C3(e,S3(t,r))}var{min:qH,PI:YEi}=Math,o_n=.275,Qre=YEi+1e-4;function jEi(e,t={}){let{size:r=16,smoothing:a=.5,thinning:s=.5,simulatePressure:o=!0,easing:u=V=>V,start:h={},end:f={},last:p=!1}=t,{cap:m=!0,easing:b=V=>V*(2-V)}=h,{cap:_=!0,easing:w=V=>--V*V*V+1}=f;if(e.length===0||r<=0)return[];let S=e[e.length-1].runningLength,C=h.taper===!1?0:h.taper===!0?Math.max(r,S):h.taper,A=f.taper===!1?0:f.taper===!0?Math.max(r,S):f.taper,k=Math.pow(r*a,2),I=[],N=[],L=e.slice(0,10).reduce((V,j)=>{let ee=j.pressure;if(o){let te=qH(1,j.distance/r),ne=qH(1,1-te);ee=qH(1,V+(ne-V)*(te*o_n))}return(V+ee)/2},e[0].pressure),P=r_n(r,s,e[e.length-1].pressure,u),M,F=e[0].vector,U=e[0].point,$=U,G=U,B=$,Z=!1;for(let V=0;Vk)&&(I.push(G),U=G),B=C3(ee,ye),(V<=1||a_n($,B)>k)&&(N.push(B),$=B),L=j,F=te}let z=e[0].point.slice(0,2),Y=e.length>1?e[e.length-1].point.slice(0,2):C3(e[0].point,[1,1]),W=[],Q=[];if(e.length===1){if(!(C||A)||p){let V=s_n(z,azn(Kre(Yx(z,Y))),-(M||P)),j=[];for(let ee=1/13,te=ee;te<=1;te+=ee)j.push(Xre(V,z,Qre*2*te));return j}}else{if(!(C||A&&e.length===1))if(m)for(let j=1/13,ee=j;ee<=1;ee+=j){let te=Xre(N[0],z,Qre*ee);W.push(te)}else{let j=Yx(I[0],N[0]),ee=S3(j,.5),te=S3(j,.51);W.push(Yx(z,ee),Yx(z,te),C3(z,te),C3(z,ee))}let V=Kre(UEi(e[e.length-1].vector));if(A||C&&e.length===1)Q.push(Y);else if(_){let j=s_n(Y,V,P);for(let ee=1/29,te=ee;te<1;te+=ee)Q.push(Xre(j,Y,Qre*3*te))}else Q.push(C3(Y,S3(V,P)),C3(Y,S3(V,P*.99)),Yx(Y,S3(V,P*.99)),Yx(Y,S3(V,P)))}return I.concat(Q,N.reverse(),W)}function WEi(e,t={}){var r;let{streamline:a=.5,size:s=16,last:o=!1}=t;if(e.length===0)return[];let u=.15+(1-a)*.85,h=Array.isArray(e[0])?e:e.map(({x:w,y:S,pressure:C=.5})=>[w,S,C]);if(h.length===2){let w=h[1];h=h.slice(0,-1);for(let S=1;S<5;S++)h.push(Olt(h[0],w,S/4))}h.length===1&&(h=[...h,[...C3(h[0],[1,1]),...h[0].slice(2)]]);let f=[{point:[h[0][0],h[0][1]],pressure:h[0][2]>=0?h[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],p=!1,m=0,b=f[0],_=h.length-1;for(let w=1;w=0?h[w][2]:.5,vector:azn(Yx(b.point,S)),distance:C,runningLength:m},f.push(b)}return f[0].vector=((r=f[1])==null?void 0:r.vector)||[0,0],f}function C5a(e,t={}){return jEi(WEi(e,t),t)}function szn(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t1&&s.push(o):s.push(o),s.push(e[t+3])}else{const u=e[t+0],h=e[t+1],f=e[t+2],p=e[t+3],m=IB(u,h,.5),b=IB(h,f,.5),_=IB(f,p,.5),w=IB(m,b,.5),S=IB(b,_,.5),C=IB(w,S,.5);Llt([u,m,w,C],0,r,s),Llt([C,S,_,p],0,r,s)}return s}function k5a(e,t){return R3e(e,0,e.length,t)}function R3e(e,t,r,a,s){const o=s||[],u=e[t],h=e[r-1];let f=0,p=1;for(let m=t+1;mf&&(f=b,p=m)}return Math.sqrt(f)>a?(R3e(e,t,p+1,a,o),R3e(e,p,r,a,o)):(o.length||o.push(u),o.push(h)),o}function R5a(e,t=.15,r){const a=[],s=(e.length-1)/3;for(let o=0;o-1}function axi(e){return e.replace(JEi,function(t,r){return String.fromCharCode(r)})}function sxi(e){var t=axi(e||"").replace(exi,"").replace(txi,"").trim();if(!t)return"about:blank";if(ixi(t))return t;var r=t.match(nxi);if(!r)return t;var a=r[0];return ZEi.test(a)?"about:blank":t}U9=Ept.sanitizeUrl=sxi;const ozn="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function NV(e,t,r){const a=r[0];if(t!=null&&e>=t)throw new Error(e+" >= "+t);if(e.slice(-1)===a||t&&t.slice(-1)===a)throw new Error("trailing zero");if(t){let u=0;for(;(e[u]||a)===t[u];)u++;if(u>0)return t.slice(0,u)+NV(e.slice(u),t.slice(u),r)}const s=e?r.indexOf(e[0]):0,o=t!=null?r.indexOf(t[0]):r.length;if(o-s>1){const u=Math.round(.5*(s+o));return r[u]}else return t&&t.length>1?t.slice(0,1):r[s]+NV(e.slice(1),null,r)}function lzn(e){if(e.length!==czn(e[0]))throw new Error("invalid integer part of order key: "+e)}function czn(e){if(e>="a"&&e<="z")return e.charCodeAt(0)-97+2;if(e>="A"&&e<="Z")return 90-e.charCodeAt(0)+2;throw new Error("invalid order key head: "+e)}function qie(e){const t=czn(e[0]);if(t>e.length)throw new Error("invalid order key: "+e);return e.slice(0,t)}function l_n(e,t){if(e==="A"+t[0].repeat(26))throw new Error("invalid order key: "+e);const r=qie(e);if(e.slice(r.length).slice(-1)===t[0])throw new Error("invalid order key: "+e)}function c_n(e,t){lzn(e);const[r,...a]=e.split("");let s=!0;for(let o=a.length-1;s&&o>=0;o--){const u=t.indexOf(a[o])+1;u===t.length?a[o]=t[0]:(a[o]=t[u],s=!1)}if(s){if(r==="Z")return"a"+t[0];if(r==="z")return null;const o=String.fromCharCode(r.charCodeAt(0)+1);return o>"a"?a.push(t[0]):a.pop(),o+a.join("")}else return r+a.join("")}function oxi(e,t){lzn(e);const[r,...a]=e.split("");let s=!0;for(let o=a.length-1;s&&o>=0;o--){const u=t.indexOf(a[o])-1;u===-1?a[o]=t.slice(-1):(a[o]=t[u],s=!1)}if(s){if(r==="a")return"Z"+t.slice(-1);if(r==="A")return null;const o=String.fromCharCode(r.charCodeAt(0)-1);return o<"Z"?a.push(t.slice(-1)):a.pop(),o+a.join("")}else return r+a.join("")}function HH(e,t,r=ozn){if(e!=null&&l_n(e,r),t!=null&&l_n(t,r),e!=null&&t!=null&&e>=t)throw new Error(e+" >= "+t);if(e==null){if(t==null)return"a"+r[0];const f=qie(t),p=t.slice(f.length);if(f==="A"+r[0].repeat(26))return f+NV("",p,r);if(f{if(typeof self>"u")return!1;if("top"in self&&self!==top)try{}catch{return!1}else if("showOpenFilePicker"in self)return"showOpenFilePicker";return!1})(),lxi=xpt?ea(()=>Promise.resolve().then(()=>Wea),void 0):ea(()=>Promise.resolve().then(()=>Xea),void 0);async function I5a(...e){return(await lxi).default(...e)}xpt?ea(()=>Promise.resolve().then(()=>Zea),void 0):ea(()=>Promise.resolve().then(()=>eta),void 0);const cxi=xpt?ea(()=>Promise.resolve().then(()=>nta),void 0):ea(()=>Promise.resolve().then(()=>ita),void 0);async function N5a(...e){return(await cxi).default(...e)}const iR={};let uxi=0;function hxi(e,t){const r=`atom${++uxi}`,a={toString(){return(iR?"production":void 0)!=="production"&&this.debugLabel?r+":"+this.debugLabel:r}};return typeof e=="function"?a.read=e:(a.init=e,a.read=dxi,a.write=fxi),a}function dxi(e){return e(this)}function fxi(e,t,r){return t(this,typeof r=="function"?r(e(this)):r)}const h_n=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,Dlt=e=>"init"in e,dnt=e=>!!e.write,I3e=new WeakMap,Mlt=e=>{var t;return Plt(e)&&!((t=I3e.get(e))!=null&&t[1])},pxi=(e,t)=>{const r=I3e.get(e);if(r)r[1]=!0,r[0].forEach(a=>a(t));else if((iR?"production":void 0)!=="production")throw new Error("[Bug] cancelable promise not found")},gxi=e=>{if(I3e.has(e))return;const t=[new Set,!1];I3e.set(e,t);const r=()=>{t[1]=!0};e.then(r,r),e.onCancel=a=>{t[0].add(a)}},Plt=e=>typeof(e==null?void 0:e.then)=="function",d_n=e=>"v"in e||"e"in e,gwe=e=>{if("e"in e)throw e.e;if((iR?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v},uzn=(e,t,r)=>{r.p.has(e)||(r.p.add(e),t.then(()=>{r.p.delete(e)},()=>{r.p.delete(e)}))},f_n=(e,t,r,a,s)=>{var o;if((iR?"production":void 0)!=="production"&&a===t)throw new Error("[Bug] atom cannot depend on itself");r.d.set(a,s.n),Mlt(r.v)&&uzn(t,r.v,s),(o=s.m)==null||o.t.add(t),e&&mxi(e,a,t)},Zre=()=>({D:new Map,H:new Set,M:new Set,L:new Set}),_se=(e,t,r)=>{e[t].add(r)},p_n=(e,t,r)=>{e.D.has(t)||(e.D.set(t,new Set),_se(e,"M",()=>{var a;(a=r.m)==null||a.l.forEach(s=>_se(e,"M",s))}))},mxi=(e,t,r)=>{const a=e.D.get(t);a&&a.add(r)},bxi=(e,t)=>e.D.get(t),mB=e=>{let t,r=!1;const a=s=>{try{s()}catch(o){r||(t=o,r=!0)}};for(;e.H.size||e.M.size||e.L.size;)e.D.clear(),e.H.forEach(a),e.H.clear(),e.M.forEach(a),e.M.clear(),e.L.forEach(a),e.L.clear();if(r)throw t},hzn=(...[e,t,r,a])=>{const s=(k,I,N)=>{const L="v"in I,P=I.v,M=Mlt(I.v)?I.v:null;if(Plt(N)){gxi(N);for(const F of I.d.keys())uzn(k,N,e(F));I.v=N}else I.v=N;delete I.e,delete I.x,(!L||!Object.is(P,I.v))&&(++I.n,M&&pxi(M,N))},o=(k,I)=>{var N;const L=e(I);if(d_n(L)&&(L.m&&!L.x||Array.from(L.d).every(([G,B])=>o(k,G).n===B)))return L;L.d.clear();let P=!0;const M=G=>{if(h_n(I,G)){const Z=e(G);if(!d_n(Z))if(Dlt(G))s(G,Z,G.init);else throw new Error("no atom init");return gwe(Z)}const B=o(k,G);try{return gwe(B)}finally{if(P)f_n(k,I,L,G,B);else{const Z=Zre();f_n(Z,I,L,G,B),b(Z,I,L),mB(Z)}}};let F,U;const $={get signal(){return F||(F=new AbortController),F.signal},get setSelf(){return(iR?"production":void 0)!=="production"&&!dnt(I)&&console.warn("setSelf function cannot be used with read-only atom"),!U&&dnt(I)&&(U=(...G)=>{if((iR?"production":void 0)!=="production"&&P&&console.warn("setSelf function cannot be called in sync"),!P)return m(I,...G)}),U}};try{const G=t(I,M,$);if(s(I,L,G),Plt(G)){(N=G.onCancel)==null||N.call(G,()=>F==null?void 0:F.abort());const B=()=>{if(L.m){const Z=Zre();b(Z,I,L),mB(Z)}};G.then(B,B)}return L}catch(G){return delete L.v,L.e=G,delete L.x,++L.n,L}finally{P=!1}},u=k=>gwe(o(void 0,k)),h=(k,I,N)=>{var L,P;const M=new Map;for(const F of((L=N.m)==null?void 0:L.t)||[]){const U=e(F);U.m&&M.set(F,U)}for(const F of N.p)M.set(F,e(F));return(P=bxi(k,I))==null||P.forEach(F=>{M.set(F,e(F))}),M},f=(k,I,N)=>{const L=[],P=new Set,M=new Set,F=[[I,N]];for(;F.length>0;){const[U,$]=F[F.length-1];if(M.has(U)){F.pop();continue}if(P.has(U)){L.push([U,$,$.n]),M.add(U),$.x=!0,F.pop();continue}P.add(U);for(const[G,B]of h(k,U,$))U!==G&&!P.has(G)&&F.push([G,B])}_se(k,"H",()=>{const U=new Set([I]);for(let $=L.length-1;$>=0;--$){const[G,B,Z]=L[$];let z=!1;for(const Y of B.d.keys())if(Y!==G&&U.has(Y)){z=!0;break}z&&(o(k,G),b(k,G,B),Z!==B.n&&(p_n(k,G,B),U.add(G))),delete B.x}})},p=(k,I,...N)=>{let L=!0;const P=F=>gwe(o(k,F)),M=(F,...U)=>{const $=e(F);try{if(h_n(I,F)){if(!Dlt(F))throw new Error("atom not writable");const G=$.n,B=U[0];s(F,$,B),b(k,F,$),G!==$.n&&(p_n(k,F,$),f(k,F,$));return}else return p(k,F,...U)}finally{L||mB(k)}};try{return r(I,P,M,...N)}finally{L=!1}},m=(k,...I)=>{const N=Zre();try{return p(N,k,...I)}finally{mB(N)}},b=(k,I,N)=>{if(N.m&&!Mlt(N.v)){for(const L of N.d.keys())N.m.d.has(L)||(_(k,L,e(L)).t.add(I),N.m.d.add(L));for(const L of N.m.d||[])if(!N.d.has(L)){N.m.d.delete(L);const P=w(k,L,e(L));P==null||P.t.delete(I)}}},_=(k,I,N)=>{if(!N.m){o(k,I);for(const L of N.d.keys())_(k,L,e(L)).t.add(I);if(N.m={l:new Set,d:new Set(N.d.keys()),t:new Set},dnt(I)){const L=N.m;let P;const M=(F,U)=>{let $=!0;P=(...G)=>{try{return p(F,I,...G)}finally{$||mB(F)}};try{return U()}finally{$=!1}};_se(k,"L",()=>{const F=M(k,()=>a(I,(...U)=>P(...U)));F&&(L.u=U=>M(U,F))})}}return N.m},w=(k,I,N)=>{if(N.m&&!N.m.l.size&&!Array.from(N.m.t).some(L=>{var P;return(P=e(L).m)==null?void 0:P.d.has(I)})){const L=N.m.u;L&&_se(k,"L",()=>L(k)),delete N.m;for(const P of N.d.keys()){const M=w(k,P,e(P));M==null||M.t.delete(I)}return}return N.m};return{get:u,set:m,sub:(k,I)=>{const N=Zre(),L=e(k),M=_(N,k,L).l;return M.add(I),mB(N),()=>{M.delete(I);const F=Zre();w(F,k,L),mB(F)}},unstable_derive:k=>hzn(...k(e,t,r,a))}},yxi=e=>{const t=new WeakMap,r=new Set;let a,s=0;const o=e.unstable_derive((f,p,m,b)=>(a=f,[_=>{let w=t.get(_);if(!w){const S=f(_);w=new Proxy(S,{set(C,A,k){return A==="m"&&r.add(_),Reflect.set(C,A,k)},deleteProperty(C,A){return A==="m"&&r.delete(_),Reflect.deleteProperty(C,A)}}),t.set(_,w)}return w},p,(_,w,S,...C)=>s?S(_,...C):m(_,w,S,...C),b])),u=o.set;return Object.assign(o,{dev4_get_internal_weak_map:()=>({get:f=>{const p=a(f);if(p.n!==0)return p}}),dev4_get_mounted_atoms:()=>r,dev4_restore_atoms:f=>{u({read:()=>null,write:(m,b)=>{++s;try{for(const[_,w]of f)Dlt(_)&&b(_,w)}finally{--s}}})}})},dzn=()=>{const e=new WeakMap,r=hzn(a=>{if((iR?"production":void 0)!=="production"&&!a)throw new Error("Atom is undefined or null");let s=e.get(a);return s||(s={d:new Map,p:new Set,n:0},e.set(a,s)),s},(a,...s)=>a.read(...s),(a,...s)=>a.write(...s),(a,...s)=>{var o;return(o=a.onMount)==null?void 0:o.call(a,...s)});return(iR?"production":void 0)!=="production"?yxi(r):r};let Jre;const vxi=()=>(Jre||(Jre=dzn(),(iR?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Jre),globalThis.__JOTAI_DEFAULT_STORE__!==Jre&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),Jre),fzn={},_xi=ue.createContext(void 0),zAe=e=>{const t=ue.useContext(_xi);return(e==null?void 0:e.store)||t||vxi()},Blt=e=>typeof(e==null?void 0:e.then)=="function",pzn=e=>{e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t})},wxi=Er.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(pzn(e),e)}),fnt=new WeakMap,g_n=e=>{let t=fnt.get(e);return t||(t=new Promise((r,a)=>{let s=e;const o=f=>p=>{s===f&&r(p)},u=f=>p=>{s===f&&a(p)},h=f=>{"onCancel"in f&&typeof f.onCancel=="function"&&f.onCancel(p=>{if((fzn?"production":void 0)!=="production"&&p===f)throw new Error("[Bug] p is not updated even after cancelation");Blt(p)?(fnt.set(p,t),s=p,p.then(o(p),u(p)),h(p)):r(p)})};e.then(o(e),u(e)),h(e)}),fnt.set(e,t)),t};function gzn(e,t){const r=zAe(t),[[a,s,o],u]=ue.useReducer(p=>{const m=r.get(e);return Object.is(p[0],m)&&p[1]===r&&p[2]===e?p:[m,r,e]},void 0,()=>[r.get(e),r,e]);let h=a;(s!==r||o!==e)&&(u(),h=r.get(e));const f=t==null?void 0:t.delay;if(ue.useEffect(()=>{const p=r.sub(e,()=>{if(typeof f=="number"){const m=r.get(e);Blt(m)&&pzn(g_n(m)),setTimeout(u,f);return}u()});return u(),p},[r,e,f]),ue.useDebugValue(h),Blt(h)){const p=g_n(h);return wxi(p)}return h}function mzn(e,t){const r=zAe(t);return ue.useCallback((...s)=>{if((fzn?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return r.set(e,...s)},[r,e])}function Exi(e,t){return[gzn(e,t),mzn(e,t)]}const m_n=new WeakMap;function xxi(e,t){const r=zAe(t),a=Sxi(r);for(const[s,o]of e)(!a.has(s)||t!=null&&t.dangerouslyForceHydrate)&&(a.add(s),r.set(s,o))}const Sxi=e=>{let t=m_n.get(e);return t||(t=new WeakSet,m_n.set(e,t)),t};function OV(){return OV=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const h=ue.useContext(e);if(!h)throw new Error("Missing Provider from createIsolation");return zAe(OV({store:h},u))};return{Provider:t,useStore:r,useAtom:(u,h)=>{const f=r();return Exi(u,OV({store:f},h))},useAtomValue:(u,h)=>{const f=r();return gzn(u,OV({store:f},h))},useSetAtom:(u,h)=>{const f=r();return mzn(u,OV({store:f},h))}}}const{read:L5a,write:D5a}=hxi(null);ue.createContext({scope:void 0,baseStore:void 0});function NO(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function b_n(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function bzn(...e){return t=>{let r=!1;const a=e.map(s=>{const o=b_n(s,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let s=0;s{var k;const{scope:_,children:w,...S}=b,C=((k=_==null?void 0:_[e])==null?void 0:k[f])||h,A=ue.useMemo(()=>S,Object.values(S));return ct.jsx(C.Provider,{value:A,children:w})};p.displayName=o+"Provider";function m(b,_){var C;const w=((C=_==null?void 0:_[e])==null?void 0:C[f])||h,S=ue.useContext(w);if(S)return S;if(u!==void 0)return u;throw new Error(`\`${b}\` must be used within \`${o}\``)}return[p,m]}const s=()=>{const o=r.map(u=>ue.createContext(u));return function(h){const f=(h==null?void 0:h[e])||o;return ue.useMemo(()=>({[`__scope${e}`]:{...h,[e]:f}}),[h,f])}};return s.scopeName=e,[a,Txi(s,...t)]}function Txi(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const a=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const u=a.reduce((h,{useScope:f,scopeName:p})=>{const b=f(o)[`__scope${p}`];return{...h,...b}},{});return ue.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return r.scopeName=t.scopeName,r}var Spt=ue.forwardRef((e,t)=>{const{children:r,...a}=e,s=ue.Children.toArray(r),o=s.find(Axi);if(o){const u=o.props.children,h=s.map(f=>f===o?ue.Children.count(u)>1?ue.Children.only(null):ue.isValidElement(u)?u.props.children:null:f);return ct.jsx(Flt,{...a,ref:t,children:ue.isValidElement(u)?ue.cloneElement(u,void 0,h):null})}return ct.jsx(Flt,{...a,ref:t,children:r})});Spt.displayName="Slot";var Flt=ue.forwardRef((e,t)=>{const{children:r,...a}=e;if(ue.isValidElement(r)){const s=Rxi(r),o=kxi(a,r.props);return r.type!==ue.Fragment&&(o.ref=t?bzn(t,s):s),ue.cloneElement(r,o)}return ue.Children.count(r)>1?ue.Children.only(null):null});Flt.displayName="SlotClone";var Cxi=({children:e})=>ct.jsx(ct.Fragment,{children:e});function Axi(e){return ue.isValidElement(e)&&e.type===Cxi}function kxi(e,t){const r={...t};for(const a in t){const s=e[a],o=t[a];/^on[A-Z]/.test(a)?s&&o?r[a]=(...h)=>{o(...h),s(...h)}:s&&(r[a]=s):a==="style"?r[a]={...s,...o}:a==="className"&&(r[a]=[s,o].filter(Boolean).join(" "))}return{...e,...r}}function Rxi(e){var a,s;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ixi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],wR=Ixi.reduce((e,t)=>{const r=ue.forwardRef((a,s)=>{const{asChild:o,...u}=a,h=o?Spt:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ct.jsx(h,{...u,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Nxi(e,t){e&&w9.flushSync(()=>e.dispatchEvent(t))}function e9(e){const t=ue.useRef(e);return ue.useEffect(()=>{t.current=e}),ue.useMemo(()=>(...r)=>{var a;return(a=t.current)==null?void 0:a.call(t,...r)},[])}function Oxi(e,t=globalThis==null?void 0:globalThis.document){const r=e9(e);ue.useEffect(()=>{const a=s=>{s.key==="Escape"&&r(s)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[r,t])}var Lxi="DismissableLayer",$lt="dismissableLayer.update",Dxi="dismissableLayer.pointerDownOutside",Mxi="dismissableLayer.focusOutside",y_n,vzn=ue.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_zn=ue.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:u,onDismiss:h,...f}=e,p=ue.useContext(vzn),[m,b]=ue.useState(null),_=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=ue.useState({}),S=z9(t,F=>b(F)),C=Array.from(p.layers),[A]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),k=C.indexOf(A),I=m?C.indexOf(m):-1,N=p.layersWithOutsidePointerEventsDisabled.size>0,L=I>=k,P=Fxi(F=>{const U=F.target,$=[...p.branches].some(G=>G.contains(U));!L||$||(s==null||s(F),u==null||u(F),F.defaultPrevented||h==null||h())},_),M=$xi(F=>{const U=F.target;[...p.branches].some(G=>G.contains(U))||(o==null||o(F),u==null||u(F),F.defaultPrevented||h==null||h())},_);return Oxi(F=>{I===p.layers.size-1&&(a==null||a(F),!F.defaultPrevented&&h&&(F.preventDefault(),h()))},_),ue.useEffect(()=>{if(m)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(y_n=_.body.style.pointerEvents,_.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),v_n(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(_.body.style.pointerEvents=y_n)}},[m,_,r,p]),ue.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),v_n())},[m,p]),ue.useEffect(()=>{const F=()=>w({});return document.addEventListener($lt,F),()=>document.removeEventListener($lt,F)},[]),ct.jsx(wR.div,{...f,ref:S,style:{pointerEvents:N?L?"auto":"none":void 0,...e.style},onFocusCapture:NO(e.onFocusCapture,M.onFocusCapture),onBlurCapture:NO(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:NO(e.onPointerDownCapture,P.onPointerDownCapture)})});_zn.displayName=Lxi;var Pxi="DismissableLayerBranch",Bxi=ue.forwardRef((e,t)=>{const r=ue.useContext(vzn),a=ue.useRef(null),s=z9(t,a);return ue.useEffect(()=>{const o=a.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),ct.jsx(wR.div,{...e,ref:s})});Bxi.displayName=Pxi;function Fxi(e,t=globalThis==null?void 0:globalThis.document){const r=e9(e),a=ue.useRef(!1),s=ue.useRef(()=>{});return ue.useEffect(()=>{const o=h=>{if(h.target&&!a.current){let f=function(){wzn(Dxi,r,p,{discrete:!0})};const p={originalEvent:h};h.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=f,t.addEventListener("click",s.current,{once:!0})):f()}else t.removeEventListener("click",s.current);a.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",o),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>a.current=!0}}function $xi(e,t=globalThis==null?void 0:globalThis.document){const r=e9(e),a=ue.useRef(!1);return ue.useEffect(()=>{const s=o=>{o.target&&!a.current&&wzn(Mxi,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function v_n(){const e=new CustomEvent($lt);document.dispatchEvent(e)}function wzn(e,t,r,{discrete:a}){const s=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),a?Nxi(s,o):s.dispatchEvent(o)}var pnt=0;function Uxi(){ue.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??__n()),document.body.insertAdjacentElement("beforeend",e[1]??__n()),pnt++,()=>{pnt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),pnt--}},[])}function __n(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var gnt="focusScope.autoFocusOnMount",mnt="focusScope.autoFocusOnUnmount",w_n={bubbles:!1,cancelable:!0},zxi="FocusScope",Ezn=ue.forwardRef((e,t)=>{const{loop:r=!1,trapped:a=!1,onMountAutoFocus:s,onUnmountAutoFocus:o,...u}=e,[h,f]=ue.useState(null),p=e9(s),m=e9(o),b=ue.useRef(null),_=z9(t,C=>f(C)),w=ue.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;ue.useEffect(()=>{if(a){let C=function(N){if(w.paused||!h)return;const L=N.target;h.contains(L)?b.current=L:jN(b.current,{select:!0})},A=function(N){if(w.paused||!h)return;const L=N.relatedTarget;L!==null&&(h.contains(L)||jN(b.current,{select:!0}))},k=function(N){if(document.activeElement===document.body)for(const P of N)P.removedNodes.length>0&&jN(h)};document.addEventListener("focusin",C),document.addEventListener("focusout",A);const I=new MutationObserver(k);return h&&I.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",A),I.disconnect()}}},[a,h,w.paused]),ue.useEffect(()=>{if(h){x_n.add(w);const C=document.activeElement;if(!h.contains(C)){const k=new CustomEvent(gnt,w_n);h.addEventListener(gnt,p),h.dispatchEvent(k),k.defaultPrevented||(Gxi(jxi(xzn(h)),{select:!0}),document.activeElement===C&&jN(h))}return()=>{h.removeEventListener(gnt,p),setTimeout(()=>{const k=new CustomEvent(mnt,w_n);h.addEventListener(mnt,m),h.dispatchEvent(k),k.defaultPrevented||jN(C??document.body,{select:!0}),h.removeEventListener(mnt,m),x_n.remove(w)},0)}}},[h,p,m,w]);const S=ue.useCallback(C=>{if(!r&&!a||w.paused)return;const A=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,k=document.activeElement;if(A&&k){const I=C.currentTarget,[N,L]=qxi(I);N&&L?!C.shiftKey&&k===L?(C.preventDefault(),r&&jN(N,{select:!0})):C.shiftKey&&k===N&&(C.preventDefault(),r&&jN(L,{select:!0})):k===I&&C.preventDefault()}},[r,a,w.paused]);return ct.jsx(wR.div,{tabIndex:-1,...u,ref:_,onKeyDown:S})});Ezn.displayName=zxi;function Gxi(e,{select:t=!1}={}){const r=document.activeElement;for(const a of e)if(jN(a,{select:t}),document.activeElement!==r)return}function qxi(e){const t=xzn(e),r=E_n(t,e),a=E_n(t.reverse(),e);return[r,a]}function xzn(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function E_n(e,t){for(const r of e)if(!Hxi(r,{upTo:t}))return r}function Hxi(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Vxi(e){return e instanceof HTMLInputElement&&"select"in e}function jN(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Vxi(e)&&t&&e.select()}}var x_n=Yxi();function Yxi(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=S_n(e,t),e.unshift(t)},remove(t){var r;e=S_n(e,t),(r=e[0])==null||r.resume()}}}function S_n(e,t){const r=[...e],a=r.indexOf(t);return a!==-1&&r.splice(a,1),r}function jxi(e){return e.filter(t=>t.tagName!=="A")}var jF=globalThis!=null&&globalThis.document?ue.useLayoutEffect:()=>{},Wxi=g$.useId||(()=>{}),Kxi=0;function Xxi(e){const[t,r]=ue.useState(Wxi());return jF(()=>{r(a=>a??String(Kxi++))},[e]),e||(t?`radix-${t}`:"")}var Qxi="Arrow",Szn=ue.forwardRef((e,t)=>{const{children:r,width:a=10,height:s=5,...o}=e;return ct.jsx(wR.svg,{...o,ref:t,width:a,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:ct.jsx("polygon",{points:"0,0 30,0 15,10"})})});Szn.displayName=Qxi;var Zxi=Szn;function Jxi(e){const[t,r]=ue.useState(void 0);return jF(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let u,h;if("borderBoxSize"in o){const f=o.borderBoxSize,p=Array.isArray(f)?f[0]:f;u=p.inlineSize,h=p.blockSize}else u=e.offsetWidth,h=e.offsetHeight;r({width:u,height:h})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else r(void 0)},[e]),t}var Tpt="Popper",[Tzn,Czn]=yzn(Tpt),[eSi,Azn]=Tzn(Tpt),kzn=e=>{const{__scopePopper:t,children:r}=e,[a,s]=ue.useState(null);return ct.jsx(eSi,{scope:t,anchor:a,onAnchorChange:s,children:r})};kzn.displayName=Tpt;var Rzn="PopperAnchor",Izn=ue.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:a,...s}=e,o=Azn(Rzn,r),u=ue.useRef(null),h=z9(t,u);return ue.useEffect(()=>{o.onAnchorChange((a==null?void 0:a.current)||u.current)}),a?null:ct.jsx(wR.div,{...s,ref:h})});Izn.displayName=Rzn;var Cpt="PopperContent",[tSi,nSi]=Tzn(Cpt),Nzn=ue.forwardRef((e,t)=>{var ve,De,ye,Ee,he,we;const{__scopePopper:r,side:a="bottom",sideOffset:s=0,align:o="center",alignOffset:u=0,arrowPadding:h=0,avoidCollisions:f=!0,collisionBoundary:p=[],collisionPadding:m=0,sticky:b="partial",hideWhenDetached:_=!1,updatePositionStrategy:w="optimized",onPlaced:S,...C}=e,A=Azn(Cpt,r),[k,I]=ue.useState(null),N=z9(t,Ce=>I(Ce)),[L,P]=ue.useState(null),M=Jxi(L),F=(M==null?void 0:M.width)??0,U=(M==null?void 0:M.height)??0,$=a+(o!=="center"?"-"+o:""),G=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},B=Array.isArray(p)?p:[p],Z=B.length>0,z={padding:G,boundary:B.filter(iSi),altBoundary:Z},{refs:Y,floatingStyles:W,placement:Q,isPositioned:V,middlewareData:j}=Zdt({strategy:"fixed",placement:$,whileElementsMounted:(...Ce)=>U6n(...Ce,{animationFrame:w==="always"}),elements:{reference:A.anchor},middleware:[G6n({mainAxis:s+U,alignmentAxis:u}),f&&q6n({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?H6n():void 0,...z}),f&&V6n({...z}),Y6n({...z,apply:({elements:Ce,rects:Ie,availableWidth:Le,availableHeight:Fe})=>{const{width:Ve,height:Oe}=Ie.reference,Dt=Ce.floating.style;Dt.setProperty("--radix-popper-available-width",`${Le}px`),Dt.setProperty("--radix-popper-available-height",`${Fe}px`),Dt.setProperty("--radix-popper-anchor-width",`${Ve}px`),Dt.setProperty("--radix-popper-anchor-height",`${Oe}px`)}}),L&&W6n({element:L,padding:h}),aSi({arrowWidth:F,arrowHeight:U}),_&&j6n({strategy:"referenceHidden",...z})]}),[ee,te]=Dzn(Q),ne=e9(S);jF(()=>{V&&(ne==null||ne())},[V,ne]);const se=(ve=j.arrow)==null?void 0:ve.x,ie=(De=j.arrow)==null?void 0:De.y,ge=((ye=j.arrow)==null?void 0:ye.centerOffset)!==0,[ce,be]=ue.useState();return jF(()=>{k&&be(window.getComputedStyle(k).zIndex)},[k]),ct.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:V?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ce,"--radix-popper-transform-origin":[(Ee=j.transformOrigin)==null?void 0:Ee.x,(he=j.transformOrigin)==null?void 0:he.y].join(" "),...((we=j.hide)==null?void 0:we.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:ct.jsx(tSi,{scope:r,placedSide:ee,onArrowChange:P,arrowX:se,arrowY:ie,shouldHideArrow:ge,children:ct.jsx(wR.div,{"data-side":ee,"data-align":te,...C,ref:N,style:{...C.style,animation:V?void 0:"none"}})})})});Nzn.displayName=Cpt;var Ozn="PopperArrow",rSi={top:"bottom",right:"left",bottom:"top",left:"right"},Lzn=ue.forwardRef(function(t,r){const{__scopePopper:a,...s}=t,o=nSi(Ozn,a),u=rSi[o.placedSide];return ct.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:ct.jsx(Zxi,{...s,ref:r,style:{...s.style,display:"block"}})})});Lzn.displayName=Ozn;function iSi(e){return e!==null}var aSi=e=>({name:"transformOrigin",options:e,fn(t){var A,k,I;const{placement:r,rects:a,middlewareData:s}=t,u=((A=s.arrow)==null?void 0:A.centerOffset)!==0,h=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,m]=Dzn(r),b={start:"0%",center:"50%",end:"100%"}[m],_=(((k=s.arrow)==null?void 0:k.x)??0)+h/2,w=(((I=s.arrow)==null?void 0:I.y)??0)+f/2;let S="",C="";return p==="bottom"?(S=u?b:`${_}px`,C=`${-f}px`):p==="top"?(S=u?b:`${_}px`,C=`${a.floating.height+f}px`):p==="right"?(S=`${-f}px`,C=u?b:`${w}px`):p==="left"&&(S=`${a.floating.width+f}px`,C=u?b:`${w}px`),{data:{x:S,y:C}}}});function Dzn(e){const[t,r="center"]=e.split("-");return[t,r]}var sSi=kzn,Mzn=Izn,oSi=Nzn,lSi=Lzn,cSi="Portal",Pzn=ue.forwardRef((e,t)=>{var h;const{container:r,...a}=e,[s,o]=ue.useState(!1);jF(()=>o(!0),[]);const u=r||s&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return u?odt.createPortal(ct.jsx(wR.div,{...a,ref:t}),u):null});Pzn.displayName=cSi;function uSi(e,t){return ue.useReducer((r,a)=>t[r][a]??r,e)}var Apt=e=>{const{present:t,children:r}=e,a=hSi(t),s=typeof r=="function"?r({present:a.isPresent}):ue.Children.only(r),o=z9(a.ref,dSi(s));return typeof r=="function"||a.isPresent?ue.cloneElement(s,{ref:o}):null};Apt.displayName="Presence";function hSi(e){const[t,r]=ue.useState(),a=ue.useRef({}),s=ue.useRef(e),o=ue.useRef("none"),u=e?"mounted":"unmounted",[h,f]=uSi(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return ue.useEffect(()=>{const p=mwe(a.current);o.current=h==="mounted"?p:"none"},[h]),jF(()=>{const p=a.current,m=s.current;if(m!==e){const _=o.current,w=mwe(p);e?f("MOUNT"):w==="none"||(p==null?void 0:p.display)==="none"?f("UNMOUNT"):f(m&&_!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,f]),jF(()=>{if(t){let p;const m=t.ownerDocument.defaultView??window,b=w=>{const C=mwe(a.current).includes(w.animationName);if(w.target===t&&C&&(f("ANIMATION_END"),!s.current)){const A=t.style.animationFillMode;t.style.animationFillMode="forwards",p=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=A)})}},_=w=>{w.target===t&&(o.current=mwe(a.current))};return t.addEventListener("animationstart",_),t.addEventListener("animationcancel",b),t.addEventListener("animationend",b),()=>{m.clearTimeout(p),t.removeEventListener("animationstart",_),t.removeEventListener("animationcancel",b),t.removeEventListener("animationend",b)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:ue.useCallback(p=>{p&&(a.current=getComputedStyle(p)),r(p)},[])}}function mwe(e){return(e==null?void 0:e.animationName)||"none"}function dSi(e){var a,s;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function fSi({prop:e,defaultProp:t,onChange:r=()=>{}}){const[a,s]=pSi({defaultProp:t,onChange:r}),o=e!==void 0,u=o?e:a,h=e9(r),f=ue.useCallback(p=>{if(o){const b=typeof p=="function"?p(e):p;b!==e&&h(b)}else s(p)},[o,e,s,h]);return[u,f]}function pSi({defaultProp:e,onChange:t}){const r=ue.useState(e),[a]=r,s=ue.useRef(a),o=e9(t);return ue.useEffect(()=>{s.current!==a&&(o(a),s.current=a)},[a,s,o]),r}var kpt="Popover",[Bzn]=yzn(kpt,[Czn]),mce=Czn(),[gSi,G9]=Bzn(kpt),Fzn=e=>{const{__scopePopover:t,children:r,open:a,defaultOpen:s,onOpenChange:o,modal:u=!1}=e,h=mce(t),f=ue.useRef(null),[p,m]=ue.useState(!1),[b=!1,_]=fSi({prop:a,defaultProp:s,onChange:o});return ct.jsx(sSi,{...h,children:ct.jsx(gSi,{scope:t,contentId:Xxi(),triggerRef:f,open:b,onOpenChange:_,onOpenToggle:ue.useCallback(()=>_(w=>!w),[_]),hasCustomAnchor:p,onCustomAnchorAdd:ue.useCallback(()=>m(!0),[]),onCustomAnchorRemove:ue.useCallback(()=>m(!1),[]),modal:u,children:r})})};Fzn.displayName=kpt;var $zn="PopoverAnchor",mSi=ue.forwardRef((e,t)=>{const{__scopePopover:r,...a}=e,s=G9($zn,r),o=mce(r),{onCustomAnchorAdd:u,onCustomAnchorRemove:h}=s;return ue.useEffect(()=>(u(),()=>h()),[u,h]),ct.jsx(Mzn,{...o,...a,ref:t})});mSi.displayName=$zn;var Uzn="PopoverTrigger",zzn=ue.forwardRef((e,t)=>{const{__scopePopover:r,...a}=e,s=G9(Uzn,r),o=mce(r),u=z9(t,s.triggerRef),h=ct.jsx(wR.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":jzn(s.open),...a,ref:u,onClick:NO(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?h:ct.jsx(Mzn,{asChild:!0,...o,children:h})});zzn.displayName=Uzn;var Rpt="PopoverPortal",[bSi,ySi]=Bzn(Rpt,{forceMount:void 0}),Gzn=e=>{const{__scopePopover:t,forceMount:r,children:a,container:s}=e,o=G9(Rpt,t);return ct.jsx(bSi,{scope:t,forceMount:r,children:ct.jsx(Apt,{present:r||o.open,children:ct.jsx(Pzn,{asChild:!0,container:s,children:a})})})};Gzn.displayName=Rpt;var Fj="PopoverContent",qzn=ue.forwardRef((e,t)=>{const r=ySi(Fj,e.__scopePopover),{forceMount:a=r.forceMount,...s}=e,o=G9(Fj,e.__scopePopover);return ct.jsx(Apt,{present:a||o.open,children:o.modal?ct.jsx(vSi,{...s,ref:t}):ct.jsx(_Si,{...s,ref:t})})});qzn.displayName=Fj;var vSi=ue.forwardRef((e,t)=>{const r=G9(Fj,e.__scopePopover),a=ue.useRef(null),s=z9(t,a),o=ue.useRef(!1);return ue.useEffect(()=>{const u=a.current;if(u)return Vle(u)},[]),ct.jsx(kW,{as:Spt,allowPinchZoom:!0,children:ct.jsx(Hzn,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:NO(e.onCloseAutoFocus,u=>{var h;u.preventDefault(),o.current||(h=r.triggerRef.current)==null||h.focus()}),onPointerDownOutside:NO(e.onPointerDownOutside,u=>{const h=u.detail.originalEvent,f=h.button===0&&h.ctrlKey===!0,p=h.button===2||f;o.current=p},{checkForDefaultPrevented:!1}),onFocusOutside:NO(e.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1})})})}),_Si=ue.forwardRef((e,t)=>{const r=G9(Fj,e.__scopePopover),a=ue.useRef(!1),s=ue.useRef(!1);return ct.jsx(Hzn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var u,h;(u=e.onCloseAutoFocus)==null||u.call(e,o),o.defaultPrevented||(a.current||(h=r.triggerRef.current)==null||h.focus(),o.preventDefault()),a.current=!1,s.current=!1},onInteractOutside:o=>{var f,p;(f=e.onInteractOutside)==null||f.call(e,o),o.defaultPrevented||(a.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const u=o.target;((p=r.triggerRef.current)==null?void 0:p.contains(u))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),Hzn=ue.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:o,disableOutsidePointerEvents:u,onEscapeKeyDown:h,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,...b}=e,_=G9(Fj,r),w=mce(r);return Uxi(),ct.jsx(Ezn,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:s,onUnmountAutoFocus:o,children:ct.jsx(_zn,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:m,onEscapeKeyDown:h,onPointerDownOutside:f,onFocusOutside:p,onDismiss:()=>_.onOpenChange(!1),children:ct.jsx(oSi,{"data-state":jzn(_.open),role:"dialog",id:_.contentId,...w,...b,ref:t,style:{...b.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Vzn="PopoverClose",wSi=ue.forwardRef((e,t)=>{const{__scopePopover:r,...a}=e,s=G9(Vzn,r);return ct.jsx(wR.button,{type:"button",...a,ref:t,onClick:NO(e.onClick,()=>s.onOpenChange(!1))})});wSi.displayName=Vzn;var ESi="PopoverArrow",Yzn=ue.forwardRef((e,t)=>{const{__scopePopover:r,...a}=e,s=mce(r);return ct.jsx(lSi,{...s,...a,ref:t})});Yzn.displayName=ESi;function jzn(e){return e?"open":"closed"}var M5a=Fzn,P5a=zzn,B5a=Gzn,F5a=qzn,$5a=Yzn,Wzn={exports:{}};(function(e,t){(function(){var r={};e.exports=r,r.simpleFilter=function(a,s){return s.filter(function(o){return r.test(a,o)})},r.test=function(a,s){return r.match(a,s)!==null},r.match=function(a,s,o){o=o||{};var u=0,h=[],f=s.length,p=0,m=0,b=o.pre||"",_=o.post||"",w=o.caseSensitive&&s||s.toLowerCase(),S;a=o.caseSensitive&&a||a.toLowerCase();for(var C=0;C{let t;const r=new Set,a=(m,b)=>{const _=typeof m=="function"?m(t):m;if(!Object.is(_,t)){const w=t;t=b??(typeof _!="object"||_===null)?_:Object.assign({},t,_),r.forEach(S=>S(t,w))}},s=()=>t,f={setState:a,getState:s,getInitialState:()=>p,subscribe:m=>(r.add(m),()=>r.delete(m)),destroy:()=>{(SSi?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},p=t=e(a,s,f);return f},TSi=e=>e?T_n(e):T_n,Kzn={},{useDebugValue:CSi}=Er,{useSyncExternalStoreWithSelector:ASi}=BFr;let C_n=!1;const kSi=e=>e;function RSi(e,t=kSi,r){(Kzn?"production":void 0)!=="production"&&r&&!C_n&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),C_n=!0);const a=ASi(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return CSi(a),a}const A_n=e=>{(Kzn?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?TSi(e):e,r=(a,s)=>RSi(t,a,s);return Object.assign(r,t),r},ISi=e=>e?A_n(e):A_n;var k_n,R_n;const I_n=typeof window<"u"&&((k_n=window.document)!=null&&k_n.createElement||((R_n=window.navigator)==null?void 0:R_n.product)==="ReactNative")?Er.useLayoutEffect:Er.useEffect;function z5a(){const e=ISi(t=>({current:new Array,version:0,set:t}));return{In:({children:t})=>{const r=e(s=>s.set),a=e(s=>s.version);return I_n(()=>{r(s=>({version:s.version+1}))},[]),I_n(()=>(r(({current:s})=>({current:[...s,t]})),()=>r(({current:s})=>({current:s.filter(o=>o!==t)}))),[t,a]),null},Out:()=>{const t=e(r=>r.current);return Er.createElement(Er.Fragment,null,t)}}}function z7(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Ipt(e,t=[]){let r=[];function a(o,u){const h=ue.createContext(u),f=r.length;r=[...r,u];function p(b){const{scope:_,children:w,...S}=b,C=(_==null?void 0:_[e][f])||h,A=ue.useMemo(()=>S,Object.values(S));return ue.createElement(C.Provider,{value:A},w)}function m(b,_){const w=(_==null?void 0:_[e][f])||h,S=ue.useContext(w);if(S)return S;if(u!==void 0)return u;throw new Error(`\`${b}\` must be used within \`${o}\``)}return p.displayName=o+"Provider",[p,m]}const s=()=>{const o=r.map(u=>ue.createContext(u));return function(h){const f=(h==null?void 0:h[e])||o;return ue.useMemo(()=>({[`__scope${e}`]:{...h,[e]:f}}),[h,f])}};return s.scopeName=e,[a,NSi(s,...t)]}function NSi(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const a=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const u=a.reduce((h,{useScope:f,scopeName:p})=>{const b=f(o)[`__scope${p}`];return{...h,...b}},{});return ue.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return r.scopeName=t.scopeName,r}function OSi(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Xzn(...e){return t=>e.forEach(r=>OSi(r,t))}function N3e(...e){return ue.useCallback(Xzn(...e),e)}const O3e=ue.forwardRef((e,t)=>{const{children:r,...a}=e,s=ue.Children.toArray(r),o=s.find(DSi);if(o){const u=o.props.children,h=s.map(f=>f===o?ue.Children.count(u)>1?ue.Children.only(null):ue.isValidElement(u)?u.props.children:null:f);return ue.createElement(Ult,n_({},a,{ref:t}),ue.isValidElement(u)?ue.cloneElement(u,void 0,h):null)}return ue.createElement(Ult,n_({},a,{ref:t}),r)});O3e.displayName="Slot";const Ult=ue.forwardRef((e,t)=>{const{children:r,...a}=e;return ue.isValidElement(r)?ue.cloneElement(r,{...MSi(a,r.props),ref:Xzn(t,r.ref)}):ue.Children.count(r)>1?ue.Children.only(null):null});Ult.displayName="SlotClone";const LSi=({children:e})=>ue.createElement(ue.Fragment,null,e);function DSi(e){return ue.isValidElement(e)&&e.type===LSi}function MSi(e,t){const r={...t};for(const a in t){const s=e[a],o=t[a];/^on[A-Z]/.test(a)?s&&o?r[a]=(...h)=>{o(...h),s(...h)}:s&&(r[a]=s):a==="style"?r[a]={...s,...o}:a==="className"&&(r[a]=[s,o].filter(Boolean).join(" "))}return{...e,...r}}function PSi(e){const t=e+"CollectionProvider",[r,a]=Ipt(t),[s,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),u=w=>{const{scope:S,children:C}=w,A=Er.useRef(null),k=Er.useRef(new Map).current;return Er.createElement(s,{scope:S,itemMap:k,collectionRef:A},C)},h=e+"CollectionSlot",f=Er.forwardRef((w,S)=>{const{scope:C,children:A}=w,k=o(h,C),I=N3e(S,k.collectionRef);return Er.createElement(O3e,{ref:I},A)}),p=e+"CollectionItemSlot",m="data-radix-collection-item",b=Er.forwardRef((w,S)=>{const{scope:C,children:A,...k}=w,I=Er.useRef(null),N=N3e(S,I),L=o(p,C);return Er.useEffect(()=>(L.itemMap.set(I,{ref:I,...k}),()=>void L.itemMap.delete(I))),Er.createElement(O3e,{[m]:"",ref:N},A)});function _(w){const S=o(e+"CollectionConsumer",w);return Er.useCallback(()=>{const A=S.collectionRef.current;if(!A)return[];const k=Array.from(A.querySelectorAll(`[${m}]`));return Array.from(S.itemMap.values()).sort((L,P)=>k.indexOf(L.ref.current)-k.indexOf(P.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:u,Slot:f,ItemSlot:b},_,a]}const zlt=globalThis!=null&&globalThis.document?ue.useLayoutEffect:()=>{},BSi=g$.useId||(()=>{});let FSi=0;function Qzn(e){const[t,r]=ue.useState(BSi());return zlt(()=>{r(a=>a??String(FSi++))},[e]),e||(t?`radix-${t}`:"")}const $Si=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"],GW=$Si.reduce((e,t)=>{const r=ue.forwardRef((a,s)=>{const{asChild:o,...u}=a,h=o?O3e:t;return ue.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),ue.createElement(h,n_({},u,{ref:s}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Npt(e){const t=ue.useRef(e);return ue.useEffect(()=>{t.current=e}),ue.useMemo(()=>(...r)=>{var a;return(a=t.current)===null||a===void 0?void 0:a.call(t,...r)},[])}function Zzn({prop:e,defaultProp:t,onChange:r=()=>{}}){const[a,s]=USi({defaultProp:t,onChange:r}),o=e!==void 0,u=o?e:a,h=Npt(r),f=ue.useCallback(p=>{if(o){const b=typeof p=="function"?p(e):p;b!==e&&h(b)}else s(p)},[o,e,s,h]);return[u,f]}function USi({defaultProp:e,onChange:t}){const r=ue.useState(e),[a]=r,s=ue.useRef(a),o=Npt(t);return ue.useEffect(()=>{s.current!==a&&(o(a),s.current=a)},[a,s,o]),r}const zSi=ue.createContext(void 0);function Jzn(e){const t=ue.useContext(zSi);return e||t||"ltr"}const bnt="rovingFocusGroup.onEntryFocus",GSi={bubbles:!1,cancelable:!0},Opt="RovingFocusGroup",[Glt,eGn,qSi]=PSi(Opt),[HSi,tGn]=Ipt(Opt,[qSi]),[VSi,YSi]=HSi(Opt),jSi=ue.forwardRef((e,t)=>ue.createElement(Glt.Provider,{scope:e.__scopeRovingFocusGroup},ue.createElement(Glt.Slot,{scope:e.__scopeRovingFocusGroup},ue.createElement(WSi,n_({},e,{ref:t}))))),WSi=ue.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:a,loop:s=!1,dir:o,currentTabStopId:u,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:f,onEntryFocus:p,...m}=e,b=ue.useRef(null),_=N3e(t,b),w=Jzn(o),[S=null,C]=Zzn({prop:u,defaultProp:h,onChange:f}),[A,k]=ue.useState(!1),I=Npt(p),N=eGn(r),L=ue.useRef(!1),[P,M]=ue.useState(0);return ue.useEffect(()=>{const F=b.current;if(F)return F.addEventListener(bnt,I),()=>F.removeEventListener(bnt,I)},[I]),ue.createElement(VSi,{scope:r,orientation:a,dir:w,loop:s,currentTabStopId:S,onItemFocus:ue.useCallback(F=>C(F),[C]),onItemShiftTab:ue.useCallback(()=>k(!0),[]),onFocusableItemAdd:ue.useCallback(()=>M(F=>F+1),[]),onFocusableItemRemove:ue.useCallback(()=>M(F=>F-1),[])},ue.createElement(GW.div,n_({tabIndex:A||P===0?-1:0,"data-orientation":a},m,{ref:_,style:{outline:"none",...e.style},onMouseDown:z7(e.onMouseDown,()=>{L.current=!0}),onFocus:z7(e.onFocus,F=>{const U=!L.current;if(F.target===F.currentTarget&&U&&!A){const $=new CustomEvent(bnt,GSi);if(F.currentTarget.dispatchEvent($),!$.defaultPrevented){const G=N().filter(W=>W.focusable),B=G.find(W=>W.active),Z=G.find(W=>W.id===S),Y=[B,Z,...G].filter(Boolean).map(W=>W.ref.current);nGn(Y)}}L.current=!1}),onBlur:z7(e.onBlur,()=>k(!1))})))}),KSi="RovingFocusGroupItem",XSi=ue.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:a=!0,active:s=!1,tabStopId:o,...u}=e,h=Qzn(),f=o||h,p=YSi(KSi,r),m=p.currentTabStopId===f,b=eGn(r),{onFocusableItemAdd:_,onFocusableItemRemove:w}=p;return ue.useEffect(()=>{if(a)return _(),()=>w()},[a,_,w]),ue.createElement(Glt.ItemSlot,{scope:r,id:f,focusable:a,active:s},ue.createElement(GW.span,n_({tabIndex:m?0:-1,"data-orientation":p.orientation},u,{ref:t,onMouseDown:z7(e.onMouseDown,S=>{a?p.onItemFocus(f):S.preventDefault()}),onFocus:z7(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:z7(e.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){p.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const C=JSi(S,p.orientation,p.dir);if(C!==void 0){S.preventDefault();let k=b().filter(I=>I.focusable).map(I=>I.ref.current);if(C==="last")k.reverse();else if(C==="prev"||C==="next"){C==="prev"&&k.reverse();const I=k.indexOf(S.currentTarget);k=p.loop?e4i(k,I+1):k.slice(I+1)}setTimeout(()=>nGn(k))}})})))}),QSi={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ZSi(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function JSi(e,t,r){const a=ZSi(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return QSi[a]}function nGn(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function e4i(e,t){return e.map((r,a)=>e[(t+a)%e.length])}const t4i=jSi,n4i=XSi;function r4i(e,t){return ue.useReducer((r,a)=>{const s=t[r][a];return s??r},e)}const rGn=e=>{const{present:t,children:r}=e,a=i4i(t),s=typeof r=="function"?r({present:a.isPresent}):ue.Children.only(r),o=N3e(a.ref,s.ref);return typeof r=="function"||a.isPresent?ue.cloneElement(s,{ref:o}):null};rGn.displayName="Presence";function i4i(e){const[t,r]=ue.useState(),a=ue.useRef({}),s=ue.useRef(e),o=ue.useRef("none"),u=e?"mounted":"unmounted",[h,f]=r4i(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return ue.useEffect(()=>{const p=bwe(a.current);o.current=h==="mounted"?p:"none"},[h]),zlt(()=>{const p=a.current,m=s.current;if(m!==e){const _=o.current,w=bwe(p);e?f("MOUNT"):w==="none"||(p==null?void 0:p.display)==="none"?f("UNMOUNT"):f(m&&_!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,f]),zlt(()=>{if(t){const p=b=>{const w=bwe(a.current).includes(b.animationName);b.target===t&&w&&w9.flushSync(()=>f("ANIMATION_END"))},m=b=>{b.target===t&&(o.current=bwe(a.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:ue.useCallback(p=>{p&&(a.current=getComputedStyle(p)),r(p)},[])}}function bwe(e){return(e==null?void 0:e.animationName)||"none"}const iGn="Tabs",[a4i]=Ipt(iGn,[tGn]),aGn=tGn(),[s4i,Lpt]=a4i(iGn),o4i=ue.forwardRef((e,t)=>{const{__scopeTabs:r,value:a,onValueChange:s,defaultValue:o,orientation:u="horizontal",dir:h,activationMode:f="automatic",...p}=e,m=Jzn(h),[b,_]=Zzn({prop:a,onChange:s,defaultProp:o});return ue.createElement(s4i,{scope:r,baseId:Qzn(),value:b,onValueChange:_,orientation:u,dir:m,activationMode:f},ue.createElement(GW.div,n_({dir:m,"data-orientation":u},p,{ref:t})))}),l4i="TabsList",c4i=ue.forwardRef((e,t)=>{const{__scopeTabs:r,loop:a=!0,...s}=e,o=Lpt(l4i,r),u=aGn(r);return ue.createElement(t4i,n_({asChild:!0},u,{orientation:o.orientation,dir:o.dir,loop:a}),ue.createElement(GW.div,n_({role:"tablist","aria-orientation":o.orientation},s,{ref:t})))}),u4i="TabsTrigger",h4i=ue.forwardRef((e,t)=>{const{__scopeTabs:r,value:a,disabled:s=!1,...o}=e,u=Lpt(u4i,r),h=aGn(r),f=sGn(u.baseId,a),p=oGn(u.baseId,a),m=a===u.value;return ue.createElement(n4i,n_({asChild:!0},h,{focusable:!s,active:m}),ue.createElement(GW.button,n_({type:"button",role:"tab","aria-selected":m,"aria-controls":p,"data-state":m?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:f},o,{ref:t,onMouseDown:z7(e.onMouseDown,b=>{!s&&b.button===0&&b.ctrlKey===!1?u.onValueChange(a):b.preventDefault()}),onKeyDown:z7(e.onKeyDown,b=>{[" ","Enter"].includes(b.key)&&u.onValueChange(a)}),onFocus:z7(e.onFocus,()=>{const b=u.activationMode!=="manual";!m&&!s&&b&&u.onValueChange(a)})})))}),d4i="TabsContent",f4i=ue.forwardRef((e,t)=>{const{__scopeTabs:r,value:a,forceMount:s,children:o,...u}=e,h=Lpt(d4i,r),f=sGn(h.baseId,a),p=oGn(h.baseId,a),m=a===h.value,b=ue.useRef(m);return ue.useEffect(()=>{const _=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(_)},[]),ue.createElement(rGn,{present:s||m},({present:_})=>ue.createElement(GW.div,n_({"data-state":m?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":f,hidden:!_,id:p,tabIndex:0},u,{ref:t,style:{...e.style,animationDuration:b.current?"0s":void 0}}),_&&o))});function sGn(e,t){return`${e}-trigger-${t}`}function oGn(e,t){return`${e}-content-${t}`}const G5a=o4i,q5a=c4i,H5a=h4i,V5a=f4i;var p4i="Expected a function",N_n=NaN,g4i="[object Symbol]",m4i=/^\s+|\s+$/g,b4i=/^[-+]0x[0-9a-f]+$/i,y4i=/^0b[01]+$/i,v4i=/^0o[0-7]+$/i,_4i=parseInt,w4i=typeof ml=="object"&&ml&&ml.Object===Object&&ml,E4i=typeof self=="object"&&self&&self.Object===Object&&self,x4i=w4i||E4i||Function("return this")(),S4i=Object.prototype,T4i=S4i.toString,C4i=Math.max,A4i=Math.min,ynt=function(){return x4i.Date.now()};function k4i(e,t,r){var a,s,o,u,h,f,p=0,m=!1,b=!1,_=!0;if(typeof e!="function")throw new TypeError(p4i);t=O_n(t)||0,qlt(r)&&(m=!!r.leading,b="maxWait"in r,o=b?C4i(O_n(r.maxWait)||0,t):o,_="trailing"in r?!!r.trailing:_);function w(M){var F=a,U=s;return a=s=void 0,p=M,u=e.apply(U,F),u}function S(M){return p=M,h=setTimeout(k,t),m?w(M):u}function C(M){var F=M-f,U=M-p,$=t-F;return b?A4i($,o-U):$}function A(M){var F=M-f,U=M-p;return f===void 0||F>=t||F<0||b&&U>=o}function k(){var M=ynt();if(A(M))return I(M);h=setTimeout(k,C(M))}function I(M){return h=void 0,_&&a?w(M):(a=s=void 0,u)}function N(){h!==void 0&&clearTimeout(h),p=0,a=f=s=h=void 0}function L(){return h===void 0?u:I(ynt())}function P(){var M=ynt(),F=A(M);if(a=arguments,s=this,f=M,F){if(h===void 0)return S(f);if(b)return h=setTimeout(k,t),w(f)}return h===void 0&&(h=setTimeout(k,t)),u}return P.cancel=N,P.flush=L,P}function qlt(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function R4i(e){return!!e&&typeof e=="object"}function I4i(e){return typeof e=="symbol"||R4i(e)&&T4i.call(e)==g4i}function O_n(e){if(typeof e=="number")return e;if(I4i(e))return N_n;if(qlt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qlt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(m4i,"");var r=y4i.test(e);return r||v4i.test(e)?_4i(e.slice(2),r?2:8):b4i.test(e)?N_n:+e}var N4i=k4i;const Y5a=O1(N4i);class D2{constructor(t,r,a){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=r,this.end=a}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new D2(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class Pw{constructor(t,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=r}range(t,r){return new Pw(r,D2.range(this,t))}}class Ri{constructor(t,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var a="KaTeX parse error: "+t,s,o,u=r&&r.loc;if(u&&u.start<=u.end){var h=u.lexer.input;s=u.start,o=u.end,s===h.length?a+=" at end of input: ":a+=" at position "+(s+1)+": ";var f=h.slice(s,o).replace(/[^]/g,"$&̲"),p;s>15?p="…"+h.slice(s-15,s):p=h.slice(0,s);var m;o+15":">","<":"<",'"':""","'":"'"},P4i=/[&><"']/g;function B4i(e){return String(e).replace(P4i,t=>M4i[t])}var lGn=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},F4i=function(t){var r=lGn(t);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},$4i=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},U4i=function(t){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},hu={deflt:O4i,escape:B4i,hyphenate:D4i,getBaseElem:lGn,isCharacterBox:F4i,protocolFromUrl:U4i},wse={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function z4i(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class Dpt{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var r in wse)if(wse.hasOwnProperty(r)){var a=wse[r];this[r]=t[r]!==void 0?a.processor?a.processor(t[r]):t[r]:z4i(a)}}reportNonstrict(t,r,a){var s=this.strict;if(typeof s=="function"&&(s=s(t,r,a)),!(!s||s==="ignore")){if(s===!0||s==="error")throw new Ri("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),a);s==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+s+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,a){var s=this.strict;if(typeof s=="function")try{s=s(t,r,a)}catch{s="error"}return!s||s==="ignore"?!1:s===!0||s==="error"?!0:s==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+s+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var r=hu.protocolFromUrl(t.url);if(r==null)return!1;t.protocol=r}var a=typeof this.trust=="function"?this.trust(t):this.trust;return!!a}}class DN{constructor(t,r,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=a}sup(){return MC[G4i[this.id]]}sub(){return MC[q4i[this.id]]}fracNum(){return MC[H4i[this.id]]}fracDen(){return MC[V4i[this.id]]}cramp(){return MC[Y4i[this.id]]}text(){return MC[j4i[this.id]]}isTight(){return this.size>=2}}var Mpt=0,L3e=1,JV=2,G7=3,Poe=4,sS=5,$j=6,ev=7,MC=[new DN(Mpt,0,!1),new DN(L3e,0,!0),new DN(JV,1,!1),new DN(G7,1,!0),new DN(Poe,2,!1),new DN(sS,2,!0),new DN($j,3,!1),new DN(ev,3,!0)],G4i=[Poe,sS,Poe,sS,$j,ev,$j,ev],q4i=[sS,sS,sS,sS,ev,ev,ev,ev],H4i=[JV,G7,Poe,sS,$j,ev,$j,ev],V4i=[G7,G7,sS,sS,ev,ev,ev,ev],Y4i=[L3e,L3e,G7,G7,sS,sS,ev,ev],j4i=[Mpt,L3e,JV,G7,JV,G7,JV,G7],Js={DISPLAY:MC[Mpt],TEXT:MC[JV],SCRIPT:MC[Poe],SCRIPTSCRIPT:MC[$j]},Hlt=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function W4i(e){for(var t=0;t=s[0]&&e<=s[1])return r.name}return null}var yxe=[];Hlt.forEach(e=>e.blocks.forEach(t=>yxe.push(...t)));function cGn(e){for(var t=0;t=yxe[t]&&e<=yxe[t+1])return!0;return!1}var VH=80,K4i=function(t,r){return"M95,"+(622+t+r)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 c69,-144,104.5,-217.7,106.5,-221 l`+t/2.075+" -"+t+` c5.3,-9.3,12,-14,20,-14 H400000v`+(40+t)+`H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},X4i=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 l`+t/2.084+" -"+t+` c4.7,-7.3,11,-11,19,-11 H40000v`+(40+t)+`H1012.3 s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Q4i=function(t,r){return"M983 "+(10+t+r)+` l`+t/3.13+" -"+t+` c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Z4i=function(t,r){return"M424,"+(2398+t+r)+` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000 v`+(40+t)+`H1014.6 s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+` h400000v`+(40+t)+"h-400000z"},J4i=function(t,r){return"M473,"+(2713+t+r)+` c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},e3i=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},t3i=function(t,r,a){var s=a-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+` H742v`+s+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},n3i=function(t,r,a){r=1e3*r;var s="";switch(t){case"sqrtMain":s=K4i(r,VH);break;case"sqrtSize1":s=X4i(r,VH);break;case"sqrtSize2":s=Q4i(r,VH);break;case"sqrtSize3":s=Z4i(r,VH);break;case"sqrtSize4":s=J4i(r,VH);break;case"sqrtTall":s=t3i(r,VH,a)}return s},r3i=function(t,r){switch(t){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},L_n={doubleleftarrow:`M262 157 l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l -10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 -33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 -17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 -5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 435 0h399565z`,leftgroupunder:`M400000 262 H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 -3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 -18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 -196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 -4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 -152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 -5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 -16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 -40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l -6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 -174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 -3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 -10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 -18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 -7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 -27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 -2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 -8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 -1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 -11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 -11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 -11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, -5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, -11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, -11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, -11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 -27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 -84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 -119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, 1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},i3i=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84 H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, -36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, 949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, -210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+` c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let bce=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;rr.toText();return this.children.map(t).join("")}};var XC={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ywe={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},D_n={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function uGn(e,t){XC[e]=t}function Ppt(e,t,r){if(!XC[t])throw new Error("Font metrics not found for font: "+t+".");var a=e.charCodeAt(0),s=XC[t][a];if(!s&&e[0]in D_n&&(a=D_n[e[0]].charCodeAt(0),s=XC[t][a]),!s&&r==="text"&&cGn(a)&&(s=XC[t][77]),s)return{depth:s[0],height:s[1],italic:s[2],skew:s[3],width:s[4]}}var vnt={};function a3i(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!vnt[t]){var r=vnt[t]={cssEmPerMu:ywe.quad[t]/18};for(var a in ywe)ywe.hasOwnProperty(a)&&(r[a]=ywe[a][t])}return vnt[t]}var s3i=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],M_n=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],P_n=function(t,r){return r.size<2?t:s3i[t-1][r.size-1]};class p7{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||p7.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=M_n[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var a in t)t.hasOwnProperty(a)&&(r[a]=t[a]);return new p7(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:P_n(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:M_n[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=P_n(p7.BASESIZE,t);return this.size===r&&this.textSize===p7.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==p7.BASESIZE?["sizing","reset-size"+this.size,"size"+p7.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=a3i(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}p7.BASESIZE=6;var Vlt={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},o3i={ex:!0,em:!0,mu:!0},hGn=function(t){return typeof t!="string"&&(t=t.unit),t in Vlt||t in o3i||t==="ex"},Rf=function(t,r){var a;if(t.unit in Vlt)a=Vlt[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")a=r.fontMetrics().cssEmPerMu;else{var s;if(r.style.isTight()?s=r.havingStyle(r.style.text()):s=r,t.unit==="ex")a=s.fontMetrics().xHeight;else if(t.unit==="em")a=s.fontMetrics().quad;else throw new Ri("Invalid unit: '"+t.unit+"'");s!==r&&(a*=s.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*a,r.maxSize)},Qi=function(t){return+t.toFixed(4)+"em"},t9=function(t){return t.filter(r=>r).join(" ")},dGn=function(t,r,a){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=a||{},r){r.style.isTight()&&this.classes.push("mtight");var s=r.getColor();s&&(this.style.color=s)}},fGn=function(t){var r=document.createElement(t);r.className=t9(this.classes);for(var a in this.style)this.style.hasOwnProperty(a)&&(r.style[a]=this.style[a]);for(var s in this.attributes)this.attributes.hasOwnProperty(s)&&r.setAttribute(s,this.attributes[s]);for(var o=0;o/=\x00-\x1f]/,pGn=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+hu.escape(t9(this.classes))+'"');var a="";for(var s in this.style)this.style.hasOwnProperty(s)&&(a+=hu.hyphenate(s)+":"+this.style[s]+";");a&&(r+=' style="'+hu.escape(a)+'"');for(var o in this.attributes)if(this.attributes.hasOwnProperty(o)){if(l3i.test(o))throw new Ri("Invalid attribute name '"+o+"'");r+=" "+o+'="'+hu.escape(this.attributes[o])+'"'}r+=">";for(var u=0;u",r};class yce{constructor(t,r,a,s){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,dGn.call(this,t,a,s),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return fGn.call(this,"span")}toMarkup(){return pGn.call(this,"span")}}class Bpt{constructor(t,r,a,s){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,dGn.call(this,r,s),this.children=a||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return fGn.call(this,"a")}toMarkup(){return pGn.call(this,"a")}}class c3i{constructor(t,r,a){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=t,this.classes=["mord"],this.style=a}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r in this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);return t}toMarkup(){var t=''+hu.escape(this.alt)+'0&&(r=document.createElement("span"),r.style.marginRight=Qi(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=t9(this.classes));for(var a in this.style)this.style.hasOwnProperty(a)&&(r=r||document.createElement("span"),r.style[a]=this.style[a]);return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="0&&(a+="margin-right:"+this.italic+"em;");for(var s in this.style)this.style.hasOwnProperty(s)&&(a+=hu.hyphenate(s)+":"+this.style[s]+";");a&&(t=!0,r+=' style="'+hu.escape(a)+'"');var o=hu.escape(this.text);return t?(r+=">",r+=o,r+="",r):o}}class aR{constructor(t,r){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&r.setAttribute(a,this.attributes[a]);for(var s=0;s':''}}class Ylt{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&r.setAttribute(a,this.attributes[a]);return r}toMarkup(){var t=" but got "+String(e)+".")}var d3i={bin:1,close:1,inner:1,open:1,punct:1,rel:1},f3i={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},td={math:{},text:{}};function Re(e,t,r,a,s,o){td[e][s]={font:t,group:r,replace:a},o&&a&&(td[e][a]=td[e][s])}var Be="math",di="text",rt="main",Wt="ams",Xd="accent-token",Oa="bin",vv="close",qW="inner",Qs="mathord",B1="op-token",jw="open",GAe="punct",tn="rel",ER="spacing",Tn="textord";Re(Be,rt,tn,"≡","\\equiv",!0);Re(Be,rt,tn,"≺","\\prec",!0);Re(Be,rt,tn,"≻","\\succ",!0);Re(Be,rt,tn,"∼","\\sim",!0);Re(Be,rt,tn,"⊥","\\perp");Re(Be,rt,tn,"⪯","\\preceq",!0);Re(Be,rt,tn,"⪰","\\succeq",!0);Re(Be,rt,tn,"≃","\\simeq",!0);Re(Be,rt,tn,"∣","\\mid",!0);Re(Be,rt,tn,"≪","\\ll",!0);Re(Be,rt,tn,"≫","\\gg",!0);Re(Be,rt,tn,"≍","\\asymp",!0);Re(Be,rt,tn,"∥","\\parallel");Re(Be,rt,tn,"⋈","\\bowtie",!0);Re(Be,rt,tn,"⌣","\\smile",!0);Re(Be,rt,tn,"⊑","\\sqsubseteq",!0);Re(Be,rt,tn,"⊒","\\sqsupseteq",!0);Re(Be,rt,tn,"≐","\\doteq",!0);Re(Be,rt,tn,"⌢","\\frown",!0);Re(Be,rt,tn,"∋","\\ni",!0);Re(Be,rt,tn,"∝","\\propto",!0);Re(Be,rt,tn,"⊢","\\vdash",!0);Re(Be,rt,tn,"⊣","\\dashv",!0);Re(Be,rt,tn,"∋","\\owns");Re(Be,rt,GAe,".","\\ldotp");Re(Be,rt,GAe,"⋅","\\cdotp");Re(Be,rt,Tn,"#","\\#");Re(di,rt,Tn,"#","\\#");Re(Be,rt,Tn,"&","\\&");Re(di,rt,Tn,"&","\\&");Re(Be,rt,Tn,"ℵ","\\aleph",!0);Re(Be,rt,Tn,"∀","\\forall",!0);Re(Be,rt,Tn,"ℏ","\\hbar",!0);Re(Be,rt,Tn,"∃","\\exists",!0);Re(Be,rt,Tn,"∇","\\nabla",!0);Re(Be,rt,Tn,"♭","\\flat",!0);Re(Be,rt,Tn,"ℓ","\\ell",!0);Re(Be,rt,Tn,"♮","\\natural",!0);Re(Be,rt,Tn,"♣","\\clubsuit",!0);Re(Be,rt,Tn,"℘","\\wp",!0);Re(Be,rt,Tn,"♯","\\sharp",!0);Re(Be,rt,Tn,"♢","\\diamondsuit",!0);Re(Be,rt,Tn,"ℜ","\\Re",!0);Re(Be,rt,Tn,"♡","\\heartsuit",!0);Re(Be,rt,Tn,"ℑ","\\Im",!0);Re(Be,rt,Tn,"♠","\\spadesuit",!0);Re(Be,rt,Tn,"§","\\S",!0);Re(di,rt,Tn,"§","\\S");Re(Be,rt,Tn,"¶","\\P",!0);Re(di,rt,Tn,"¶","\\P");Re(Be,rt,Tn,"†","\\dag");Re(di,rt,Tn,"†","\\dag");Re(di,rt,Tn,"†","\\textdagger");Re(Be,rt,Tn,"‡","\\ddag");Re(di,rt,Tn,"‡","\\ddag");Re(di,rt,Tn,"‡","\\textdaggerdbl");Re(Be,rt,vv,"⎱","\\rmoustache",!0);Re(Be,rt,jw,"⎰","\\lmoustache",!0);Re(Be,rt,vv,"⟯","\\rgroup",!0);Re(Be,rt,jw,"⟮","\\lgroup",!0);Re(Be,rt,Oa,"∓","\\mp",!0);Re(Be,rt,Oa,"⊖","\\ominus",!0);Re(Be,rt,Oa,"⊎","\\uplus",!0);Re(Be,rt,Oa,"⊓","\\sqcap",!0);Re(Be,rt,Oa,"∗","\\ast");Re(Be,rt,Oa,"⊔","\\sqcup",!0);Re(Be,rt,Oa,"◯","\\bigcirc",!0);Re(Be,rt,Oa,"∙","\\bullet",!0);Re(Be,rt,Oa,"‡","\\ddagger");Re(Be,rt,Oa,"≀","\\wr",!0);Re(Be,rt,Oa,"⨿","\\amalg");Re(Be,rt,Oa,"&","\\And");Re(Be,rt,tn,"⟵","\\longleftarrow",!0);Re(Be,rt,tn,"⇐","\\Leftarrow",!0);Re(Be,rt,tn,"⟸","\\Longleftarrow",!0);Re(Be,rt,tn,"⟶","\\longrightarrow",!0);Re(Be,rt,tn,"⇒","\\Rightarrow",!0);Re(Be,rt,tn,"⟹","\\Longrightarrow",!0);Re(Be,rt,tn,"↔","\\leftrightarrow",!0);Re(Be,rt,tn,"⟷","\\longleftrightarrow",!0);Re(Be,rt,tn,"⇔","\\Leftrightarrow",!0);Re(Be,rt,tn,"⟺","\\Longleftrightarrow",!0);Re(Be,rt,tn,"↦","\\mapsto",!0);Re(Be,rt,tn,"⟼","\\longmapsto",!0);Re(Be,rt,tn,"↗","\\nearrow",!0);Re(Be,rt,tn,"↩","\\hookleftarrow",!0);Re(Be,rt,tn,"↪","\\hookrightarrow",!0);Re(Be,rt,tn,"↘","\\searrow",!0);Re(Be,rt,tn,"↼","\\leftharpoonup",!0);Re(Be,rt,tn,"⇀","\\rightharpoonup",!0);Re(Be,rt,tn,"↙","\\swarrow",!0);Re(Be,rt,tn,"↽","\\leftharpoondown",!0);Re(Be,rt,tn,"⇁","\\rightharpoondown",!0);Re(Be,rt,tn,"↖","\\nwarrow",!0);Re(Be,rt,tn,"⇌","\\rightleftharpoons",!0);Re(Be,Wt,tn,"≮","\\nless",!0);Re(Be,Wt,tn,"","\\@nleqslant");Re(Be,Wt,tn,"","\\@nleqq");Re(Be,Wt,tn,"⪇","\\lneq",!0);Re(Be,Wt,tn,"≨","\\lneqq",!0);Re(Be,Wt,tn,"","\\@lvertneqq");Re(Be,Wt,tn,"⋦","\\lnsim",!0);Re(Be,Wt,tn,"⪉","\\lnapprox",!0);Re(Be,Wt,tn,"⊀","\\nprec",!0);Re(Be,Wt,tn,"⋠","\\npreceq",!0);Re(Be,Wt,tn,"⋨","\\precnsim",!0);Re(Be,Wt,tn,"⪹","\\precnapprox",!0);Re(Be,Wt,tn,"≁","\\nsim",!0);Re(Be,Wt,tn,"","\\@nshortmid");Re(Be,Wt,tn,"∤","\\nmid",!0);Re(Be,Wt,tn,"⊬","\\nvdash",!0);Re(Be,Wt,tn,"⊭","\\nvDash",!0);Re(Be,Wt,tn,"⋪","\\ntriangleleft");Re(Be,Wt,tn,"⋬","\\ntrianglelefteq",!0);Re(Be,Wt,tn,"⊊","\\subsetneq",!0);Re(Be,Wt,tn,"","\\@varsubsetneq");Re(Be,Wt,tn,"⫋","\\subsetneqq",!0);Re(Be,Wt,tn,"","\\@varsubsetneqq");Re(Be,Wt,tn,"≯","\\ngtr",!0);Re(Be,Wt,tn,"","\\@ngeqslant");Re(Be,Wt,tn,"","\\@ngeqq");Re(Be,Wt,tn,"⪈","\\gneq",!0);Re(Be,Wt,tn,"≩","\\gneqq",!0);Re(Be,Wt,tn,"","\\@gvertneqq");Re(Be,Wt,tn,"⋧","\\gnsim",!0);Re(Be,Wt,tn,"⪊","\\gnapprox",!0);Re(Be,Wt,tn,"⊁","\\nsucc",!0);Re(Be,Wt,tn,"⋡","\\nsucceq",!0);Re(Be,Wt,tn,"⋩","\\succnsim",!0);Re(Be,Wt,tn,"⪺","\\succnapprox",!0);Re(Be,Wt,tn,"≆","\\ncong",!0);Re(Be,Wt,tn,"","\\@nshortparallel");Re(Be,Wt,tn,"∦","\\nparallel",!0);Re(Be,Wt,tn,"⊯","\\nVDash",!0);Re(Be,Wt,tn,"⋫","\\ntriangleright");Re(Be,Wt,tn,"⋭","\\ntrianglerighteq",!0);Re(Be,Wt,tn,"","\\@nsupseteqq");Re(Be,Wt,tn,"⊋","\\supsetneq",!0);Re(Be,Wt,tn,"","\\@varsupsetneq");Re(Be,Wt,tn,"⫌","\\supsetneqq",!0);Re(Be,Wt,tn,"","\\@varsupsetneqq");Re(Be,Wt,tn,"⊮","\\nVdash",!0);Re(Be,Wt,tn,"⪵","\\precneqq",!0);Re(Be,Wt,tn,"⪶","\\succneqq",!0);Re(Be,Wt,tn,"","\\@nsubseteqq");Re(Be,Wt,Oa,"⊴","\\unlhd");Re(Be,Wt,Oa,"⊵","\\unrhd");Re(Be,Wt,tn,"↚","\\nleftarrow",!0);Re(Be,Wt,tn,"↛","\\nrightarrow",!0);Re(Be,Wt,tn,"⇍","\\nLeftarrow",!0);Re(Be,Wt,tn,"⇏","\\nRightarrow",!0);Re(Be,Wt,tn,"↮","\\nleftrightarrow",!0);Re(Be,Wt,tn,"⇎","\\nLeftrightarrow",!0);Re(Be,Wt,tn,"△","\\vartriangle");Re(Be,Wt,Tn,"ℏ","\\hslash");Re(Be,Wt,Tn,"▽","\\triangledown");Re(Be,Wt,Tn,"◊","\\lozenge");Re(Be,Wt,Tn,"Ⓢ","\\circledS");Re(Be,Wt,Tn,"®","\\circledR");Re(di,Wt,Tn,"®","\\circledR");Re(Be,Wt,Tn,"∡","\\measuredangle",!0);Re(Be,Wt,Tn,"∄","\\nexists");Re(Be,Wt,Tn,"℧","\\mho");Re(Be,Wt,Tn,"Ⅎ","\\Finv",!0);Re(Be,Wt,Tn,"⅁","\\Game",!0);Re(Be,Wt,Tn,"‵","\\backprime");Re(Be,Wt,Tn,"▲","\\blacktriangle");Re(Be,Wt,Tn,"▼","\\blacktriangledown");Re(Be,Wt,Tn,"■","\\blacksquare");Re(Be,Wt,Tn,"⧫","\\blacklozenge");Re(Be,Wt,Tn,"★","\\bigstar");Re(Be,Wt,Tn,"∢","\\sphericalangle",!0);Re(Be,Wt,Tn,"∁","\\complement",!0);Re(Be,Wt,Tn,"ð","\\eth",!0);Re(di,rt,Tn,"ð","ð");Re(Be,Wt,Tn,"╱","\\diagup");Re(Be,Wt,Tn,"╲","\\diagdown");Re(Be,Wt,Tn,"□","\\square");Re(Be,Wt,Tn,"□","\\Box");Re(Be,Wt,Tn,"◊","\\Diamond");Re(Be,Wt,Tn,"¥","\\yen",!0);Re(di,Wt,Tn,"¥","\\yen",!0);Re(Be,Wt,Tn,"✓","\\checkmark",!0);Re(di,Wt,Tn,"✓","\\checkmark");Re(Be,Wt,Tn,"ℶ","\\beth",!0);Re(Be,Wt,Tn,"ℸ","\\daleth",!0);Re(Be,Wt,Tn,"ℷ","\\gimel",!0);Re(Be,Wt,Tn,"ϝ","\\digamma",!0);Re(Be,Wt,Tn,"ϰ","\\varkappa");Re(Be,Wt,jw,"┌","\\@ulcorner",!0);Re(Be,Wt,vv,"┐","\\@urcorner",!0);Re(Be,Wt,jw,"└","\\@llcorner",!0);Re(Be,Wt,vv,"┘","\\@lrcorner",!0);Re(Be,Wt,tn,"≦","\\leqq",!0);Re(Be,Wt,tn,"⩽","\\leqslant",!0);Re(Be,Wt,tn,"⪕","\\eqslantless",!0);Re(Be,Wt,tn,"≲","\\lesssim",!0);Re(Be,Wt,tn,"⪅","\\lessapprox",!0);Re(Be,Wt,tn,"≊","\\approxeq",!0);Re(Be,Wt,Oa,"⋖","\\lessdot");Re(Be,Wt,tn,"⋘","\\lll",!0);Re(Be,Wt,tn,"≶","\\lessgtr",!0);Re(Be,Wt,tn,"⋚","\\lesseqgtr",!0);Re(Be,Wt,tn,"⪋","\\lesseqqgtr",!0);Re(Be,Wt,tn,"≑","\\doteqdot");Re(Be,Wt,tn,"≓","\\risingdotseq",!0);Re(Be,Wt,tn,"≒","\\fallingdotseq",!0);Re(Be,Wt,tn,"∽","\\backsim",!0);Re(Be,Wt,tn,"⋍","\\backsimeq",!0);Re(Be,Wt,tn,"⫅","\\subseteqq",!0);Re(Be,Wt,tn,"⋐","\\Subset",!0);Re(Be,Wt,tn,"⊏","\\sqsubset",!0);Re(Be,Wt,tn,"≼","\\preccurlyeq",!0);Re(Be,Wt,tn,"⋞","\\curlyeqprec",!0);Re(Be,Wt,tn,"≾","\\precsim",!0);Re(Be,Wt,tn,"⪷","\\precapprox",!0);Re(Be,Wt,tn,"⊲","\\vartriangleleft");Re(Be,Wt,tn,"⊴","\\trianglelefteq");Re(Be,Wt,tn,"⊨","\\vDash",!0);Re(Be,Wt,tn,"⊪","\\Vvdash",!0);Re(Be,Wt,tn,"⌣","\\smallsmile");Re(Be,Wt,tn,"⌢","\\smallfrown");Re(Be,Wt,tn,"≏","\\bumpeq",!0);Re(Be,Wt,tn,"≎","\\Bumpeq",!0);Re(Be,Wt,tn,"≧","\\geqq",!0);Re(Be,Wt,tn,"⩾","\\geqslant",!0);Re(Be,Wt,tn,"⪖","\\eqslantgtr",!0);Re(Be,Wt,tn,"≳","\\gtrsim",!0);Re(Be,Wt,tn,"⪆","\\gtrapprox",!0);Re(Be,Wt,Oa,"⋗","\\gtrdot");Re(Be,Wt,tn,"⋙","\\ggg",!0);Re(Be,Wt,tn,"≷","\\gtrless",!0);Re(Be,Wt,tn,"⋛","\\gtreqless",!0);Re(Be,Wt,tn,"⪌","\\gtreqqless",!0);Re(Be,Wt,tn,"≖","\\eqcirc",!0);Re(Be,Wt,tn,"≗","\\circeq",!0);Re(Be,Wt,tn,"≜","\\triangleq",!0);Re(Be,Wt,tn,"∼","\\thicksim");Re(Be,Wt,tn,"≈","\\thickapprox");Re(Be,Wt,tn,"⫆","\\supseteqq",!0);Re(Be,Wt,tn,"⋑","\\Supset",!0);Re(Be,Wt,tn,"⊐","\\sqsupset",!0);Re(Be,Wt,tn,"≽","\\succcurlyeq",!0);Re(Be,Wt,tn,"⋟","\\curlyeqsucc",!0);Re(Be,Wt,tn,"≿","\\succsim",!0);Re(Be,Wt,tn,"⪸","\\succapprox",!0);Re(Be,Wt,tn,"⊳","\\vartriangleright");Re(Be,Wt,tn,"⊵","\\trianglerighteq");Re(Be,Wt,tn,"⊩","\\Vdash",!0);Re(Be,Wt,tn,"∣","\\shortmid");Re(Be,Wt,tn,"∥","\\shortparallel");Re(Be,Wt,tn,"≬","\\between",!0);Re(Be,Wt,tn,"⋔","\\pitchfork",!0);Re(Be,Wt,tn,"∝","\\varpropto");Re(Be,Wt,tn,"◀","\\blacktriangleleft");Re(Be,Wt,tn,"∴","\\therefore",!0);Re(Be,Wt,tn,"∍","\\backepsilon");Re(Be,Wt,tn,"▶","\\blacktriangleright");Re(Be,Wt,tn,"∵","\\because",!0);Re(Be,Wt,tn,"⋘","\\llless");Re(Be,Wt,tn,"⋙","\\gggtr");Re(Be,Wt,Oa,"⊲","\\lhd");Re(Be,Wt,Oa,"⊳","\\rhd");Re(Be,Wt,tn,"≂","\\eqsim",!0);Re(Be,rt,tn,"⋈","\\Join");Re(Be,Wt,tn,"≑","\\Doteq",!0);Re(Be,Wt,Oa,"∔","\\dotplus",!0);Re(Be,Wt,Oa,"∖","\\smallsetminus");Re(Be,Wt,Oa,"⋒","\\Cap",!0);Re(Be,Wt,Oa,"⋓","\\Cup",!0);Re(Be,Wt,Oa,"⩞","\\doublebarwedge",!0);Re(Be,Wt,Oa,"⊟","\\boxminus",!0);Re(Be,Wt,Oa,"⊞","\\boxplus",!0);Re(Be,Wt,Oa,"⋇","\\divideontimes",!0);Re(Be,Wt,Oa,"⋉","\\ltimes",!0);Re(Be,Wt,Oa,"⋊","\\rtimes",!0);Re(Be,Wt,Oa,"⋋","\\leftthreetimes",!0);Re(Be,Wt,Oa,"⋌","\\rightthreetimes",!0);Re(Be,Wt,Oa,"⋏","\\curlywedge",!0);Re(Be,Wt,Oa,"⋎","\\curlyvee",!0);Re(Be,Wt,Oa,"⊝","\\circleddash",!0);Re(Be,Wt,Oa,"⊛","\\circledast",!0);Re(Be,Wt,Oa,"⋅","\\centerdot");Re(Be,Wt,Oa,"⊺","\\intercal",!0);Re(Be,Wt,Oa,"⋒","\\doublecap");Re(Be,Wt,Oa,"⋓","\\doublecup");Re(Be,Wt,Oa,"⊠","\\boxtimes",!0);Re(Be,Wt,tn,"⇢","\\dashrightarrow",!0);Re(Be,Wt,tn,"⇠","\\dashleftarrow",!0);Re(Be,Wt,tn,"⇇","\\leftleftarrows",!0);Re(Be,Wt,tn,"⇆","\\leftrightarrows",!0);Re(Be,Wt,tn,"⇚","\\Lleftarrow",!0);Re(Be,Wt,tn,"↞","\\twoheadleftarrow",!0);Re(Be,Wt,tn,"↢","\\leftarrowtail",!0);Re(Be,Wt,tn,"↫","\\looparrowleft",!0);Re(Be,Wt,tn,"⇋","\\leftrightharpoons",!0);Re(Be,Wt,tn,"↶","\\curvearrowleft",!0);Re(Be,Wt,tn,"↺","\\circlearrowleft",!0);Re(Be,Wt,tn,"↰","\\Lsh",!0);Re(Be,Wt,tn,"⇈","\\upuparrows",!0);Re(Be,Wt,tn,"↿","\\upharpoonleft",!0);Re(Be,Wt,tn,"⇃","\\downharpoonleft",!0);Re(Be,rt,tn,"⊶","\\origof",!0);Re(Be,rt,tn,"⊷","\\imageof",!0);Re(Be,Wt,tn,"⊸","\\multimap",!0);Re(Be,Wt,tn,"↭","\\leftrightsquigarrow",!0);Re(Be,Wt,tn,"⇉","\\rightrightarrows",!0);Re(Be,Wt,tn,"⇄","\\rightleftarrows",!0);Re(Be,Wt,tn,"↠","\\twoheadrightarrow",!0);Re(Be,Wt,tn,"↣","\\rightarrowtail",!0);Re(Be,Wt,tn,"↬","\\looparrowright",!0);Re(Be,Wt,tn,"↷","\\curvearrowright",!0);Re(Be,Wt,tn,"↻","\\circlearrowright",!0);Re(Be,Wt,tn,"↱","\\Rsh",!0);Re(Be,Wt,tn,"⇊","\\downdownarrows",!0);Re(Be,Wt,tn,"↾","\\upharpoonright",!0);Re(Be,Wt,tn,"⇂","\\downharpoonright",!0);Re(Be,Wt,tn,"⇝","\\rightsquigarrow",!0);Re(Be,Wt,tn,"⇝","\\leadsto");Re(Be,Wt,tn,"⇛","\\Rrightarrow",!0);Re(Be,Wt,tn,"↾","\\restriction");Re(Be,rt,Tn,"‘","`");Re(Be,rt,Tn,"$","\\$");Re(di,rt,Tn,"$","\\$");Re(di,rt,Tn,"$","\\textdollar");Re(Be,rt,Tn,"%","\\%");Re(di,rt,Tn,"%","\\%");Re(Be,rt,Tn,"_","\\_");Re(di,rt,Tn,"_","\\_");Re(di,rt,Tn,"_","\\textunderscore");Re(Be,rt,Tn,"∠","\\angle",!0);Re(Be,rt,Tn,"∞","\\infty",!0);Re(Be,rt,Tn,"′","\\prime");Re(Be,rt,Tn,"△","\\triangle");Re(Be,rt,Tn,"Γ","\\Gamma",!0);Re(Be,rt,Tn,"Δ","\\Delta",!0);Re(Be,rt,Tn,"Θ","\\Theta",!0);Re(Be,rt,Tn,"Λ","\\Lambda",!0);Re(Be,rt,Tn,"Ξ","\\Xi",!0);Re(Be,rt,Tn,"Π","\\Pi",!0);Re(Be,rt,Tn,"Σ","\\Sigma",!0);Re(Be,rt,Tn,"Υ","\\Upsilon",!0);Re(Be,rt,Tn,"Φ","\\Phi",!0);Re(Be,rt,Tn,"Ψ","\\Psi",!0);Re(Be,rt,Tn,"Ω","\\Omega",!0);Re(Be,rt,Tn,"A","Α");Re(Be,rt,Tn,"B","Β");Re(Be,rt,Tn,"E","Ε");Re(Be,rt,Tn,"Z","Ζ");Re(Be,rt,Tn,"H","Η");Re(Be,rt,Tn,"I","Ι");Re(Be,rt,Tn,"K","Κ");Re(Be,rt,Tn,"M","Μ");Re(Be,rt,Tn,"N","Ν");Re(Be,rt,Tn,"O","Ο");Re(Be,rt,Tn,"P","Ρ");Re(Be,rt,Tn,"T","Τ");Re(Be,rt,Tn,"X","Χ");Re(Be,rt,Tn,"¬","\\neg",!0);Re(Be,rt,Tn,"¬","\\lnot");Re(Be,rt,Tn,"⊤","\\top");Re(Be,rt,Tn,"⊥","\\bot");Re(Be,rt,Tn,"∅","\\emptyset");Re(Be,Wt,Tn,"∅","\\varnothing");Re(Be,rt,Qs,"α","\\alpha",!0);Re(Be,rt,Qs,"β","\\beta",!0);Re(Be,rt,Qs,"γ","\\gamma",!0);Re(Be,rt,Qs,"δ","\\delta",!0);Re(Be,rt,Qs,"ϵ","\\epsilon",!0);Re(Be,rt,Qs,"ζ","\\zeta",!0);Re(Be,rt,Qs,"η","\\eta",!0);Re(Be,rt,Qs,"θ","\\theta",!0);Re(Be,rt,Qs,"ι","\\iota",!0);Re(Be,rt,Qs,"κ","\\kappa",!0);Re(Be,rt,Qs,"λ","\\lambda",!0);Re(Be,rt,Qs,"μ","\\mu",!0);Re(Be,rt,Qs,"ν","\\nu",!0);Re(Be,rt,Qs,"ξ","\\xi",!0);Re(Be,rt,Qs,"ο","\\omicron",!0);Re(Be,rt,Qs,"π","\\pi",!0);Re(Be,rt,Qs,"ρ","\\rho",!0);Re(Be,rt,Qs,"σ","\\sigma",!0);Re(Be,rt,Qs,"τ","\\tau",!0);Re(Be,rt,Qs,"υ","\\upsilon",!0);Re(Be,rt,Qs,"ϕ","\\phi",!0);Re(Be,rt,Qs,"χ","\\chi",!0);Re(Be,rt,Qs,"ψ","\\psi",!0);Re(Be,rt,Qs,"ω","\\omega",!0);Re(Be,rt,Qs,"ε","\\varepsilon",!0);Re(Be,rt,Qs,"ϑ","\\vartheta",!0);Re(Be,rt,Qs,"ϖ","\\varpi",!0);Re(Be,rt,Qs,"ϱ","\\varrho",!0);Re(Be,rt,Qs,"ς","\\varsigma",!0);Re(Be,rt,Qs,"φ","\\varphi",!0);Re(Be,rt,Oa,"∗","*",!0);Re(Be,rt,Oa,"+","+");Re(Be,rt,Oa,"−","-",!0);Re(Be,rt,Oa,"⋅","\\cdot",!0);Re(Be,rt,Oa,"∘","\\circ",!0);Re(Be,rt,Oa,"÷","\\div",!0);Re(Be,rt,Oa,"±","\\pm",!0);Re(Be,rt,Oa,"×","\\times",!0);Re(Be,rt,Oa,"∩","\\cap",!0);Re(Be,rt,Oa,"∪","\\cup",!0);Re(Be,rt,Oa,"∖","\\setminus",!0);Re(Be,rt,Oa,"∧","\\land");Re(Be,rt,Oa,"∨","\\lor");Re(Be,rt,Oa,"∧","\\wedge",!0);Re(Be,rt,Oa,"∨","\\vee",!0);Re(Be,rt,Tn,"√","\\surd");Re(Be,rt,jw,"⟨","\\langle",!0);Re(Be,rt,jw,"∣","\\lvert");Re(Be,rt,jw,"∥","\\lVert");Re(Be,rt,vv,"?","?");Re(Be,rt,vv,"!","!");Re(Be,rt,vv,"⟩","\\rangle",!0);Re(Be,rt,vv,"∣","\\rvert");Re(Be,rt,vv,"∥","\\rVert");Re(Be,rt,tn,"=","=");Re(Be,rt,tn,":",":");Re(Be,rt,tn,"≈","\\approx",!0);Re(Be,rt,tn,"≅","\\cong",!0);Re(Be,rt,tn,"≥","\\ge");Re(Be,rt,tn,"≥","\\geq",!0);Re(Be,rt,tn,"←","\\gets");Re(Be,rt,tn,">","\\gt",!0);Re(Be,rt,tn,"∈","\\in",!0);Re(Be,rt,tn,"","\\@not");Re(Be,rt,tn,"⊂","\\subset",!0);Re(Be,rt,tn,"⊃","\\supset",!0);Re(Be,rt,tn,"⊆","\\subseteq",!0);Re(Be,rt,tn,"⊇","\\supseteq",!0);Re(Be,Wt,tn,"⊈","\\nsubseteq",!0);Re(Be,Wt,tn,"⊉","\\nsupseteq",!0);Re(Be,rt,tn,"⊨","\\models");Re(Be,rt,tn,"←","\\leftarrow",!0);Re(Be,rt,tn,"≤","\\le");Re(Be,rt,tn,"≤","\\leq",!0);Re(Be,rt,tn,"<","\\lt",!0);Re(Be,rt,tn,"→","\\rightarrow",!0);Re(Be,rt,tn,"→","\\to");Re(Be,Wt,tn,"≱","\\ngeq",!0);Re(Be,Wt,tn,"≰","\\nleq",!0);Re(Be,rt,ER," ","\\ ");Re(Be,rt,ER," ","\\space");Re(Be,rt,ER," ","\\nobreakspace");Re(di,rt,ER," ","\\ ");Re(di,rt,ER," "," ");Re(di,rt,ER," ","\\space");Re(di,rt,ER," ","\\nobreakspace");Re(Be,rt,ER,null,"\\nobreak");Re(Be,rt,ER,null,"\\allowbreak");Re(Be,rt,GAe,",",",");Re(Be,rt,GAe,";",";");Re(Be,Wt,Oa,"⊼","\\barwedge",!0);Re(Be,Wt,Oa,"⊻","\\veebar",!0);Re(Be,rt,Oa,"⊙","\\odot",!0);Re(Be,rt,Oa,"⊕","\\oplus",!0);Re(Be,rt,Oa,"⊗","\\otimes",!0);Re(Be,rt,Tn,"∂","\\partial",!0);Re(Be,rt,Oa,"⊘","\\oslash",!0);Re(Be,Wt,Oa,"⊚","\\circledcirc",!0);Re(Be,Wt,Oa,"⊡","\\boxdot",!0);Re(Be,rt,Oa,"△","\\bigtriangleup");Re(Be,rt,Oa,"▽","\\bigtriangledown");Re(Be,rt,Oa,"†","\\dagger");Re(Be,rt,Oa,"⋄","\\diamond");Re(Be,rt,Oa,"⋆","\\star");Re(Be,rt,Oa,"◃","\\triangleleft");Re(Be,rt,Oa,"▹","\\triangleright");Re(Be,rt,jw,"{","\\{");Re(di,rt,Tn,"{","\\{");Re(di,rt,Tn,"{","\\textbraceleft");Re(Be,rt,vv,"}","\\}");Re(di,rt,Tn,"}","\\}");Re(di,rt,Tn,"}","\\textbraceright");Re(Be,rt,jw,"{","\\lbrace");Re(Be,rt,vv,"}","\\rbrace");Re(Be,rt,jw,"[","\\lbrack",!0);Re(di,rt,Tn,"[","\\lbrack",!0);Re(Be,rt,vv,"]","\\rbrack",!0);Re(di,rt,Tn,"]","\\rbrack",!0);Re(Be,rt,jw,"(","\\lparen",!0);Re(Be,rt,vv,")","\\rparen",!0);Re(di,rt,Tn,"<","\\textless",!0);Re(di,rt,Tn,">","\\textgreater",!0);Re(Be,rt,jw,"⌊","\\lfloor",!0);Re(Be,rt,vv,"⌋","\\rfloor",!0);Re(Be,rt,jw,"⌈","\\lceil",!0);Re(Be,rt,vv,"⌉","\\rceil",!0);Re(Be,rt,Tn,"\\","\\backslash");Re(Be,rt,Tn,"∣","|");Re(Be,rt,Tn,"∣","\\vert");Re(di,rt,Tn,"|","\\textbar",!0);Re(Be,rt,Tn,"∥","\\|");Re(Be,rt,Tn,"∥","\\Vert");Re(di,rt,Tn,"∥","\\textbardbl");Re(di,rt,Tn,"~","\\textasciitilde");Re(di,rt,Tn,"\\","\\textbackslash");Re(di,rt,Tn,"^","\\textasciicircum");Re(Be,rt,tn,"↑","\\uparrow",!0);Re(Be,rt,tn,"⇑","\\Uparrow",!0);Re(Be,rt,tn,"↓","\\downarrow",!0);Re(Be,rt,tn,"⇓","\\Downarrow",!0);Re(Be,rt,tn,"↕","\\updownarrow",!0);Re(Be,rt,tn,"⇕","\\Updownarrow",!0);Re(Be,rt,B1,"∐","\\coprod");Re(Be,rt,B1,"⋁","\\bigvee");Re(Be,rt,B1,"⋀","\\bigwedge");Re(Be,rt,B1,"⨄","\\biguplus");Re(Be,rt,B1,"⋂","\\bigcap");Re(Be,rt,B1,"⋃","\\bigcup");Re(Be,rt,B1,"∫","\\int");Re(Be,rt,B1,"∫","\\intop");Re(Be,rt,B1,"∬","\\iint");Re(Be,rt,B1,"∭","\\iiint");Re(Be,rt,B1,"∏","\\prod");Re(Be,rt,B1,"∑","\\sum");Re(Be,rt,B1,"⨂","\\bigotimes");Re(Be,rt,B1,"⨁","\\bigoplus");Re(Be,rt,B1,"⨀","\\bigodot");Re(Be,rt,B1,"∮","\\oint");Re(Be,rt,B1,"∯","\\oiint");Re(Be,rt,B1,"∰","\\oiiint");Re(Be,rt,B1,"⨆","\\bigsqcup");Re(Be,rt,B1,"∫","\\smallint");Re(di,rt,qW,"…","\\textellipsis");Re(Be,rt,qW,"…","\\mathellipsis");Re(di,rt,qW,"…","\\ldots",!0);Re(Be,rt,qW,"…","\\ldots",!0);Re(Be,rt,qW,"⋯","\\@cdots",!0);Re(Be,rt,qW,"⋱","\\ddots",!0);Re(Be,rt,Tn,"⋮","\\varvdots");Re(di,rt,Tn,"⋮","\\varvdots");Re(Be,rt,Xd,"ˊ","\\acute");Re(Be,rt,Xd,"ˋ","\\grave");Re(Be,rt,Xd,"¨","\\ddot");Re(Be,rt,Xd,"~","\\tilde");Re(Be,rt,Xd,"ˉ","\\bar");Re(Be,rt,Xd,"˘","\\breve");Re(Be,rt,Xd,"ˇ","\\check");Re(Be,rt,Xd,"^","\\hat");Re(Be,rt,Xd,"⃗","\\vec");Re(Be,rt,Xd,"˙","\\dot");Re(Be,rt,Xd,"˚","\\mathring");Re(Be,rt,Qs,"","\\@imath");Re(Be,rt,Qs,"","\\@jmath");Re(Be,rt,Tn,"ı","ı");Re(Be,rt,Tn,"ȷ","ȷ");Re(di,rt,Tn,"ı","\\i",!0);Re(di,rt,Tn,"ȷ","\\j",!0);Re(di,rt,Tn,"ß","\\ss",!0);Re(di,rt,Tn,"æ","\\ae",!0);Re(di,rt,Tn,"œ","\\oe",!0);Re(di,rt,Tn,"ø","\\o",!0);Re(di,rt,Tn,"Æ","\\AE",!0);Re(di,rt,Tn,"Œ","\\OE",!0);Re(di,rt,Tn,"Ø","\\O",!0);Re(di,rt,Xd,"ˊ","\\'");Re(di,rt,Xd,"ˋ","\\`");Re(di,rt,Xd,"ˆ","\\^");Re(di,rt,Xd,"˜","\\~");Re(di,rt,Xd,"ˉ","\\=");Re(di,rt,Xd,"˘","\\u");Re(di,rt,Xd,"˙","\\.");Re(di,rt,Xd,"¸","\\c");Re(di,rt,Xd,"˚","\\r");Re(di,rt,Xd,"ˇ","\\v");Re(di,rt,Xd,"¨",'\\"');Re(di,rt,Xd,"˝","\\H");Re(di,rt,Xd,"◯","\\textcircled");var gGn={"--":!0,"---":!0,"``":!0,"''":!0};Re(di,rt,Tn,"–","--",!0);Re(di,rt,Tn,"–","\\textendash");Re(di,rt,Tn,"—","---",!0);Re(di,rt,Tn,"—","\\textemdash");Re(di,rt,Tn,"‘","`",!0);Re(di,rt,Tn,"‘","\\textquoteleft");Re(di,rt,Tn,"’","'",!0);Re(di,rt,Tn,"’","\\textquoteright");Re(di,rt,Tn,"“","``",!0);Re(di,rt,Tn,"“","\\textquotedblleft");Re(di,rt,Tn,"”","''",!0);Re(di,rt,Tn,"”","\\textquotedblright");Re(Be,rt,Tn,"°","\\degree",!0);Re(di,rt,Tn,"°","\\degree");Re(di,rt,Tn,"°","\\textdegree",!0);Re(Be,rt,Tn,"£","\\pounds");Re(Be,rt,Tn,"£","\\mathsterling",!0);Re(di,rt,Tn,"£","\\pounds");Re(di,rt,Tn,"£","\\textsterling",!0);Re(Be,Wt,Tn,"✠","\\maltese");Re(di,Wt,Tn,"✠","\\maltese");var F_n='0123456789/@."';for(var _nt=0;_nt0)return I3(o,p,s,r,u.concat(m));if(f){var b,_;if(f==="boldsymbol"){var w=m3i(o,s,r,u,a);b=w.fontName,_=[w.fontClass]}else h?(b=yGn[f].fontName,_=[f]):(b=Ewe(f,r.fontWeight,r.fontShape),_=[f,r.fontWeight,r.fontShape]);if(qAe(o,b,s).metrics)return I3(o,b,s,r,u.concat(_));if(gGn.hasOwnProperty(o)&&b.slice(0,10)==="Typewriter"){for(var S=[],C=0;C{if(t9(e.classes)!==t9(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var a in e.style)if(e.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;for(var s in t.style)if(t.style.hasOwnProperty(s)&&e.style[s]!==t.style[s])return!1;return!0},v3i=e=>{for(var t=0;tr&&(r=u.height),u.depth>a&&(a=u.depth),u.maxFontSize>s&&(s=u.maxFontSize)}t.height=r,t.depth=a,t.maxFontSize=s},O2=function(t,r,a,s){var o=new yce(t,r,a,s);return Fpt(o),o},mGn=(e,t,r,a)=>new yce(e,t,r,a),_3i=function(t,r,a){var s=O2([t],[],r);return s.height=Math.max(a||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),s.style.borderBottomWidth=Qi(s.height),s.maxFontSize=1,s},w3i=function(t,r,a,s){var o=new Bpt(t,r,a,s);return Fpt(o),o},bGn=function(t){var r=new bce(t);return Fpt(r),r},E3i=function(t,r){return t instanceof bce?O2([],[t],r):t},x3i=function(t){if(t.positionType==="individualShift"){for(var r=t.children,a=[r[0]],s=-r[0].shift-r[0].elem.depth,o=s,u=1;u{var r=O2(["mspace"],[],t),a=Rf(e,t);return r.style.marginRight=Qi(a),r},Ewe=function(t,r,a){var s="";switch(t){case"amsrm":s="AMS";break;case"textrm":s="Main";break;case"textsf":s="SansSerif";break;case"texttt":s="Typewriter";break;default:s=t}var o;return r==="textbf"&&a==="textit"?o="BoldItalic":r==="textbf"?o="Bold":r==="textit"?o="Italic":o="Regular",s+"-"+o},yGn={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},vGn={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},C3i=function(t,r){var[a,s,o]=vGn[t],u=new n9(a),h=new aR([u],{width:Qi(s),height:Qi(o),style:"width:"+Qi(s),viewBox:"0 0 "+1e3*s+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),f=mGn(["overlay"],[h],r);return f.height=o,f.style.height=Qi(o),f.style.width=Qi(s),f},er={fontMap:yGn,makeSymbol:I3,mathsym:g3i,makeSpan:O2,makeSvgSpan:mGn,makeLineSpan:_3i,makeAnchor:w3i,makeFragment:bGn,wrapFragment:E3i,makeVList:S3i,makeOrd:b3i,makeGlue:T3i,staticSvg:C3i,svgData:vGn,tryCombineChars:v3i},Af={number:3,unit:"mu"},yB={number:4,unit:"mu"},X6={number:5,unit:"mu"},A3i={mord:{mop:Af,mbin:yB,mrel:X6,minner:Af},mop:{mord:Af,mop:Af,mrel:X6,minner:Af},mbin:{mord:yB,mop:yB,mopen:yB,minner:yB},mrel:{mord:X6,mop:X6,mopen:X6,minner:X6},mopen:{},mclose:{mop:Af,mbin:yB,mrel:X6,minner:Af},mpunct:{mord:Af,mop:Af,mrel:X6,mopen:Af,mclose:Af,mpunct:Af,minner:Af},minner:{mord:Af,mop:Af,mbin:yB,mrel:X6,mopen:Af,mpunct:Af,minner:Af}},k3i={mord:{mop:Af},mop:{mord:Af,mop:Af},mbin:{},mrel:{},mopen:{},mclose:{mop:Af},mpunct:{},minner:{mop:Af}},_Gn={},M3e={},P3e={};function ga(e){for(var{type:t,names:r,props:a,handler:s,htmlBuilder:o,mathmlBuilder:u}=e,h={type:t,numArgs:a.numArgs,argTypes:a.argTypes,allowedInArgument:!!a.allowedInArgument,allowedInText:!!a.allowedInText,allowedInMath:a.allowedInMath===void 0?!0:a.allowedInMath,numOptionalArgs:a.numOptionalArgs||0,infix:!!a.infix,primitive:!!a.primitive,handler:s},f=0;f{var A=C.classes[0],k=S.classes[0];A==="mbin"&&I3i.includes(k)?C.classes[0]="mord":k==="mbin"&&R3i.includes(A)&&(S.classes[0]="mord")},{node:b},_,w),q_n(o,(S,C)=>{var A=Wlt(C),k=Wlt(S),I=A&&k?S.hasClass("mtight")?k3i[A][k]:A3i[A][k]:null;if(I)return er.makeGlue(I,p)},{node:b},_,w),o},q_n=function e(t,r,a,s,o){s&&t.push(s);for(var u=0;u_=>{t.splice(b+1,0,_),u++})(u)}s&&t.pop()},wGn=function(t){return t instanceof bce||t instanceof Bpt||t instanceof yce&&t.hasClass("enclosing")?t:null},L3i=function e(t,r){var a=wGn(t);if(a){var s=a.children;if(s.length){if(r==="right")return e(s[s.length-1],"right");if(r==="left")return e(s[0],"left")}}return t},Wlt=function(t,r){return t?(r&&(t=L3i(t,r)),O3i[t.classes[0]]||null):null},Boe=function(t,r){var a=["nulldelimiter"].concat(t.baseSizingClasses());return sR(r.concat(a))},jc=function(t,r,a){if(!t)return sR();if(M3e[t.type]){var s=M3e[t.type](t,r);if(a&&r.size!==a.size){s=sR(r.sizingClasses(a),[s],r);var o=r.sizeMultiplier/a.sizeMultiplier;s.height*=o,s.depth*=o}return s}else throw new Ri("Got group of unknown type: '"+t.type+"'")};function xwe(e,t){var r=sR(["base"],e,t),a=sR(["strut"]);return a.style.height=Qi(r.height+r.depth),r.depth&&(a.style.verticalAlign=Qi(-r.depth)),r.children.unshift(a),r}function Klt(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var a=Lp(e,t,"root"),s;a.length===2&&a[1].hasClass("tag")&&(s=a.pop());for(var o=[],u=[],h=0;h0&&(o.push(xwe(u,t)),u=[]),o.push(a[h]));u.length>0&&o.push(xwe(u,t));var p;r?(p=xwe(Lp(r,t,!0)),p.classes=["tag"],o.push(p)):s&&o.push(s);var m=sR(["katex-html"],o);if(m.setAttribute("aria-hidden","true"),p){var b=p.children[0];b.style.height=Qi(m.height+m.depth),m.depth&&(b.style.verticalAlign=Qi(-m.depth))}return m}function EGn(e){return new bce(e)}class Nw{constructor(t,r,a){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=a||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=t9(this.classes));for(var a=0;a0&&(t+=' class ="'+hu.escape(t9(this.classes))+'"'),t+=">";for(var a=0;a",t}toText(){return this.children.map(t=>t.toText()).join("")}}class QC{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return hu.escape(this.toText())}toText(){return this.text}}class D3i{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Qi(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var Si={MathNode:Nw,TextNode:QC,SpaceNode:D3i,newDocumentFragment:EGn},SS=function(t,r,a){return td[r][t]&&td[r][t].replace&&t.charCodeAt(0)!==55349&&!(gGn.hasOwnProperty(t)&&a&&(a.fontFamily&&a.fontFamily.slice(4,6)==="tt"||a.font&&a.font.slice(4,6)==="tt"))&&(t=td[r][t].replace),new Si.TextNode(t)},$pt=function(t){return t.length===1?t[0]:new Si.MathNode("mrow",t)},Upt=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var a=r.font;if(!a||a==="mathnormal")return null;var s=t.mode;if(a==="mathit")return"italic";if(a==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(a==="mathbf")return"bold";if(a==="mathbb")return"double-struck";if(a==="mathsfit")return"sans-serif-italic";if(a==="mathfrak")return"fraktur";if(a==="mathscr"||a==="mathcal")return"script";if(a==="mathsf")return"sans-serif";if(a==="mathtt")return"monospace";var o=t.text;if(["\\imath","\\jmath"].includes(o))return null;td[s][o]&&td[s][o].replace&&(o=td[s][o].replace);var u=er.fontMap[a].fontName;return Ppt(o,u,s)?er.fontMap[a].variant:null};function Snt(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof QC&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof QC&&r.text===","}else return!1}var l_=function(t,r,a){if(t.length===1){var s=Bh(t[0],r);return a&&s instanceof Nw&&s.type==="mo"&&(s.setAttribute("lspace","0em"),s.setAttribute("rspace","0em")),[s]}for(var o=[],u,h=0;h=1&&(u.type==="mn"||Snt(u))){var p=f.children[0];p instanceof Nw&&p.type==="mn"&&(p.children=[...u.children,...p.children],o.pop())}else if(u.type==="mi"&&u.children.length===1){var m=u.children[0];if(m instanceof QC&&m.text==="̸"&&(f.type==="mo"||f.type==="mi"||f.type==="mn")){var b=f.children[0];b instanceof QC&&b.text.length>0&&(b.text=b.text.slice(0,1)+"̸"+b.text.slice(1),o.pop())}}}o.push(f),u=f}return o},r9=function(t,r,a){return $pt(l_(t,r,a))},Bh=function(t,r){if(!t)return new Si.MathNode("mrow");if(P3e[t.type]){var a=P3e[t.type](t,r);return a}else throw new Ri("Got group of unknown type: '"+t.type+"'")};function H_n(e,t,r,a,s){var o=l_(e,r),u;o.length===1&&o[0]instanceof Nw&&["mrow","mtable"].includes(o[0].type)?u=o[0]:u=new Si.MathNode("mrow",o);var h=new Si.MathNode("annotation",[new Si.TextNode(t)]);h.setAttribute("encoding","application/x-tex");var f=new Si.MathNode("semantics",[u,h]),p=new Si.MathNode("math",[f]);p.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&p.setAttribute("display","block");var m=s?"katex":"katex-mathml";return er.makeSpan([m],[p])}var xGn=function(t){return new p7({style:t.displayMode?Js.DISPLAY:Js.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},SGn=function(t,r){if(r.displayMode){var a=["katex-display"];r.leqno&&a.push("leqno"),r.fleqn&&a.push("fleqn"),t=er.makeSpan(a,[t])}return t},M3i=function(t,r,a){var s=xGn(a),o;if(a.output==="mathml")return H_n(t,r,s,a.displayMode,!0);if(a.output==="html"){var u=Klt(t,s);o=er.makeSpan(["katex"],[u])}else{var h=H_n(t,r,s,a.displayMode,!1),f=Klt(t,s);o=er.makeSpan(["katex"],[h,f])}return SGn(o,a)},P3i=function(t,r,a){var s=xGn(a),o=Klt(t,s),u=er.makeSpan(["katex"],[o]);return SGn(u,a)},B3i={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},F3i=function(t){var r=new Si.MathNode("mo",[new Si.TextNode(B3i[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},$3i={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},U3i=function(t){return t.type==="ordgroup"?t.body.length:1},z3i=function(t,r){function a(){var h=4e5,f=t.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(f)){var p=t,m=U3i(p.base),b,_,w;if(m>5)f==="widehat"||f==="widecheck"?(b=420,h=2364,w=.42,_=f+"4"):(b=312,h=2340,w=.34,_="tilde4");else{var S=[1,1,2,2,3,3][m];f==="widehat"||f==="widecheck"?(h=[0,1062,2364,2364,2364][S],b=[0,239,300,360,420][S],w=[0,.24,.3,.3,.36,.42][S],_=f+S):(h=[0,600,1033,2339,2340][S],b=[0,260,286,306,312][S],w=[0,.26,.286,.3,.306,.34][S],_="tilde"+S)}var C=new n9(_),A=new aR([C],{width:"100%",height:Qi(w),viewBox:"0 0 "+h+" "+b,preserveAspectRatio:"none"});return{span:er.makeSvgSpan([],[A],r),minWidth:0,height:w}}else{var k=[],I=$3i[f],[N,L,P]=I,M=P/1e3,F=N.length,U,$;if(F===1){var G=I[3];U=["hide-tail"],$=[G]}else if(F===2)U=["halfarrow-left","halfarrow-right"],$=["xMinYMin","xMaxYMin"];else if(F===3)U=["brace-left","brace-center","brace-right"],$=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support `+F+" children.");for(var B=0;B0&&(s.style.minWidth=Qi(o)),s},G3i=function(t,r,a,s,o){var u,h=t.height+t.depth+a+s;if(/fbox|color|angl/.test(r)){if(u=er.makeSpan(["stretchy",r],[],o),r==="fbox"){var f=o.color&&o.getColor();f&&(u.style.borderColor=f)}}else{var p=[];/^[bx]cancel$/.test(r)&&p.push(new Ylt({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&p.push(new Ylt({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var m=new aR(p,{width:"100%",height:Qi(h)});u=er.makeSvgSpan([],[m],o)}return u.height=h,u.style.height=Qi(h),u},oR={encloseSpan:G3i,mathMLnode:F3i,svgSpan:z3i};function xl(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function zpt(e){var t=HAe(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function HAe(e){return e&&(e.type==="atom"||f3i.hasOwnProperty(e.type))?e:null}var Gpt=(e,t)=>{var r,a,s;e&&e.type==="supsub"?(a=xl(e.base,"accent"),r=a.base,e.base=r,s=h3i(jc(e,t)),e.base=a):(a=xl(e,"accent"),r=a.base);var o=jc(r,t.havingCrampedStyle()),u=a.isShifty&&hu.isCharacterBox(r),h=0;if(u){var f=hu.getBaseElem(r),p=jc(f,t.havingCrampedStyle());h=B_n(p).skew}var m=a.label==="\\c",b=m?o.height+o.depth:Math.min(o.height,t.fontMetrics().xHeight),_;if(a.isStretchy)_=oR.svgSpan(a,t),_=er.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:_,wrapperClasses:["svg-align"],wrapperStyle:h>0?{width:"calc(100% - "+Qi(2*h)+")",marginLeft:Qi(2*h)}:void 0}]},t);else{var w,S;a.label==="\\vec"?(w=er.staticSvg("vec",t),S=er.svgData.vec[1]):(w=er.makeOrd({mode:a.mode,text:a.label},t,"textord"),w=B_n(w),w.italic=0,S=w.width,m&&(b+=w.depth)),_=er.makeSpan(["accent-body"],[w]);var C=a.label==="\\textcircled";C&&(_.classes.push("accent-full"),b=o.height);var A=h;C||(A-=S/2),_.style.left=Qi(A),a.label==="\\textcircled"&&(_.style.top=".2em"),_=er.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:-b},{type:"elem",elem:_}]},t)}var k=er.makeSpan(["mord","accent"],[_],t);return s?(s.children[0]=k,s.height=Math.max(k.height,s.height),s.classes[0]="mord",s):k},TGn=(e,t)=>{var r=e.isStretchy?oR.mathMLnode(e.label):new Si.MathNode("mo",[SS(e.label,e.mode)]),a=new Si.MathNode("mover",[Bh(e.base,t),r]);return a.setAttribute("accent","true"),a},q3i=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ga({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=B3e(t[0]),a=!q3i.test(e.funcName),s=!a||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:a,isShifty:s,base:r}},htmlBuilder:Gpt,mathmlBuilder:TGn});ga({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],a=e.parser.mode;return a==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Gpt,mathmlBuilder:TGn});ga({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0];return{type:"accentUnder",mode:r.mode,label:a,base:s}},htmlBuilder:(e,t)=>{var r=jc(e.base,t),a=oR.svgSpan(e,t),s=e.label==="\\utilde"?.12:0,o=er.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:s},{type:"elem",elem:r}]},t);return er.makeSpan(["mord","accentunder"],[o],t)},mathmlBuilder:(e,t)=>{var r=oR.mathMLnode(e.label),a=new Si.MathNode("munder",[Bh(e.base,t),r]);return a.setAttribute("accentunder","true"),a}});var Swe=e=>{var t=new Si.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ga({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a,funcName:s}=e;return{type:"xArrow",mode:a.mode,label:s,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,a=t.havingStyle(r.sup()),s=er.wrapFragment(jc(e.body,a,t),t),o=e.label.slice(0,2)==="\\x"?"x":"cd";s.classes.push(o+"-arrow-pad");var u;e.below&&(a=t.havingStyle(r.sub()),u=er.wrapFragment(jc(e.below,a,t),t),u.classes.push(o+"-arrow-pad"));var h=oR.svgSpan(e,t),f=-t.fontMetrics().axisHeight+.5*h.height,p=-t.fontMetrics().axisHeight-.5*h.height-.111;(s.depth>.25||e.label==="\\xleftequilibrium")&&(p-=s.depth);var m;if(u){var b=-t.fontMetrics().axisHeight+u.height+.5*h.height+.111;m=er.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:p},{type:"elem",elem:h,shift:f},{type:"elem",elem:u,shift:b}]},t)}else m=er.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:p},{type:"elem",elem:h,shift:f}]},t);return m.children[0].children[0].children[1].classes.push("svg-align"),er.makeSpan(["mrel","x-arrow"],[m],t)},mathmlBuilder(e,t){var r=oR.mathMLnode(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(e.body){var s=Swe(Bh(e.body,t));if(e.below){var o=Swe(Bh(e.below,t));a=new Si.MathNode("munderover",[r,o,s])}else a=new Si.MathNode("mover",[r,s])}else if(e.below){var u=Swe(Bh(e.below,t));a=new Si.MathNode("munder",[r,u])}else a=Swe(),a=new Si.MathNode("mover",[r,a]);return a}});var H3i=er.makeSpan;function CGn(e,t){var r=Lp(e.body,t,!0);return H3i([e.mclass],r,t)}function AGn(e,t){var r,a=l_(e.body,t);return e.mclass==="minner"?r=new Si.MathNode("mpadded",a):e.mclass==="mord"?e.isCharacterBox?(r=a[0],r.type="mi"):r=new Si.MathNode("mi",a):(e.isCharacterBox?(r=a[0],r.type="mo"):r=new Si.MathNode("mo",a),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}ga({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:a}=e,s=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+a.slice(5),body:Q0(s),isCharacterBox:hu.isCharacterBox(s)}},htmlBuilder:CGn,mathmlBuilder:AGn});var VAe=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ga({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:VAe(t[0]),body:Q0(t[1]),isCharacterBox:hu.isCharacterBox(t[1])}}});ga({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:a}=e,s=t[1],o=t[0],u;a!=="\\stackrel"?u=VAe(s):u="mrel";var h={type:"op",mode:s.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:Q0(s)},f={type:"supsub",mode:o.mode,base:h,sup:a==="\\underset"?null:o,sub:a==="\\underset"?o:null};return{type:"mclass",mode:r.mode,mclass:u,body:[f],isCharacterBox:hu.isCharacterBox(f)}},htmlBuilder:CGn,mathmlBuilder:AGn});ga({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:VAe(t[0]),body:Q0(t[0])}},htmlBuilder(e,t){var r=Lp(e.body,t,!0),a=er.makeSpan([e.mclass],r,t);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(e,t){var r=l_(e.body,t),a=new Si.MathNode("mstyle",r);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var V3i={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},V_n=()=>({type:"styling",body:[],mode:"math",style:"display"}),Y_n=e=>e.type==="textord"&&e.text==="@",Y3i=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function j3i(e,t,r){var a=V3i[e];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(a,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var s=r.callFunction("\\\\cdleft",[t[0]],[]),o={type:"atom",text:a,mode:"math",family:"rel"},u=r.callFunction("\\Big",[o],[]),h=r.callFunction("\\\\cdright",[t[1]],[]),f={type:"ordgroup",mode:"math",body:[s,u,h]};return r.callFunction("\\\\cdparent",[f],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var p={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[p],[])}default:return{type:"textord",text:" ",mode:"math"}}}function W3i(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Ri("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var a=[],s=[a],o=0;o-1))if("<>AV".indexOf(p)>-1)for(var b=0;b<2;b++){for(var _=!0,w=f+1;wAV=|." after @',u[f]);var S=j3i(p,m,e),C={type:"styling",body:[S],mode:"math",style:"display"};a.push(C),h=V_n()}o%2===0?a.push(h):a.shift(),a=[],s.push(a)}e.gullet.endGroup(),e.gullet.endGroup();var A=new Array(s[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:s,arraystretch:1,addJot:!0,rowGaps:[null],cols:A,colSeparationType:"CD",hLinesBeforeRow:new Array(s.length+1).fill([])}}ga({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"cdlabel",mode:r.mode,side:a.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),a=er.wrapFragment(jc(e.label,r,t),t);return a.classes.push("cd-label-"+e.side),a.style.bottom=Qi(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(e,t){var r=new Si.MathNode("mrow",[Bh(e.label,t)]);return r=new Si.MathNode("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new Si.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});ga({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=er.wrapFragment(jc(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new Si.MathNode("mrow",[Bh(e.fragment,t)])}});ga({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,a=xl(t[0],"ordgroup"),s=a.body,o="",u=0;u=1114111)throw new Ri("\\@char with invalid code point "+o);return f<=65535?p=String.fromCharCode(f):(f-=65536,p=String.fromCharCode((f>>10)+55296,(f&1023)+56320)),{type:"textord",mode:r.mode,text:p}}});var kGn=(e,t)=>{var r=Lp(e.body,t.withColor(e.color),!1);return er.makeFragment(r)},RGn=(e,t)=>{var r=l_(e.body,t.withColor(e.color)),a=new Si.MathNode("mstyle",r);return a.setAttribute("mathcolor",e.color),a};ga({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,a=xl(t[0],"color-token").color,s=t[1];return{type:"color",mode:r.mode,color:a,body:Q0(s)}},htmlBuilder:kGn,mathmlBuilder:RGn});ga({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:a}=e,s=xl(t[0],"color-token").color;r.gullet.macros.set("\\current@color",s);var o=r.parseExpression(!0,a);return{type:"color",mode:r.mode,color:s,body:o}},htmlBuilder:kGn,mathmlBuilder:RGn});ga({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:a}=e,s=a.gullet.future().text==="["?a.parseSizeGroup(!0):null,o=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:o,size:s&&xl(s,"size").value}},htmlBuilder(e,t){var r=er.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=Qi(Rf(e.size,t)))),r},mathmlBuilder(e,t){var r=new Si.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",Qi(Rf(e.size,t)))),r}});var Xlt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},IGn=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Ri("Expected a control sequence",e);return t},K3i=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},NGn=(e,t,r,a)=>{var s=e.gullet.macros.get(r.text);s==null&&(r.noexpand=!0,s={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,s,a)};ga({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var a=t.fetch();if(Xlt[a.text])return(r==="\\global"||r==="\\\\globallong")&&(a.text=Xlt[a.text]),xl(t.parseFunction(),"internal");throw new Ri("Invalid token after macro prefix",a)}});ga({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=t.gullet.popToken(),s=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(s))throw new Ri("Expected a control sequence",a);for(var o=0,u,h=[[]];t.gullet.future().text!=="{";)if(a=t.gullet.popToken(),a.text==="#"){if(t.gullet.future().text==="{"){u=t.gullet.future(),h[o].push("{");break}if(a=t.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new Ri('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==o+1)throw new Ri('Argument number "'+a.text+'" out of order');o++,h.push([])}else{if(a.text==="EOF")throw new Ri("Expected a macro definition");h[o].push(a.text)}var{tokens:f}=t.gullet.consumeArg();return u&&f.unshift(u),(r==="\\edef"||r==="\\xdef")&&(f=t.gullet.expandTokens(f),f.reverse()),t.gullet.macros.set(s,{tokens:f,numArgs:o,delimiters:h},r===Xlt[r]),{type:"internal",mode:t.mode}}});ga({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=IGn(t.gullet.popToken());t.gullet.consumeSpaces();var s=K3i(t);return NGn(t,a,s,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});ga({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=IGn(t.gullet.popToken()),s=t.gullet.popToken(),o=t.gullet.popToken();return NGn(t,a,o,r==="\\\\globalfuture"),t.gullet.pushToken(o),t.gullet.pushToken(s),{type:"internal",mode:t.mode}}});var Hie=function(t,r,a){var s=td.math[t]&&td.math[t].replace,o=Ppt(s||t,r,a);if(!o)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return o},qpt=function(t,r,a,s){var o=a.havingBaseStyle(r),u=er.makeSpan(s.concat(o.sizingClasses(a)),[t],a),h=o.sizeMultiplier/a.sizeMultiplier;return u.height*=h,u.depth*=h,u.maxFontSize=o.sizeMultiplier,u},OGn=function(t,r,a){var s=r.havingBaseStyle(a),o=(1-r.sizeMultiplier/s.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Qi(o),t.height-=o,t.depth+=o},X3i=function(t,r,a,s,o,u){var h=er.makeSymbol(t,"Main-Regular",o,s),f=qpt(h,r,s,u);return a&&OGn(f,s,r),f},Q3i=function(t,r,a,s){return er.makeSymbol(t,"Size"+r+"-Regular",a,s)},LGn=function(t,r,a,s,o,u){var h=Q3i(t,r,o,s),f=qpt(er.makeSpan(["delimsizing","size"+r],[h],s),Js.TEXT,s,u);return a&&OGn(f,s,Js.TEXT),f},Tnt=function(t,r,a){var s;r==="Size1-Regular"?s="delim-size1":s="delim-size4";var o=er.makeSpan(["delimsizinginner",s],[er.makeSpan([],[er.makeSymbol(t,r,a)])]);return{type:"elem",elem:o}},Cnt=function(t,r,a){var s=XC["Size4-Regular"][t.charCodeAt(0)]?XC["Size4-Regular"][t.charCodeAt(0)][4]:XC["Size1-Regular"][t.charCodeAt(0)][4],o=new n9("inner",r3i(t,Math.round(1e3*r))),u=new aR([o],{width:Qi(s),height:Qi(r),style:"width:"+Qi(s),viewBox:"0 0 "+1e3*s+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),h=er.makeSvgSpan([],[u],a);return h.height=r,h.style.height=Qi(r),h.style.width=Qi(s),{type:"elem",elem:h}},Qlt=.008,Twe={type:"kern",size:-1*Qlt},Z3i=["|","\\lvert","\\rvert","\\vert"],J3i=["\\|","\\lVert","\\rVert","\\Vert"],DGn=function(t,r,a,s,o,u){var h,f,p,m,b="",_=0;h=p=m=t,f=null;var w="Size1-Regular";t==="\\uparrow"?p=m="⏐":t==="\\Uparrow"?p=m="‖":t==="\\downarrow"?h=p="⏐":t==="\\Downarrow"?h=p="‖":t==="\\updownarrow"?(h="\\uparrow",p="⏐",m="\\downarrow"):t==="\\Updownarrow"?(h="\\Uparrow",p="‖",m="\\Downarrow"):Z3i.includes(t)?(p="∣",b="vert",_=333):J3i.includes(t)?(p="∥",b="doublevert",_=556):t==="["||t==="\\lbrack"?(h="⎡",p="⎢",m="⎣",w="Size4-Regular",b="lbrack",_=667):t==="]"||t==="\\rbrack"?(h="⎤",p="⎥",m="⎦",w="Size4-Regular",b="rbrack",_=667):t==="\\lfloor"||t==="⌊"?(p=h="⎢",m="⎣",w="Size4-Regular",b="lfloor",_=667):t==="\\lceil"||t==="⌈"?(h="⎡",p=m="⎢",w="Size4-Regular",b="lceil",_=667):t==="\\rfloor"||t==="⌋"?(p=h="⎥",m="⎦",w="Size4-Regular",b="rfloor",_=667):t==="\\rceil"||t==="⌉"?(h="⎤",p=m="⎥",w="Size4-Regular",b="rceil",_=667):t==="("||t==="\\lparen"?(h="⎛",p="⎜",m="⎝",w="Size4-Regular",b="lparen",_=875):t===")"||t==="\\rparen"?(h="⎞",p="⎟",m="⎠",w="Size4-Regular",b="rparen",_=875):t==="\\{"||t==="\\lbrace"?(h="⎧",f="⎨",m="⎩",p="⎪",w="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(h="⎫",f="⎬",m="⎭",p="⎪",w="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(h="⎧",m="⎩",p="⎪",w="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(h="⎫",m="⎭",p="⎪",w="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(h="⎧",m="⎭",p="⎪",w="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(h="⎫",m="⎩",p="⎪",w="Size4-Regular");var S=Hie(h,w,o),C=S.height+S.depth,A=Hie(p,w,o),k=A.height+A.depth,I=Hie(m,w,o),N=I.height+I.depth,L=0,P=1;if(f!==null){var M=Hie(f,w,o);L=M.height+M.depth,P=2}var F=C+N+L,U=Math.max(0,Math.ceil((r-F)/(P*k))),$=F+U*P*k,G=s.fontMetrics().axisHeight;a&&(G*=s.sizeMultiplier);var B=$/2-G,Z=[];if(b.length>0){var z=$-C-N,Y=Math.round($*1e3),W=i3i(b,Math.round(z*1e3)),Q=new n9(b,W),V=(_/1e3).toFixed(3)+"em",j=(Y/1e3).toFixed(3)+"em",ee=new aR([Q],{width:V,height:j,viewBox:"0 0 "+_+" "+Y}),te=er.makeSvgSpan([],[ee],s);te.height=Y/1e3,te.style.width=V,te.style.height=j,Z.push({type:"elem",elem:te})}else{if(Z.push(Tnt(m,w,o)),Z.push(Twe),f===null){var ne=$-C-N+2*Qlt;Z.push(Cnt(p,ne,s))}else{var se=($-C-N-L)/2+2*Qlt;Z.push(Cnt(p,se,s)),Z.push(Twe),Z.push(Tnt(f,w,o)),Z.push(Twe),Z.push(Cnt(p,se,s))}Z.push(Twe),Z.push(Tnt(h,w,o))}var ie=s.havingBaseStyle(Js.TEXT),ge=er.makeVList({positionType:"bottom",positionData:B,children:Z},ie);return qpt(er.makeSpan(["delimsizing","mult"],[ge],ie),Js.TEXT,s,u)},Ant=80,knt=.08,Rnt=function(t,r,a,s,o){var u=n3i(t,s,a),h=new n9(t,u),f=new aR([h],{width:"400em",height:Qi(r),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return er.makeSvgSpan(["hide-tail"],[f],o)},eTi=function(t,r){var a=r.havingBaseSizing(),s=FGn("\\surd",t*a.sizeMultiplier,BGn,a),o=a.sizeMultiplier,u=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),h,f=0,p=0,m=0,b;return s.type==="small"?(m=1e3+1e3*u+Ant,t<1?o=1:t<1.4&&(o=.7),f=(1+u+knt)/o,p=(1+u)/o,h=Rnt("sqrtMain",f,m,u,r),h.style.minWidth="0.853em",b=.833/o):s.type==="large"?(m=(1e3+Ant)*Ese[s.size],p=(Ese[s.size]+u)/o,f=(Ese[s.size]+u+knt)/o,h=Rnt("sqrtSize"+s.size,f,m,u,r),h.style.minWidth="1.02em",b=1/o):(f=t+u+knt,p=t+u,m=Math.floor(1e3*t+u)+Ant,h=Rnt("sqrtTall",f,m,u,r),h.style.minWidth="0.742em",b=1.056),h.height=p,h.style.height=Qi(f),{span:h,advanceWidth:b,ruleWidth:(r.fontMetrics().sqrtRuleThickness+u)*o}},MGn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],tTi=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],PGn=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Ese=[0,1.2,1.8,2.4,3],nTi=function(t,r,a,s,o){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),MGn.includes(t)||PGn.includes(t))return LGn(t,r,!1,a,s,o);if(tTi.includes(t))return DGn(t,Ese[r],!1,a,s,o);throw new Ri("Illegal delimiter: '"+t+"'")},rTi=[{type:"small",style:Js.SCRIPTSCRIPT},{type:"small",style:Js.SCRIPT},{type:"small",style:Js.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],iTi=[{type:"small",style:Js.SCRIPTSCRIPT},{type:"small",style:Js.SCRIPT},{type:"small",style:Js.TEXT},{type:"stack"}],BGn=[{type:"small",style:Js.SCRIPTSCRIPT},{type:"small",style:Js.SCRIPT},{type:"small",style:Js.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],aTi=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},FGn=function(t,r,a,s){for(var o=Math.min(2,3-s.style.size),u=o;ur)return a[u]}return a[a.length-1]},$Gn=function(t,r,a,s,o,u){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var h;PGn.includes(t)?h=rTi:MGn.includes(t)?h=BGn:h=iTi;var f=FGn(t,r,h,s);return f.type==="small"?X3i(t,f.style,a,s,o,u):f.type==="large"?LGn(t,f.size,a,s,o,u):DGn(t,r,a,s,o,u)},sTi=function(t,r,a,s,o,u){var h=s.fontMetrics().axisHeight*s.sizeMultiplier,f=901,p=5/s.fontMetrics().ptPerEm,m=Math.max(r-h,a+h),b=Math.max(m/500*f,2*m-p);return $Gn(t,b,!0,s,o,u)},q7={sqrtImage:eTi,sizedDelim:nTi,sizeToMaxHeight:Ese,customSizedDelim:$Gn,leftRightDelim:sTi},j_n={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},oTi=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function YAe(e,t){var r=HAe(e);if(r&&oTi.includes(r.text))return r;throw r?new Ri("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new Ri("Invalid delimiter type '"+e.type+"'",e)}ga({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=YAe(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:j_n[e.funcName].size,mclass:j_n[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?er.makeSpan([e.mclass]):q7.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(SS(e.delim,e.mode));var r=new Si.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var a=Qi(q7.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",a),r.setAttribute("maxsize",a),r}});function W_n(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ga({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new Ri("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:YAe(t[0],e).text,color:r}}});ga({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=YAe(t[0],e),a=e.parser;++a.leftrightDepth;var s=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var o=xl(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:s,left:r.text,right:o.delim,rightColor:o.color}},htmlBuilder:(e,t)=>{W_n(e);for(var r=Lp(e.body,t,!0,["mopen","mclose"]),a=0,s=0,o=!1,u=0;u{W_n(e);var r=l_(e.body,t);if(e.left!=="."){var a=new Si.MathNode("mo",[SS(e.left,e.mode)]);a.setAttribute("fence","true"),r.unshift(a)}if(e.right!=="."){var s=new Si.MathNode("mo",[SS(e.right,e.mode)]);s.setAttribute("fence","true"),e.rightColor&&s.setAttribute("mathcolor",e.rightColor),r.push(s)}return $pt(r)}});ga({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=YAe(t[0],e);if(!e.parser.leftrightDepth)throw new Ri("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=Boe(t,[]);else{r=q7.sizedDelim(e.delim,1,t,e.mode,[]);var a={delim:e.delim,options:t};r.isMiddle=a}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?SS("|","text"):SS(e.delim,e.mode),a=new Si.MathNode("mo",[r]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var Hpt=(e,t)=>{var r=er.wrapFragment(jc(e.body,t),t),a=e.label.slice(1),s=t.sizeMultiplier,o,u=0,h=hu.isCharacterBox(e.body);if(a==="sout")o=er.makeSpan(["stretchy","sout"]),o.height=t.fontMetrics().defaultRuleThickness/s,u=-.5*t.fontMetrics().xHeight;else if(a==="phase"){var f=Rf({number:.6,unit:"pt"},t),p=Rf({number:.35,unit:"ex"},t),m=t.havingBaseSizing();s=s/m.sizeMultiplier;var b=r.height+r.depth+f+p;r.style.paddingLeft=Qi(b/2+f);var _=Math.floor(1e3*b*s),w=e3i(_),S=new aR([new n9("phase",w)],{width:"400em",height:Qi(_/1e3),viewBox:"0 0 400000 "+_,preserveAspectRatio:"xMinYMin slice"});o=er.makeSvgSpan(["hide-tail"],[S],t),o.style.height=Qi(b),u=r.depth+f+p}else{/cancel/.test(a)?h||r.classes.push("cancel-pad"):a==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var C=0,A=0,k=0;/box/.test(a)?(k=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),C=t.fontMetrics().fboxsep+(a==="colorbox"?0:k),A=C):a==="angl"?(k=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),C=4*k,A=Math.max(0,.25-r.depth)):(C=h?.2:0,A=C),o=oR.encloseSpan(r,a,C,A,t),/fbox|boxed|fcolorbox/.test(a)?(o.style.borderStyle="solid",o.style.borderWidth=Qi(k)):a==="angl"&&k!==.049&&(o.style.borderTopWidth=Qi(k),o.style.borderRightWidth=Qi(k)),u=r.depth+A,e.backgroundColor&&(o.style.backgroundColor=e.backgroundColor,e.borderColor&&(o.style.borderColor=e.borderColor))}var I;if(e.backgroundColor)I=er.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:r,shift:0}]},t);else{var N=/cancel|phase/.test(a)?["svg-align"]:[];I=er.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:o,shift:u,wrapperClasses:N}]},t)}return/cancel/.test(a)&&(I.height=r.height,I.depth=r.depth),/cancel/.test(a)&&!h?er.makeSpan(["mord","cancel-lap"],[I],t):er.makeSpan(["mord"],[I],t)},Vpt=(e,t)=>{var r=0,a=new Si.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Bh(e.body,t)]);switch(e.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*r+"pt"),a.setAttribute("height","+"+2*r+"pt"),a.setAttribute("lspace",r+"pt"),a.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var s=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);a.setAttribute("style","border: "+s+"em solid "+String(e.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&a.setAttribute("mathbackground",e.backgroundColor),a};ga({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:a,funcName:s}=e,o=xl(t[0],"color-token").color,u=t[1];return{type:"enclose",mode:a.mode,label:s,backgroundColor:o,body:u}},htmlBuilder:Hpt,mathmlBuilder:Vpt});ga({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:a,funcName:s}=e,o=xl(t[0],"color-token").color,u=xl(t[1],"color-token").color,h=t[2];return{type:"enclose",mode:a.mode,label:s,backgroundColor:u,borderColor:o,body:h}},htmlBuilder:Hpt,mathmlBuilder:Vpt});ga({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});ga({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e,s=t[0];return{type:"enclose",mode:r.mode,label:a,body:s}},htmlBuilder:Hpt,mathmlBuilder:Vpt});ga({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var UGn={};function LA(e){for(var{type:t,names:r,props:a,handler:s,htmlBuilder:o,mathmlBuilder:u}=e,h={type:t,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:s},f=0;f{var t=e.parser.settings;if(!t.displayMode)throw new Ri("{"+e.envName+"} can be used only in display mode.")};function Ypt(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function q9(e,t,r){var{hskipBeforeAndAfter:a,addJot:s,cols:o,arraystretch:u,colSeparationType:h,autoTag:f,singleRow:p,emptySingleRow:m,maxNumCols:b,leqno:_}=t;if(e.gullet.beginGroup(),p||e.gullet.macros.set("\\cr","\\\\\\relax"),!u){var w=e.gullet.expandMacroAsText("\\arraystretch");if(w==null)u=1;else if(u=parseFloat(w),!u||u<0)throw new Ri("Invalid \\arraystretch: "+w)}e.gullet.beginGroup();var S=[],C=[S],A=[],k=[],I=f!=null?[]:void 0;function N(){f&&e.gullet.macros.set("\\@eqnsw","1",!0)}function L(){I&&(e.gullet.macros.get("\\df@tag")?(I.push(e.subparse([new Pw("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):I.push(!!f&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(N(),k.push(K_n(e));;){var P=e.parseExpression(!1,p?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),P={type:"ordgroup",mode:e.mode,body:P},r&&(P={type:"styling",mode:e.mode,style:r,body:[P]}),S.push(P);var M=e.fetch().text;if(M==="&"){if(b&&S.length===b){if(p||h)throw new Ri("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(M==="\\end"){L(),S.length===1&&P.type==="styling"&&P.body[0].body.length===0&&(C.length>1||!m)&&C.pop(),k.length0&&(N+=.25),p.push({pos:N,isDashed:Oe[Dt]})}for(L(u[0]),a=0;a0&&(B+=I,FOe))for(a=0;a=h)){var ve=void 0;(s>0||t.hskipBeforeAndAfter)&&(ve=hu.deflt(se.pregap,_),ve!==0&&(W=er.makeSpan(["arraycolsep"],[]),W.style.width=Qi(ve),Y.push(W)));var De=[];for(a=0;a0){for(var we=er.makeLineSpan("hline",r,m),Ce=er.makeLineSpan("hdashline",r,m),Ie=[{type:"elem",elem:f,shift:0}];p.length>0;){var Le=p.pop(),Fe=Le.pos-Z;Le.isDashed?Ie.push({type:"elem",elem:Ce,shift:Fe}):Ie.push({type:"elem",elem:we,shift:Fe})}f=er.makeVList({positionType:"individualShift",children:Ie},r)}if(V.length===0)return er.makeSpan(["mord"],[f],r);var Ve=er.makeVList({positionType:"individualShift",children:V},r);return Ve=er.makeSpan(["tag"],[Ve],r),er.makeFragment([f,Ve])},lTi={c:"center ",l:"left ",r:"right "},MA=function(t,r){for(var a=[],s=new Si.MathNode("mtd",[],["mtr-glue"]),o=new Si.MathNode("mtd",[],["mml-eqn-num"]),u=0;u0){var S=t.cols,C="",A=!1,k=0,I=S.length;S[0].type==="separator"&&(_+="top ",k=1),S[S.length-1].type==="separator"&&(_+="bottom ",I-=1);for(var N=k;N0?"left ":"",_+=U[U.length-1].length>0?"right ":"";for(var $=1;$-1?"alignat":"align",o=t.envName==="split",u=q9(t.parser,{cols:a,addJot:!0,autoTag:o?void 0:Ypt(t.envName),emptySingleRow:!0,colSeparationType:s,maxNumCols:o?2:void 0,leqno:t.parser.settings.leqno},"display"),h,f=0,p={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var m="",b=0;b0&&w&&(A=1),a[S]={type:"align",align:C,pregap:A,postgap:0}}return u.colSeparationType=w?"align":"alignat",u};LA({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=HAe(t[0]),a=r?[t[0]]:xl(t[0],"ordgroup").body,s=a.map(function(u){var h=zpt(u),f=h.text;if("lcr".indexOf(f)!==-1)return{type:"align",align:f};if(f==="|")return{type:"separator",separator:"|"};if(f===":")return{type:"separator",separator:":"};throw new Ri("Unknown column alignment: "+f,u)}),o={cols:s,hskipBeforeAndAfter:!0,maxNumCols:s.length};return q9(e.parser,o,jpt(e.envName))},htmlBuilder:DA,mathmlBuilder:MA});LA({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var s=e.parser;if(s.consumeSpaces(),s.fetch().text==="["){if(s.consume(),s.consumeSpaces(),r=s.fetch().text,"lcr".indexOf(r)===-1)throw new Ri("Expected l or c or r",s.nextToken);s.consume(),s.consumeSpaces(),s.expect("]"),s.consume(),a.cols=[{type:"align",align:r}]}}var o=q9(e.parser,a,jpt(e.envName)),u=Math.max(0,...o.body.map(h=>h.length));return o.cols=new Array(u).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[o],left:t[0],right:t[1],rightColor:void 0}:o},htmlBuilder:DA,mathmlBuilder:MA});LA({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=q9(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:DA,mathmlBuilder:MA});LA({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=HAe(t[0]),a=r?[t[0]]:xl(t[0],"ordgroup").body,s=a.map(function(u){var h=zpt(u),f=h.text;if("lc".indexOf(f)!==-1)return{type:"align",align:f};throw new Ri("Unknown column alignment: "+f,u)});if(s.length>1)throw new Ri("{subarray} can contain only one column");var o={cols:s,hskipBeforeAndAfter:!1,arraystretch:.5};if(o=q9(e.parser,o,"script"),o.body.length>0&&o.body[0].length>1)throw new Ri("{subarray} can contain only one column");return o},htmlBuilder:DA,mathmlBuilder:MA});LA({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=q9(e.parser,t,jpt(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:DA,mathmlBuilder:MA});LA({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:GGn,htmlBuilder:DA,mathmlBuilder:MA});LA({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&jAe(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Ypt(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return q9(e.parser,t,"display")},htmlBuilder:DA,mathmlBuilder:MA});LA({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:GGn,htmlBuilder:DA,mathmlBuilder:MA});LA({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){jAe(e);var t={autoTag:Ypt(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return q9(e.parser,t,"display")},htmlBuilder:DA,mathmlBuilder:MA});LA({type:"array",names:["CD"],props:{numArgs:0},handler(e){return jAe(e),W3i(e.parser)},htmlBuilder:DA,mathmlBuilder:MA});pt("\\nonumber","\\gdef\\@eqnsw{0}");pt("\\notag","\\nonumber");ga({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Ri(e.funcName+" valid only within array environment")}});var X_n=UGn;ga({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:a}=e,s=t[0];if(s.type!=="ordgroup")throw new Ri("Invalid environment name",s);for(var o="",u=0;u{var r=e.font,a=t.withFont(r);return jc(e.body,a)},HGn=(e,t)=>{var r=e.font,a=t.withFont(r);return Bh(e.body,a)},Q_n={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ga({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=B3e(t[0]),o=a;return o in Q_n&&(o=Q_n[o]),{type:"font",mode:r.mode,font:o.slice(1),body:s}},htmlBuilder:qGn,mathmlBuilder:HGn});ga({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,a=t[0],s=hu.isCharacterBox(a);return{type:"mclass",mode:r.mode,mclass:VAe(a),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:a}],isCharacterBox:s}}});ga({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a,breakOnTokenText:s}=e,{mode:o}=r,u=r.parseExpression(!0,s),h="math"+a.slice(1);return{type:"font",mode:o,font:h,body:{type:"ordgroup",mode:r.mode,body:u}}},htmlBuilder:qGn,mathmlBuilder:HGn});var VGn=(e,t)=>{var r=t;return e==="display"?r=r.id>=Js.SCRIPT.id?r.text():Js.DISPLAY:e==="text"&&r.size===Js.DISPLAY.size?r=Js.TEXT:e==="script"?r=Js.SCRIPT:e==="scriptscript"&&(r=Js.SCRIPTSCRIPT),r},Wpt=(e,t)=>{var r=VGn(e.size,t.style),a=r.fracNum(),s=r.fracDen(),o;o=t.havingStyle(a);var u=jc(e.numer,o,t);if(e.continued){var h=8.5/t.fontMetrics().ptPerEm,f=3.5/t.fontMetrics().ptPerEm;u.height=u.height0?S=3*_:S=7*_,C=t.fontMetrics().denom1):(b>0?(w=t.fontMetrics().num2,S=_):(w=t.fontMetrics().num3,S=3*_),C=t.fontMetrics().denom2);var A;if(m){var I=t.fontMetrics().axisHeight;w-u.depth-(I+.5*b){var r=new Si.MathNode("mfrac",[Bh(e.numer,t),Bh(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var a=Rf(e.barSize,t);r.setAttribute("linethickness",Qi(a))}var s=VGn(e.size,t.style);if(s.size!==t.style.size){r=new Si.MathNode("mstyle",[r]);var o=s.size===Js.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",o),r.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var u=[];if(e.leftDelim!=null){var h=new Si.MathNode("mo",[new Si.TextNode(e.leftDelim.replace("\\",""))]);h.setAttribute("fence","true"),u.push(h)}if(u.push(r),e.rightDelim!=null){var f=new Si.MathNode("mo",[new Si.TextNode(e.rightDelim.replace("\\",""))]);f.setAttribute("fence","true"),u.push(f)}return $pt(u)}return r};ga({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0],o=t[1],u,h=null,f=null,p="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":u=!0;break;case"\\\\atopfrac":u=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":u=!1,h="(",f=")";break;case"\\\\bracefrac":u=!1,h="\\{",f="\\}";break;case"\\\\brackfrac":u=!1,h="[",f="]";break;default:throw new Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":p="display";break;case"\\tfrac":case"\\tbinom":p="text";break}return{type:"genfrac",mode:r.mode,continued:!1,numer:s,denom:o,hasBarLine:u,leftDelim:h,rightDelim:f,size:p,barSize:null}},htmlBuilder:Wpt,mathmlBuilder:Kpt});ga({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0],o=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:s,denom:o,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});ga({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:a}=e,s;switch(r){case"\\over":s="\\frac";break;case"\\choose":s="\\binom";break;case"\\atop":s="\\\\atopfrac";break;case"\\brace":s="\\\\bracefrac";break;case"\\brack":s="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:s,token:a}}});var Z_n=["display","text","script","scriptscript"],J_n=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};ga({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,a=t[4],s=t[5],o=B3e(t[0]),u=o.type==="atom"&&o.family==="open"?J_n(o.text):null,h=B3e(t[1]),f=h.type==="atom"&&h.family==="close"?J_n(h.text):null,p=xl(t[2],"size"),m,b=null;p.isBlank?m=!0:(b=p.value,m=b.number>0);var _="auto",w=t[3];if(w.type==="ordgroup"){if(w.body.length>0){var S=xl(w.body[0],"textord");_=Z_n[Number(S.text)]}}else w=xl(w,"textord"),_=Z_n[Number(w.text)];return{type:"genfrac",mode:r.mode,numer:a,denom:s,continued:!1,hasBarLine:m,barSize:b,leftDelim:u,rightDelim:f,size:_}},htmlBuilder:Wpt,mathmlBuilder:Kpt});ga({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:a,token:s}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:xl(t[0],"size").value,token:s}}});ga({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0],o=$4i(xl(t[1],"infix").size),u=t[2],h=o.number>0;return{type:"genfrac",mode:r.mode,numer:s,denom:u,continued:!1,hasBarLine:h,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Wpt,mathmlBuilder:Kpt});var YGn=(e,t)=>{var r=t.style,a,s;e.type==="supsub"?(a=e.sup?jc(e.sup,t.havingStyle(r.sup()),t):jc(e.sub,t.havingStyle(r.sub()),t),s=xl(e.base,"horizBrace")):s=xl(e,"horizBrace");var o=jc(s.base,t.havingBaseStyle(Js.DISPLAY)),u=oR.svgSpan(s,t),h;if(s.isOver?(h=er.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:u}]},t),h.children[0].children[0].children[1].classes.push("svg-align")):(h=er.makeVList({positionType:"bottom",positionData:o.depth+.1+u.height,children:[{type:"elem",elem:u},{type:"kern",size:.1},{type:"elem",elem:o}]},t),h.children[0].children[0].children[0].classes.push("svg-align")),a){var f=er.makeSpan(["mord",s.isOver?"mover":"munder"],[h],t);s.isOver?h=er.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"kern",size:.2},{type:"elem",elem:a}]},t):h=er.makeVList({positionType:"bottom",positionData:f.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:f}]},t)}return er.makeSpan(["mord",s.isOver?"mover":"munder"],[h],t)},cTi=(e,t)=>{var r=oR.mathMLnode(e.label);return new Si.MathNode(e.isOver?"mover":"munder",[Bh(e.base,t),r])};ga({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"horizBrace",mode:r.mode,label:a,isOver:/^\\over/.test(a),base:t[0]}},htmlBuilder:YGn,mathmlBuilder:cTi});ga({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[1],s=xl(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:s})?{type:"href",mode:r.mode,href:s,body:Q0(a)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Lp(e.body,t,!1);return er.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=r9(e.body,t);return r instanceof Nw||(r=new Nw("mrow",[r])),r.setAttribute("href",e.href),r}});ga({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=xl(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:a}))return r.formatUnsupportedCmd("\\url");for(var s=[],o=0;o{var{parser:r,funcName:a,token:s}=e,o=xl(t[0],"raw").string,u=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var h,f={};switch(a){case"\\htmlClass":f.class=o,h={command:"\\htmlClass",class:o};break;case"\\htmlId":f.id=o,h={command:"\\htmlId",id:o};break;case"\\htmlStyle":f.style=o,h={command:"\\htmlStyle",style:o};break;case"\\htmlData":{for(var p=o.split(","),m=0;m{var r=Lp(e.body,t,!1),a=["enclosing"];e.attributes.class&&a.push(...e.attributes.class.trim().split(/\s+/));var s=er.makeSpan(a,r,t);for(var o in e.attributes)o!=="class"&&e.attributes.hasOwnProperty(o)&&s.setAttribute(o,e.attributes[o]);return s},mathmlBuilder:(e,t)=>r9(e.body,t)});ga({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:Q0(t[0]),mathml:Q0(t[1])}},htmlBuilder:(e,t)=>{var r=Lp(e.html,t,!1);return er.makeFragment(r)},mathmlBuilder:(e,t)=>r9(e.mathml,t)});var Int=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new Ri("Invalid size: '"+t+"' in \\includegraphics");var a={number:+(r[1]+r[2]),unit:r[3]};if(!hGn(a))throw new Ri("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a};ga({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:a}=e,s={number:0,unit:"em"},o={number:.9,unit:"em"},u={number:0,unit:"em"},h="";if(r[0])for(var f=xl(r[0],"raw").string,p=f.split(","),m=0;m{var r=Rf(e.height,t),a=0;e.totalheight.number>0&&(a=Rf(e.totalheight,t)-r);var s=0;e.width.number>0&&(s=Rf(e.width,t));var o={height:Qi(r+a)};s>0&&(o.width=Qi(s)),a>0&&(o.verticalAlign=Qi(-a));var u=new c3i(e.src,e.alt,o);return u.height=r,u.depth=a,u},mathmlBuilder:(e,t)=>{var r=new Si.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var a=Rf(e.height,t),s=0;if(e.totalheight.number>0&&(s=Rf(e.totalheight,t)-a,r.setAttribute("valign",Qi(-s))),r.setAttribute("height",Qi(a+s)),e.width.number>0){var o=Rf(e.width,t);r.setAttribute("width",Qi(o))}return r.setAttribute("src",e.src),r}});ga({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,s=xl(t[0],"size");if(r.settings.strict){var o=a[1]==="m",u=s.value.unit==="mu";o?(u||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+s.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):u&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:s.value}},htmlBuilder(e,t){return er.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var r=Rf(e.dimension,t);return new Si.SpaceNode(r)}});ga({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0];return{type:"lap",mode:r.mode,alignment:a.slice(5),body:s}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=er.makeSpan([],[jc(e.body,t)]),r=er.makeSpan(["inner"],[r],t)):r=er.makeSpan(["inner"],[jc(e.body,t)]);var a=er.makeSpan(["fix"],[]),s=er.makeSpan([e.alignment],[r,a],t),o=er.makeSpan(["strut"]);return o.style.height=Qi(s.height+s.depth),s.depth&&(o.style.verticalAlign=Qi(-s.depth)),s.children.unshift(o),s=er.makeSpan(["thinbox"],[s],t),er.makeSpan(["mord","vbox"],[s],t)},mathmlBuilder:(e,t)=>{var r=new Si.MathNode("mpadded",[Bh(e.body,t)]);if(e.alignment!=="rlap"){var a=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",a+"width")}return r.setAttribute("width","0px"),r}});ga({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:a}=e,s=a.mode;a.switchMode("math");var o=r==="\\("?"\\)":"$",u=a.parseExpression(!1,o);return a.expect(o),a.switchMode(s),{type:"styling",mode:a.mode,style:"text",body:u}}});ga({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Ri("Mismatched "+e.funcName)}});var ewn=(e,t)=>{switch(t.style.size){case Js.DISPLAY.size:return e.display;case Js.TEXT.size:return e.text;case Js.SCRIPT.size:return e.script;case Js.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ga({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:Q0(t[0]),text:Q0(t[1]),script:Q0(t[2]),scriptscript:Q0(t[3])}},htmlBuilder:(e,t)=>{var r=ewn(e,t),a=Lp(r,t,!1);return er.makeFragment(a)},mathmlBuilder:(e,t)=>{var r=ewn(e,t);return r9(r,t)}});var jGn=(e,t,r,a,s,o,u)=>{e=er.makeSpan([],[e]);var h=r&&hu.isCharacterBox(r),f,p;if(t){var m=jc(t,a.havingStyle(s.sup()),a);p={elem:m,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-m.depth)}}if(r){var b=jc(r,a.havingStyle(s.sub()),a);f={elem:b,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-b.height)}}var _;if(p&&f){var w=a.fontMetrics().bigOpSpacing5+f.elem.height+f.elem.depth+f.kern+e.depth+u;_=er.makeVList({positionType:"bottom",positionData:w,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:f.elem,marginLeft:Qi(-o)},{type:"kern",size:f.kern},{type:"elem",elem:e},{type:"kern",size:p.kern},{type:"elem",elem:p.elem,marginLeft:Qi(o)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(f){var S=e.height-u;_=er.makeVList({positionType:"top",positionData:S,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:f.elem,marginLeft:Qi(-o)},{type:"kern",size:f.kern},{type:"elem",elem:e}]},a)}else if(p){var C=e.depth+u;_=er.makeVList({positionType:"bottom",positionData:C,children:[{type:"elem",elem:e},{type:"kern",size:p.kern},{type:"elem",elem:p.elem,marginLeft:Qi(o)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else return e;var A=[_];if(f&&o!==0&&!h){var k=er.makeSpan(["mspace"],[],a);k.style.marginRight=Qi(o),A.unshift(k)}return er.makeSpan(["mop","op-limits"],A,a)},WGn=["\\smallint"],HW=(e,t)=>{var r,a,s=!1,o;e.type==="supsub"?(r=e.sup,a=e.sub,o=xl(e.base,"op"),s=!0):o=xl(e,"op");var u=t.style,h=!1;u.size===Js.DISPLAY.size&&o.symbol&&!WGn.includes(o.name)&&(h=!0);var f;if(o.symbol){var p=h?"Size2-Regular":"Size1-Regular",m="";if((o.name==="\\oiint"||o.name==="\\oiiint")&&(m=o.name.slice(1),o.name=m==="oiint"?"\\iint":"\\iiint"),f=er.makeSymbol(o.name,p,"math",t,["mop","op-symbol",h?"large-op":"small-op"]),m.length>0){var b=f.italic,_=er.staticSvg(m+"Size"+(h?"2":"1"),t);f=er.makeVList({positionType:"individualShift",children:[{type:"elem",elem:f,shift:0},{type:"elem",elem:_,shift:h?.08:0}]},t),o.name="\\"+m,f.classes.unshift("mop"),f.italic=b}}else if(o.body){var w=Lp(o.body,t,!0);w.length===1&&w[0]instanceof xS?(f=w[0],f.classes[0]="mop"):f=er.makeSpan(["mop"],w,t)}else{for(var S=[],C=1;C{var r;if(e.symbol)r=new Nw("mo",[SS(e.name,e.mode)]),WGn.includes(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new Nw("mo",l_(e.body,t));else{r=new Nw("mi",[new QC(e.name.slice(1))]);var a=new Nw("mo",[SS("⁡","text")]);e.parentIsSupSub?r=new Nw("mrow",[r,a]):r=EGn([r,a])}return r},uTi={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ga({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=a;return s.length===1&&(s=uTi[s]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:s}},htmlBuilder:HW,mathmlBuilder:vce});ga({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Q0(a)}},htmlBuilder:HW,mathmlBuilder:vce});var hTi={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ga({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:HW,mathmlBuilder:vce});ga({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:HW,mathmlBuilder:vce});ga({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,a=r;return a.length===1&&(a=hTi[a]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:HW,mathmlBuilder:vce});var KGn=(e,t)=>{var r,a,s=!1,o;e.type==="supsub"?(r=e.sup,a=e.sub,o=xl(e.base,"operatorname"),s=!0):o=xl(e,"operatorname");var u;if(o.body.length>0){for(var h=o.body.map(b=>{var _=b.text;return typeof _=="string"?{type:"textord",mode:b.mode,text:_}:b}),f=Lp(h,t.withFont("mathrm"),!0),p=0;p{for(var r=l_(e.body,t.withFont("mathrm")),a=!0,s=0;sm.toText()).join("");r=[new Si.TextNode(h)]}var f=new Si.MathNode("mi",r);f.setAttribute("mathvariant","normal");var p=new Si.MathNode("mo",[SS("⁡","text")]);return e.parentIsSupSub?new Si.MathNode("mrow",[f,p]):Si.newDocumentFragment([f,p])};ga({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e,s=t[0];return{type:"operatorname",mode:r.mode,body:Q0(s),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:KGn,mathmlBuilder:dTi});pt("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");M$({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?er.makeFragment(Lp(e.body,t,!1)):er.makeSpan(["mord"],Lp(e.body,t,!0),t)},mathmlBuilder(e,t){return r9(e.body,t,!0)}});ga({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,a=t[0];return{type:"overline",mode:r.mode,body:a}},htmlBuilder(e,t){var r=jc(e.body,t.havingCrampedStyle()),a=er.makeLineSpan("overline-line",t),s=t.fontMetrics().defaultRuleThickness,o=er.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*s},{type:"elem",elem:a},{type:"kern",size:s}]},t);return er.makeSpan(["mord","overline"],[o],t)},mathmlBuilder(e,t){var r=new Si.MathNode("mo",[new Si.TextNode("‾")]);r.setAttribute("stretchy","true");var a=new Si.MathNode("mover",[Bh(e.body,t),r]);return a.setAttribute("accent","true"),a}});ga({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"phantom",mode:r.mode,body:Q0(a)}},htmlBuilder:(e,t)=>{var r=Lp(e.body,t.withPhantom(),!1);return er.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=l_(e.body,t);return new Si.MathNode("mphantom",r)}});ga({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"hphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=er.makeSpan([],[jc(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var a=0;a{var r=l_(Q0(e.body),t),a=new Si.MathNode("mphantom",r),s=new Si.MathNode("mpadded",[a]);return s.setAttribute("height","0px"),s.setAttribute("depth","0px"),s}});ga({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"vphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=er.makeSpan(["inner"],[jc(e.body,t.withPhantom())]),a=er.makeSpan(["fix"],[]);return er.makeSpan(["mord","rlap"],[r,a],t)},mathmlBuilder:(e,t)=>{var r=l_(Q0(e.body),t),a=new Si.MathNode("mphantom",r),s=new Si.MathNode("mpadded",[a]);return s.setAttribute("width","0px"),s}});ga({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,a=xl(t[0],"size").value,s=t[1];return{type:"raisebox",mode:r.mode,dy:a,body:s}},htmlBuilder(e,t){var r=jc(e.body,t),a=Rf(e.dy,t);return er.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new Si.MathNode("mpadded",[Bh(e.body,t)]),a=e.dy.number+e.dy.unit;return r.setAttribute("voffset",a),r}});ga({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ga({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:a}=e,s=r[0],o=xl(t[0],"size"),u=xl(t[1],"size");return{type:"rule",mode:a.mode,shift:s&&xl(s,"size").value,width:o.value,height:u.value}},htmlBuilder(e,t){var r=er.makeSpan(["mord","rule"],[],t),a=Rf(e.width,t),s=Rf(e.height,t),o=e.shift?Rf(e.shift,t):0;return r.style.borderRightWidth=Qi(a),r.style.borderTopWidth=Qi(s),r.style.bottom=Qi(o),r.width=a,r.height=s+o,r.depth=-o,r.maxFontSize=s*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=Rf(e.width,t),a=Rf(e.height,t),s=e.shift?Rf(e.shift,t):0,o=t.color&&t.getColor()||"black",u=new Si.MathNode("mspace");u.setAttribute("mathbackground",o),u.setAttribute("width",Qi(r)),u.setAttribute("height",Qi(a));var h=new Si.MathNode("mpadded",[u]);return s>=0?h.setAttribute("height",Qi(s)):(h.setAttribute("height",Qi(s)),h.setAttribute("depth",Qi(-s))),h.setAttribute("voffset",Qi(s)),h}});function XGn(e,t,r){for(var a=Lp(e,t,!1),s=t.sizeMultiplier/r.sizeMultiplier,o=0;o{var r=t.havingSize(e.size);return XGn(e.body,r,t)};ga({type:"sizing",names:twn,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:a,parser:s}=e,o=s.parseExpression(!1,r);return{type:"sizing",mode:s.mode,size:twn.indexOf(a)+1,body:o}},htmlBuilder:fTi,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),a=l_(e.body,r),s=new Si.MathNode("mstyle",a);return s.setAttribute("mathsize",Qi(r.sizeMultiplier)),s}});ga({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:a}=e,s=!1,o=!1,u=r[0]&&xl(r[0],"ordgroup");if(u)for(var h="",f=0;f{var r=er.makeSpan([],[jc(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var a=0;a{var r=new Si.MathNode("mpadded",[Bh(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});ga({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a}=e,s=r[0],o=t[0];return{type:"sqrt",mode:a.mode,body:o,index:s}},htmlBuilder(e,t){var r=jc(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=er.wrapFragment(r,t);var a=t.fontMetrics(),s=a.defaultRuleThickness,o=s;t.style.idr.height+r.depth+u&&(u=(u+b-r.height-r.depth)/2);var _=f.height-r.height-u-p;r.style.paddingLeft=Qi(m);var w=er.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+_)},{type:"elem",elem:f},{type:"kern",size:p}]},t);if(e.index){var S=t.havingStyle(Js.SCRIPTSCRIPT),C=jc(e.index,S,t),A=.6*(w.height-w.depth),k=er.makeVList({positionType:"shift",positionData:-A,children:[{type:"elem",elem:C}]},t),I=er.makeSpan(["root"],[k]);return er.makeSpan(["mord","sqrt"],[I,w],t)}else return er.makeSpan(["mord","sqrt"],[w],t)},mathmlBuilder(e,t){var{body:r,index:a}=e;return a?new Si.MathNode("mroot",[Bh(r,t),Bh(a,t)]):new Si.MathNode("msqrt",[Bh(r,t)])}});var nwn={display:Js.DISPLAY,text:Js.TEXT,script:Js.SCRIPT,scriptscript:Js.SCRIPTSCRIPT};ga({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:a,parser:s}=e,o=s.parseExpression(!0,r),u=a.slice(1,a.length-5);return{type:"styling",mode:s.mode,style:u,body:o}},htmlBuilder(e,t){var r=nwn[e.style],a=t.havingStyle(r).withFont("");return XGn(e.body,a,t)},mathmlBuilder(e,t){var r=nwn[e.style],a=t.havingStyle(r),s=l_(e.body,a),o=new Si.MathNode("mstyle",s),u={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},h=u[e.style];return o.setAttribute("scriptlevel",h[0]),o.setAttribute("displaystyle",h[1]),o}});var pTi=function(t,r){var a=t.base;if(a)if(a.type==="op"){var s=a.limits&&(r.style.size===Js.DISPLAY.size||a.alwaysHandleSupSub);return s?HW:null}else if(a.type==="operatorname"){var o=a.alwaysHandleSupSub&&(r.style.size===Js.DISPLAY.size||a.limits);return o?KGn:null}else{if(a.type==="accent")return hu.isCharacterBox(a.base)?Gpt:null;if(a.type==="horizBrace"){var u=!t.sub;return u===a.isOver?YGn:null}else return null}else return null};M$({type:"supsub",htmlBuilder(e,t){var r=pTi(e,t);if(r)return r(e,t);var{base:a,sup:s,sub:o}=e,u=jc(a,t),h,f,p=t.fontMetrics(),m=0,b=0,_=a&&hu.isCharacterBox(a);if(s){var w=t.havingStyle(t.style.sup());h=jc(s,w,t),_||(m=u.height-w.fontMetrics().supDrop*w.sizeMultiplier/t.sizeMultiplier)}if(o){var S=t.havingStyle(t.style.sub());f=jc(o,S,t),_||(b=u.depth+S.fontMetrics().subDrop*S.sizeMultiplier/t.sizeMultiplier)}var C;t.style===Js.DISPLAY?C=p.sup1:t.style.cramped?C=p.sup3:C=p.sup2;var A=t.sizeMultiplier,k=Qi(.5/p.ptPerEm/A),I=null;if(f){var N=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(u instanceof xS||N)&&(I=Qi(-u.italic))}var L;if(h&&f){m=Math.max(m,C,h.depth+.25*p.xHeight),b=Math.max(b,p.sub2);var P=p.defaultRuleThickness,M=4*P;if(m-h.depth-(f.height-b)0&&(m+=F,b-=F)}var U=[{type:"elem",elem:f,shift:b,marginRight:k,marginLeft:I},{type:"elem",elem:h,shift:-m,marginRight:k}];L=er.makeVList({positionType:"individualShift",children:U},t)}else if(f){b=Math.max(b,p.sub1,f.height-.8*p.xHeight);var $=[{type:"elem",elem:f,marginLeft:I,marginRight:k}];L=er.makeVList({positionType:"shift",positionData:b,children:$},t)}else if(h)m=Math.max(m,C,h.depth+.25*p.xHeight),L=er.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:h,marginRight:k}]},t);else throw new Error("supsub must have either sup or sub.");var G=Wlt(u,"right")||"mord";return er.makeSpan([G],[u,er.makeSpan(["msupsub"],[L])],t)},mathmlBuilder(e,t){var r=!1,a,s;e.base&&e.base.type==="horizBrace"&&(s=!!e.sup,s===e.base.isOver&&(r=!0,a=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var o=[Bh(e.base,t)];e.sub&&o.push(Bh(e.sub,t)),e.sup&&o.push(Bh(e.sup,t));var u;if(r)u=a?"mover":"munder";else if(e.sub)if(e.sup){var p=e.base;p&&p.type==="op"&&p.limits&&t.style===Js.DISPLAY||p&&p.type==="operatorname"&&p.alwaysHandleSupSub&&(t.style===Js.DISPLAY||p.limits)?u="munderover":u="msubsup"}else{var f=e.base;f&&f.type==="op"&&f.limits&&(t.style===Js.DISPLAY||f.alwaysHandleSupSub)||f&&f.type==="operatorname"&&f.alwaysHandleSupSub&&(f.limits||t.style===Js.DISPLAY)?u="munder":u="msub"}else{var h=e.base;h&&h.type==="op"&&h.limits&&(t.style===Js.DISPLAY||h.alwaysHandleSupSub)||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(h.limits||t.style===Js.DISPLAY)?u="mover":u="msup"}return new Si.MathNode(u,o)}});M$({type:"atom",htmlBuilder(e,t){return er.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new Si.MathNode("mo",[SS(e.text,e.mode)]);if(e.family==="bin"){var a=Upt(e,t);a==="bold-italic"&&r.setAttribute("mathvariant",a)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var QGn={mi:"italic",mn:"normal",mtext:"normal"};M$({type:"mathord",htmlBuilder(e,t){return er.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var r=new Si.MathNode("mi",[SS(e.text,e.mode,t)]),a=Upt(e,t)||"italic";return a!==QGn[r.type]&&r.setAttribute("mathvariant",a),r}});M$({type:"textord",htmlBuilder(e,t){return er.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var r=SS(e.text,e.mode,t),a=Upt(e,t)||"normal",s;return e.mode==="text"?s=new Si.MathNode("mtext",[r]):/[0-9]/.test(e.text)?s=new Si.MathNode("mn",[r]):e.text==="\\prime"?s=new Si.MathNode("mo",[r]):s=new Si.MathNode("mi",[r]),a!==QGn[s.type]&&s.setAttribute("mathvariant",a),s}});var Nnt={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Ont={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};M$({type:"spacing",htmlBuilder(e,t){if(Ont.hasOwnProperty(e.text)){var r=Ont[e.text].className||"";if(e.mode==="text"){var a=er.makeOrd(e,t,"textord");return a.classes.push(r),a}else return er.makeSpan(["mspace",r],[er.mathsym(e.text,e.mode,t)],t)}else{if(Nnt.hasOwnProperty(e.text))return er.makeSpan(["mspace",Nnt[e.text]],[],t);throw new Ri('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(Ont.hasOwnProperty(e.text))r=new Si.MathNode("mtext",[new Si.TextNode(" ")]);else{if(Nnt.hasOwnProperty(e.text))return new Si.MathNode("mspace");throw new Ri('Unknown type of space "'+e.text+'"')}return r}});var rwn=()=>{var e=new Si.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};M$({type:"tag",mathmlBuilder(e,t){var r=new Si.MathNode("mtable",[new Si.MathNode("mtr",[rwn(),new Si.MathNode("mtd",[r9(e.body,t)]),rwn(),new Si.MathNode("mtd",[r9(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var iwn={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},awn={"\\textbf":"textbf","\\textmd":"textmd"},gTi={"\\textit":"textit","\\textup":"textup"},swn=(e,t)=>{var r=e.font;if(r){if(iwn[r])return t.withTextFontFamily(iwn[r]);if(awn[r])return t.withTextFontWeight(awn[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(gTi[r])};ga({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,s=t[0];return{type:"text",mode:r.mode,body:Q0(s),font:a}},htmlBuilder(e,t){var r=swn(e,t),a=Lp(e.body,r,!0);return er.makeSpan(["mord","text"],a,r)},mathmlBuilder(e,t){var r=swn(e,t);return r9(e.body,r)}});ga({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=jc(e.body,t),a=er.makeLineSpan("underline-line",t),s=t.fontMetrics().defaultRuleThickness,o=er.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:s},{type:"elem",elem:a},{type:"kern",size:3*s},{type:"elem",elem:r}]},t);return er.makeSpan(["mord","underline"],[o],t)},mathmlBuilder(e,t){var r=new Si.MathNode("mo",[new Si.TextNode("‾")]);r.setAttribute("stretchy","true");var a=new Si.MathNode("munder",[Bh(e.body,t),r]);return a.setAttribute("accentunder","true"),a}});ga({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=jc(e.body,t),a=t.fontMetrics().axisHeight,s=.5*(r.height-a-(r.depth+a));return er.makeVList({positionType:"shift",positionData:s,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){return new Si.MathNode("mpadded",[Bh(e.body,t)],["vcenter"])}});ga({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new Ri("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=own(e),a=[],s=t.havingStyle(t.style.text()),o=0;oe.body.replace(/ /g,e.star?"␣":" "),gO=_Gn,ZGn=`[ \r ]`,mTi="\\\\[a-zA-Z@]+",bTi="\\\\[^\uD800-\uDFFF]",yTi="("+mTi+")"+ZGn+"*",vTi=`\\\\( |[ \r ]+ ?)[ \r ]*`,Zlt="[̀-ͯ]",_Ti=new RegExp(Zlt+"+$"),wTi="("+ZGn+"+)|"+(vTi+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Zlt+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Zlt+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+yTi)+("|"+bTi+")");let lwn=class{constructor(t,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=r,this.tokenRegex=new RegExp(wTi,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new Pw("EOF",new D2(this,r,r));var a=this.tokenRegex.exec(t);if(a===null||a.index!==r)throw new Ri("Unexpected character: '"+t[r]+"'",new Pw(t[r],new D2(this,r,r+1)));var s=a[6]||a[3]||(a[2]?"\\ ":" ");if(this.catcodes[s]===14){var o=t.indexOf(` `,this.tokenRegex.lastIndex);return o===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=o+1,this.lex()}return new Pw(s,new D2(this,r,this.tokenRegex.lastIndex))}};class ETi{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Ri("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,a){if(a===void 0&&(a=!1),a){for(var s=0;s0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(t)&&(o[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var xTi=zGn;pt("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});pt("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});pt("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});pt("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});pt("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});pt("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");pt("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var cwn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};pt("\\char",function(e){var t=e.popToken(),r,a="";if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")a=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Ri("\\char` missing argument");a=t.text.charCodeAt(0)}else r=10;if(r){if(a=cwn[t.text],a==null||a>=r)throw new Ri("Invalid base-"+r+" digit "+t.text);for(var s;(s=cwn[e.future().text])!=null&&s{var s=e.consumeArg().tokens;if(s.length!==1)throw new Ri("\\newcommand's first argument must be a macro name");var o=s[0].text,u=e.isDefined(o);if(u&&!t)throw new Ri("\\newcommand{"+o+"} attempting to redefine "+(o+"; use \\renewcommand"));if(!u&&!r)throw new Ri("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var h=0;if(s=e.consumeArg().tokens,s.length===1&&s[0].text==="["){for(var f="",p=e.expandNextToken();p.text!=="]"&&p.text!=="EOF";)f+=p.text,p=e.expandNextToken();if(!f.match(/^\s*[0-9]+\s*$/))throw new Ri("Invalid number of arguments: "+f);h=parseInt(f),s=e.consumeArg().tokens}return u&&a||e.macros.set(o,{tokens:s,numArgs:h}),""};pt("\\newcommand",e=>Xpt(e,!1,!0,!1));pt("\\renewcommand",e=>Xpt(e,!0,!1,!1));pt("\\providecommand",e=>Xpt(e,!0,!0,!0));pt("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});pt("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});pt("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),gO[r],td.math[r],td.text[r]),""});pt("\\bgroup","{");pt("\\egroup","}");pt("~","\\nobreakspace");pt("\\lq","`");pt("\\rq","'");pt("\\aa","\\r a");pt("\\AA","\\r A");pt("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");pt("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");pt("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");pt("ℬ","\\mathscr{B}");pt("ℰ","\\mathscr{E}");pt("ℱ","\\mathscr{F}");pt("ℋ","\\mathscr{H}");pt("ℐ","\\mathscr{I}");pt("ℒ","\\mathscr{L}");pt("ℳ","\\mathscr{M}");pt("ℛ","\\mathscr{R}");pt("ℭ","\\mathfrak{C}");pt("ℌ","\\mathfrak{H}");pt("ℨ","\\mathfrak{Z}");pt("\\Bbbk","\\Bbb{k}");pt("·","\\cdotp");pt("\\llap","\\mathllap{\\textrm{#1}}");pt("\\rlap","\\mathrlap{\\textrm{#1}}");pt("\\clap","\\mathclap{\\textrm{#1}}");pt("\\mathstrut","\\vphantom{(}");pt("\\underbar","\\underline{\\text{#1}}");pt("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');pt("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");pt("\\ne","\\neq");pt("≠","\\neq");pt("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");pt("∉","\\notin");pt("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");pt("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");pt("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");pt("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");pt("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");pt("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");pt("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");pt("⟂","\\perp");pt("‼","\\mathclose{!\\mkern-0.8mu!}");pt("∌","\\notni");pt("⌜","\\ulcorner");pt("⌝","\\urcorner");pt("⌞","\\llcorner");pt("⌟","\\lrcorner");pt("©","\\copyright");pt("®","\\textregistered");pt("️","\\textregistered");pt("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');pt("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');pt("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');pt("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');pt("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");pt("⋮","\\vdots");pt("\\varGamma","\\mathit{\\Gamma}");pt("\\varDelta","\\mathit{\\Delta}");pt("\\varTheta","\\mathit{\\Theta}");pt("\\varLambda","\\mathit{\\Lambda}");pt("\\varXi","\\mathit{\\Xi}");pt("\\varPi","\\mathit{\\Pi}");pt("\\varSigma","\\mathit{\\Sigma}");pt("\\varUpsilon","\\mathit{\\Upsilon}");pt("\\varPhi","\\mathit{\\Phi}");pt("\\varPsi","\\mathit{\\Psi}");pt("\\varOmega","\\mathit{\\Omega}");pt("\\substack","\\begin{subarray}{c}#1\\end{subarray}");pt("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");pt("\\boxed","\\fbox{$\\displaystyle{#1}$}");pt("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");pt("\\implies","\\DOTSB\\;\\Longrightarrow\\;");pt("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");pt("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");pt("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var uwn={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};pt("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in uwn?t=uwn[r]:(r.slice(0,4)==="\\not"||r in td.math&&["bin","rel"].includes(td.math[r].group))&&(t="\\dotsb"),t});var Qpt={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};pt("\\dotso",function(e){var t=e.future().text;return t in Qpt?"\\ldots\\,":"\\ldots"});pt("\\dotsc",function(e){var t=e.future().text;return t in Qpt&&t!==","?"\\ldots\\,":"\\ldots"});pt("\\cdots",function(e){var t=e.future().text;return t in Qpt?"\\@cdots\\,":"\\@cdots"});pt("\\dotsb","\\cdots");pt("\\dotsm","\\cdots");pt("\\dotsi","\\!\\cdots");pt("\\dotsx","\\ldots\\,");pt("\\DOTSI","\\relax");pt("\\DOTSB","\\relax");pt("\\DOTSX","\\relax");pt("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");pt("\\,","\\tmspace+{3mu}{.1667em}");pt("\\thinspace","\\,");pt("\\>","\\mskip{4mu}");pt("\\:","\\tmspace+{4mu}{.2222em}");pt("\\medspace","\\:");pt("\\;","\\tmspace+{5mu}{.2777em}");pt("\\thickspace","\\;");pt("\\!","\\tmspace-{3mu}{.1667em}");pt("\\negthinspace","\\!");pt("\\negmedspace","\\tmspace-{4mu}{.2222em}");pt("\\negthickspace","\\tmspace-{5mu}{.277em}");pt("\\enspace","\\kern.5em ");pt("\\enskip","\\hskip.5em\\relax");pt("\\quad","\\hskip1em\\relax");pt("\\qquad","\\hskip2em\\relax");pt("\\tag","\\@ifstar\\tag@literal\\tag@paren");pt("\\tag@paren","\\tag@literal{({#1})}");pt("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Ri("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});pt("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");pt("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");pt("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");pt("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");pt("\\newline","\\\\\\relax");pt("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var JGn=Qi(XC["Main-Regular"][84][1]-.7*XC["Main-Regular"][65][1]);pt("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+JGn+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");pt("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+JGn+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");pt("\\hspace","\\@ifstar\\@hspacer\\@hspace");pt("\\@hspace","\\hskip #1\\relax");pt("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");pt("\\ordinarycolon",":");pt("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");pt("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');pt("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');pt("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');pt("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');pt("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');pt("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');pt("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');pt("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');pt("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');pt("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');pt("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');pt("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');pt("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');pt("∷","\\dblcolon");pt("∹","\\eqcolon");pt("≔","\\coloneqq");pt("≕","\\eqqcolon");pt("⩴","\\Coloneqq");pt("\\ratio","\\vcentcolon");pt("\\coloncolon","\\dblcolon");pt("\\colonequals","\\coloneqq");pt("\\coloncolonequals","\\Coloneqq");pt("\\equalscolon","\\eqqcolon");pt("\\equalscoloncolon","\\Eqqcolon");pt("\\colonminus","\\coloneq");pt("\\coloncolonminus","\\Coloneq");pt("\\minuscolon","\\eqcolon");pt("\\minuscoloncolon","\\Eqcolon");pt("\\coloncolonapprox","\\Colonapprox");pt("\\coloncolonsim","\\Colonsim");pt("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");pt("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");pt("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");pt("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");pt("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");pt("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");pt("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");pt("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");pt("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");pt("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");pt("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");pt("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");pt("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");pt("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");pt("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");pt("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");pt("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");pt("\\nleqq","\\html@mathml{\\@nleqq}{≰}");pt("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");pt("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");pt("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");pt("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");pt("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");pt("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");pt("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");pt("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");pt("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");pt("\\imath","\\html@mathml{\\@imath}{ı}");pt("\\jmath","\\html@mathml{\\@jmath}{ȷ}");pt("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");pt("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");pt("⟦","\\llbracket");pt("⟧","\\rrbracket");pt("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");pt("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");pt("⦃","\\lBrace");pt("⦄","\\rBrace");pt("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");pt("⦵","\\minuso");pt("\\darr","\\downarrow");pt("\\dArr","\\Downarrow");pt("\\Darr","\\Downarrow");pt("\\lang","\\langle");pt("\\rang","\\rangle");pt("\\uarr","\\uparrow");pt("\\uArr","\\Uparrow");pt("\\Uarr","\\Uparrow");pt("\\N","\\mathbb{N}");pt("\\R","\\mathbb{R}");pt("\\Z","\\mathbb{Z}");pt("\\alef","\\aleph");pt("\\alefsym","\\aleph");pt("\\Alpha","\\mathrm{A}");pt("\\Beta","\\mathrm{B}");pt("\\bull","\\bullet");pt("\\Chi","\\mathrm{X}");pt("\\clubs","\\clubsuit");pt("\\cnums","\\mathbb{C}");pt("\\Complex","\\mathbb{C}");pt("\\Dagger","\\ddagger");pt("\\diamonds","\\diamondsuit");pt("\\empty","\\emptyset");pt("\\Epsilon","\\mathrm{E}");pt("\\Eta","\\mathrm{H}");pt("\\exist","\\exists");pt("\\harr","\\leftrightarrow");pt("\\hArr","\\Leftrightarrow");pt("\\Harr","\\Leftrightarrow");pt("\\hearts","\\heartsuit");pt("\\image","\\Im");pt("\\infin","\\infty");pt("\\Iota","\\mathrm{I}");pt("\\isin","\\in");pt("\\Kappa","\\mathrm{K}");pt("\\larr","\\leftarrow");pt("\\lArr","\\Leftarrow");pt("\\Larr","\\Leftarrow");pt("\\lrarr","\\leftrightarrow");pt("\\lrArr","\\Leftrightarrow");pt("\\Lrarr","\\Leftrightarrow");pt("\\Mu","\\mathrm{M}");pt("\\natnums","\\mathbb{N}");pt("\\Nu","\\mathrm{N}");pt("\\Omicron","\\mathrm{O}");pt("\\plusmn","\\pm");pt("\\rarr","\\rightarrow");pt("\\rArr","\\Rightarrow");pt("\\Rarr","\\Rightarrow");pt("\\real","\\Re");pt("\\reals","\\mathbb{R}");pt("\\Reals","\\mathbb{R}");pt("\\Rho","\\mathrm{P}");pt("\\sdot","\\cdot");pt("\\sect","\\S");pt("\\spades","\\spadesuit");pt("\\sub","\\subset");pt("\\sube","\\subseteq");pt("\\supe","\\supseteq");pt("\\Tau","\\mathrm{T}");pt("\\thetasym","\\vartheta");pt("\\weierp","\\wp");pt("\\Zeta","\\mathrm{Z}");pt("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");pt("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");pt("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");pt("\\bra","\\mathinner{\\langle{#1}|}");pt("\\ket","\\mathinner{|{#1}\\rangle}");pt("\\braket","\\mathinner{\\langle{#1}\\rangle}");pt("\\Bra","\\left\\langle#1\\right|");pt("\\Ket","\\left|#1\\right\\rangle");var eqn=e=>t=>{var r=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.consumeArg().tokens,o=t.consumeArg().tokens,u=t.macros.get("|"),h=t.macros.get("\\|");t.macros.beginGroup();var f=b=>_=>{e&&(_.macros.set("|",u),s.length&&_.macros.set("\\|",h));var w=b;if(!b&&s.length){var S=_.future();S.text==="|"&&(_.popToken(),w=!0)}return{tokens:w?s:a,numArgs:0}};t.macros.set("|",f(!1)),s.length&&t.macros.set("\\|",f(!0));var p=t.consumeArg().tokens,m=t.expandTokens([...o,...p,...r]);return t.macros.endGroup(),{tokens:m.reverse(),numArgs:0}};pt("\\bra@ket",eqn(!1));pt("\\bra@set",eqn(!0));pt("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");pt("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");pt("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");pt("\\angln","{\\angl n}");pt("\\blue","\\textcolor{##6495ed}{#1}");pt("\\orange","\\textcolor{##ffa500}{#1}");pt("\\pink","\\textcolor{##ff00af}{#1}");pt("\\red","\\textcolor{##df0030}{#1}");pt("\\green","\\textcolor{##28ae7b}{#1}");pt("\\gray","\\textcolor{gray}{#1}");pt("\\purple","\\textcolor{##9d38bd}{#1}");pt("\\blueA","\\textcolor{##ccfaff}{#1}");pt("\\blueB","\\textcolor{##80f6ff}{#1}");pt("\\blueC","\\textcolor{##63d9ea}{#1}");pt("\\blueD","\\textcolor{##11accd}{#1}");pt("\\blueE","\\textcolor{##0c7f99}{#1}");pt("\\tealA","\\textcolor{##94fff5}{#1}");pt("\\tealB","\\textcolor{##26edd5}{#1}");pt("\\tealC","\\textcolor{##01d1c1}{#1}");pt("\\tealD","\\textcolor{##01a995}{#1}");pt("\\tealE","\\textcolor{##208170}{#1}");pt("\\greenA","\\textcolor{##b6ffb0}{#1}");pt("\\greenB","\\textcolor{##8af281}{#1}");pt("\\greenC","\\textcolor{##74cf70}{#1}");pt("\\greenD","\\textcolor{##1fab54}{#1}");pt("\\greenE","\\textcolor{##0d923f}{#1}");pt("\\goldA","\\textcolor{##ffd0a9}{#1}");pt("\\goldB","\\textcolor{##ffbb71}{#1}");pt("\\goldC","\\textcolor{##ff9c39}{#1}");pt("\\goldD","\\textcolor{##e07d10}{#1}");pt("\\goldE","\\textcolor{##a75a05}{#1}");pt("\\redA","\\textcolor{##fca9a9}{#1}");pt("\\redB","\\textcolor{##ff8482}{#1}");pt("\\redC","\\textcolor{##f9685d}{#1}");pt("\\redD","\\textcolor{##e84d39}{#1}");pt("\\redE","\\textcolor{##bc2612}{#1}");pt("\\maroonA","\\textcolor{##ffbde0}{#1}");pt("\\maroonB","\\textcolor{##ff92c6}{#1}");pt("\\maroonC","\\textcolor{##ed5fa6}{#1}");pt("\\maroonD","\\textcolor{##ca337c}{#1}");pt("\\maroonE","\\textcolor{##9e034e}{#1}");pt("\\purpleA","\\textcolor{##ddd7ff}{#1}");pt("\\purpleB","\\textcolor{##c6b9fc}{#1}");pt("\\purpleC","\\textcolor{##aa87ff}{#1}");pt("\\purpleD","\\textcolor{##7854ab}{#1}");pt("\\purpleE","\\textcolor{##543b78}{#1}");pt("\\mintA","\\textcolor{##f5f9e8}{#1}");pt("\\mintB","\\textcolor{##edf2df}{#1}");pt("\\mintC","\\textcolor{##e0e5cc}{#1}");pt("\\grayA","\\textcolor{##f6f7f7}{#1}");pt("\\grayB","\\textcolor{##f0f1f2}{#1}");pt("\\grayC","\\textcolor{##e3e5e6}{#1}");pt("\\grayD","\\textcolor{##d6d8da}{#1}");pt("\\grayE","\\textcolor{##babec2}{#1}");pt("\\grayF","\\textcolor{##888d93}{#1}");pt("\\grayG","\\textcolor{##626569}{#1}");pt("\\grayH","\\textcolor{##3b3e40}{#1}");pt("\\grayI","\\textcolor{##21242c}{#1}");pt("\\kaBlue","\\textcolor{##314453}{#1}");pt("\\kaGreen","\\textcolor{##71B307}{#1}");var tqn={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class STi{constructor(t,r,a){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new ETi(xTi,r.macros),this.mode=a,this.stack=[]}feed(t){this.lexer=new lwn(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,a,s;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:s,end:a}=this.consumeArg(["]"])}else({tokens:s,start:r,end:a}=this.consumeArg());return this.pushToken(new Pw("EOF",a.loc)),this.pushTokens(s),new Pw("",D2.range(r,a))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],a=t&&t.length>0;a||this.consumeSpaces();var s=this.future(),o,u=0,h=0;do{if(o=this.popToken(),r.push(o),o.text==="{")++u;else if(o.text==="}"){if(--u,u===-1)throw new Ri("Extra }",o)}else if(o.text==="EOF")throw new Ri("Unexpected end of input in a macro argument, expected '"+(t&&a?t[h]:"}")+"'",o);if(t&&a)if((u===0||u===1&&t[h]==="{")&&o.text===t[h]){if(++h,h===t.length){r.splice(-h,h);break}}else h=0}while(u!==0||a);return s.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:s,end:o}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new Ri("The length of delimiters doesn't match the number of args!");for(var a=r[0],s=0;sthis.settings.maxExpand)throw new Ri("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),a=r.text,s=r.noexpand?null:this._getExpansion(a);if(s==null||t&&s.unexpandable){if(t&&s==null&&a[0]==="\\"&&!this.isDefined(a))throw new Ri("Undefined control sequence: "+a);return this.pushToken(r),!1}this.countExpansion(1);var o=s.tokens,u=this.consumeArgs(s.numArgs,s.delimiters);if(s.numArgs){o=o.slice();for(var h=o.length-1;h>=0;--h){var f=o[h];if(f.text==="#"){if(h===0)throw new Ri("Incomplete placeholder at end of macro body",f);if(f=o[--h],f.text==="#")o.splice(h+1,1);else if(/^[1-9]$/.test(f.text))o.splice(h,2,...u[+f.text-1]);else throw new Ri("Not a valid argument number",f)}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Pw(t)]):void 0}expandTokens(t){var r=[],a=this.stack.length;for(this.pushTokens(t);this.stack.length>a;)if(this.expandOnce(!0)===!1){var s=this.stack.pop();s.treatAsRelax&&(s.noexpand=!1,s.treatAsRelax=!1),r.push(s)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(a=>a.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var a=this.lexer.catcodes[t];if(a!=null&&a!==13)return}var s=typeof r=="function"?r(this):r;if(typeof s=="string"){var o=0;if(s.indexOf("#")!==-1)for(var u=s.replace(/##/g,"");u.indexOf("#"+(o+1))!==-1;)++o;for(var h=new lwn(s,this.settings),f=[],p=h.lex();p.text!=="EOF";)f.push(p),p=h.lex();f.reverse();var m={tokens:f,numArgs:o};return m}return s}isDefined(t){return this.macros.has(t)||gO.hasOwnProperty(t)||td.math.hasOwnProperty(t)||td.text.hasOwnProperty(t)||tqn.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:gO.hasOwnProperty(t)&&!gO[t].primitive}}var hwn=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Cwe=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Lnt={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},dwn={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let nqn=class rqn{constructor(t,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new STi(t,r,this.mode),this.settings=r,this.leftrightDepth=0}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new Ri("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Pw("}")),this.gullet.pushTokens(t);var a=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,a}parseExpression(t,r){for(var a=[];;){this.mode==="math"&&this.consumeSpaces();var s=this.fetch();if(rqn.endOfExpression.indexOf(s.text)!==-1||r&&s.text===r||t&&gO[s.text]&&gO[s.text].infix)break;var o=this.parseAtom(r);if(o){if(o.type==="internal")continue}else break;a.push(o)}return this.mode==="text"&&this.formLigatures(a),this.handleInfixNodes(a)}handleInfixNodes(t){for(var r=-1,a,s=0;s=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var h=td[this.mode][r].group,f=D2.range(t),p;if(d3i.hasOwnProperty(h)){var m=h;p={type:"atom",mode:this.mode,family:m,loc:f,text:r}}else p={type:h,mode:this.mode,loc:f,text:r};u=p}else if(r.charCodeAt(0)>=128)this.settings.strict&&(cGn(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),u={type:"textord",mode:"text",loc:D2.range(t),text:r};else return null;if(this.consume(),o)for(var b=0;b-1}function Tp(e){return P9(e)?qPn(e):d$n(e)}var HTi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,VTi=/^\w*$/;function egt(e,t){if(Z0(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||WF(e)?!0:VTi.test(e)||!HTi.test(e)||t!=null&&e in Object(t)}var YTi=500;function jTi(e){var t=_R(e,function(a){return r.size===YTi&&r.clear(),a}),r=t.cache;return t}var WTi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,KTi=/\\(\\)?/g,XTi=jTi(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(WTi,function(r,a,s,o){t.push(s?o.replace(KTi,"$1"):a||r)}),t});function fqn(e){return e==null?"":uqn(e)}function KAe(e,t){return Z0(e)?e:egt(e,t)?[e]:XTi(fqn(e))}function _ce(e){if(typeof e=="string"||WF(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function XAe(e,t){t=KAe(t,e);for(var r=0,a=t.length;e!=null&&rh))return!1;var p=o.get(e),m=o.get(t);if(p&&m)return p==t&&m==e;var b=-1,_=!0,w=r&ECi?new Foe:void 0;for(o.set(e,t),o.set(t,e);++b2?t[2]:void 0;for(s&&xoe(t[0],t[1],s)&&(a=1);++r-1?s[o?t[u]:u]:void 0}}var oAi=Math.max;function lAi(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var s=r==null?0:FTi(r);return s<0&&(s=oAi(a+s,0)),dqn(e,xR(t),s)}var VW=sAi(lAi);function Rqn(e,t){var r=-1,a=P9(e)?Array(e.length):[];return JAe(e,function(s,o,u){a[++r]=t(s,o,u)}),a}function wo(e,t){var r=Z0(e)?eY:Rqn;return r(e,xR(t))}function cAi(e,t){return QAe(wo(e,t))}function Iqn(e,t){return e==null?e:N1t(e,sgt(t),R$)}function Nqn(e,t){return e&&agt(e,sgt(t))}function uAi(e,t){return e>t}var hAi=Object.prototype,dAi=hAi.hasOwnProperty;function fAi(e,t){return e!=null&&dAi.call(e,t)}function Ho(e,t){return e!=null&&Cqn(e,t,fAi)}function pAi(e,t){return eY(t,function(r){return e[r]})}function Ag(e){return e==null?[]:pAi(e,Tp(e))}function gl(e){return e===void 0}function Oqn(e,t){return et||o&&u&&f&&!h&&!p||a&&u&&f||!r&&f||!s)return 1;if(!a&&!o&&!p&&e=h)return f;var p=r[a];return f*(p=="desc"?-1:1)}}return e.index-t.index}function _Ai(e,t,r){t.length?t=eY(t,function(o){return Z0(o)?function(u){return XAe(u,o.length===1?o[0]:o)}:o}):t=[I$];var a=-1;t=eY(t,yAe(xR));var s=Rqn(e,function(o,u,h){var f=eY(t,function(p){return p(o)});return{criteria:f,index:++a,value:o}});return bAi(s,function(o,u){return vAi(o,u,r)})}function wAi(e,t){return mAi(e,t,function(r,a){return Aqn(e,a)})}var lR=JTi(function(e,t){return e==null?{}:wAi(e,t)}),EAi=Math.ceil,xAi=Math.max;function SAi(e,t,r,a){for(var s=-1,o=xAi(EAi((t-e)/(r||1)),0),u=Array(o);o--;)u[++s]=e,e+=r;return u}function TAi(e){return function(t,r,a){return a&&typeof a!="number"&&xoe(t,r,a)&&(r=a=void 0),t=vxe(t),r===void 0?(r=t,t=0):r=vxe(r),a=a===void 0?t1&&xoe(e,t[0],t[1])?t=[]:r>2&&xoe(t[0],t[1],t[2])&&(t=[t[0]]),_Ai(e,QAe(t),[])}),AAi=1/0,kAi=QV&&1/rgt(new QV([,-0]))[1]==AAi?function(e){return new QV(e)}:$Ti,RAi=200;function Lqn(e,t,r){var a=-1,s=qTi,o=e.length,u=!0,h=[],f=h;if(o>=RAi){var p=t?null:kAi(e);if(p)return rgt(p);u=!1,s=Eqn,f=new Foe}else f=t?[]:h;e:for(;++a1?s.setNode(o,r):s.setNode(o)}),this}setNode(t,r){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=r),this):(this._nodes[t]=arguments.length>1?r:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=vB,this._children[t]={},this._children[vB][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var r=a=>this.removeEdge(this._edgeObjs[a]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],Zt(this.children(t),a=>{this.setParent(a)}),delete this._children[t]),Zt(Tp(this._in[t]),r),delete this._in[t],delete this._preds[t],Zt(Tp(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(gl(r))r=vB;else{r+="";for(var a=r;!gl(a);a=this.parent(a))if(a===t)throw new Error("Setting "+r+" as parent of "+t+" would create a cycle");this.setNode(r)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=r,this._children[r][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var r=this._parent[t];if(r!==vB)return r}}children(t){if(gl(t)&&(t=vB),this._isCompound){var r=this._children[t];if(r)return Tp(r)}else{if(t===vB)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var r=this._preds[t];if(r)return Tp(r)}successors(t){var r=this._sucs[t];if(r)return Tp(r)}neighbors(t){var r=this.predecessors(t);if(r)return Dqn(r,this.successors(t))}isLeaf(t){var r;return this.isDirected()?r=this.successors(t):r=this.neighbors(t),r.length===0}filterNodes(t){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var a=this;Zt(this._nodes,function(u,h){t(h)&&r.setNode(h,u)}),Zt(this._edgeObjs,function(u){r.hasNode(u.v)&&r.hasNode(u.w)&&r.setEdge(u,a.edge(u))});var s={};function o(u){var h=a.parent(u);return h===void 0||r.hasNode(h)?(s[u]=h,h):h in s?s[h]:o(h)}return this._isCompound&&Zt(r.nodes(),function(u){r.setParent(u,o(u))}),r}setDefaultEdgeLabel(t){return KO(t)||(t=$3(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return Ag(this._edgeObjs)}setPath(t,r){var a=this,s=arguments;return TS(t,function(o,u){return s.length>1?a.setEdge(o,u,r):a.setEdge(o,u),u}),this}setEdge(){var t,r,a,s,o=!1,u=arguments[0];typeof u=="object"&&u!==null&&"v"in u?(t=u.v,r=u.w,a=u.name,arguments.length===2&&(s=arguments[1],o=!0)):(t=u,r=arguments[1],a=arguments[3],arguments.length>2&&(s=arguments[2],o=!0)),t=""+t,r=""+r,gl(a)||(a=""+a);var h=Vie(this._isDirected,t,r,a);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return o&&(this._edgeLabels[h]=s),this;if(!gl(a)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(r),this._edgeLabels[h]=o?s:this._defaultEdgeLabelFn(t,r,a);var f=DAi(this._isDirected,t,r,a);return t=f.v,r=f.w,Object.freeze(f),this._edgeObjs[h]=f,kwn(this._preds[r],t),kwn(this._sucs[t],r),this._in[r][h]=f,this._out[t][h]=f,this._edgeCount++,this}edge(t,r,a){var s=arguments.length===1?Mnt(this._isDirected,arguments[0]):Vie(this._isDirected,t,r,a);return this._edgeLabels[s]}hasEdge(t,r,a){var s=arguments.length===1?Mnt(this._isDirected,arguments[0]):Vie(this._isDirected,t,r,a);return Object.prototype.hasOwnProperty.call(this._edgeLabels,s)}removeEdge(t,r,a){var s=arguments.length===1?Mnt(this._isDirected,arguments[0]):Vie(this._isDirected,t,r,a),o=this._edgeObjs[s];return o&&(t=o.v,r=o.w,delete this._edgeLabels[s],delete this._edgeObjs[s],Rwn(this._preds[r],t),Rwn(this._sucs[t],r),delete this._in[r][s],delete this._out[t][s],this._edgeCount--),this}inEdges(t,r){var a=this._in[t];if(a){var s=Ag(a);return r?Rp(s,function(o){return o.v===r}):s}}outEdges(t,r){var a=this._out[t];if(a){var s=Ag(a);return r?Rp(s,function(o){return o.w===r}):s}}nodeEdges(t,r){var a=this.inEdges(t,r);if(a)return a.concat(this.outEdges(t,r))}};c_.prototype._nodeCount=0;c_.prototype._edgeCount=0;function kwn(e,t){e[t]?e[t]++:e[t]=1}function Rwn(e,t){--e[t]||delete e[t]}function Vie(e,t,r,a){var s=""+t,o=""+r;if(!e&&s>o){var u=s;s=o,o=u}return s+Awn+o+Awn+(gl(a)?LAi:a)}function DAi(e,t,r,a){var s=""+t,o=""+r;if(!e&&s>o){var u=s;s=o,o=u}var h={v:s,w:o};return a&&(h.name=a),h}function Mnt(e,t){return Vie(e,t.v,t.w,t.name)}let MAi=class{constructor(){var t={};t._next=t._prev=t,this._sentinel=t}dequeue(){var t=this._sentinel,r=t._prev;if(r!==t)return Iwn(r),r}enqueue(t){var r=this._sentinel;t._prev&&t._next&&Iwn(t),t._next=r._next,r._next._prev=t,r._next=t,t._prev=r}toString(){for(var t=[],r=this._sentinel,a=r._prev;a!==r;)t.push(JSON.stringify(a,PAi)),a=a._prev;return"["+t.join(", ")+"]"}};function Iwn(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function PAi(e,t){if(e!=="_next"&&e!=="_prev")return t}var BAi=$3(1);function FAi(e,t){if(e.nodeCount()<=1)return[];var r=UAi(e,t||BAi),a=$Ai(r.graph,r.buckets,r.zeroIdx);return MS(wo(a,function(s){return e.outEdges(s.v,s.w)}))}function $Ai(e,t,r){for(var a=[],s=t[t.length-1],o=t[0],u;e.nodeCount();){for(;u=o.dequeue();)Pnt(e,t,r,u);for(;u=s.dequeue();)Pnt(e,t,r,u);if(e.nodeCount()){for(var h=t.length-2;h>0;--h)if(u=t[h].dequeue(),u){a=a.concat(Pnt(e,t,r,u,!0));break}}}return a}function Pnt(e,t,r,a,s){var o=s?[]:void 0;return Zt(e.inEdges(a.v),function(u){var h=e.edge(u),f=e.node(u.v);s&&o.push({v:u.v,w:u.w}),f.out-=h,ect(t,r,f)}),Zt(e.outEdges(a.v),function(u){var h=e.edge(u),f=u.w,p=e.node(f);p.in-=h,ect(t,r,p)}),e.removeNode(a.v),o}function UAi(e,t){var r=new c_,a=0,s=0;Zt(e.nodes(),function(h){r.setNode(h,{v:h,in:0,out:0})}),Zt(e.edges(),function(h){var f=r.edge(h.v,h.w)||0,p=t(h),m=f+p;r.setEdge(h.v,h.w,m),s=Math.max(s,r.node(h.v).out+=p),a=Math.max(a,r.node(h.w).in+=p)});var o=Uw(s+a+3).map(function(){return new MAi}),u=a+1;return Zt(r.nodes(),function(h){ect(o,u,r.node(h))}),{graph:r,buckets:o,zeroIdx:u}}function ect(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function zAi(e){var t=e.graph().acyclicer==="greedy"?FAi(e,r(e)):GAi(e);Zt(t,function(a){var s=e.edge(a);e.removeEdge(a),s.forwardName=a.name,s.reversed=!0,e.setEdge(a.w,a.v,s,P$("rev"))});function r(a){return function(s){return a.edge(s).weight}}}function GAi(e){var t=[],r={},a={};function s(o){Object.prototype.hasOwnProperty.call(a,o)||(a[o]=!0,r[o]=!0,Zt(e.outEdges(o),function(u){Object.prototype.hasOwnProperty.call(r,u.w)?t.push(u):s(u.w)}),delete r[o])}return Zt(e.nodes(),s),t}function qAi(e){Zt(e.edges(),function(t){var r=e.edge(t);if(r.reversed){e.removeEdge(t);var a=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,a)}})}function jW(e,t,r,a){var s;do s=P$(a);while(e.hasNode(s));return r.dummy=t,e.setNode(s,r),s}function HAi(e){var t=new c_().setGraph(e.graph());return Zt(e.nodes(),function(r){t.setNode(r,e.node(r))}),Zt(e.edges(),function(r){var a=t.edge(r.v,r.w)||{weight:0,minlen:1},s=e.edge(r);t.setEdge(r.v,r.w,{weight:a.weight+s.weight,minlen:Math.max(a.minlen,s.minlen)})}),t}function Pqn(e){var t=new c_({multigraph:e.isMultigraph()}).setGraph(e.graph());return Zt(e.nodes(),function(r){e.children(r).length||t.setNode(r,e.node(r))}),Zt(e.edges(),function(r){t.setEdge(r,e.edge(r))}),t}function Nwn(e,t){var r=e.x,a=e.y,s=t.x-r,o=t.y-a,u=e.width/2,h=e.height/2;if(!s&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var f,p;return Math.abs(o)*u>Math.abs(s)*h?(o<0&&(h=-h),f=h*s/o,p=h):(s<0&&(u=-u),f=u,p=u*o/s),{x:r+f,y:a+p}}function eke(e){var t=wo(Uw(Bqn(e)+1),function(){return[]});return Zt(e.nodes(),function(r){var a=e.node(r),s=a.rank;gl(s)||(t[s][a.order]=r)}),t}function VAi(e){var t=oT(wo(e.nodes(),function(r){return e.node(r).rank}));Zt(e.nodes(),function(r){var a=e.node(r);Ho(a,"rank")&&(a.rank-=t)})}function YAi(e){var t=oT(wo(e.nodes(),function(o){return e.node(o).rank})),r=[];Zt(e.nodes(),function(o){var u=e.node(o).rank-t;r[u]||(r[u]=[]),r[u].push(o)});var a=0,s=e.graph().nodeRankFactor;Zt(r,function(o,u){gl(o)&&u%s!==0?--a:a&&Zt(o,function(h){e.node(h).rank+=a})})}function Own(e,t,r,a){var s={width:0,height:0};return arguments.length>=4&&(s.rank=r,s.order=a),jW(e,"border",s,t)}function Bqn(e){return i_(wo(e.nodes(),function(t){var r=e.node(t).rank;if(!gl(r))return r}))}function jAi(e,t){var r={lhs:[],rhs:[]};return Zt(e,function(a){t(a)?r.lhs.push(a):r.rhs.push(a)}),r}function WAi(e,t){return t()}function KAi(e){function t(r){var a=e.children(r),s=e.node(r);if(a.length&&Zt(a,t),Object.prototype.hasOwnProperty.call(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(var o=s.minRank,u=s.maxRank+1;ou.lim&&(h=u,f=!0);var p=Rp(t.edges(),function(m){return f===Mwn(e,e.node(m.v),h)&&f!==Mwn(e,e.node(m.w),h)});return YW(p,function(m){return $oe(t,m)})}function Yqn(e,t,r,a){var s=r.v,o=r.w;e.removeEdge(s,o),e.setEdge(a.v,a.w,{}),ugt(e),cgt(e,t),uki(e,t)}function uki(e,t){var r=VW(e.nodes(),function(s){return!t.node(s).parent}),a=lki(e,r);a=a.slice(1),Zt(a,function(s){var o=e.node(s).parent,u=t.edge(s,o),h=!1;u||(u=t.edge(o,s),h=!0),t.node(s).rank=t.node(o).rank+(h?u.minlen:-u.minlen)})}function hki(e,t,r){return e.hasEdge(t,r)}function Mwn(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}function dki(e){switch(e.graph().ranker){case"network-simplex":Pwn(e);break;case"tight-tree":pki(e);break;case"longest-path":fki(e);break;default:Pwn(e)}}var fki=lgt;function pki(e){lgt(e),$qn(e)}function Pwn(e){B$(e)}function gki(e){var t=jW(e,"root",{},"_root"),r=mki(e),a=i_(Ag(r))-1,s=2*a+1;e.graph().nestingRoot=t,Zt(e.edges(),function(u){e.edge(u).minlen*=s});var o=bki(e)+1;Zt(e.children(),function(u){jqn(e,t,s,o,a,r,u)}),e.graph().nodeRankFactor=s}function jqn(e,t,r,a,s,o,u){var h=e.children(u);if(!h.length){u!==t&&e.setEdge(t,u,{weight:0,minlen:r});return}var f=Own(e,"_bt"),p=Own(e,"_bb"),m=e.node(u);e.setParent(f,u),m.borderTop=f,e.setParent(p,u),m.borderBottom=p,Zt(h,function(b){jqn(e,t,r,a,s,o,b);var _=e.node(b),w=_.borderTop?_.borderTop:b,S=_.borderBottom?_.borderBottom:b,C=_.borderTop?a:2*a,A=w!==S?1:s-o[u]+1;e.setEdge(f,w,{weight:C,minlen:A,nestingEdge:!0}),e.setEdge(S,p,{weight:C,minlen:A,nestingEdge:!0})}),e.parent(u)||e.setEdge(t,f,{weight:0,minlen:s+o[u]})}function mki(e){var t={};function r(a,s){var o=e.children(a);o&&o.length&&Zt(o,function(u){r(u,s+1)}),t[a]=s}return Zt(e.children(),function(a){r(a,1)}),t}function bki(e){return TS(e.edges(),function(t,r){return t+e.edge(r).weight},0)}function yki(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,Zt(e.edges(),function(r){var a=e.edge(r);a.nestingEdge&&e.removeEdge(r)})}function vki(e,t,r){var a={},s;Zt(r,function(o){for(var u=e.parent(o),h,f;u;){if(h=e.parent(u),h?(f=a[h],a[h]=u):(f=s,s=u),f&&f!==u){t.setEdge(f,u);return}u=h}})}function _ki(e,t,r){var a=wki(e),s=new c_({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(function(o){return e.node(o)});return Zt(e.nodes(),function(o){var u=e.node(o),h=e.parent(o);(u.rank===t||u.minRank<=t&&t<=u.maxRank)&&(s.setNode(o),s.setParent(o,h||a),Zt(e[r](o),function(f){var p=f.v===o?f.w:f.v,m=s.edge(p,o),b=gl(m)?0:m.weight;s.setEdge(p,o,{weight:e.edge(f).weight+b})}),Object.prototype.hasOwnProperty.call(u,"minRank")&&s.setNode(o,{borderLeft:u.borderLeft[t],borderRight:u.borderRight[t]}))}),s}function wki(e){for(var t;e.hasNode(t=P$("_root")););return t}function Eki(e,t){for(var r=0,a=1;a0;)m%2&&(b+=h[m+1]),m=m-1>>1,h[m]+=p.weight;f+=p.weight*b})),f}function Ski(e){var t={},r=Rp(e.nodes(),function(h){return!e.children(h).length}),a=i_(wo(r,function(h){return e.node(h).rank})),s=wo(Uw(a+1),function(){return[]});function o(h){if(!Ho(t,h)){t[h]=!0;var f=e.node(h);s[f.rank].push(h),Zt(e.successors(h),o)}}var u=PA(r,function(h){return e.node(h).rank});return Zt(u,o),s}function Tki(e,t){return wo(t,function(r){var a=e.inEdges(r);if(a.length){var s=TS(a,function(o,u){var h=e.edge(u),f=e.node(u.v);return{sum:o.sum+h.weight*f.order,weight:o.weight+h.weight}},{sum:0,weight:0});return{v:r,barycenter:s.sum/s.weight,weight:s.weight}}else return{v:r}})}function Cki(e,t){var r={};Zt(e,function(s,o){var u=r[s.v]={indegree:0,in:[],out:[],vs:[s.v],i:o};gl(s.barycenter)||(u.barycenter=s.barycenter,u.weight=s.weight)}),Zt(t.edges(),function(s){var o=r[s.v],u=r[s.w];!gl(o)&&!gl(u)&&(u.indegree++,o.out.push(r[s.w]))});var a=Rp(r,function(s){return!s.indegree});return Aki(a)}function Aki(e){var t=[];function r(o){return function(u){u.merged||(gl(u.barycenter)||gl(o.barycenter)||u.barycenter>=o.barycenter)&&kki(o,u)}}function a(o){return function(u){u.in.push(o),--u.indegree===0&&e.push(u)}}for(;e.length;){var s=e.pop();t.push(s),Zt(s.in.reverse(),r(s)),Zt(s.out,a(s))}return wo(Rp(t,function(o){return!o.merged}),function(o){return lR(o,["vs","i","barycenter","weight"])})}function kki(e,t){var r=0,a=0;e.weight&&(r+=e.barycenter*e.weight,a+=e.weight),t.weight&&(r+=t.barycenter*t.weight,a+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/a,e.weight=a,e.i=Math.min(t.i,e.i),t.merged=!0}function Rki(e,t){var r=jAi(e,function(m){return Object.prototype.hasOwnProperty.call(m,"barycenter")}),a=r.lhs,s=PA(r.rhs,function(m){return-m.i}),o=[],u=0,h=0,f=0;a.sort(Iki(!!t)),f=Bwn(o,s,f),Zt(a,function(m){f+=m.vs.length,o.push(m.vs),u+=m.barycenter*m.weight,h+=m.weight,f=Bwn(o,s,f)});var p={vs:MS(o)};return h&&(p.barycenter=u/h,p.weight=h),p}function Bwn(e,t,r){for(var a;t.length&&(a=i9(t)).i<=r;)t.pop(),e.push(a.vs),r++;return r}function Iki(e){return function(t,r){return t.barycenterr.barycenter?1:e?r.i-t.i:t.i-r.i}}function Wqn(e,t,r,a){var s=e.children(t),o=e.node(t),u=o?o.borderLeft:void 0,h=o?o.borderRight:void 0,f={};u&&(s=Rp(s,function(S){return S!==u&&S!==h}));var p=Tki(e,s);Zt(p,function(S){if(e.children(S.v).length){var C=Wqn(e,S.v,r,a);f[S.v]=C,Object.prototype.hasOwnProperty.call(C,"barycenter")&&Oki(S,C)}});var m=Cki(p,r);Nki(m,f);var b=Rki(m,a);if(u&&(b.vs=MS([u,b.vs,h]),e.predecessors(u).length)){var _=e.node(e.predecessors(u)[0]),w=e.node(e.predecessors(h)[0]);Object.prototype.hasOwnProperty.call(b,"barycenter")||(b.barycenter=0,b.weight=0),b.barycenter=(b.barycenter*b.weight+_.order+w.order)/(b.weight+2),b.weight+=2}return b}function Nki(e,t){Zt(e,function(r){r.vs=MS(r.vs.map(function(a){return t[a]?t[a].vs:a}))})}function Oki(e,t){gl(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}function Lki(e){var t=Bqn(e),r=Fwn(e,Uw(1,t+1),"inEdges"),a=Fwn(e,Uw(t-1,-1,-1),"outEdges"),s=Ski(e);$wn(e,s);for(var o=Number.POSITIVE_INFINITY,u,h=0,f=0;f<4;++h,++f){Dki(h%2?r:a,h%4>=2),s=eke(e);var p=Eki(e,s);pu||h>t[f].lim));for(p=f,f=a;(f=e.parent(f))!==p;)o.push(f);return{path:s.concat(o.reverse()),lca:p}}function Bki(e){var t={},r=0;function a(s){var o=r;Zt(e.children(s),a),t[s]={low:o,lim:r++}}return Zt(e.children(),a),t}function Fki(e,t){var r={};function a(s,o){var u=0,h=0,f=s.length,p=i9(o);return Zt(o,function(m,b){var _=Uki(e,m),w=_?e.node(_).order:f;(_||m===p)&&(Zt(o.slice(h,b+1),function(S){Zt(e.predecessors(S),function(C){var A=e.node(C),k=A.order;(kp)&&Kqn(r,_,m)})})}function s(o,u){var h=-1,f,p=0;return Zt(u,function(m,b){if(e.node(m).dummy==="border"){var _=e.predecessors(m);_.length&&(f=e.node(_[0]).order,a(u,p,b,h,f),p=b,h=f)}a(u,p,u.length,f,o.length)}),u}return TS(t,s),r}function Uki(e,t){if(e.node(t).dummy)return VW(e.predecessors(t),function(r){return e.node(r).dummy})}function Kqn(e,t,r){if(t>r){var a=t;t=r,r=a}Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,configurable:!0,value:{},writable:!0});var s=e[t];Object.defineProperty(s,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function zki(e,t,r){if(t>r){var a=t;t=r,r=a}return!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],r)}function Gki(e,t,r,a){var s={},o={},u={};return Zt(t,function(h){Zt(h,function(f,p){s[f]=f,o[f]=f,u[f]=p})}),Zt(t,function(h){var f=-1;Zt(h,function(p){var m=a(p);if(m.length){m=PA(m,function(C){return u[C]});for(var b=(m.length-1)/2,_=Math.floor(b),w=Math.ceil(b);_<=w;++_){var S=m[_];o[p]===p&&f{var a=r(" buildLayoutGraph",()=>c6i(e));r(" runLayout",()=>Jki(a,r)),r(" updateInputGraph",()=>e6i(e,a))})}function Jki(e,t){t(" makeSpaceForEdgeLabels",()=>u6i(e)),t(" removeSelfEdges",()=>v6i(e)),t(" acyclic",()=>zAi(e)),t(" nestingGraph.run",()=>gki(e)),t(" rank",()=>dki(Pqn(e))),t(" injectEdgeLabelProxies",()=>h6i(e)),t(" removeEmptyRanks",()=>YAi(e)),t(" nestingGraph.cleanup",()=>yki(e)),t(" normalizeRanks",()=>VAi(e)),t(" assignRankMinMax",()=>d6i(e)),t(" removeEdgeLabelProxies",()=>f6i(e)),t(" normalize.run",()=>eki(e)),t(" parentDummyChains",()=>Mki(e)),t(" addBorderSegments",()=>KAi(e)),t(" order",()=>Lki(e)),t(" insertSelfEdges",()=>_6i(e)),t(" adjustCoordinateSystem",()=>XAi(e)),t(" position",()=>Qki(e)),t(" positionSelfEdges",()=>w6i(e)),t(" removeBorderNodes",()=>y6i(e)),t(" normalize.undo",()=>nki(e)),t(" fixupEdgeLabelCoords",()=>m6i(e)),t(" undoCoordinateSystem",()=>QAi(e)),t(" translateGraph",()=>p6i(e)),t(" assignNodeIntersects",()=>g6i(e)),t(" reversePoints",()=>b6i(e)),t(" acyclic.undo",()=>qAi(e))}function e6i(e,t){Zt(e.nodes(),function(r){var a=e.node(r),s=t.node(r);a&&(a.x=s.x,a.y=s.y,t.children(r).length&&(a.width=s.width,a.height=s.height))}),Zt(e.edges(),function(r){var a=e.edge(r),s=t.edge(r);a.points=s.points,Object.prototype.hasOwnProperty.call(s,"x")&&(a.x=s.x,a.y=s.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}var t6i=["nodesep","edgesep","ranksep","marginx","marginy"],n6i={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},r6i=["acyclicer","ranker","rankdir","align"],i6i=["width","height"],a6i={width:0,height:0},s6i=["minlen","weight","width","height","labeloffset"],o6i={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},l6i=["labelpos"];function c6i(e){var t=new c_({multigraph:!0,compound:!0}),r=Unt(e.graph());return t.setGraph(XO({},n6i,$nt(r,t6i),lR(r,r6i))),Zt(e.nodes(),function(a){var s=Unt(e.node(a));t.setNode(a,BB($nt(s,i6i),a6i)),t.setParent(a,e.parent(a))}),Zt(e.edges(),function(a){var s=Unt(e.edge(a));t.setEdge(a,XO({},o6i,$nt(s,s6i),lR(s,l6i)))}),t}function u6i(e){var t=e.graph();t.ranksep/=2,Zt(e.edges(),function(r){var a=e.edge(r);a.minlen*=2,a.labelpos.toLowerCase()!=="c"&&(t.rankdir==="TB"||t.rankdir==="BT"?a.width+=a.labeloffset:a.height+=a.labeloffset)})}function h6i(e){Zt(e.edges(),function(t){var r=e.edge(t);if(r.width&&r.height){var a=e.node(t.v),s=e.node(t.w),o={rank:(s.rank-a.rank)/2+a.rank,e:t};jW(e,"edge-proxy",o,"_ep")}})}function d6i(e){var t=0;Zt(e.nodes(),function(r){var a=e.node(r);a.borderTop&&(a.minRank=e.node(a.borderTop).rank,a.maxRank=e.node(a.borderBottom).rank,t=i_(t,a.maxRank))}),e.graph().maxRank=t}function f6i(e){Zt(e.nodes(),function(t){var r=e.node(t);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(t))})}function p6i(e){var t=Number.POSITIVE_INFINITY,r=0,a=Number.POSITIVE_INFINITY,s=0,o=e.graph(),u=o.marginx||0,h=o.marginy||0;function f(p){var m=p.x,b=p.y,_=p.width,w=p.height;t=Math.min(t,m-_/2),r=Math.max(r,m+_/2),a=Math.min(a,b-w/2),s=Math.max(s,b+w/2)}Zt(e.nodes(),function(p){f(e.node(p))}),Zt(e.edges(),function(p){var m=e.edge(p);Object.prototype.hasOwnProperty.call(m,"x")&&f(m)}),t-=u,a-=h,Zt(e.nodes(),function(p){var m=e.node(p);m.x-=t,m.y-=a}),Zt(e.edges(),function(p){var m=e.edge(p);Zt(m.points,function(b){b.x-=t,b.y-=a}),Object.prototype.hasOwnProperty.call(m,"x")&&(m.x-=t),Object.prototype.hasOwnProperty.call(m,"y")&&(m.y-=a)}),o.width=r-t+u,o.height=s-a+h}function g6i(e){Zt(e.edges(),function(t){var r=e.edge(t),a=e.node(t.v),s=e.node(t.w),o,u;r.points?(o=r.points[0],u=r.points[r.points.length-1]):(r.points=[],o=s,u=a),r.points.unshift(Nwn(a,o)),r.points.push(Nwn(s,u))})}function m6i(e){Zt(e.edges(),function(t){var r=e.edge(t);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function b6i(e){Zt(e.edges(),function(t){var r=e.edge(t);r.reversed&&r.points.reverse()})}function y6i(e){Zt(e.nodes(),function(t){if(e.children(t).length){var r=e.node(t),a=e.node(r.borderTop),s=e.node(r.borderBottom),o=e.node(i9(r.borderLeft)),u=e.node(i9(r.borderRight));r.width=Math.abs(u.x-o.x),r.height=Math.abs(s.y-a.y),r.x=o.x+r.width/2,r.y=a.y+r.height/2}}),Zt(e.nodes(),function(t){e.node(t).dummy==="border"&&e.removeNode(t)})}function v6i(e){Zt(e.edges(),function(t){if(t.v===t.w){var r=e.node(t.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function _6i(e){var t=eke(e);Zt(t,function(r){var a=0;Zt(r,function(s,o){var u=e.node(s);u.order=o+a,Zt(u.selfEdges,function(h){jW(e,"selfedge",{width:h.label.width,height:h.label.height,rank:u.rank,order:o+ ++a,e:h.e,label:h.label},"_se")}),delete u.selfEdges})})}function w6i(e){Zt(e.nodes(),function(t){var r=e.node(t);if(r.dummy==="selfedge"){var a=e.node(r.e.v),s=a.x+a.width/2,o=a.y,u=r.x-s,h=a.height/2;e.setEdge(r.e,r.label),e.removeNode(t),r.label.points=[{x:s+2*u/3,y:o-h},{x:s+5*u/6,y:o-h},{x:s+u,y:o},{x:s+5*u/6,y:o+h},{x:s+2*u/3,y:o+h}],r.label.x=r.x,r.label.y=r.y}})}function $nt(e,t){return H9(lR(e,t),Number)}function Unt(e){var t={};return Zt(e,function(r,a){t[a.toLowerCase()]=r}),t}function ZC(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:E6i(e),edges:x6i(e)};return gl(e.graph())||(t.value=ZAe(e.graph())),t}function E6i(e){return wo(e.nodes(),function(t){var r=e.node(t),a=e.parent(t),s={v:t};return gl(r)||(s.value=r),gl(a)||(s.parent=a),s})}function x6i(e){return wo(e.edges(),function(t){var r=e.edge(t),a={v:t.v,w:t.w};return gl(t.name)||(a.name=t.name),gl(r)||(a.value=r),a})}var Yl=new Map,aF=new Map,Qqn=new Map,S6i=X(()=>{aF.clear(),Qqn.clear(),Yl.clear()},"clear"),F3e=X((e,t)=>{const r=aF.get(t)||[];return it.trace("In isDescendant",t," ",e," = ",r.includes(e)),r.includes(e)},"isDescendant"),T6i=X((e,t)=>{const r=aF.get(t)||[];return it.info("Descendants of ",t," is ",r),it.info("Edge is ",e),e.v===t||e.w===t?!1:r?r.includes(e.v)||F3e(e.v,t)||F3e(e.w,t)||r.includes(e.w):(it.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),Zqn=X((e,t,r,a)=>{it.warn("Copying children of ",e,"root",a,"data",t.node(e),a);const s=t.children(e)||[];e!==a&&s.push(e),it.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(o=>{if(t.children(o).length>0)Zqn(o,t,r,a);else{const u=t.node(o);it.info("cp ",o," to ",a," with parent ",e),r.setNode(o,u),a!==t.parent(o)&&(it.warn("Setting parent",o,t.parent(o)),r.setParent(o,t.parent(o))),e!==a&&o!==e?(it.debug("Setting parent",o,e),r.setParent(o,e)):(it.info("In copy ",e,"root",a,"data",t.node(e),a),it.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==a,"node!==clusterId",o!==e));const h=t.edges(o);it.debug("Copying Edges",h),h.forEach(f=>{it.info("Edge",f);const p=t.edge(f.v,f.w,f.name);it.info("Edge data",p,a);try{T6i(f,a)?(it.info("Copying as ",f.v,f.w,p,f.name),r.setEdge(f.v,f.w,p,f.name),it.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):it.info("Skipping copy of edge ",f.v,"-->",f.w," rootId: ",a," clusterId:",e)}catch(m){it.error(m)}})}it.debug("Removing node",o),t.removeNode(o)})},"copy"),Jqn=X((e,t)=>{const r=t.children(e);let a=[...r];for(const s of r)Qqn.set(s,e),a=[...a,...Jqn(s,t)];return a},"extractDescendants"),C6i=X((e,t,r)=>{const a=e.edges().filter(f=>f.v===t||f.w===t),s=e.edges().filter(f=>f.v===r||f.w===r),o=a.map(f=>({v:f.v===t?r:f.v,w:f.w===t?t:f.w})),u=s.map(f=>({v:f.v,w:f.w}));return o.filter(f=>u.some(p=>f.v===p.v&&f.w===p.w))},"findCommonEdges"),Uoe=X((e,t,r)=>{const a=t.children(e);if(it.trace("Searching children of id ",e,a),a.length<1)return e;let s;for(const o of a){const u=Uoe(o,t,r),h=C6i(t,r,u);if(u)if(h.length>0)s=u;else return u}return s},"findNonClusterChild"),Uwn=X(e=>!Yl.has(e)||!Yl.get(e).externalConnections?e:Yl.has(e)?Yl.get(e).id:e,"getAnchorId"),A6i=X((e,t)=>{if(!e||t>10){it.debug("Opting out, no graph ");return}else it.debug("Opting in, graph ");e.nodes().forEach(function(r){e.children(r).length>0&&(it.warn("Cluster identified",r," Replacement id in edges: ",Uoe(r,e,r)),aF.set(r,Jqn(r,e)),Yl.set(r,{id:Uoe(r,e,r),clusterData:e.node(r)}))}),e.nodes().forEach(function(r){const a=e.children(r),s=e.edges();a.length>0?(it.debug("Cluster identified",r,aF),s.forEach(o=>{const u=F3e(o.v,r),h=F3e(o.w,r);u^h&&(it.warn("Edge: ",o," leaves cluster ",r),it.warn("Descendants of XXX ",r,": ",aF.get(r)),Yl.get(r).externalConnections=!0)})):it.debug("Not a cluster ",r,aF)});for(let r of Yl.keys()){const a=Yl.get(r).id,s=e.parent(a);s!==r&&Yl.has(s)&&!Yl.get(s).externalConnections&&(Yl.get(r).id=s)}e.edges().forEach(function(r){const a=e.edge(r);it.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),it.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(e.edge(r)));let s=r.v,o=r.w;if(it.warn("Fix XXX",Yl,"ids:",r.v,r.w,"Translating: ",Yl.get(r.v)," --- ",Yl.get(r.w)),Yl.get(r.v)||Yl.get(r.w)){if(it.warn("Fixing and trying - removing XXX",r.v,r.w,r.name),s=Uwn(r.v),o=Uwn(r.w),e.removeEdge(r.v,r.w,r.name),s!==r.v){const u=e.parent(s);Yl.get(u).externalConnections=!0,a.fromCluster=r.v}if(o!==r.w){const u=e.parent(o);Yl.get(u).externalConnections=!0,a.toCluster=r.w}it.warn("Fix Replacing with XXX",s,o,r.name),e.setEdge(s,o,a,r.name)}}),it.warn("Adjusted Graph",ZC(e)),eHn(e,0),it.trace(Yl)},"adjustClustersAndEdges"),eHn=X((e,t)=>{var s,o;if(it.warn("extractor - ",t,ZC(e),e.children("D")),t>10){it.error("Bailing out");return}let r=e.nodes(),a=!1;for(const u of r){const h=e.children(u);a=a||h.length>0}if(!a){it.debug("Done, no node has children",e.nodes());return}it.debug("Nodes = ",r,t);for(const u of r)if(it.debug("Extracting node",u,Yl,Yl.has(u)&&!Yl.get(u).externalConnections,!e.parent(u),e.node(u),e.children("D")," Depth ",t),!Yl.has(u))it.debug("Not a cluster",u,t);else if(!Yl.get(u).externalConnections&&e.children(u)&&e.children(u).length>0){it.warn("Cluster without external connections, without a parent and with children",u,t);let f=e.graph().rankdir==="TB"?"LR":"TB";(o=(s=Yl.get(u))==null?void 0:s.clusterData)!=null&&o.dir&&(f=Yl.get(u).clusterData.dir,it.warn("Fixing dir",Yl.get(u).clusterData.dir,f));const p=new c_({multigraph:!0,compound:!0}).setGraph({rankdir:f,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});it.warn("Old graph before copy",ZC(e)),Zqn(u,e,p,u),e.setNode(u,{clusterNode:!0,id:u,clusterData:Yl.get(u).clusterData,label:Yl.get(u).label,graph:p}),it.warn("New graph after copy node: (",u,")",ZC(p)),it.debug("Old graph after copy",ZC(e))}else it.warn("Cluster ** ",u," **not meeting the criteria !externalConnections:",!Yl.get(u).externalConnections," no parent: ",!e.parent(u)," children ",e.children(u)&&e.children(u).length>0,e.children("D"),t),it.debug(Yl);r=e.nodes(),it.warn("New list of nodes",r);for(const u of r){const h=e.node(u);it.warn(" Now next level",u,h),h!=null&&h.clusterNode&&eHn(h.graph,t+1)}},"extractor"),tHn=X((e,t)=>{if(t.length===0)return[];let r=Object.assign([],t);return t.forEach(a=>{const s=e.children(a),o=tHn(e,s);r=[...r,...o]}),r},"sorter"),k6i=X(e=>tHn(e,e.children()),"sortNodesByHierarchy"),nHn=X(async(e,t,r,a,s,o)=>{it.warn("Graph in recursive render:XAX",ZC(t),s);const u=t.graph().rankdir;it.trace("Dir in recursive render - dir:",u);const h=e.insert("g").attr("class","root");t.nodes()?it.info("Recursive render XXX",t.nodes()):it.info("No nodes found for",t),t.edges().length>0&&it.info("Recursive edges",t.edge(t.edges()[0]));const f=h.insert("g").attr("class","clusters"),p=h.insert("g").attr("class","edgePaths"),m=h.insert("g").attr("class","edgeLabels"),b=h.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(C){const A=t.node(C);if(s!==void 0){const k=JSON.parse(JSON.stringify(s.clusterData));it.trace(`Setting data for parent cluster XXX Node.id = `,C,` data=`,k.height,` Parent cluster`,s.height),t.setNode(s.id,k),t.parent(C)||(it.trace("Setting parent",C,s.id),t.setParent(C,s.id,k))}if(it.info("(Insert) Node XXX"+C+": "+JSON.stringify(t.node(C))),A!=null&&A.clusterNode){it.info("Cluster identified XBX",C,A.width,t.node(C));const{ranksep:k,nodesep:I}=t.graph();A.graph.setGraph({...A.graph.graph(),ranksep:k+25,nodesep:I});const N=await nHn(b,A.graph,r,a,t.node(C),o),L=N.elem;es(A,L),A.diff=N.diff||0,it.info("New compound node after recursive render XAX",C,"width",A.width,"height",A.height),jpi(L,A)}else t.children(C).length>0?(it.trace("Cluster - the non recursive path XBX",C,A.id,A,A.width,"Graph:",t),it.trace(Uoe(A.id,t)),Yl.set(A.id,{id:Uoe(A.id,t),node:A})):(it.trace("Node - the non recursive path XAX",C,b,t.node(C),u),await NAe(b,t.node(C),{config:o,dir:u}))})),await X(async()=>{const C=t.edges().map(async function(A){const k=t.edge(A.v,A.w,A.name);it.info("Edge "+A.v+" -> "+A.w+": "+JSON.stringify(A)),it.info("Edge "+A.v+" -> "+A.w+": ",A," ",JSON.stringify(t.edge(A))),it.info("Fix",Yl,"ids:",A.v,A.w,"Translating: ",Yl.get(A.v),Yl.get(A.w)),await i$n(m,k)});await Promise.all(C)},"processEdges")(),it.info("Graph before layout:",JSON.stringify(ZC(t))),it.info("############################################# XXX"),it.info("### Layout ### XXX"),it.info("############################################# XXX"),Xqn(t),it.info("Graph after layout:",JSON.stringify(ZC(t)));let w=0,{subGraphTitleTotalMargin:S}=oce(o);return await Promise.all(k6i(t).map(async function(C){var k;const A=t.node(C);if(it.info("Position XBX => "+C+": ("+A.x,","+A.y,") width: ",A.width," height: ",A.height),A!=null&&A.clusterNode)A.y+=S,it.info("A tainted cluster node XBX1",C,A.id,A.width,A.height,A.x,A.y,t.parent(C)),Yl.get(A.id).node=A,olt(A);else if(t.children(C).length>0){it.info("A pure cluster node XBX1",C,A.id,A.x,A.y,A.width,A.height,t.parent(C)),A.height+=S,t.node(A.parentId);const I=(A==null?void 0:A.padding)/2||0,N=((k=A==null?void 0:A.labelBBox)==null?void 0:k.height)||0,L=N-I||0;it.debug("OffsetY",L,"labelHeight",N,"halfPadding",I),await ept(f,A),Yl.get(A.id).node=A}else{const I=t.node(A.parentId);A.y+=S/2,it.info("A regular node XBX1 - using the padding",A.id,"parent",A.parentId,A.width,A.height,A.x,A.y,"offsetY",A.offsetY,"parent",I,I==null?void 0:I.offsetY,A),olt(A)}})),t.edges().forEach(function(C){const A=t.edge(C);it.info("Edge "+C.v+" -> "+C.w+": "+JSON.stringify(A),A),A.points.forEach(L=>L.y+=S/2);const k=t.node(C.v);var I=t.node(C.w);const N=o$n(p,A,Yl,r,k,I,a);a$n(A,N)}),t.nodes().forEach(function(C){const A=t.node(C);it.info(C,A.type,A.diff),A.isGroup&&(w=A.diff)}),it.warn("Returning from recursive render XAX",h,w),{elem:h,diff:w}},"recursiveRender"),R6i=X(async(e,t)=>{var o,u,h,f,p,m;const r=new c_({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:((o=e.config)==null?void 0:o.nodeSpacing)||((h=(u=e.config)==null?void 0:u.flowchart)==null?void 0:h.nodeSpacing)||e.nodeSpacing,ranksep:((f=e.config)==null?void 0:f.rankSpacing)||((m=(p=e.config)==null?void 0:p.flowchart)==null?void 0:m.rankSpacing)||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),a=t.select("g");u$n(a,e.markers,e.type,e.diagramId),Wpi(),Qpi(),Rpi(),S6i(),e.nodes.forEach(b=>{r.setNode(b.id,{...b}),b.parentId&&r.setParent(b.id,b.parentId)}),it.debug("Edges:",e.edges),e.edges.forEach(b=>{if(b.start===b.end){const _=b.start,w=_+"---"+_+"---1",S=_+"---"+_+"---2",C=r.node(_);r.setNode(w,{domId:w,id:w,parentId:C.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),r.setParent(w,C.parentId),r.setNode(S,{domId:S,id:S,parentId:C.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),r.setParent(S,C.parentId);const A=structuredClone(b),k=structuredClone(b),I=structuredClone(b);A.label="",A.arrowTypeEnd="none",A.id=_+"-cyclic-special-1",k.arrowTypeStart="none",k.arrowTypeEnd="none",k.id=_+"-cyclic-special-mid",I.label="",C.isGroup&&(A.fromCluster=_,I.toCluster=_),I.id=_+"-cyclic-special-2",I.arrowTypeStart="none",r.setEdge(_,w,A,_+"-cyclic-special-0"),r.setEdge(w,S,k,_+"-cyclic-special-1"),r.setEdge(S,_,I,_+"-cyce.length)&&(t=e.length);for(var r=0,a=Array(t);r=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(f){throw f},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,u=!0,h=!1;return{s:function(){r=r.call(e)},n:function(){var f=r.next();return u=f.done,f},e:function(f){h=!0,o=f},f:function(){try{u||r.return==null||r.return()}finally{if(h)throw o}}}}function rHn(e,t,r){return(t=iHn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D6i(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function M6i(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,s,o,u,h=[],f=!0,p=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(a=o.call(r)).done)&&(h.push(a.value),h.length!==t);f=!0);}catch(m){p=!0,s=m}finally{try{if(!f&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(p)throw s}}return h}}function P6i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B6i(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S1(e,t){return N6i(e)||M6i(e,t)||hgt(e,t)||P6i()}function $3e(e){return O6i(e)||D6i(e)||hgt(e)||B6i()}function F6i(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function iHn(e){var t=F6i(e,"string");return typeof t=="symbol"?t:t+""}function Dp(e){"@babel/helpers - typeof";return Dp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dp(e)}function hgt(e,t){if(e){if(typeof e=="string")return tct(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tct(e,t):void 0}}var vp=typeof window>"u"?null:window,zwn=vp?vp.navigator:null;vp&&vp.document;var $6i=Dp(""),aHn=Dp({}),U6i=Dp(function(){}),z6i=typeof HTMLElement>"u"?"undefined":Dp(HTMLElement),wce=function(t){return t&&t.instanceString&&Of(t.instanceString)?t.instanceString():null},Ns=function(t){return t!=null&&Dp(t)==$6i},Of=function(t){return t!=null&&Dp(t)===U6i},Mh=function(t){return!Bw(t)&&(Array.isArray?Array.isArray(t):t!=null&&t instanceof Array)},Vc=function(t){return t!=null&&Dp(t)===aHn&&!Mh(t)&&t.constructor===Object},G6i=function(t){return t!=null&&Dp(t)===aHn},aa=function(t){return t!=null&&Dp(t)===Dp(1)&&!isNaN(t)},q6i=function(t){return aa(t)&&Math.floor(t)===t},U3e=function(t){if(z6i!=="undefined")return t!=null&&t instanceof HTMLElement},Bw=function(t){return Ece(t)||sHn(t)},Ece=function(t){return wce(t)==="collection"&&t._private.single},sHn=function(t){return wce(t)==="collection"&&!t._private.single},dgt=function(t){return wce(t)==="core"},oHn=function(t){return wce(t)==="stylesheet"},H6i=function(t){return wce(t)==="event"},a9=function(t){return t==null?!0:!!(t===""||t.match(/^\s+$/))},V6i=function(t){return typeof HTMLElement>"u"?!1:t instanceof HTMLElement},Y6i=function(t){return Vc(t)&&aa(t.x1)&&aa(t.x2)&&aa(t.y1)&&aa(t.y2)},j6i=function(t){return G6i(t)&&Of(t.then)},W6i=function(){return zwn&&zwn.userAgent.match(/msie|trident|edge/i)},Uj=function(t,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var o=[],u=0;ur?1:0},t7i=function(t,r){return-1*cHn(t,r)},eo=Object.assign!=null?Object.assign.bind(Object):function(e){for(var t=arguments,r=1;r1&&(A-=1),A<1/6?S+(C-S)*6*A:A<1/2?C:A<2/3?S+(C-S)*(2/3-A)*6:S}var b=new RegExp("^"+Q6i+"$").exec(t);if(b){if(a=parseInt(b[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,s=parseFloat(b[2]),s<0||s>100||(s=s/100,o=parseFloat(b[3]),o<0||o>100)||(o=o/100,u=b[4],u!==void 0&&(u=parseFloat(u),u<0||u>1)))return;if(s===0)h=f=p=Math.round(o*255);else{var _=o<.5?o*(1+s):o+s-o*s,w=2*o-_;h=Math.round(255*m(w,_,a+1/3)),f=Math.round(255*m(w,_,a)),p=Math.round(255*m(w,_,a-1/3))}r=[h,f,p,u]}return r},i7i=function(t){var r,a=new RegExp("^"+K6i+"$").exec(t);if(a){r=[];for(var s=[],o=1;o<=3;o++){var u=a[o];if(u[u.length-1]==="%"&&(s[o]=!0),u=parseFloat(u),s[o]&&(u=u/100*255),u<0||u>255)return;r.push(Math.floor(u))}var h=s[1]||s[2]||s[3],f=s[1]&&s[2]&&s[3];if(h&&!f)return;var p=a[4];if(p!==void 0){if(p=parseFloat(p),p<0||p>1)return;r.push(p)}}return r},a7i=function(t){return s7i[t.toLowerCase()]},uHn=function(t){return(Mh(t)?t:null)||a7i(t)||n7i(t)||i7i(t)||r7i(t)},s7i={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},hHn=function(t){for(var r=t.map,a=t.keys,s=a.length,o=0;o=f||Y<0||I&&W>=_}function U(){var z=t();if(F(z))return $(z);S=setTimeout(U,M(z))}function $(z){return S=void 0,N&&m?L(z):(m=b=void 0,w)}function G(){S!==void 0&&clearTimeout(S),A=0,m=C=b=S=void 0}function B(){return S===void 0?w:$(t())}function Z(){var z=t(),Y=F(z);if(m=arguments,b=this,C=z,Y){if(S===void 0)return P(C);if(I)return clearTimeout(S),S=setTimeout(U,f),L(C)}return S===void 0&&(S=setTimeout(U,f)),w}return Z.cancel=G,Z.flush=B,Z}return ert=u,ert}var m7i=g7i(),Cce=xce(m7i),trt=vp?vp.performance:null,pHn=trt&&trt.now?function(){return trt.now()}:function(){return Date.now()},b7i=function(){if(vp){if(vp.requestAnimationFrame)return function(e){vp.requestAnimationFrame(e)};if(vp.mozRequestAnimationFrame)return function(e){vp.mozRequestAnimationFrame(e)};if(vp.webkitRequestAnimationFrame)return function(e){vp.webkitRequestAnimationFrame(e)};if(vp.msRequestAnimationFrame)return function(e){vp.msRequestAnimationFrame(e)}}return function(e){e&&setTimeout(function(){e(pHn())},1e3/60)}}(),z3e=function(t){return b7i(t)},cR=pHn,FB=9261,gHn=65599,gV=5381,mHn=function(t){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:FB,a=r,s;s=t.next(),!s.done;)a=a*gHn+s.value|0;return a},zoe=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:FB;return r*gHn+t|0},Goe=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gV;return(r<<5)+r+t|0},y7i=function(t,r){return t*2097152+r},PN=function(t){return t[0]*2097152+t[1]},Rwe=function(t,r){return[zoe(t[0],r[0]),Goe(t[1],r[1])]},rEn=function(t,r){var a={value:0,done:!1},s=0,o=t.length,u={next:function(){return s=0;s--)t[s]===r&&t.splice(s,1)},bgt=function(t){t.splice(0,t.length)},k7i=function(t,r){for(var a=0;a"u"?"undefined":Dp(Set))!==I7i?Set:N7i,rke=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(t===void 0||r===void 0||!dgt(t)){jd("An element must have a core reference and parameters set");return}var s=r.group;if(s==null&&(r.data&&r.data.source!=null&&r.data.target!=null?s="edges":s="nodes"),s!=="nodes"&&s!=="edges"){jd("An element must be of type `nodes` or `edges`; you specified `"+s+"`");return}this.length=1,this[0]=this;var o=this._private={cy:t,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:s,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:r.selectable===void 0?!0:!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:r.grabbable===void 0?!0:!!r.grabbable,pannable:r.pannable===void 0?s==="edges":!!r.pannable,active:!1,classes:new WW,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(o.position.x==null&&(o.position.x=0),o.position.y==null&&(o.position.y=0),r.renderedPosition){var u=r.renderedPosition,h=t.pan(),f=t.zoom();o.position={x:(u.x-h.x)/f,y:(u.y-h.y)/f}}var p=[];Mh(r.classes)?p=r.classes:Ns(r.classes)&&(p=r.classes.split(/\s+/));for(var m=0,b=p.length;mI?1:0},m=function(k,I,N,L,P){var M;if(N==null&&(N=0),P==null&&(P=a),N<0)throw new Error("lo must be non-negative");for(L==null&&(L=k.length);NG;0<=G?$++:$--)U.push($);return U}).apply(this).reverse(),F=[],L=0,P=M.length;LB;0<=B?++U:--U)Z.push(u(k,N));return Z},C=function(k,I,N,L){var P,M,F;for(L==null&&(L=a),P=k[N];N>I;){if(F=N-1>>1,M=k[F],L(P,M)<0){k[N]=M,N=F;continue}break}return k[N]=P},A=function(k,I,N){var L,P,M,F,U;for(N==null&&(N=a),P=k.length,U=I,M=k[I],L=2*I+1;L0;){var M=I.pop(),F=A(M),U=M.id();if(_[U]=F,F!==1/0)for(var $=M.neighborhood().intersect(S),G=0;G<$.length;G++){var B=$[G],Z=B.id(),z=P(M,B),Y=F+z.dist;Y0)for(j.unshift(V);b[te];){var ne=b[te];j.unshift(ne.edge),j.unshift(ne.node),ee=ne.node,te=ee.id()}return h.spawn(j)}}}},F7i={kruskal:function(t){t=t||function(N){return 1};for(var r=this.byGroup(),a=r.nodes,s=r.edges,o=a.length,u=new Array(o),h=a,f=function(L){for(var P=0;P0;){if(P(),F++,L===m){for(var U=[],$=o,G=m,B=k[G];U.unshift($),B!=null&&U.unshift(B),$=A[G],$!=null;)G=$.id(),B=k[G];return{found:!0,distance:b[L],path:this.spawn(U),steps:F}}w[L]=!0;for(var Z=N._private.edges,z=0;zB&&(S[G]=B,I[G]=$,N[G]=P),!o){var Z=$*m+U;!o&&S[Z]>B&&(S[Z]=B,I[Z]=U,N[Z]=P)}}}for(var z=0;z1&&arguments[1]!==void 0?arguments[1]:u,ot=N(Oe),sn=[],Kt=ot;;){if(Kt==null)return r.spawn();var Ft=I(Kt),Je=Ft.edge,ht=Ft.pred;if(sn.unshift(Kt[0]),Kt.same(Dt)&&sn.length>0)break;Je!=null&&sn.unshift(Je),Kt=ht}return f.spawn(sn)},M=0;M=0;m--){var b=p[m],_=b[1],w=b[2];(r[_]===h&&r[w]===f||r[_]===f&&r[w]===h)&&p.splice(m,1)}for(var S=0;Ss;){var o=Math.floor(Math.random()*r.length);r=Y7i(o,t,r),a--}return r},j7i={kargerStein:function(){var t=this,r=this.byGroup(),a=r.nodes,s=r.edges;s.unmergeBy(function(j){return j.isLoop()});var o=a.length,u=s.length,h=Math.ceil(Math.pow(Math.log(o)/Math.LN2,2)),f=Math.floor(o/V7i);if(o<2){jd("At least 2 nodes are required for Karger-Stein algorithm");return}for(var p=[],m=0;m1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.length,s=1/0,o=r;o1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.length,s=-1/0,o=r;o1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.length,s=0,o=0,u=r;u1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.length,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;s?t=t.slice(r,a):(a0&&t.splice(0,r));for(var h=0,f=t.length-1;f>=0;f--){var p=t[f];u?isFinite(p)||(t[f]=-1/0,h++):t.splice(f,1)}o&&t.sort(function(_,w){return _-w});var m=t.length,b=Math.floor(m/2);return m%2!==0?t[b+1+h]:(t[b-1+h]+t[b+h])/2},J7i=function(t){return Math.PI*t/180},Iwe=function(t,r){return Math.atan2(r,t)-Math.PI/2},ygt=Math.log2||function(e){return Math.log(e)/Math.log(2)},vgt=function(t){return t>0?1:t<0?-1:0},XF=function(t,r){return Math.sqrt(NB(t,r))},NB=function(t,r){var a=r.x-t.x,s=r.y-t.y;return a*a+s*s},eRi=function(t){for(var r=t.length,a=0,s=0;s=t.x1&&t.y2>=t.y1)return{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,w:t.x2-t.x1,h:t.y2-t.y1};if(t.w!=null&&t.h!=null&&t.w>=0&&t.h>=0)return{x1:t.x1,y1:t.y1,x2:t.x1+t.w,y2:t.y1+t.h,w:t.w,h:t.h}}},nRi=function(t){return{x1:t.x1,x2:t.x2,w:t.w,y1:t.y1,y2:t.y2,h:t.h}},rRi=function(t){t.x1=1/0,t.y1=1/0,t.x2=-1/0,t.y2=-1/0,t.w=0,t.h=0},iRi=function(t,r){t.x1=Math.min(t.x1,r.x1),t.x2=Math.max(t.x2,r.x2),t.w=t.x2-t.x1,t.y1=Math.min(t.y1,r.y1),t.y2=Math.max(t.y2,r.y2),t.h=t.y2-t.y1},xHn=function(t,r,a){t.x1=Math.min(t.x1,r),t.x2=Math.max(t.x2,r),t.w=t.x2-t.x1,t.y1=Math.min(t.y1,a),t.y2=Math.max(t.y2,a),t.h=t.y2-t.y1},wxe=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return t.x1-=r,t.x2+=r,t.y1-=r,t.y2+=r,t.w=t.x2-t.x1,t.h=t.y2-t.y1,t},Exe=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,s,o,u;if(r.length===1)a=s=o=u=r[0];else if(r.length===2)a=o=r[0],u=s=r[1];else if(r.length===4){var h=S1(r,4);a=h[0],s=h[1],o=h[2],u=h[3]}return t.x1-=u,t.x2+=s,t.y1-=a,t.y2+=o,t.w=t.x2-t.x1,t.h=t.y2-t.y1,t},cEn=function(t,r){t.x1=r.x1,t.y1=r.y1,t.x2=r.x2,t.y2=r.y2,t.w=t.x2-t.x1,t.h=t.y2-t.y1},_gt=function(t,r){return!(t.x1>r.x2||r.x1>t.x2||t.x2r.y2||r.y1>t.y2)},bO=function(t,r,a){return t.x1<=r&&r<=t.x2&&t.y1<=a&&a<=t.y2},uEn=function(t,r){return bO(t,r.x,r.y)},SHn=function(t,r){return bO(t,r.x1,r.y1)&&bO(t,r.x2,r.y2)},aRi=(irt=Math.hypot)!==null&&irt!==void 0?irt:function(e,t){return Math.sqrt(e*e+t*t)};function sRi(e,t){if(e.length<3)throw new Error("Need at least 3 vertices");var r=function(U,$){return{x:U.x+$.x,y:U.y+$.y}},a=function(U,$){return{x:U.x-$.x,y:U.y-$.y}},s=function(U,$){return{x:U.x*$,y:U.y*$}},o=function(U,$){return U.x*$.y-U.y*$.x},u=function(U){var $=aRi(U.x,U.y);return $===0?{x:0,y:0}:{x:U.x/$,y:U.y/$}},h=function(U){for(var $=0,G=0;G7&&arguments[7]!==void 0?arguments[7]:"auto",p=f==="auto"?o9(o,u):f,m=o/2,b=u/2;p=Math.min(p,m,b);var _=p!==m,w=p!==b,S;if(_){var C=a-m+p-h,A=s-b-h,k=a+m-p+h,I=A;if(S=yO(t,r,a,s,C,A,k,I,!1),S.length>0)return S}if(w){var N=a+m+h,L=s-b+p-h,P=N,M=s+b-p+h;if(S=yO(t,r,a,s,N,L,P,M,!1),S.length>0)return S}if(_){var F=a-m+p-h,U=s+b+h,$=a+m-p+h,G=U;if(S=yO(t,r,a,s,F,U,$,G,!1),S.length>0)return S}if(w){var B=a-m-h,Z=s-b+p-h,z=B,Y=s+b-p+h;if(S=yO(t,r,a,s,B,Z,z,Y,!1),S.length>0)return S}var W;{var Q=a-m+p,V=s-b+p;if(W=Yie(t,r,a,s,Q,V,p+h),W.length>0&&W[0]<=Q&&W[1]<=V)return[W[0],W[1]]}{var j=a+m-p,ee=s-b+p;if(W=Yie(t,r,a,s,j,ee,p+h),W.length>0&&W[0]>=j&&W[1]<=ee)return[W[0],W[1]]}{var te=a+m-p,ne=s+b-p;if(W=Yie(t,r,a,s,te,ne,p+h),W.length>0&&W[0]>=te&&W[1]>=ne)return[W[0],W[1]]}{var se=a-m+p,ie=s+b-p;if(W=Yie(t,r,a,s,se,ie,p+h),W.length>0&&W[0]<=se&&W[1]>=ie)return[W[0],W[1]]}return[]},lRi=function(t,r,a,s,o,u,h){var f=h,p=Math.min(a,o),m=Math.max(a,o),b=Math.min(s,u),_=Math.max(s,u);return p-f<=t&&t<=m+f&&b-f<=r&&r<=_+f},cRi=function(t,r,a,s,o,u,h,f,p){var m={x1:Math.min(a,h,o)-p,x2:Math.max(a,h,o)+p,y1:Math.min(s,f,u)-p,y2:Math.max(s,f,u)+p};return!(tm.x2||rm.y2)},uRi=function(t,r,a,s){a-=s;var o=r*r-4*t*a;if(o<0)return[];var u=Math.sqrt(o),h=2*t,f=(-r+u)/h,p=(-r-u)/h;return[f,p]},hRi=function(t,r,a,s,o){var u=1e-5;t===0&&(t=u),r/=t,a/=t,s/=t;var h,f,p,m,b,_,w,S;if(f=(3*a-r*r)/9,p=-(27*s)+r*(9*a-2*(r*r)),p/=54,h=f*f*f+p*p,o[1]=0,w=r/3,h>0){b=p+Math.sqrt(h),b=b<0?-Math.pow(-b,1/3):Math.pow(b,1/3),_=p-Math.sqrt(h),_=_<0?-Math.pow(-_,1/3):Math.pow(_,1/3),o[0]=-w+b+_,w+=(b+_)/2,o[4]=o[2]=-w,w=Math.sqrt(3)*(-_+b)/2,o[3]=w,o[5]=-w;return}if(o[5]=o[3]=0,h===0){S=p<0?-Math.pow(-p,1/3):Math.pow(p,1/3),o[0]=-w+2*S,o[4]=o[2]=-(S+w);return}f=-f,m=f*f*f,m=Math.acos(p/Math.sqrt(m)),S=2*Math.sqrt(f),o[0]=-w+S*Math.cos(m/3),o[2]=-w+S*Math.cos((m+2*Math.PI)/3),o[4]=-w+S*Math.cos((m+4*Math.PI)/3)},dRi=function(t,r,a,s,o,u,h,f){var p=1*a*a-4*a*o+2*a*h+4*o*o-4*o*h+h*h+s*s-4*s*u+2*s*f+4*u*u-4*u*f+f*f,m=1*9*a*o-3*a*a-3*a*h-6*o*o+3*o*h+9*s*u-3*s*s-3*s*f-6*u*u+3*u*f,b=1*3*a*a-6*a*o+a*h-a*t+2*o*o+2*o*t-h*t+3*s*s-6*s*u+s*f-s*r+2*u*u+2*u*r-f*r,_=1*a*o-a*a+a*t-o*t+s*u-s*s+s*r-u*r,w=[];hRi(p,m,b,_,w);for(var S=1e-7,C=[],A=0;A<6;A+=2)Math.abs(w[A+1])=0&&w[A]<=1&&C.push(w[A]);C.push(1),C.push(0);for(var k=-1,I,N,L,P=0;P=0?Lp?(t-o)*(t-o)+(r-u)*(r-u):m-_},$2=function(t,r,a){for(var s,o,u,h,f,p=0,m=0;m=t&&t>=u||s<=t&&t<=u)f=(t-s)/(u-s)*(h-o)+o,f>r&&p++;else continue;return p%2!==0},uR=function(t,r,a,s,o,u,h,f,p){var m=new Array(a.length),b;f[0]!=null?(b=Math.atan(f[1]/f[0]),f[0]<0?b=b+Math.PI/2:b=-b-Math.PI/2):b=f;for(var _=Math.cos(-b),w=Math.sin(-b),S=0;S0){var A=H3e(m,-p);C=q3e(A)}else C=m;return $2(t,r,C)},pRi=function(t,r,a,s,o,u,h,f){for(var p=new Array(a.length*2),m=0;m=0&&A<=1&&I.push(A),k>=0&&k<=1&&I.push(k),I.length===0)return[];var N=I[0]*f[0]+t,L=I[0]*f[1]+r;if(I.length>1){if(I[0]==I[1])return[N,L];var P=I[1]*f[0]+t,M=I[1]*f[1]+r;return[N,L,P,M]}else return[N,L]},art=function(t,r,a){return r<=t&&t<=a||a<=t&&t<=r?t:t<=r&&r<=a||a<=r&&r<=t?r:a},yO=function(t,r,a,s,o,u,h,f,p){var m=t-o,b=a-t,_=h-o,w=r-u,S=s-r,C=f-u,A=_*w-C*m,k=b*w-S*m,I=C*b-_*S;if(I!==0){var N=A/I,L=k/I,P=.001,M=0-P,F=1+P;return M<=N&&N<=F&&M<=L&&L<=F?[t+N*b,r+N*S]:p?[t+N*b,r+N*S]:[]}else return A===0||k===0?art(t,a,h)===h?[h,f]:art(t,a,o)===o?[o,u]:art(o,h,a)===a?[a,s]:[]:[]},mRi=function(t,r,a,s,o){var u=[],h=s/2,f=o/2,p=r,m=a;u.push({x:p+h*t[0],y:m+f*t[1]});for(var b=1;b0){var C=H3e(b,-f);w=q3e(C)}else w=b}else w=a;for(var A,k,I,N,L=0;L2){for(var S=[m[0],m[1]],C=Math.pow(S[0]-t,2)+Math.pow(S[1]-r,2),A=1;Am&&(m=L)},get:function(N){return p[N]}},_=0;_0?W=Y.edgesTo(z)[0]:W=z.edgesTo(Y)[0];var Q=s(W);z=z.id(),F[z]>F[B]+Q&&(F[z]=F[B]+Q,U.nodes.indexOf(z)<0?U.push(z):U.updateItem(z),M[z]=0,P[z]=[]),F[z]==F[B]+Q&&(M[z]=M[z]+M[B],P[z].push(B))}else for(var V=0;V0;){for(var ne=L.pop(),se=0;se0&&h.push(a[f]);h.length!==0&&o.push(s.collection(h))}return o},NRi=function(t,r){for(var a=0;a5&&arguments[5]!==void 0?arguments[5]:DRi,h=s,f,p,m=0;m=2?eie(t,r,a,0,gEn,MRi):eie(t,r,a,0,pEn)},squaredEuclidean:function(t,r,a){return eie(t,r,a,0,gEn)},manhattan:function(t,r,a){return eie(t,r,a,0,pEn)},max:function(t,r,a){return eie(t,r,a,-1/0,PRi)}};zj["squared-euclidean"]=zj.squaredEuclidean;zj.squaredeuclidean=zj.squaredEuclidean;function ake(e,t,r,a,s,o){var u;return Of(e)?u=e:u=zj[e]||zj.euclidean,t===0&&Of(e)?u(s,o):u(t,r,a,s,o)}var BRi=Nm({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Egt=function(t){return BRi(t)},V3e=function(t,r,a,s,o){var u=o!=="kMedoids",h=u?function(b){return a[b]}:function(b){return s[b](a)},f=function(_){return s[_](r)},p=a,m=r;return ake(t,s.length,h,f,p,m)},ort=function(t,r,a){for(var s=a.length,o=new Array(s),u=new Array(s),h=new Array(r),f=null,p=0;pa)return!1}return!0},URi=function(t,r,a){for(var s=0;sh&&(h=r[p][m],f=m);o[f].push(t[p])}for(var b=0;b=o.threshold||o.mode==="dendrogram"&&t.length===1)return!1;var S=r[u],C=r[s[u]],A;o.mode==="dendrogram"?A={left:S,right:C,key:S.key}:A={value:S.value.concat(C.value),key:S.key},t[S.index]=A,t.splice(C.index,1),r[S.key]=A;for(var k=0;ka[C.key][I.key]&&(f=a[C.key][I.key])):o.linkage==="max"?(f=a[S.key][I.key],a[S.key][I.key]0&&s.push(o);return s},wEn=function(t,r,a){for(var s=[],o=0;oh&&(u=p,h=r[o*t+p])}u>0&&s.push(u)}for(var m=0;mp&&(f=m,p=b)}a[o]=u[f]}return s=wEn(t,r,a),s},EEn=function(t){for(var r=this.cy(),a=this.nodes(),s=ZRi(t),o={},u=0;u=B?(Z=B,B=Y,z=W):Y>Z&&(Z=Y);for(var Q=0;Q0?1:0;F[$%s.minIterations*h+se]=ie,ne+=ie}if(ne>0&&($>=s.minIterations-1||$==s.maxIterations-1)){for(var ge=0,ce=0;ce1||M>1)&&(h=!0),b[N]=[],I.outgoers().forEach(function(U){U.isEdge()&&b[N].push(U.id())})}else _[N]=[void 0,I.target().id()]}):u.forEach(function(I){var N=I.id();if(I.isNode()){var L=I.degree(!0);L%2&&(f?p?h=!0:p=N:f=N),b[N]=[],I.connectedEdges().forEach(function(P){return b[N].push(P.id())})}else _[N]=[I.source().id(),I.target().id()]});var w={found:!1,trail:void 0};if(h)return w;if(p&&f)if(o){if(m&&p!=m)return w;m=p}else{if(m&&p!=m&&f!=m)return w;m||(m=p)}else m||(m=u[0].id());var S=function(N){for(var L=N,P=[N],M,F,U;b[L].length;)M=b[L].shift(),F=_[M][0],U=_[M][1],L!=U?(b[U]=b[U].filter(function($){return $!=M}),L=U):!o&&L!=F&&(b[F]=b[F].filter(function($){return $!=M}),L=F),P.unshift(M),P.unshift(L);return P},C=[],A=[];for(A=S(m);A.length!=1;)b[A[0]].length==0?(C.unshift(u.getElementById(A.shift())),C.unshift(u.getElementById(A.shift()))):A=S(A.shift()).concat(A);C.unshift(u.getElementById(A.shift()));for(var k in b)if(b[k].length)return w;return w.found=!0,w.trail=this.spawn(C,!0),w}},Owe=function(){var t=this,r={},a=0,s=0,o=[],u=[],h={},f=function(_,w){for(var S=u.length-1,C=[],A=t.spawn();u[S].x!=_||u[S].y!=w;)C.push(u.pop().edge),S--;C.push(u.pop().edge),C.forEach(function(k){var I=k.connectedNodes().intersection(t);A.merge(k),I.forEach(function(N){var L=N.id(),P=N.connectedEdges().intersection(t);A.merge(N),r[L].cutVertex?A.merge(P.filter(function(M){return M.isLoop()})):A.merge(P)})}),o.push(A)},p=function(_,w,S){_===S&&(s+=1),r[w]={id:a,low:a++,cutVertex:!1};var C=t.getElementById(w).connectedEdges().intersection(t);if(C.size()===0)o.push(t.spawn(t.getElementById(w)));else{var A,k,I,N;C.forEach(function(L){A=L.source().id(),k=L.target().id(),I=A===w?k:A,I!==S&&(N=L.id(),h[N]||(h[N]=!0,u.push({x:w,y:I,edge:L})),I in r?r[w].low=Math.min(r[w].low,r[I].id):(p(_,I,w),r[w].low=Math.min(r[w].low,r[I].low),r[w].id<=r[I].low&&(r[w].cutVertex=!0,f(w,I))))})}};t.forEach(function(b){if(b.isNode()){var _=b.id();_ in r||(s=0,p(_,_),r[_].cutVertex=s>1)}});var m=Object.keys(r).filter(function(b){return r[b].cutVertex}).map(function(b){return t.getElementById(b)});return{cut:t.spawn(m),components:o}},s8i={hopcroftTarjanBiconnected:Owe,htbc:Owe,htb:Owe,hopcroftTarjanBiconnectedComponents:Owe},Lwe=function(){var t=this,r={},a=0,s=[],o=[],u=t.spawn(t),h=function(p){o.push(p),r[p]={index:a,low:a++,explored:!1};var m=t.getElementById(p).connectedEdges().intersection(t);if(m.forEach(function(C){var A=C.target().id();A!==p&&(A in r||h(A),r[A].explored||(r[p].low=Math.min(r[p].low,r[A].low)))}),r[p].index===r[p].low){for(var b=t.spawn();;){var _=o.pop();if(b.merge(t.getElementById(_)),r[_].low=r[p].index,r[_].explored=!0,_===p)break}var w=b.edgesWith(b),S=b.merge(w);s.push(S),u=u.difference(S)}};return t.forEach(function(f){if(f.isNode()){var p=f.id();p in r||h(p)}}),{cut:u,components:s}},o8i={tarjanStronglyConnected:Lwe,tsc:Lwe,tscc:Lwe,tarjanStronglyConnectedComponents:Lwe},OHn={};[qoe,B7i,F7i,U7i,G7i,H7i,j7i,_Ri,nY,rY,ict,LRi,YRi,XRi,r8i,a8i,s8i,o8i].forEach(function(e){eo(OHn,e)});/*! Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com) Licensed under The MIT License (http://opensource.org/licenses/MIT) */var LHn=0,DHn=1,MHn=2,lT=function(t){if(!(this instanceof lT))return new lT(t);this.id="Thenable/1.0.7",this.state=LHn,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof t=="function"&&t.call(this,this.fulfill.bind(this),this.reject.bind(this))};lT.prototype={fulfill:function(t){return xEn(this,DHn,"fulfillValue",t)},reject:function(t){return xEn(this,MHn,"rejectReason",t)},then:function(t,r){var a=this,s=new lT;return a.onFulfilled.push(TEn(t,s,"fulfill")),a.onRejected.push(TEn(r,s,"reject")),PHn(a),s.proxy}};var xEn=function(t,r,a,s){return t.state===LHn&&(t.state=r,t[a]=s,PHn(t)),t},PHn=function(t){t.state===DHn?SEn(t,"onFulfilled",t.fulfillValue):t.state===MHn&&SEn(t,"onRejected",t.rejectReason)},SEn=function(t,r,a){if(t[r].length!==0){var s=t[r];t[r]=[];var o=function(){for(var h=0;h0}},clearQueue:function(){return function(){var r=this,a=r.length!==void 0,s=a?r:[r],o=this._private.cy||this;if(!o.styleEnabled())return this;for(var u=0;u-1}return Rrt=t,Rrt}var Irt,WEn;function C8i(){if(WEn)return Irt;WEn=1;var e=lke();function t(r,a){var s=this.__data__,o=e(s,r);return o<0?(++this.size,s.push([r,a])):s[o][1]=a,this}return Irt=t,Irt}var Nrt,KEn;function A8i(){if(KEn)return Nrt;KEn=1;var e=E8i(),t=x8i(),r=S8i(),a=T8i(),s=C8i();function o(u){var h=-1,f=u==null?0:u.length;for(this.clear();++h-1&&a%1==0&&a0&&this.spawn(s).updateStyle().emit("class"),r},addClass:function(t){return this.toggleClass(t,!0)},hasClass:function(t){var r=this[0];return r!=null&&r._private.classes.has(t)},toggleClass:function(t,r){Mh(t)||(t=t.match(/\S+/g)||[]);for(var a=this,s=r===void 0,o=[],u=0,h=a.length;u0&&this.spawn(o).updateStyle().emit("class"),a},removeClass:function(t){return this.toggleClass(t,!1)},flashClass:function(t,r){var a=this;if(r==null)r=250;else if(r===0)return a;return a.addClass(t),setTimeout(function(){a.removeClass(t)},r),a}};xxe.className=xxe.classNames=xxe.classes;var Hc={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:Ip,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};Hc.variable="(?:[\\w-.]|(?:\\\\"+Hc.metaChar+"))+";Hc.className="(?:[\\w-]|(?:\\\\"+Hc.metaChar+"))+";Hc.value=Hc.string+"|"+Hc.number;Hc.id=Hc.variable;(function(){var e,t,r;for(e=Hc.comparatorOp.split("|"),r=0;r=0)&&t!=="="&&(Hc.comparatorOp+="|\\!"+t)})();var yh=function(){return{checks:[]}},Ua={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},lct=[{selector:":selected",matches:function(t){return t.selected()}},{selector:":unselected",matches:function(t){return!t.selected()}},{selector:":selectable",matches:function(t){return t.selectable()}},{selector:":unselectable",matches:function(t){return!t.selectable()}},{selector:":locked",matches:function(t){return t.locked()}},{selector:":unlocked",matches:function(t){return!t.locked()}},{selector:":visible",matches:function(t){return t.visible()}},{selector:":hidden",matches:function(t){return!t.visible()}},{selector:":transparent",matches:function(t){return t.transparent()}},{selector:":grabbed",matches:function(t){return t.grabbed()}},{selector:":free",matches:function(t){return!t.grabbed()}},{selector:":removed",matches:function(t){return t.removed()}},{selector:":inside",matches:function(t){return!t.removed()}},{selector:":grabbable",matches:function(t){return t.grabbable()}},{selector:":ungrabbable",matches:function(t){return!t.grabbable()}},{selector:":animated",matches:function(t){return t.animated()}},{selector:":unanimated",matches:function(t){return!t.animated()}},{selector:":parent",matches:function(t){return t.isParent()}},{selector:":childless",matches:function(t){return t.isChildless()}},{selector:":child",matches:function(t){return t.isChild()}},{selector:":orphan",matches:function(t){return t.isOrphan()}},{selector:":nonorphan",matches:function(t){return t.isChild()}},{selector:":compound",matches:function(t){return t.isNode()?t.isParent():t.source().isParent()||t.target().isParent()}},{selector:":loop",matches:function(t){return t.isLoop()}},{selector:":simple",matches:function(t){return t.isSimple()}},{selector:":active",matches:function(t){return t.active()}},{selector:":inactive",matches:function(t){return!t.active()}},{selector:":backgrounding",matches:function(t){return t.backgrounding()}},{selector:":nonbackgrounding",matches:function(t){return!t.backgrounding()}}].sort(function(e,t){return t7i(e.selector,t.selector)}),iIi=function(){for(var e={},t,r=0;r0&&m.edgeCount>0)return Uu("The selector `"+t+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(m.edgeCount>1)return Uu("The selector `"+t+"` is invalid because it uses multiple edge selectors"),!1;m.edgeCount===1&&Uu("The selector `"+t+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},uIi=function(){if(this.toStringCache!=null)return this.toStringCache;for(var t=function(m){return m??""},r=function(m){return Ns(m)?'"'+m+'"':t(m)},a=function(m){return" "+m+" "},s=function(m,b){var _=m.type,w=m.value;switch(_){case Ua.GROUP:{var S=t(w);return S.substring(0,S.length-1)}case Ua.DATA_COMPARE:{var C=m.field,A=m.operator;return"["+C+a(t(A))+r(w)+"]"}case Ua.DATA_BOOL:{var k=m.operator,I=m.field;return"["+t(k)+I+"]"}case Ua.DATA_EXIST:{var N=m.field;return"["+N+"]"}case Ua.META_COMPARE:{var L=m.operator,P=m.field;return"[["+P+a(t(L))+r(w)+"]]"}case Ua.STATE:return w;case Ua.ID:return"#"+w;case Ua.CLASS:return"."+w;case Ua.PARENT:case Ua.CHILD:return o(m.parent,b)+a(">")+o(m.child,b);case Ua.ANCESTOR:case Ua.DESCENDANT:return o(m.ancestor,b)+" "+o(m.descendant,b);case Ua.COMPOUND_SPLIT:{var M=o(m.left,b),F=o(m.subject,b),U=o(m.right,b);return M+(M.length>0?" ":"")+F+U}case Ua.TRUE:return""}},o=function(m,b){return m.checks.reduce(function(_,w,S){return _+(b===m&&S===0?"$":"")+s(w,b)},"")},u="",h=0;h1&&h=0&&(r=r.replace("!",""),b=!0),r.indexOf("@")>=0&&(r=r.replace("@",""),m=!0),(o||h||m)&&(f=!o&&!u?"":""+t,p=""+a),m&&(t=f=f.toLowerCase(),a=p=p.toLowerCase()),r){case"*=":s=f.indexOf(p)>=0;break;case"$=":s=f.indexOf(p,f.length-p.length)>=0;break;case"^=":s=f.indexOf(p)===0;break;case"=":s=t===a;break;case">":_=!0,s=t>a;break;case">=":_=!0,s=t>=a;break;case"<":_=!0,s=t0;){var m=s.shift();t(m),o.add(m.id()),h&&a(s,o,m)}return e}function HHn(e,t,r){if(r.isParent())for(var a=r._private.children,s=0;s1&&arguments[1]!==void 0?arguments[1]:!0;return Cgt(this,e,t,HHn)};function VHn(e,t,r){if(r.isChild()){var a=r._private.parent;t.has(a.id())||e.push(a)}}Gj.forEachUp=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Cgt(this,e,t,VHn)};function yIi(e,t,r){VHn(e,t,r),HHn(e,t,r)}Gj.forEachUpAndDown=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Cgt(this,e,t,yIi)};Gj.ancestors=Gj.parents;var Yoe,YHn;Yoe=YHn={data:Fu.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:Fu.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:Fu.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Fu.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:Fu.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:Fu.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var t=this[0];if(t)return t._private.data.id}};Yoe.attr=Yoe.data;Yoe.removeAttr=Yoe.removeData;var vIi=YHn,uke={};function ait(e){return function(t){var r=this;if(t===void 0&&(t=!0),r.length!==0)if(r.isNode()&&!r.removed()){for(var a=0,s=r[0],o=s._private.edges,u=0;ut}),minIndegree:jH("indegree",function(e,t){return et}),minOutdegree:jH("outdegree",function(e,t){return et})});eo(uke,{totalDegree:function(t){for(var r=0,a=this.nodes(),s=0;s0,_=b;b&&(m=m[0]);var w=_?m.position():{x:0,y:0};r!==void 0?p.position(t,r+w[t]):o!==void 0&&p.position({x:o.x+w.x,y:o.y+w.y})}else{var S=a.position(),C=h?a.parent():null,A=C&&C.length>0,k=A;A&&(C=C[0]);var I=k?C.position():{x:0,y:0};return o={x:S.x-I.x,y:S.y-I.y},t===void 0?o:o[t]}else if(!u)return;return this}};Z3.modelPosition=Z3.point=Z3.position;Z3.modelPositions=Z3.points=Z3.positions;Z3.renderedPoint=Z3.renderedPosition;Z3.relativePoint=Z3.relativePosition;var _Ii=jHn,iY,j9;iY=j9={};j9.renderedBoundingBox=function(e){var t=this.boundingBox(e),r=this.cy(),a=r.zoom(),s=r.pan(),o=t.x1*a+s.x,u=t.x2*a+s.x,h=t.y1*a+s.y,f=t.y2*a+s.y;return{x1:o,x2:u,y1:h,y2:f,w:u-o,h:f-h}};j9.dirtyCompoundBoundsCache=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.cy();return!t.styleEnabled()||!t.hasCompoundNodes()?this:(this.forEachUp(function(r){if(r.isParent()){var a=r._private;a.compoundBoundsClean=!1,a.bbCache=null,e||r.emitAndNotify("bounds")}}),this)};j9.updateCompoundBounds=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.cy();if(!t.styleEnabled()||!t.hasCompoundNodes())return this;if(!e&&t.batching())return this;function r(u){if(!u.isParent())return;var h=u._private,f=u.children(),p=u.pstyle("compound-sizing-wrt-labels").value==="include",m={width:{val:u.pstyle("min-width").pfValue,left:u.pstyle("min-width-bias-left"),right:u.pstyle("min-width-bias-right")},height:{val:u.pstyle("min-height").pfValue,top:u.pstyle("min-height-bias-top"),bottom:u.pstyle("min-height-bias-bottom")}},b=f.boundingBox({includeLabels:p,includeOverlays:!1,useCache:!1}),_=h.position;(b.w===0||b.h===0)&&(b={w:u.pstyle("width").pfValue,h:u.pstyle("height").pfValue},b.x1=_.x-b.w/2,b.x2=_.x+b.w/2,b.y1=_.y-b.h/2,b.y2=_.y+b.h/2);function w($,G,B){var Z=0,z=0,Y=G+B;return $>0&&Y>0&&(Z=G/Y*$,z=B/Y*$),{biasDiff:Z,biasComplementDiff:z}}function S($,G,B,Z){if(B.units==="%")switch(Z){case"width":return $>0?B.pfValue*$:0;case"height":return G>0?B.pfValue*G:0;case"average":return $>0&&G>0?B.pfValue*($+G)/2:0;case"min":return $>0&&G>0?$>G?B.pfValue*G:B.pfValue*$:0;case"max":return $>0&&G>0?$>G?B.pfValue*$:B.pfValue*G:0;default:return 0}else return B.units==="px"?B.pfValue:0}var C=m.width.left.value;m.width.left.units==="px"&&m.width.val>0&&(C=C*100/m.width.val);var A=m.width.right.value;m.width.right.units==="px"&&m.width.val>0&&(A=A*100/m.width.val);var k=m.height.top.value;m.height.top.units==="px"&&m.height.val>0&&(k=k*100/m.height.val);var I=m.height.bottom.value;m.height.bottom.units==="px"&&m.height.val>0&&(I=I*100/m.height.val);var N=w(m.width.val-b.w,C,A),L=N.biasDiff,P=N.biasComplementDiff,M=w(m.height.val-b.h,k,I),F=M.biasDiff,U=M.biasComplementDiff;h.autoPadding=S(b.w,b.h,u.pstyle("padding"),u.pstyle("padding-relative-to").value),h.autoWidth=Math.max(b.w,m.width.val),_.x=(-L+b.x1+b.x2+P)/2,h.autoHeight=Math.max(b.h,m.height.val),_.y=(-F+b.y1+b.y2+U)/2}for(var a=0;at.x2?s:t.x2,t.y1=at.y2?o:t.y2,t.w=t.x2-t.x1,t.h=t.y2-t.y1)},XN=function(t,r){return r==null?t:N3(t,r.x1,r.y1,r.x2,r.y2)},tie=function(t,r,a){return F2(t,r,a)},Dwe=function(t,r,a){if(!r.cy().headless()){var s=r._private,o=s.rstyle,u=o.arrowWidth/2,h=r.pstyle(a+"-arrow-shape").value,f,p;if(h!=="none"){a==="source"?(f=o.srcX,p=o.srcY):a==="target"?(f=o.tgtX,p=o.tgtY):(f=o.midX,p=o.midY);var m=s.arrowBounds=s.arrowBounds||{},b=m[a]=m[a]||{};b.x1=f-u,b.y1=p-u,b.x2=f+u,b.y2=p+u,b.w=b.x2-b.x1,b.h=b.y2-b.y1,wxe(b,1),N3(t,b.x1,b.y1,b.x2,b.y2)}}},sit=function(t,r,a){if(!r.cy().headless()){var s;a?s=a+"-":s="";var o=r._private,u=o.rstyle,h=r.pstyle(s+"label").strValue;if(h){var f=r.pstyle("text-halign"),p=r.pstyle("text-valign"),m=tie(u,"labelWidth",a),b=tie(u,"labelHeight",a),_=tie(u,"labelX",a),w=tie(u,"labelY",a),S=r.pstyle(s+"text-margin-x").pfValue,C=r.pstyle(s+"text-margin-y").pfValue,A=r.isEdge(),k=r.pstyle(s+"text-rotation"),I=r.pstyle("text-outline-width").pfValue,N=r.pstyle("text-border-width").pfValue,L=N/2,P=r.pstyle("text-background-padding").pfValue,M=2,F=b,U=m,$=U/2,G=F/2,B,Z,z,Y;if(A)B=_-$,Z=_+$,z=w-G,Y=w+G;else{switch(f.value){case"left":B=_-U,Z=_;break;case"center":B=_-$,Z=_+$;break;case"right":B=_,Z=_+U;break}switch(p.value){case"top":z=w-F,Y=w;break;case"center":z=w-G,Y=w+G;break;case"bottom":z=w,Y=w+F;break}}var W=S-Math.max(I,L)-P-M,Q=S+Math.max(I,L)+P+M,V=C-Math.max(I,L)-P-M,j=C+Math.max(I,L)+P+M;B+=W,Z+=Q,z+=V,Y+=j;var ee=a||"main",te=o.labelBounds,ne=te[ee]=te[ee]||{};ne.x1=B,ne.y1=z,ne.x2=Z,ne.y2=Y,ne.w=Z-B,ne.h=Y-z,ne.leftPad=W,ne.rightPad=Q,ne.topPad=V,ne.botPad=j;var se=A&&k.strValue==="autorotate",ie=k.pfValue!=null&&k.pfValue!==0;if(se||ie){var ge=se?tie(o.rstyle,"labelAngle",a):k.pfValue,ce=Math.cos(ge),be=Math.sin(ge),ve=(B+Z)/2,De=(z+Y)/2;if(!A){switch(f.value){case"left":ve=Z;break;case"right":ve=B;break}switch(p.value){case"top":De=Y;break;case"bottom":De=z;break}}var ye=function(Ve,Oe){return Ve=Ve-ve,Oe=Oe-De,{x:Ve*ce-Oe*be+ve,y:Ve*be+Oe*ce+De}},Ee=ye(B,z),he=ye(B,Y),we=ye(Z,z),Ce=ye(Z,Y);B=Math.min(Ee.x,he.x,we.x,Ce.x),Z=Math.max(Ee.x,he.x,we.x,Ce.x),z=Math.min(Ee.y,he.y,we.y,Ce.y),Y=Math.max(Ee.y,he.y,we.y,Ce.y)}var Ie=ee+"Rot",Le=te[Ie]=te[Ie]||{};Le.x1=B,Le.y1=z,Le.x2=Z,Le.y2=Y,Le.w=Z-B,Le.h=Y-z,N3(t,B,z,Z,Y),N3(o.labelBounds.all,B,z,Z,Y)}return t}},Sxn=function(t,r){if(!r.cy().headless()){var a=r.pstyle("outline-opacity").value,s=r.pstyle("outline-width").value,o=r.pstyle("outline-offset").value,u=s+o;KHn(t,r,a,u,"outside",u/2)}},KHn=function(t,r,a,s,o,u){if(!(a===0||s<=0||o==="inside")){var h=r.cy(),f=r.pstyle("shape").value,p=h.renderer().nodeShapes[f],m=r.position(),b=m.x,_=m.y,w=r.width(),S=r.height();if(p.hasMiterBounds){o==="center"&&(s/=2);var C=p.miterBounds(b,_,w,S,s);XN(t,C)}else u!=null&&u>0&&Exe(t,[u,u,u,u])}},wIi=function(t,r){if(!r.cy().headless()){var a=r.pstyle("border-opacity").value,s=r.pstyle("border-width").pfValue,o=r.pstyle("border-position").value;KHn(t,r,a,s,o)}},EIi=function(t,r){var a=t._private.cy,s=a.styleEnabled(),o=a.headless(),u=uv(),h=t._private,f=t.isNode(),p=t.isEdge(),m,b,_,w,S,C,A=h.rstyle,k=f&&s?t.pstyle("bounds-expansion").pfValue:[0],I=function(Fe){return Fe.pstyle("display").value!=="none"},N=!s||I(t)&&(!p||I(t.source())&&I(t.target()));if(N){var L=0,P=0;s&&r.includeOverlays&&(L=t.pstyle("overlay-opacity").value,L!==0&&(P=t.pstyle("overlay-padding").value));var M=0,F=0;s&&r.includeUnderlays&&(M=t.pstyle("underlay-opacity").value,M!==0&&(F=t.pstyle("underlay-padding").value));var U=Math.max(P,F),$=0,G=0;if(s&&($=t.pstyle("width").pfValue,G=$/2),f&&r.includeNodes){var B=t.position();S=B.x,C=B.y;var Z=t.outerWidth(),z=Z/2,Y=t.outerHeight(),W=Y/2;m=S-z,b=S+z,_=C-W,w=C+W,N3(u,m,_,b,w),s&&Sxn(u,t),s&&r.includeOutlines&&!o&&Sxn(u,t),s&&wIi(u,t)}else if(p&&r.includeEdges)if(s&&!o){var Q=t.pstyle("curve-style").strValue;if(m=Math.min(A.srcX,A.midX,A.tgtX),b=Math.max(A.srcX,A.midX,A.tgtX),_=Math.min(A.srcY,A.midY,A.tgtY),w=Math.max(A.srcY,A.midY,A.tgtY),m-=G,b+=G,_-=G,w+=G,N3(u,m,_,b,w),Q==="haystack"){var V=A.haystackPts;if(V&&V.length===2){if(m=V[0].x,_=V[0].y,b=V[1].x,w=V[1].y,m>b){var j=m;m=b,b=j}if(_>w){var ee=_;_=w,w=ee}N3(u,m-G,_-G,b+G,w+G)}}else if(Q==="bezier"||Q==="unbundled-bezier"||mO(Q,"segments")||mO(Q,"taxi")){var te;switch(Q){case"bezier":case"unbundled-bezier":te=A.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":te=A.linePts;break}if(te!=null)for(var ne=0;neb){var ve=m;m=b,b=ve}if(_>w){var De=_;_=w,w=De}m-=G,b+=G,_-=G,w+=G,N3(u,m,_,b,w)}if(s&&r.includeEdges&&p&&(Dwe(u,t,"mid-source"),Dwe(u,t,"mid-target"),Dwe(u,t,"source"),Dwe(u,t,"target")),s){var ye=t.pstyle("ghost").value==="yes";if(ye){var Ee=t.pstyle("ghost-offset-x").pfValue,he=t.pstyle("ghost-offset-y").pfValue;N3(u,u.x1+Ee,u.y1+he,u.x2+Ee,u.y2+he)}}var we=h.bodyBounds=h.bodyBounds||{};cEn(we,u),Exe(we,k),wxe(we,1),s&&(m=u.x1,b=u.x2,_=u.y1,w=u.y2,N3(u,m-U,_-U,b+U,w+U));var Ce=h.overlayBounds=h.overlayBounds||{};cEn(Ce,u),Exe(Ce,k),wxe(Ce,1);var Ie=h.labelBounds=h.labelBounds||{};Ie.all!=null?rRi(Ie.all):Ie.all=uv(),s&&r.includeLabels&&(r.includeMainLabels&&sit(u,t,null),p&&(r.includeSourceLabels&&sit(u,t,"source"),r.includeTargetLabels&&sit(u,t,"target")))}return u.x1=Zx(u.x1),u.y1=Zx(u.y1),u.x2=Zx(u.x2),u.y2=Zx(u.y2),u.w=Zx(u.x2-u.x1),u.h=Zx(u.y2-u.y1),u.w>0&&u.h>0&&N&&(Exe(u,k),wxe(u,1)),u},XHn=function(t){var r=0,a=function(u){return(u?1:0)<0&&arguments[0]!==void 0?arguments[0]:BIi,t=arguments.length>1?arguments[1]:void 0,r=0;r=0;h--)u(h);return this};u9.removeAllListeners=function(){return this.removeListener("*")};u9.emit=u9.trigger=function(e,t,r){var a=this.listeners,s=a.length;return this.emitting++,Mh(t)||(t=[t]),FIi(this,function(o,u){r!=null&&(a=[{event:u.event,type:u.type,namespace:u.namespace,callback:r}],s=a.length);for(var h=function(){var m=a[f];if(m.type===u.type&&(!m.namespace||m.namespace===u.namespace||m.namespace===PIi)&&o.eventMatches(o.context,m,u)){var b=[u];t!=null&&k7i(b,t),o.beforeEmit(o.context,m,u),m.conf&&m.conf.one&&(o.listeners=o.listeners.filter(function(S){return S!==m}));var _=o.callbackContext(o.context,m,u),w=m.callback.apply(_,b);o.afterEmit(o.context,m,u),w===!1&&(u.stopPropagation(),u.preventDefault())}},f=0;f1&&!u){var h=this.length-1,f=this[h],p=f._private.data.id;this[h]=void 0,this[t]=f,o.set(p,{ele:f,index:t})}return this.length--,this},unmergeOne:function(t){t=t[0];var r=this._private,a=t._private.data.id,s=r.map,o=s.get(a);if(!o)return this;var u=o.index;return this.unmergeAt(u),this},unmerge:function(t){var r=this._private.cy;if(!t)return this;if(t&&Ns(t)){var a=t;t=r.mutableElements().filter(a)}for(var s=0;s=0;r--){var a=this[r];t(a)&&this.unmergeAt(r)}return this},map:function(t,r){for(var a=[],s=this,o=0;oa&&(a=f,s=h)}return{value:a,ele:s}},min:function(t,r){for(var a=1/0,s,o=this,u=0;u=0&&o"u"?"undefined":Dp(Symbol))!=t&&Dp(Symbol.iterator)!=t;r&&(Y3e[Symbol.iterator]=function(){var a=this,s={value:void 0,done:!1},o=0,u=this.length;return rHn({next:function(){return o1&&arguments[1]!==void 0?arguments[1]:!0,a=this[0],s=a.cy();if(s.styleEnabled()&&a){a._private.styleDirty&&(a._private.styleDirty=!1,s.style().apply(a));var o=a._private.style[t];return o??(r?s.style().getDefaultProperty(t):null)}},numericStyle:function(t){var r=this[0];if(r.cy().styleEnabled()&&r){var a=r.pstyle(t);return a.pfValue!==void 0?a.pfValue:a.value}},numericStyleUnits:function(t){var r=this[0];if(r.cy().styleEnabled()&&r)return r.pstyle(t).units},renderedStyle:function(t){var r=this.cy();if(!r.styleEnabled())return this;var a=this[0];if(a)return r.style().getRenderedStyle(a,t)},style:function(t,r){var a=this.cy();if(!a.styleEnabled())return this;var s=!1,o=a.style();if(Vc(t)){var u=t;o.applyBypass(this,u,s),this.emitAndNotify("style")}else if(Ns(t))if(r===void 0){var h=this[0];return h?o.getStylePropertyValue(h,t):void 0}else o.applyBypass(this,t,r,s),this.emitAndNotify("style");else if(t===void 0){var f=this[0];return f?o.getRawStyle(f):void 0}return this},removeStyle:function(t){var r=this.cy();if(!r.styleEnabled())return this;var a=!1,s=r.style(),o=this;if(t===void 0)for(var u=0;u0&&t.push(m[0]),t.push(h[0])}return this.spawn(t,!0).filter(e)},"neighborhood"),closedNeighborhood:function(t){return this.neighborhood().add(this).filter(t)},openNeighborhood:function(t){return this.neighborhood(t)}});kb.neighbourhood=kb.neighborhood;kb.closedNeighbourhood=kb.closedNeighborhood;kb.openNeighbourhood=kb.openNeighborhood;eo(kb,{source:oS(function(t){var r=this[0],a;return r&&(a=r._private.source||r.cy().collection()),a&&t?a.filter(t):a},"source"),target:oS(function(t){var r=this[0],a;return r&&(a=r._private.target||r.cy().collection()),a&&t?a.filter(t):a},"target"),sources:Mxn({attr:"source"}),targets:Mxn({attr:"target"})});function Mxn(e){return function(r){for(var a=[],s=0;s0);return u},component:function(){var t=this[0];return t.cy().mutableElements().components(t)[0]}});kb.componentsOf=kb.components;var Cm=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t===void 0){jd("A collection must have a reference to the core");return}var o=new k7,u=!1;if(!r)r=[];else if(r.length>0&&Vc(r[0])&&!Ece(r[0])){u=!0;for(var h=[],f=new WW,p=0,m=r.length;p0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,a=r.cy(),s=a._private,o=[],u=[],h,f=0,p=r.length;f0){for(var ee=h.length===r.length?r:new Cm(a,h),te=0;te0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,a=[],s={},o=r._private.cy;function u(Y){for(var W=Y._private.edges,Q=0;Q0&&(e?B.emitAndNotify("remove"):t&&B.emit("remove"));for(var Z=0;Z0?Z=Y:B=Y;while(Math.abs(z)>u&&++W=o?I(G,W):Q===0?W:L(G,B,B+p)}var M=!1;function F(){M=!0,(e!==t||r!==a)&&N()}var U=function(B){return M||F(),e===t&&r===a?B:B===0?0:B===1?1:A(P(B),t,a)};U.getControlPoints=function(){return[{x:e,y:t},{x:r,y:a}]};var $="generateBezier("+[e,t,r,a]+")";return U.toString=function(){return $},U}/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */var KIi=function(){function e(a){return-a.tension*a.x-a.friction*a.v}function t(a,s,o){var u={x:a.x+o.dx*s,v:a.v+o.dv*s,tension:a.tension,friction:a.friction};return{dx:u.v,dv:e(u)}}function r(a,s){var o={dx:a.v,dv:e(a)},u=t(a,s*.5,o),h=t(a,s*.5,u),f=t(a,s,h),p=1/6*(o.dx+2*(u.dx+h.dx)+f.dx),m=1/6*(o.dv+2*(u.dv+h.dv)+f.dv);return a.x=a.x+p*s,a.v=a.v+m*s,a}return function a(s,o,u){var h={x:-1,v:0,tension:null,friction:null},f=[0],p=0,m=1/1e4,b=16/1e3,_,w,S;for(s=parseFloat(s)||500,o=parseFloat(o)||20,u=u||null,h.tension=s,h.friction=o,_=u!==null,_?(p=a(s,o),w=p/u*b):w=b;S=r(S||h,w),f.push(1+S.x),p+=16,Math.abs(S.x)>m&&Math.abs(S.v)>m;);return _?function(C){return f[C*(f.length-1)|0]}:p}}(),Kh=function(t,r,a,s){var o=WIi(t,r,a,s);return function(u,h,f){return u+(h-u)*o(f)}},Txe={linear:function(t,r,a){return t+(r-t)*a},ease:Kh(.25,.1,.25,1),"ease-in":Kh(.42,0,1,1),"ease-out":Kh(0,0,.58,1),"ease-in-out":Kh(.42,0,.58,1),"ease-in-sine":Kh(.47,0,.745,.715),"ease-out-sine":Kh(.39,.575,.565,1),"ease-in-out-sine":Kh(.445,.05,.55,.95),"ease-in-quad":Kh(.55,.085,.68,.53),"ease-out-quad":Kh(.25,.46,.45,.94),"ease-in-out-quad":Kh(.455,.03,.515,.955),"ease-in-cubic":Kh(.55,.055,.675,.19),"ease-out-cubic":Kh(.215,.61,.355,1),"ease-in-out-cubic":Kh(.645,.045,.355,1),"ease-in-quart":Kh(.895,.03,.685,.22),"ease-out-quart":Kh(.165,.84,.44,1),"ease-in-out-quart":Kh(.77,0,.175,1),"ease-in-quint":Kh(.755,.05,.855,.06),"ease-out-quint":Kh(.23,1,.32,1),"ease-in-out-quint":Kh(.86,0,.07,1),"ease-in-expo":Kh(.95,.05,.795,.035),"ease-out-expo":Kh(.19,1,.22,1),"ease-in-out-expo":Kh(1,0,0,1),"ease-in-circ":Kh(.6,.04,.98,.335),"ease-out-circ":Kh(.075,.82,.165,1),"ease-in-out-circ":Kh(.785,.135,.15,.86),spring:function(t,r,a){if(a===0)return Txe.linear;var s=KIi(t,r,a);return function(o,u,h){return o+(u-o)*s(h)}},"cubic-bezier":Kh};function Fxn(e,t,r,a,s){if(a===1||t===r)return r;var o=s(t,r,a);return e==null||((e.roundValue||e.color)&&(o=Math.round(o)),e.min!==void 0&&(o=Math.max(o,e.min)),e.max!==void 0&&(o=Math.min(o,e.max))),o}function $xn(e,t){return e.pfValue!=null||e.value!=null?e.pfValue!=null&&(t==null||t.type.units!=="%")?e.pfValue:e.value:e}function WH(e,t,r,a,s){var o=s!=null?s.type:null;r<0?r=0:r>1&&(r=1);var u=$xn(e,s),h=$xn(t,s);if(aa(u)&&aa(h))return Fxn(o,u,h,r,a);if(Mh(u)&&Mh(h)){for(var f=[],p=0;p0?(w==="spring"&&S.push(u.duration),u.easingImpl=Txe[w].apply(null,S)):u.easingImpl=Txe[w]}var C=u.easingImpl,A;if(u.duration===0?A=1:A=(r-f)/u.duration,u.applying&&(A=u.progress),A<0?A=0:A>1&&(A=1),u.delay==null){var k=u.startPosition,I=u.position;if(I&&s&&!e.locked()){var N={};rie(k.x,I.x)&&(N.x=WH(k.x,I.x,A,C)),rie(k.y,I.y)&&(N.y=WH(k.y,I.y,A,C)),e.position(N)}var L=u.startPan,P=u.pan,M=o.pan,F=P!=null&&a;F&&(rie(L.x,P.x)&&(M.x=WH(L.x,P.x,A,C)),rie(L.y,P.y)&&(M.y=WH(L.y,P.y,A,C)),e.emit("pan"));var U=u.startZoom,$=u.zoom,G=$!=null&&a;G&&(rie(U,$)&&(o.zoom=Hoe(o.minZoom,WH(U,$,A,C),o.maxZoom)),e.emit("zoom")),(F||G)&&e.emit("viewport");var B=u.style;if(B&&B.length>0&&s){for(var Z=0;Z=0;F--){var U=M[F];U()}M.splice(0,M.length)},I=w.length-1;I>=0;I--){var N=w[I],L=N._private;if(L.stopped){w.splice(I,1),L.hooked=!1,L.playing=!1,L.started=!1,k(L.frames);continue}!L.playing&&!L.applying||(L.playing&&L.applying&&(L.applying=!1),L.started||QIi(m,N,e),XIi(m,N,e,b),L.applying&&(L.applying=!1),k(L.frames),L.step!=null&&L.step(e),N.completed()&&(w.splice(I,1),L.hooked=!1,L.playing=!1,L.started=!1,k(L.completes)),C=!0)}return!b&&w.length===0&&S.length===0&&a.push(m),C}for(var o=!1,u=0;u0?t.notify("draw",r):t.notify("draw")),r.unmerge(a),t.emit("step")}var ZIi={animate:Fu.animate(),animation:Fu.animation(),animated:Fu.animated(),clearQueue:Fu.clearQueue(),delay:Fu.delay(),delayAnimation:Fu.delayAnimation(),stop:Fu.stop(),addToAnimationPool:function(t){var r=this;r.styleEnabled()&&r._private.aniEles.merge(t)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var t=this;if(t._private.animationsRunning=!0,!t.styleEnabled())return;function r(){t._private.animationsRunning&&z3e(function(o){Uxn(o,t),r()})}var a=t.renderer();a&&a.beforeRender?a.beforeRender(function(o,u){Uxn(u,t)},a.beforeRenderPriorities.animations):r()}},JIi={qualifierCompare:function(t,r){return t==null||r==null?t==null&&r==null:t.sameText(r)},eventMatches:function(t,r,a){var s=r.qualifier;return s!=null?t!==a.target&&Ece(a.target)&&s.matches(a.target):!0},addEventFields:function(t,r){r.cy=t,r.target=t},callbackContext:function(t,r,a){return r.qualifier!=null?a.target:t}},Bwe=function(t){return Ns(t)?new l9(t):t},oVn={createEmitter:function(){var t=this._private;return t.emitter||(t.emitter=new hke(JIi,this)),this},emitter:function(){return this._private.emitter},on:function(t,r,a){return this.emitter().on(t,Bwe(r),a),this},removeListener:function(t,r,a){return this.emitter().removeListener(t,Bwe(r),a),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(t,r,a){return this.emitter().one(t,Bwe(r),a),this},once:function(t,r,a){return this.emitter().one(t,Bwe(r),a),this},emit:function(t,r){return this.emitter().emit(t,r),this},emitAndNotify:function(t,r){return this.emit(t),this.notify(t,r),this}};Fu.eventAliasesOn(oVn);var uct={png:function(t){var r=this._private.renderer;return t=t||{},r.png(t)},jpg:function(t){var r=this._private.renderer;return t=t||{},t.bg=t.bg||"#fff",r.jpg(t)}};uct.jpeg=uct.jpg;var Cxe={layout:function(t){var r=this;if(t==null){jd("Layout options must be specified to make a layout");return}if(t.name==null){jd("A `name` must be specified to make a layout");return}var a=t.name,s=r.extension("layout",a);if(s==null){jd("No such layout `"+a+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var o;Ns(t.eles)?o=r.$(t.eles):o=t.eles!=null?t.eles:r.$();var u=new s(eo({},t,{cy:r,eles:o}));return u}};Cxe.createLayout=Cxe.makeLayout=Cxe.layout;var eNi={notify:function(t,r){var a=this._private;if(this.batching()){a.batchNotifications=a.batchNotifications||{};var s=a.batchNotifications[t]=a.batchNotifications[t]||this.collection();r!=null&&s.merge(r);return}if(a.notificationsEnabled){var o=this.renderer();this.destroyed()||!o||o.notify(t,r)}},notifications:function(t){var r=this._private;return t===void 0?r.notificationsEnabled:(r.notificationsEnabled=!!t,this)},noNotifications:function(t){this.notifications(!1),t(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var t=this._private;return t.batchCount==null&&(t.batchCount=0),t.batchCount===0&&(t.batchStyleEles=this.collection(),t.batchNotifications={}),t.batchCount++,this},endBatch:function(){var t=this._private;if(t.batchCount===0)return this;if(t.batchCount--,t.batchCount===0){t.batchStyleEles.updateStyle();var r=this.renderer();Object.keys(t.batchNotifications).forEach(function(a){var s=t.batchNotifications[a];s.empty()?r.notify(a):r.notify(a,s)})}return this},batch:function(t){return this.startBatch(),t(),this.endBatch(),this},batchData:function(t){var r=this;return this.batch(function(){for(var a=Object.keys(t),s=0;s0;)r.removeChild(r.childNodes[0]);t._private.renderer=null,t.mutableElements().forEach(function(a){var s=a._private;s.rscratch={},s.rstyle={},s.animation.current=[],s.animation.queue=[]})},onRender:function(t){return this.on("render",t)},offRender:function(t){return this.off("render",t)}};hct.invalidateDimensions=hct.resize;var Axe={collection:function(t,r){return Ns(t)?this.$(t):Bw(t)?t.collection():Mh(t)?(r||(r={}),new Cm(this,t,r.unique,r.removed)):new Cm(this)},nodes:function(t){var r=this.$(function(a){return a.isNode()});return t?r.filter(t):r},edges:function(t){var r=this.$(function(a){return a.isEdge()});return t?r.filter(t):r},$:function(t){var r=this._private.elements;return t?r.filter(t):r.spawnSelf()},mutableElements:function(){return this._private.elements}};Axe.elements=Axe.filter=Axe.$;var Dg={},Sse="t",nNi="f";Dg.apply=function(e){for(var t=this,r=t._private,a=r.cy,s=a.collection(),o=0;o0;if(_||b&&w){var S=void 0;_&&w||_?S=p.properties:w&&(S=p.mappedProperties);for(var C=0;C1&&(L=1),h.color){var M=a.valueMin[0],F=a.valueMax[0],U=a.valueMin[1],$=a.valueMax[1],G=a.valueMin[2],B=a.valueMax[2],Z=a.valueMin[3]==null?1:a.valueMin[3],z=a.valueMax[3]==null?1:a.valueMax[3],Y=[Math.round(M+(F-M)*L),Math.round(U+($-U)*L),Math.round(G+(B-G)*L),Math.round(Z+(z-Z)*L)];o={bypass:a.bypass,name:a.name,value:Y,strValue:"rgb("+Y[0]+", "+Y[1]+", "+Y[2]+")"}}else if(h.number){var W=a.valueMin+(a.valueMax-a.valueMin)*L;o=this.parse(a.name,W,a.bypass,_)}else return!1;if(!o)return C(),!1;o.mapping=a,a=o;break}case u.data:{for(var Q=a.field.split("."),V=b.data,j=0;j0&&o>0){for(var h={},f=!1,p=0;p0?e.delayAnimation(u).play().promise().then(N):N()}).then(function(){return e.animation({style:h,duration:o,easing:e.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(e,s),e.emitAndNotify("style"),a.transitioning=!1})}else a.transitioning&&(this.removeBypasses(e,s),e.emitAndNotify("style"),a.transitioning=!1)};Dg.checkTrigger=function(e,t,r,a,s,o){var u=this.properties[t],h=s(u);e.removed()||h!=null&&h(r,a,e)&&o(u)};Dg.checkZOrderTrigger=function(e,t,r,a){var s=this;this.checkTrigger(e,t,r,a,function(o){return o.triggersZOrder},function(){s._private.cy.notify("zorder",e)})};Dg.checkBoundsTrigger=function(e,t,r,a){this.checkTrigger(e,t,r,a,function(s){return s.triggersBounds},function(s){e.dirtyCompoundBoundsCache(),e.dirtyBoundingBoxCache()})};Dg.checkConnectedEdgesBoundsTrigger=function(e,t,r,a){this.checkTrigger(e,t,r,a,function(s){return s.triggersBoundsOfConnectedEdges},function(s){e.connectedEdges().forEach(function(o){o.dirtyBoundingBoxCache()})})};Dg.checkParallelEdgesBoundsTrigger=function(e,t,r,a){this.checkTrigger(e,t,r,a,function(s){return s.triggersBoundsOfParallelEdges},function(s){e.parallelEdges().forEach(function(o){o.dirtyBoundingBoxCache()})})};Dg.checkTriggers=function(e,t,r,a){e.dirtyStyleCache(),this.checkZOrderTrigger(e,t,r,a),this.checkBoundsTrigger(e,t,r,a),this.checkConnectedEdgesBoundsTrigger(e,t,r,a),this.checkParallelEdgesBoundsTrigger(e,t,r,a)};var Rce={};Rce.applyBypass=function(e,t,r,a){var s=this,o=[],u=!0;if(t==="*"||t==="**"){if(r!==void 0)for(var h=0;hs.length?a=a.substr(s.length):a=""}function f(){o.length>u.length?o=o.substr(u.length):o=""}for(;;){var p=a.match(/^\s*$/);if(p)break;var m=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!m){Uu("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}s=m[0];var b=m[1];if(b!=="core"){var _=new l9(b);if(_.invalid){Uu("Skipping parsing of block: Invalid selector found in string stylesheet: "+b),h();continue}}var w=m[2],S=!1;o=w;for(var C=[];;){var A=o.match(/^\s*$/);if(A)break;var k=o.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!k){Uu("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+w),S=!0;break}u=k[0];var I=k[1],N=k[2],L=t.properties[I];if(!L){Uu("Skipping property: Invalid property name in: "+u),f();continue}var P=r.parse(I,N);if(!P){Uu("Skipping property: Invalid property definition in: "+u),f();continue}C.push({name:I,val:N}),f()}if(S){h();break}r.selector(b);for(var M=0;M=7&&t[0]==="d"&&(m=new RegExp(h.data.regex).exec(t))){if(r)return!1;var _=h.data;return{name:e,value:m,strValue:""+t,mapped:_,field:m[1],bypass:r}}else if(t.length>=10&&t[0]==="m"&&(b=new RegExp(h.mapData.regex).exec(t))){if(r||p.multiple)return!1;var w=h.mapData;if(!(p.color||p.number))return!1;var S=this.parse(e,b[4]);if(!S||S.mapped)return!1;var C=this.parse(e,b[5]);if(!C||C.mapped)return!1;if(S.pfValue===C.pfValue||S.strValue===C.strValue)return Uu("`"+e+": "+t+"` is not a valid mapper because the output range is zero; converting to `"+e+": "+S.strValue+"`"),this.parse(e,S.strValue);if(p.color){var A=S.value,k=C.value,I=A[0]===k[0]&&A[1]===k[1]&&A[2]===k[2]&&(A[3]===k[3]||(A[3]==null||A[3]===1)&&(k[3]==null||k[3]===1));if(I)return!1}return{name:e,value:b,strValue:""+t,mapped:w,field:b[1],fieldMin:parseFloat(b[2]),fieldMax:parseFloat(b[3]),valueMin:S.value,valueMax:C.value,bypass:r}}}if(p.multiple&&a!=="multiple"){var N;if(f?N=t.split(/\s+/):Mh(t)?N=t:N=[t],p.evenMultiple&&N.length%2!==0)return null;for(var L=[],P=[],M=[],F="",U=!1,$=0;$0?" ":"")+G.strValue}return p.validate&&!p.validate(L,P)?null:p.singleEnum&&U?L.length===1&&Ns(L[0])?{name:e,value:L[0],strValue:L[0],bypass:r}:null:{name:e,value:L,pfValue:M,strValue:F,bypass:r,units:P}}var B=function(){for(var ye=0;yep.max||p.strictMax&&t===p.max))return null;var Q={name:e,value:t,strValue:""+t+(Z||""),units:Z,bypass:r};return p.unitless||Z!=="px"&&Z!=="em"?Q.pfValue=t:Q.pfValue=Z==="px"||!Z?t:this.getEmSizeInPixels()*t,(Z==="ms"||Z==="s")&&(Q.pfValue=Z==="ms"?t:1e3*t),(Z==="deg"||Z==="rad")&&(Q.pfValue=Z==="rad"?t:J7i(t)),Z==="%"&&(Q.pfValue=t/100),Q}else if(p.propList){var V=[],j=""+t;if(j!=="none"){for(var ee=j.split(/\s*,\s*|\s+/),te=0;te0&&h>0&&!isNaN(a.w)&&!isNaN(a.h)&&a.w>0&&a.h>0){f=Math.min((u-2*r)/a.w,(h-2*r)/a.h),f=f>this._private.maxZoom?this._private.maxZoom:f,f=f=a.minZoom&&(a.maxZoom=r),this},minZoom:function(t){return t===void 0?this._private.minZoom:this.zoomRange({min:t})},maxZoom:function(t){return t===void 0?this._private.maxZoom:this.zoomRange({max:t})},getZoomedViewport:function(t){var r=this._private,a=r.pan,s=r.zoom,o,u,h=!1;if(r.zoomingEnabled||(h=!0),aa(t)?u=t:Vc(t)&&(u=t.level,t.position!=null?o=ike(t.position,s,a):t.renderedPosition!=null&&(o=t.renderedPosition),o!=null&&!r.panningEnabled&&(h=!0)),u=u>r.maxZoom?r.maxZoom:u,u=ur.maxZoom||!r.zoomingEnabled?u=!0:(r.zoom=f,o.push("zoom"))}if(s&&(!u||!t.cancelOnFailedZoom)&&r.panningEnabled){var p=t.pan;aa(p.x)&&(r.pan.x=p.x,h=!1),aa(p.y)&&(r.pan.y=p.y,h=!1),h||o.push("pan")}return o.length>0&&(o.push("viewport"),this.emit(o.join(" ")),this.notify("viewport")),this},center:function(t){var r=this.getCenterPan(t);return r&&(this._private.pan=r,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(t,r){if(this._private.panningEnabled){if(Ns(t)){var a=t;t=this.mutableElements().filter(a)}else Bw(t)||(t=this.mutableElements());if(t.length!==0){var s=t.boundingBox(),o=this.width(),u=this.height();r=r===void 0?this._private.zoom:r;var h={x:(o-r*(s.x1+s.x2))/2,y:(u-r*(s.y1+s.y2))/2};return h}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function(){this._private.sizeCache=null},size:function(){var t=this._private,r=t.container,a=this;return t.sizeCache=t.sizeCache||(r?function(){var s=a.window().getComputedStyle(r),o=function(h){return parseFloat(s.getPropertyValue(h))};return{width:r.clientWidth-o("padding-left")-o("padding-right"),height:r.clientHeight-o("padding-top")-o("padding-bottom")}}():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var t=this._private.pan,r=this._private.zoom,a=this.renderedExtent(),s={x1:(a.x1-t.x)/r,x2:(a.x2-t.x)/r,y1:(a.y1-t.y)/r,y2:(a.y2-t.y)/r};return s.w=s.x2-s.x1,s.h=s.y2-s.y1,s},renderedExtent:function(){var t=this.width(),r=this.height();return{x1:0,y1:0,x2:t,y2:r,w:t,h:r}},multiClickDebounceTime:function(t){if(t)this._private.multiClickDebounceTime=t;else return this._private.multiClickDebounceTime;return this}};ZF.centre=ZF.center;ZF.autolockNodes=ZF.autolock;ZF.autoungrabifyNodes=ZF.autoungrabify;var Woe={data:Fu.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:Fu.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:Fu.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Fu.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};Woe.attr=Woe.data;Woe.removeAttr=Woe.removeData;var Koe=function(t){var r=this;t=eo({},t);var a=t.container;a&&!U3e(a)&&U3e(a[0])&&(a=a[0]);var s=a?a._cyreg:null;s=s||{},s&&s.cy&&(s.cy.destroy(),s={});var o=s.readies=s.readies||[];a&&(a._cyreg=s),s.cy=r;var u=vp!==void 0&&a!==void 0&&!t.headless,h=t;h.layout=eo({name:u?"grid":"null"},h.layout),h.renderer=eo({name:u?"canvas":"null"},h.renderer);var f=function(S,C,A){return C!==void 0?C:A!==void 0?A:S},p=this._private={container:a,ready:!1,options:h,elements:new Cm(this),listeners:[],aniEles:new Cm(this),data:h.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:f(!0,h.zoomingEnabled),userZoomingEnabled:f(!0,h.userZoomingEnabled),panningEnabled:f(!0,h.panningEnabled),userPanningEnabled:f(!0,h.userPanningEnabled),boxSelectionEnabled:f(!0,h.boxSelectionEnabled),autolock:f(!1,h.autolock,h.autolockNodes),autoungrabify:f(!1,h.autoungrabify,h.autoungrabifyNodes),autounselectify:f(!1,h.autounselectify),styleEnabled:h.styleEnabled===void 0?u:h.styleEnabled,zoom:aa(h.zoom)?h.zoom:1,pan:{x:Vc(h.pan)&&aa(h.pan.x)?h.pan.x:0,y:Vc(h.pan)&&aa(h.pan.y)?h.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:f(250,h.multiClickDebounceTime)};this.createEmitter(),this.selectionType(h.selectionType),this.zoomRange({min:h.minZoom,max:h.maxZoom});var m=function(S,C){var A=S.some(j6i);if(A)return KW.all(S).then(C);C(S)};p.styleEnabled&&r.setStyle([]);var b=eo({},h,h.renderer);r.initRenderer(b);var _=function(S,C,A){r.notifications(!1);var k=r.mutableElements();k.length>0&&k.remove(),S!=null&&(Vc(S)||Mh(S))&&r.add(S),r.one("layoutready",function(N){r.notifications(!0),r.emit(N),r.one("load",C),r.emitAndNotify("load")}).one("layoutstop",function(){r.one("done",A),r.emit("done")});var I=eo({},r._private.options.layout);I.eles=r.elements(),r.layout(I).run()};m([h.style,h.elements],function(w){var S=w[0],C=w[1];p.styleEnabled&&r.style().append(S),_(C,function(){r.startAnimationLoop(),p.ready=!0,Of(h.ready)&&r.on("ready",h.ready);for(var A=0;A0,h=!!e.boundingBox,f=uv(h?e.boundingBox:structuredClone(t.extent())),p;if(Bw(e.roots))p=e.roots;else if(Mh(e.roots)){for(var m=[],b=0;b0;){var Y=z(),W=$(Y,B);if(W)Y.outgoers().filter(function(Dt){return Dt.isNode()&&r.has(Dt)}).forEach(Z);else if(W===null){Uu("Detected double maximal shift for node `"+Y.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}var Q=0;if(e.avoidOverlap)for(var V=0;V0&&k[0].length<=3?Je/2:0),et=2*Math.PI/k[Kt].length*Ft;return Kt===0&&k[0].length===1&&(ht=1),{x:we.x+ht*Math.cos(et),y:we.y+ht*Math.sin(et)}}else{var qe=k[Kt].length,He=Math.max(qe===1?0:h?(f.w-e.padding*2-Ce.w)/((e.grid?Le:qe)-1):(f.w-e.padding*2-Ce.w)/((e.grid?Le:qe)+1),Q),Ge={x:we.x+(Ft+1-(qe+1)/2)*He,y:we.y+(Kt+1-(ce+1)/2)*Ie};return Ge}},Ve={downward:0,leftward:90,upward:180,rightward:-90};Object.keys(Ve).indexOf(e.direction)===-1&&jd("Invalid direction '".concat(e.direction,"' specified for breadthfirst layout. Valid values are: ").concat(Object.keys(Ve).join(", ")));var Oe=function(ot){return E7i(Fe(ot),f,Ve[e.direction])};return r.nodes().layoutPositions(this,e,Oe),this};var oNi={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,r){return!0},ready:void 0,stop:void 0,transform:function(t,r){return r}};function cVn(e){this.options=eo({},oNi,e)}cVn.prototype.run=function(){var e=this.options,t=e,r=e.cy,a=t.eles,s=t.counterclockwise!==void 0?!t.counterclockwise:t.clockwise,o=a.nodes().not(":parent");t.sort&&(o=o.sort(t.sort));for(var u=uv(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),h={x:u.x1+u.w/2,y:u.y1+u.h/2},f=t.sweep===void 0?2*Math.PI-2*Math.PI/o.length:t.sweep,p=f/Math.max(1,o.length-1),m,b=0,_=0;_1&&t.avoidOverlap){b*=1.75;var k=Math.cos(p)-Math.cos(0),I=Math.sin(p)-Math.sin(0),N=Math.sqrt(b*b/(k*k+I*I));m=Math.max(N,m)}var L=function(M,F){var U=t.startAngle+F*p*(s?1:-1),$=m*Math.cos(U),G=m*Math.sin(U),B={x:h.x+$,y:h.y+G};return B};return a.nodes().layoutPositions(this,t,L),this};var lNi={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(t){return t.degree()},levelWidth:function(t){return t.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,r){return!0},ready:void 0,stop:void 0,transform:function(t,r){return r}};function uVn(e){this.options=eo({},lNi,e)}uVn.prototype.run=function(){for(var e=this.options,t=e,r=t.counterclockwise!==void 0?!t.counterclockwise:t.clockwise,a=e.cy,s=t.eles,o=s.nodes().not(":parent"),u=uv(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:a.width(),h:a.height()}),h={x:u.x1+u.w/2,y:u.y1+u.h/2},f=[],p=0,m=0;m0){var P=Math.abs(I[0].value-L.value);P>=A&&(I=[],k.push(I))}I.push(L)}var M=p+t.minNodeSpacing;if(!t.avoidOverlap){var F=k.length>0&&k[0].length>1,U=Math.min(u.w,u.h)/2-M,$=U/(k.length+F?1:0);M=Math.min(M,$)}for(var G=0,B=0;B1&&t.avoidOverlap){var W=Math.cos(Y)-Math.cos(0),Q=Math.sin(Y)-Math.sin(0),V=Math.sqrt(M*M/(W*W+Q*Q));G=Math.max(V,G)}Z.r=G,G+=M}if(t.equidistant){for(var j=0,ee=0,te=0;te=e.numIter||(gNi(a,e),a.temperature=a.temperature*e.coolingFactor,a.temperature=e.animationThreshold&&o(),z3e(m)}};m()}else{for(;p;)p=u(f),f++;qxn(a,e),h()}return this};mke.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};mke.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var uNi=function(t,r,a){for(var s=a.eles.edges(),o=a.eles.nodes(),u=uv(a.boundingBox?a.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()}),h={isCompound:t.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:o.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:s.size(),temperature:a.initialTemp,clientWidth:u.w,clientHeight:u.h,boundingBox:u},f=a.eles.components(),p={},m=0;m0){h.graphSet.push(U);for(var m=0;ms.count?0:s.graph},hVn=function(t,r,a,s){var o=s.graphSet[a];if(-10)var b=s.nodeOverlap*m,_=Math.sqrt(h*h+f*f),w=b*h/_,S=b*f/_;else var C=W3e(t,h,f),A=W3e(r,-1*h,-1*f),k=A.x-C.x,I=A.y-C.y,N=k*k+I*I,_=Math.sqrt(N),b=(t.nodeRepulsion+r.nodeRepulsion)/N,w=b*k/_,S=b*I/_;t.isLocked||(t.offsetX-=w,t.offsetY-=S),r.isLocked||(r.offsetX+=w,r.offsetY+=S)}},yNi=function(t,r,a,s){if(a>0)var o=t.maxX-r.minX;else var o=r.maxX-t.minX;if(s>0)var u=t.maxY-r.minY;else var u=r.maxY-t.minY;return o>=0&&u>=0?Math.sqrt(o*o+u*u):0},W3e=function(t,r,a){var s=t.positionX,o=t.positionY,u=t.height||1,h=t.width||1,f=a/r,p=u/h,m={};return r===0&&0a?(m.x=s,m.y=o+u/2,m):0r&&-1*p<=f&&f<=p?(m.x=s-h/2,m.y=o-h*a/2/r,m):0=p)?(m.x=s+u*r/2/a,m.y=o+u/2,m):(0>a&&(f<=-1*p||f>=p)&&(m.x=s-u*r/2/a,m.y=o-u/2),m)},vNi=function(t,r){for(var a=0;aa){var A=r.gravity*w/C,k=r.gravity*S/C;_.offsetX+=A,_.offsetY+=k}}}}},wNi=function(t,r){var a=[],s=0,o=-1;for(a.push.apply(a,t.graphSet[0]),o+=t.graphSet[0].length;s<=o;){var u=a[s++],h=t.idToIndex[u],f=t.layoutNodes[h],p=f.children;if(0a)var o={x:a*t/s,y:a*r/s};else var o={x:t,y:r};return o},fVn=function(t,r){var a=t.parentId;if(a!=null){var s=r.layoutNodes[r.idToIndex[a]],o=!1;if((s.maxX==null||t.maxX+s.padRight>s.maxX)&&(s.maxX=t.maxX+s.padRight,o=!0),(s.minX==null||t.minX-s.padLefts.maxY)&&(s.maxY=t.maxY+s.padBottom,o=!0),(s.minY==null||t.minY-s.padTopk&&(S+=A+r.componentSpacing,w=0,C=0,A=0)}}},SNi={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(t){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,r){return!0},ready:void 0,stop:void 0,transform:function(t,r){return r}};function pVn(e){this.options=eo({},SNi,e)}pVn.prototype.run=function(){var e=this.options,t=e,r=e.cy,a=t.eles,s=a.nodes().not(":parent");t.sort&&(s=s.sort(t.sort));var o=uv(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(o.h===0||o.w===0)a.nodes().layoutPositions(this,t,function(ie){return{x:o.x1,y:o.y1}});else{var u=s.size(),h=Math.sqrt(u*o.h/o.w),f=Math.round(h),p=Math.round(o.w/o.h*h),m=function(ge){if(ge==null)return Math.min(f,p);var ce=Math.min(f,p);ce==f?f=ge:p=ge},b=function(ge){if(ge==null)return Math.max(f,p);var ce=Math.max(f,p);ce==f?f=ge:p=ge},_=t.rows,w=t.cols!=null?t.cols:t.columns;if(_!=null&&w!=null)f=_,p=w;else if(_!=null&&w==null)f=_,p=Math.ceil(u/f);else if(_==null&&w!=null)p=w,f=Math.ceil(u/p);else if(p*f>u){var S=m(),C=b();(S-1)*C>=u?m(S-1):(C-1)*S>=u&&b(C-1)}else for(;p*f=u?b(k+1):m(A+1)}var I=o.w/p,N=o.h/f;if(t.condense&&(I=0,N=0),t.avoidOverlap)for(var L=0;L=p&&(W=0,Y++)},V={},j=0;j(W=fRi(e,t,Q[V],Q[V+1],Q[V+2],Q[V+3])))return A(F,W),!0}else if($.edgeType==="bezier"||$.edgeType==="multibezier"||$.edgeType==="self"||$.edgeType==="compound"){for(var Q=$.allpts,V=0;V+5<$.allpts.length;V+=4)if(cRi(e,t,Q[V],Q[V+1],Q[V+2],Q[V+3],Q[V+4],Q[V+5],Y)&&z>(W=dRi(e,t,Q[V],Q[V+1],Q[V+2],Q[V+3],Q[V+4],Q[V+5])))return A(F,W),!0}for(var j=j||U.source,ee=ee||U.target,te=s.getArrowWidth(G,B),ne=[{name:"source",x:$.arrowStartX,y:$.arrowStartY,angle:$.srcArrowAngle},{name:"target",x:$.arrowEndX,y:$.arrowEndY,angle:$.tgtArrowAngle},{name:"mid-source",x:$.midX,y:$.midY,angle:$.midsrcArrowAngle},{name:"mid-target",x:$.midX,y:$.midY,angle:$.midtgtArrowAngle}],V=0;V0&&(k(j),k(ee))}function N(F,U,$){return F2(F,U,$)}function L(F,U){var $=F._private,G=_,B;U?B=U+"-":B="",F.boundingBox();var Z=$.labelBounds[U||"main"],z=F.pstyle(B+"label").value,Y=F.pstyle("text-events").strValue==="yes";if(!(!Y||!z)){var W=N($.rscratch,"labelX",U),Q=N($.rscratch,"labelY",U),V=N($.rscratch,"labelAngle",U),j=F.pstyle(B+"text-margin-x").pfValue,ee=F.pstyle(B+"text-margin-y").pfValue,te=Z.x1-G-j,ne=Z.x2+G-j,se=Z.y1-G-ee,ie=Z.y2+G-ee;if(V){var ge=Math.cos(V),ce=Math.sin(V),be=function(Ce,Ie){return Ce=Ce-W,Ie=Ie-Q,{x:Ce*ge-Ie*ce+W,y:Ce*ce+Ie*ge+Q}},ve=be(te,se),De=be(te,ie),ye=be(ne,se),Ee=be(ne,ie),he=[ve.x+j,ve.y+ee,ye.x+j,ye.y+ee,Ee.x+j,Ee.y+ee,De.x+j,De.y+ee];if($2(e,t,he))return A(F),!0}else if(bO(Z,e,t))return A(F),!0}}for(var P=u.length-1;P>=0;P--){var M=u[P];M.isNode()?k(M)||L(M):I(M)||L(M)||L(M,"source")||L(M,"target")}return h};F$.getAllInBox=function(e,t,r,a){var s=this.getCachedZSortedEles().interactive,o=this.cy.zoom(),u=2/o,h=[],f=Math.min(e,r),p=Math.max(e,r),m=Math.min(t,a),b=Math.max(t,a);e=f,r=p,t=m,a=b;var _=uv({x1:e,y1:t,x2:r,y2:a}),w=[{x:_.x1,y:_.y1},{x:_.x2,y:_.y1},{x:_.x2,y:_.y2},{x:_.x1,y:_.y2}],S=[[w[0],w[1]],[w[1],w[2]],[w[2],w[3]],[w[3],w[0]]];function C(Ce,Ie,Le){return F2(Ce,Ie,Le)}function A(Ce,Ie){var Le=Ce._private,Fe=u,Ve="";Ce.boundingBox();var Oe=Le.labelBounds.main;if(!Oe)return null;var Dt=C(Le.rscratch,"labelX",Ie),ot=C(Le.rscratch,"labelY",Ie),sn=C(Le.rscratch,"labelAngle",Ie),Kt=Ce.pstyle(Ve+"text-margin-x").pfValue,Ft=Ce.pstyle(Ve+"text-margin-y").pfValue,Je=Oe.x1-Fe-Kt,ht=Oe.x2+Fe-Kt,et=Oe.y1-Fe-Ft,qe=Oe.y2+Fe-Ft;if(sn){var He=Math.cos(sn),Ge=Math.sin(sn),Ye=function(Xe,fe){return Xe=Xe-Dt,fe=fe-ot,{x:Xe*He-fe*Ge+Dt,y:Xe*Ge+fe*He+ot}};return[Ye(Je,et),Ye(ht,et),Ye(ht,qe),Ye(Je,qe)]}else return[{x:Je,y:et},{x:ht,y:et},{x:ht,y:qe},{x:Je,y:qe}]}function k(Ce,Ie,Le,Fe){function Ve(Oe,Dt,ot){return(ot.y-Oe.y)*(Dt.x-Oe.x)>(Dt.y-Oe.y)*(ot.x-Oe.x)}return Ve(Ce,Le,Fe)!==Ve(Ie,Le,Fe)&&Ve(Ce,Ie,Le)!==Ve(Ce,Ie,Fe)}for(var I=0;I0?-(Math.PI-t.ang):Math.PI+t.ang},INi=function(t,r,a,s,o){if(t!==Wxn?Kxn(r,t,xC):RNi(Gx,xC),Kxn(r,a,Gx),Yxn=xC.nx*Gx.ny-xC.ny*Gx.nx,jxn=xC.nx*Gx.nx-xC.ny*-Gx.ny,Q6=Math.asin(Math.max(-1,Math.min(1,Yxn))),Math.abs(Q6)<1e-6){dct=r.x,fct=r.y,OB=XH=0;return}$B=1,kxe=!1,jxn<0?Q6<0?Q6=Math.PI+Q6:(Q6=Math.PI-Q6,$B=-1,kxe=!0):Q6>0&&($B=-1,kxe=!0),r.radius!==void 0?XH=r.radius:XH=s,_B=Q6/2,Fwe=Math.min(xC.len/2,Gx.len/2),o?(mC=Math.abs(Math.cos(_B)*XH/Math.sin(_B)),mC>Fwe?(mC=Fwe,OB=Math.abs(mC*Math.sin(_B)/Math.cos(_B))):OB=XH):(mC=Math.min(Fwe,XH),OB=Math.abs(mC*Math.sin(_B)/Math.cos(_B))),pct=r.x+Gx.nx*mC,gct=r.y+Gx.ny*mC,dct=pct-Gx.ny*OB*$B,fct=gct+Gx.nx*OB*$B,yVn=r.x+xC.nx*mC,vVn=r.y+xC.ny*mC,Wxn=r};function _Vn(e,t){t.radius===0?e.lineTo(t.cx,t.cy):e.arc(t.cx,t.cy,t.radius,t.startAngle,t.endAngle,t.counterClockwise)}function Ogt(e,t,r,a){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return a===0||t.radius===0?{cx:t.x,cy:t.y,radius:0,startX:t.x,startY:t.y,stopX:t.x,stopY:t.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(INi(e,t,r,a,s),{cx:dct,cy:fct,radius:OB,startX:yVn,startY:vVn,stopX:pct,stopY:gct,startAngle:xC.ang+Math.PI/2*$B,endAngle:Gx.ang-Math.PI/2*$B,counterClockwise:kxe})}var Xoe=.01,NNi=Math.sqrt(2*Xoe),Lb={};Lb.findMidptPtsEtc=function(e,t){var r=t.posPts,a=t.intersectionPts,s=t.vectorNormInverse,o,u=e.pstyle("source-endpoint"),h=e.pstyle("target-endpoint"),f=u.units!=null&&h.units!=null,p=function(P,M,F,U){var $=U-M,G=F-P,B=Math.sqrt(G*G+$*$);return{x:-$/B,y:G/B}},m=e.pstyle("edge-distances").value;switch(m){case"node-position":o=r;break;case"intersection":o=a;break;case"endpoints":{if(f){var b=this.manualEndptToPx(e.source()[0],u),_=S1(b,2),w=_[0],S=_[1],C=this.manualEndptToPx(e.target()[0],h),A=S1(C,2),k=A[0],I=A[1],N={x1:w,y1:S,x2:k,y2:I};s=p(w,S,k,I),o=N}else Uu("Edge ".concat(e.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),o=a;break}}return{midptPts:o,vectorNormInverse:s}};Lb.findHaystackPoints=function(e){for(var t=0;t0?Math.max(fe-Qe,0):Math.min(fe+Qe,0)},z=Z(G,U),Y=Z(B,$),W=!1;I===p?k=Math.abs(z)>Math.abs(Y)?s:a:I===f||I===h?(k=a,W=!0):(I===o||I===u)&&(k=s,W=!0);var Q=k===a,V=Q?Y:z,j=Q?B:G,ee=vgt(j),te=!1;!(W&&(L||M))&&(I===h&&j<0||I===f&&j>0||I===o&&j>0||I===u&&j<0)&&(ee*=-1,V=ee*Math.abs(V),te=!0);var ne;if(L){var se=P<0?1+P:P;ne=se*V}else{var ie=P<0?V:0;ne=ie+P*ee}var ge=function(fe){return Math.abs(fe)=Math.abs(V)},ce=ge(ne),be=ge(Math.abs(V)-Math.abs(ne)),ve=ce||be;if(ve&&!te)if(Q){var De=Math.abs(j)<=_/2,ye=Math.abs(G)<=w/2;if(De){var Ee=(m.x1+m.x2)/2,he=m.y1,we=m.y2;r.segpts=[Ee,he,Ee,we]}else if(ye){var Ce=(m.y1+m.y2)/2,Ie=m.x1,Le=m.x2;r.segpts=[Ie,Ce,Le,Ce]}else r.segpts=[m.x1,m.y2]}else{var Fe=Math.abs(j)<=b/2,Ve=Math.abs(B)<=S/2;if(Fe){var Oe=(m.y1+m.y2)/2,Dt=m.x1,ot=m.x2;r.segpts=[Dt,Oe,ot,Oe]}else if(Ve){var sn=(m.x1+m.x2)/2,Kt=m.y1,Ft=m.y2;r.segpts=[sn,Kt,sn,Ft]}else r.segpts=[m.x2,m.y1]}else if(Q){var Je=m.y1+ne+(A?_/2*ee:0),ht=m.x1,et=m.x2;r.segpts=[ht,Je,et,Je]}else{var qe=m.x1+ne+(A?b/2*ee:0),He=m.y1,Ge=m.y2;r.segpts=[qe,He,qe,Ge]}if(r.isRound){var Ye=e.pstyle("taxi-radius").value,Ae=e.pstyle("radius-type").value[0]==="arc-radius";r.radii=new Array(r.segpts.length/2).fill(Ye),r.isArcRadius=new Array(r.segpts.length/2).fill(Ae)}};Lb.tryToCorrectInvalidPoints=function(e,t){var r=e._private.rscratch;if(r.edgeType==="bezier"){var a=t.srcPos,s=t.tgtPos,o=t.srcW,u=t.srcH,h=t.tgtW,f=t.tgtH,p=t.srcShape,m=t.tgtShape,b=t.srcCornerRadius,_=t.tgtCornerRadius,w=t.srcRs,S=t.tgtRs,C=!aa(r.startX)||!aa(r.startY),A=!aa(r.arrowStartX)||!aa(r.arrowStartY),k=!aa(r.endX)||!aa(r.endY),I=!aa(r.arrowEndX)||!aa(r.arrowEndY),N=3,L=this.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.arrowShapeWidth,P=N*L,M=XF({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),F=Mj.poolIndex()){var ee=V;V=j,j=ee}var te=z.srcPos=V.position(),ne=z.tgtPos=j.position(),se=z.srcW=V.outerWidth(),ie=z.srcH=V.outerHeight(),ge=z.tgtW=j.outerWidth(),ce=z.tgtH=j.outerHeight(),be=z.srcShape=r.nodeShapes[t.getNodeShape(V)],ve=z.tgtShape=r.nodeShapes[t.getNodeShape(j)],De=z.srcCornerRadius=V.pstyle("corner-radius").value==="auto"?"auto":V.pstyle("corner-radius").pfValue,ye=z.tgtCornerRadius=j.pstyle("corner-radius").value==="auto"?"auto":j.pstyle("corner-radius").pfValue,Ee=z.tgtRs=j._private.rscratch,he=z.srcRs=V._private.rscratch;z.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var we=0;we=NNi||(et=Math.sqrt(Math.max(ht*ht,Xoe)+Math.max(Je*Je,Xoe)));var qe=z.vector={x:ht,y:Je},He=z.vectorNorm={x:qe.x/et,y:qe.y/et},Ge={x:-He.y,y:He.x};z.nodesOverlap=!aa(et)||ve.checkPoint(Oe[0],Oe[1],0,ge,ce,ne.x,ne.y,ye,Ee)||be.checkPoint(ot[0],ot[1],0,se,ie,te.x,te.y,De,he),z.vectorNormInverse=Ge,Y={nodesOverlap:z.nodesOverlap,dirCounts:z.dirCounts,calculatedIntersection:!0,hasBezier:z.hasBezier,hasUnbundled:z.hasUnbundled,eles:z.eles,srcPos:ne,srcRs:Ee,tgtPos:te,tgtRs:he,srcW:ge,srcH:ce,tgtW:se,tgtH:ie,srcIntn:sn,tgtIntn:Dt,srcShape:ve,tgtShape:be,posPts:{x1:Ft.x2,y1:Ft.y2,x2:Ft.x1,y2:Ft.y1},intersectionPts:{x1:Kt.x2,y1:Kt.y2,x2:Kt.x1,y2:Kt.y1},vector:{x:-qe.x,y:-qe.y},vectorNorm:{x:-He.x,y:-He.y},vectorNormInverse:{x:-Ge.x,y:-Ge.y}}}var Ye=Ve?Y:z;Ie.nodesOverlap=Ye.nodesOverlap,Ie.srcIntn=Ye.srcIntn,Ie.tgtIntn=Ye.tgtIntn,Ie.isRound=Le.startsWith("round"),s&&(V.isParent()||V.isChild()||j.isParent()||j.isChild())&&(V.parents().anySame(j)||j.parents().anySame(V)||V.same(j)&&V.isParent())?t.findCompoundLoopPoints(Ce,Ye,we,Fe):V===j?t.findLoopPoints(Ce,Ye,we,Fe):Le.endsWith("segments")?t.findSegmentsPoints(Ce,Ye):Le.endsWith("taxi")?t.findTaxiPoints(Ce,Ye):Le==="straight"||!Fe&&z.eles.length%2===1&&we===Math.floor(z.eles.length/2)?t.findStraightEdgePoints(Ce):t.findBezierPoints(Ce,Ye,we,Fe,Ve),t.findEndpoints(Ce),t.tryToCorrectInvalidPoints(Ce,Ye),t.checkForInvalidEdgeWarning(Ce),t.storeAllpts(Ce),t.storeEdgeProjections(Ce),t.calculateArrowAngles(Ce),t.recalculateEdgeLabelProjections(Ce),t.calculateLabelAngles(Ce)}},F=0;F0){var Oe=p,Dt=NB(Oe,LV(u)),ot=NB(Oe,LV(Ve)),sn=Dt;if(ot2){var Kt=NB(Oe,{x:Ve[2],y:Ve[3]});Kt0){var Ke=m,mt=NB(Ke,LV(u)),lt=NB(Ke,LV(Qe)),$t=mt;if(lt2){var Ut=NB(Ke,{x:Qe[2],y:Qe[3]});Ut<$t&&(u=[Qe[2],Qe[3]])}}}var Jt=Nwe(u,ee,o.arrowShapes[_].spacing(e)+S),wn=Nwe(u,ee,o.arrowShapes[_].gap(e)+S);I.startX=wn[0],I.startY=wn[1],I.arrowStartX=Jt[0],I.arrowStartY=Jt[1],G&&(!aa(I.startX)||!aa(I.startY)||!aa(I.endX)||!aa(I.endY)?I.badLine=!0:I.badLine=!1)};Ice.getSourceEndpoint=function(e){var t=e[0]._private.rscratch;switch(this.recalculateRenderedStyle(e),t.edgeType){case"haystack":return{x:t.haystackPts[0],y:t.haystackPts[1]};default:return{x:t.arrowStartX,y:t.arrowStartY}}};Ice.getTargetEndpoint=function(e){var t=e[0]._private.rscratch;switch(this.recalculateRenderedStyle(e),t.edgeType){case"haystack":return{x:t.haystackPts[2],y:t.haystackPts[3]};default:return{x:t.arrowEndX,y:t.arrowEndY}}};var Lgt={};function ONi(e,t,r){for(var a=function(p,m,b,_){return _g(p,m,b,_)},s=t._private,o=s.rstyle.bezierPts,u=0;u=S||F){A={cp:L,segment:M};break}}if(A)break}var U=A.cp,$=A.segment,G=(S-k)/$.length,B=$.t1-$.t0,Z=w?$.t0+B*G:$.t1-B*G;Z=Hoe(0,Z,1),t=tY(U.p0,U.p1,U.p2,Z),_=LNi(U.p0,U.p1,U.p2,Z);break}case"straight":case"segments":case"haystack":{for(var z=0,Y,W,Q,V,j=a.allpts.length,ee=0;ee+3=S));ee+=2);var te=S-W,ne=te/Y;ne=Hoe(0,ne,1),t=tRi(Q,V,ne),_=xVn(Q,V);break}}u("labelX",b,t.x),u("labelY",b,t.y),u("labelAutoAngle",b,_)}};p("source"),p("target"),this.applyLabelDimensions(e)}};BA.applyLabelDimensions=function(e){this.applyPrefixedLabelDimensions(e),e.isEdge()&&(this.applyPrefixedLabelDimensions(e,"source"),this.applyPrefixedLabelDimensions(e,"target"))};BA.applyPrefixedLabelDimensions=function(e,t){var r=e._private,a=this.getLabelText(e,t),s=KF(a,e._private.labelDimsKey);if(F2(r.rscratch,"prefixedLabelDimsKey",t)!==s){g7(r.rscratch,"prefixedLabelDimsKey",t,s);var o=this.calculateLabelDimensions(e,a),u=e.pstyle("line-height").pfValue,h=e.pstyle("text-wrap").strValue,f=F2(r.rscratch,"labelWrapCachedLines",t)||[],p=h!=="wrap"?1:Math.max(f.length,1),m=o.height/p,b=m*u,_=o.width,w=o.height+(p-1)*(u-1)*m;g7(r.rstyle,"labelWidth",t,_),g7(r.rscratch,"labelWidth",t,_),g7(r.rstyle,"labelHeight",t,w),g7(r.rscratch,"labelHeight",t,w),g7(r.rscratch,"labelLineHeight",t,b)}};BA.getLabelText=function(e,t){var r=e._private,a=t?t+"-":"",s=e.pstyle(a+"label").strValue,o=e.pstyle("text-transform").value,u=function(ie,ge){return ge?(g7(r.rscratch,ie,t,ge),ge):F2(r.rscratch,ie,t)};if(!s)return"";o=="none"||(o=="uppercase"?s=s.toUpperCase():o=="lowercase"&&(s=s.toLowerCase()));var h=e.pstyle("text-wrap").value;if(h==="wrap"){var f=u("labelKey");if(f!=null&&u("labelWrapKey")===f)return u("labelWrapCachedText");for(var p="​",m=s.split(` `),b=e.pstyle("text-max-width").pfValue,_=e.pstyle("text-overflow-wrap").value,w=_==="anywhere",S=[],C=/[\s\u200b]+|$/g,A=0;Ab){var P=k.matchAll(C),M="",F=0,U=W2(P),$;try{for(U.s();!($=U.n()).done;){var G=$.value,B=G[0],Z=k.substring(F,G.index);F=G.index+B.length;var z=M.length===0?Z:M+Z+B,Y=this.calculateLabelDimensions(e,z),W=Y.width;W<=b?M+=Z+B:(M&&S.push(M),M=Z+B)}}catch(se){U.e(se)}finally{U.f()}M.match(/^[\s\u200b]+$/)||S.push(M)}else S.push(k)}u("labelWrapCachedLines",S),s=u("labelWrapCachedText",S.join(` `)),u("labelWrapKey",f)}else if(h==="ellipsis"){var Q=e.pstyle("text-max-width").pfValue,V="",j="…",ee=!1;if(this.calculateLabelDimensions(e,s).widthQ)break;V+=s[te],te===s.length-1&&(ee=!0)}return ee||(V+=j),V}return s};BA.getLabelJustification=function(e){var t=e.pstyle("text-justification").strValue,r=e.pstyle("text-halign").strValue;if(t==="auto")if(e.isNode())switch(r){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return t};BA.calculateLabelDimensions=function(e,t){var r=this,a=r.cy.window(),s=a.document,o=0,u=e.pstyle("font-style").strValue,h=e.pstyle("font-size").pfValue,f=e.pstyle("font-family").strValue,p=e.pstyle("font-weight").strValue,m=this.labelCalcCanvas,b=this.labelCalcCanvasContext;if(!m){m=this.labelCalcCanvas=s.createElement("canvas"),b=this.labelCalcCanvasContext=m.getContext("2d");var _=m.style;_.position="absolute",_.left="-9999px",_.top="-9999px",_.zIndex="-1",_.visibility="hidden",_.pointerEvents="none"}b.font="".concat(u," ").concat(p," ").concat(h,"px ").concat(f);for(var w=0,S=0,C=t.split(` `),A=0;A1&&arguments[1]!==void 0?arguments[1]:!0;if(t.merge(u),h)for(var f=0;f=e.desktopTapThreshold2}var Cr=o(fe);Ar&&(e.hoverData.tapholdCancelled=!0);var Zr=function(){var Pt=e.hoverData.dragDelta=e.hoverData.dragDelta||[];Pt.length===0?(Pt.push(vn[0]),Pt.push(vn[1])):(Pt[0]+=vn[0],Pt[1]+=vn[1])};Ke=!0,s(Wn,["mousemove","vmousemove","tapdrag"],fe,{x:Ut[0],y:Ut[1]});var Pr=function(Pt){return{originalEvent:fe,type:Pt,position:{x:Ut[0],y:Ut[1]}}},Ci=function(){e.data.bgActivePosistion=void 0,e.hoverData.selecting||mt.emit(Pr("boxstart")),Vn[4]=1,e.hoverData.selecting=!0,e.redrawHint("select",!0),e.redraw()};if(e.hoverData.which===3){if(Ar){var ds=Pr("cxtdrag");zn?zn.emit(ds):mt.emit(ds),e.hoverData.cxtDragged=!0,(!e.hoverData.cxtOver||Wn!==e.hoverData.cxtOver)&&(e.hoverData.cxtOver&&e.hoverData.cxtOver.emit(Pr("cxtdragout")),e.hoverData.cxtOver=Wn,Wn&&Wn.emit(Pr("cxtdragover")))}}else if(e.hoverData.dragging){if(Ke=!0,mt.panningEnabled()&&mt.userPanningEnabled()){var ta;if(e.hoverData.justStartedPan){var Os=e.hoverData.mdownPos;ta={x:(Ut[0]-Os[0])*lt,y:(Ut[1]-Os[1])*lt},e.hoverData.justStartedPan=!1}else ta={x:vn[0]*lt,y:vn[1]*lt};mt.panBy(ta),mt.emit(Pr("dragpan")),e.hoverData.dragged=!0}Ut=e.projectIntoViewport(fe.clientX,fe.clientY)}else if(Vn[4]==1&&(zn==null||zn.pannable())){if(Ar){if(!e.hoverData.dragging&&mt.boxSelectionEnabled()&&(Cr||!mt.panningEnabled()||!mt.userPanningEnabled()))Ci();else if(!e.hoverData.selecting&&mt.panningEnabled()&&mt.userPanningEnabled()){var uo=u(zn,e.hoverData.downs);uo&&(e.hoverData.dragging=!0,e.hoverData.justStartedPan=!0,Vn[4]=0,e.data.bgActivePosistion=LV(Jt),e.redrawHint("select",!0),e.redraw())}zn&&zn.pannable()&&zn.active()&&zn.unactivate()}}else{if(zn&&zn.pannable()&&zn.active()&&zn.unactivate(),(!zn||!zn.grabbed())&&Wn!=Dn&&(Dn&&s(Dn,["mouseout","tapdragout"],fe,{x:Ut[0],y:Ut[1]}),Wn&&s(Wn,["mouseover","tapdragover"],fe,{x:Ut[0],y:Ut[1]}),e.hoverData.last=Wn),zn)if(Ar){if(mt.boxSelectionEnabled()&&Cr)zn&&zn.grabbed()&&(k(Cn),zn.emit(Pr("freeon")),Cn.emit(Pr("free")),e.dragData.didDrag&&(zn.emit(Pr("dragfreeon")),Cn.emit(Pr("dragfree")))),Ci();else if(zn&&zn.grabbed()&&e.nodeIsDraggable(zn)){var Ls=!e.dragData.didDrag;Ls&&e.redrawHint("eles",!0),e.dragData.didDrag=!0,e.hoverData.draggingEles||C(Cn,{inDragLayer:!0});var La={x:0,y:0};if(aa(vn[0])&&aa(vn[1])&&(La.x+=vn[0],La.y+=vn[1],Ls)){var to=e.hoverData.dragDelta;to&&aa(to[0])&&aa(to[1])&&(La.x+=to[0],La.y+=to[1])}e.hoverData.draggingEles=!0,Cn.silentShift(La).emit(Pr("position")).emit(Pr("drag")),e.redrawHint("drag",!0),e.redraw()}}else Zr();Ke=!0}if(Vn[2]=Ut[0],Vn[3]=Ut[1],Ke)return fe.stopPropagation&&fe.stopPropagation(),fe.preventDefault&&fe.preventDefault(),!1}},!1);var Z,z,Y;e.registerBinding(t,"mouseup",function(fe){if(!(e.hoverData.which===1&&fe.which!==1&&e.hoverData.capture)){var Qe=e.hoverData.capture;if(Qe){e.hoverData.capture=!1;var Ke=e.cy,mt=e.projectIntoViewport(fe.clientX,fe.clientY),lt=e.selection,$t=e.findNearestElement(mt[0],mt[1],!0,!1),Ut=e.dragData.possibleDragElements,Jt=e.hoverData.down,wn=o(fe);e.data.bgActivePosistion&&(e.redrawHint("select",!0),e.redraw()),e.hoverData.tapholdCancelled=!0,e.data.bgActivePosistion=void 0,Jt&&Jt.unactivate();var Vn=function(ur){return{originalEvent:fe,type:ur,position:{x:mt[0],y:mt[1]}}};if(e.hoverData.which===3){var Wn=Vn("cxttapend");if(Jt?Jt.emit(Wn):Ke.emit(Wn),!e.hoverData.cxtDragged){var Dn=Vn("cxttap");Jt?Jt.emit(Dn):Ke.emit(Dn)}e.hoverData.cxtDragged=!1,e.hoverData.which=null}else if(e.hoverData.which===1){if(s($t,["mouseup","tapend","vmouseup"],fe,{x:mt[0],y:mt[1]}),!e.dragData.didDrag&&!e.hoverData.dragged&&!e.hoverData.selecting&&!e.hoverData.isOverThresholdDrag&&(s(Jt,["click","tap","vclick"],fe,{x:mt[0],y:mt[1]}),z=!1,fe.timeStamp-Y<=Ke.multiClickDebounceTime()?(Z&&clearTimeout(Z),z=!0,Y=null,s(Jt,["dblclick","dbltap","vdblclick"],fe,{x:mt[0],y:mt[1]})):(Z=setTimeout(function(){z||s(Jt,["oneclick","onetap","voneclick"],fe,{x:mt[0],y:mt[1]})},Ke.multiClickDebounceTime()),Y=fe.timeStamp)),Jt==null&&!e.dragData.didDrag&&!e.hoverData.selecting&&!e.hoverData.dragged&&!o(fe)&&(Ke.$(r).unselect(["tapunselect"]),Ut.length>0&&e.redrawHint("eles",!0),e.dragData.possibleDragElements=Ut=Ke.collection()),$t==Jt&&!e.dragData.didDrag&&!e.hoverData.selecting&&$t!=null&&$t._private.selectable&&(e.hoverData.dragging||(Ke.selectionType()==="additive"||wn?$t.selected()?$t.unselect(["tapunselect"]):$t.select(["tapselect"]):wn||(Ke.$(r).unmerge($t).unselect(["tapunselect"]),$t.select(["tapselect"]))),e.redrawHint("eles",!0)),e.hoverData.selecting){var zn=Ke.collection(e.getAllInBox(lt[0],lt[1],lt[2],lt[3]));e.redrawHint("select",!0),zn.length>0&&e.redrawHint("eles",!0),Ke.emit(Vn("boxend"));var vn=function(ur){return ur.selectable()&&!ur.selected()};Ke.selectionType()==="additive"||wn||Ke.$(r).unmerge(zn).unselect(),zn.emit(Vn("box")).stdFilter(vn).select().emit(Vn("boxselect")),e.redraw()}if(e.hoverData.dragging&&(e.hoverData.dragging=!1,e.redrawHint("select",!0),e.redrawHint("eles",!0),e.redraw()),!lt[4]){e.redrawHint("drag",!0),e.redrawHint("eles",!0);var Cn=Jt&&Jt.grabbed();k(Ut),Cn&&(Jt.emit(Vn("freeon")),Ut.emit(Vn("free")),e.dragData.didDrag&&(Jt.emit(Vn("dragfreeon")),Ut.emit(Vn("dragfree"))))}}lt[4]=0,e.hoverData.down=null,e.hoverData.cxtStarted=!1,e.hoverData.draggingEles=!1,e.hoverData.selecting=!1,e.hoverData.isOverThresholdDrag=!1,e.dragData.didDrag=!1,e.hoverData.dragged=!1,e.hoverData.dragDelta=[],e.hoverData.mdownPos=null,e.hoverData.mdownGPos=null,e.hoverData.which=null}}},!1);var W=[],Q=4,V,j=1e5,ee=function(fe,Qe){for(var Ke=0;Ke=Q){var mt=W;if(V=ee(mt,5),!V){var lt=Math.abs(mt[0]);V=te(mt)&<>5}if(V)for(var $t=0;$t5&&(Ke=vgt(Ke)*5),Dn=Ke/-250,V&&(Dn/=j,Dn*=3),Dn=Dn*e.wheelSensitivity;var zn=fe.deltaMode===1;zn&&(Dn*=33);var vn=Ut.zoom()*Math.pow(10,Dn);fe.type==="gesturechange"&&(vn=e.gestureStartZoom*fe.scale),Ut.zoom({level:vn,renderedPosition:{x:Wn[0],y:Wn[1]}}),Ut.emit({type:fe.type==="gesturechange"?"pinchzoom":"scrollzoom",originalEvent:fe,position:{x:Vn[0],y:Vn[1]}})}}}};e.registerBinding(e.container,"wheel",ne,!0),e.registerBinding(t,"scroll",function(fe){e.scrollingPage=!0,clearTimeout(e.scrollingPageTimeout),e.scrollingPageTimeout=setTimeout(function(){e.scrollingPage=!1},250)},!0),e.registerBinding(e.container,"gesturestart",function(fe){e.gestureStartZoom=e.cy.zoom(),e.hasTouchStarted||fe.preventDefault()},!0),e.registerBinding(e.container,"gesturechange",function(Xe){e.hasTouchStarted||ne(Xe)},!0),e.registerBinding(e.container,"mouseout",function(fe){var Qe=e.projectIntoViewport(fe.clientX,fe.clientY);e.cy.emit({originalEvent:fe,type:"mouseout",position:{x:Qe[0],y:Qe[1]}})},!1),e.registerBinding(e.container,"mouseover",function(fe){var Qe=e.projectIntoViewport(fe.clientX,fe.clientY);e.cy.emit({originalEvent:fe,type:"mouseover",position:{x:Qe[0],y:Qe[1]}})},!1);var se,ie,ge,ce,be,ve,De,ye,Ee,he,we,Ce,Ie,Le=function(fe,Qe,Ke,mt){return Math.sqrt((Ke-fe)*(Ke-fe)+(mt-Qe)*(mt-Qe))},Fe=function(fe,Qe,Ke,mt){return(Ke-fe)*(Ke-fe)+(mt-Qe)*(mt-Qe)},Ve;e.registerBinding(e.container,"touchstart",Ve=function(fe){if(e.hasTouchStarted=!0,!!G(fe)){N(),e.touchData.capture=!0,e.data.bgActivePosistion=void 0;var Qe=e.cy,Ke=e.touchData.now,mt=e.touchData.earlier;if(fe.touches[0]){var lt=e.projectIntoViewport(fe.touches[0].clientX,fe.touches[0].clientY);Ke[0]=lt[0],Ke[1]=lt[1]}if(fe.touches[1]){var lt=e.projectIntoViewport(fe.touches[1].clientX,fe.touches[1].clientY);Ke[2]=lt[0],Ke[3]=lt[1]}if(fe.touches[2]){var lt=e.projectIntoViewport(fe.touches[2].clientX,fe.touches[2].clientY);Ke[4]=lt[0],Ke[5]=lt[1]}var $t=function(Cr){return{originalEvent:fe,type:Cr,position:{x:Ke[0],y:Ke[1]}}};if(fe.touches[1]){e.touchData.singleTouchMoved=!0,k(e.dragData.touchDragEles);var Ut=e.findContainerClientCoords();Ee=Ut[0],he=Ut[1],we=Ut[2],Ce=Ut[3],se=fe.touches[0].clientX-Ee,ie=fe.touches[0].clientY-he,ge=fe.touches[1].clientX-Ee,ce=fe.touches[1].clientY-he,Ie=0<=se&&se<=we&&0<=ge&&ge<=we&&0<=ie&&ie<=Ce&&0<=ce&&ce<=Ce;var Jt=Qe.pan(),wn=Qe.zoom();be=Le(se,ie,ge,ce),ve=Fe(se,ie,ge,ce),De=[(se+ge)/2,(ie+ce)/2],ye=[(De[0]-Jt.x)/wn,(De[1]-Jt.y)/wn];var Vn=200,Wn=Vn*Vn;if(ve=1){for(var On=e.touchData.startPosition=[null,null,null,null,null,null],Ir=0;Ir=e.touchTapThreshold2}if(Qe&&e.touchData.cxt){fe.preventDefault();var Ir=fe.touches[0].clientX-Ee,Ln=fe.touches[0].clientY-he,pr=fe.touches[1].clientX-Ee,Cr=fe.touches[1].clientY-he,Zr=Fe(Ir,Ln,pr,Cr),Pr=Zr/ve,Ci=150,ds=Ci*Ci,ta=1.5,Os=ta*ta;if(Pr>=Os||Zr>=ds){e.touchData.cxt=!1,e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var uo=wn("cxttapend");e.touchData.start?(e.touchData.start.unactivate().emit(uo),e.touchData.start=null):mt.emit(uo)}}if(Qe&&e.touchData.cxt){var uo=wn("cxtdrag");e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.touchData.start?e.touchData.start.emit(uo):mt.emit(uo),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxtDragged=!0;var Ls=e.findNearestElement(lt[0],lt[1],!0,!0);(!e.touchData.cxtOver||Ls!==e.touchData.cxtOver)&&(e.touchData.cxtOver&&e.touchData.cxtOver.emit(wn("cxtdragout")),e.touchData.cxtOver=Ls,Ls&&Ls.emit(wn("cxtdragover")))}else if(Qe&&fe.touches[2]&&mt.boxSelectionEnabled())fe.preventDefault(),e.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,e.touchData.selecting||mt.emit(wn("boxstart")),e.touchData.selecting=!0,e.touchData.didSelect=!0,Ke[4]=1,!Ke||Ke.length===0||Ke[0]===void 0?(Ke[0]=(lt[0]+lt[2]+lt[4])/3,Ke[1]=(lt[1]+lt[3]+lt[5])/3,Ke[2]=(lt[0]+lt[2]+lt[4])/3+1,Ke[3]=(lt[1]+lt[3]+lt[5])/3+1):(Ke[2]=(lt[0]+lt[2]+lt[4])/3,Ke[3]=(lt[1]+lt[3]+lt[5])/3),e.redrawHint("select",!0),e.redraw();else if(Qe&&fe.touches[1]&&!e.touchData.didSelect&&mt.zoomingEnabled()&&mt.panningEnabled()&&mt.userZoomingEnabled()&&mt.userPanningEnabled()){fe.preventDefault(),e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var La=e.dragData.touchDragEles;if(La){e.redrawHint("drag",!0);for(var to=0;to0&&!e.hoverData.draggingEles&&!e.swipePanning&&e.data.bgActivePosistion!=null&&(e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.redraw())}},!1);var Dt;e.registerBinding(t,"touchcancel",Dt=function(fe){var Qe=e.touchData.start;e.touchData.capture=!1,Qe&&Qe.unactivate()});var ot,sn,Kt,Ft;if(e.registerBinding(t,"touchend",ot=function(fe){var Qe=e.touchData.start,Ke=e.touchData.capture;if(Ke)fe.touches.length===0&&(e.touchData.capture=!1),fe.preventDefault();else return;var mt=e.selection;e.swipePanning=!1,e.hoverData.draggingEles=!1;var lt=e.cy,$t=lt.zoom(),Ut=e.touchData.now,Jt=e.touchData.earlier;if(fe.touches[0]){var wn=e.projectIntoViewport(fe.touches[0].clientX,fe.touches[0].clientY);Ut[0]=wn[0],Ut[1]=wn[1]}if(fe.touches[1]){var wn=e.projectIntoViewport(fe.touches[1].clientX,fe.touches[1].clientY);Ut[2]=wn[0],Ut[3]=wn[1]}if(fe.touches[2]){var wn=e.projectIntoViewport(fe.touches[2].clientX,fe.touches[2].clientY);Ut[4]=wn[0],Ut[5]=wn[1]}var Vn=function(ds){return{originalEvent:fe,type:ds,position:{x:Ut[0],y:Ut[1]}}};Qe&&Qe.unactivate();var Wn;if(e.touchData.cxt){if(Wn=Vn("cxttapend"),Qe?Qe.emit(Wn):lt.emit(Wn),!e.touchData.cxtDragged){var Dn=Vn("cxttap");Qe?Qe.emit(Dn):lt.emit(Dn)}e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!1,e.touchData.start=null,e.redraw();return}if(!fe.touches[2]&<.boxSelectionEnabled()&&e.touchData.selecting){e.touchData.selecting=!1;var zn=lt.collection(e.getAllInBox(mt[0],mt[1],mt[2],mt[3]));mt[0]=void 0,mt[1]=void 0,mt[2]=void 0,mt[3]=void 0,mt[4]=0,e.redrawHint("select",!0),lt.emit(Vn("boxend"));var vn=function(ds){return ds.selectable()&&!ds.selected()};zn.emit(Vn("box")).stdFilter(vn).select().emit(Vn("boxselect")),zn.nonempty()&&e.redrawHint("eles",!0),e.redraw()}if(Qe!=null&&Qe.unactivate(),fe.touches[2])e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);else if(!fe.touches[1]){if(!fe.touches[0]){if(!fe.touches[0]){e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var Cn=e.dragData.touchDragEles;if(Qe!=null){var Ar=Qe._private.grabbed;k(Cn),e.redrawHint("drag",!0),e.redrawHint("eles",!0),Ar&&(Qe.emit(Vn("freeon")),Cn.emit(Vn("free")),e.dragData.didDrag&&(Qe.emit(Vn("dragfreeon")),Cn.emit(Vn("dragfree")))),s(Qe,["touchend","tapend","vmouseup","tapdragout"],fe,{x:Ut[0],y:Ut[1]}),Qe.unactivate(),e.touchData.start=null}else{var ur=e.findNearestElement(Ut[0],Ut[1],!0,!0);s(ur,["touchend","tapend","vmouseup","tapdragout"],fe,{x:Ut[0],y:Ut[1]})}var On=e.touchData.startPosition[0]-Ut[0],Ir=On*On,Ln=e.touchData.startPosition[1]-Ut[1],pr=Ln*Ln,Cr=Ir+pr,Zr=Cr*$t*$t;e.touchData.singleTouchMoved||(Qe||lt.$(":selected").unselect(["tapunselect"]),s(Qe,["tap","vclick"],fe,{x:Ut[0],y:Ut[1]}),sn=!1,fe.timeStamp-Ft<=lt.multiClickDebounceTime()?(Kt&&clearTimeout(Kt),sn=!0,Ft=null,s(Qe,["dbltap","vdblclick"],fe,{x:Ut[0],y:Ut[1]})):(Kt=setTimeout(function(){sn||s(Qe,["onetap","voneclick"],fe,{x:Ut[0],y:Ut[1]})},lt.multiClickDebounceTime()),Ft=fe.timeStamp)),Qe!=null&&!e.dragData.didDrag&&Qe._private.selectable&&Zr"u"){var Je=[],ht=function(fe){return{clientX:fe.clientX,clientY:fe.clientY,force:1,identifier:fe.pointerId,pageX:fe.pageX,pageY:fe.pageY,radiusX:fe.width/2,radiusY:fe.height/2,screenX:fe.screenX,screenY:fe.screenY,target:fe.target}},et=function(fe){return{event:fe,touch:ht(fe)}},qe=function(fe){Je.push(et(fe))},He=function(fe){for(var Qe=0;Qe0)return se[0]}return null},S=Object.keys(_),C=0;C0?w:THn(o,u,t,r,a,s,h,f)},checkPoint:function(t,r,a,s,o,u,h,f){f=f==="auto"?o9(s,o):f;var p=2*f;if(uR(t,r,this.points,u,h,s,o-p,[0,-1],a)||uR(t,r,this.points,u,h,s-p,o,[0,-1],a))return!0;var m=s/2+2*a,b=o/2+2*a,_=[u-m,h-b,u-m,h,u+m,h,u+m,h-b];return!!($2(t,r,_)||sF(t,r,p,p,u+s/2-f,h+o/2-f,a)||sF(t,r,p,p,u-s/2+f,h+o/2-f,a))}}};SR.registerNodeShapes=function(){var e=this.nodeShapes={},t=this;this.generateEllipse(),this.generatePolygon("triangle",Gy(3,0)),this.generateRoundPolygon("round-triangle",Gy(3,0)),this.generatePolygon("rectangle",Gy(4,0)),e.square=e.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var r=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",r),this.generateRoundPolygon("round-diamond",r)}this.generatePolygon("pentagon",Gy(5,0)),this.generateRoundPolygon("round-pentagon",Gy(5,0)),this.generatePolygon("hexagon",Gy(6,0)),this.generateRoundPolygon("round-hexagon",Gy(6,0)),this.generatePolygon("heptagon",Gy(7,0)),this.generateRoundPolygon("round-heptagon",Gy(7,0)),this.generatePolygon("octagon",Gy(8,0)),this.generateRoundPolygon("round-octagon",Gy(8,0));var a=new Array(20);{var s=nct(5,0),o=nct(5,Math.PI/5),u=.5*(3-Math.sqrt(5));u*=1.57;for(var h=0;h=t.deqFastCost*L)break}else if(p){if(I>=t.deqCost*w||I>=t.deqAvgCost*_)break}else if(N>=t.deqNoDrawCost*cit)break;var P=t.deq(a,A,C);if(P.length>0)for(var M=0;M0&&(t.onDeqd(a,S),!p&&t.shouldRedraw(a,S,A,C)&&o())},h=t.priority||mgt;s.beforeRender(u,h(a))}}}},MNi=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:G3e;V9(this,e),this.idsByKey=new k7,this.keyForId=new k7,this.cachesByLvl=new k7,this.lvls=[],this.getKey=t,this.doesEleInvalidateKey=r}return Y9(e,[{key:"getIdsFor",value:function(r){r==null&&jd("Can not get id list for null key");var a=this.idsByKey,s=this.idsByKey.get(r);return s||(s=new WW,a.set(r,s)),s}},{key:"addIdForKey",value:function(r,a){r!=null&&this.getIdsFor(r).add(a)}},{key:"deleteIdForKey",value:function(r,a){r!=null&&this.getIdsFor(r).delete(a)}},{key:"getNumberOfIdsForKey",value:function(r){return r==null?0:this.getIdsFor(r).size}},{key:"updateKeyMappingFor",value:function(r){var a=r.id(),s=this.keyForId.get(a),o=this.getKey(r);this.deleteIdForKey(s,a),this.addIdForKey(o,a),this.keyForId.set(a,o)}},{key:"deleteKeyMappingFor",value:function(r){var a=r.id(),s=this.keyForId.get(a);this.deleteIdForKey(s,a),this.keyForId.delete(a)}},{key:"keyHasChangedFor",value:function(r){var a=r.id(),s=this.keyForId.get(a),o=this.getKey(r);return s!==o}},{key:"isInvalid",value:function(r){return this.keyHasChangedFor(r)||this.doesEleInvalidateKey(r)}},{key:"getCachesAt",value:function(r){var a=this.cachesByLvl,s=this.lvls,o=a.get(r);return o||(o=new k7,a.set(r,o),s.push(r)),o}},{key:"getCache",value:function(r,a){return this.getCachesAt(a).get(r)}},{key:"get",value:function(r,a){var s=this.getKey(r),o=this.getCache(s,a);return o!=null&&this.updateKeyMappingFor(r),o}},{key:"getForCachedKey",value:function(r,a){var s=this.keyForId.get(r.id()),o=this.getCache(s,a);return o}},{key:"hasCache",value:function(r,a){return this.getCachesAt(a).has(r)}},{key:"has",value:function(r,a){var s=this.getKey(r);return this.hasCache(s,a)}},{key:"setCache",value:function(r,a,s){s.key=r,this.getCachesAt(a).set(r,s)}},{key:"set",value:function(r,a,s){var o=this.getKey(r);this.setCache(o,a,s),this.updateKeyMappingFor(r)}},{key:"deleteCache",value:function(r,a){this.getCachesAt(a).delete(r)}},{key:"delete",value:function(r,a){var s=this.getKey(r);this.deleteCache(s,a)}},{key:"invalidateKey",value:function(r){var a=this;this.lvls.forEach(function(s){return a.deleteCache(r,s)})}},{key:"invalidate",value:function(r){var a=r.id(),s=this.keyForId.get(a);this.deleteKeyMappingFor(r);var o=this.doesEleInvalidateKey(r);return o&&this.invalidateKey(s),o||this.getNumberOfIdsForKey(s)===0}}])}(),Jxn=25,$we=50,Rxe=-4,mct=3,RVn=7.99,PNi=8,BNi=1024,FNi=1024,$Ni=1024,UNi=.2,zNi=.8,GNi=10,qNi=.15,HNi=.1,VNi=.9,YNi=.9,jNi=100,WNi=1,MV={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},KNi=Nm({getKey:null,doesEleInvalidateKey:G3e,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:yHn,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),Wie=function(t,r){var a=this;a.renderer=t,a.onDequeues=[];var s=KNi(r);eo(a,s),a.lookup=new MNi(s.getKey,s.doesEleInvalidateKey),a.setupDequeueing()},$p=Wie.prototype;$p.reasons=MV;$p.getTextureQueue=function(e){var t=this;return t.eleImgCaches=t.eleImgCaches||{},t.eleImgCaches[e]=t.eleImgCaches[e]||[]};$p.getRetiredTextureQueue=function(e){var t=this,r=t.eleImgCaches.retired=t.eleImgCaches.retired||{},a=r[e]=r[e]||[];return a};$p.getElementQueue=function(){var e=this,t=e.eleCacheQueue=e.eleCacheQueue||new Ace(function(r,a){return a.reqs-r.reqs});return t};$p.getElementKeyToQueue=function(){var e=this,t=e.eleKeyToCacheQueue=e.eleKeyToCacheQueue||{};return t};$p.getElement=function(e,t,r,a,s){var o=this,u=this.renderer,h=u.cy.zoom(),f=this.lookup;if(!t||t.w===0||t.h===0||isNaN(t.w)||isNaN(t.h)||!e.visible()||e.removed()||!o.allowEdgeTxrCaching&&e.isEdge()||!o.allowParentTxrCaching&&e.isParent())return null;if(a==null&&(a=Math.ceil(ygt(h*r))),a=RVn||a>mct)return null;var p=Math.pow(2,a),m=t.h*p,b=t.w*p,_=u.eleTextBiggerThanMin(e,p);if(!this.isVisible(e,_))return null;var w=f.get(e,a);if(w&&w.invalidated&&(w.invalidated=!1,w.texture.invalidatedWidth-=w.width),w)return w;var S;if(m<=Jxn?S=Jxn:m<=$we?S=$we:S=Math.ceil(m/$we)*$we,m>$Ni||b>FNi)return null;var C=o.getTextureQueue(S),A=C[C.length-2],k=function(){return o.recycleTexture(S,b)||o.addTexture(S,b)};A||(A=C[C.length-1]),A||(A=k()),A.width-A.usedWidtha;B--)$=o.getElement(e,t,r,B,MV.downscale);G()}else return o.queueElement(e,M.level-1),M;else{var Z;if(!N&&!L&&!P)for(var z=a-1;z>=Rxe;z--){var Y=f.get(e,z);if(Y){Z=Y;break}}if(I(Z))return o.queueElement(e,a),Z;A.context.translate(A.usedWidth,0),A.context.scale(p,p),this.drawElement(A.context,e,t,_,!1),A.context.scale(1/p,1/p),A.context.translate(-A.usedWidth,0)}return w={x:A.usedWidth,texture:A,level:a,scale:p,width:b,height:m,scaledLabelShown:_},A.usedWidth+=Math.ceil(b+PNi),A.eleCaches.push(w),f.set(e,a,w),o.checkTextureFullness(A),w};$p.invalidateElements=function(e){for(var t=0;t=UNi*e.width&&this.retireTexture(e)};$p.checkTextureFullness=function(e){var t=this,r=t.getTextureQueue(e.height);e.usedWidth/e.width>zNi&&e.fullnessChecks>=GNi?s9(r,e):e.fullnessChecks++};$p.retireTexture=function(e){var t=this,r=e.height,a=t.getTextureQueue(r),s=this.lookup;s9(a,e),e.retired=!0;for(var o=e.eleCaches,u=0;u=t)return u.retired=!1,u.usedWidth=0,u.invalidatedWidth=0,u.fullnessChecks=0,bgt(u.eleCaches),u.context.setTransform(1,0,0,1,0,0),u.context.clearRect(0,0,u.width,u.height),s9(s,u),a.push(u),u}};$p.queueElement=function(e,t){var r=this,a=r.getElementQueue(),s=r.getElementKeyToQueue(),o=this.getKey(e),u=s[o];if(u)u.level=Math.max(u.level,t),u.eles.merge(e),u.reqs++,a.updateItem(u);else{var h={eles:e.spawn().merge(e),level:t,reqs:1,key:o};a.push(h),s[o]=h}};$p.dequeue=function(e){for(var t=this,r=t.getElementQueue(),a=t.getElementKeyToQueue(),s=[],o=t.lookup,u=0;u0;u++){var h=r.pop(),f=h.key,p=h.eles[0],m=o.hasCache(p,h.level);if(a[f]=null,m)continue;s.push(h);var b=t.getBoundingBox(p);t.getElement(p,b,e,h.level,MV.dequeue)}return s};$p.removeFromQueue=function(e){var t=this,r=t.getElementQueue(),a=t.getElementKeyToQueue(),s=this.getKey(e),o=a[s];o!=null&&(o.eles.length===1?(o.reqs=ggt,r.updateItem(o),r.pop(),a[s]=null):o.eles.unmerge(e))};$p.onDequeue=function(e){this.onDequeues.push(e)};$p.offDequeue=function(e){s9(this.onDequeues,e)};$p.setupDequeueing=kVn.setupDequeueing({deqRedrawThreshold:jNi,deqCost:qNi,deqAvgCost:HNi,deqNoDrawCost:VNi,deqFastCost:YNi,deq:function(t,r,a){return t.dequeue(r,a)},onDeqd:function(t,r){for(var a=0;a=QNi||r>X3e)return null}a.validateLayersElesOrdering(r,e);var f=a.layersByLevel,p=Math.pow(2,r),m=f[r]=f[r]||[],b,_=a.levelIsComplete(r,e),w,S=function(){var G=function(W){if(a.validateLayersElesOrdering(W,e),a.levelIsComplete(W,e))return w=f[W],!0},B=function(W){if(!w)for(var Q=r+W;Tse<=Q&&Q<=X3e&&!G(Q);Q+=W);};B(1),B(-1);for(var Z=m.length-1;Z>=0;Z--){var z=m[Z];z.invalid&&s9(m,z)}};if(!_)S();else return m;var C=function(){if(!b){b=uv();for(var G=0;GtSn||z>tSn)return null;var Y=Z*z;if(Y>aOi)return null;var W=a.makeLayer(b,r);if(B!=null){var Q=m.indexOf(B)+1;m.splice(Q,0,W)}else(G.insert===void 0||G.insert)&&m.unshift(W);return W};if(a.skipping&&!h)return null;for(var k=null,I=e.length/XNi,N=!h,L=0;L=I||!SHn(k.bb,P.boundingBox()))&&(k=A({insert:!0,after:k}),!k))return null;w||N?a.queueLayer(k,P):a.drawEleInLayer(k,P,r,t),k.eles.push(P),F[r]=k}return w||(N?null:m)};Om.getEleLevelForLayerLevel=function(e,t){return e};Om.drawEleInLayer=function(e,t,r,a){var s=this,o=this.renderer,u=e.context,h=t.boundingBox();h.w===0||h.h===0||!t.visible()||(r=s.getEleLevelForLayerLevel(r,a),o.setImgSmoothing(u,!1),o.drawCachedElement(u,t,null,null,r,sOi),o.setImgSmoothing(u,!0))};Om.levelIsComplete=function(e,t){var r=this,a=r.layersByLevel[e];if(!a||a.length===0)return!1;for(var s=0,o=0;o0||u.invalid)return!1;s+=u.eles.length}return s===t.length};Om.validateLayersElesOrdering=function(e,t){var r=this.layersByLevel[e];if(r)for(var a=0;a0){t=!0;break}}return t};Om.invalidateElements=function(e){var t=this;e.length!==0&&(t.lastInvalidationTime=cR(),!(e.length===0||!t.haveLayers())&&t.updateElementsInLayers(e,function(a,s,o){t.invalidateLayer(a)}))};Om.invalidateLayer=function(e){if(this.lastInvalidationTime=cR(),!e.invalid){var t=e.level,r=e.eles,a=this.layersByLevel[t];s9(a,e),e.elesQueue=[],e.invalid=!0,e.replacement&&(e.replacement.invalid=!0);for(var s=0;s3&&arguments[3]!==void 0?arguments[3]:!0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,u=this,h=t._private.rscratch;if(!(o&&!t.visible())&&!(h.badLine||h.allpts==null||isNaN(h.allpts[0]))){var f;r&&(f=r,e.translate(-f.x1,-f.y1));var p=o?t.pstyle("opacity").value:1,m=o?t.pstyle("line-opacity").value:1,b=t.pstyle("curve-style").value,_=t.pstyle("line-style").value,w=t.pstyle("width").pfValue,S=t.pstyle("line-cap").value,C=t.pstyle("line-outline-width").value,A=t.pstyle("line-outline-color").value,k=p*m,I=p*m,N=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:k;b==="straight-triangle"?(u.eleStrokeStyle(e,t,W),u.drawEdgeTrianglePath(t,e,h.allpts)):(e.lineWidth=w,e.lineCap=S,u.eleStrokeStyle(e,t,W),u.drawEdgePath(t,e,h.allpts,_),e.lineCap="butt")},L=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:k;if(e.lineWidth=w+C,e.lineCap=S,C>0)u.colorStrokeStyle(e,A[0],A[1],A[2],W);else{e.lineCap="butt";return}b==="straight-triangle"?u.drawEdgeTrianglePath(t,e,h.allpts):(u.drawEdgePath(t,e,h.allpts,_),e.lineCap="butt")},P=function(){s&&u.drawEdgeOverlay(e,t)},M=function(){s&&u.drawEdgeUnderlay(e,t)},F=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I;u.drawArrowheads(e,t,W)},U=function(){u.drawElementText(e,t,null,a)};e.lineJoin="round";var $=t.pstyle("ghost").value==="yes";if($){var G=t.pstyle("ghost-offset-x").pfValue,B=t.pstyle("ghost-offset-y").pfValue,Z=t.pstyle("ghost-opacity").value,z=k*Z;e.translate(G,B),N(z),F(z),e.translate(-G,-B)}else L();M(),N(),F(),P(),U(),r&&e.translate(f.x1,f.y1)}};var OVn=function(t){if(!["overlay","underlay"].includes(t))throw new Error("Invalid state");return function(r,a){if(a.visible()){var s=a.pstyle("".concat(t,"-opacity")).value;if(s!==0){var o=this,u=o.usePaths(),h=a._private.rscratch,f=a.pstyle("".concat(t,"-padding")).pfValue,p=2*f,m=a.pstyle("".concat(t,"-color")).value;r.lineWidth=p,h.edgeType==="self"&&!u?r.lineCap="butt":r.lineCap="round",o.colorStrokeStyle(r,m[0],m[1],m[2],s),o.drawEdgePath(a,r,h.allpts,"solid")}}}};TR.drawEdgeOverlay=OVn("overlay");TR.drawEdgeUnderlay=OVn("underlay");TR.drawEdgePath=function(e,t,r,a){var s=e._private.rscratch,o=t,u,h=!1,f=this.usePaths(),p=e.pstyle("line-dash-pattern").pfValue,m=e.pstyle("line-dash-offset").pfValue;if(f){var b=r.join("$"),_=s.pathCacheKey&&s.pathCacheKey===b;_?(u=t=s.pathCache,h=!0):(u=t=new Path2D,s.pathCacheKey=b,s.pathCache=u)}if(o.setLineDash)switch(a){case"dotted":o.setLineDash([1,1]);break;case"dashed":o.setLineDash(p),o.lineDashOffset=m;break;case"solid":o.setLineDash([]);break}if(!h&&!s.badLine)switch(t.beginPath&&t.beginPath(),t.moveTo(r[0],r[1]),s.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var w=2;w+35&&arguments[5]!==void 0?arguments[5]:!0,u=this;if(a==null){if(o&&!u.eleTextBiggerThanMin(t))return}else if(a===!1)return;if(t.isNode()){var h=t.pstyle("label");if(!h||!h.value)return;var f=u.getLabelJustification(t);e.textAlign=f,e.textBaseline="bottom"}else{var p=t.element()._private.rscratch.badLine,m=t.pstyle("label"),b=t.pstyle("source-label"),_=t.pstyle("target-label");if(p||(!m||!m.value)&&(!b||!b.value)&&(!_||!_.value))return;e.textAlign="center",e.textBaseline="bottom"}var w=!r,S;r&&(S=r,e.translate(-S.x1,-S.y1)),s==null?(u.drawText(e,t,null,w,o),t.isEdge()&&(u.drawText(e,t,"source",w,o),u.drawText(e,t,"target",w,o))):u.drawText(e,t,s,w,o),r&&e.translate(S.x1,S.y1)};$$.getFontCache=function(e){var t;this.fontCaches=this.fontCaches||[];for(var r=0;r2&&arguments[2]!==void 0?arguments[2]:!0,a=t.pstyle("font-style").strValue,s=t.pstyle("font-size").pfValue+"px",o=t.pstyle("font-family").strValue,u=t.pstyle("font-weight").strValue,h=r?t.effectiveOpacity()*t.pstyle("text-opacity").value:1,f=t.pstyle("text-outline-opacity").value*h,p=t.pstyle("color").value,m=t.pstyle("text-outline-color").value;e.font=a+" "+u+" "+s+" "+o,e.lineJoin="round",this.colorFillStyle(e,p[0],p[1],p[2],h),this.colorStrokeStyle(e,m[0],m[1],m[2],f)};function bOi(e,t,r,a,s){var o=Math.min(a,s),u=o/2,h=t+a/2,f=r+s/2;e.beginPath(),e.arc(h,f,u,0,Math.PI*2),e.closePath()}function aSn(e,t,r,a,s){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,u=Math.min(o,a/2,s/2);e.beginPath(),e.moveTo(t+u,r),e.lineTo(t+a-u,r),e.quadraticCurveTo(t+a,r,t+a,r+u),e.lineTo(t+a,r+s-u),e.quadraticCurveTo(t+a,r+s,t+a-u,r+s),e.lineTo(t+u,r+s),e.quadraticCurveTo(t,r+s,t,r+s-u),e.lineTo(t,r+u),e.quadraticCurveTo(t,r,t+u,r),e.closePath()}$$.getTextAngle=function(e,t){var r,a=e._private,s=a.rscratch,o=t?t+"-":"",u=e.pstyle(o+"text-rotation");if(u.strValue==="autorotate"){var h=F2(s,"labelAngle",t);r=e.isEdge()?h:0}else u.strValue==="none"?r=0:r=u.pfValue;return r};$$.drawText=function(e,t,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=t._private,u=o.rscratch,h=s?t.effectiveOpacity():1;if(!(s&&(h===0||t.pstyle("text-opacity").value===0))){r==="main"&&(r=null);var f=F2(u,"labelX",r),p=F2(u,"labelY",r),m,b,_=this.getLabelText(t,r);if(_!=null&&_!==""&&!isNaN(f)&&!isNaN(p)){this.setupTextStyle(e,t,s);var w=r?r+"-":"",S=F2(u,"labelWidth",r),C=F2(u,"labelHeight",r),A=t.pstyle(w+"text-margin-x").pfValue,k=t.pstyle(w+"text-margin-y").pfValue,I=t.isEdge(),N=t.pstyle("text-halign").value,L=t.pstyle("text-valign").value;I&&(N="center",L="center"),f+=A,p+=k;var P;switch(a?P=this.getTextAngle(t,r):P=0,P!==0&&(m=f,b=p,e.translate(m,b),e.rotate(P),f=0,p=0),L){case"top":break;case"center":p+=C/2;break;case"bottom":p+=C;break}var M=t.pstyle("text-background-opacity").value,F=t.pstyle("text-border-opacity").value,U=t.pstyle("text-border-width").pfValue,$=t.pstyle("text-background-padding").pfValue,G=t.pstyle("text-background-shape").strValue,B=G==="round-rectangle"||G==="roundrectangle",Z=G==="circle",z=2;if(M>0||U>0&&F>0){var Y=e.fillStyle,W=e.strokeStyle,Q=e.lineWidth,V=t.pstyle("text-background-color").value,j=t.pstyle("text-border-color").value,ee=t.pstyle("text-border-style").value,te=M>0,ne=U>0&&F>0,se=f-$;switch(N){case"left":se-=S;break;case"center":se-=S/2;break}var ie=p-C-$,ge=S+2*$,ce=C+2*$;if(te&&(e.fillStyle="rgba(".concat(V[0],",").concat(V[1],",").concat(V[2],",").concat(M*h,")")),ne&&(e.strokeStyle="rgba(".concat(j[0],",").concat(j[1],",").concat(j[2],",").concat(F*h,")"),e.lineWidth=U,e.setLineDash))switch(ee){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"double":e.lineWidth=U/4,e.setLineDash([]);break;case"solid":default:e.setLineDash([]);break}if(B?(e.beginPath(),aSn(e,se,ie,ge,ce,z)):Z?(e.beginPath(),bOi(e,se,ie,ge,ce)):(e.beginPath(),e.rect(se,ie,ge,ce)),te&&e.fill(),ne&&e.stroke(),ne&&ee==="double"){var be=U/2;e.beginPath(),B?aSn(e,se+be,ie+be,ge-2*be,ce-2*be,z):e.rect(se+be,ie+be,ge-2*be,ce-2*be),e.stroke()}e.fillStyle=Y,e.strokeStyle=W,e.lineWidth=Q,e.setLineDash&&e.setLineDash([])}var ve=2*t.pstyle("text-outline-width").pfValue;if(ve>0&&(e.lineWidth=ve),t.pstyle("text-wrap").value==="wrap"){var De=F2(u,"labelWrapCachedLines",r),ye=F2(u,"labelLineHeight",r),Ee=S/2,he=this.getLabelJustification(t);switch(he==="auto"||(N==="left"?he==="left"?f+=-S:he==="center"&&(f+=-Ee):N==="center"?he==="left"?f+=-Ee:he==="right"&&(f+=Ee):N==="right"&&(he==="center"?f+=Ee:he==="right"&&(f+=S))),L){case"top":p-=(De.length-1)*ye;break;case"center":case"bottom":p-=(De.length-1)*ye;break}for(var we=0;we0&&e.strokeText(De[we],f,p),e.fillText(De[we],f,p),p+=ye}else ve>0&&e.strokeText(_,f,p),e.fillText(_,f,p);P!==0&&(e.rotate(-P),e.translate(-m,-b))}}};var W9={};W9.drawNode=function(e,t,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,u=this,h,f,p=t._private,m=p.rscratch,b=t.position();if(!(!aa(b.x)||!aa(b.y))&&!(o&&!t.visible())){var _=o?t.effectiveOpacity():1,w=u.usePaths(),S,C=!1,A=t.padding();h=t.width()+2*A,f=t.height()+2*A;var k;r&&(k=r,e.translate(-k.x1,-k.y1));for(var I=t.pstyle("background-image"),N=I.value,L=new Array(N.length),P=new Array(N.length),M=0,F=0;F0&&arguments[0]!==void 0?arguments[0]:z;u.eleFillStyle(e,t,Ae)},ye=function(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ne;u.colorStrokeStyle(e,Y[0],Y[1],Y[2],Ae)},Ee=function(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ce;u.colorStrokeStyle(e,ie[0],ie[1],ie[2],Ae)},he=function(Ae,Xe,fe,Qe){var Ke=u.nodePathCache=u.nodePathCache||[],mt=bHn(fe==="polygon"?fe+","+Qe.join(","):fe,""+Xe,""+Ae,""+ve),lt=Ke[mt],$t,Ut=!1;return lt!=null?($t=lt,Ut=!0,m.pathCache=$t):($t=new Path2D,Ke[mt]=m.pathCache=$t),{path:$t,cacheHit:Ut}},we=t.pstyle("shape").strValue,Ce=t.pstyle("shape-polygon-points").pfValue;if(w){e.translate(b.x,b.y);var Ie=he(h,f,we,Ce);S=Ie.path,C=Ie.cacheHit}var Le=function(){if(!C){var Ae=b;w&&(Ae={x:0,y:0}),u.nodeShapes[u.getNodeShape(t)].draw(S||e,Ae.x,Ae.y,h,f,ve,m)}w?e.fill(S):e.fill()},Fe=function(){for(var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_,Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,fe=p.backgrounding,Qe=0,Ke=0;Ke0&&arguments[0]!==void 0?arguments[0]:!1,Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_;u.hasPie(t)&&(u.drawPie(e,t,Xe),Ae&&(w||u.nodeShapes[u.getNodeShape(t)].draw(e,b.x,b.y,h,f,ve,m)))},Oe=function(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_;u.hasStripe(t)&&(e.save(),w?e.clip(m.pathCache):(u.nodeShapes[u.getNodeShape(t)].draw(e,b.x,b.y,h,f,ve,m),e.clip()),u.drawStripe(e,t,Xe),e.restore(),Ae&&(w||u.nodeShapes[u.getNodeShape(t)].draw(e,b.x,b.y,h,f,ve,m)))},Dt=function(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_,Xe=(B>0?B:-B)*Ae,fe=B>0?0:255;B!==0&&(u.colorFillStyle(e,fe,fe,fe,Xe),w?e.fill(S):e.fill())},ot=function(){if(Z>0){if(e.lineWidth=Z,e.lineCap=V,e.lineJoin=Q,e.setLineDash)switch(W){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash(ee),e.lineDashOffset=te;break;case"solid":case"double":e.setLineDash([]);break}if(j!=="center"){if(e.save(),e.lineWidth*=2,j==="inside")w?e.clip(S):e.clip();else{var Ae=new Path2D;Ae.rect(-h/2-Z,-f/2-Z,h+2*Z,f+2*Z),Ae.addPath(S),e.clip(Ae,"evenodd")}w?e.stroke(S):e.stroke(),e.restore()}else w?e.stroke(S):e.stroke();if(W==="double"){e.lineWidth=Z/3;var Xe=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",w?e.stroke(S):e.stroke(),e.globalCompositeOperation=Xe}e.setLineDash&&e.setLineDash([])}},sn=function(){if(se>0){if(e.lineWidth=se,e.lineCap="butt",e.setLineDash)switch(ge){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"solid":case"double":e.setLineDash([]);break}var Ae=b;w&&(Ae={x:0,y:0});var Xe=u.getNodeShape(t),fe=Z;j==="inside"&&(fe=0),j==="outside"&&(fe*=2);var Qe=(h+fe+(se+be))/h,Ke=(f+fe+(se+be))/f,mt=h*Qe,lt=f*Ke,$t=u.nodeShapes[Xe].points,Ut;if(w){var Jt=he(mt,lt,Xe,$t);Ut=Jt.path}if(Xe==="ellipse")u.drawEllipsePath(Ut||e,Ae.x,Ae.y,mt,lt);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(Xe)){var wn=0,Vn=0,Wn=0;Xe==="round-diamond"?wn=(fe+be+se)*1.4:Xe==="round-heptagon"?(wn=(fe+be+se)*1.075,Wn=-(fe/2+be+se)/35):Xe==="round-hexagon"?wn=(fe+be+se)*1.12:Xe==="round-pentagon"?(wn=(fe+be+se)*1.13,Wn=-(fe/2+be+se)/15):Xe==="round-tag"?(wn=(fe+be+se)*1.12,Vn=(fe/2+se+be)*.07):Xe==="round-triangle"&&(wn=(fe+be+se)*(Math.PI/2),Wn=-(fe+be/2+se)/Math.PI),wn!==0&&(Qe=(h+wn)/h,mt=h*Qe,["round-hexagon","round-tag"].includes(Xe)||(Ke=(f+wn)/f,lt=f*Ke)),ve=ve==="auto"?AHn(mt,lt):ve;for(var Dn=mt/2,zn=lt/2,vn=ve+(fe+se+be)/2,Cn=new Array($t.length/2),Ar=new Array($t.length/2),ur=0;ur<$t.length/2;ur++)Cn[ur]={x:Ae.x+Vn+Dn*$t[ur*2],y:Ae.y+Wn+zn*$t[ur*2+1]};var On,Ir,Ln,pr,Cr=Cn.length;for(Ir=Cn[Cr-1],On=0;On0){if(s=s||a.position(),o==null||u==null){var w=a.padding();o=a.width()+2*w,u=a.height()+2*w}h.colorFillStyle(r,m[0],m[1],m[2],p),h.nodeShapes[b].draw(r,s.x,s.y,o+f*2,u+f*2,_),r.fill()}}}};W9.drawNodeOverlay=LVn("overlay");W9.drawNodeUnderlay=LVn("underlay");W9.hasPie=function(e){return e=e[0],e._private.hasPie};W9.hasStripe=function(e){return e=e[0],e._private.hasStripe};W9.drawPie=function(e,t,r,a){t=t[0],a=a||t.position();var s=t.cy().style(),o=t.pstyle("pie-size"),u=t.pstyle("pie-hole"),h=t.pstyle("pie-start-angle").pfValue,f=a.x,p=a.y,m=t.width(),b=t.height(),_=Math.min(m,b)/2,w,S=0,C=this.usePaths();if(C&&(f=0,p=0),o.units==="%"?_=_*o.pfValue:o.pfValue!==void 0&&(_=o.pfValue/2),u.units==="%"?w=_*u.pfValue:u.pfValue!==void 0&&(w=u.pfValue/2),!(w>=_))for(var A=1;A<=s.pieBackgroundN;A++){var k=t.pstyle("pie-"+A+"-background-size").value,I=t.pstyle("pie-"+A+"-background-color").value,N=t.pstyle("pie-"+A+"-background-opacity").value*r,L=k/100;L+S>1&&(L=1-S);var P=1.5*Math.PI+2*Math.PI*S;P+=h;var M=2*Math.PI*L,F=P+M;k===0||S>=1||S+L>1||(w===0?(e.beginPath(),e.moveTo(f,p),e.arc(f,p,_,P,F),e.closePath()):(e.beginPath(),e.arc(f,p,_,P,F),e.arc(f,p,w,F,P,!0),e.closePath()),this.colorFillStyle(e,I[0],I[1],I[2],N),e.fill(),S+=L)}};W9.drawStripe=function(e,t,r,a){t=t[0],a=a||t.position();var s=t.cy().style(),o=a.x,u=a.y,h=t.width(),f=t.height(),p=0,m=this.usePaths();e.save();var b=t.pstyle("stripe-direction").value,_=t.pstyle("stripe-size");switch(b){case"vertical":break;case"righward":e.rotate(-Math.PI/2);break}var w=h,S=f;_.units==="%"?(w=w*_.pfValue,S=S*_.pfValue):_.pfValue!==void 0&&(w=_.pfValue,S=_.pfValue),m&&(o=0,u=0),u-=w/2,o-=S/2;for(var C=1;C<=s.stripeBackgroundN;C++){var A=t.pstyle("stripe-"+C+"-background-size").value,k=t.pstyle("stripe-"+C+"-background-color").value,I=t.pstyle("stripe-"+C+"-background-opacity").value*r,N=A/100;N+p>1&&(N=1-p),!(A===0||p>=1||p+N>1)&&(e.beginPath(),e.rect(o,u+S*p,w,S*N),e.closePath(),this.colorFillStyle(e,k[0],k[1],k[2],I),e.fill(),p+=N)}e.restore()};var _v={},yOi=100;_v.getPixelRatio=function(){var e=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var t=this.cy.window(),r=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(t.devicePixelRatio||1)/r};_v.paintCache=function(e){for(var t=this.paintCaches=this.paintCaches||[],r=!0,a,s=0;st.minMbLowQualFrames&&(t.motionBlurPxRatio=t.mbPxRBlurry)),t.clearingMotionBlur&&(t.motionBlurPxRatio=1),t.textureDrawLastFrame&&!b&&(m[t.NODE]=!0,m[t.SELECT_BOX]=!0);var I=r.style(),N=r.zoom(),L=u!==void 0?u:N,P=r.pan(),M={x:P.x,y:P.y},F={zoom:N,pan:{x:P.x,y:P.y}},U=t.prevViewport,$=U===void 0||F.zoom!==U.zoom||F.pan.x!==U.pan.x||F.pan.y!==U.pan.y;!$&&!(C&&!S)&&(t.motionBlurPxRatio=1),h&&(M=h),L*=f,M.x*=f,M.y*=f;var G=t.getCachedZSortedEles();function B(ye,Ee,he,we,Ce){var Ie=ye.globalCompositeOperation;ye.globalCompositeOperation="destination-out",t.colorFillStyle(ye,255,255,255,t.motionBlurTransparency),ye.fillRect(Ee,he,we,Ce),ye.globalCompositeOperation=Ie}function Z(ye,Ee){var he,we,Ce,Ie;!t.clearingMotionBlur&&(ye===p.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]||ye===p.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG])?(he={x:P.x*w,y:P.y*w},we=N*w,Ce=t.canvasWidth*w,Ie=t.canvasHeight*w):(he=M,we=L,Ce=t.canvasWidth,Ie=t.canvasHeight),ye.setTransform(1,0,0,1,0,0),Ee==="motionBlur"?B(ye,0,0,Ce,Ie):!a&&(Ee===void 0||Ee)&&ye.clearRect(0,0,Ce,Ie),s||(ye.translate(he.x,he.y),ye.scale(we,we)),h&&ye.translate(h.x,h.y),u&&ye.scale(u,u)}if(b||(t.textureDrawLastFrame=!1),b){if(t.textureDrawLastFrame=!0,!t.textureCache){t.textureCache={},t.textureCache.bb=r.mutableElements().boundingBox(),t.textureCache.texture=t.data.bufferCanvases[t.TEXTURE_BUFFER];var z=t.data.bufferContexts[t.TEXTURE_BUFFER];z.setTransform(1,0,0,1,0,0),z.clearRect(0,0,t.canvasWidth*t.textureMult,t.canvasHeight*t.textureMult),t.render({forcedContext:z,drawOnlyNodeLayer:!0,forcedPxRatio:f*t.textureMult});var F=t.textureCache.viewport={zoom:r.zoom(),pan:r.pan(),width:t.canvasWidth,height:t.canvasHeight};F.mpan={x:(0-F.pan.x)/F.zoom,y:(0-F.pan.y)/F.zoom}}m[t.DRAG]=!1,m[t.NODE]=!1;var Y=p.contexts[t.NODE],W=t.textureCache.texture,F=t.textureCache.viewport;Y.setTransform(1,0,0,1,0,0),_?B(Y,0,0,F.width,F.height):Y.clearRect(0,0,F.width,F.height);var Q=I.core("outside-texture-bg-color").value,V=I.core("outside-texture-bg-opacity").value;t.colorFillStyle(Y,Q[0],Q[1],Q[2],V),Y.fillRect(0,0,F.width,F.height);var N=r.zoom();Z(Y,!1),Y.clearRect(F.mpan.x,F.mpan.y,F.width/F.zoom/f,F.height/F.zoom/f),Y.drawImage(W,F.mpan.x,F.mpan.y,F.width/F.zoom/f,F.height/F.zoom/f)}else t.textureOnViewport&&!a&&(t.textureCache=null);var j=r.extent(),ee=t.pinching||t.hoverData.dragging||t.swipePanning||t.data.wheelZooming||t.hoverData.draggingEles||t.cy.animated(),te=t.hideEdgesOnViewport&&ee,ne=[];if(ne[t.NODE]=!m[t.NODE]&&_&&!t.clearedForMotionBlur[t.NODE]||t.clearingMotionBlur,ne[t.NODE]&&(t.clearedForMotionBlur[t.NODE]=!0),ne[t.DRAG]=!m[t.DRAG]&&_&&!t.clearedForMotionBlur[t.DRAG]||t.clearingMotionBlur,ne[t.DRAG]&&(t.clearedForMotionBlur[t.DRAG]=!0),m[t.NODE]||s||o||ne[t.NODE]){var se=_&&!ne[t.NODE]&&w!==1,Y=a||(se?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]:p.contexts[t.NODE]),ie=_&&!se?"motionBlur":void 0;Z(Y,ie),te?t.drawCachedNodes(Y,G.nondrag,f,j):t.drawLayeredElements(Y,G.nondrag,f,j),t.debug&&t.drawDebugPoints(Y,G.nondrag),!s&&!_&&(m[t.NODE]=!1)}if(!o&&(m[t.DRAG]||s||ne[t.DRAG])){var se=_&&!ne[t.DRAG]&&w!==1,Y=a||(se?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG]:p.contexts[t.DRAG]);Z(Y,_&&!se?"motionBlur":void 0),te?t.drawCachedNodes(Y,G.drag,f,j):t.drawCachedElements(Y,G.drag,f,j),t.debug&&t.drawDebugPoints(Y,G.drag),!s&&!_&&(m[t.DRAG]=!1)}if(this.drawSelectionRectangle(e,Z),_&&w!==1){var ge=p.contexts[t.NODE],ce=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE],be=p.contexts[t.DRAG],ve=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG],De=function(Ee,he,we){Ee.setTransform(1,0,0,1,0,0),we||!k?Ee.clearRect(0,0,t.canvasWidth,t.canvasHeight):B(Ee,0,0,t.canvasWidth,t.canvasHeight);var Ce=w;Ee.drawImage(he,0,0,t.canvasWidth*Ce,t.canvasHeight*Ce,0,0,t.canvasWidth,t.canvasHeight)};(m[t.NODE]||ne[t.NODE])&&(De(ge,ce,ne[t.NODE]),m[t.NODE]=!1),(m[t.DRAG]||ne[t.DRAG])&&(De(be,ve,ne[t.DRAG]),m[t.DRAG]=!1)}t.prevViewport=F,t.clearingMotionBlur&&(t.clearingMotionBlur=!1,t.motionBlurCleared=!0,t.motionBlur=!0),_&&(t.motionBlurTimeout=setTimeout(function(){t.motionBlurTimeout=null,t.clearedForMotionBlur[t.NODE]=!1,t.clearedForMotionBlur[t.DRAG]=!1,t.motionBlur=!1,t.clearingMotionBlur=!b,t.mbFrames=0,m[t.NODE]=!0,m[t.DRAG]=!0,t.redraw()},yOi)),a||r.emit("render")};var iie;_v.drawSelectionRectangle=function(e,t){var r=this,a=r.cy,s=r.data,o=a.style(),u=e.drawOnlyNodeLayer,h=e.drawAllLayers,f=s.canvasNeedsRedraw,p=e.forcedContext;if(r.showFps||!u&&f[r.SELECT_BOX]&&!h){var m=p||s.contexts[r.SELECT_BOX];if(t(m),r.selection[4]==1&&(r.hoverData.selecting||r.touchData.selecting)){var b=r.cy.zoom(),_=o.core("selection-box-border-width").value/b;m.lineWidth=_,m.fillStyle="rgba("+o.core("selection-box-color").value[0]+","+o.core("selection-box-color").value[1]+","+o.core("selection-box-color").value[2]+","+o.core("selection-box-opacity").value+")",m.fillRect(r.selection[0],r.selection[1],r.selection[2]-r.selection[0],r.selection[3]-r.selection[1]),_>0&&(m.strokeStyle="rgba("+o.core("selection-box-border-color").value[0]+","+o.core("selection-box-border-color").value[1]+","+o.core("selection-box-border-color").value[2]+","+o.core("selection-box-opacity").value+")",m.strokeRect(r.selection[0],r.selection[1],r.selection[2]-r.selection[0],r.selection[3]-r.selection[1]))}if(s.bgActivePosistion&&!r.hoverData.selecting){var b=r.cy.zoom(),w=s.bgActivePosistion;m.fillStyle="rgba("+o.core("active-bg-color").value[0]+","+o.core("active-bg-color").value[1]+","+o.core("active-bg-color").value[2]+","+o.core("active-bg-opacity").value+")",m.beginPath(),m.arc(w.x,w.y,o.core("active-bg-size").pfValue/b,0,2*Math.PI),m.fill()}var S=r.lastRedrawTime;if(r.showFps&&S){S=Math.round(S);var C=Math.round(1e3/S),A="1 frame = "+S+" ms = "+C+" fps";if(m.setTransform(1,0,0,1,0,0),m.fillStyle="rgba(255, 0, 0, 0.75)",m.strokeStyle="rgba(255, 0, 0, 0.75)",m.font="30px Arial",!iie){var k=m.measureText(A);iie=k.actualBoundingBoxAscent}m.fillText(A,0,iie);var I=60;m.strokeRect(0,iie+10,250,20),m.fillRect(0,iie+10,250*Math.min(C/I,1),20)}h||(f[r.SELECT_BOX]=!1)}};function sSn(e,t,r){var a=e.createShader(t);if(e.shaderSource(a,r),e.compileShader(a),!e.getShaderParameter(a,e.COMPILE_STATUS))throw new Error(e.getShaderInfoLog(a));return a}function vOi(e,t,r){var a=sSn(e,e.VERTEX_SHADER,t),s=sSn(e,e.FRAGMENT_SHADER,r),o=e.createProgram();if(e.attachShader(o,a),e.attachShader(o,s),e.linkProgram(o),!e.getProgramParameter(o,e.LINK_STATUS))throw new Error("Could not initialize shaders");return o}function _Oi(e,t,r){r===void 0&&(r=t);var a=e.makeOffscreenCanvas(t,r),s=a.context=a.getContext("2d");return a.clear=function(){return s.clearRect(0,0,a.width,a.height)},a.clear(),a}function Mgt(e){var t=e.pixelRatio,r=e.cy.zoom(),a=e.cy.pan();return{zoom:r*t,pan:{x:a.x*t,y:a.y*t}}}function wOi(e){var t=e.pixelRatio,r=e.cy.zoom();return r*t}function EOi(e,t,r,a,s){var o=a*r+t.x,u=s*r+t.y;return u=Math.round(e.canvasHeight-u),[o,u]}function xOi(e){return e.pstyle("background-fill").value!=="solid"||e.pstyle("background-image").strValue!=="none"?!1:e.pstyle("border-width").value===0||e.pstyle("border-opacity").value===0?!0:e.pstyle("border-style").value==="solid"}function SOi(e,t){if(e.length!==t.length)return!1;for(var r=0;r>0&255)/255,r[1]=(e>>8&255)/255,r[2]=(e>>16&255)/255,r[3]=(e>>24&255)/255,r}function TOi(e){return e[0]+(e[1]<<8)+(e[2]<<16)+(e[3]<<24)}function COi(e,t){var r=e.createTexture();return r.buffer=function(a){e.bindTexture(e.TEXTURE_2D,r),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_NEAREST),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,a),e.generateMipmap(e.TEXTURE_2D),e.bindTexture(e.TEXTURE_2D,null)},r.deleteTexture=function(){e.deleteTexture(r)},r}function DVn(e,t){switch(t){case"float":return[1,e.FLOAT,4];case"vec2":return[2,e.FLOAT,4];case"vec3":return[3,e.FLOAT,4];case"vec4":return[4,e.FLOAT,4];case"int":return[1,e.INT,4];case"ivec2":return[2,e.INT,4]}}function MVn(e,t,r){switch(t){case e.FLOAT:return new Float32Array(r);case e.INT:return new Int32Array(r)}}function AOi(e,t,r,a,s,o){switch(t){case e.FLOAT:return new Float32Array(r.buffer,o*a,s);case e.INT:return new Int32Array(r.buffer,o*a,s)}}function kOi(e,t,r,a){var s=DVn(e,t),o=S1(s,2),u=o[0],h=o[1],f=MVn(e,h,a),p=e.createBuffer();return e.bindBuffer(e.ARRAY_BUFFER,p),e.bufferData(e.ARRAY_BUFFER,f,e.STATIC_DRAW),h===e.FLOAT?e.vertexAttribPointer(r,u,h,!1,0,0):h===e.INT&&e.vertexAttribIPointer(r,u,h,0,0),e.enableVertexAttribArray(r),e.bindBuffer(e.ARRAY_BUFFER,null),p}function bC(e,t,r,a){var s=DVn(e,r),o=S1(s,3),u=o[0],h=o[1],f=o[2],p=MVn(e,h,t*u),m=u*f,b=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,b),e.bufferData(e.ARRAY_BUFFER,t*m,e.DYNAMIC_DRAW),e.enableVertexAttribArray(a),h===e.FLOAT?e.vertexAttribPointer(a,u,h,!1,m,0):h===e.INT&&e.vertexAttribIPointer(a,u,h,m,0),e.vertexAttribDivisor(a,1),e.bindBuffer(e.ARRAY_BUFFER,null);for(var _=new Array(t),w=0;wu&&(h=u/a,f=a*h,p=s*h),{scale:h,texW:f,texH:p}}},{key:"draw",value:function(r,a,s){var o=this;if(this.locked)throw new Error("can't draw, atlas is locked");var u=this.texSize,h=this.texRows,f=this.texHeight,p=this.getScale(a),m=p.scale,b=p.texW,_=p.texH,w=function(N,L){if(s&&L){var P=L.context,M=N.x,F=N.row,U=M,$=f*F;P.save(),P.translate(U,$),P.scale(m,m),s(P,a),P.restore()}},S=[null,null],C=function(){w(o.freePointer,o.canvas),S[0]={x:o.freePointer.x,y:o.freePointer.row*f,w:b,h:_},S[1]={x:o.freePointer.x+b,y:o.freePointer.row*f,w:0,h:_},o.freePointer.x+=b,o.freePointer.x==u&&(o.freePointer.x=0,o.freePointer.row++)},A=function(){var N=o.scratch,L=o.canvas;N.clear(),w({x:0,row:0},N);var P=u-o.freePointer.x,M=b-P,F=f;{var U=o.freePointer.x,$=o.freePointer.row*f,G=P;L.context.drawImage(N,0,0,G,F,U,$,G,F),S[0]={x:U,y:$,w:G,h:_}}{var B=P,Z=(o.freePointer.row+1)*f,z=M;L&&L.context.drawImage(N,B,0,z,F,0,Z,z,F),S[1]={x:0,y:Z,w:z,h:_}}o.freePointer.x=M,o.freePointer.row++},k=function(){o.freePointer.x=0,o.freePointer.row++};if(this.freePointer.x+b<=u)C();else{if(this.freePointer.row>=h-1)return!1;this.freePointer.x===u?(k(),C()):this.enableWrapping?A():(k(),C())}return this.keyToLocation.set(r,S),this.needsBuffer=!0,S}},{key:"getOffsets",value:function(r){return this.keyToLocation.get(r)}},{key:"isEmpty",value:function(){return this.freePointer.x===0&&this.freePointer.row===0}},{key:"canFit",value:function(r){if(this.locked)return!1;var a=this.texSize,s=this.texRows,o=this.getScale(r),u=o.texW;return this.freePointer.x+u>a?this.freePointer.row1&&arguments[1]!==void 0?arguments[1]:{},o=s.forceRedraw,u=o===void 0?!1:o,h=s.filterEle,f=h===void 0?function(){return!0}:h,p=s.filterType,m=p===void 0?function(){return!0}:p,b=!1,_=!1,w=W2(r),S;try{for(w.s();!(S=w.n()).done;){var C=S.value;if(f(C)){var A=W2(this.renderTypes.values()),k;try{var I=function(){var L=k.value,P=L.type;if(m(P)){var M=a.collections.get(L.collection),F=L.getKey(C),U=Array.isArray(F)?F:[F];if(u)U.forEach(function(Z){return M.markKeyForGC(Z)}),_=!0;else{var $=L.getID?L.getID(C):C.id(),G=a._key(P,$),B=a.typeAndIdToKey.get(G);B!==void 0&&!SOi(U,B)&&(b=!0,a.typeAndIdToKey.delete(G),B.forEach(function(Z){return M.markKeyForGC(Z)}))}}};for(A.s();!(k=A.n()).done;)I()}catch(N){A.e(N)}finally{A.f()}}}}catch(N){w.e(N)}finally{w.f()}return _&&(this.gc(),b=!1),b}},{key:"gc",value:function(){var r=W2(this.collections.values()),a;try{for(r.s();!(a=r.n()).done;){var s=a.value;s.gc()}}catch(o){r.e(o)}finally{r.f()}}},{key:"getOrCreateAtlas",value:function(r,a,s,o){var u=this.renderTypes.get(a),h=this.collections.get(u.collection),f=!1,p=h.draw(o,s,function(_){u.drawClipped?(_.save(),_.beginPath(),_.rect(0,0,s.w,s.h),_.clip(),u.drawElement(_,r,s,!0,!0),_.restore()):u.drawElement(_,r,s,!0,!0),f=!0});if(f){var m=u.getID?u.getID(r):r.id(),b=this._key(a,m);this.typeAndIdToKey.has(b)?this.typeAndIdToKey.get(b).push(o):this.typeAndIdToKey.set(b,[o])}return p}},{key:"getAtlasInfo",value:function(r,a){var s=this,o=this.renderTypes.get(a),u=o.getKey(r),h=Array.isArray(u)?u:[u];return h.map(function(f){var p=o.getBoundingBox(r,f),m=s.getOrCreateAtlas(r,a,p,f),b=m.getOffsets(f),_=S1(b,2),w=_[0],S=_[1];return{atlas:m,tex:w,tex1:w,tex2:S,bb:p}})}},{key:"getDebugInfo",value:function(){var r=[],a=W2(this.collections),s;try{for(a.s();!(s=a.n()).done;){var o=S1(s.value,2),u=o[0],h=o[1],f=h.getCounts(),p=f.keyCount,m=f.atlasCount;r.push({type:u,keyCount:p,atlasCount:m})}}catch(b){a.e(b)}finally{a.f()}return r}}])}(),BOi=function(){function e(t){V9(this,e),this.globalOptions=t,this.atlasSize=t.webglTexSize,this.maxAtlasesPerBatch=t.webglTexPerBatch,this.batchAtlases=[]}return Y9(e,[{key:"getMaxAtlasesPerBatch",value:function(){return this.maxAtlasesPerBatch}},{key:"getAtlasSize",value:function(){return this.atlasSize}},{key:"getIndexArray",value:function(){return Array.from({length:this.maxAtlasesPerBatch},function(r,a){return a})}},{key:"startBatch",value:function(){this.batchAtlases=[]}},{key:"getAtlasCount",value:function(){return this.batchAtlases.length}},{key:"getAtlases",value:function(){return this.batchAtlases}},{key:"canAddToCurrentBatch",value:function(r){return this.batchAtlases.length===this.maxAtlasesPerBatch?this.batchAtlases.includes(r):!0}},{key:"getAtlasIndexForBatch",value:function(r){var a=this.batchAtlases.indexOf(r);if(a<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch)throw new Error("cannot add more atlases to batch");this.batchAtlases.push(r),a=this.batchAtlases.length-1}return a}}])}(),FOi=` float circleSD(vec2 p, float r) { return distance(vec2(0), p) - r; // signed distance } `,$Oi=` float rectangleSD(vec2 p, vec2 b) { vec2 d = abs(p)-b; return distance(vec2(0),max(d,0.0)) + min(max(d.x,d.y),0.0); } `,UOi=` float roundRectangleSD(vec2 p, vec2 b, vec4 cr) { cr.xy = (p.x > 0.0) ? cr.xy : cr.zw; cr.x = (p.y > 0.0) ? cr.x : cr.y; vec2 q = abs(p) - b + cr.x; return min(max(q.x, q.y), 0.0) + distance(vec2(0), max(q, 0.0)) - cr.x; } `,zOi=` float ellipseSD(vec2 p, vec2 ab) { p = abs( p ); // symmetry // find root with Newton solver vec2 q = ab*(p-ab); float w = (q.x1.0) ? d : -d; } `,Cse={SCREEN:{name:"screen",screen:!0},PICKING:{name:"picking",picking:!0}},Q3e={IGNORE:1,USE_BB:2},dit=0,uSn=1,hSn=2,fit=3,ZH=4,Uwe=5,aie=6,sie=7,GOi=function(){function e(t,r,a){V9(this,e),this.r=t,this.gl=r,this.maxInstances=a.webglBatchSize,this.atlasSize=a.webglTexSize,this.bgColor=a.bgColor,this.debug=a.webglDebug,this.batchDebugInfo=[],a.enableWrapping=!0,a.createTextureCanvas=_Oi,this.atlasManager=new POi(t,a),this.batchManager=new BOi(a),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(Cse.SCREEN),this.pickingProgram=this._createShaderProgram(Cse.PICKING),this.vao=this._createVAO()}return Y9(e,[{key:"addAtlasCollection",value:function(r,a){this.atlasManager.addAtlasCollection(r,a)}},{key:"addTextureAtlasRenderType",value:function(r,a){this.atlasManager.addRenderType(r,a)}},{key:"addSimpleShapeRenderType",value:function(r,a){this.simpleShapeOptions.set(r,a)}},{key:"invalidate",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=a.type,o=this.atlasManager;return s?o.invalidate(r,{filterType:function(h){return h===s},forceRedraw:!0}):o.invalidate(r)}},{key:"gc",value:function(){this.atlasManager.gc()}},{key:"_createShaderProgram",value:function(r){var a=this.gl,s=`#version 300 es precision highp float; uniform mat3 uPanZoomMatrix; uniform int uAtlasSize; // instanced in vec2 aPosition; // a vertex from the unit square in mat3 aTransform; // used to transform verticies, eg into a bounding box in int aVertType; // the type of thing we are rendering // the z-index that is output when using picking mode in vec4 aIndex; // For textures in int aAtlasId; // which shader unit/atlas to use in vec4 aTex; // x/y/w/h of texture in atlas // for edges in vec4 aPointAPointB; in vec4 aPointCPointD; in vec2 aLineWidth; // also used for node border width // simple shapes in vec4 aCornerRadius; // for round-rectangle [top-right, bottom-right, top-left, bottom-left] in vec4 aColor; // also used for edges in vec4 aBorderColor; // aLineWidth is used for border width // output values passed to the fragment shader out vec2 vTexCoord; out vec4 vColor; out vec2 vPosition; // flat values are not interpolated flat out int vAtlasId; flat out int vVertType; flat out vec2 vTopRight; flat out vec2 vBotLeft; flat out vec4 vCornerRadius; flat out vec4 vBorderColor; flat out vec2 vBorderWidth; flat out vec4 vIndex; void main(void) { int vid = gl_VertexID; vec2 position = aPosition; // TODO make this a vec3, simplifies some code below if(aVertType == `.concat(dit,`) { float texX = aTex.x; // texture coordinates float texY = aTex.y; float texW = aTex.z; float texH = aTex.w; if(vid == 1 || vid == 2 || vid == 4) { texX += texW; } if(vid == 2 || vid == 4 || vid == 5) { texY += texH; } float d = float(uAtlasSize); vTexCoord = vec2(texX / d, texY / d); // tex coords must be between 0 and 1 gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); } else if(aVertType == `).concat(ZH," || aVertType == ").concat(sie,` || aVertType == `).concat(Uwe," || aVertType == ").concat(aie,`) { // simple shapes // the bounding box is needed by the fragment shader vBotLeft = (aTransform * vec3(0, 0, 1)).xy; // flat vTopRight = (aTransform * vec3(1, 1, 1)).xy; // flat vPosition = (aTransform * vec3(position, 1)).xy; // will be interpolated // calculations are done in the fragment shader, just pass these along vColor = aColor; vCornerRadius = aCornerRadius; vBorderColor = aBorderColor; vBorderWidth = aLineWidth; gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); } else if(aVertType == `).concat(uSn,`) { vec2 source = aPointAPointB.xy; vec2 target = aPointAPointB.zw; // adjust the geometry so that the line is centered on the edge position.y = position.y - 0.5; // stretch the unit square into a long skinny rectangle vec2 xBasis = target - source; vec2 yBasis = normalize(vec2(-xBasis.y, xBasis.x)); vec2 point = source + xBasis * position.x + yBasis * aLineWidth[0] * position.y; gl_Position = vec4(uPanZoomMatrix * vec3(point, 1.0), 1.0); vColor = aColor; } else if(aVertType == `).concat(hSn,`) { vec2 pointA = aPointAPointB.xy; vec2 pointB = aPointAPointB.zw; vec2 pointC = aPointCPointD.xy; vec2 pointD = aPointCPointD.zw; // adjust the geometry so that the line is centered on the edge position.y = position.y - 0.5; vec2 p0, p1, p2, pos; if(position.x == 0.0) { // The left side of the unit square p0 = pointA; p1 = pointB; p2 = pointC; pos = position; } else { // The right side of the unit square, use same approach but flip the geometry upside down p0 = pointD; p1 = pointC; p2 = pointB; pos = vec2(0.0, -position.y); } vec2 p01 = p1 - p0; vec2 p12 = p2 - p1; vec2 p21 = p1 - p2; // Find the normal vector. vec2 tangent = normalize(normalize(p12) + normalize(p01)); vec2 normal = vec2(-tangent.y, tangent.x); // Find the vector perpendicular to p0 -> p1. vec2 p01Norm = normalize(vec2(-p01.y, p01.x)); // Determine the bend direction. float sigma = sign(dot(p01 + p21, normal)); float width = aLineWidth[0]; if(sign(pos.y) == -sigma) { // This is an intersecting vertex. Adjust the position so that there's no overlap. vec2 point = 0.5 * width * normal * -sigma / dot(normal, p01Norm); gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0); } else { // This is a non-intersecting vertex. Treat it like a mitre join. vec2 point = 0.5 * width * normal * sigma * dot(normal, p01Norm); gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0); } vColor = aColor; } else if(aVertType == `).concat(fit,` && vid < 3) { // massage the first triangle into an edge arrow if(vid == 0) position = vec2(-0.15, -0.3); if(vid == 1) position = vec2( 0.0, 0.0); if(vid == 2) position = vec2( 0.15, -0.3); gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); vColor = aColor; } else { gl_Position = vec4(2.0, 0.0, 0.0, 1.0); // discard vertex by putting it outside webgl clip space } vAtlasId = aAtlasId; vVertType = aVertType; vIndex = aIndex; } `),o=this.batchManager.getIndexArray(),u=`#version 300 es precision highp float; // declare texture unit for each texture atlas in the batch `.concat(o.map(function(p){return"uniform sampler2D uTexture".concat(p,";")}).join(` `),` uniform vec4 uBGColor; uniform float uZoom; in vec2 vTexCoord; in vec4 vColor; in vec2 vPosition; // model coordinates flat in int vAtlasId; flat in vec4 vIndex; flat in int vVertType; flat in vec2 vTopRight; flat in vec2 vBotLeft; flat in vec4 vCornerRadius; flat in vec4 vBorderColor; flat in vec2 vBorderWidth; out vec4 outColor; `).concat(FOi,` `).concat($Oi,` `).concat(UOi,` `).concat(zOi,` vec4 blend(vec4 top, vec4 bot) { // blend colors with premultiplied alpha return vec4( top.rgb + (bot.rgb * (1.0 - top.a)), top.a + (bot.a * (1.0 - top.a)) ); } vec4 distInterp(vec4 cA, vec4 cB, float d) { // interpolate color using Signed Distance // scale to the zoom level so that borders don't look blurry when zoomed in // note 1.5 is an aribitrary value chosen because it looks good return mix(cA, cB, 1.0 - smoothstep(0.0, 1.5 / uZoom, abs(d))); } void main(void) { if(vVertType == `).concat(dit,`) { // look up the texel from the texture unit `).concat(o.map(function(p){return"if(vAtlasId == ".concat(p,") outColor = texture(uTexture").concat(p,", vTexCoord);")}).join(` else `),` } else if(vVertType == `).concat(fit,`) { // mimics how canvas renderer uses context.globalCompositeOperation = 'destination-out'; outColor = blend(vColor, uBGColor); outColor.a = 1.0; // make opaque, masks out line under arrow } else if(vVertType == `).concat(ZH,` && vBorderWidth == vec2(0.0)) { // simple rectangle with no border outColor = vColor; // unit square is already transformed to the rectangle, nothing else needs to be done } else if(vVertType == `).concat(ZH," || vVertType == ").concat(sie,` || vVertType == `).concat(Uwe," || vVertType == ").concat(aie,`) { // use SDF float outerBorder = vBorderWidth[0]; float innerBorder = vBorderWidth[1]; float borderPadding = outerBorder * 2.0; float w = vTopRight.x - vBotLeft.x - borderPadding; float h = vTopRight.y - vBotLeft.y - borderPadding; vec2 b = vec2(w/2.0, h/2.0); // half width, half height vec2 p = vPosition - vec2(vTopRight.x - b[0] - outerBorder, vTopRight.y - b[1] - outerBorder); // translate to center float d; // signed distance if(vVertType == `).concat(ZH,`) { d = rectangleSD(p, b); } else if(vVertType == `).concat(sie,` && w == h) { d = circleSD(p, b.x); // faster than ellipse } else if(vVertType == `).concat(sie,`) { d = ellipseSD(p, b); } else { d = roundRectangleSD(p, b, vCornerRadius.wzyx); } // use the distance to interpolate a color to smooth the edges of the shape, doesn't need multisampling // we must smooth colors inwards, because we can't change pixels outside the shape's bounding box if(d > 0.0) { if(d > outerBorder) { discard; } else { outColor = distInterp(vBorderColor, vec4(0), d - outerBorder); } } else { if(d > innerBorder) { vec4 outerColor = outerBorder == 0.0 ? vec4(0) : vBorderColor; vec4 innerBorderColor = blend(vBorderColor, vColor); outColor = distInterp(innerBorderColor, outerColor, d); } else { vec4 outerColor; if(innerBorder == 0.0 && outerBorder == 0.0) { outerColor = vec4(0); } else if(innerBorder == 0.0) { outerColor = vBorderColor; } else { outerColor = blend(vBorderColor, vColor); } outColor = distInterp(vColor, outerColor, d - innerBorder); } } } else { outColor = vColor; } `).concat(r.picking?`if(outColor.a == 0.0) discard; else outColor = vIndex;`:"",` } `),h=vOi(a,s,u);h.aPosition=a.getAttribLocation(h,"aPosition"),h.aIndex=a.getAttribLocation(h,"aIndex"),h.aVertType=a.getAttribLocation(h,"aVertType"),h.aTransform=a.getAttribLocation(h,"aTransform"),h.aAtlasId=a.getAttribLocation(h,"aAtlasId"),h.aTex=a.getAttribLocation(h,"aTex"),h.aPointAPointB=a.getAttribLocation(h,"aPointAPointB"),h.aPointCPointD=a.getAttribLocation(h,"aPointCPointD"),h.aLineWidth=a.getAttribLocation(h,"aLineWidth"),h.aColor=a.getAttribLocation(h,"aColor"),h.aCornerRadius=a.getAttribLocation(h,"aCornerRadius"),h.aBorderColor=a.getAttribLocation(h,"aBorderColor"),h.uPanZoomMatrix=a.getUniformLocation(h,"uPanZoomMatrix"),h.uAtlasSize=a.getUniformLocation(h,"uAtlasSize"),h.uBGColor=a.getUniformLocation(h,"uBGColor"),h.uZoom=a.getUniformLocation(h,"uZoom"),h.uTextures=[];for(var f=0;f1&&arguments[1]!==void 0?arguments[1]:Cse.SCREEN;this.panZoomMatrix=r,this.renderTarget=a,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()}},{key:"startBatch",value:function(){this.instanceCount=0,this.batchManager.startBatch()}},{key:"endFrame",value:function(){this.endBatch()}},{key:"_isVisible",value:function(r,a){return r.visible()?a&&a.isVisible?a.isVisible(r):!0:!1}},{key:"drawTexture",value:function(r,a,s){var o=this.atlasManager,u=this.batchManager,h=o.getRenderTypeOpts(s);if(this._isVisible(r,h)&&!(r.isEdge()&&!this._isValidEdge(r))){if(this.renderTarget.picking&&h.getTexPickingMode){var f=h.getTexPickingMode(r);if(f===Q3e.IGNORE)return;if(f==Q3e.USE_BB){this.drawPickingRectangle(r,a,s);return}}var p=o.getAtlasInfo(r,s),m=W2(p),b;try{for(m.s();!(b=m.n()).done;){var _=b.value,w=_.atlas,S=_.tex1,C=_.tex2;u.canAddToCurrentBatch(w)||this.endBatch();for(var A=u.getAtlasIndexForBatch(w),k=0,I=[[S,!0],[C,!1]];k=this.maxInstances&&this.endBatch()}}}}catch(B){m.e(B)}finally{m.f()}}}},{key:"setTransformMatrix",value:function(r,a,s,o){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,h=0;if(s.shapeProps&&s.shapeProps.padding&&(h=r.pstyle(s.shapeProps.padding).pfValue),o){var f=o.bb,p=o.tex1,m=o.tex2,b=p.w/(p.w+m.w);u||(b=1-b);var _=this._getAdjustedBB(f,h,u,b);this._applyTransformMatrix(a,_,s,r)}else{var w=s.getBoundingBox(r),S=this._getAdjustedBB(w,h,!0,1);this._applyTransformMatrix(a,S,s,r)}}},{key:"_applyTransformMatrix",value:function(r,a,s,o){var u,h;lSn(r);var f=s.getRotation?s.getRotation(o):0;if(f!==0){var p=s.getRotationPoint(o),m=p.x,b=p.y;Ixe(r,r,[m,b]),cSn(r,r,f);var _=s.getRotationOffset(o);u=_.x+(a.xOffset||0),h=_.y+(a.yOffset||0)}else u=a.x1,h=a.y1;Ixe(r,r,[u,h]),bct(r,r,[a.w,a.h])}},{key:"_getAdjustedBB",value:function(r,a,s,o){var u=r.x1,h=r.y1,f=r.w,p=r.h,m=r.yOffset;a&&(u-=a,h-=a,f+=2*a,p+=2*a);var b=0,_=f*o;return s&&o<1?f=_:!s&&o<1&&(b=f-_,u+=b,f=_),{x1:u,y1:h,w:f,h:p,xOffset:b,yOffset:m}}},{key:"drawPickingRectangle",value:function(r,a,s){var o=this.atlasManager.getRenderTypeOpts(s),u=this.instanceCount;this.vertTypeBuffer.getView(u)[0]=ZH;var h=this.indexBuffer.getView(u);QH(a,h);var f=this.colorBuffer.getView(u);wB([0,0,0],1,f);var p=this.transformBuffer.getMatrixView(u);this.setTransformMatrix(r,p,o),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},{key:"drawNode",value:function(r,a,s){var o=this.simpleShapeOptions.get(s);if(this._isVisible(r,o)){var u=o.shapeProps,h=this._getVertTypeForShape(r,u.shape);if(h===void 0||o.isSimple&&!o.isSimple(r)){this.drawTexture(r,a,s);return}var f=this.instanceCount;if(this.vertTypeBuffer.getView(f)[0]=h,h===Uwe||h===aie){var p=o.getBoundingBox(r),m=this._getCornerRadius(r,u.radius,p),b=this.cornerRadiusBuffer.getView(f);b[0]=m,b[1]=m,b[2]=m,b[3]=m,h===aie&&(b[0]=0,b[2]=0)}var _=this.indexBuffer.getView(f);QH(a,_);var w=r.pstyle(u.color).value,S=r.pstyle(u.opacity).value,C=this.colorBuffer.getView(f);wB(w,S,C);var A=this.lineWidthBuffer.getView(f);if(A[0]=0,A[1]=0,u.border){var k=r.pstyle("border-width").value;if(k>0){var I=r.pstyle("border-color").value,N=r.pstyle("border-opacity").value,L=this.borderColorBuffer.getView(f);wB(I,N,L);var P=r.pstyle("border-position").value;if(P==="inside")A[0]=0,A[1]=-k;else if(P==="outside")A[0]=k,A[1]=0;else{var M=k/2;A[0]=M,A[1]=-M}}}var F=this.transformBuffer.getMatrixView(f);this.setTransformMatrix(r,F,o),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}},{key:"_getVertTypeForShape",value:function(r,a){var s=r.pstyle(a).value;switch(s){case"rectangle":return ZH;case"ellipse":return sie;case"roundrectangle":case"round-rectangle":return Uwe;case"bottom-round-rectangle":return aie;default:return}}},{key:"_getCornerRadius",value:function(r,a,s){var o=s.w,u=s.h;if(r.pstyle(a).value==="auto")return o9(o,u);var h=r.pstyle(a).pfValue,f=o/2,p=u/2;return Math.min(h,p,f)}},{key:"drawEdgeArrow",value:function(r,a,s){if(r.visible()){var o=r._private.rscratch,u,h,f;if(s==="source"?(u=o.arrowStartX,h=o.arrowStartY,f=o.srcArrowAngle):(u=o.arrowEndX,h=o.arrowEndY,f=o.tgtArrowAngle),!(isNaN(u)||u==null||isNaN(h)||h==null||isNaN(f)||f==null)){var p=r.pstyle(s+"-arrow-shape").value;if(p!=="none"){var m=r.pstyle(s+"-arrow-color").value,b=r.pstyle("opacity").value,_=r.pstyle("line-opacity").value,w=b*_,S=r.pstyle("width").pfValue,C=r.pstyle("arrow-scale").value,A=this.r.getArrowWidth(S,C),k=this.instanceCount,I=this.transformBuffer.getMatrixView(k);lSn(I),Ixe(I,I,[u,h]),bct(I,I,[A,A]),cSn(I,I,f),this.vertTypeBuffer.getView(k)[0]=fit;var N=this.indexBuffer.getView(k);QH(a,N);var L=this.colorBuffer.getView(k);wB(m,w,L),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}},{key:"drawEdgeLine",value:function(r,a){if(r.visible()){var s=this._getEdgePoints(r);if(s){var o=r.pstyle("opacity").value,u=r.pstyle("line-opacity").value,h=r.pstyle("width").pfValue,f=r.pstyle("line-color").value,p=o*u;if(s.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),s.length==4){var m=this.instanceCount;this.vertTypeBuffer.getView(m)[0]=uSn;var b=this.indexBuffer.getView(m);QH(a,b);var _=this.colorBuffer.getView(m);wB(f,p,_);var w=this.lineWidthBuffer.getView(m);w[0]=h;var S=this.pointAPointBBuffer.getView(m);S[0]=s[0],S[1]=s[1],S[2]=s[2],S[3]=s[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}else for(var C=0;C=this.maxInstances&&this.endBatch()}}}}},{key:"_isValidEdge",value:function(r){var a=r._private.rscratch;return!(a.badLine||a.allpts==null||isNaN(a.allpts[0]))}},{key:"_getEdgePoints",value:function(r){var a=r._private.rscratch;if(this._isValidEdge(r)){var s=a.allpts;if(s.length==4)return s;var o=this._getNumSegments(r);return this._getCurveSegmentPoints(s,o)}}},{key:"_getNumSegments",value:function(r){var a=15;return Math.min(Math.max(a,5),this.maxInstances)}},{key:"_getCurveSegmentPoints",value:function(r,a){if(r.length==4)return r;for(var s=Array((a+1)*2),o=0;o<=a;o++)if(o==0)s[0]=r[0],s[1]=r[1];else if(o==a)s[o*2]=r[r.length-2],s[o*2+1]=r[r.length-1];else{var u=o/a;this._setCurvePoint(r,u,s,o*2)}return s}},{key:"_setCurvePoint",value:function(r,a,s,o){if(r.length<=2)s[o]=r[0],s[o+1]=r[1];else{for(var u=Array(r.length-2),h=0;h0}},h=function(b){var _=b.pstyle("text-events").strValue==="yes";return _?Q3e.USE_BB:Q3e.IGNORE},f=function(b){var _=b.position(),w=_.x,S=_.y,C=b.outerWidth(),A=b.outerHeight();return{w:C,h:A,x1:w-C/2,y1:S-A/2}};r.drawing.addAtlasCollection("node",{texRows:e.webglTexRowsNodes}),r.drawing.addAtlasCollection("label",{texRows:e.webglTexRows}),r.drawing.addTextureAtlasRenderType("node-body",{collection:"node",getKey:t.getStyleKey,getBoundingBox:t.getElementBox,drawElement:t.drawElement}),r.drawing.addSimpleShapeRenderType("node-body",{getBoundingBox:f,isSimple:xOi,shapeProps:{shape:"shape",color:"background-color",opacity:"background-opacity",radius:"corner-radius",border:!0}}),r.drawing.addSimpleShapeRenderType("node-overlay",{getBoundingBox:f,isVisible:u("overlay"),shapeProps:{shape:"overlay-shape",color:"overlay-color",opacity:"overlay-opacity",padding:"overlay-padding",radius:"overlay-corner-radius"}}),r.drawing.addSimpleShapeRenderType("node-underlay",{getBoundingBox:f,isVisible:u("underlay"),shapeProps:{shape:"underlay-shape",color:"underlay-color",opacity:"underlay-opacity",padding:"underlay-padding",radius:"underlay-corner-radius"}}),r.drawing.addTextureAtlasRenderType("label",{collection:"label",getTexPickingMode:h,getKey:pit(t.getLabelKey,null),getBoundingBox:git(t.getLabelBox,null),drawClipped:!0,drawElement:t.drawLabel,getRotation:s(null),getRotationPoint:t.getLabelRotationPoint,getRotationOffset:t.getLabelRotationOffset,isVisible:o("label")}),r.drawing.addTextureAtlasRenderType("edge-source-label",{collection:"label",getTexPickingMode:h,getKey:pit(t.getSourceLabelKey,"source"),getBoundingBox:git(t.getSourceLabelBox,"source"),drawClipped:!0,drawElement:t.drawSourceLabel,getRotation:s("source"),getRotationPoint:t.getSourceLabelRotationPoint,getRotationOffset:t.getSourceLabelRotationOffset,isVisible:o("source-label")}),r.drawing.addTextureAtlasRenderType("edge-target-label",{collection:"label",getTexPickingMode:h,getKey:pit(t.getTargetLabelKey,"target"),getBoundingBox:git(t.getTargetLabelBox,"target"),drawClipped:!0,drawElement:t.drawTargetLabel,getRotation:s("target"),getRotationPoint:t.getTargetLabelRotationPoint,getRotationOffset:t.getTargetLabelRotationOffset,isVisible:o("target-label")});var p=Cce(function(){console.log("garbage collect flag set"),r.data.gc=!0},1e4);r.onUpdateEleCalcs(function(m,b){var _=!1;b&&b.length>0&&(_|=r.drawing.invalidate(b)),_&&p()}),HOi(r)};function qOi(e){var t=e.cy.container(),r=t&&t.style&&t.style.backgroundColor||"white";return uHn(r)}function BVn(e,t){var r=e._private.rscratch;return F2(r,"labelWrapCachedLines",t)||[]}var pit=function(t,r){return function(a){var s=t(a),o=BVn(a,r);return o.length>1?o.map(function(u,h){return"".concat(s,"_").concat(h)}):s}},git=function(t,r){return function(a,s){var o=t(a);if(typeof s=="string"){var u=s.indexOf("_");if(u>0){var h=Number(s.substring(u+1)),f=BVn(a,r),p=o.h/f.length,m=p*h,b=o.y1+m;return{x1:o.x1,w:o.w,y1:b,h:p,yOffset:m}}}return o}};function HOi(e){{var t=e.render;e.render=function(o){o=o||{};var u=e.cy;e.webgl&&(u.zoom()>RVn?(VOi(e),t.call(e,o)):(YOi(e),$Vn(e,o,Cse.SCREEN)))}}{var r=e.matchCanvasSize;e.matchCanvasSize=function(o){r.call(e,o),e.pickingFrameBuffer.setFramebufferAttachmentSizes(e.canvasWidth,e.canvasHeight),e.pickingFrameBuffer.needsDraw=!0}}e.findNearestElements=function(o,u,h,f){return ZOi(e,o,u)};{var a=e.invalidateCachedZSortedEles;e.invalidateCachedZSortedEles=function(){a.call(e),e.pickingFrameBuffer.needsDraw=!0}}{var s=e.notify;e.notify=function(o,u){s.call(e,o,u),o==="viewport"||o==="bounds"?e.pickingFrameBuffer.needsDraw=!0:o==="background"&&e.drawing.invalidate(u,{type:"node-body"})}}}function VOi(e){var t=e.data.contexts[e.WEBGL];t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}function YOi(e){var t=function(a){a.save(),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,e.canvasWidth,e.canvasHeight),a.restore()};t(e.data.contexts[e.NODE]),t(e.data.contexts[e.DRAG])}function jOi(e){var t=e.canvasWidth,r=e.canvasHeight,a=Mgt(e),s=a.pan,o=a.zoom,u=hit();Ixe(u,u,[s.x,s.y]),bct(u,u,[o,o]);var h=hit();OOi(h,t,r);var f=hit();return NOi(f,h,u),f}function FVn(e,t){var r=e.canvasWidth,a=e.canvasHeight,s=Mgt(e),o=s.pan,u=s.zoom;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,r,a),t.translate(o.x,o.y),t.scale(u,u)}function WOi(e,t){e.drawSelectionRectangle(t,function(r){return FVn(e,r)})}function KOi(e){var t=e.data.contexts[e.NODE];t.save(),FVn(e,t),t.strokeStyle="rgba(0, 0, 0, 0.3)",t.beginPath(),t.moveTo(-1e3,0),t.lineTo(1e3,0),t.stroke(),t.beginPath(),t.moveTo(0,-1e3),t.lineTo(0,1e3),t.stroke(),t.restore()}function XOi(e){var t=function(s,o,u){for(var h=s.atlasManager.getAtlasCollection(o),f=e.data.contexts[e.NODE],p=h.atlases,m=0;m=0&&L.add(F)}return L}function ZOi(e,t,r){var a=QOi(e,t,r),s=e.getCachedZSortedEles(),o,u,h=W2(a),f;try{for(h.s();!(f=h.n()).done;){var p=f.value,m=s[p];if(!o&&m.isNode()&&(o=m),!u&&m.isEdge()&&(u=m),o&&u)break}}catch(b){h.e(b)}finally{h.f()}return[o,u].filter(Boolean)}function mit(e,t,r){var a=e.drawing;t+=1,r.isNode()?(a.drawNode(r,t,"node-underlay"),a.drawNode(r,t,"node-body"),a.drawTexture(r,t,"label"),a.drawNode(r,t,"node-overlay")):(a.drawEdgeLine(r,t),a.drawEdgeArrow(r,t,"source"),a.drawEdgeArrow(r,t,"target"),a.drawTexture(r,t,"label"),a.drawTexture(r,t,"edge-source-label"),a.drawTexture(r,t,"edge-target-label"))}function $Vn(e,t,r){var a;e.webglDebug&&(a=performance.now());var s=e.drawing,o=0;if(r.screen&&e.data.canvasNeedsRedraw[e.SELECT_BOX]&&WOi(e,t),e.data.canvasNeedsRedraw[e.NODE]||r.picking){var u=e.data.contexts[e.WEBGL];r.screen?(u.clearColor(0,0,0,0),u.enable(u.BLEND),u.blendFunc(u.ONE,u.ONE_MINUS_SRC_ALPHA)):u.disable(u.BLEND),u.clear(u.COLOR_BUFFER_BIT|u.DEPTH_BUFFER_BIT),u.viewport(0,0,u.canvas.width,u.canvas.height);var h=jOi(e),f=e.getCachedZSortedEles();if(o=f.length,s.startFrame(h,r),r.screen){for(var p=0;p0&&u>0){w.clearRect(0,0,o,u),w.globalCompositeOperation="source-over";var S=this.getCachedZSortedEles();if(e.full)w.translate(-a.x1*p,-a.y1*p),w.scale(p,p),this.drawElements(w,S),w.scale(1/p,1/p),w.translate(a.x1*p,a.y1*p);else{var C=t.pan(),A={x:C.x*p,y:C.y*p};p*=t.zoom(),w.translate(A.x,A.y),w.scale(p,p),this.drawElements(w,S),w.scale(1/p,1/p),w.translate(-A.x,-A.y)}e.bg&&(w.globalCompositeOperation="destination-over",w.fillStyle=e.bg,w.rect(0,0,o,u),w.fill())}return _};function JOi(e,t){for(var r=atob(e),a=new ArrayBuffer(r.length),s=new Uint8Array(a),o=0;o"u"?"undefined":Dp(OffscreenCanvas))!=="undefined")r=new OffscreenCanvas(e,t);else{var a=this.cy.window(),s=a.document;r=s.createElement("canvas"),r.width=e,r.height=t}return r};[NVn,FA,TR,Dgt,$$,W9,_v,PVn,K9,Oce,GVn].forEach(function(e){eo(Vl,e)});var n9i=[{name:"null",impl:bVn},{name:"base",impl:AVn},{name:"canvas",impl:e9i}],r9i=[{type:"layout",extensions:kNi},{type:"renderer",extensions:n9i}],HVn={},VVn={};function YVn(e,t,r){var a=r,s=function(U){Uu("Can not register `"+t+"` for `"+e+"` since `"+U+"` already exists in the prototype and can not be overridden")};if(e==="core"){if(Koe.prototype[t])return s(t);Koe.prototype[t]=r}else if(e==="collection"){if(Cm.prototype[t])return s(t);Cm.prototype[t]=r}else if(e==="layout"){for(var o=function(U){this.options=U,r.call(this,U),Vc(this._private)||(this._private={}),this._private.cy=U.cy,this._private.listeners=[],this.createEmitter()},u=o.prototype=Object.create(r.prototype),h=[],f=0;fS&&(this.rect.x-=(this.labelWidth-S)/2,this.setWidth(this.labelWidth)),this.labelHeight>C&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-C)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-C),this.setHeight(this.labelHeight))}}},b.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==u.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},b.prototype.transform=function(w){var S=this.rect.x;S>f.WORLD_BOUNDARY?S=f.WORLD_BOUNDARY:S<-f.WORLD_BOUNDARY&&(S=-f.WORLD_BOUNDARY);var C=this.rect.y;C>f.WORLD_BOUNDARY?C=f.WORLD_BOUNDARY:C<-f.WORLD_BOUNDARY&&(C=-f.WORLD_BOUNDARY);var A=new m(S,C),k=w.inverseTransformPoint(A);this.setLocation(k.x,k.y)},b.prototype.getLeft=function(){return this.rect.x},b.prototype.getRight=function(){return this.rect.x+this.rect.width},b.prototype.getTop=function(){return this.rect.y},b.prototype.getBottom=function(){return this.rect.y+this.rect.height},b.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},r.exports=b},function(r,a,s){function o(u,h){u==null&&h==null?(this.x=0,this.y=0):(this.x=u,this.y=h)}o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.setX=function(u){this.x=u},o.prototype.setY=function(u){this.y=u},o.prototype.getDifference=function(u){return new DimensionD(this.x-u.x,this.y-u.y)},o.prototype.getCopy=function(){return new o(this.x,this.y)},o.prototype.translate=function(u){return this.x+=u.width,this.y+=u.height,this},r.exports=o},function(r,a,s){var o=s(2),u=s(10),h=s(0),f=s(6),p=s(3),m=s(1),b=s(13),_=s(12),w=s(11);function S(A,k,I){o.call(this,I),this.estimatedSize=u.MIN_VALUE,this.margin=h.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=A,k!=null&&k instanceof f?this.graphManager=k:k!=null&&k instanceof Layout&&(this.graphManager=k.graphManager)}S.prototype=Object.create(o.prototype);for(var C in o)S[C]=o[C];S.prototype.getNodes=function(){return this.nodes},S.prototype.getEdges=function(){return this.edges},S.prototype.getGraphManager=function(){return this.graphManager},S.prototype.getParent=function(){return this.parent},S.prototype.getLeft=function(){return this.left},S.prototype.getRight=function(){return this.right},S.prototype.getTop=function(){return this.top},S.prototype.getBottom=function(){return this.bottom},S.prototype.isConnected=function(){return this.isConnected},S.prototype.add=function(A,k,I){if(k==null&&I==null){var N=A;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(N)>-1)throw"Node already in graph!";return N.owner=this,this.getNodes().push(N),N}else{var L=A;if(!(this.getNodes().indexOf(k)>-1&&this.getNodes().indexOf(I)>-1))throw"Source or target not in graph!";if(!(k.owner==I.owner&&k.owner==this))throw"Both owners must be this graph!";return k.owner!=I.owner?null:(L.source=k,L.target=I,L.isInterGraph=!1,this.getEdges().push(L),k.edges.push(L),I!=k&&I.edges.push(L),L)}},S.prototype.remove=function(A){var k=A;if(A instanceof p){if(k==null)throw"Node is null!";if(!(k.owner!=null&&k.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var I=k.edges.slice(),N,L=I.length,P=0;P-1&&U>-1))throw"Source and/or target doesn't know this edge!";N.source.edges.splice(F,1),N.target!=N.source&&N.target.edges.splice(U,1);var M=N.source.owner.getEdges().indexOf(N);if(M==-1)throw"Not in owner's edge list!";N.source.owner.getEdges().splice(M,1)}},S.prototype.updateLeftTop=function(){for(var A=u.MAX_VALUE,k=u.MAX_VALUE,I,N,L,P=this.getNodes(),M=P.length,F=0;FI&&(A=I),k>N&&(k=N)}return A==u.MAX_VALUE?null:(P[0].getParent().paddingLeft!=null?L=P[0].getParent().paddingLeft:L=this.margin,this.left=k-L,this.top=A-L,new _(this.left,this.top))},S.prototype.updateBounds=function(A){for(var k=u.MAX_VALUE,I=-u.MAX_VALUE,N=u.MAX_VALUE,L=-u.MAX_VALUE,P,M,F,U,$,G=this.nodes,B=G.length,Z=0;ZP&&(k=P),IF&&(N=F),LP&&(k=P),IF&&(N=F),L=this.nodes.length){var B=0;I.forEach(function(Z){Z.owner==A&&B++}),B==this.nodes.length&&(this.isConnected=!0)}},r.exports=S},function(r,a,s){var o,u=s(1);function h(f){o=s(5),this.layout=f,this.graphs=[],this.edges=[]}h.prototype.addRoot=function(){var f=this.layout.newGraph(),p=this.layout.newNode(null),m=this.add(f,p);return this.setRootGraph(m),this.rootGraph},h.prototype.add=function(f,p,m,b,_){if(m==null&&b==null&&_==null){if(f==null)throw"Graph is null!";if(p==null)throw"Parent node is null!";if(this.graphs.indexOf(f)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(f),f.parent!=null)throw"Already has a parent!";if(p.child!=null)throw"Already has a child!";return f.parent=p,p.child=f,f}else{_=m,b=p,m=f;var w=b.getOwner(),S=_.getOwner();if(!(w!=null&&w.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(S!=null&&S.getGraphManager()==this))throw"Target not in this graph mgr!";if(w==S)return m.isInterGraph=!1,w.add(m,b,_);if(m.isInterGraph=!0,m.source=b,m.target=_,this.edges.indexOf(m)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(m),!(m.source!=null&&m.target!=null))throw"Edge source and/or target is null!";if(!(m.source.edges.indexOf(m)==-1&&m.target.edges.indexOf(m)==-1))throw"Edge already in source and/or target incidency list!";return m.source.edges.push(m),m.target.edges.push(m),m}},h.prototype.remove=function(f){if(f instanceof o){var p=f;if(p.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(p==this.rootGraph||p.parent!=null&&p.parent.graphManager==this))throw"Invalid parent node!";var m=[];m=m.concat(p.getEdges());for(var b,_=m.length,w=0;w<_;w++)b=m[w],p.remove(b);var S=[];S=S.concat(p.getNodes());var C;_=S.length;for(var w=0;w<_;w++)C=S[w],p.remove(C);p==this.rootGraph&&this.setRootGraph(null);var A=this.graphs.indexOf(p);this.graphs.splice(A,1),p.parent=null}else if(f instanceof u){if(b=f,b==null)throw"Edge is null!";if(!b.isInterGraph)throw"Not an inter-graph edge!";if(!(b.source!=null&&b.target!=null))throw"Source and/or target is null!";if(!(b.source.edges.indexOf(b)!=-1&&b.target.edges.indexOf(b)!=-1))throw"Source and/or target doesn't know this edge!";var A=b.source.edges.indexOf(b);if(b.source.edges.splice(A,1),A=b.target.edges.indexOf(b),b.target.edges.splice(A,1),!(b.source.owner!=null&&b.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(b.source.owner.getGraphManager().edges.indexOf(b)==-1)throw"Not in owner graph manager's edge list!";var A=b.source.owner.getGraphManager().edges.indexOf(b);b.source.owner.getGraphManager().edges.splice(A,1)}},h.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},h.prototype.getGraphs=function(){return this.graphs},h.prototype.getAllNodes=function(){if(this.allNodes==null){for(var f=[],p=this.getGraphs(),m=p.length,b=0;b=f.getRight()?p[0]+=Math.min(f.getX()-h.getX(),h.getRight()-f.getRight()):f.getX()<=h.getX()&&f.getRight()>=h.getRight()&&(p[0]+=Math.min(h.getX()-f.getX(),f.getRight()-h.getRight())),h.getY()<=f.getY()&&h.getBottom()>=f.getBottom()?p[1]+=Math.min(f.getY()-h.getY(),h.getBottom()-f.getBottom()):f.getY()<=h.getY()&&f.getBottom()>=h.getBottom()&&(p[1]+=Math.min(h.getY()-f.getY(),f.getBottom()-h.getBottom()));var _=Math.abs((f.getCenterY()-h.getCenterY())/(f.getCenterX()-h.getCenterX()));f.getCenterY()===h.getCenterY()&&f.getCenterX()===h.getCenterX()&&(_=1);var w=_*p[0],S=p[1]/_;p[0]w)return p[0]=m,p[1]=C,p[2]=_,p[3]=G,!1;if(b_)return p[0]=S,p[1]=b,p[2]=U,p[3]=w,!1;if(m<_)return p[0]=A,p[1]=b,p[2]=M,p[3]=w,!1}else{var Q=h.height/h.width,V=f.height/f.width,j=(w-b)/(_-m),ee=void 0,te=void 0,ne=void 0,se=void 0,ie=void 0,ge=void 0;if(-Q===j?m>_?(p[0]=k,p[1]=I,Y=!0):(p[0]=A,p[1]=C,Y=!0):Q===j&&(m>_?(p[0]=S,p[1]=C,Y=!0):(p[0]=N,p[1]=I,Y=!0)),-V===j?_>m?(p[2]=$,p[3]=G,W=!0):(p[2]=U,p[3]=F,W=!0):V===j&&(_>m?(p[2]=M,p[3]=F,W=!0):(p[2]=B,p[3]=G,W=!0)),Y&&W)return!1;if(m>_?b>w?(ee=this.getCardinalDirection(Q,j,4),te=this.getCardinalDirection(V,j,2)):(ee=this.getCardinalDirection(-Q,j,3),te=this.getCardinalDirection(-V,j,1)):b>w?(ee=this.getCardinalDirection(-Q,j,1),te=this.getCardinalDirection(-V,j,3)):(ee=this.getCardinalDirection(Q,j,2),te=this.getCardinalDirection(V,j,4)),!Y)switch(ee){case 1:se=C,ne=m+-P/j,p[0]=ne,p[1]=se;break;case 2:ne=N,se=b+L*j,p[0]=ne,p[1]=se;break;case 3:se=I,ne=m+P/j,p[0]=ne,p[1]=se;break;case 4:ne=k,se=b+-L*j,p[0]=ne,p[1]=se;break}if(!W)switch(te){case 1:ge=F,ie=_+-z/j,p[2]=ie,p[3]=ge;break;case 2:ie=B,ge=w+Z*j,p[2]=ie,p[3]=ge;break;case 3:ge=G,ie=_+z/j,p[2]=ie,p[3]=ge;break;case 4:ie=$,ge=w+-Z*j,p[2]=ie,p[3]=ge;break}}return!1},u.getCardinalDirection=function(h,f,p){return h>f?p:1+p%4},u.getIntersection=function(h,f,p,m){if(m==null)return this.getIntersection2(h,f,p);var b=h.x,_=h.y,w=f.x,S=f.y,C=p.x,A=p.y,k=m.x,I=m.y,N=void 0,L=void 0,P=void 0,M=void 0,F=void 0,U=void 0,$=void 0,G=void 0,B=void 0;return P=S-_,F=b-w,$=w*_-b*S,M=I-A,U=C-k,G=k*A-C*I,B=P*U-M*F,B===0?null:(N=(F*G-U*$)/B,L=(M*$-P*G)/B,new o(N,L))},u.angleOfVector=function(h,f,p,m){var b=void 0;return h!==p?(b=Math.atan((m-f)/(p-h)),p0?1:u<0?-1:0},o.floor=function(u){return u<0?Math.ceil(u):Math.floor(u)},o.ceil=function(u){return u<0?Math.floor(u):Math.ceil(u)},r.exports=o},function(r,a,s){function o(){}o.MAX_VALUE=2147483647,o.MIN_VALUE=-2147483648,r.exports=o},function(r,a,s){var o=function(){function b(_,w){for(var S=0;S"u"?"undefined":o(h);return h==null||f!="object"&&f!="function"},r.exports=u},function(r,a,s){function o(C){if(Array.isArray(C)){for(var A=0,k=Array(C.length);A0&&A;){for(P.push(F[0]);P.length>0&&A;){var U=P[0];P.splice(0,1),L.add(U);for(var $=U.getEdges(),N=0;N<$.length;N++){var G=$[N].getOtherEnd(U);if(M.get(U)!=G)if(!L.has(G))P.push(G),M.set(G,U);else{A=!1;break}}}if(!A)C=[];else{var B=[].concat(o(L));C.push(B);for(var N=0;N-1&&F.splice(z,1)}L=new Set,M=new Map}}return C},S.prototype.createDummyNodesForBendpoints=function(C){for(var A=[],k=C.source,I=this.graphManager.calcLowestCommonAncestor(C.source,C.target),N=0;N0){for(var I=this.edgeToDummyNodes.get(k),N=0;N=0&&A.splice(G,1);var B=M.getNeighborsList();B.forEach(function(Y){if(k.indexOf(Y)<0){var W=I.get(Y),Q=W-1;Q==1&&U.push(Y),I.set(Y,Q)}})}k=k.concat(U),(A.length==1||A.length==2)&&(N=!0,L=A[0])}return L},S.prototype.setGraphManager=function(C){this.graphManager=C},r.exports=S},function(r,a,s){function o(){}o.seed=1,o.x=0,o.nextDouble=function(){return o.x=Math.sin(o.seed++)*1e4,o.x-Math.floor(o.x)},r.exports=o},function(r,a,s){var o=s(4);function u(h,f){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}u.prototype.getWorldOrgX=function(){return this.lworldOrgX},u.prototype.setWorldOrgX=function(h){this.lworldOrgX=h},u.prototype.getWorldOrgY=function(){return this.lworldOrgY},u.prototype.setWorldOrgY=function(h){this.lworldOrgY=h},u.prototype.getWorldExtX=function(){return this.lworldExtX},u.prototype.setWorldExtX=function(h){this.lworldExtX=h},u.prototype.getWorldExtY=function(){return this.lworldExtY},u.prototype.setWorldExtY=function(h){this.lworldExtY=h},u.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},u.prototype.setDeviceOrgX=function(h){this.ldeviceOrgX=h},u.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},u.prototype.setDeviceOrgY=function(h){this.ldeviceOrgY=h},u.prototype.getDeviceExtX=function(){return this.ldeviceExtX},u.prototype.setDeviceExtX=function(h){this.ldeviceExtX=h},u.prototype.getDeviceExtY=function(){return this.ldeviceExtY},u.prototype.setDeviceExtY=function(h){this.ldeviceExtY=h},u.prototype.transformX=function(h){var f=0,p=this.lworldExtX;return p!=0&&(f=this.ldeviceOrgX+(h-this.lworldOrgX)*this.ldeviceExtX/p),f},u.prototype.transformY=function(h){var f=0,p=this.lworldExtY;return p!=0&&(f=this.ldeviceOrgY+(h-this.lworldOrgY)*this.ldeviceExtY/p),f},u.prototype.inverseTransformX=function(h){var f=0,p=this.ldeviceExtX;return p!=0&&(f=this.lworldOrgX+(h-this.ldeviceOrgX)*this.lworldExtX/p),f},u.prototype.inverseTransformY=function(h){var f=0,p=this.ldeviceExtY;return p!=0&&(f=this.lworldOrgY+(h-this.ldeviceOrgY)*this.lworldExtY/p),f},u.prototype.inverseTransformPoint=function(h){var f=new o(this.inverseTransformX(h.x),this.inverseTransformY(h.y));return f},r.exports=u},function(r,a,s){function o(w){if(Array.isArray(w)){for(var S=0,C=Array(w.length);Sh.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*h.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(w-h.ADAPTATION_LOWER_NODE_LIMIT)/(h.ADAPTATION_UPPER_NODE_LIMIT-h.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-h.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=h.MAX_NODE_DISPLACEMENT_INCREMENTAL):(w>h.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(h.COOLING_ADAPTATION_FACTOR,1-(w-h.ADAPTATION_LOWER_NODE_LIMIT)/(h.ADAPTATION_UPPER_NODE_LIMIT-h.ADAPTATION_LOWER_NODE_LIMIT)*(1-h.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=h.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},b.prototype.calcSpringForces=function(){for(var w=this.getAllEdges(),S,C=0;C0&&arguments[0]!==void 0?arguments[0]:!0,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C,A,k,I,N=this.getAllNodes(),L;if(this.useFRGridVariant)for(this.totalIterations%h.GRID_CALCULATION_CHECK_PERIOD==1&&w&&this.updateGrid(),L=new Set,C=0;CP||L>P)&&(w.gravitationForceX=-this.gravityConstant*k,w.gravitationForceY=-this.gravityConstant*I)):(P=S.getEstimatedSize()*this.compoundGravityRangeFactor,(N>P||L>P)&&(w.gravitationForceX=-this.gravityConstant*k*this.compoundGravityConstant,w.gravitationForceY=-this.gravityConstant*I*this.compoundGravityConstant))},b.prototype.isConverged=function(){var w,S=!1;return this.totalIterations>this.maxIterations/3&&(S=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),w=this.totalDisplacement=N.length||P>=N[0].length)){for(var M=0;Mb}}]),p}();r.exports=f},function(r,a,s){var o=function(){function f(p,m){for(var b=0;b2&&arguments[2]!==void 0?arguments[2]:1,_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;u(this,f),this.sequence1=p,this.sequence2=m,this.match_score=b,this.mismatch_penalty=_,this.gap_penalty=w,this.iMax=p.length+1,this.jMax=m.length+1,this.grid=new Array(this.iMax);for(var S=0;S=0;p--){var m=this.listeners[p];m.event===h&&m.callback===f&&this.listeners.splice(p,1)}},u.emit=function(h,f){for(var p=0;pm.coolingFactor*m.maxNodeDisplacement&&(this.displacementX=m.coolingFactor*m.maxNodeDisplacement*h.sign(this.displacementX)),Math.abs(this.displacementY)>m.coolingFactor*m.maxNodeDisplacement&&(this.displacementY=m.coolingFactor*m.maxNodeDisplacement*h.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),m.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},f.prototype.propogateDisplacementToChildren=function(m,b){for(var _=this.getChild().getNodes(),w,S=0;S<_.length;S++)w=_[S],w.getChild()==null?(w.moveBy(m,b),w.displacementX+=m,w.displacementY+=b):w.propogateDisplacementToChildren(m,b)},f.prototype.setPred1=function(m){this.pred1=m},f.prototype.getPred1=function(){return pred1},f.prototype.getPred2=function(){return pred2},f.prototype.setNext=function(m){this.next=m},f.prototype.getNext=function(){return next},f.prototype.setProcessed=function(m){this.processed=m},f.prototype.isProcessed=function(){return processed},a.exports=f},function(a,s,o){var u=o(0).FDLayout,h=o(4),f=o(3),p=o(5),m=o(2),b=o(1),_=o(0).FDLayoutConstants,w=o(0).LayoutConstants,S=o(0).Point,C=o(0).PointD,A=o(0).Layout,k=o(0).Integer,I=o(0).IGeometry,N=o(0).LGraph,L=o(0).Transform;function P(){u.call(this),this.toBeTiled={}}P.prototype=Object.create(u.prototype);for(var M in u)P[M]=u[M];P.prototype.newGraphManager=function(){var F=new h(this);return this.graphManager=F,F},P.prototype.newGraph=function(F){return new f(null,this.graphManager,F)},P.prototype.newNode=function(F){return new p(this.graphManager,F)},P.prototype.newEdge=function(F){return new m(null,null,F)},P.prototype.initParameters=function(){u.prototype.initParameters.call(this,arguments),this.isSubLayout||(b.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=b.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=b.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=_.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=_.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=_.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=_.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=_.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=_.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/_.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=_.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},P.prototype.layout=function(){var F=w.DEFAULT_CREATE_BENDS_AS_NEEDED;return F&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},P.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(b.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var U=new Set(this.getAllNodes()),$=this.nodesWithGravity.filter(function(Z){return U.has(Z)});this.graphManager.setAllNodesToApplyGravitation($)}}else{var F=this.getFlatForest();if(F.length>0)this.positionNodesRadially(F);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var U=new Set(this.getAllNodes()),$=this.nodesWithGravity.filter(function(G){return U.has(G)});this.graphManager.setAllNodesToApplyGravitation($),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},P.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%_.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var F=new Set(this.getAllNodes()),U=this.nodesWithGravity.filter(function(B){return F.has(B)});this.graphManager.setAllNodesToApplyGravitation(U),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=_.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=_.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var $=!this.isTreeGrowing&&!this.isGrowthFinished,G=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces($,G),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},P.prototype.getPositionsData=function(){for(var F=this.graphManager.getAllNodes(),U={},$=0;$1){var Y;for(Y=0;YG&&(G=Math.floor(z.y)),Z=Math.floor(z.x+b.DEFAULT_COMPONENT_SEPERATION)}this.transform(new C(w.WORLD_CENTER_X-z.x/2,w.WORLD_CENTER_Y-z.y/2))},P.radialLayout=function(F,U,$){var G=Math.max(this.maxDiagonalInTree(F),b.DEFAULT_RADIAL_SEPARATION);P.branchRadialLayout(U,null,0,359,0,G);var B=N.calculateBounds(F),Z=new L;Z.setDeviceOrgX(B.getMinX()),Z.setDeviceOrgY(B.getMinY()),Z.setWorldOrgX($.x),Z.setWorldOrgY($.y);for(var z=0;z1;){var ge=ie[0];ie.splice(0,1);var ce=j.indexOf(ge);ce>=0&&j.splice(ce,1),ne--,ee--}U!=null?se=(j.indexOf(ie[0])+1)%ne:se=0;for(var be=Math.abs(G-$)/ee,ve=se;te!=ee;ve=++ve%ne){var De=j[ve].getOtherEnd(F);if(De!=U){var ye=($+te*be)%360,Ee=(ye+be)%360;P.branchRadialLayout(De,F,ye,Ee,B+Z,Z),te++}}},P.maxDiagonalInTree=function(F){for(var U=k.MIN_VALUE,$=0;$U&&(U=B)}return U},P.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},P.prototype.groupZeroDegreeMembers=function(){var F=this,U={};this.memberGroups={},this.idToDummyNode={};for(var $=[],G=this.graphManager.getAllNodes(),B=0;B"u"&&(U[Y]=[]),U[Y]=U[Y].concat(Z)}Object.keys(U).forEach(function(W){if(U[W].length>1){var Q="DummyCompound_"+W;F.memberGroups[Q]=U[W];var V=U[W][0].getParent(),j=new p(F.graphManager);j.id=Q,j.paddingLeft=V.paddingLeft||0,j.paddingRight=V.paddingRight||0,j.paddingBottom=V.paddingBottom||0,j.paddingTop=V.paddingTop||0,F.idToDummyNode[Q]=j;var ee=F.getGraphManager().add(F.newGraph(),j),te=V.getChild();te.add(j);for(var ne=0;ne=0;F--){var U=this.compoundOrder[F],$=U.id,G=U.paddingLeft,B=U.paddingTop;this.adjustLocations(this.tiledMemberPack[$],U.rect.x,U.rect.y,G,B)}},P.prototype.repopulateZeroDegreeMembers=function(){var F=this,U=this.tiledZeroDegreePack;Object.keys(U).forEach(function($){var G=F.idToDummyNode[$],B=G.paddingLeft,Z=G.paddingTop;F.adjustLocations(U[$],G.rect.x,G.rect.y,B,Z)})},P.prototype.getToBeTiled=function(F){var U=F.id;if(this.toBeTiled[U]!=null)return this.toBeTiled[U];var $=F.getChild();if($==null)return this.toBeTiled[U]=!1,!1;for(var G=$.getNodes(),B=0;B0)return this.toBeTiled[U]=!1,!1;if(Z.getChild()==null){this.toBeTiled[Z.id]=!1;continue}if(!this.getToBeTiled(Z))return this.toBeTiled[U]=!1,!1}return this.toBeTiled[U]=!0,!0},P.prototype.getNodeDegree=function(F){F.id;for(var U=F.getEdges(),$=0,G=0;GW&&(W=V.rect.height)}$+=W+F.verticalPadding}},P.prototype.tileCompoundMembers=function(F,U){var $=this;this.tiledMemberPack=[],Object.keys(F).forEach(function(G){var B=U[G];$.tiledMemberPack[G]=$.tileNodes(F[G],B.paddingLeft+B.paddingRight),B.rect.width=$.tiledMemberPack[G].width,B.rect.height=$.tiledMemberPack[G].height})},P.prototype.tileNodes=function(F,U){var $=b.TILING_PADDING_VERTICAL,G=b.TILING_PADDING_HORIZONTAL,B={rows:[],rowWidth:[],rowHeight:[],width:0,height:U,verticalPadding:$,horizontalPadding:G};F.sort(function(Y,W){return Y.rect.width*Y.rect.height>W.rect.width*W.rect.height?-1:Y.rect.width*Y.rect.height0&&(z+=F.horizontalPadding),F.rowWidth[$]=z,F.width0&&(Y+=F.verticalPadding);var W=0;Y>F.rowHeight[$]&&(W=F.rowHeight[$],F.rowHeight[$]=Y,W=F.rowHeight[$]-W),F.height+=W,F.rows[$].push(U)},P.prototype.getShortestRowIndex=function(F){for(var U=-1,$=Number.MAX_VALUE,G=0;G$&&(U=G,$=F.rowWidth[G]);return U},P.prototype.canAddHorizontal=function(F,U,$){var G=this.getShortestRowIndex(F);if(G<0)return!0;var B=F.rowWidth[G];if(B+F.horizontalPadding+U<=F.width)return!0;var Z=0;F.rowHeight[G]<$&&G>0&&(Z=$+F.verticalPadding-F.rowHeight[G]);var z;F.width-B>=U+F.horizontalPadding?z=(F.height+Z)/(B+U+F.horizontalPadding):z=(F.height+Z)/F.width,Z=$+F.verticalPadding;var Y;return F.widthZ&&U!=$){G.splice(-1,1),F.rows[$].push(B),F.rowWidth[U]=F.rowWidth[U]-Z,F.rowWidth[$]=F.rowWidth[$]+Z,F.width=F.rowWidth[instance.getLongestRowIndex(F)];for(var z=Number.MIN_VALUE,Y=0;Yz&&(z=G[Y].height);U>0&&(z+=F.verticalPadding);var W=F.rowHeight[U]+F.rowHeight[$];F.rowHeight[U]=z,F.rowHeight[$]0)for(var te=B;te<=Z;te++)ee[0]+=this.grid[te][z-1].length+this.grid[te][z].length-1;if(Z0)for(var te=z;te<=Y;te++)ee[3]+=this.grid[B-1][te].length+this.grid[B][te].length-1;for(var ne=k.MAX_VALUE,se,ie,ge=0;ge0){var Y;Y=L.getGraphManager().add(L.newGraph(),$),this.processChildrenList(Y,U,L)}}},C.prototype.stop=function(){return this.stopped=!0,this};var k=function(N){N("layout","cose-bilkent",C)};typeof cytoscape<"u"&&k(cytoscape),a.exports=k}])})})(WVn);var c9i=WVn.exports;const KVn=O1(c9i);CS.use(KVn);function XVn(e,t){e.forEach(r=>{const a={id:r.id,labelText:r.label,height:r.height,width:r.width,padding:r.padding??0};Object.keys(r).forEach(s=>{["id","label","height","width","padding","x","y"].includes(s)||(a[s]=r[s])}),t.add({group:"nodes",data:a,position:{x:r.x??0,y:r.y??0}})})}X(XVn,"addNodes");function QVn(e,t){e.forEach(r=>{const a={id:r.id,source:r.start,target:r.end};Object.keys(r).forEach(s=>{["id","start","end"].includes(s)||(a[s]=r[s])}),t.add({group:"edges",data:a})})}X(QVn,"addEdges");function ZVn(e){return new Promise(t=>{const r=gn("body").append("div").attr("id","cy").attr("style","display:none"),a=CS({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});r.remove(),XVn(e.nodes,a),QVn(e.edges,a),a.nodes().forEach(function(o){o.layoutDimensions=()=>{const u=o.data();return{w:u.width,h:u.height}}});const s={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};a.layout(s).run(),a.ready(o=>{it.info("Cytoscape ready",o),t(a)})})}X(ZVn,"createCytoscapeInstance");function JVn(e){return e.nodes().map(t=>{const r=t.data(),a=t.position(),s={id:r.id,x:a.x,y:a.y};return Object.keys(r).forEach(o=>{o!=="id"&&(s[o]=r[o])}),s})}X(JVn,"extractPositionedNodes");function eYn(e){return e.edges().map(t=>{const r=t.data(),a=t._private.rscratch,s={id:r.id,source:r.source,target:r.target,startX:a.startX,startY:a.startY,midX:a.midX,midY:a.midY,endX:a.endX,endY:a.endY};return Object.keys(r).forEach(o=>{["id","source","target"].includes(o)||(s[o]=r[o])}),s})}X(eYn,"extractPositionedEdges");async function tYn(e,t){it.debug("Starting cose-bilkent layout algorithm");try{nYn(e);const r=await ZVn(e),a=JVn(r),s=eYn(r);return it.debug(`Layout completed: ${a.length} nodes, ${s.length} edges`),{nodes:a,edges:s}}catch(r){throw it.error("Error in cose-bilkent layout algorithm:",r),r}}X(tYn,"executeCoseBilkentLayout");function nYn(e){if(!e)throw new Error("Layout data is required");if(!e.config)throw new Error("Configuration is required in layout data");if(!e.rootNode)throw new Error("Root node is required");if(!e.nodes||!Array.isArray(e.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(e.edges))throw new Error("Edges array is required in layout data");return!0}X(nYn,"validateLayoutData");var u9i=X(async(e,t,{insertCluster:r,insertEdge:a,insertEdgeLabel:s,insertMarkers:o,insertNode:u,log:h,positionEdgeLabel:f},{algorithm:p})=>{const m={},b={},_=t.select("g");o(_,e.markers,e.type,e.diagramId);const w=_.insert("g").attr("class","subgraphs"),S=_.insert("g").attr("class","edgePaths"),C=_.insert("g").attr("class","edgeLabels"),A=_.insert("g").attr("class","nodes");h.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(e.nodes.map(async N=>{if(N.isGroup){const L={...N};b[N.id]=L,m[N.id]=L,await r(w,N)}else{const L={...N};m[N.id]=L;const P=await u(A,N,{config:e.config,dir:e.direction||"TB"}),M=P.node().getBBox();L.width=M.width,L.height=M.height,L.domId=P,h.debug(`Node ${N.id} dimensions: ${M.width}x${M.height}`)}})),h.debug("Running cose-bilkent layout algorithm");const k={...e,nodes:e.nodes.map(N=>{const L=m[N.id];return{...N,width:L.width,height:L.height}})},I=await tYn(k,e.config);h.debug("Positioning nodes based on layout results"),I.nodes.forEach(N=>{const L=m[N.id];L!=null&&L.domId&&(L.domId.attr("transform",`translate(${N.x}, ${N.y})`),L.x=N.x,L.y=N.y,h.debug(`Positioned node ${L.id} at center (${N.x}, ${N.y})`))}),I.edges.forEach(N=>{const L=e.edges.find(P=>P.id===N.id);L&&(L.points=[{x:N.startX,y:N.startY},{x:N.midX,y:N.midY},{x:N.endX,y:N.endY}])}),h.debug("Inserting and positioning edges"),await Promise.all(e.edges.map(async N=>{await s(C,N);const L=m[N.start??""],P=m[N.end??""];if(L&&P){const M=I.edges.find(F=>F.id===N.id);if(M){h.debug("APA01 positionedEdge",M);const F={...N},U=a(S,F,b,e.type,L,P,e.diagramId);f(F,U)}else{const F={...N,points:[{x:L.x||0,y:L.y||0},{x:P.x||0,y:P.y||0}]},U=a(S,F,b,e.type,L,P,e.diagramId);f(F,U)}}})),h.debug("Cose-bilkent rendering completed")},"render"),h9i=u9i;const d9i=Object.freeze(Object.defineProperty({__proto__:null,render:h9i},Symbol.toStringTag,{value:"Module"}));var vke=X((e,t)=>{const r=e.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.name&&r.attr("name",t.name),t.rx&&r.attr("rx",t.rx),t.ry&&r.attr("ry",t.ry),t.attrs!==void 0)for(const a in t.attrs)r.attr(a,t.attrs[a]);return t.class&&r.attr("class",t.class),r},"drawRect"),rYn=X((e,t)=>{const r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};vke(e,r).lower()},"drawBackgroundRect"),f9i=X((e,t)=>{const r=t.text.replace(DW," "),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(r),a},"drawText"),Pgt=X((e,t,r,a)=>{const s=e.append("image");s.attr("x",t),s.attr("y",r);const o=M9(a);s.attr("xlink:href",o)},"drawImage"),Bgt=X((e,t,r,a)=>{const s=e.append("use");s.attr("x",t),s.attr("y",r);const o=M9(a);s.attr("xlink:href",`#${o}`)},"drawEmbeddedImage"),Ww=X(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),Fgt=X(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),J3e=function(){var e=X(function(Ft,Je,ht,et){for(ht=ht||{},et=Ft.length;et--;ht[Ft[et]]=Je);return ht},"o"),t=[1,24],r=[1,25],a=[1,26],s=[1,27],o=[1,28],u=[1,63],h=[1,64],f=[1,65],p=[1,66],m=[1,67],b=[1,68],_=[1,69],w=[1,29],S=[1,30],C=[1,31],A=[1,32],k=[1,33],I=[1,34],N=[1,35],L=[1,36],P=[1,37],M=[1,38],F=[1,39],U=[1,40],$=[1,41],G=[1,42],B=[1,43],Z=[1,44],z=[1,45],Y=[1,46],W=[1,47],Q=[1,48],V=[1,50],j=[1,51],ee=[1,52],te=[1,53],ne=[1,54],se=[1,55],ie=[1,56],ge=[1,57],ce=[1,58],be=[1,59],ve=[1,60],De=[14,42],ye=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ee=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],he=[1,82],we=[1,83],Ce=[1,84],Ie=[1,85],Le=[12,14,42],Fe=[12,14,33,42],Ve=[12,14,33,42,76,77,79,80],Oe=[12,33],Dt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ot={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:X(function(Je,ht,et,qe,He,Ge,Ye){var Ae=Ge.length-1;switch(He){case 3:qe.setDirection("TB");break;case 4:qe.setDirection("BT");break;case 5:qe.setDirection("RL");break;case 6:qe.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:qe.setC4Type(Ge[Ae-3]);break;case 19:qe.setTitle(Ge[Ae].substring(6)),this.$=Ge[Ae].substring(6);break;case 20:qe.setAccDescription(Ge[Ae].substring(15)),this.$=Ge[Ae].substring(15);break;case 21:this.$=Ge[Ae].trim(),qe.setTitle(this.$);break;case 22:case 23:this.$=Ge[Ae].trim(),qe.setAccDescription(this.$);break;case 28:Ge[Ae].splice(2,0,"ENTERPRISE"),qe.addPersonOrSystemBoundary(...Ge[Ae]),this.$=Ge[Ae];break;case 29:Ge[Ae].splice(2,0,"SYSTEM"),qe.addPersonOrSystemBoundary(...Ge[Ae]),this.$=Ge[Ae];break;case 30:qe.addPersonOrSystemBoundary(...Ge[Ae]),this.$=Ge[Ae];break;case 31:Ge[Ae].splice(2,0,"CONTAINER"),qe.addContainerBoundary(...Ge[Ae]),this.$=Ge[Ae];break;case 32:qe.addDeploymentNode("node",...Ge[Ae]),this.$=Ge[Ae];break;case 33:qe.addDeploymentNode("nodeL",...Ge[Ae]),this.$=Ge[Ae];break;case 34:qe.addDeploymentNode("nodeR",...Ge[Ae]),this.$=Ge[Ae];break;case 35:qe.popBoundaryParseStack();break;case 39:qe.addPersonOrSystem("person",...Ge[Ae]),this.$=Ge[Ae];break;case 40:qe.addPersonOrSystem("external_person",...Ge[Ae]),this.$=Ge[Ae];break;case 41:qe.addPersonOrSystem("system",...Ge[Ae]),this.$=Ge[Ae];break;case 42:qe.addPersonOrSystem("system_db",...Ge[Ae]),this.$=Ge[Ae];break;case 43:qe.addPersonOrSystem("system_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 44:qe.addPersonOrSystem("external_system",...Ge[Ae]),this.$=Ge[Ae];break;case 45:qe.addPersonOrSystem("external_system_db",...Ge[Ae]),this.$=Ge[Ae];break;case 46:qe.addPersonOrSystem("external_system_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 47:qe.addContainer("container",...Ge[Ae]),this.$=Ge[Ae];break;case 48:qe.addContainer("container_db",...Ge[Ae]),this.$=Ge[Ae];break;case 49:qe.addContainer("container_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 50:qe.addContainer("external_container",...Ge[Ae]),this.$=Ge[Ae];break;case 51:qe.addContainer("external_container_db",...Ge[Ae]),this.$=Ge[Ae];break;case 52:qe.addContainer("external_container_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 53:qe.addComponent("component",...Ge[Ae]),this.$=Ge[Ae];break;case 54:qe.addComponent("component_db",...Ge[Ae]),this.$=Ge[Ae];break;case 55:qe.addComponent("component_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 56:qe.addComponent("external_component",...Ge[Ae]),this.$=Ge[Ae];break;case 57:qe.addComponent("external_component_db",...Ge[Ae]),this.$=Ge[Ae];break;case 58:qe.addComponent("external_component_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 60:qe.addRel("rel",...Ge[Ae]),this.$=Ge[Ae];break;case 61:qe.addRel("birel",...Ge[Ae]),this.$=Ge[Ae];break;case 62:qe.addRel("rel_u",...Ge[Ae]),this.$=Ge[Ae];break;case 63:qe.addRel("rel_d",...Ge[Ae]),this.$=Ge[Ae];break;case 64:qe.addRel("rel_l",...Ge[Ae]),this.$=Ge[Ae];break;case 65:qe.addRel("rel_r",...Ge[Ae]),this.$=Ge[Ae];break;case 66:qe.addRel("rel_b",...Ge[Ae]),this.$=Ge[Ae];break;case 67:Ge[Ae].splice(0,1),qe.addRel("rel",...Ge[Ae]),this.$=Ge[Ae];break;case 68:qe.updateElStyle("update_el_style",...Ge[Ae]),this.$=Ge[Ae];break;case 69:qe.updateRelStyle("update_rel_style",...Ge[Ae]),this.$=Ge[Ae];break;case 70:qe.updateLayoutConfig("update_layout_config",...Ge[Ae]),this.$=Ge[Ae];break;case 71:this.$=[Ge[Ae]];break;case 72:Ge[Ae].unshift(Ge[Ae-1]),this.$=Ge[Ae];break;case 73:case 75:this.$=Ge[Ae].trim();break;case 74:let Xe={};Xe[Ge[Ae-1].trim()]=Ge[Ae].trim(),this.$=Xe;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:r,24:a,26:s,28:o,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{13:70,19:20,20:21,21:22,22:t,23:r,24:a,26:s,28:o,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{13:71,19:20,20:21,21:22,22:t,23:r,24:a,26:s,28:o,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{13:72,19:20,20:21,21:22,22:t,23:r,24:a,26:s,28:o,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{13:73,19:20,20:21,21:22,22:t,23:r,24:a,26:s,28:o,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{14:[1,74]},e(De,[2,13],{43:23,29:49,30:61,32:62,20:75,34:u,36:h,37:f,38:p,39:m,40:b,41:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve}),e(De,[2,14]),e(ye,[2,16],{12:[1,76]}),e(De,[2,36],{12:[1,77]}),e(Ee,[2,19]),e(Ee,[2,20]),{25:[1,78]},{27:[1,79]},e(Ee,[2,23]),{35:80,75:81,76:he,77:we,79:Ce,80:Ie},{35:86,75:81,76:he,77:we,79:Ce,80:Ie},{35:87,75:81,76:he,77:we,79:Ce,80:Ie},{35:88,75:81,76:he,77:we,79:Ce,80:Ie},{35:89,75:81,76:he,77:we,79:Ce,80:Ie},{35:90,75:81,76:he,77:we,79:Ce,80:Ie},{35:91,75:81,76:he,77:we,79:Ce,80:Ie},{35:92,75:81,76:he,77:we,79:Ce,80:Ie},{35:93,75:81,76:he,77:we,79:Ce,80:Ie},{35:94,75:81,76:he,77:we,79:Ce,80:Ie},{35:95,75:81,76:he,77:we,79:Ce,80:Ie},{35:96,75:81,76:he,77:we,79:Ce,80:Ie},{35:97,75:81,76:he,77:we,79:Ce,80:Ie},{35:98,75:81,76:he,77:we,79:Ce,80:Ie},{35:99,75:81,76:he,77:we,79:Ce,80:Ie},{35:100,75:81,76:he,77:we,79:Ce,80:Ie},{35:101,75:81,76:he,77:we,79:Ce,80:Ie},{35:102,75:81,76:he,77:we,79:Ce,80:Ie},{35:103,75:81,76:he,77:we,79:Ce,80:Ie},{35:104,75:81,76:he,77:we,79:Ce,80:Ie},e(Le,[2,59]),{35:105,75:81,76:he,77:we,79:Ce,80:Ie},{35:106,75:81,76:he,77:we,79:Ce,80:Ie},{35:107,75:81,76:he,77:we,79:Ce,80:Ie},{35:108,75:81,76:he,77:we,79:Ce,80:Ie},{35:109,75:81,76:he,77:we,79:Ce,80:Ie},{35:110,75:81,76:he,77:we,79:Ce,80:Ie},{35:111,75:81,76:he,77:we,79:Ce,80:Ie},{35:112,75:81,76:he,77:we,79:Ce,80:Ie},{35:113,75:81,76:he,77:we,79:Ce,80:Ie},{35:114,75:81,76:he,77:we,79:Ce,80:Ie},{35:115,75:81,76:he,77:we,79:Ce,80:Ie},{20:116,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{12:[1,118],33:[1,117]},{35:119,75:81,76:he,77:we,79:Ce,80:Ie},{35:120,75:81,76:he,77:we,79:Ce,80:Ie},{35:121,75:81,76:he,77:we,79:Ce,80:Ie},{35:122,75:81,76:he,77:we,79:Ce,80:Ie},{35:123,75:81,76:he,77:we,79:Ce,80:Ie},{35:124,75:81,76:he,77:we,79:Ce,80:Ie},{35:125,75:81,76:he,77:we,79:Ce,80:Ie},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(De,[2,15]),e(ye,[2,17],{21:22,19:130,22:t,23:r,24:a,26:s,28:o}),e(De,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:r,24:a,26:s,28:o,34:u,36:h,37:f,38:p,39:m,40:b,41:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve}),e(Ee,[2,21]),e(Ee,[2,22]),e(Le,[2,39]),e(Fe,[2,71],{75:81,35:132,76:he,77:we,79:Ce,80:Ie}),e(Ve,[2,73]),{78:[1,133]},e(Ve,[2,75]),e(Ve,[2,76]),e(Le,[2,40]),e(Le,[2,41]),e(Le,[2,42]),e(Le,[2,43]),e(Le,[2,44]),e(Le,[2,45]),e(Le,[2,46]),e(Le,[2,47]),e(Le,[2,48]),e(Le,[2,49]),e(Le,[2,50]),e(Le,[2,51]),e(Le,[2,52]),e(Le,[2,53]),e(Le,[2,54]),e(Le,[2,55]),e(Le,[2,56]),e(Le,[2,57]),e(Le,[2,58]),e(Le,[2,60]),e(Le,[2,61]),e(Le,[2,62]),e(Le,[2,63]),e(Le,[2,64]),e(Le,[2,65]),e(Le,[2,66]),e(Le,[2,67]),e(Le,[2,68]),e(Le,[2,69]),e(Le,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(Oe,[2,28]),e(Oe,[2,29]),e(Oe,[2,30]),e(Oe,[2,31]),e(Oe,[2,32]),e(Oe,[2,33]),e(Oe,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(ye,[2,18]),e(De,[2,38]),e(Fe,[2,72]),e(Ve,[2,74]),e(Le,[2,24]),e(Le,[2,35]),e(Dt,[2,25]),e(Dt,[2,26],{12:[1,138]}),e(Dt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:X(function(Je,ht){if(ht.recoverable)this.trace(Je);else{var et=new Error(Je);throw et.hash=ht,et}},"parseError"),parse:X(function(Je){var ht=this,et=[0],qe=[],He=[null],Ge=[],Ye=this.table,Ae="",Xe=0,fe=0,Qe=2,Ke=1,mt=Ge.slice.call(arguments,1),lt=Object.create(this.lexer),$t={yy:{}};for(var Ut in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ut)&&($t.yy[Ut]=this.yy[Ut]);lt.setInput(Je,$t.yy),$t.yy.lexer=lt,$t.yy.parser=this,typeof lt.yylloc>"u"&&(lt.yylloc={});var Jt=lt.yylloc;Ge.push(Jt);var wn=lt.options&<.options.ranges;typeof $t.yy.parseError=="function"?this.parseError=$t.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Vn(Cr){et.length=et.length-2*Cr,He.length=He.length-Cr,Ge.length=Ge.length-Cr}X(Vn,"popStack");function Wn(){var Cr;return Cr=qe.pop()||lt.lex()||Ke,typeof Cr!="number"&&(Cr instanceof Array&&(qe=Cr,Cr=qe.pop()),Cr=ht.symbols_[Cr]||Cr),Cr}X(Wn,"lex");for(var Dn,zn,vn,Cn,Ar={},ur,On,Ir,Ln;;){if(zn=et[et.length-1],this.defaultActions[zn]?vn=this.defaultActions[zn]:((Dn===null||typeof Dn>"u")&&(Dn=Wn()),vn=Ye[zn]&&Ye[zn][Dn]),typeof vn>"u"||!vn.length||!vn[0]){var pr="";Ln=[];for(ur in Ye[zn])this.terminals_[ur]&&ur>Qe&&Ln.push("'"+this.terminals_[ur]+"'");lt.showPosition?pr="Parse error on line "+(Xe+1)+`: `+lt.showPosition()+` Expecting `+Ln.join(", ")+", got '"+(this.terminals_[Dn]||Dn)+"'":pr="Parse error on line "+(Xe+1)+": Unexpected "+(Dn==Ke?"end of input":"'"+(this.terminals_[Dn]||Dn)+"'"),this.parseError(pr,{text:lt.match,token:this.terminals_[Dn]||Dn,line:lt.yylineno,loc:Jt,expected:Ln})}if(vn[0]instanceof Array&&vn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+zn+", token: "+Dn);switch(vn[0]){case 1:et.push(Dn),He.push(lt.yytext),Ge.push(lt.yylloc),et.push(vn[1]),Dn=null,fe=lt.yyleng,Ae=lt.yytext,Xe=lt.yylineno,Jt=lt.yylloc;break;case 2:if(On=this.productions_[vn[1]][1],Ar.$=He[He.length-On],Ar._$={first_line:Ge[Ge.length-(On||1)].first_line,last_line:Ge[Ge.length-1].last_line,first_column:Ge[Ge.length-(On||1)].first_column,last_column:Ge[Ge.length-1].last_column},wn&&(Ar._$.range=[Ge[Ge.length-(On||1)].range[0],Ge[Ge.length-1].range[1]]),Cn=this.performAction.apply(Ar,[Ae,fe,Xe,$t.yy,vn[1],He,Ge].concat(mt)),typeof Cn<"u")return Cn;On&&(et=et.slice(0,-1*On*2),He=He.slice(0,-1*On),Ge=Ge.slice(0,-1*On)),et.push(this.productions_[vn[1]][0]),He.push(Ar.$),Ge.push(Ar._$),Ir=Ye[et[et.length-2]][et[et.length-1]],et.push(Ir);break;case 3:return!0}}return!0},"parse")},sn=function(){var Ft={EOF:1,parseError:X(function(ht,et){if(this.yy.parser)this.yy.parser.parseError(ht,et);else throw new Error(ht)},"parseError"),setInput:X(function(Je,ht){return this.yy=ht||this.yy||{},this._input=Je,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:X(function(){var Je=this._input[0];this.yytext+=Je,this.yyleng++,this.offset++,this.match+=Je,this.matched+=Je;var ht=Je.match(/(?:\r\n?|\n).*/g);return ht?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Je},"input"),unput:X(function(Je){var ht=Je.length,et=Je.split(/(?:\r\n?|\n)/g);this._input=Je+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ht),this.offset-=ht;var qe=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),et.length-1&&(this.yylineno-=et.length-1);var He=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:et?(et.length===qe.length?this.yylloc.first_column:0)+qe[qe.length-et.length].length-et[0].length:this.yylloc.first_column-ht},this.options.ranges&&(this.yylloc.range=[He[0],He[0]+this.yyleng-ht]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(Je){this.unput(this.match.slice(Je))},"less"),pastInput:X(function(){var Je=this.matched.substr(0,this.matched.length-this.match.length);return(Je.length>20?"...":"")+Je.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var Je=this.match;return Je.length<20&&(Je+=this._input.substr(0,20-Je.length)),(Je.substr(0,20)+(Je.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var Je=this.pastInput(),ht=new Array(Je.length+1).join("-");return Je+this.upcomingInput()+` `+ht+"^"},"showPosition"),test_match:X(function(Je,ht){var et,qe,He;if(this.options.backtrack_lexer&&(He={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(He.yylloc.range=this.yylloc.range.slice(0))),qe=Je[0].match(/(?:\r\n?|\n).*/g),qe&&(this.yylineno+=qe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:qe?qe[qe.length-1].length-qe[qe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Je[0].length},this.yytext+=Je[0],this.match+=Je[0],this.matches=Je,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Je[0].length),this.matched+=Je[0],et=this.performAction.call(this,this.yy,this,ht,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),et)return et;if(this._backtrack){for(var Ge in He)this[Ge]=He[Ge];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Je,ht,et,qe;this._more||(this.yytext="",this.match="");for(var He=this._currentRules(),Ge=0;Geht[0].length)){if(ht=et,qe=Ge,this.options.backtrack_lexer){if(Je=this.test_match(et,He[Ge]),Je!==!1)return Je;if(this._backtrack){ht=!1;continue}else return!1}else if(!this.options.flex)break}return ht?(Je=this.test_match(ht,He[qe]),Je!==!1?Je:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var ht=this.next();return ht||this.lex()},"lex"),begin:X(function(ht){this.conditionStack.push(ht)},"begin"),popState:X(function(){var ht=this.conditionStack.length-1;return ht>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(ht){return ht=this.conditionStack.length-1-Math.abs(ht||0),ht>=0?this.conditionStack[ht]:"INITIAL"},"topState"),pushState:X(function(ht){this.begin(ht)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:X(function(ht,et,qe,He){switch(qe){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:return this.begin("node"),39;case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:return this.begin("rel_u"),66;case 53:return this.begin("rel_u"),66;case 54:return this.begin("rel_d"),67;case 55:return this.begin("rel_d"),67;case 56:return this.begin("rel_l"),68;case 57:return this.begin("rel_l"),68;case 58:return this.begin("rel_r"),69;case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return Ft}();ot.lexer=sn;function Kt(){this.yy={}}return X(Kt,"Parser"),Kt.prototype=ot,ot.Parser=Kt,new Kt}();J3e.parser=J3e;var p9i=J3e,cT=[],DO=[""],rv="global",J3="",wA=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Qoe=[],$gt="",Ugt=!1,eTe=4,tTe=2,iYn,g9i=X(function(){return iYn},"getC4Type"),m9i=X(function(e){iYn=Ic(e,nn())},"setC4Type"),b9i=X(function(e,t,r,a,s,o,u,h,f){if(e==null||t===void 0||t===null||r===void 0||r===null||a===void 0||a===null)return;let p={};const m=Qoe.find(b=>b.from===t&&b.to===r);if(m?p=m:Qoe.push(p),p.type=e,p.from=t,p.to=r,p.label={text:a},s==null)p.techn={text:""};else if(typeof s=="object"){let[b,_]=Object.entries(s)[0];p[b]={text:_}}else p.techn={text:s};if(o==null)p.descr={text:""};else if(typeof o=="object"){let[b,_]=Object.entries(o)[0];p[b]={text:_}}else p.descr={text:o};if(typeof u=="object"){let[b,_]=Object.entries(u)[0];p[b]=_}else p.sprite=u;if(typeof h=="object"){let[b,_]=Object.entries(h)[0];p[b]=_}else p.tags=h;if(typeof f=="object"){let[b,_]=Object.entries(f)[0];p[b]=_}else p.link=f;p.wrap=X9()},"addRel"),y9i=X(function(e,t,r,a,s,o,u){if(t===null||r===null)return;let h={};const f=cT.find(p=>p.alias===t);if(f&&t===f.alias?h=f:(h.alias=t,cT.push(h)),r==null?h.label={text:""}:h.label={text:r},a==null)h.descr={text:""};else if(typeof a=="object"){let[p,m]=Object.entries(a)[0];h[p]={text:m}}else h.descr={text:a};if(typeof s=="object"){let[p,m]=Object.entries(s)[0];h[p]=m}else h.sprite=s;if(typeof o=="object"){let[p,m]=Object.entries(o)[0];h[p]=m}else h.tags=o;if(typeof u=="object"){let[p,m]=Object.entries(u)[0];h[p]=m}else h.link=u;h.typeC4Shape={text:e},h.parentBoundary=rv,h.wrap=X9()},"addPersonOrSystem"),v9i=X(function(e,t,r,a,s,o,u,h){if(t===null||r===null)return;let f={};const p=cT.find(m=>m.alias===t);if(p&&t===p.alias?f=p:(f.alias=t,cT.push(f)),r==null?f.label={text:""}:f.label={text:r},a==null)f.techn={text:""};else if(typeof a=="object"){let[m,b]=Object.entries(a)[0];f[m]={text:b}}else f.techn={text:a};if(s==null)f.descr={text:""};else if(typeof s=="object"){let[m,b]=Object.entries(s)[0];f[m]={text:b}}else f.descr={text:s};if(typeof o=="object"){let[m,b]=Object.entries(o)[0];f[m]=b}else f.sprite=o;if(typeof u=="object"){let[m,b]=Object.entries(u)[0];f[m]=b}else f.tags=u;if(typeof h=="object"){let[m,b]=Object.entries(h)[0];f[m]=b}else f.link=h;f.wrap=X9(),f.typeC4Shape={text:e},f.parentBoundary=rv},"addContainer"),_9i=X(function(e,t,r,a,s,o,u,h){if(t===null||r===null)return;let f={};const p=cT.find(m=>m.alias===t);if(p&&t===p.alias?f=p:(f.alias=t,cT.push(f)),r==null?f.label={text:""}:f.label={text:r},a==null)f.techn={text:""};else if(typeof a=="object"){let[m,b]=Object.entries(a)[0];f[m]={text:b}}else f.techn={text:a};if(s==null)f.descr={text:""};else if(typeof s=="object"){let[m,b]=Object.entries(s)[0];f[m]={text:b}}else f.descr={text:s};if(typeof o=="object"){let[m,b]=Object.entries(o)[0];f[m]=b}else f.sprite=o;if(typeof u=="object"){let[m,b]=Object.entries(u)[0];f[m]=b}else f.tags=u;if(typeof h=="object"){let[m,b]=Object.entries(h)[0];f[m]=b}else f.link=h;f.wrap=X9(),f.typeC4Shape={text:e},f.parentBoundary=rv},"addComponent"),w9i=X(function(e,t,r,a,s){if(e===null||t===null)return;let o={};const u=wA.find(h=>h.alias===e);if(u&&e===u.alias?o=u:(o.alias=e,wA.push(o)),t==null?o.label={text:""}:o.label={text:t},r==null)o.type={text:"system"};else if(typeof r=="object"){let[h,f]=Object.entries(r)[0];o[h]={text:f}}else o.type={text:r};if(typeof a=="object"){let[h,f]=Object.entries(a)[0];o[h]=f}else o.tags=a;if(typeof s=="object"){let[h,f]=Object.entries(s)[0];o[h]=f}else o.link=s;o.parentBoundary=rv,o.wrap=X9(),J3=rv,rv=e,DO.push(J3)},"addPersonOrSystemBoundary"),E9i=X(function(e,t,r,a,s){if(e===null||t===null)return;let o={};const u=wA.find(h=>h.alias===e);if(u&&e===u.alias?o=u:(o.alias=e,wA.push(o)),t==null?o.label={text:""}:o.label={text:t},r==null)o.type={text:"container"};else if(typeof r=="object"){let[h,f]=Object.entries(r)[0];o[h]={text:f}}else o.type={text:r};if(typeof a=="object"){let[h,f]=Object.entries(a)[0];o[h]=f}else o.tags=a;if(typeof s=="object"){let[h,f]=Object.entries(s)[0];o[h]=f}else o.link=s;o.parentBoundary=rv,o.wrap=X9(),J3=rv,rv=e,DO.push(J3)},"addContainerBoundary"),x9i=X(function(e,t,r,a,s,o,u,h){if(t===null||r===null)return;let f={};const p=wA.find(m=>m.alias===t);if(p&&t===p.alias?f=p:(f.alias=t,wA.push(f)),r==null?f.label={text:""}:f.label={text:r},a==null)f.type={text:"node"};else if(typeof a=="object"){let[m,b]=Object.entries(a)[0];f[m]={text:b}}else f.type={text:a};if(s==null)f.descr={text:""};else if(typeof s=="object"){let[m,b]=Object.entries(s)[0];f[m]={text:b}}else f.descr={text:s};if(typeof u=="object"){let[m,b]=Object.entries(u)[0];f[m]=b}else f.tags=u;if(typeof h=="object"){let[m,b]=Object.entries(h)[0];f[m]=b}else f.link=h;f.nodeType=e,f.parentBoundary=rv,f.wrap=X9(),J3=rv,rv=t,DO.push(J3)},"addDeploymentNode"),S9i=X(function(){rv=J3,DO.pop(),J3=DO.pop(),DO.push(J3)},"popBoundaryParseStack"),T9i=X(function(e,t,r,a,s,o,u,h,f,p,m){let b=cT.find(_=>_.alias===t);if(!(b===void 0&&(b=wA.find(_=>_.alias===t),b===void 0))){if(r!=null)if(typeof r=="object"){let[_,w]=Object.entries(r)[0];b[_]=w}else b.bgColor=r;if(a!=null)if(typeof a=="object"){let[_,w]=Object.entries(a)[0];b[_]=w}else b.fontColor=a;if(s!=null)if(typeof s=="object"){let[_,w]=Object.entries(s)[0];b[_]=w}else b.borderColor=s;if(o!=null)if(typeof o=="object"){let[_,w]=Object.entries(o)[0];b[_]=w}else b.shadowing=o;if(u!=null)if(typeof u=="object"){let[_,w]=Object.entries(u)[0];b[_]=w}else b.shape=u;if(h!=null)if(typeof h=="object"){let[_,w]=Object.entries(h)[0];b[_]=w}else b.sprite=h;if(f!=null)if(typeof f=="object"){let[_,w]=Object.entries(f)[0];b[_]=w}else b.techn=f;if(p!=null)if(typeof p=="object"){let[_,w]=Object.entries(p)[0];b[_]=w}else b.legendText=p;if(m!=null)if(typeof m=="object"){let[_,w]=Object.entries(m)[0];b[_]=w}else b.legendSprite=m}},"updateElStyle"),C9i=X(function(e,t,r,a,s,o,u){const h=Qoe.find(f=>f.from===t&&f.to===r);if(h!==void 0){if(a!=null)if(typeof a=="object"){let[f,p]=Object.entries(a)[0];h[f]=p}else h.textColor=a;if(s!=null)if(typeof s=="object"){let[f,p]=Object.entries(s)[0];h[f]=p}else h.lineColor=s;if(o!=null)if(typeof o=="object"){let[f,p]=Object.entries(o)[0];h[f]=parseInt(p)}else h.offsetX=parseInt(o);if(u!=null)if(typeof u=="object"){let[f,p]=Object.entries(u)[0];h[f]=parseInt(p)}else h.offsetY=parseInt(u)}},"updateRelStyle"),A9i=X(function(e,t,r){let a=eTe,s=tTe;if(typeof t=="object"){const o=Object.values(t)[0];a=parseInt(o)}else a=parseInt(t);if(typeof r=="object"){const o=Object.values(r)[0];s=parseInt(o)}else s=parseInt(r);a>=1&&(eTe=a),s>=1&&(tTe=s)},"updateLayoutConfig"),k9i=X(function(){return eTe},"getC4ShapeInRow"),R9i=X(function(){return tTe},"getC4BoundaryInRow"),I9i=X(function(){return rv},"getCurrentBoundaryParse"),N9i=X(function(){return J3},"getParentBoundaryParse"),aYn=X(function(e){return e==null?cT:cT.filter(t=>t.parentBoundary===e)},"getC4ShapeArray"),O9i=X(function(e){return cT.find(t=>t.alias===e)},"getC4Shape"),L9i=X(function(e){return Object.keys(aYn(e))},"getC4ShapeKeys"),sYn=X(function(e){return e==null?wA:wA.filter(t=>t.parentBoundary===e)},"getBoundaries"),D9i=sYn,M9i=X(function(){return Qoe},"getRels"),P9i=X(function(){return $gt},"getTitle"),B9i=X(function(e){Ugt=e},"setWrap"),X9=X(function(){return Ugt},"autoWrap"),F9i=X(function(){cT=[],wA=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],J3="",rv="global",DO=[""],Qoe=[],DO=[""],$gt="",Ugt=!1,eTe=4,tTe=2},"clear"),$9i={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},U9i={FILLED:0,OPEN:1},z9i={LEFTOF:0,RIGHTOF:1,OVER:2},G9i=X(function(e){$gt=Ic(e,nn())},"setTitle"),wct={addPersonOrSystem:y9i,addPersonOrSystemBoundary:w9i,addContainer:v9i,addContainerBoundary:E9i,addComponent:_9i,addDeploymentNode:x9i,popBoundaryParseStack:S9i,addRel:b9i,updateElStyle:T9i,updateRelStyle:C9i,updateLayoutConfig:A9i,autoWrap:X9,setWrap:B9i,getC4ShapeArray:aYn,getC4Shape:O9i,getC4ShapeKeys:L9i,getBoundaries:sYn,getBoundarys:D9i,getCurrentBoundaryParse:I9i,getParentBoundaryParse:N9i,getRels:M9i,getTitle:P9i,getC4Type:g9i,getC4ShapeInRow:k9i,getC4BoundaryInRow:R9i,setAccTitle:N1,getAccTitle:Mp,getAccDescription:Bp,setAccDescription:Pp,getConfig:X(()=>nn().c4,"getConfig"),clear:F9i,LINETYPE:$9i,ARROWTYPE:U9i,PLACEMENT:z9i,setTitle:G9i,setC4Type:m9i},zgt=X(function(e,t){return vke(e,t)},"drawRect"),oYn=X(function(e,t,r,a,s,o){const u=e.append("image");u.attr("width",t),u.attr("height",r),u.attr("x",a),u.attr("y",s);let h=o.startsWith("data:image/png;base64")?o:M9(o);u.attr("xlink:href",h)},"drawImage"),q9i=X((e,t,r)=>{const a=e.append("g");let s=0;for(let o of t){let u=o.textColor?o.textColor:"#444444",h=o.lineColor?o.lineColor:"#444444",f=o.offsetX?parseInt(o.offsetX):0,p=o.offsetY?parseInt(o.offsetY):0,m="";if(s===0){let _=a.append("line");_.attr("x1",o.startPoint.x),_.attr("y1",o.startPoint.y),_.attr("x2",o.endPoint.x),_.attr("y2",o.endPoint.y),_.attr("stroke-width","1"),_.attr("stroke",h),_.style("fill","none"),o.type!=="rel_b"&&_.attr("marker-end","url("+m+"#arrowhead)"),(o.type==="birel"||o.type==="rel_b")&&_.attr("marker-start","url("+m+"#arrowend)"),s=-1}else{let _=a.append("path");_.attr("fill","none").attr("stroke-width","1").attr("stroke",h).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",o.startPoint.x).replaceAll("starty",o.startPoint.y).replaceAll("controlx",o.startPoint.x+(o.endPoint.x-o.startPoint.x)/2-(o.endPoint.x-o.startPoint.x)/4).replaceAll("controly",o.startPoint.y+(o.endPoint.y-o.startPoint.y)/2).replaceAll("stopx",o.endPoint.x).replaceAll("stopy",o.endPoint.y)),o.type!=="rel_b"&&_.attr("marker-end","url("+m+"#arrowhead)"),(o.type==="birel"||o.type==="rel_b")&&_.attr("marker-start","url("+m+"#arrowend)")}let b=r.messageFont();R7(r)(o.label.text,a,Math.min(o.startPoint.x,o.endPoint.x)+Math.abs(o.endPoint.x-o.startPoint.x)/2+f,Math.min(o.startPoint.y,o.endPoint.y)+Math.abs(o.endPoint.y-o.startPoint.y)/2+p,o.label.width,o.label.height,{fill:u},b),o.techn&&o.techn.text!==""&&(b=r.messageFont(),R7(r)("["+o.techn.text+"]",a,Math.min(o.startPoint.x,o.endPoint.x)+Math.abs(o.endPoint.x-o.startPoint.x)/2+f,Math.min(o.startPoint.y,o.endPoint.y)+Math.abs(o.endPoint.y-o.startPoint.y)/2+r.messageFontSize+5+p,Math.max(o.label.width,o.techn.width),o.techn.height,{fill:u,"font-style":"italic"},b))}},"drawRels"),H9i=X(function(e,t,r){const a=e.append("g");let s=t.bgColor?t.bgColor:"none",o=t.borderColor?t.borderColor:"#444444",u=t.fontColor?t.fontColor:"black",h={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(h={"stroke-width":1});let f={x:t.x,y:t.y,fill:s,stroke:o,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:h};zgt(a,f);let p=r.boundaryFont();p.fontWeight="bold",p.fontSize=p.fontSize+2,p.fontColor=u,R7(r)(t.label.text,a,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},p),t.type&&t.type.text!==""&&(p=r.boundaryFont(),p.fontColor=u,R7(r)(t.type.text,a,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},p)),t.descr&&t.descr.text!==""&&(p=r.boundaryFont(),p.fontSize=p.fontSize-2,p.fontColor=u,R7(r)(t.descr.text,a,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},p))},"drawBoundary"),V9i=X(function(e,t,r){var b;let a=t.bgColor?t.bgColor:r[t.typeC4Shape.text+"_bg_color"],s=t.borderColor?t.borderColor:r[t.typeC4Shape.text+"_border_color"],o=t.fontColor?t.fontColor:"#FFFFFF",u="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":u="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":u="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}const h=e.append("g");h.attr("class","person-man");const f=Ww();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":f.x=t.x,f.y=t.y,f.fill=a,f.width=t.width,f.height=t.height,f.stroke=s,f.rx=2.5,f.ry=2.5,f.attrs={"stroke-width":.5},zgt(h,f);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":h.append("path").attr("fill",a).attr("stroke-width","0.5").attr("stroke",s).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),h.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",s).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":h.append("path").attr("fill",a).attr("stroke-width","0.5").attr("stroke",s).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),h.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",s).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2));break}let p=eLi(r,t.typeC4Shape.text);switch(h.append("text").attr("fill",o).attr("font-family",p.fontFamily).attr("font-size",p.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":oYn(h,48,48,t.x+t.width/2-24,t.y+t.image.Y,u);break}let m=r[t.typeC4Shape.text+"Font"]();return m.fontWeight="bold",m.fontSize=m.fontSize+2,m.fontColor=o,R7(r)(t.label.text,h,t.x,t.y+t.label.Y,t.width,t.height,{fill:o},m),m=r[t.typeC4Shape.text+"Font"](),m.fontColor=o,t.techn&&((b=t.techn)==null?void 0:b.text)!==""?R7(r)(t.techn.text,h,t.x,t.y+t.techn.Y,t.width,t.height,{fill:o,"font-style":"italic"},m):t.type&&t.type.text!==""&&R7(r)(t.type.text,h,t.x,t.y+t.type.Y,t.width,t.height,{fill:o,"font-style":"italic"},m),t.descr&&t.descr.text!==""&&(m=r.personFont(),m.fontColor=o,R7(r)(t.descr.text,h,t.x,t.y+t.descr.Y,t.width,t.height,{fill:o},m)),t.height},"drawC4Shape"),Y9i=X(function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),j9i=X(function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),W9i=X(function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),K9i=X(function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),X9i=X(function(e){e.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),Q9i=X(function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),Z9i=X(function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertDynamicNumber"),J9i=X(function(e){const r=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);r.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),r.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),eLi=X((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"getC4ShapeFont"),R7=function(){function e(s,o,u,h,f,p,m){const b=o.append("text").attr("x",u+f/2).attr("y",h+p/2+5).style("text-anchor","middle").text(s);a(b,m)}X(e,"byText");function t(s,o,u,h,f,p,m,b){const{fontSize:_,fontFamily:w,fontWeight:S}=b,C=s.split(Ti.lineBreakRegex);for(let A=0;A=this.data.widthLimit||a>=this.data.widthLimit||this.nextData.cnt>lYn)&&(r=this.nextData.startx+t.margin+ls.nextLinePaddingX,s=this.nextData.stopy+t.margin*2,this.nextData.stopx=a=r+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=o=s+t.height,this.nextData.cnt=1),t.x=r,t.y=s,this.updateVal(this.data,"startx",r,Math.min),this.updateVal(this.data,"starty",s,Math.min),this.updateVal(this.data,"stopx",a,Math.max),this.updateVal(this.data,"stopy",o,Math.max),this.updateVal(this.nextData,"startx",r,Math.min),this.updateVal(this.nextData,"starty",s,Math.min),this.updateVal(this.nextData,"stopx",a,Math.max),this.updateVal(this.nextData,"stopy",o,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},xct(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}},X(EY,"Bounds"),EY),xct=X(function(e){W0(ls,e),e.fontFamily&&(ls.personFontFamily=ls.systemFontFamily=ls.messageFontFamily=e.fontFamily),e.fontSize&&(ls.personFontSize=ls.systemFontSize=ls.messageFontSize=e.fontSize),e.fontWeight&&(ls.personFontWeight=ls.systemFontWeight=ls.messageFontWeight=e.fontWeight)},"setConf"),oie=X((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"c4ShapeFont"),Nxe=X(e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),"boundaryFont"),tLi=X(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont");function lS(e,t,r,a,s){if(!t[e].width)if(r)t[e].text=nBn(t[e].text,s,a),t[e].textLines=t[e].text.split(Ti.lineBreakRegex).length,t[e].width=s,t[e].height=D4e(t[e].text,a);else{let o=t[e].text.split(Ti.lineBreakRegex);t[e].textLines=o.length;let u=0;t[e].height=0,t[e].width=0;for(const h of o)t[e].width=Math.max(nv(h,a),t[e].width),u=D4e(h,a),t[e].height=t[e].height+u}}X(lS,"calcC4ShapeTextWH");var uYn=X(function(e,t,r){t.x=r.data.startx,t.y=r.data.starty,t.width=r.data.stopx-r.data.startx,t.height=r.data.stopy-r.data.starty,t.label.y=ls.c4ShapeMargin-35;let a=t.wrap&&ls.wrap,s=Nxe(ls);s.fontSize=s.fontSize+2,s.fontWeight="bold";let o=nv(t.label.text,s);lS("label",t,a,s,o),NC.drawBoundary(e,t,ls)},"drawBoundary"),hYn=X(function(e,t,r,a){let s=0;for(const o of a){s=0;const u=r[o];let h=oie(ls,u.typeC4Shape.text);switch(h.fontSize=h.fontSize-2,u.typeC4Shape.width=nv("«"+u.typeC4Shape.text+"»",h),u.typeC4Shape.height=h.fontSize+2,u.typeC4Shape.Y=ls.c4ShapePadding,s=u.typeC4Shape.Y+u.typeC4Shape.height-4,u.image={width:0,height:0,Y:0},u.typeC4Shape.text){case"person":case"external_person":u.image.width=48,u.image.height=48,u.image.Y=s,s=u.image.Y+u.image.height;break}u.sprite&&(u.image.width=48,u.image.height=48,u.image.Y=s,s=u.image.Y+u.image.height);let f=u.wrap&&ls.wrap,p=ls.width-ls.c4ShapePadding*2,m=oie(ls,u.typeC4Shape.text);if(m.fontSize=m.fontSize+2,m.fontWeight="bold",lS("label",u,f,m,p),u.label.Y=s+8,s=u.label.Y+u.label.height,u.type&&u.type.text!==""){u.type.text="["+u.type.text+"]";let w=oie(ls,u.typeC4Shape.text);lS("type",u,f,w,p),u.type.Y=s+5,s=u.type.Y+u.type.height}else if(u.techn&&u.techn.text!==""){u.techn.text="["+u.techn.text+"]";let w=oie(ls,u.techn.text);lS("techn",u,f,w,p),u.techn.Y=s+5,s=u.techn.Y+u.techn.height}let b=s,_=u.label.width;if(u.descr&&u.descr.text!==""){let w=oie(ls,u.typeC4Shape.text);lS("descr",u,f,w,p),u.descr.Y=s+20,s=u.descr.Y+u.descr.height,_=Math.max(u.label.width,u.descr.width),b=s-u.descr.textLines*5}_=_+ls.c4ShapePadding,u.width=Math.max(u.width||ls.width,_,ls.width),u.height=Math.max(u.height||ls.height,b,ls.height),u.margin=u.margin||ls.c4ShapeMargin,e.insert(u),NC.drawC4Shape(t,u,ls)}e.bumpLastMargin(ls.c4ShapeMargin)},"drawC4ShapeArray"),xY,Fx=(xY=class{constructor(t,r){this.x=t,this.y=r}},X(xY,"Point"),xY),bSn=X(function(e,t){let r=e.x,a=e.y,s=t.x,o=t.y,u=r+e.width/2,h=a+e.height/2,f=Math.abs(r-s),p=Math.abs(a-o),m=p/f,b=e.height/e.width,_=null;return a==o&&rs?_=new Fx(r,h):r==s&&ao&&(_=new Fx(u,a)),r>s&&a=m?_=new Fx(r,h+m*e.width/2):_=new Fx(u-f/p*e.height/2,a+e.height):r=m?_=new Fx(r+e.width,h+m*e.width/2):_=new Fx(u+f/p*e.height/2,a+e.height):ro?b>=m?_=new Fx(r+e.width,h-m*e.width/2):_=new Fx(u+e.height/2*f/p,a):r>s&&a>o&&(b>=m?_=new Fx(r,h-e.width/2*m):_=new Fx(u-e.height/2*f/p,a)),_},"getIntersectPoint"),nLi=X(function(e,t){let r={x:0,y:0};r.x=t.x+t.width/2,r.y=t.y+t.height/2;let a=bSn(e,r);r.x=e.x+e.width/2,r.y=e.y+e.height/2;let s=bSn(t,r);return{startPoint:a,endPoint:s}},"getIntersectPoints"),rLi=X(function(e,t,r,a){let s=0;for(let o of t){s=s+1;let u=o.wrap&&ls.wrap,h=tLi(ls);a.db.getC4Type()==="C4Dynamic"&&(o.label.text=s+": "+o.label.text);let p=nv(o.label.text,h);lS("label",o,u,h,p),o.techn&&o.techn.text!==""&&(p=nv(o.techn.text,h),lS("techn",o,u,h,p)),o.descr&&o.descr.text!==""&&(p=nv(o.descr.text,h),lS("descr",o,u,h,p));let m=r(o.from),b=r(o.to),_=nLi(m,b);o.startPoint=_.startPoint,o.endPoint=_.endPoint}NC.drawRels(e,t,ls)},"drawRels");function Ggt(e,t,r,a,s){let o=new cYn(s);o.data.widthLimit=r.data.widthLimit/Math.min(Ect,a.length);for(let[u,h]of a.entries()){let f=0;h.image={width:0,height:0,Y:0},h.sprite&&(h.image.width=48,h.image.height=48,h.image.Y=f,f=h.image.Y+h.image.height);let p=h.wrap&&ls.wrap,m=Nxe(ls);if(m.fontSize=m.fontSize+2,m.fontWeight="bold",lS("label",h,p,m,o.data.widthLimit),h.label.Y=f+8,f=h.label.Y+h.label.height,h.type&&h.type.text!==""){h.type.text="["+h.type.text+"]";let S=Nxe(ls);lS("type",h,p,S,o.data.widthLimit),h.type.Y=f+5,f=h.type.Y+h.type.height}if(h.descr&&h.descr.text!==""){let S=Nxe(ls);S.fontSize=S.fontSize-2,lS("descr",h,p,S,o.data.widthLimit),h.descr.Y=f+20,f=h.descr.Y+h.descr.height}if(u==0||u%Ect===0){let S=r.data.startx+ls.diagramMarginX,C=r.data.stopy+ls.diagramMarginY+f;o.setData(S,S,C,C)}else{let S=o.data.stopx!==o.data.startx?o.data.stopx+ls.diagramMarginX:o.data.startx,C=o.data.starty;o.setData(S,S,C,C)}o.name=h.alias;let b=s.db.getC4ShapeArray(h.alias),_=s.db.getC4ShapeKeys(h.alias);_.length>0&&hYn(o,e,b,_),t=h.alias;let w=s.db.getBoundaries(t);w.length>0&&Ggt(e,t,o,w,s),h.alias!=="global"&&uYn(e,h,o),r.data.stopy=Math.max(o.data.stopy+ls.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(o.data.stopx+ls.c4ShapeMargin,r.data.stopx),nTe=Math.max(nTe,r.data.stopx),rTe=Math.max(rTe,r.data.stopy)}}X(Ggt,"drawInsideBoundary");var iLi=X(function(e,t,r,a){ls=nn().c4;const s=nn().securityLevel;let o;s==="sandbox"&&(o=gn("#i"+t));const u=gn(s==="sandbox"?o.nodes()[0].contentDocument.body:"body");let h=a.db;a.db.setWrap(ls.wrap),lYn=h.getC4ShapeInRow(),Ect=h.getC4BoundaryInRow(),it.debug(`C:${JSON.stringify(ls,null,2)}`);const f=s==="sandbox"?u.select(`[id="${t}"]`):gn(`[id="${t}"]`);NC.insertComputerIcon(f),NC.insertDatabaseIcon(f),NC.insertClockIcon(f);let p=new cYn(a);p.setData(ls.diagramMarginX,ls.diagramMarginX,ls.diagramMarginY,ls.diagramMarginY),p.data.widthLimit=screen.availWidth,nTe=ls.diagramMarginX,rTe=ls.diagramMarginY;const m=a.db.getTitle();let b=a.db.getBoundaries("");Ggt(f,"",p,b,a),NC.insertArrowHead(f),NC.insertArrowEnd(f),NC.insertArrowCrossHead(f),NC.insertArrowFilledHead(f),rLi(f,a.db.getRels(),a.db.getC4Shape,a),p.data.stopx=nTe,p.data.stopy=rTe;const _=p.data;let S=_.stopy-_.starty+2*ls.diagramMarginY;const A=_.stopx-_.startx+2*ls.diagramMarginX;m&&f.append("text").text(m).attr("x",(_.stopx-_.startx)/2-4*ls.diagramMarginX).attr("y",_.starty+ls.diagramMarginY),yv(f,S,A,ls.useMaxWidth);const k=m?60:0;f.attr("viewBox",_.startx-ls.diagramMarginX+" -"+(ls.diagramMarginY+k)+" "+A+" "+(S+k)),it.debug("models:",_)},"draw"),ySn={drawPersonOrSystemArray:hYn,drawBoundary:uYn,setConf:xct,draw:iLi},aLi=X(e=>`.person { stroke: ${e.personBorder}; fill: ${e.personBkg}; } `,"getStyles"),sLi=aLi,oLi={parser:p9i,db:wct,renderer:ySn,styles:sLi,init:X(({c4:e,wrap:t})=>{ySn.setConf(e),wct.setWrap(t)},"init")};const lLi=Object.freeze(Object.defineProperty({__proto__:null,diagram:oLi},Symbol.toStringTag,{value:"Module"}));var Lce=X(()=>` /* Font Awesome icon styling - consolidated */ .label-icon { display: inline-block; height: 1em; overflow: visible; vertical-align: -0.125em; } .node .label-icon path { fill: currentColor; stroke: revert; stroke-width: revert; } `,"getIconStyles"),eK=X((e,t)=>{let r;return t==="sandbox"&&(r=gn("#i"+e)),gn(t==="sandbox"?r.nodes()[0].contentDocument.body:"body").select(`[id="${e}"]`)},"getDiagramElement"),U$=X((e,t,r,a)=>{e.attr("class",r);const{width:s,height:o,x:u,y:h}=cLi(e,t);yv(e,o,s,a);const f=uLi(u,h,s,o,t);e.attr("viewBox",f),it.debug(`viewBox configured: ${f} with padding: ${t}`)},"setupViewPortForSVG"),cLi=X((e,t)=>{var a;const r=((a=e.node())==null?void 0:a.getBBox())||{width:0,height:0,x:0,y:0};return{width:r.width+t*2,height:r.height+t*2,x:r.x,y:r.y}},"calculateDimensionsWithPadding"),uLi=X((e,t,r,a,s)=>`${e-s} ${t-s} ${r} ${a}`,"createViewBox"),hLi="flowchart-",SY,dLi=(SY=class{constructor(){this.vertexCounter=0,this.config=nn(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=N1,this.setAccDescription=Pp,this.setDiagramTitle=Og,this.getAccTitle=Mp,this.getAccDescription=Bp,this.getDiagramTitle=P1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(t){return Ti.sanitizeText(t,this.config)}lookUpDomId(t){for(const r of this.vertices.values())if(r.id===t)return r.domId;return t}addVertex(t,r,a,s,o,u,h={},f){var w,S;if(!t||t.trim().length===0)return;let p;if(f!==void 0){let C;f.includes(` `)?C=f+` `:C=`{ `+f+` }`,p=fAe(C,{schema:dAe})}const m=this.edges.find(C=>C.id===t);if(m){const C=p;(C==null?void 0:C.animate)!==void 0&&(m.animate=C.animate),(C==null?void 0:C.animation)!==void 0&&(m.animation=C.animation),(C==null?void 0:C.curve)!==void 0&&(m.interpolate=C.curve);return}let b,_=this.vertices.get(t);if(_===void 0&&(_={id:t,labelType:"text",domId:hLi+t+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(t,_)),this.vertexCounter++,r!==void 0?(this.config=nn(),b=this.sanitizeText(r.text.trim()),_.labelType=r.type,b.startsWith('"')&&b.endsWith('"')&&(b=b.substring(1,b.length-1)),_.text=b):_.text===void 0&&(_.text=t),a!==void 0&&(_.type=a),s!=null&&s.forEach(C=>{_.styles.push(C)}),o!=null&&o.forEach(C=>{_.classes.push(C)}),u!==void 0&&(_.dir=u),_.props===void 0?_.props=h:h!==void 0&&Object.assign(_.props,h),p!==void 0){if(p.shape){if(p.shape!==p.shape.toLowerCase()||p.shape.includes("_"))throw new Error(`No such shape: ${p.shape}. Shape names should be lowercase.`);if(!r$n(p.shape))throw new Error(`No such shape: ${p.shape}.`);_.type=p==null?void 0:p.shape}p!=null&&p.label&&(_.text=p==null?void 0:p.label),p!=null&&p.icon&&(_.icon=p==null?void 0:p.icon,!((w=p.label)!=null&&w.trim())&&_.text===t&&(_.text="")),p!=null&&p.form&&(_.form=p==null?void 0:p.form),p!=null&&p.pos&&(_.pos=p==null?void 0:p.pos),p!=null&&p.img&&(_.img=p==null?void 0:p.img,!((S=p.label)!=null&&S.trim())&&_.text===t&&(_.text="")),p!=null&&p.constraint&&(_.constraint=p.constraint),p.w&&(_.assetWidth=Number(p.w)),p.h&&(_.assetHeight=Number(p.h))}}addSingleLink(t,r,a,s){const h={start:t,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};it.info("abc78 Got edge...",h);const f=a.text;if(f!==void 0&&(h.text=this.sanitizeText(f.text.trim()),h.text.startsWith('"')&&h.text.endsWith('"')&&(h.text=h.text.substring(1,h.text.length-1)),h.labelType=f.type),a!==void 0&&(h.type=a.type,h.stroke=a.stroke,h.length=a.length>10?10:a.length),s&&!this.edges.some(p=>p.id===s))h.id=s,h.isUserDefinedId=!0;else{const p=this.edges.filter(m=>m.start===h.start&&m.end===h.end);p.length===0?h.id=XV(h.start,h.end,{counter:0,prefix:"L"}):h.id=XV(h.start,h.end,{counter:p.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))it.info("Pushing edge..."),this.edges.push(h);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. Initialize mermaid with maxEdges set to a higher number to allow more edges. You cannot set this config via configuration inside the diagram as it is a secure config. You have to call mermaid.initialize.`)}isLinkData(t){return t!==null&&typeof t=="object"&&"id"in t&&typeof t.id=="string"}addLink(t,r,a){const s=this.isLinkData(a)?a.id.replace("@",""):void 0;it.info("addLink",t,r,s);for(const o of t)for(const u of r){const h=o===t[t.length-1],f=u===r[0];h&&f?this.addSingleLink(o,u,a,s):this.addSingleLink(o,u,a,void 0)}}updateLinkInterpolate(t,r){t.forEach(a=>{a==="default"?this.edges.defaultInterpolate=r:this.edges[a].interpolate=r})}updateLink(t,r){t.forEach(a=>{var s,o,u,h,f,p;if(typeof a=="number"&&a>=this.edges.length)throw new Error(`The index ${a} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);a==="default"?this.edges.defaultStyle=r:(this.edges[a].style=r,(((o=(s=this.edges[a])==null?void 0:s.style)==null?void 0:o.length)??0)>0&&!((h=(u=this.edges[a])==null?void 0:u.style)!=null&&h.some(m=>m==null?void 0:m.startsWith("fill")))&&((p=(f=this.edges[a])==null?void 0:f.style)==null||p.push("fill:none")))})}addClass(t,r){const a=r.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach(s=>{let o=this.classes.get(s);o===void 0&&(o={id:s,styles:[],textStyles:[]},this.classes.set(s,o)),a!=null&&a.forEach(u=>{if(/color/.exec(u)){const h=u.replace("fill","bgFill");o.textStyles.push(h)}o.styles.push(u)})})}setDirection(t){this.direction=t.trim(),/.*/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(t,r){for(const a of t.split(",")){const s=this.vertices.get(a);s&&s.classes.push(r);const o=this.edges.find(h=>h.id===a);o&&o.classes.push(r);const u=this.subGraphLookup.get(a);u&&u.classes.push(r)}}setTooltip(t,r){if(r!==void 0){r=this.sanitizeText(r);for(const a of t.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(a):a,r)}}setClickFun(t,r,a){const s=this.lookUpDomId(t);if(nn().securityLevel!=="loose"||r===void 0)return;let o=[];if(typeof a=="string"){o=a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let h=0;h{const h=document.querySelector(`[id="${s}"]`);h!==null&&h.addEventListener("click",()=>{Vo.runFunc(r,...o)},!1)}))}setLink(t,r,a){t.split(",").forEach(s=>{const o=this.vertices.get(s);o!==void 0&&(o.link=Vo.formatUrl(r,this.config),o.linkTarget=a)}),this.setClass(t,"clickable")}getTooltip(t){return this.tooltips.get(t)}setClickEvent(t,r,a){t.split(",").forEach(s=>{this.setClickFun(s,r,a)}),this.setClass(t,"clickable")}bindFunctions(t){this.funs.forEach(r=>{r(t)})}getDirection(){var t;return(t=this.direction)==null?void 0:t.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(t){let r=gn(".mermaidTooltip");(r._groups||r)[0][0]===null&&(r=gn("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),gn(t).select("svg").selectAll("g.node").on("mouseover",o=>{var p;const u=gn(o.currentTarget);if(u.attr("title")===null)return;const f=(p=o.currentTarget)==null?void 0:p.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(u.attr("title")).style("left",window.scrollX+f.left+(f.right-f.left)/2+"px").style("top",window.scrollY+f.bottom+"px"),r.html(r.html().replace(/<br\/>/g,"
    ")),u.classed("hover",!0)}).on("mouseout",o=>{r.transition().duration(500).style("opacity",0),gn(o.currentTarget).classed("hover",!1)})}clear(t="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=nn(),M1()}setGen(t){this.version=t||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(t,r,a){let s=t.text.trim(),o=a.text;t===a&&/\s/.exec(a.text)&&(s=void 0);const h=X(_=>{const w={boolean:{},number:{},string:{}},S=[];let C;return{nodeList:_.filter(function(k){const I=typeof k;return k.stmt&&k.stmt==="dir"?(C=k.value,!1):k.trim()===""?!1:I in w?w[I].hasOwnProperty(k)?!1:w[I][k]=!0:S.includes(k)?!1:S.push(k)}),dir:C}},"uniq")(r.flat()),f=h.nodeList;let p=h.dir;const m=nn().flowchart??{};if(p=p??(m.inheritDir?this.getDirection()??nn().direction??void 0:void 0),this.version==="gen-1")for(let _=0;_2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===t)return{result:!0,count:0};let s=0,o=1;for(;s=0){const h=this.indexNodes2(t,u);if(h.result)return{result:!0,count:o+h.count};o=o+h.count}s=s+1}return{result:!1,count:o}}getDepthFirstPos(t){return this.posCrossRef[t]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(t){let r=t.trim(),a="arrow_open";switch(r[0]){case"<":a="arrow_point",r=r.slice(1);break;case"x":a="arrow_cross",r=r.slice(1);break;case"o":a="arrow_circle",r=r.slice(1);break}let s="normal";return r.includes("=")&&(s="thick"),r.includes(".")&&(s="dotted"),{type:a,stroke:s}}countChar(t,r){const a=r.length;let s=0;for(let o=0;o":s="arrow_point",r.startsWith("<")&&(s="double_"+s,a=a.slice(1));break;case"o":s="arrow_circle",r.startsWith("o")&&(s="double_"+s,a=a.slice(1));break}let o="normal",u=a.length-1;a.startsWith("=")&&(o="thick"),a.startsWith("~")&&(o="invisible");const h=this.countChar(".",a);return h&&(o="dotted",u=h),{type:s,stroke:o,length:u}}destructLink(t,r){const a=this.destructEndLink(t);let s;if(r){if(s=this.destructStartLink(r),s.stroke!==a.stroke)return{type:"INVALID",stroke:"INVALID"};if(s.type==="arrow_open")s.type=a.type;else{if(s.type!==a.type)return{type:"INVALID",stroke:"INVALID"};s.type="double_"+s.type}return s.type==="double_arrow"&&(s.type="double_arrow_point"),s.length=a.length,s}return a}exists(t,r){for(const a of t)if(a.nodes.includes(r))return!0;return!1}makeUniq(t,r){const a=[];return t.nodes.forEach((s,o)=>{this.exists(r,s)||a.push(t.nodes[o])}),{nodes:a}}getTypeFromVertex(t){if(t.img)return"imageSquare";if(t.icon)return t.form==="circle"?"iconCircle":t.form==="square"?"iconSquare":t.form==="rounded"?"iconRounded":"icon";switch(t.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return t.type}}findNode(t,r){return t.find(a=>a.id===r)}destructEdgeType(t){let r="none",a="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":a=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=t.replace("double_",""),a=r;break}return{arrowTypeStart:r,arrowTypeEnd:a}}addNodeFromVertex(t,r,a,s,o,u){var m;const h=a.get(t.id),f=s.get(t.id)??!1,p=this.findNode(r,t.id);if(p)p.cssStyles=t.styles,p.cssCompiledStyles=this.getCompiledStyles(t.classes),p.cssClasses=t.classes.join(" ");else{const b={id:t.id,label:t.text,labelStyle:"",parentId:h,padding:((m=o.flowchart)==null?void 0:m.padding)||8,cssStyles:t.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...t.classes]),cssClasses:"default "+t.classes.join(" "),dir:t.dir,domId:t.domId,look:u,link:t.link,linkTarget:t.linkTarget,tooltip:this.getTooltip(t.id),icon:t.icon,pos:t.pos,img:t.img,assetWidth:t.assetWidth,assetHeight:t.assetHeight,constraint:t.constraint};f?r.push({...b,isGroup:!0,shape:"rect"}):r.push({...b,isGroup:!1,shape:this.getTypeFromVertex(t)})}}getCompiledStyles(t){let r=[];for(const a of t){const s=this.classes.get(a);s!=null&&s.styles&&(r=[...r,...s.styles??[]].map(o=>o.trim())),s!=null&&s.textStyles&&(r=[...r,...s.textStyles??[]].map(o=>o.trim()))}return r}getData(){const t=nn(),r=[],a=[],s=this.getSubGraphs(),o=new Map,u=new Map;for(let p=s.length-1;p>=0;p--){const m=s[p];m.nodes.length>0&&u.set(m.id,!0);for(const b of m.nodes)o.set(b,m.id)}for(let p=s.length-1;p>=0;p--){const m=s[p];r.push({id:m.id,label:m.title,labelStyle:"",parentId:o.get(m.id),padding:8,cssCompiledStyles:this.getCompiledStyles(m.classes),cssClasses:m.classes.join(" "),shape:"rect",dir:m.dir,isGroup:!0,look:t.look})}this.getVertices().forEach(p=>{this.addNodeFromVertex(p,r,o,u,t,t.look||"classic")});const f=this.getEdges();return f.forEach((p,m)=>{var C;const{arrowTypeStart:b,arrowTypeEnd:_}=this.destructEdgeType(p.type),w=[...f.defaultStyle??[]];p.style&&w.push(...p.style);const S={id:XV(p.start,p.end,{counter:m,prefix:"L"},p.id),isUserDefinedId:p.isUserDefinedId,start:p.start,end:p.end,type:p.type??"normal",label:p.text,labelpos:"c",thickness:p.stroke,minlen:p.length,classes:(p==null?void 0:p.stroke)==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:(p==null?void 0:p.stroke)==="invisible"||(p==null?void 0:p.type)==="arrow_open"?"none":b,arrowTypeEnd:(p==null?void 0:p.stroke)==="invisible"||(p==null?void 0:p.type)==="arrow_open"?"none":_,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(p.classes),labelStyle:w,style:w,pattern:p.stroke,look:t.look,animate:p.animate,animation:p.animation,curve:p.interpolate||this.edges.defaultInterpolate||((C=t.flowchart)==null?void 0:C.curve)};a.push(S)}),{nodes:r,edges:a,other:{},config:t}}defaultConfig(){return SLn.flowchart}},X(SY,"FlowDB"),SY),fLi=X(function(e,t){return t.db.getClasses()},"getClasses"),pLi=X(async function(e,t,r,a){var w;it.info("REF0:"),it.info("Drawing state diagram (v2)",t);const{securityLevel:s,flowchart:o,layout:u}=nn();let h;s==="sandbox"&&(h=gn("#i"+t));const f=s==="sandbox"?h.nodes()[0].contentDocument:document;it.debug("Before getData: ");const p=a.db.getData();it.debug("Data: ",p);const m=eK(t,s),b=a.db.getDirection();p.type=a.type,p.layoutAlgorithm=hce(u),p.layoutAlgorithm==="dagre"&&u==="elk"&&it.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),p.direction=b,p.nodeSpacing=(o==null?void 0:o.nodeSpacing)||50,p.rankSpacing=(o==null?void 0:o.rankSpacing)||50,p.markers=["point","circle","cross"],p.diagramId=t,it.debug("REF1:",p),await $W(p,m);const _=((w=p.config.flowchart)==null?void 0:w.diagramPadding)??8;Vo.insertTitle(m,"flowchartTitleText",(o==null?void 0:o.titleTopMargin)||0,a.db.getDiagramTitle()),U$(m,_,"flowchart",(o==null?void 0:o.useMaxWidth)||!1);for(const S of p.nodes){const C=gn(`#${t} [id="${S.id}"]`);if(!C||!S.link)continue;const A=f.createElementNS("http://www.w3.org/2000/svg","a");A.setAttributeNS("http://www.w3.org/2000/svg","class",S.cssClasses),A.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),s==="sandbox"?A.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):S.linkTarget&&A.setAttributeNS("http://www.w3.org/2000/svg","target",S.linkTarget);const k=C.insert(function(){return A},":first-child"),I=C.select(".label-container");I&&k.append(function(){return I.node()});const N=C.select(".label");N&&k.append(function(){return N.node()})}},"draw"),gLi={getClasses:fLi,draw:pLi},Sct=function(){var e=X(function(no,dt,Wi,Tt){for(Wi=Wi||{},Tt=no.length;Tt--;Wi[no[Tt]]=dt);return Wi},"o"),t=[1,4],r=[1,3],a=[1,5],s=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],o=[2,2],u=[1,13],h=[1,14],f=[1,15],p=[1,16],m=[1,23],b=[1,25],_=[1,26],w=[1,27],S=[1,49],C=[1,48],A=[1,29],k=[1,30],I=[1,31],N=[1,32],L=[1,33],P=[1,44],M=[1,46],F=[1,42],U=[1,47],$=[1,43],G=[1,50],B=[1,45],Z=[1,51],z=[1,52],Y=[1,34],W=[1,35],Q=[1,36],V=[1,37],j=[1,57],ee=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],te=[1,61],ne=[1,60],se=[1,62],ie=[8,9,11,75,77,78],ge=[1,78],ce=[1,91],be=[1,96],ve=[1,95],De=[1,92],ye=[1,88],Ee=[1,94],he=[1,90],we=[1,97],Ce=[1,93],Ie=[1,98],Le=[1,89],Fe=[8,9,10,11,40,75,77,78],Ve=[8,9,10,11,40,46,75,77,78],Oe=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],Dt=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],ot=[44,60,89,102,105,106,109,111,114,115,116],sn=[1,121],Kt=[1,122],Ft=[1,124],Je=[1,123],ht=[44,60,62,74,89,102,105,106,109,111,114,115,116],et=[1,133],qe=[1,147],He=[1,148],Ge=[1,149],Ye=[1,150],Ae=[1,135],Xe=[1,137],fe=[1,141],Qe=[1,142],Ke=[1,143],mt=[1,144],lt=[1,145],$t=[1,146],Ut=[1,151],Jt=[1,152],wn=[1,131],Vn=[1,132],Wn=[1,139],Dn=[1,134],zn=[1,138],vn=[1,136],Cn=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],Ar=[1,154],ur=[1,156],On=[8,9,11],Ir=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],Ln=[1,176],pr=[1,172],Cr=[1,173],Zr=[1,177],Pr=[1,174],Ci=[1,175],ds=[77,116,119],ta=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Os=[10,106],uo=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],Ls=[1,247],La=[1,245],to=[1,249],Fi=[1,243],Pt=[1,244],St=[1,246],Un=[1,248],Hr=[1,250],za=[1,268],Rs=[8,9,11,106],Vr=[8,9,10,11,60,84,105,106,109,110,111,112],Ii={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1]],performAction:X(function(dt,Wi,Tt,xr,qs,Rt,Bb){var Gt=Rt.length-1;switch(qs){case 2:this.$=[];break;case 3:(!Array.isArray(Rt[Gt])||Rt[Gt].length>0)&&Rt[Gt-1].push(Rt[Gt]),this.$=Rt[Gt-1];break;case 4:case 183:this.$=Rt[Gt];break;case 11:xr.setDirection("TB"),this.$="TB";break;case 12:xr.setDirection(Rt[Gt-1]),this.$=Rt[Gt-1];break;case 27:this.$=Rt[Gt-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=xr.addSubGraph(Rt[Gt-6],Rt[Gt-1],Rt[Gt-4]);break;case 34:this.$=xr.addSubGraph(Rt[Gt-3],Rt[Gt-1],Rt[Gt-3]);break;case 35:this.$=xr.addSubGraph(void 0,Rt[Gt-1],void 0);break;case 37:this.$=Rt[Gt].trim(),xr.setAccTitle(this.$);break;case 38:case 39:this.$=Rt[Gt].trim(),xr.setAccDescription(this.$);break;case 43:this.$=Rt[Gt-1]+Rt[Gt];break;case 44:this.$=Rt[Gt];break;case 45:xr.addVertex(Rt[Gt-1][Rt[Gt-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,Rt[Gt]),xr.addLink(Rt[Gt-3].stmt,Rt[Gt-1],Rt[Gt-2]),this.$={stmt:Rt[Gt-1],nodes:Rt[Gt-1].concat(Rt[Gt-3].nodes)};break;case 46:xr.addLink(Rt[Gt-2].stmt,Rt[Gt],Rt[Gt-1]),this.$={stmt:Rt[Gt],nodes:Rt[Gt].concat(Rt[Gt-2].nodes)};break;case 47:xr.addLink(Rt[Gt-3].stmt,Rt[Gt-1],Rt[Gt-2]),this.$={stmt:Rt[Gt-1],nodes:Rt[Gt-1].concat(Rt[Gt-3].nodes)};break;case 48:this.$={stmt:Rt[Gt-1],nodes:Rt[Gt-1]};break;case 49:xr.addVertex(Rt[Gt-1][Rt[Gt-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,Rt[Gt]),this.$={stmt:Rt[Gt-1],nodes:Rt[Gt-1],shapeData:Rt[Gt]};break;case 50:this.$={stmt:Rt[Gt],nodes:Rt[Gt]};break;case 51:this.$=[Rt[Gt]];break;case 52:xr.addVertex(Rt[Gt-5][Rt[Gt-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,Rt[Gt-4]),this.$=Rt[Gt-5].concat(Rt[Gt]);break;case 53:this.$=Rt[Gt-4].concat(Rt[Gt]);break;case 54:this.$=Rt[Gt];break;case 55:this.$=Rt[Gt-2],xr.setClass(Rt[Gt-2],Rt[Gt]);break;case 56:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"square");break;case 57:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"doublecircle");break;case 58:this.$=Rt[Gt-5],xr.addVertex(Rt[Gt-5],Rt[Gt-2],"circle");break;case 59:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"ellipse");break;case 60:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"stadium");break;case 61:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"subroutine");break;case 62:this.$=Rt[Gt-7],xr.addVertex(Rt[Gt-7],Rt[Gt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[Rt[Gt-5],Rt[Gt-3]]]));break;case 63:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"cylinder");break;case 64:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"round");break;case 65:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"diamond");break;case 66:this.$=Rt[Gt-5],xr.addVertex(Rt[Gt-5],Rt[Gt-2],"hexagon");break;case 67:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"odd");break;case 68:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"trapezoid");break;case 69:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"inv_trapezoid");break;case 70:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"lean_right");break;case 71:this.$=Rt[Gt-3],xr.addVertex(Rt[Gt-3],Rt[Gt-1],"lean_left");break;case 72:this.$=Rt[Gt],xr.addVertex(Rt[Gt]);break;case 73:Rt[Gt-1].text=Rt[Gt],this.$=Rt[Gt-1];break;case 74:case 75:Rt[Gt-2].text=Rt[Gt-1],this.$=Rt[Gt-2];break;case 76:this.$=Rt[Gt];break;case 77:var Ds=xr.destructLink(Rt[Gt],Rt[Gt-2]);this.$={type:Ds.type,stroke:Ds.stroke,length:Ds.length,text:Rt[Gt-1]};break;case 78:var Ds=xr.destructLink(Rt[Gt],Rt[Gt-2]);this.$={type:Ds.type,stroke:Ds.stroke,length:Ds.length,text:Rt[Gt-1],id:Rt[Gt-3]};break;case 79:this.$={text:Rt[Gt],type:"text"};break;case 80:this.$={text:Rt[Gt-1].text+""+Rt[Gt],type:Rt[Gt-1].type};break;case 81:this.$={text:Rt[Gt],type:"string"};break;case 82:this.$={text:Rt[Gt],type:"markdown"};break;case 83:var Ds=xr.destructLink(Rt[Gt]);this.$={type:Ds.type,stroke:Ds.stroke,length:Ds.length};break;case 84:var Ds=xr.destructLink(Rt[Gt]);this.$={type:Ds.type,stroke:Ds.stroke,length:Ds.length,id:Rt[Gt-1]};break;case 85:this.$=Rt[Gt-1];break;case 86:this.$={text:Rt[Gt],type:"text"};break;case 87:this.$={text:Rt[Gt-1].text+""+Rt[Gt],type:Rt[Gt-1].type};break;case 88:this.$={text:Rt[Gt],type:"string"};break;case 89:case 104:this.$={text:Rt[Gt],type:"markdown"};break;case 101:this.$={text:Rt[Gt],type:"text"};break;case 102:this.$={text:Rt[Gt-1].text+""+Rt[Gt],type:Rt[Gt-1].type};break;case 103:this.$={text:Rt[Gt],type:"text"};break;case 105:this.$=Rt[Gt-4],xr.addClass(Rt[Gt-2],Rt[Gt]);break;case 106:this.$=Rt[Gt-4],xr.setClass(Rt[Gt-2],Rt[Gt]);break;case 107:case 115:this.$=Rt[Gt-1],xr.setClickEvent(Rt[Gt-1],Rt[Gt]);break;case 108:case 116:this.$=Rt[Gt-3],xr.setClickEvent(Rt[Gt-3],Rt[Gt-2]),xr.setTooltip(Rt[Gt-3],Rt[Gt]);break;case 109:this.$=Rt[Gt-2],xr.setClickEvent(Rt[Gt-2],Rt[Gt-1],Rt[Gt]);break;case 110:this.$=Rt[Gt-4],xr.setClickEvent(Rt[Gt-4],Rt[Gt-3],Rt[Gt-2]),xr.setTooltip(Rt[Gt-4],Rt[Gt]);break;case 111:this.$=Rt[Gt-2],xr.setLink(Rt[Gt-2],Rt[Gt]);break;case 112:this.$=Rt[Gt-4],xr.setLink(Rt[Gt-4],Rt[Gt-2]),xr.setTooltip(Rt[Gt-4],Rt[Gt]);break;case 113:this.$=Rt[Gt-4],xr.setLink(Rt[Gt-4],Rt[Gt-2],Rt[Gt]);break;case 114:this.$=Rt[Gt-6],xr.setLink(Rt[Gt-6],Rt[Gt-4],Rt[Gt]),xr.setTooltip(Rt[Gt-6],Rt[Gt-2]);break;case 117:this.$=Rt[Gt-1],xr.setLink(Rt[Gt-1],Rt[Gt]);break;case 118:this.$=Rt[Gt-3],xr.setLink(Rt[Gt-3],Rt[Gt-2]),xr.setTooltip(Rt[Gt-3],Rt[Gt]);break;case 119:this.$=Rt[Gt-3],xr.setLink(Rt[Gt-3],Rt[Gt-2],Rt[Gt]);break;case 120:this.$=Rt[Gt-5],xr.setLink(Rt[Gt-5],Rt[Gt-4],Rt[Gt]),xr.setTooltip(Rt[Gt-5],Rt[Gt-2]);break;case 121:this.$=Rt[Gt-4],xr.addVertex(Rt[Gt-2],void 0,void 0,Rt[Gt]);break;case 122:this.$=Rt[Gt-4],xr.updateLink([Rt[Gt-2]],Rt[Gt]);break;case 123:this.$=Rt[Gt-4],xr.updateLink(Rt[Gt-2],Rt[Gt]);break;case 124:this.$=Rt[Gt-8],xr.updateLinkInterpolate([Rt[Gt-6]],Rt[Gt-2]),xr.updateLink([Rt[Gt-6]],Rt[Gt]);break;case 125:this.$=Rt[Gt-8],xr.updateLinkInterpolate(Rt[Gt-6],Rt[Gt-2]),xr.updateLink(Rt[Gt-6],Rt[Gt]);break;case 126:this.$=Rt[Gt-6],xr.updateLinkInterpolate([Rt[Gt-4]],Rt[Gt]);break;case 127:this.$=Rt[Gt-6],xr.updateLinkInterpolate(Rt[Gt-4],Rt[Gt]);break;case 128:case 130:this.$=[Rt[Gt]];break;case 129:case 131:Rt[Gt-2].push(Rt[Gt]),this.$=Rt[Gt-2];break;case 133:this.$=Rt[Gt-1]+Rt[Gt];break;case 181:this.$=Rt[Gt];break;case 182:this.$=Rt[Gt-1]+""+Rt[Gt];break;case 184:this.$=Rt[Gt-1]+""+Rt[Gt];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break}},"anonymous"),table:[{3:1,4:2,9:t,10:r,12:a},{1:[3]},e(s,o,{5:6}),{4:7,9:t,10:r,12:a},{4:8,9:t,10:r,12:a},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:u,9:h,10:f,11:p,20:17,22:18,23:19,24:20,25:21,26:22,27:m,33:24,34:b,36:_,38:w,42:28,43:38,44:S,45:39,47:40,60:C,84:A,85:k,86:I,87:N,88:L,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z,121:Y,122:W,123:Q,124:V},e(s,[2,9]),e(s,[2,10]),e(s,[2,11]),{8:[1,54],9:[1,55],10:j,15:53,18:56},e(ee,[2,3]),e(ee,[2,4]),e(ee,[2,5]),e(ee,[2,6]),e(ee,[2,7]),e(ee,[2,8]),{8:te,9:ne,11:se,21:58,41:59,72:63,75:[1,64],77:[1,66],78:[1,65]},{8:te,9:ne,11:se,21:67},{8:te,9:ne,11:se,21:68},{8:te,9:ne,11:se,21:69},{8:te,9:ne,11:se,21:70},{8:te,9:ne,11:se,21:71},{8:te,9:ne,10:[1,72],11:se,21:73},e(ee,[2,36]),{35:[1,74]},{37:[1,75]},e(ee,[2,39]),e(ie,[2,50],{18:76,39:77,10:j,40:ge}),{10:[1,79]},{10:[1,80]},{10:[1,81]},{10:[1,82]},{14:ce,44:be,60:ve,80:[1,86],89:De,95:[1,83],97:[1,84],101:85,105:ye,106:Ee,109:he,111:we,114:Ce,115:Ie,116:Le,120:87},e(ee,[2,185]),e(ee,[2,186]),e(ee,[2,187]),e(ee,[2,188]),e(Fe,[2,51]),e(Fe,[2,54],{46:[1,99]}),e(Ve,[2,72],{113:112,29:[1,100],44:S,48:[1,101],50:[1,102],52:[1,103],54:[1,104],56:[1,105],58:[1,106],60:C,63:[1,107],65:[1,108],67:[1,109],68:[1,110],70:[1,111],89:P,102:M,105:F,106:U,109:$,111:G,114:B,115:Z,116:z}),e(Oe,[2,181]),e(Oe,[2,142]),e(Oe,[2,143]),e(Oe,[2,144]),e(Oe,[2,145]),e(Oe,[2,146]),e(Oe,[2,147]),e(Oe,[2,148]),e(Oe,[2,149]),e(Oe,[2,150]),e(Oe,[2,151]),e(Oe,[2,152]),e(s,[2,12]),e(s,[2,18]),e(s,[2,19]),{9:[1,113]},e(Dt,[2,26],{18:114,10:j}),e(ee,[2,27]),{42:115,43:38,44:S,45:39,47:40,60:C,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z},e(ee,[2,40]),e(ee,[2,41]),e(ee,[2,42]),e(ot,[2,76],{73:116,62:[1,118],74:[1,117]}),{76:119,79:120,80:sn,81:Kt,116:Ft,119:Je},{75:[1,125],77:[1,126]},e(ht,[2,83]),e(ee,[2,28]),e(ee,[2,29]),e(ee,[2,30]),e(ee,[2,31]),e(ee,[2,32]),{10:et,12:qe,14:He,27:Ge,28:127,32:Ye,44:Ae,60:Xe,75:fe,80:[1,129],81:[1,130],83:140,84:Qe,85:Ke,86:mt,87:lt,88:$t,89:Ut,90:Jt,91:128,105:wn,109:Vn,111:Wn,114:Dn,115:zn,116:vn},e(Cn,o,{5:153}),e(ee,[2,37]),e(ee,[2,38]),e(ie,[2,48],{44:Ar}),e(ie,[2,49],{18:155,10:j,40:ur}),e(Fe,[2,44]),{44:S,47:157,60:C,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z},{102:[1,158],103:159,105:[1,160]},{44:S,47:161,60:C,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z},{44:S,47:162,60:C,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z},e(On,[2,107],{10:[1,163],96:[1,164]}),{80:[1,165]},e(On,[2,115],{120:167,10:[1,166],14:ce,44:be,60:ve,89:De,105:ye,106:Ee,109:he,111:we,114:Ce,115:Ie,116:Le}),e(On,[2,117],{10:[1,168]}),e(Ir,[2,183]),e(Ir,[2,170]),e(Ir,[2,171]),e(Ir,[2,172]),e(Ir,[2,173]),e(Ir,[2,174]),e(Ir,[2,175]),e(Ir,[2,176]),e(Ir,[2,177]),e(Ir,[2,178]),e(Ir,[2,179]),e(Ir,[2,180]),{44:S,47:169,60:C,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z},{30:170,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{30:178,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{30:180,50:[1,179],67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{30:181,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{30:182,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{30:183,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{109:[1,184]},{30:185,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{30:186,65:[1,187],67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{30:188,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{30:189,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{30:190,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},e(Oe,[2,182]),e(s,[2,20]),e(Dt,[2,25]),e(ie,[2,46],{39:191,18:192,10:j,40:ge}),e(ot,[2,73],{10:[1,193]}),{10:[1,194]},{30:195,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{77:[1,196],79:197,116:Ft,119:Je},e(ds,[2,79]),e(ds,[2,81]),e(ds,[2,82]),e(ds,[2,168]),e(ds,[2,169]),{76:198,79:120,80:sn,81:Kt,116:Ft,119:Je},e(ht,[2,84]),{8:te,9:ne,10:et,11:se,12:qe,14:He,21:200,27:Ge,29:[1,199],32:Ye,44:Ae,60:Xe,75:fe,83:140,84:Qe,85:Ke,86:mt,87:lt,88:$t,89:Ut,90:Jt,91:201,105:wn,109:Vn,111:Wn,114:Dn,115:zn,116:vn},e(ta,[2,101]),e(ta,[2,103]),e(ta,[2,104]),e(ta,[2,157]),e(ta,[2,158]),e(ta,[2,159]),e(ta,[2,160]),e(ta,[2,161]),e(ta,[2,162]),e(ta,[2,163]),e(ta,[2,164]),e(ta,[2,165]),e(ta,[2,166]),e(ta,[2,167]),e(ta,[2,90]),e(ta,[2,91]),e(ta,[2,92]),e(ta,[2,93]),e(ta,[2,94]),e(ta,[2,95]),e(ta,[2,96]),e(ta,[2,97]),e(ta,[2,98]),e(ta,[2,99]),e(ta,[2,100]),{6:11,7:12,8:u,9:h,10:f,11:p,20:17,22:18,23:19,24:20,25:21,26:22,27:m,32:[1,202],33:24,34:b,36:_,38:w,42:28,43:38,44:S,45:39,47:40,60:C,84:A,85:k,86:I,87:N,88:L,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z,121:Y,122:W,123:Q,124:V},{10:j,18:203},{44:[1,204]},e(Fe,[2,43]),{10:[1,205],44:S,60:C,89:P,102:M,105:F,106:U,109:$,111:G,113:112,114:B,115:Z,116:z},{10:[1,206]},{10:[1,207],106:[1,208]},e(Os,[2,128]),{10:[1,209],44:S,60:C,89:P,102:M,105:F,106:U,109:$,111:G,113:112,114:B,115:Z,116:z},{10:[1,210],44:S,60:C,89:P,102:M,105:F,106:U,109:$,111:G,113:112,114:B,115:Z,116:z},{80:[1,211]},e(On,[2,109],{10:[1,212]}),e(On,[2,111],{10:[1,213]}),{80:[1,214]},e(Ir,[2,184]),{80:[1,215],98:[1,216]},e(Fe,[2,55],{113:112,44:S,60:C,89:P,102:M,105:F,106:U,109:$,111:G,114:B,115:Z,116:z}),{31:[1,217],67:Ln,82:218,116:Zr,117:Pr,118:Ci},e(uo,[2,86]),e(uo,[2,88]),e(uo,[2,89]),e(uo,[2,153]),e(uo,[2,154]),e(uo,[2,155]),e(uo,[2,156]),{49:[1,219],67:Ln,82:218,116:Zr,117:Pr,118:Ci},{30:220,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{51:[1,221],67:Ln,82:218,116:Zr,117:Pr,118:Ci},{53:[1,222],67:Ln,82:218,116:Zr,117:Pr,118:Ci},{55:[1,223],67:Ln,82:218,116:Zr,117:Pr,118:Ci},{57:[1,224],67:Ln,82:218,116:Zr,117:Pr,118:Ci},{60:[1,225]},{64:[1,226],67:Ln,82:218,116:Zr,117:Pr,118:Ci},{66:[1,227],67:Ln,82:218,116:Zr,117:Pr,118:Ci},{30:228,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},{31:[1,229],67:Ln,82:218,116:Zr,117:Pr,118:Ci},{67:Ln,69:[1,230],71:[1,231],82:218,116:Zr,117:Pr,118:Ci},{67:Ln,69:[1,233],71:[1,232],82:218,116:Zr,117:Pr,118:Ci},e(ie,[2,45],{18:155,10:j,40:ur}),e(ie,[2,47],{44:Ar}),e(ot,[2,75]),e(ot,[2,74]),{62:[1,234],67:Ln,82:218,116:Zr,117:Pr,118:Ci},e(ot,[2,77]),e(ds,[2,80]),{77:[1,235],79:197,116:Ft,119:Je},{30:236,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},e(Cn,o,{5:237}),e(ta,[2,102]),e(ee,[2,35]),{43:238,44:S,45:39,47:40,60:C,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z},{10:j,18:239},{10:Ls,60:La,84:to,92:240,105:Fi,107:241,108:242,109:Pt,110:St,111:Un,112:Hr},{10:Ls,60:La,84:to,92:251,104:[1,252],105:Fi,107:241,108:242,109:Pt,110:St,111:Un,112:Hr},{10:Ls,60:La,84:to,92:253,104:[1,254],105:Fi,107:241,108:242,109:Pt,110:St,111:Un,112:Hr},{105:[1,255]},{10:Ls,60:La,84:to,92:256,105:Fi,107:241,108:242,109:Pt,110:St,111:Un,112:Hr},{44:S,47:257,60:C,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z},e(On,[2,108]),{80:[1,258]},{80:[1,259],98:[1,260]},e(On,[2,116]),e(On,[2,118],{10:[1,261]}),e(On,[2,119]),e(Ve,[2,56]),e(uo,[2,87]),e(Ve,[2,57]),{51:[1,262],67:Ln,82:218,116:Zr,117:Pr,118:Ci},e(Ve,[2,64]),e(Ve,[2,59]),e(Ve,[2,60]),e(Ve,[2,61]),{109:[1,263]},e(Ve,[2,63]),e(Ve,[2,65]),{66:[1,264],67:Ln,82:218,116:Zr,117:Pr,118:Ci},e(Ve,[2,67]),e(Ve,[2,68]),e(Ve,[2,70]),e(Ve,[2,69]),e(Ve,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(ot,[2,78]),{31:[1,265],67:Ln,82:218,116:Zr,117:Pr,118:Ci},{6:11,7:12,8:u,9:h,10:f,11:p,20:17,22:18,23:19,24:20,25:21,26:22,27:m,32:[1,266],33:24,34:b,36:_,38:w,42:28,43:38,44:S,45:39,47:40,60:C,84:A,85:k,86:I,87:N,88:L,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z,121:Y,122:W,123:Q,124:V},e(Fe,[2,53]),{43:267,44:S,45:39,47:40,60:C,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z},e(On,[2,121],{106:za}),e(Rs,[2,130],{108:269,10:Ls,60:La,84:to,105:Fi,109:Pt,110:St,111:Un,112:Hr}),e(Vr,[2,132]),e(Vr,[2,134]),e(Vr,[2,135]),e(Vr,[2,136]),e(Vr,[2,137]),e(Vr,[2,138]),e(Vr,[2,139]),e(Vr,[2,140]),e(Vr,[2,141]),e(On,[2,122],{106:za}),{10:[1,270]},e(On,[2,123],{106:za}),{10:[1,271]},e(Os,[2,129]),e(On,[2,105],{106:za}),e(On,[2,106],{113:112,44:S,60:C,89:P,102:M,105:F,106:U,109:$,111:G,114:B,115:Z,116:z}),e(On,[2,110]),e(On,[2,112],{10:[1,272]}),e(On,[2,113]),{98:[1,273]},{51:[1,274]},{62:[1,275]},{66:[1,276]},{8:te,9:ne,11:se,21:277},e(ee,[2,34]),e(Fe,[2,52]),{10:Ls,60:La,84:to,105:Fi,107:278,108:242,109:Pt,110:St,111:Un,112:Hr},e(Vr,[2,133]),{14:ce,44:be,60:ve,89:De,101:279,105:ye,106:Ee,109:he,111:we,114:Ce,115:Ie,116:Le,120:87},{14:ce,44:be,60:ve,89:De,101:280,105:ye,106:Ee,109:he,111:we,114:Ce,115:Ie,116:Le,120:87},{98:[1,281]},e(On,[2,120]),e(Ve,[2,58]),{30:282,67:Ln,80:pr,81:Cr,82:171,116:Zr,117:Pr,118:Ci},e(Ve,[2,66]),e(Cn,o,{5:283}),e(Rs,[2,131],{108:269,10:Ls,60:La,84:to,105:Fi,109:Pt,110:St,111:Un,112:Hr}),e(On,[2,126],{120:167,10:[1,284],14:ce,44:be,60:ve,89:De,105:ye,106:Ee,109:he,111:we,114:Ce,115:Ie,116:Le}),e(On,[2,127],{120:167,10:[1,285],14:ce,44:be,60:ve,89:De,105:ye,106:Ee,109:he,111:we,114:Ce,115:Ie,116:Le}),e(On,[2,114]),{31:[1,286],67:Ln,82:218,116:Zr,117:Pr,118:Ci},{6:11,7:12,8:u,9:h,10:f,11:p,20:17,22:18,23:19,24:20,25:21,26:22,27:m,32:[1,287],33:24,34:b,36:_,38:w,42:28,43:38,44:S,45:39,47:40,60:C,84:A,85:k,86:I,87:N,88:L,89:P,102:M,105:F,106:U,109:$,111:G,113:41,114:B,115:Z,116:z,121:Y,122:W,123:Q,124:V},{10:Ls,60:La,84:to,92:288,105:Fi,107:241,108:242,109:Pt,110:St,111:Un,112:Hr},{10:Ls,60:La,84:to,92:289,105:Fi,107:241,108:242,109:Pt,110:St,111:Un,112:Hr},e(Ve,[2,62]),e(ee,[2,33]),e(On,[2,124],{106:za}),e(On,[2,125],{106:za})],defaultActions:{},parseError:X(function(dt,Wi){if(Wi.recoverable)this.trace(dt);else{var Tt=new Error(dt);throw Tt.hash=Wi,Tt}},"parseError"),parse:X(function(dt){var Wi=this,Tt=[0],xr=[],qs=[null],Rt=[],Bb=this.table,Gt="",Ds=0,Lm=0,BS=2,eE=1,uL=Rt.slice.call(arguments,1),rd=Object.create(this.lexer),Fh={yy:{}};for(var Fb in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Fb)&&(Fh.yy[Fb]=this.yy[Fb]);rd.setInput(dt,Fh.yy),Fh.yy.lexer=rd,Fh.yy.parser=this,typeof rd.yylloc>"u"&&(rd.yylloc={});var e1=rd.yylloc;Rt.push(e1);var wT=rd.options&&rd.options.ranges;typeof Fh.yy.parseError=="function"?this.parseError=Fh.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d_(f0){Tt.length=Tt.length-2*f0,qs.length=qs.length-f0,Rt.length=Rt.length-f0}X(d_,"popStack");function tE(){var f0;return f0=xr.pop()||rd.lex()||eE,typeof f0!="number"&&(f0 instanceof Array&&(xr=f0,f0=xr.pop()),f0=Wi.symbols_[f0]||f0),f0}X(tE,"lex");for(var qu,$b,Mf,nE,Pf={},ET,Ub,jA,WA;;){if($b=Tt[Tt.length-1],this.defaultActions[$b]?Mf=this.defaultActions[$b]:((qu===null||typeof qu>"u")&&(qu=tE()),Mf=Bb[$b]&&Bb[$b][qu]),typeof Mf>"u"||!Mf.length||!Mf[0]){var KA="";WA=[];for(ET in Bb[$b])this.terminals_[ET]&&ET>BS&&WA.push("'"+this.terminals_[ET]+"'");rd.showPosition?KA="Parse error on line "+(Ds+1)+`: `+rd.showPosition()+` Expecting `+WA.join(", ")+", got '"+(this.terminals_[qu]||qu)+"'":KA="Parse error on line "+(Ds+1)+": Unexpected "+(qu==eE?"end of input":"'"+(this.terminals_[qu]||qu)+"'"),this.parseError(KA,{text:rd.match,token:this.terminals_[qu]||qu,line:rd.yylineno,loc:e1,expected:WA})}if(Mf[0]instanceof Array&&Mf.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$b+", token: "+qu);switch(Mf[0]){case 1:Tt.push(qu),qs.push(rd.yytext),Rt.push(rd.yylloc),Tt.push(Mf[1]),qu=null,Lm=rd.yyleng,Gt=rd.yytext,Ds=rd.yylineno,e1=rd.yylloc;break;case 2:if(Ub=this.productions_[Mf[1]][1],Pf.$=qs[qs.length-Ub],Pf._$={first_line:Rt[Rt.length-(Ub||1)].first_line,last_line:Rt[Rt.length-1].last_line,first_column:Rt[Rt.length-(Ub||1)].first_column,last_column:Rt[Rt.length-1].last_column},wT&&(Pf._$.range=[Rt[Rt.length-(Ub||1)].range[0],Rt[Rt.length-1].range[1]]),nE=this.performAction.apply(Pf,[Gt,Lm,Ds,Fh.yy,Mf[1],qs,Rt].concat(uL)),typeof nE<"u")return nE;Ub&&(Tt=Tt.slice(0,-1*Ub*2),qs=qs.slice(0,-1*Ub),Rt=Rt.slice(0,-1*Ub)),Tt.push(this.productions_[Mf[1]][0]),qs.push(Pf.$),Rt.push(Pf._$),jA=Bb[Tt[Tt.length-2]][Tt[Tt.length-1]],Tt.push(jA);break;case 3:return!0}}return!0},"parse")},Pa=function(){var no={EOF:1,parseError:X(function(Wi,Tt){if(this.yy.parser)this.yy.parser.parseError(Wi,Tt);else throw new Error(Wi)},"parseError"),setInput:X(function(dt,Wi){return this.yy=Wi||this.yy||{},this._input=dt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:X(function(){var dt=this._input[0];this.yytext+=dt,this.yyleng++,this.offset++,this.match+=dt,this.matched+=dt;var Wi=dt.match(/(?:\r\n?|\n).*/g);return Wi?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),dt},"input"),unput:X(function(dt){var Wi=dt.length,Tt=dt.split(/(?:\r\n?|\n)/g);this._input=dt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Wi),this.offset-=Wi;var xr=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Tt.length-1&&(this.yylineno-=Tt.length-1);var qs=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Tt?(Tt.length===xr.length?this.yylloc.first_column:0)+xr[xr.length-Tt.length].length-Tt[0].length:this.yylloc.first_column-Wi},this.options.ranges&&(this.yylloc.range=[qs[0],qs[0]+this.yyleng-Wi]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(dt){this.unput(this.match.slice(dt))},"less"),pastInput:X(function(){var dt=this.matched.substr(0,this.matched.length-this.match.length);return(dt.length>20?"...":"")+dt.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var dt=this.match;return dt.length<20&&(dt+=this._input.substr(0,20-dt.length)),(dt.substr(0,20)+(dt.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var dt=this.pastInput(),Wi=new Array(dt.length+1).join("-");return dt+this.upcomingInput()+` `+Wi+"^"},"showPosition"),test_match:X(function(dt,Wi){var Tt,xr,qs;if(this.options.backtrack_lexer&&(qs={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(qs.yylloc.range=this.yylloc.range.slice(0))),xr=dt[0].match(/(?:\r\n?|\n).*/g),xr&&(this.yylineno+=xr.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:xr?xr[xr.length-1].length-xr[xr.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+dt[0].length},this.yytext+=dt[0],this.match+=dt[0],this.matches=dt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(dt[0].length),this.matched+=dt[0],Tt=this.performAction.call(this,this.yy,this,Wi,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Tt)return Tt;if(this._backtrack){for(var Rt in qs)this[Rt]=qs[Rt];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var dt,Wi,Tt,xr;this._more||(this.yytext="",this.match="");for(var qs=this._currentRules(),Rt=0;RtWi[0].length)){if(Wi=Tt,xr=Rt,this.options.backtrack_lexer){if(dt=this.test_match(Tt,qs[Rt]),dt!==!1)return dt;if(this._backtrack){Wi=!1;continue}else return!1}else if(!this.options.flex)break}return Wi?(dt=this.test_match(Wi,qs[xr]),dt!==!1?dt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var Wi=this.next();return Wi||this.lex()},"lex"),begin:X(function(Wi){this.conditionStack.push(Wi)},"begin"),popState:X(function(){var Wi=this.conditionStack.length-1;return Wi>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(Wi){return Wi=this.conditionStack.length-1-Math.abs(Wi||0),Wi>=0?this.conditionStack[Wi]:"INITIAL"},"topState"),pushState:X(function(Wi){this.begin(Wi)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:X(function(Wi,Tt,xr,qs){switch(xr){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),Tt.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:const Rt=/\n\s*/g;return Tt.yytext=Tt.yytext.replace(Rt,"
    "),40;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:return Wi.lex.firstGraph()&&this.begin("dir"),12;case 36:return Wi.lex.firstGraph()&&this.begin("dir"),12;case 37:return Wi.lex.firstGraph()&&this.begin("dir"),12;case 38:return 27;case 39:return 32;case 40:return 98;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return this.popState(),13;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return this.popState(),14;case 50:return this.popState(),14;case 51:return this.popState(),14;case 52:return this.popState(),14;case 53:return this.popState(),14;case 54:return this.popState(),14;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 78;case 60:return 105;case 61:return 111;case 62:return 46;case 63:return 60;case 64:return 44;case 65:return 8;case 66:return 106;case 67:return 115;case 68:return this.popState(),77;case 69:return this.pushState("edgeText"),75;case 70:return 119;case 71:return this.popState(),77;case 72:return this.pushState("thickEdgeText"),75;case 73:return 119;case 74:return this.popState(),77;case 75:return this.pushState("dottedEdgeText"),75;case 76:return 119;case 77:return 77;case 78:return this.popState(),53;case 79:return"TEXT";case 80:return this.pushState("ellipseText"),52;case 81:return this.popState(),55;case 82:return this.pushState("text"),54;case 83:return this.popState(),57;case 84:return this.pushState("text"),56;case 85:return 58;case 86:return this.pushState("text"),67;case 87:return this.popState(),64;case 88:return this.pushState("text"),63;case 89:return this.popState(),49;case 90:return this.pushState("text"),48;case 91:return this.popState(),69;case 92:return this.popState(),71;case 93:return 117;case 94:return this.pushState("trapText"),68;case 95:return this.pushState("trapText"),70;case 96:return 118;case 97:return 67;case 98:return 90;case 99:return"SEP";case 100:return 89;case 101:return 115;case 102:return 111;case 103:return 44;case 104:return 109;case 105:return 114;case 106:return 116;case 107:return this.popState(),62;case 108:return this.pushState("text"),62;case 109:return this.popState(),51;case 110:return this.pushState("text"),50;case 111:return this.popState(),31;case 112:return this.pushState("text"),29;case 113:return this.popState(),66;case 114:return this.pushState("text"),65;case 115:return"TEXT";case 116:return"QUOTE";case 117:return 9;case 118:return 10;case 119:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},shapeData:{rules:[8,11,12,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},callbackargs:{rules:[17,18,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},callbackname:{rules:[14,15,16,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},href:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},click:{rules:[21,24,33,34,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},dottedEdgeText:{rules:[21,24,74,76,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},thickEdgeText:{rules:[21,24,71,73,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},edgeText:{rules:[21,24,68,70,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},trapText:{rules:[21,24,77,80,82,84,88,90,91,92,93,94,95,108,110,112,114],inclusive:!1},ellipseText:{rules:[21,24,77,78,79,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},text:{rules:[21,24,77,80,81,82,83,84,87,88,89,90,94,95,107,108,109,110,111,112,113,114,115],inclusive:!1},vertex:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_descr:{rules:[3,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_title:{rules:[1,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},md_string:{rules:[19,20,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},string:{rules:[21,22,23,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,71,72,74,75,77,80,82,84,85,86,88,90,94,95,96,97,98,99,100,101,102,103,104,105,106,108,110,112,114,116,117,118,119],inclusive:!0}}};return no}();Ii.lexer=Pa;function Or(){this.yy={}}return X(Or,"Parser"),Or.prototype=Ii,Ii.Parser=Or,new Or}();Sct.parser=Sct;var dYn=Sct,fYn=Object.assign({},dYn);fYn.parse=e=>{const t=e.replace(/}\s*\n/g,`} `);return dYn.parse(t)};var mLi=fYn,bLi=X((e,t)=>{const r=ece,a=r(e,"r"),s=r(e,"g"),o=r(e,"b");return Z2(a,s,o,t)},"fade"),yLi=X(e=>`.label { font-family: ${e.fontFamily}; color: ${e.nodeTextColor||e.textColor}; } .cluster-label text { fill: ${e.titleColor}; } .cluster-label span { color: ${e.titleColor}; } .cluster-label span p { background-color: transparent; } .label text,span { fill: ${e.nodeTextColor||e.textColor}; color: ${e.nodeTextColor||e.textColor}; } .node rect, .node circle, .node ellipse, .node polygon, .node path { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: 1px; } .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label { text-anchor: middle; } // .flowchart-label .text-outer-tspan { // text-anchor: middle; // } // .flowchart-label .text-inner-tspan { // text-anchor: start; // } .node .katex path { fill: #000; stroke: #000; stroke-width: 1px; } .rough-node .label,.node .label, .image-shape .label, .icon-shape .label { text-align: center; } .node.clickable { cursor: pointer; } .root .anchor path { fill: ${e.lineColor} !important; stroke-width: 0; stroke: ${e.lineColor}; } .arrowheadPath { fill: ${e.arrowheadColor}; } .edgePath .path { stroke: ${e.lineColor}; stroke-width: 2.0px; } .flowchart-link { stroke: ${e.lineColor}; fill: none; } .edgeLabel { background-color: ${e.edgeLabelBackground}; p { background-color: ${e.edgeLabelBackground}; } rect { opacity: 0.5; background-color: ${e.edgeLabelBackground}; fill: ${e.edgeLabelBackground}; } text-align: center; } /* For html labels only */ .labelBkg { background-color: ${bLi(e.edgeLabelBackground,.5)}; // background-color: } .cluster rect { fill: ${e.clusterBkg}; stroke: ${e.clusterBorder}; stroke-width: 1px; } .cluster text { fill: ${e.titleColor}; } .cluster span { color: ${e.titleColor}; } /* .cluster div { color: ${e.titleColor}; } */ div.mermaidTooltip { position: absolute; text-align: center; max-width: 200px; padding: 2px; font-family: ${e.fontFamily}; font-size: 12px; background: ${e.tertiaryColor}; border: 1px solid ${e.border2}; border-radius: 2px; pointer-events: none; z-index: 100; } .flowchartTitleText { text-anchor: middle; font-size: 18px; fill: ${e.textColor}; } rect.text { fill: none; stroke-width: 0; } .icon-shape, .image-shape { background-color: ${e.edgeLabelBackground}; p { background-color: ${e.edgeLabelBackground}; padding: 2px; } rect { opacity: 0.5; background-color: ${e.edgeLabelBackground}; fill: ${e.edgeLabelBackground}; } text-align: center; } ${Lce()} `,"getStyles"),vLi=yLi,_Li={parser:mLi,get db(){return new dLi},renderer:gLi,styles:vLi,init:X(e=>{e.flowchart||(e.flowchart={}),e.layout&&yot({layout:e.layout}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,yot({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},"init")};const qgt=Object.freeze(Object.defineProperty({__proto__:null,diagram:_Li},Symbol.toStringTag,{value:"Module"}));var Tct=function(){var e=X(function(we,Ce,Ie,Le){for(Ie=Ie||{},Le=we.length;Le--;Ie[we[Le]]=Ce);return Ie},"o"),t=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],r=[1,10],a=[1,11],s=[1,12],o=[1,13],u=[1,20],h=[1,21],f=[1,22],p=[1,23],m=[1,24],b=[1,19],_=[1,25],w=[1,26],S=[1,18],C=[1,33],A=[1,34],k=[1,35],I=[1,36],N=[1,37],L=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],P=[1,42],M=[1,43],F=[1,52],U=[40,50,68,69],$=[1,63],G=[1,61],B=[1,58],Z=[1,62],z=[1,64],Y=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],W=[63,64,65,66,67],Q=[1,81],V=[1,80],j=[1,78],ee=[1,79],te=[6,10,42,47],ne=[6,10,13,41,42,47,48,49],se=[1,89],ie=[1,88],ge=[1,87],ce=[19,56],be=[1,98],ve=[1,97],De=[19,56,58,60],ye={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:X(function(Ce,Ie,Le,Fe,Ve,Oe,Dt){var ot=Oe.length-1;switch(Ve){case 1:break;case 2:this.$=[];break;case 3:Oe[ot-1].push(Oe[ot]),this.$=Oe[ot-1];break;case 4:case 5:this.$=Oe[ot];break;case 6:case 7:this.$=[];break;case 8:Fe.addEntity(Oe[ot-4]),Fe.addEntity(Oe[ot-2]),Fe.addRelationship(Oe[ot-4],Oe[ot],Oe[ot-2],Oe[ot-3]);break;case 9:Fe.addEntity(Oe[ot-8]),Fe.addEntity(Oe[ot-4]),Fe.addRelationship(Oe[ot-8],Oe[ot],Oe[ot-4],Oe[ot-5]),Fe.setClass([Oe[ot-8]],Oe[ot-6]),Fe.setClass([Oe[ot-4]],Oe[ot-2]);break;case 10:Fe.addEntity(Oe[ot-6]),Fe.addEntity(Oe[ot-2]),Fe.addRelationship(Oe[ot-6],Oe[ot],Oe[ot-2],Oe[ot-3]),Fe.setClass([Oe[ot-6]],Oe[ot-4]);break;case 11:Fe.addEntity(Oe[ot-6]),Fe.addEntity(Oe[ot-4]),Fe.addRelationship(Oe[ot-6],Oe[ot],Oe[ot-4],Oe[ot-5]),Fe.setClass([Oe[ot-4]],Oe[ot-2]);break;case 12:Fe.addEntity(Oe[ot-3]),Fe.addAttributes(Oe[ot-3],Oe[ot-1]);break;case 13:Fe.addEntity(Oe[ot-5]),Fe.addAttributes(Oe[ot-5],Oe[ot-1]),Fe.setClass([Oe[ot-5]],Oe[ot-3]);break;case 14:Fe.addEntity(Oe[ot-2]);break;case 15:Fe.addEntity(Oe[ot-4]),Fe.setClass([Oe[ot-4]],Oe[ot-2]);break;case 16:Fe.addEntity(Oe[ot]);break;case 17:Fe.addEntity(Oe[ot-2]),Fe.setClass([Oe[ot-2]],Oe[ot]);break;case 18:Fe.addEntity(Oe[ot-6],Oe[ot-4]),Fe.addAttributes(Oe[ot-6],Oe[ot-1]);break;case 19:Fe.addEntity(Oe[ot-8],Oe[ot-6]),Fe.addAttributes(Oe[ot-8],Oe[ot-1]),Fe.setClass([Oe[ot-8]],Oe[ot-3]);break;case 20:Fe.addEntity(Oe[ot-5],Oe[ot-3]);break;case 21:Fe.addEntity(Oe[ot-7],Oe[ot-5]),Fe.setClass([Oe[ot-7]],Oe[ot-2]);break;case 22:Fe.addEntity(Oe[ot-3],Oe[ot-1]);break;case 23:Fe.addEntity(Oe[ot-5],Oe[ot-3]),Fe.setClass([Oe[ot-5]],Oe[ot]);break;case 24:case 25:this.$=Oe[ot].trim(),Fe.setAccTitle(this.$);break;case 26:case 27:this.$=Oe[ot].trim(),Fe.setAccDescription(this.$);break;case 32:Fe.setDirection("TB");break;case 33:Fe.setDirection("BT");break;case 34:Fe.setDirection("RL");break;case 35:Fe.setDirection("LR");break;case 36:this.$=Oe[ot-3],Fe.addClass(Oe[ot-2],Oe[ot-1]);break;case 37:case 38:case 56:case 64:this.$=[Oe[ot]];break;case 39:case 40:this.$=Oe[ot-2].concat([Oe[ot]]);break;case 41:this.$=Oe[ot-2],Fe.setClass(Oe[ot-1],Oe[ot]);break;case 42:this.$=Oe[ot-3],Fe.addCssStyles(Oe[ot-2],Oe[ot-1]);break;case 43:this.$=[Oe[ot]];break;case 44:Oe[ot-2].push(Oe[ot]),this.$=Oe[ot-2];break;case 46:this.$=Oe[ot-1]+Oe[ot];break;case 54:case 76:case 77:this.$=Oe[ot].replace(/"/g,"");break;case 55:case 78:this.$=Oe[ot];break;case 57:Oe[ot].push(Oe[ot-1]),this.$=Oe[ot];break;case 58:this.$={type:Oe[ot-1],name:Oe[ot]};break;case 59:this.$={type:Oe[ot-2],name:Oe[ot-1],keys:Oe[ot]};break;case 60:this.$={type:Oe[ot-2],name:Oe[ot-1],comment:Oe[ot]};break;case 61:this.$={type:Oe[ot-3],name:Oe[ot-2],keys:Oe[ot-1],comment:Oe[ot]};break;case 62:case 63:case 66:this.$=Oe[ot];break;case 65:Oe[ot-2].push(Oe[ot]),this.$=Oe[ot-2];break;case 67:this.$=Oe[ot].replace(/"/g,"");break;case 68:this.$={cardA:Oe[ot],relType:Oe[ot-1],cardB:Oe[ot-2]};break;case 69:this.$=Fe.Cardinality.ZERO_OR_ONE;break;case 70:this.$=Fe.Cardinality.ZERO_OR_MORE;break;case 71:this.$=Fe.Cardinality.ONE_OR_MORE;break;case 72:this.$=Fe.Cardinality.ONLY_ONE;break;case 73:this.$=Fe.Cardinality.MD_PARENT;break;case 74:this.$=Fe.Identification.NON_IDENTIFYING;break;case 75:this.$=Fe.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:r,24:a,26:s,28:o,29:14,30:15,31:16,32:17,33:u,34:h,35:f,36:p,37:m,40:b,43:_,44:w,50:S},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:27,11:9,22:r,24:a,26:s,28:o,29:14,30:15,31:16,32:17,33:u,34:h,35:f,36:p,37:m,40:b,43:_,44:w,50:S},e(t,[2,5]),e(t,[2,6]),e(t,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:C,64:A,65:k,66:I,67:N}),{23:[1,38]},{25:[1,39]},{27:[1,40]},e(t,[2,27]),e(t,[2,28]),e(t,[2,29]),e(t,[2,30]),e(t,[2,31]),e(L,[2,54]),e(L,[2,55]),e(t,[2,32]),e(t,[2,33]),e(t,[2,34]),e(t,[2,35]),{16:41,40:P,41:M},{16:44,40:P,41:M},{16:45,40:P,41:M},e(t,[2,4]),{11:46,40:b,50:S},{16:47,40:P,41:M},{18:48,19:[1,49],51:50,52:51,56:F},{11:53,40:b,50:S},{62:54,68:[1,55],69:[1,56]},e(U,[2,69]),e(U,[2,70]),e(U,[2,71]),e(U,[2,72]),e(U,[2,73]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),{13:$,38:57,41:G,42:B,45:59,46:60,48:Z,49:z},e(Y,[2,37]),e(Y,[2,38]),{16:65,40:P,41:M,42:B},{13:$,38:66,41:G,42:B,45:59,46:60,48:Z,49:z},{13:[1,67],15:[1,68]},e(t,[2,17],{61:32,12:69,17:[1,70],42:B,63:C,64:A,65:k,66:I,67:N}),{19:[1,71]},e(t,[2,14]),{18:72,19:[2,56],51:50,52:51,56:F},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:C,64:A,65:k,66:I,67:N},e(W,[2,74]),e(W,[2,75]),{6:Q,10:V,39:77,42:j,47:ee},{40:[1,82],41:[1,83]},e(te,[2,43],{46:84,13:$,41:G,48:Z,49:z}),e(ne,[2,45]),e(ne,[2,50]),e(ne,[2,51]),e(ne,[2,52]),e(ne,[2,53]),e(t,[2,41],{42:B}),{6:Q,10:V,39:85,42:j,47:ee},{14:86,40:se,50:ie,70:ge},{16:90,40:P,41:M},{11:91,40:b,50:S},{18:92,19:[1,93],51:50,52:51,56:F},e(t,[2,12]),{19:[2,57]},e(ce,[2,58],{54:94,55:95,57:96,59:be,60:ve}),e([19,56,59,60],[2,63]),e(t,[2,22],{15:[1,100],17:[1,99]}),e([40,50],[2,68]),e(t,[2,36]),{13:$,41:G,45:101,46:60,48:Z,49:z},e(t,[2,47]),e(t,[2,48]),e(t,[2,49]),e(Y,[2,39]),e(Y,[2,40]),e(ne,[2,46]),e(t,[2,42]),e(t,[2,8]),e(t,[2,76]),e(t,[2,77]),e(t,[2,78]),{13:[1,102],42:B},{13:[1,104],15:[1,103]},{19:[1,105]},e(t,[2,15]),e(ce,[2,59],{55:106,58:[1,107],60:ve}),e(ce,[2,60]),e(De,[2,64]),e(ce,[2,67]),e(De,[2,66]),{18:108,19:[1,109],51:50,52:51,56:F},{16:110,40:P,41:M},e(te,[2,44],{46:84,13:$,41:G,48:Z,49:z}),{14:111,40:se,50:ie,70:ge},{16:112,40:P,41:M},{14:113,40:se,50:ie,70:ge},e(t,[2,13]),e(ce,[2,61]),{57:114,59:be},{19:[1,115]},e(t,[2,20]),e(t,[2,23],{17:[1,116],42:B}),e(t,[2,11]),{13:[1,117],42:B},e(t,[2,10]),e(De,[2,65]),e(t,[2,18]),{18:118,19:[1,119],51:50,52:51,56:F},{14:120,40:se,50:ie,70:ge},{19:[1,121]},e(t,[2,21]),e(t,[2,9]),e(t,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:X(function(Ce,Ie){if(Ie.recoverable)this.trace(Ce);else{var Le=new Error(Ce);throw Le.hash=Ie,Le}},"parseError"),parse:X(function(Ce){var Ie=this,Le=[0],Fe=[],Ve=[null],Oe=[],Dt=this.table,ot="",sn=0,Kt=0,Ft=2,Je=1,ht=Oe.slice.call(arguments,1),et=Object.create(this.lexer),qe={yy:{}};for(var He in this.yy)Object.prototype.hasOwnProperty.call(this.yy,He)&&(qe.yy[He]=this.yy[He]);et.setInput(Ce,qe.yy),qe.yy.lexer=et,qe.yy.parser=this,typeof et.yylloc>"u"&&(et.yylloc={});var Ge=et.yylloc;Oe.push(Ge);var Ye=et.options&&et.options.ranges;typeof qe.yy.parseError=="function"?this.parseError=qe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae(Wn){Le.length=Le.length-2*Wn,Ve.length=Ve.length-Wn,Oe.length=Oe.length-Wn}X(Ae,"popStack");function Xe(){var Wn;return Wn=Fe.pop()||et.lex()||Je,typeof Wn!="number"&&(Wn instanceof Array&&(Fe=Wn,Wn=Fe.pop()),Wn=Ie.symbols_[Wn]||Wn),Wn}X(Xe,"lex");for(var fe,Qe,Ke,mt,lt={},$t,Ut,Jt,wn;;){if(Qe=Le[Le.length-1],this.defaultActions[Qe]?Ke=this.defaultActions[Qe]:((fe===null||typeof fe>"u")&&(fe=Xe()),Ke=Dt[Qe]&&Dt[Qe][fe]),typeof Ke>"u"||!Ke.length||!Ke[0]){var Vn="";wn=[];for($t in Dt[Qe])this.terminals_[$t]&&$t>Ft&&wn.push("'"+this.terminals_[$t]+"'");et.showPosition?Vn="Parse error on line "+(sn+1)+`: `+et.showPosition()+` Expecting `+wn.join(", ")+", got '"+(this.terminals_[fe]||fe)+"'":Vn="Parse error on line "+(sn+1)+": Unexpected "+(fe==Je?"end of input":"'"+(this.terminals_[fe]||fe)+"'"),this.parseError(Vn,{text:et.match,token:this.terminals_[fe]||fe,line:et.yylineno,loc:Ge,expected:wn})}if(Ke[0]instanceof Array&&Ke.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Qe+", token: "+fe);switch(Ke[0]){case 1:Le.push(fe),Ve.push(et.yytext),Oe.push(et.yylloc),Le.push(Ke[1]),fe=null,Kt=et.yyleng,ot=et.yytext,sn=et.yylineno,Ge=et.yylloc;break;case 2:if(Ut=this.productions_[Ke[1]][1],lt.$=Ve[Ve.length-Ut],lt._$={first_line:Oe[Oe.length-(Ut||1)].first_line,last_line:Oe[Oe.length-1].last_line,first_column:Oe[Oe.length-(Ut||1)].first_column,last_column:Oe[Oe.length-1].last_column},Ye&&(lt._$.range=[Oe[Oe.length-(Ut||1)].range[0],Oe[Oe.length-1].range[1]]),mt=this.performAction.apply(lt,[ot,Kt,sn,qe.yy,Ke[1],Ve,Oe].concat(ht)),typeof mt<"u")return mt;Ut&&(Le=Le.slice(0,-1*Ut*2),Ve=Ve.slice(0,-1*Ut),Oe=Oe.slice(0,-1*Ut)),Le.push(this.productions_[Ke[1]][0]),Ve.push(lt.$),Oe.push(lt._$),Jt=Dt[Le[Le.length-2]][Le[Le.length-1]],Le.push(Jt);break;case 3:return!0}}return!0},"parse")},Ee=function(){var we={EOF:1,parseError:X(function(Ie,Le){if(this.yy.parser)this.yy.parser.parseError(Ie,Le);else throw new Error(Ie)},"parseError"),setInput:X(function(Ce,Ie){return this.yy=Ie||this.yy||{},this._input=Ce,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:X(function(){var Ce=this._input[0];this.yytext+=Ce,this.yyleng++,this.offset++,this.match+=Ce,this.matched+=Ce;var Ie=Ce.match(/(?:\r\n?|\n).*/g);return Ie?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ce},"input"),unput:X(function(Ce){var Ie=Ce.length,Le=Ce.split(/(?:\r\n?|\n)/g);this._input=Ce+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ie),this.offset-=Ie;var Fe=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Le.length-1&&(this.yylineno-=Le.length-1);var Ve=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Le?(Le.length===Fe.length?this.yylloc.first_column:0)+Fe[Fe.length-Le.length].length-Le[0].length:this.yylloc.first_column-Ie},this.options.ranges&&(this.yylloc.range=[Ve[0],Ve[0]+this.yyleng-Ie]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(Ce){this.unput(this.match.slice(Ce))},"less"),pastInput:X(function(){var Ce=this.matched.substr(0,this.matched.length-this.match.length);return(Ce.length>20?"...":"")+Ce.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var Ce=this.match;return Ce.length<20&&(Ce+=this._input.substr(0,20-Ce.length)),(Ce.substr(0,20)+(Ce.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var Ce=this.pastInput(),Ie=new Array(Ce.length+1).join("-");return Ce+this.upcomingInput()+` `+Ie+"^"},"showPosition"),test_match:X(function(Ce,Ie){var Le,Fe,Ve;if(this.options.backtrack_lexer&&(Ve={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Ve.yylloc.range=this.yylloc.range.slice(0))),Fe=Ce[0].match(/(?:\r\n?|\n).*/g),Fe&&(this.yylineno+=Fe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Fe?Fe[Fe.length-1].length-Fe[Fe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ce[0].length},this.yytext+=Ce[0],this.match+=Ce[0],this.matches=Ce,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Ce[0].length),this.matched+=Ce[0],Le=this.performAction.call(this,this.yy,this,Ie,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Le)return Le;if(this._backtrack){for(var Oe in Ve)this[Oe]=Ve[Oe];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ce,Ie,Le,Fe;this._more||(this.yytext="",this.match="");for(var Ve=this._currentRules(),Oe=0;OeIe[0].length)){if(Ie=Le,Fe=Oe,this.options.backtrack_lexer){if(Ce=this.test_match(Le,Ve[Oe]),Ce!==!1)return Ce;if(this._backtrack){Ie=!1;continue}else return!1}else if(!this.options.flex)break}return Ie?(Ce=this.test_match(Ie,Ve[Fe]),Ce!==!1?Ce:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var Ie=this.next();return Ie||this.lex()},"lex"),begin:X(function(Ie){this.conditionStack.push(Ie)},"begin"),popState:X(function(){var Ie=this.conditionStack.length-1;return Ie>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(Ie){return Ie=this.conditionStack.length-1-Math.abs(Ie||0),Ie>=0?this.conditionStack[Ie]:"INITIAL"},"topState"),pushState:X(function(Ie){this.begin(Ie)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function(Ie,Le,Fe,Ve){switch(Fe){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 70;case 16:return 4;case 17:return this.begin("block"),17;case 18:return 49;case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 59;case 25:return 56;case 26:return 56;case 27:return 60;case 28:break;case 29:return this.popState(),19;case 30:return Le.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 35:break;case 36:return 13;case 37:return 42;case 38:return 49;case 39:return this.begin("style"),37;case 40:return 43;case 41:return 63;case 42:return 65;case 43:return 65;case 44:return 65;case 45:return 63;case 46:return 63;case 47:return 64;case 48:return 64;case 49:return 64;case 50:return 64;case 51:return 64;case 52:return 65;case 53:return 64;case 54:return 65;case 55:return 66;case 56:return 66;case 57:return 66;case 58:return 66;case 59:return 63;case 60:return 64;case 61:return 65;case 62:return 67;case 63:return 68;case 64:return 69;case 65:return 69;case 66:return 68;case 67:return 68;case 68:return 68;case 69:return 41;case 70:return 47;case 71:return 40;case 72:return 48;case 73:return Le.yytext[0];case 74:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:[0-9])/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,69,70],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,71,72,73,74],inclusive:!0}}};return we}();ye.lexer=Ee;function he(){this.yy={}}return X(he,"Parser"),he.prototype=ye,ye.Parser=he,new he}();Tct.parser=Tct;var wLi=Tct,TY,ELi=(TY=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=N1,this.getAccTitle=Mp,this.setAccDescription=Pp,this.getAccDescription=Bp,this.setDiagramTitle=Og,this.getDiagramTitle=P1,this.getConfig=X(()=>nn().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}addEntity(t,r=""){var a;return this.entities.has(t)?!((a=this.entities.get(t))!=null&&a.alias)&&r&&(this.entities.get(t).alias=r,it.info(`Add alias '${r}' to entity '${t}'`)):(this.entities.set(t,{id:`entity-${t}-${this.entities.size}`,label:t,attributes:[],alias:r,shape:"erBox",look:nn().look??"default",cssClasses:"default",cssStyles:[]}),it.info("Added new entity :",t)),this.entities.get(t)}getEntity(t){return this.entities.get(t)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(t,r){const a=this.addEntity(t);let s;for(s=r.length-1;s>=0;s--)r[s].keys||(r[s].keys=[]),r[s].comment||(r[s].comment=""),a.attributes.push(r[s]),it.debug("Added attribute ",r[s].name)}addRelationship(t,r,a,s){const o=this.entities.get(t),u=this.entities.get(a);if(!o||!u)return;const h={entityA:o.id,roleA:r,entityB:u.id,relSpec:s};this.relationships.push(h),it.debug("Added new relationship :",h)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(t){this.direction=t}getCompiledStyles(t){let r=[];for(const a of t){const s=this.classes.get(a);s!=null&&s.styles&&(r=[...r,...s.styles??[]].map(o=>o.trim())),s!=null&&s.textStyles&&(r=[...r,...s.textStyles??[]].map(o=>o.trim()))}return r}addCssStyles(t,r){for(const a of t){const s=this.entities.get(a);if(!r||!s)return;for(const o of r)s.cssStyles.push(o)}}addClass(t,r){t.forEach(a=>{let s=this.classes.get(a);s===void 0&&(s={id:a,styles:[],textStyles:[]},this.classes.set(a,s)),r&&r.forEach(function(o){if(/color/.exec(o)){const u=o.replace("fill","bgFill");s.textStyles.push(u)}s.styles.push(o)})})}setClass(t,r){for(const a of t){const s=this.entities.get(a);if(s)for(const o of r)s.cssClasses+=" "+o}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],M1()}getData(){const t=[],r=[],a=nn();for(const o of this.entities.keys()){const u=this.entities.get(o);u&&(u.cssCompiledStyles=this.getCompiledStyles(u.cssClasses.split(" ")),t.push(u))}let s=0;for(const o of this.relationships){const u={id:XV(o.entityA,o.entityB,{prefix:"id",counter:s++}),type:"normal",curve:"basis",start:o.entityA,end:o.entityB,label:o.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:o.relSpec.cardB.toLowerCase(),arrowTypeEnd:o.relSpec.cardA.toLowerCase(),pattern:o.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:a.look};r.push(u)}return{nodes:t,edges:r,other:{},config:a,direction:"TB"}}},X(TY,"ErDB"),TY),pYn={};KCe(pYn,{draw:()=>xLi});var xLi=X(async function(e,t,r,a){it.info("REF0:"),it.info("Drawing er diagram (unified)",t);const{securityLevel:s,er:o,layout:u}=nn(),h=a.db.getData(),f=eK(t,s);h.type=a.type,h.layoutAlgorithm=hce(u),h.config.flowchart.nodeSpacing=(o==null?void 0:o.nodeSpacing)||140,h.config.flowchart.rankSpacing=(o==null?void 0:o.rankSpacing)||80,h.direction=a.db.getDirection(),h.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],h.diagramId=t,await $W(h,f),h.layoutAlgorithm==="elk"&&f.select(".edges").lower();const p=f.selectAll('[id*="-background"]');Array.from(p).length>0&&p.each(function(){const b=gn(this),w=b.attr("id").replace("-background",""),S=f.select(`#${CSS.escape(w)}`);if(!S.empty()){const C=S.attr("transform");b.attr("transform",C)}});const m=8;Vo.insertTitle(f,"erDiagramTitleText",(o==null?void 0:o.titleTopMargin)??25,a.db.getDiagramTitle()),U$(f,m,"erDiagram",(o==null?void 0:o.useMaxWidth)??!0)},"draw"),SLi=X((e,t)=>{const r=ece,a=r(e,"r"),s=r(e,"g"),o=r(e,"b");return Z2(a,s,o,t)},"fade"),TLi=X(e=>` .entityBox { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; } .relationshipLabelBox { fill: ${e.tertiaryColor}; opacity: 0.7; background-color: ${e.tertiaryColor}; rect { opacity: 0.5; } } .labelBkg { background-color: ${SLi(e.tertiaryColor,.5)}; } .edgeLabel .label { fill: ${e.nodeBorder}; font-size: 14px; } .label { font-family: ${e.fontFamily}; color: ${e.nodeTextColor||e.textColor}; } .edge-pattern-dashed { stroke-dasharray: 8,8; } .node rect, .node circle, .node ellipse, .node polygon { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: 1px; } .relationshipLine { stroke: ${e.lineColor}; stroke-width: 1; fill: none; } .marker { fill: none !important; stroke: ${e.lineColor} !important; stroke-width: 1; } `,"getStyles"),CLi=TLi,ALi={parser:wLi,get db(){return new ELi},renderer:pYn,styles:CLi};const kLi=Object.freeze(Object.defineProperty({__proto__:null,diagram:ALi},Symbol.toStringTag,{value:"Module"}));function z$(e,t){var r,a,s;e.accDescr&&((r=t.setAccDescription)==null||r.call(t,e.accDescr)),e.accTitle&&((a=t.setAccTitle)==null||a.call(t,e.accTitle)),e.title&&((s=t.setDiagramTitle)==null||s.call(t,e.title))}X(z$,"populateCommonDb");var CY,gYn=(CY=class{constructor(t){this.init=t,this.records=this.init()}reset(){this.records=this.init()}},X(CY,"ImperativeState"),CY);function Eb(e){return typeof e=="object"&&e!==null&&typeof e.$type=="string"}function eA(e){return typeof e=="object"&&e!==null&&typeof e.$refText=="string"}function RLi(e){return typeof e=="object"&&e!==null&&typeof e.name=="string"&&typeof e.type=="string"&&typeof e.path=="string"}function Oxe(e){return typeof e=="object"&&e!==null&&Eb(e.container)&&eA(e.reference)&&typeof e.message=="string"}class mYn{constructor(){this.subtypes={},this.allSubtypes={}}isInstance(t,r){return Eb(t)&&this.isSubtype(t.$type,r)}isSubtype(t,r){if(t===r)return!0;let a=this.subtypes[t];a||(a=this.subtypes[t]={});const s=a[r];if(s!==void 0)return s;{const o=this.computeIsSubtype(t,r);return a[r]=o,o}}getAllSubTypes(t){const r=this.allSubtypes[t];if(r)return r;{const a=this.getAllTypes(),s=[];for(const o of a)this.isSubtype(o,t)&&s.push(o);return this.allSubtypes[t]=s,s}}}function Zoe(e){return typeof e=="object"&&e!==null&&Array.isArray(e.content)}function bYn(e){return typeof e=="object"&&e!==null&&typeof e.tokenType=="object"}function yYn(e){return Zoe(e)&&typeof e.fullText=="string"}class ym{constructor(t,r){this.startFn=t,this.nextFn=r}iterator(){const t={state:this.startFn(),next:()=>this.nextFn(t.state),[Symbol.iterator]:()=>t};return t}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const t=this.iterator();let r=0,a=t.next();for(;!a.done;)r++,a=t.next();return r}toArray(){const t=[],r=this.iterator();let a;do a=r.next(),a.value!==void 0&&t.push(a.value);while(!a.done);return t}toSet(){return new Set(this)}toMap(t,r){const a=this.map(s=>[t?t(s):s,r?r(s):s]);return new Map(a)}toString(){return this.join()}concat(t){return new ym(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),r=>{let a;if(!r.firstDone){do if(a=this.nextFn(r.first),!a.done)return a;while(!a.done);r.firstDone=!0}do if(a=r.iterator.next(),!a.done)return a;while(!a.done);return Cw})}join(t=","){const r=this.iterator();let a="",s,o=!1;do s=r.next(),s.done||(o&&(a+=t),a+=ILi(s.value)),o=!0;while(!s.done);return a}indexOf(t,r=0){const a=this.iterator();let s=0,o=a.next();for(;!o.done;){if(s>=r&&o.value===t)return s;o=a.next(),s++}return-1}every(t){const r=this.iterator();let a=r.next();for(;!a.done;){if(!t(a.value))return!1;a=r.next()}return!0}some(t){const r=this.iterator();let a=r.next();for(;!a.done;){if(t(a.value))return!0;a=r.next()}return!1}forEach(t){const r=this.iterator();let a=0,s=r.next();for(;!s.done;)t(s.value,a),s=r.next(),a++}map(t){return new ym(this.startFn,r=>{const{done:a,value:s}=this.nextFn(r);return a?Cw:{done:!1,value:t(s)}})}filter(t){return new ym(this.startFn,r=>{let a;do if(a=this.nextFn(r),!a.done&&t(a.value))return a;while(!a.done);return Cw})}nonNullable(){return this.filter(t=>t!=null)}reduce(t,r){const a=this.iterator();let s=r,o=a.next();for(;!o.done;)s===void 0?s=o.value:s=t(s,o.value),o=a.next();return s}reduceRight(t,r){return this.recursiveReduce(this.iterator(),t,r)}recursiveReduce(t,r,a){const s=t.next();if(s.done)return a;const o=this.recursiveReduce(t,r,a);return o===void 0?s.value:r(o,s.value)}find(t){const r=this.iterator();let a=r.next();for(;!a.done;){if(t(a.value))return a.value;a=r.next()}}findIndex(t){const r=this.iterator();let a=0,s=r.next();for(;!s.done;){if(t(s.value))return a;s=r.next(),a++}return-1}includes(t){const r=this.iterator();let a=r.next();for(;!a.done;){if(a.value===t)return!0;a=r.next()}return!1}flatMap(t){return new ym(()=>({this:this.startFn()}),r=>{do{if(r.iterator){const o=r.iterator.next();if(o.done)r.iterator=void 0;else return o}const{done:a,value:s}=this.nextFn(r.this);if(!a){const o=t(s);if(iTe(o))r.iterator=o[Symbol.iterator]();else return{done:!1,value:o}}}while(r.iterator);return Cw})}flat(t){if(t===void 0&&(t=1),t<=0)return this;const r=t>1?this.flat(t-1):this;return new ym(()=>({this:r.startFn()}),a=>{do{if(a.iterator){const u=a.iterator.next();if(u.done)a.iterator=void 0;else return u}const{done:s,value:o}=r.nextFn(a.this);if(!s)if(iTe(o))a.iterator=o[Symbol.iterator]();else return{done:!1,value:o}}while(a.iterator);return Cw})}head(){const r=this.iterator().next();if(!r.done)return r.value}tail(t=1){return new ym(()=>{const r=this.startFn();for(let a=0;a({size:0,state:this.startFn()}),r=>(r.size++,r.size>t?Cw:this.nextFn(r.state)))}distinct(t){return new ym(()=>({set:new Set,internalState:this.startFn()}),r=>{let a;do if(a=this.nextFn(r.internalState),!a.done){const s=t?t(a.value):a.value;if(!r.set.has(s))return r.set.add(s),a}while(!a.done);return Cw})}exclude(t,r){const a=new Set;for(const s of t){const o=r?r(s):s;a.add(o)}return this.filter(s=>{const o=r?r(s):s;return!a.has(o)})}}function ILi(e){return typeof e=="string"?e:typeof e>"u"?"undefined":typeof e.toString=="function"?e.toString():Object.prototype.toString.call(e)}function iTe(e){return!!e&&typeof e[Symbol.iterator]=="function"}const NLi=new ym(()=>{},()=>Cw),Cw=Object.freeze({done:!0,value:void 0});function wm(...e){if(e.length===1){const t=e[0];if(t instanceof ym)return t;if(iTe(t))return new ym(()=>t[Symbol.iterator](),r=>r.next());if(typeof t.length=="number")return new ym(()=>({index:0}),r=>r.index1?new ym(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){const r=t.iterator.next();if(!r.done)return r;t.iterator=void 0}if(t.array){if(t.arrIndex({iterators:a!=null&&a.includeRoot?[[t][Symbol.iterator]()]:[r(t)[Symbol.iterator]()],pruned:!1}),s=>{for(s.pruned&&(s.iterators.pop(),s.pruned=!1);s.iterators.length>0;){const u=s.iterators[s.iterators.length-1].next();if(u.done)s.iterators.pop();else return s.iterators.push(r(u.value)[Symbol.iterator]()),u}return Cw})}iterator(){const t={state:this.startFn(),next:()=>this.nextFn(t.state),prune:()=>{t.state.pruned=!0},[Symbol.iterator]:()=>t};return t}}var Cct;(function(e){function t(o){return o.reduce((u,h)=>u+h,0)}e.sum=t;function r(o){return o.reduce((u,h)=>u*h,0)}e.product=r;function a(o){return o.reduce((u,h)=>Math.min(u,h))}e.min=a;function s(o){return o.reduce((u,h)=>Math.max(u,h))}e.max=s})(Cct||(Cct={}));function Act(e){return new Hgt(e,t=>Zoe(t)?t.content:[],{includeRoot:!0})}function OLi(e,t){for(;e.container;)if(e=e.container,e===t)return!0;return!1}function kct(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}function aTe(e){if(!e)return;const{offset:t,end:r,range:a}=e;return{range:a,offset:t,end:r,length:r-t}}var m7;(function(e){e[e.Before=0]="Before",e[e.After=1]="After",e[e.OverlapFront=2]="OverlapFront",e[e.OverlapBack=3]="OverlapBack",e[e.Inside=4]="Inside",e[e.Outside=5]="Outside"})(m7||(m7={}));function LLi(e,t){if(e.end.linet.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return m7.After;const r=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,a=e.end.linem7.After}const MLi=/^[\w\p{L}]$/u;function PLi(e,t){if(e){const r=BLi(e,!0);if(r&&vSn(r,t))return r;if(yYn(e)){const a=e.content.findIndex(s=>!s.hidden);for(let s=a-1;s>=0;s--){const o=e.content[s];if(vSn(o,t))return o}}}}function vSn(e,t){return bYn(e)&&t.includes(e.tokenType.name)}function BLi(e,t=!0){for(;e.container;){const r=e.container;let a=r.content.indexOf(e);for(;a>0;){a--;const s=r.content[a];if(t||!s.hidden)return s}e=r}}class vYn extends Error{constructor(t,r){super(t?`${r} at ${t.range.start.line}:${t.range.start.character}`:r)}}function Dce(e){throw new Error("Error! The input value was not handled.")}const zwe="AbstractRule",Gwe="AbstractType",vit="Condition",_Sn="TypeDefinition",_it="ValueLiteral",Kie="AbstractElement";function FLi(e){return Gu.isInstance(e,Kie)}const qwe="ArrayLiteral",Hwe="ArrayType",Xie="BooleanLiteral";function $Li(e){return Gu.isInstance(e,Xie)}const Qie="Conjunction";function ULi(e){return Gu.isInstance(e,Qie)}const Zie="Disjunction";function zLi(e){return Gu.isInstance(e,Zie)}const Vwe="Grammar",wit="GrammarImport",Jie="InferredType";function _Yn(e){return Gu.isInstance(e,Jie)}const eae="Interface";function wYn(e){return Gu.isInstance(e,eae)}const Eit="NamedArgument",tae="Negation";function GLi(e){return Gu.isInstance(e,tae)}const Ywe="NumberLiteral",jwe="Parameter",nae="ParameterReference";function qLi(e){return Gu.isInstance(e,nae)}const rae="ParserRule";function AS(e){return Gu.isInstance(e,rae)}const Wwe="ReferenceType",Lxe="ReturnType";function HLi(e){return Gu.isInstance(e,Lxe)}const iae="SimpleType";function VLi(e){return Gu.isInstance(e,iae)}const Kwe="StringLiteral",mV="TerminalRule";function G$(e){return Gu.isInstance(e,mV)}const aae="Type";function EYn(e){return Gu.isInstance(e,aae)}const xit="TypeAttribute",Xwe="UnionType",sae="Action";function _ke(e){return Gu.isInstance(e,sae)}const oae="Alternatives";function xYn(e){return Gu.isInstance(e,oae)}const lae="Assignment";function e$(e){return Gu.isInstance(e,lae)}const cae="CharacterRange";function YLi(e){return Gu.isInstance(e,cae)}const uae="CrossReference";function Vgt(e){return Gu.isInstance(e,uae)}const hae="EndOfFile";function jLi(e){return Gu.isInstance(e,hae)}const dae="Group";function Ygt(e){return Gu.isInstance(e,dae)}const fae="Keyword";function t$(e){return Gu.isInstance(e,fae)}const pae="NegatedToken";function WLi(e){return Gu.isInstance(e,pae)}const gae="RegexToken";function KLi(e){return Gu.isInstance(e,gae)}const mae="RuleCall";function n$(e){return Gu.isInstance(e,mae)}const bae="TerminalAlternatives";function XLi(e){return Gu.isInstance(e,bae)}const yae="TerminalGroup";function QLi(e){return Gu.isInstance(e,yae)}const vae="TerminalRuleCall";function ZLi(e){return Gu.isInstance(e,vae)}const _ae="UnorderedGroup";function SYn(e){return Gu.isInstance(e,_ae)}const wae="UntilToken";function JLi(e){return Gu.isInstance(e,wae)}const Eae="Wildcard";function eDi(e){return Gu.isInstance(e,Eae)}class TYn extends mYn{getAllTypes(){return[Kie,zwe,Gwe,sae,oae,qwe,Hwe,lae,Xie,cae,vit,Qie,uae,Zie,hae,Vwe,wit,dae,Jie,eae,fae,Eit,pae,tae,Ywe,jwe,nae,rae,Wwe,gae,Lxe,mae,iae,Kwe,bae,yae,mV,vae,aae,xit,_Sn,Xwe,_ae,wae,_it,Eae]}computeIsSubtype(t,r){switch(t){case sae:case oae:case lae:case cae:case uae:case hae:case dae:case fae:case pae:case gae:case mae:case bae:case yae:case vae:case _ae:case wae:case Eae:return this.isSubtype(Kie,r);case qwe:case Ywe:case Kwe:return this.isSubtype(_it,r);case Hwe:case Wwe:case iae:case Xwe:return this.isSubtype(_Sn,r);case Xie:return this.isSubtype(vit,r)||this.isSubtype(_it,r);case Qie:case Zie:case tae:case nae:return this.isSubtype(vit,r);case Jie:case eae:case aae:return this.isSubtype(Gwe,r);case rae:return this.isSubtype(zwe,r)||this.isSubtype(Gwe,r);case mV:return this.isSubtype(zwe,r);default:return!1}}getReferenceType(t){const r=`${t.container.$type}:${t.property}`;switch(r){case"Action:type":case"CrossReference:type":case"Interface:superTypes":case"ParserRule:returnType":case"SimpleType:typeRef":return Gwe;case"Grammar:hiddenTokens":case"ParserRule:hiddenTokens":case"RuleCall:rule":return zwe;case"Grammar:usedGrammars":return Vwe;case"NamedArgument:parameter":case"ParameterReference:parameter":return jwe;case"TerminalRuleCall:rule":return mV;default:throw new Error(`${r} is not a valid reference id.`)}}getTypeMetaData(t){switch(t){case Kie:return{name:Kie,properties:[{name:"cardinality"},{name:"lookahead"}]};case qwe:return{name:qwe,properties:[{name:"elements",defaultValue:[]}]};case Hwe:return{name:Hwe,properties:[{name:"elementType"}]};case Xie:return{name:Xie,properties:[{name:"true",defaultValue:!1}]};case Qie:return{name:Qie,properties:[{name:"left"},{name:"right"}]};case Zie:return{name:Zie,properties:[{name:"left"},{name:"right"}]};case Vwe:return{name:Vwe,properties:[{name:"definesHiddenTokens",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"imports",defaultValue:[]},{name:"interfaces",defaultValue:[]},{name:"isDeclared",defaultValue:!1},{name:"name"},{name:"rules",defaultValue:[]},{name:"types",defaultValue:[]},{name:"usedGrammars",defaultValue:[]}]};case wit:return{name:wit,properties:[{name:"path"}]};case Jie:return{name:Jie,properties:[{name:"name"}]};case eae:return{name:eae,properties:[{name:"attributes",defaultValue:[]},{name:"name"},{name:"superTypes",defaultValue:[]}]};case Eit:return{name:Eit,properties:[{name:"calledByName",defaultValue:!1},{name:"parameter"},{name:"value"}]};case tae:return{name:tae,properties:[{name:"value"}]};case Ywe:return{name:Ywe,properties:[{name:"value"}]};case jwe:return{name:jwe,properties:[{name:"name"}]};case nae:return{name:nae,properties:[{name:"parameter"}]};case rae:return{name:rae,properties:[{name:"dataType"},{name:"definesHiddenTokens",defaultValue:!1},{name:"definition"},{name:"entry",defaultValue:!1},{name:"fragment",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"inferredType"},{name:"name"},{name:"parameters",defaultValue:[]},{name:"returnType"},{name:"wildcard",defaultValue:!1}]};case Wwe:return{name:Wwe,properties:[{name:"referenceType"}]};case Lxe:return{name:Lxe,properties:[{name:"name"}]};case iae:return{name:iae,properties:[{name:"primitiveType"},{name:"stringType"},{name:"typeRef"}]};case Kwe:return{name:Kwe,properties:[{name:"value"}]};case mV:return{name:mV,properties:[{name:"definition"},{name:"fragment",defaultValue:!1},{name:"hidden",defaultValue:!1},{name:"name"},{name:"type"}]};case aae:return{name:aae,properties:[{name:"name"},{name:"type"}]};case xit:return{name:xit,properties:[{name:"defaultValue"},{name:"isOptional",defaultValue:!1},{name:"name"},{name:"type"}]};case Xwe:return{name:Xwe,properties:[{name:"types",defaultValue:[]}]};case sae:return{name:sae,properties:[{name:"cardinality"},{name:"feature"},{name:"inferredType"},{name:"lookahead"},{name:"operator"},{name:"type"}]};case oae:return{name:oae,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case lae:return{name:lae,properties:[{name:"cardinality"},{name:"feature"},{name:"lookahead"},{name:"operator"},{name:"terminal"}]};case cae:return{name:cae,properties:[{name:"cardinality"},{name:"left"},{name:"lookahead"},{name:"right"}]};case uae:return{name:uae,properties:[{name:"cardinality"},{name:"deprecatedSyntax",defaultValue:!1},{name:"lookahead"},{name:"terminal"},{name:"type"}]};case hae:return{name:hae,properties:[{name:"cardinality"},{name:"lookahead"}]};case dae:return{name:dae,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"guardCondition"},{name:"lookahead"}]};case fae:return{name:fae,properties:[{name:"cardinality"},{name:"lookahead"},{name:"value"}]};case pae:return{name:pae,properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case gae:return{name:gae,properties:[{name:"cardinality"},{name:"lookahead"},{name:"regex"}]};case mae:return{name:mae,properties:[{name:"arguments",defaultValue:[]},{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case bae:return{name:bae,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case yae:return{name:yae,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case vae:return{name:vae,properties:[{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case _ae:return{name:_ae,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case wae:return{name:wae,properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case Eae:return{name:Eae,properties:[{name:"cardinality"},{name:"lookahead"}]};default:return{name:t,properties:[]}}}}const Gu=new TYn;function tDi(e){for(const[t,r]of Object.entries(e))t.startsWith("$")||(Array.isArray(r)?r.forEach((a,s)=>{Eb(a)&&(a.$container=e,a.$containerProperty=t,a.$containerIndex=s)}):Eb(r)&&(r.$container=e,r.$containerProperty=t))}function wke(e,t){let r=e;for(;r;){if(t(r))return r;r=r.$container}}function h9(e){const r=Rct(e).$document;if(!r)throw new Error("AST node has no document.");return r}function Rct(e){for(;e.$container;)e=e.$container;return e}function jgt(e,t){if(!e)throw new Error("Node must be an AstNode.");const r=t==null?void 0:t.range;return new ym(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),a=>{for(;a.keyIndexjgt(r,t))}function aY(e,t){if(!e)throw new Error("Root node must be an AstNode.");return new Hgt(e,r=>jgt(r,t),{includeRoot:!0})}function wSn(e,t){var r;if(!t)return!0;const a=(r=e.$cstNode)===null||r===void 0?void 0:r.range;return a?DLi(a,t):!1}function CYn(e){return new ym(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(t){return{begin:t,end:this.idx}}}class Eke{visitChildren(t){for(const r in t){const a=t[r];t.hasOwnProperty(r)&&(a.type!==void 0?this.visit(a):Array.isArray(a)&&a.forEach(s=>{this.visit(s)},this))}}visit(t){switch(t.type){case"Pattern":this.visitPattern(t);break;case"Flags":this.visitFlags(t);break;case"Disjunction":this.visitDisjunction(t);break;case"Alternative":this.visitAlternative(t);break;case"StartAnchor":this.visitStartAnchor(t);break;case"EndAnchor":this.visitEndAnchor(t);break;case"WordBoundary":this.visitWordBoundary(t);break;case"NonWordBoundary":this.visitNonWordBoundary(t);break;case"Lookahead":this.visitLookahead(t);break;case"NegativeLookahead":this.visitNegativeLookahead(t);break;case"Character":this.visitCharacter(t);break;case"Set":this.visitSet(t);break;case"Group":this.visitGroup(t);break;case"GroupBackReference":this.visitGroupBackReference(t);break;case"Quantifier":this.visitQuantifier(t);break}this.visitChildren(t)}visitPattern(t){}visitFlags(t){}visitDisjunction(t){}visitAlternative(t){}visitStartAnchor(t){}visitEndAnchor(t){}visitWordBoundary(t){}visitNonWordBoundary(t){}visitLookahead(t){}visitNegativeLookahead(t){}visitCharacter(t){}visitSet(t){}visitGroup(t){}visitGroupBackReference(t){}visitQuantifier(t){}}const sDi=/\r?\n/gm,oDi=new kYn;class lDi extends Eke{constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(t){this.multiline=!1,this.regex=t,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(t){t.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(t){const r=String.fromCharCode(t.value);if(!this.multiline&&r===` `&&(this.multiline=!0),t.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const a=xke(r);this.endRegexpStack.push(a),this.isStarting&&(this.startRegexp+=a)}}visitSet(t){if(!this.multiline){const r=this.regex.substring(t.loc.begin,t.loc.end),a=new RegExp(r);this.multiline=!!` `.match(a)}if(t.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const r=this.regex.substring(t.loc.begin,t.loc.end);this.endRegexpStack.push(r),this.isStarting&&(this.startRegexp+=r)}}visitChildren(t){t.type==="Group"&&t.quantifier||super.visitChildren(t)}}const Tit=new lDi;function cDi(e){try{return typeof e=="string"&&(e=new RegExp(e)),e=e.toString(),Tit.reset(e),Tit.visit(oDi.pattern(e)),Tit.multiline}catch{return!1}}const uDi=`\f \r \v              \u2028\u2029   \uFEFF`.split("");function Ict(e){const t=typeof e=="string"?new RegExp(e):e;return uDi.some(r=>t.test(r))}function xke(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function hDi(e){return Array.prototype.map.call(e,t=>/\w/.test(t)?`[${t.toLowerCase()}${t.toUpperCase()}]`:xke(t)).join("")}function dDi(e,t){const r=fDi(e),a=t.match(r);return!!a&&a[0].length>0}function fDi(e){typeof e=="string"&&(e=new RegExp(e));const t=e,r=e.source;let a=0;function s(){let o="",u;function h(p){o+=r.substr(a,p),a+=p}function f(p){o+="(?:"+r.substr(a,p)+"|$)",a+=p}for(;a",a)-a+1);break;default:f(2);break}break;case"[":u=/\[(?:\\.|.)*?\]/g,u.lastIndex=a,u=u.exec(r)||[],f(u[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":h(1);break;case"{":u=/\{\d+,?\d*\}/g,u.lastIndex=a,u=u.exec(r),u?h(u[0].length):f(1);break;case"(":if(r[a+1]==="?")switch(r[a+2]){case":":o+="(?:",a+=3,o+=s()+"|$)";break;case"=":o+="(?=",a+=3,o+=s()+")";break;case"!":u=a,a+=3,s(),o+=r.substr(u,a-u);break;case"<":switch(r[a+3]){case"=":case"!":u=a,a+=4,s(),o+=r.substr(u,a-u);break;default:h(r.indexOf(">",a)-a+1),o+=s()+"|$)";break}break}else h(1),o+=s()+"|$)";break;case")":return++a,o;default:f(1);break}return o}return new RegExp(s(),e.flags)}function pDi(e){return e.rules.find(t=>AS(t)&&t.entry)}function gDi(e){return e.rules.filter(t=>G$(t)&&t.hidden)}function RYn(e,t){const r=new Set,a=pDi(e);if(!a)return new Set(e.rules);const s=[a].concat(gDi(e));for(const u of s)IYn(u,r,t);const o=new Set;for(const u of e.rules)(r.has(u.name)||G$(u)&&u.hidden)&&o.add(u);return o}function IYn(e,t,r){t.add(e.name),Mce(e).forEach(a=>{if(n$(a)||r){const s=a.rule.ref;s&&!t.has(s.name)&&IYn(s,t,r)}})}function mDi(e){if(e.terminal)return e.terminal;if(e.type.ref){const t=OYn(e.type.ref);return t==null?void 0:t.terminal}}function bDi(e){return e.hidden&&!Ict(Qgt(e))}function yDi(e,t){return!e||!t?[]:Wgt(e,t,e.astNode,!0)}function NYn(e,t,r){if(!e||!t)return;const a=Wgt(e,t,e.astNode,!0);if(a.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,a.length-1)):r=0,a[r]}function Wgt(e,t,r,a){if(!a){const s=wke(e.grammarSource,e$);if(s&&s.feature===t)return[e]}return Zoe(e)&&e.astNode===r?e.content.flatMap(s=>Wgt(s,t,r,!1)):[]}function vDi(e,t,r){if(!e)return;const a=_Di(e,t,e==null?void 0:e.astNode);if(a.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,a.length-1)):r=0,a[r]}function _Di(e,t,r){if(e.astNode!==r)return[];if(t$(e.grammarSource)&&e.grammarSource.value===t)return[e];const a=Act(e).iterator();let s;const o=[];do if(s=a.next(),!s.done){const u=s.value;u.astNode===r?t$(u.grammarSource)&&u.grammarSource.value===t&&o.push(u):a.prune()}while(!s.done);return o}function wDi(e){var t;const r=e.astNode;for(;r===((t=e.container)===null||t===void 0?void 0:t.astNode);){const a=wke(e.grammarSource,e$);if(a)return a;e=e.container}}function OYn(e){let t=e;return _Yn(t)&&(_ke(t.$container)?t=t.$container.$container:AS(t.$container)?t=t.$container:Dce(t.$container)),LYn(e,t,new Map)}function LYn(e,t,r){var a;function s(o,u){let h;return wke(o,e$)||(h=LYn(u,u,r)),r.set(e,h),h}if(r.has(e))return r.get(e);r.set(e,void 0);for(const o of Mce(t)){if(e$(o)&&o.feature.toLowerCase()==="name")return r.set(e,o),o;if(n$(o)&&AS(o.rule.ref))return s(o,o.rule.ref);if(VLi(o)&&(!((a=o.typeRef)===null||a===void 0)&&a.ref))return s(o,o.typeRef.ref)}}function DYn(e){return MYn(e,new Set)}function MYn(e,t){if(t.has(e))return!0;t.add(e);for(const r of Mce(e))if(n$(r)){if(!r.rule.ref||AS(r.rule.ref)&&!MYn(r.rule.ref,t))return!1}else{if(e$(r))return!1;if(_ke(r))return!1}return!!e.definition}function Kgt(e){if(e.inferredType)return e.inferredType.name;if(e.dataType)return e.dataType;if(e.returnType){const t=e.returnType.ref;if(t){if(AS(t))return t.name;if(wYn(t)||EYn(t))return t.name}}}function Xgt(e){var t;if(AS(e))return DYn(e)?e.name:(t=Kgt(e))!==null&&t!==void 0?t:e.name;if(wYn(e)||EYn(e)||HLi(e))return e.name;if(_ke(e)){const r=EDi(e);if(r)return r}else if(_Yn(e))return e.name;throw new Error("Cannot get name of Unknown Type")}function EDi(e){var t;if(e.inferredType)return e.inferredType.name;if(!((t=e.type)===null||t===void 0)&&t.ref)return Xgt(e.type.ref)}function xDi(e){var t,r,a;return G$(e)?(r=(t=e.type)===null||t===void 0?void 0:t.name)!==null&&r!==void 0?r:"string":(a=Kgt(e))!==null&&a!==void 0?a:e.name}function Qgt(e){const t={s:!1,i:!1,u:!1},r=tK(e.definition,t),a=Object.entries(t).filter(([,s])=>s).map(([s])=>s).join("");return new RegExp(r,a)}const Zgt=/[\s\S]/.source;function tK(e,t){if(XLi(e))return SDi(e);if(QLi(e))return TDi(e);if(YLi(e))return kDi(e);if(ZLi(e)){const r=e.rule.ref;if(!r)throw new Error("Missing rule reference.");return H7(tK(r.definition),{cardinality:e.cardinality,lookahead:e.lookahead})}else{if(WLi(e))return ADi(e);if(JLi(e))return CDi(e);if(KLi(e)){const r=e.regex.lastIndexOf("/"),a=e.regex.substring(1,r),s=e.regex.substring(r+1);return t&&(t.i=s.includes("i"),t.s=s.includes("s"),t.u=s.includes("u")),H7(a,{cardinality:e.cardinality,lookahead:e.lookahead,wrap:!1})}else{if(eDi(e))return H7(Zgt,{cardinality:e.cardinality,lookahead:e.lookahead});throw new Error(`Invalid terminal element: ${e==null?void 0:e.$type}`)}}}function SDi(e){return H7(e.elements.map(t=>tK(t)).join("|"),{cardinality:e.cardinality,lookahead:e.lookahead})}function TDi(e){return H7(e.elements.map(t=>tK(t)).join(""),{cardinality:e.cardinality,lookahead:e.lookahead})}function CDi(e){return H7(`${Zgt}*?${tK(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead})}function ADi(e){return H7(`(?!${tK(e.terminal)})${Zgt}*?`,{cardinality:e.cardinality,lookahead:e.lookahead})}function kDi(e){return e.right?H7(`[${Cit(e.left)}-${Cit(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,wrap:!1}):H7(Cit(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,wrap:!1})}function Cit(e){return xke(e.value)}function H7(e,t){var r;return(t.wrap!==!1||t.lookahead)&&(e=`(${(r=t.lookahead)!==null&&r!==void 0?r:""}${e})`),t.cardinality?`${e}${t.cardinality}`:e}function RDi(e){const t=[],r=e.Grammar;for(const a of r.rules)G$(a)&&bDi(a)&&cDi(Qgt(a))&&t.push(a.name);return{multilineCommentRules:t,nameRegexp:MLi}}var PYn=typeof global=="object"&&global&&global.Object===Object&&global,IDi=typeof self=="object"&&self&&self.Object===Object&&self,$A=PYn||IDi||Function("return this")(),kS=$A.Symbol,BYn=Object.prototype,NDi=BYn.hasOwnProperty,ODi=BYn.toString,cie=kS?kS.toStringTag:void 0;function LDi(e){var t=NDi.call(e,cie),r=e[cie];try{e[cie]=void 0;var a=!0}catch{}var s=ODi.call(e);return a&&(t?e[cie]=r:delete e[cie]),s}var DDi=Object.prototype,MDi=DDi.toString;function PDi(e){return MDi.call(e)}var BDi="[object Null]",FDi="[object Undefined]",SSn=kS?kS.toStringTag:void 0;function Q9(e){return e==null?e===void 0?FDi:BDi:SSn&&SSn in Object(e)?LDi(e):PDi(e)}function uT(e){return e!=null&&typeof e=="object"}var $Di="[object Symbol]";function Ske(e){return typeof e=="symbol"||uT(e)&&Q9(e)==$Di}function Tke(e,t){for(var r=-1,a=e==null?0:e.length,s=Array(a);++r0){if(++t>=mMi)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function _Mi(e){return function(){return e}}var lTe=function(){try{var e=H$(Object,"defineProperty");return e({},"",{}),e}catch{}}(),wMi=lTe?function(e,t){return lTe(e,"toString",{configurable:!0,enumerable:!1,value:_Mi(t),writable:!0})}:qj,EMi=vMi(wMi);function $Yn(e,t){for(var r=-1,a=e==null?0:e.length;++r-1}var TMi=9007199254740991,CMi=/^(?:0|[1-9]\d*)$/;function Ake(e,t){var r=typeof e;return t=t??TMi,!!t&&(r=="number"||r!="symbol"&&CMi.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=IMi}function UA(e){return e!=null&&nmt(e.length)&&!CR(e)}function GYn(e,t,r){if(!RS(r))return!1;var a=typeof t;return(a=="number"?UA(r)&&Ake(t,r.length):a=="string"&&t in r)?Pce(r[t],e):!1}function NMi(e){return tmt(function(t,r){var a=-1,s=r.length,o=s>1?r[s-1]:void 0,u=s>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(s--,o):void 0,u&&GYn(r[0],r[1],u)&&(o=s<3?void 0:o,s=1),t=Object(t);++a-1}function GPi(e,t){var r=this.__data__,a=Nke(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}function AR(e){var t=-1,r=e==null?0:e.length;for(this.clear();++ts?0:s+t),r=r>s?s:r,r<0&&(r+=s),s=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(s);++ah))return!1;var p=o.get(e),m=o.get(t);if(p&&m)return p==t&&m==e;var b=-1,_=!0,w=r&FFi?new Hj:void 0;for(o.set(e,t),o.set(t,e);++b2?t[2]:void 0;for(s&&GYn(t[0],t[1],s)&&(a=1);++r=k$i&&(o=dmt,u=!1,t=new Hj(t));e:for(;++s-1?s[o?t[u]:u]:void 0}}var D$i=Math.max;function M$i(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var s=r==null?0:Cke(r);return s<0&&(s=D$i(a+s,0)),UYn(e,zA(t),s)}var Yj=L$i(M$i);function hT(e){return e&&e.length?e[0]:void 0}function P$i(e,t){var r=-1,a=UA(e)?Array(e.length):[];return V$(e,function(s,o,u){a[++r]=t(s,o,u)}),a}function As(e,t){var r=Wc(e)?Tke:P$i;return r(e,zA(t))}function dS(e,t){return cmt(As(e,t))}var B$i=Object.prototype,F$i=B$i.hasOwnProperty,$$i=C$i(function(e,t,r){F$i.call(e,r)?e[r].push(t):emt(e,r,[t])}),U$i=Object.prototype,z$i=U$i.hasOwnProperty;function G$i(e,t){return e!=null&&z$i.call(e,t)}function so(e,t){return e!=null&&ljn(e,t,G$i)}var q$i="[object String]";function a_(e){return typeof e=="string"||!Wc(e)&&uT(e)&&Q9(e)==q$i}function H$i(e,t){return Tke(t,function(r){return e[r]})}function wp(e){return e==null?[]:H$i(e,IS(e))}var V$i=Math.max;function wv(e,t,r,a){e=UA(e)?e:wp(e),r=r?Cke(r):0;var s=e.length;return r<0&&(r=V$i(s+r,0)),a_(e)?r<=s&&e.indexOf(t,r)>-1:!!s&&Jgt(e,t,r)>-1}function t4n(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var s=0;return Jgt(e,t,s)}var Y$i="[object Map]",j$i="[object Set]",W$i=Object.prototype,K$i=W$i.hasOwnProperty;function Jh(e){if(e==null)return!0;if(UA(e)&&(Wc(e)||typeof e=="string"||typeof e.splice=="function"||Joe(e)||rmt(e)||Rke(e)))return!e.length;var t=Jx(e);if(t==Y$i||t==j$i)return!e.size;if(Fce(e))return!WYn(e).length;for(var r in e)if(K$i.call(e,r))return!1;return!0}var X$i="[object RegExp]";function Q$i(e){return uT(e)&&Q9(e)==X$i}var n4n=d9&&d9.isRegExp,hR=n4n?Ike(n4n):Q$i;function dR(e){return e===void 0}var Z$i="Expected a function";function J$i(e){if(typeof e!="function")throw new TypeError(Z$i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function eUi(e,t,r,a){if(!RS(e))return e;t=Lke(t,e);for(var s=-1,o=t.length,u=o-1,h=e;h!=null&&++s=sUi){var p=aUi(e);if(p)return fmt(p);u=!1,s=dmt,f=new Hj}else f=h;e:for(;++a{r.accept(t)})}}class hv extends GA{constructor(t){super([]),this.idx=1,zw(this,yT(t,r=>r!==void 0))}set definition(t){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(t){t.visit(this)}}class nK extends GA{constructor(t){super(t.definition),this.orgText="",zw(this,yT(t,r=>r!==void 0))}}class s_ extends GA{constructor(t){super(t.definition),this.ignoreAmbiguities=!1,zw(this,yT(t,r=>r!==void 0))}}let Am=class extends GA{constructor(t){super(t.definition),this.idx=1,zw(this,yT(t,r=>r!==void 0))}};class Kw extends GA{constructor(t){super(t.definition),this.idx=1,zw(this,yT(t,r=>r!==void 0))}}class Xw extends GA{constructor(t){super(t.definition),this.idx=1,zw(this,yT(t,r=>r!==void 0))}}class l0 extends GA{constructor(t){super(t.definition),this.idx=1,zw(this,yT(t,r=>r!==void 0))}}class u_ extends GA{constructor(t){super(t.definition),this.idx=1,zw(this,yT(t,r=>r!==void 0))}}class h_ extends GA{get definition(){return this._definition}set definition(t){this._definition=t}constructor(t){super(t.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,zw(this,yT(t,r=>r!==void 0))}}class wd{constructor(t){this.idx=1,zw(this,yT(t,r=>r!==void 0))}accept(t){t.visit(this)}}function uUi(e){return As(e,Mxe)}function Mxe(e){function t(r){return As(r,Mxe)}if(e instanceof hv){const r={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};return a_(e.label)&&(r.label=e.label),r}else{if(e instanceof s_)return{type:"Alternative",definition:t(e.definition)};if(e instanceof Am)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Kw)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Xw)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Mxe(new wd({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof u_)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Mxe(new wd({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof l0)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof h_)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof wd){const r={type:"Terminal",name:e.terminalType.name,label:lUi(e.terminalType),idx:e.idx};a_(e.label)&&(r.terminalLabel=e.label);const a=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(r.pattern=hR(a)?a.source:a),r}else{if(e instanceof nK)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}}class rK{visit(t){const r=t;switch(r.constructor){case hv:return this.visitNonTerminal(r);case s_:return this.visitAlternative(r);case Am:return this.visitOption(r);case Kw:return this.visitRepetitionMandatory(r);case Xw:return this.visitRepetitionMandatoryWithSeparator(r);case u_:return this.visitRepetitionWithSeparator(r);case l0:return this.visitRepetition(r);case h_:return this.visitAlternation(r);case wd:return this.visitTerminal(r);case nK:return this.visitRule(r);default:throw Error("non exhaustive match")}}visitNonTerminal(t){}visitAlternative(t){}visitOption(t){}visitRepetition(t){}visitRepetitionMandatory(t){}visitRepetitionMandatoryWithSeparator(t){}visitRepetitionWithSeparator(t){}visitAlternation(t){}visitTerminal(t){}visitRule(t){}}function hUi(e){return e instanceof s_||e instanceof Am||e instanceof l0||e instanceof Kw||e instanceof Xw||e instanceof u_||e instanceof wd||e instanceof nK}function uTe(e,t=[]){return e instanceof Am||e instanceof l0||e instanceof u_?!0:e instanceof h_?hjn(e.definition,a=>uTe(a,t)):e instanceof hv&&wv(t,e)?!1:e instanceof GA?(e instanceof hv&&t.push(e),tT(e.definition,a=>uTe(a,t))):!1}function dUi(e){return e instanceof h_}function PC(e){if(e instanceof hv)return"SUBRULE";if(e instanceof Am)return"OPTION";if(e instanceof h_)return"OR";if(e instanceof Kw)return"AT_LEAST_ONE";if(e instanceof Xw)return"AT_LEAST_ONE_SEP";if(e instanceof u_)return"MANY_SEP";if(e instanceof l0)return"MANY";if(e instanceof wd)return"CONSUME";throw Error("non exhaustive match")}class Pke{walk(t,r=[]){_o(t.definition,(a,s)=>{const o=fm(t.definition,s+1);if(a instanceof hv)this.walkProdRef(a,o,r);else if(a instanceof wd)this.walkTerminal(a,o,r);else if(a instanceof s_)this.walkFlat(a,o,r);else if(a instanceof Am)this.walkOption(a,o,r);else if(a instanceof Kw)this.walkAtLeastOne(a,o,r);else if(a instanceof Xw)this.walkAtLeastOneSep(a,o,r);else if(a instanceof u_)this.walkManySep(a,o,r);else if(a instanceof l0)this.walkMany(a,o,r);else if(a instanceof h_)this.walkOr(a,o,r);else throw Error("non exhaustive match")})}walkTerminal(t,r,a){}walkProdRef(t,r,a){}walkFlat(t,r,a){const s=r.concat(a);this.walk(t,s)}walkOption(t,r,a){const s=r.concat(a);this.walk(t,s)}walkAtLeastOne(t,r,a){const s=[new Am({definition:t.definition})].concat(r,a);this.walk(t,s)}walkAtLeastOneSep(t,r,a){const s=r4n(t,r,a);this.walk(t,s)}walkMany(t,r,a){const s=[new Am({definition:t.definition})].concat(r,a);this.walk(t,s)}walkManySep(t,r,a){const s=r4n(t,r,a);this.walk(t,s)}walkOr(t,r,a){const s=r.concat(a);_o(t.definition,o=>{const u=new s_({definition:[o]});this.walk(u,s)})}}function r4n(e,t,r){return[new Am({definition:[new wd({terminalType:e.separator})].concat(e.definition)})].concat(t,r)}function zce(e){if(e instanceof hv)return zce(e.referencedRule);if(e instanceof wd)return gUi(e);if(hUi(e))return fUi(e);if(dUi(e))return pUi(e);throw Error("non exhaustive match")}function fUi(e){let t=[];const r=e.definition;let a=0,s=r.length>a,o,u=!0;for(;s&&u;)o=r[a],u=uTe(o),t=t.concat(zce(o)),a=a+1,s=r.length>a;return mmt(t)}function pUi(e){const t=As(e.definition,r=>zce(r));return mmt(eT(t))}function gUi(e){return[e.terminalType]}const gjn="_~IN~_";class mUi extends Pke{constructor(t){super(),this.topProd=t,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(t,r,a){}walkProdRef(t,r,a){const s=yUi(t.referencedRule,t.idx)+this.topProd.name,o=r.concat(a),u=new s_({definition:o}),h=zce(u);this.follows[s]=h}}function bUi(e){const t={};return _o(e,r=>{const a=new mUi(r).startWalking();zw(t,a)}),t}function yUi(e,t){return e.name+t+gjn}let Pxe={};const vUi=new kYn;function Bke(e){const t=e.toString();if(Pxe.hasOwnProperty(t))return Pxe[t];{const r=vUi.pattern(t);return Pxe[t]=r,r}}function _Ui(){Pxe={}}const mjn="Complement Sets are not supported for first char optimization",hTe=`Unable to use "first char" lexer optimizations: `;function wUi(e,t=!1){try{const r=Bke(e);return Pct(r.value,{},r.flags.ignoreCase)}catch(r){if(r.message===mjn)t&&djn(`${hTe} Unable to optimize: < ${e.toString()} > Complement Sets cannot be automatically optimized. This will disable the lexer's first char optimizations. See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let a="";t&&(a=` This will disable the lexer's first char optimizations. See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),Mct(`${hTe} Failed parsing: < ${e.toString()} > Using the @chevrotain/regexp-to-ast library Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+a)}}return[]}function Pct(e,t,r){switch(e.type){case"Disjunction":for(let s=0;s{if(typeof f=="number")Jwe(f,t,r);else{const p=f;if(r===!0)for(let m=p.from;m<=p.to;m++)Jwe(m,t,r);else{for(let m=p.from;m<=p.to&&m=Sae){const m=p.from>=Sae?p.from:Sae,b=p.to,_=f9(m),w=f9(b);for(let S=_;S<=w;S++)t[S]=S}}}});break;case"Group":Pct(u.value,t,r);break;default:throw Error("Non Exhaustive Match")}const h=u.quantifier!==void 0&&u.quantifier.atLeast===0;if(u.type==="Group"&&Bct(u)===!1||u.type!=="Group"&&h===!1)break}break;default:throw Error("non exhaustive match!")}return wp(t)}function Jwe(e,t,r){const a=f9(e);t[a]=a,r===!0&&EUi(e,t)}function EUi(e,t){const r=String.fromCharCode(e),a=r.toUpperCase();if(a!==r){const s=f9(a.charCodeAt(0));t[s]=s}else{const s=r.toLowerCase();if(s!==r){const o=f9(s.charCodeAt(0));t[o]=o}}}function i4n(e,t){return Yj(e.value,r=>{if(typeof r=="number")return wv(t,r);{const a=r;return Yj(t,s=>a.from<=s&&s<=a.to)!==void 0}})}function Bct(e){const t=e.quantifier;return t&&t.atLeast===0?!0:e.value?Wc(e.value)?tT(e.value,Bct):Bct(e.value):!1}class xUi extends Eke{constructor(t){super(),this.targetCharCodes=t,this.found=!1}visitChildren(t){if(this.found!==!0){switch(t.type){case"Lookahead":this.visitLookahead(t);return;case"NegativeLookahead":this.visitNegativeLookahead(t);return}super.visitChildren(t)}}visitCharacter(t){wv(this.targetCharCodes,t.value)&&(this.found=!0)}visitSet(t){t.complement?i4n(t,this.targetCharCodes)===void 0&&(this.found=!0):i4n(t,this.targetCharCodes)!==void 0&&(this.found=!0)}}function bmt(e,t){if(t instanceof RegExp){const r=Bke(t),a=new xUi(e);return a.visit(r),a.found}else return Yj(t,r=>wv(e,r.charCodeAt(0)))!==void 0}const i$="PATTERN",xae="defaultMode",eEe="modes";let bjn=typeof new RegExp("(?:)").sticky=="boolean";function SUi(e,t){t=gmt(t,{useSticky:bjn,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",` `],tracer:(I,N)=>N()});const r=t.tracer;r("initCharCodeToOptimizedIndexMap",()=>{jUi()});let a;r("Reject Lexer.NA",()=>{a=Mke(e,I=>I[i$]===J2.NA)});let s=!1,o;r("Transform Patterns",()=>{s=!1,o=As(a,I=>{const N=I[i$];if(hR(N)){const L=N.source;return L.length===1&&L!=="^"&&L!=="$"&&L!=="."&&!N.ignoreCase?L:L.length===2&&L[0]==="\\"&&!wv(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],L[1])?L[1]:t.useSticky?s4n(N):a4n(N)}else{if(CR(N))return s=!0,{exec:N};if(typeof N=="object")return s=!0,N;if(typeof N=="string"){if(N.length===1)return N;{const L=N.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),P=new RegExp(L);return t.useSticky?s4n(P):a4n(P)}}else throw Error("non exhaustive match")}})});let u,h,f,p,m;r("misc mapping",()=>{u=As(a,I=>I.tokenTypeIdx),h=As(a,I=>{const N=I.GROUP;if(N!==J2.SKIPPED){if(a_(N))return N;if(dR(N))return!1;throw Error("non exhaustive match")}}),f=As(a,I=>{const N=I.LONGER_ALT;if(N)return Wc(N)?As(N,P=>t4n(a,P)):[t4n(a,N)]}),p=As(a,I=>I.PUSH_MODE),m=As(a,I=>so(I,"POP_MODE"))});let b;r("Line Terminator Handling",()=>{const I=_jn(t.lineTerminatorCharacters);b=As(a,N=>!1),t.positionTracking!=="onlyOffset"&&(b=As(a,N=>so(N,"LINE_BREAKS")?!!N.LINE_BREAKS:vjn(N,I)===!1&&bmt(I,N.PATTERN)))});let _,w,S,C;r("Misc Mapping #2",()=>{_=As(a,yjn),w=As(o,HUi),S=Gw(a,(I,N)=>{const L=N.GROUP;return a_(L)&&L!==J2.SKIPPED&&(I[L]=[]),I},{}),C=As(o,(I,N)=>({pattern:o[N],longerAlt:f[N],canLineTerminator:b[N],isCustom:_[N],short:w[N],group:h[N],push:p[N],pop:m[N],tokenTypeIdx:u[N],tokenType:a[N]}))});let A=!0,k=[];return t.safeMode||r("First Char Optimization",()=>{k=Gw(a,(I,N,L)=>{if(typeof N.PATTERN=="string"){const P=N.PATTERN.charCodeAt(0),M=f9(P);Iit(I,M,C[L])}else if(Wc(N.START_CHARS_HINT)){let P;_o(N.START_CHARS_HINT,M=>{const F=typeof M=="string"?M.charCodeAt(0):M,U=f9(F);P!==U&&(P=U,Iit(I,U,C[L]))})}else if(hR(N.PATTERN))if(N.PATTERN.unicode)A=!1,t.ensureOptimizations&&Mct(`${hTe} Unable to analyze < ${N.PATTERN.toString()} > pattern. The regexp unicode flag is not currently supported by the regexp-to-ast library. This will disable the lexer's first char optimizations. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{const P=wUi(N.PATTERN,t.ensureOptimizations);Jh(P)&&(A=!1),_o(P,M=>{Iit(I,M,C[L])})}else t.ensureOptimizations&&Mct(`${hTe} TokenType: <${N.name}> is using a custom token pattern without providing parameter. This will disable the lexer's first char optimizations. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),A=!1;return I},[])}),{emptyGroups:S,patternIdxToConfig:C,charCodeToPatternIdxToConfig:k,hasCustom:s,canBeOptimized:A}}function TUi(e,t){let r=[];const a=AUi(e);r=r.concat(a.errors);const s=kUi(a.valid),o=s.valid;return r=r.concat(s.errors),r=r.concat(CUi(o)),r=r.concat(PUi(o)),r=r.concat(BUi(o,t)),r=r.concat(FUi(o)),r}function CUi(e){let t=[];const r=PS(e,a=>hR(a[i$]));return t=t.concat(IUi(r)),t=t.concat(LUi(r)),t=t.concat(DUi(r)),t=t.concat(MUi(r)),t=t.concat(NUi(r)),t}function AUi(e){const t=PS(e,s=>!so(s,i$)),r=As(t,s=>({message:"Token Type: ->"+s.name+"<- missing static 'PATTERN' property",type:c0.MISSING_PATTERN,tokenTypes:[s]})),a=Dke(e,t);return{errors:r,valid:a}}function kUi(e){const t=PS(e,s=>{const o=s[i$];return!hR(o)&&!CR(o)&&!so(o,"exec")&&!a_(o)}),r=As(t,s=>({message:"Token Type: ->"+s.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:c0.INVALID_PATTERN,tokenTypes:[s]})),a=Dke(e,t);return{errors:r,valid:a}}const RUi=/[^\\][$]/;function IUi(e){class t extends Eke{constructor(){super(...arguments),this.found=!1}visitEndAnchor(o){this.found=!0}}const r=PS(e,s=>{const o=s.PATTERN;try{const u=Bke(o),h=new t;return h.visit(u),h.found}catch{return RUi.test(o.source)}});return As(r,s=>({message:`Unexpected RegExp Anchor Error: Token Type: ->`+s.name+`<- static 'PATTERN' cannot contain end of input anchor '$' See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:c0.EOI_ANCHOR_FOUND,tokenTypes:[s]}))}function NUi(e){const t=PS(e,a=>a.PATTERN.test(""));return As(t,a=>({message:"Token Type: ->"+a.name+"<- static 'PATTERN' must not match an empty string",type:c0.EMPTY_MATCH_PATTERN,tokenTypes:[a]}))}const OUi=/[^\\[][\^]|^\^/;function LUi(e){class t extends Eke{constructor(){super(...arguments),this.found=!1}visitStartAnchor(o){this.found=!0}}const r=PS(e,s=>{const o=s.PATTERN;try{const u=Bke(o),h=new t;return h.visit(u),h.found}catch{return OUi.test(o.source)}});return As(r,s=>({message:`Unexpected RegExp Anchor Error: Token Type: ->`+s.name+`<- static 'PATTERN' cannot contain start of input anchor '^' See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:c0.SOI_ANCHOR_FOUND,tokenTypes:[s]}))}function DUi(e){const t=PS(e,a=>{const s=a[i$];return s instanceof RegExp&&(s.multiline||s.global)});return As(t,a=>({message:"Token Type: ->"+a.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:c0.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[a]}))}function MUi(e){const t=[];let r=As(e,o=>Gw(e,(u,h)=>(o.PATTERN.source===h.PATTERN.source&&!wv(t,h)&&h.PATTERN!==J2.NA&&(t.push(h),u.push(h)),u),[]));r=Uce(r);const a=PS(r,o=>o.length>1);return As(a,o=>{const u=As(o,f=>f.name);return{message:`The same RegExp pattern ->${hT(o).PATTERN}<-has been used in all of the following Token Types: ${u.join(", ")} <-`,type:c0.DUPLICATE_PATTERNS_FOUND,tokenTypes:o}})}function PUi(e){const t=PS(e,a=>{if(!so(a,"GROUP"))return!1;const s=a.GROUP;return s!==J2.SKIPPED&&s!==J2.NA&&!a_(s)});return As(t,a=>({message:"Token Type: ->"+a.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:c0.INVALID_GROUP_TYPE_FOUND,tokenTypes:[a]}))}function BUi(e,t){const r=PS(e,s=>s.PUSH_MODE!==void 0&&!wv(t,s.PUSH_MODE));return As(r,s=>({message:`Token Type: ->${s.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${s.PUSH_MODE}<-which does not exist`,type:c0.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[s]}))}function FUi(e){const t=[],r=Gw(e,(a,s,o)=>{const u=s.PATTERN;return u===J2.NA||(a_(u)?a.push({str:u,idx:o,tokenType:s}):hR(u)&&UUi(u)&&a.push({str:u.source,idx:o,tokenType:s})),a},[]);return _o(e,(a,s)=>{_o(r,({str:o,idx:u,tokenType:h})=>{if(s${h.name}<- can never be matched. Because it appears AFTER the Token Type ->${a.name}<-in the lexer's definition. See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:f,type:c0.UNREACHABLE_PATTERN,tokenTypes:[a,h]})}})}),t}function $Ui(e,t){if(hR(t)){const r=t.exec(e);return r!==null&&r.index===0}else{if(CR(t))return t(e,0,[],{});if(so(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function UUi(e){return Yj([".","\\","[","]","|","^","$","(",")","?","*","+","{"],r=>e.source.indexOf(r)!==-1)===void 0}function a4n(e){const t=e.ignoreCase?"i":"";return new RegExp(`^(?:${e.source})`,t)}function s4n(e){const t=e.ignoreCase?"iy":"y";return new RegExp(`${e.source}`,t)}function zUi(e,t,r){const a=[];return so(e,xae)||a.push({message:"A MultiMode Lexer cannot be initialized without a <"+xae+`> property in its definition `,type:c0.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),so(e,eEe)||a.push({message:"A MultiMode Lexer cannot be initialized without a <"+eEe+`> property in its definition `,type:c0.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),so(e,eEe)&&so(e,xae)&&!so(e.modes,e.defaultMode)&&a.push({message:`A MultiMode Lexer cannot be initialized with a ${xae}: <${e.defaultMode}>which does not exist `,type:c0.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),so(e,eEe)&&_o(e.modes,(s,o)=>{_o(s,(u,h)=>{if(dR(u))a.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${o}> at index: <${h}> `,type:c0.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(so(u,"LONGER_ALT")){const f=Wc(u.LONGER_ALT)?u.LONGER_ALT:[u.LONGER_ALT];_o(f,p=>{!dR(p)&&!wv(s,p)&&a.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${p.name}> on token <${u.name}> outside of mode <${o}> `,type:c0.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),a}function GUi(e,t,r){const a=[];let s=!1;const o=Uce(eT(wp(e.modes))),u=Mke(o,f=>f[i$]===J2.NA),h=_jn(r);return t&&_o(u,f=>{const p=vjn(f,h);if(p!==!1){const b={message:YUi(f,p),type:p.issue,tokenType:f};a.push(b)}else so(f,"LINE_BREAKS")?f.LINE_BREAKS===!0&&(s=!0):bmt(h,f.PATTERN)&&(s=!0)}),t&&!s&&a.push({message:`Warning: No LINE_BREAKS Found. This Lexer has been defined to track line and column information, But none of the Token Types can be identified as matching a line terminator. See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS for details.`,type:c0.NO_LINE_BREAKS_FLAGS}),a}function qUi(e){const t={},r=IS(e);return _o(r,a=>{const s=e[a];if(Wc(s))t[a]=[];else throw Error("non exhaustive match")}),t}function yjn(e){const t=e.PATTERN;if(hR(t))return!1;if(CR(t))return!0;if(so(t,"exec"))return!0;if(a_(t))return!1;throw Error("non exhaustive match")}function HUi(e){return a_(e)&&e.length===1?e.charCodeAt(0):!1}const VUi={test:function(e){const t=e.length;for(let r=this.lastIndex;r Token Type Root cause: ${t.errMsg}. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===c0.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the option. The problem is in the <${e.name}> Token Type For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function _jn(e){return As(e,r=>a_(r)?r.charCodeAt(0):r)}function Iit(e,t,r){e[t]===void 0?e[t]=[r]:e[t].push(r)}const Sae=256;let Bxe=[];function f9(e){return e255?255+~~(e/255):e}}function Gce(e,t){const r=e.tokenTypeIdx;return r===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[r]===!0}function dTe(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}let o4n=1;const wjn={};function qce(e){const t=WUi(e);KUi(t),QUi(t),XUi(t),_o(t,r=>{r.isParent=r.categoryMatches.length>0})}function WUi(e){let t=Im(e),r=e,a=!0;for(;a;){r=Uce(eT(As(r,o=>o.CATEGORIES)));const s=Dke(r,t);t=t.concat(s),Jh(s)?a=!1:r=s}return t}function KUi(e){_o(e,t=>{xjn(t)||(wjn[o4n]=t,t.tokenTypeIdx=o4n++),l4n(t)&&!Wc(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),l4n(t)||(t.CATEGORIES=[]),ZUi(t)||(t.categoryMatches=[]),JUi(t)||(t.categoryMatchesMap={})})}function XUi(e){_o(e,t=>{t.categoryMatches=[],_o(t.categoryMatchesMap,(r,a)=>{t.categoryMatches.push(wjn[a].tokenTypeIdx)})})}function QUi(e){_o(e,t=>{Ejn([],t)})}function Ejn(e,t){_o(e,r=>{t.categoryMatchesMap[r.tokenTypeIdx]=!0}),_o(t.CATEGORIES,r=>{const a=e.concat(t);wv(a,r)||Ejn(a,r)})}function xjn(e){return so(e,"tokenTypeIdx")}function l4n(e){return so(e,"CATEGORIES")}function ZUi(e){return so(e,"categoryMatches")}function JUi(e){return so(e,"categoryMatchesMap")}function ezi(e){return so(e,"tokenTypeIdx")}const Fct={buildUnableToPopLexerModeMessage(e){return`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,t,r,a,s){return`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${r} characters.`}};var c0;(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(c0||(c0={}));const Tae={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` `,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Fct,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(Tae);class J2{constructor(t,r=Tae){if(this.lexerDefinition=t,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(s,o)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;const u=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent <${s}>`);const{time:h,value:f}=fjn(o),p=h>10?console.warn:console.log;return this.traceInitIndent time: ${h}ms`),this.traceInitIndent--,f}else return o()},typeof r=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object. a boolean 2nd argument is no longer supported`);this.config=zw({},Tae,r);const a=this.config.traceInitPerf;a===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof a=="number"&&(this.traceInitMaxIdent=a,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let s,o=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===Tae.lineTerminatorsPattern)this.config.lineTerminatorsPattern=VUi;else if(this.config.lineTerminatorCharacters===Tae.lineTerminatorCharacters)throw Error(`Error: Missing property on the Lexer config. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(r.safeMode&&r.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),Wc(t)?s={modes:{defaultMode:Im(t)},defaultMode:xae}:(o=!1,s=Im(t))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(zUi(s,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(GUi(s,this.trackStartLines,this.config.lineTerminatorCharacters))})),s.modes=s.modes?s.modes:{},_o(s.modes,(h,f)=>{s.modes[f]=Mke(h,p=>dR(p))});const u=IS(s.modes);if(_o(s.modes,(h,f)=>{this.TRACE_INIT(`Mode: <${f}> processing`,()=>{if(this.modes.push(f),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(TUi(h,u))}),Jh(this.lexerDefinitionErrors)){qce(h);let p;this.TRACE_INIT("analyzeTokenTypes",()=>{p=SUi(h,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:r.positionTracking,ensureOptimizations:r.ensureOptimizations,safeMode:r.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[f]=p.patternIdxToConfig,this.charCodeToPatternIdxToConfig[f]=p.charCodeToPatternIdxToConfig,this.emptyGroups=zw({},this.emptyGroups,p.emptyGroups),this.hasCustom=p.hasCustom||this.hasCustom,this.canModeBeOptimized[f]=p.canBeOptimized}})}),this.defaultMode=s.defaultMode,!Jh(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){const f=As(this.lexerDefinitionErrors,p=>p.message).join(`----------------------- `);throw new Error(`Errors detected in definition of Lexer: `+f)}_o(this.lexerDefinitionWarning,h=>{djn(h.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(bjn?(this.chopInput=qj,this.match=this.matchWithTest):(this.updateLastIndex=gp,this.match=this.matchWithExec),o&&(this.handleModes=gp),this.trackStartLines===!1&&(this.computeNewColumn=qj),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=gp),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{const h=Gw(this.canModeBeOptimized,(f,p,m)=>(p===!1&&f.push(m),f),[]);if(r.ensureOptimizations&&!Jh(h))throw Error(`Lexer Modes: < ${h.join(", ")} > cannot be optimized. Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{_Ui()}),this.TRACE_INIT("toFastProperties",()=>{pjn(this)})})}tokenize(t,r=this.defaultMode){if(!Jh(this.lexerDefinitionErrors)){const s=As(this.lexerDefinitionErrors,o=>o.message).join(`----------------------- `);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer: `+s)}return this.tokenizeInternal(t,r)}tokenizeInternal(t,r){let a,s,o,u,h,f,p,m,b,_,w,S,C,A,k;const I=t,N=I.length;let L=0,P=0;const M=this.hasCustom?0:Math.floor(t.length/10),F=new Array(M),U=[];let $=this.trackStartLines?1:void 0,G=this.trackStartLines?1:void 0;const B=qUi(this.emptyGroups),Z=this.trackStartLines,z=this.config.lineTerminatorsPattern;let Y=0,W=[],Q=[];const V=[],j=[];Object.freeze(j);let ee;function te(){return W}function ne(be){const ve=f9(be),De=Q[ve];return De===void 0?j:De}const se=be=>{if(V.length===1&&be.tokenType.PUSH_MODE===void 0){const ve=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(be);U.push({offset:be.startOffset,line:be.startLine,column:be.startColumn,length:be.image.length,message:ve})}else{V.pop();const ve=Vj(V);W=this.patternIdxToConfig[ve],Q=this.charCodeToPatternIdxToConfig[ve],Y=W.length;const De=this.canModeBeOptimized[ve]&&this.config.safeMode===!1;Q&&De?ee=ne:ee=te}};function ie(be){V.push(be),Q=this.charCodeToPatternIdxToConfig[be],W=this.patternIdxToConfig[be],Y=W.length,Y=W.length;const ve=this.canModeBeOptimized[be]&&this.config.safeMode===!1;Q&&ve?ee=ne:ee=te}ie.call(this,r);let ge;const ce=this.config.recoveryEnabled;for(;Lf.length){f=u,p=m,ge=we;break}}}break}}if(f!==null){if(b=f.length,_=ge.group,_!==void 0&&(w=ge.tokenTypeIdx,S=this.createTokenInstance(f,L,w,ge.tokenType,$,G,b),this.handlePayload(S,p),_===!1?P=this.addToken(F,P,S):B[_].push(S)),t=this.chopInput(t,b),L=L+b,G=this.computeNewColumn(G,b),Z===!0&&ge.canLineTerminator===!0){let ye=0,Ee,he;z.lastIndex=0;do Ee=z.test(f),Ee===!0&&(he=z.lastIndex-1,ye++);while(Ee===!0);ye!==0&&($=$+ye,G=b-he,this.updateTokenEndLineColumnLocation(S,_,he,ye,$,G,b))}this.handleModes(ge,se,ie,S)}else{const ye=L,Ee=$,he=G;let we=ce===!1;for(;we===!1&&L ${oY(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e,ruleName:t}){return"Redundant input, expecting EOF but found: "+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:r,customUserDescription:a,ruleName:s}){const o="Expecting: ",h=` but found: '`+hT(t).image+"'";if(a)return o+a+h;{const f=Gw(e,(_,w)=>_.concat(w),[]),p=As(f,_=>`[${As(_,w=>oY(w)).join(", ")}]`),b=`one of these possible Token sequences: ${As(p,(_,w)=>` ${w+1}. ${_}`).join(` `)}`;return o+b+h}},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:r,ruleName:a}){const s="Expecting: ",u=` but found: '`+hT(t).image+"'";if(r)return s+r+u;{const f=`expecting at least one iteration which starts with one of these possible Token sequences:: <${As(e,p=>`[${As(p,m=>oY(m)).join(",")}]`).join(" ,")}>`;return s+f+u}}};Object.freeze(PV);const rzi={buildRuleNotFoundError(e,t){return"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+`<- inside top level rule: ->`+e.name+"<-"}},oF={buildDuplicateFoundError(e,t){function r(m){return m instanceof wd?m.terminalType.name:m instanceof hv?m.nonTerminalName:""}const a=e.name,s=hT(t),o=s.idx,u=PC(s),h=r(s),f=o>0;let p=`->${u}${f?o:""}<- ${h?`with argument: ->${h}<-`:""} appears more than once (${t.length} times) in the top level rule: ->${a}<-. For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES `;return p=p.replace(/[ \t]+/g," "),p=p.replace(/\s\s+/g,` `),p},buildNamespaceConflictError(e){return`Namespace conflict found in grammar. The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>. To resolve this make sure each Terminal and Non-Terminal names are unique This is easy to accomplish by using the convention that Terminal names start with an uppercase letter and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(e){const t=As(e.prefixPath,s=>oY(s)).join(", "),r=e.alternation.idx===0?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix in inside <${e.topLevelRule.name}> Rule, <${t}> may appears as a prefix path in all these alternatives. See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX For Further details.`},buildAlternationAmbiguityError(e){const t=As(e.prefixPath,s=>oY(s)).join(", "),r=e.alternation.idx===0?"":e.alternation.idx;let a=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in inside <${e.topLevelRule.name}> Rule, <${t}> may appears as a prefix path in all these alternatives. `;return a=a+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES For Further details.`,a},buildEmptyRepetitionError(e){let t=PC(e.repetition);return e.repetition.idx!==0&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens. This could lead to an infinite loop.`},buildTokenNameError(e){return"deprecated"},buildEmptyAlternationError(e){return`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in inside <${e.topLevelRule.name}> Rule. Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(e){return`An Alternation cannot have more than 256 alternatives: inside <${e.topLevelRule.name}> Rule. has ${e.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(e){const t=e.topLevelRule.name,r=As(e.leftRecursionPath,o=>o.name),a=`${t} --> ${r.concat([t]).join(" --> ")}`;return`Left Recursion found in grammar. rule: <${t}> can be invoked from itself (directly or indirectly) without consuming any Tokens. The grammar path that causes this is: ${a} To fix this refactor your grammar to remove the left recursion. see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return"deprecated"},buildDuplicateRuleNameError(e){let t;return e.topLevelRule instanceof nK?t=e.topLevelRule.name:t=e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}};function izi(e,t){const r=new azi(e,t);return r.resolveRefs(),r.errors}class azi extends rK{constructor(t,r){super(),this.nameToTopRule=t,this.errMsgProvider=r,this.errors=[]}resolveRefs(){_o(wp(this.nameToTopRule),t=>{this.currTopLevel=t,t.accept(this)})}visitNonTerminal(t){const r=this.nameToTopRule[t.nonTerminalName];if(r)t.referencedRule=r;else{const a=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,t);this.errors.push({message:a,type:dv.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:t.nonTerminalName})}}}class szi extends Pke{constructor(t,r){super(),this.topProd=t,this.path=r,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=Im(this.path.ruleStack).reverse(),this.occurrenceStack=Im(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(t,r=[]){this.found||super.walk(t,r)}walkProdRef(t,r,a){if(t.referencedRule.name===this.nextProductionName&&t.idx===this.nextProductionOccurrence){const s=r.concat(a);this.updateExpectedNext(),this.walk(t.referencedRule,s)}}updateExpectedNext(){Jh(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}}class ozi extends szi{constructor(t,r){super(t,r),this.path=r,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(t,r,a){if(this.isAtEndOfPath&&t.terminalType.name===this.nextTerminalName&&t.idx===this.nextTerminalOccurrence&&!this.found){const s=r.concat(a),o=new s_({definition:s});this.possibleTokTypes=zce(o),this.found=!0}}}class Fke extends Pke{constructor(t,r){super(),this.topRule=t,this.occurrence=r,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}}class lzi extends Fke{walkMany(t,r,a){if(t.idx===this.occurrence){const s=hT(r.concat(a));this.result.isEndOfRule=s===void 0,s instanceof wd&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else super.walkMany(t,r,a)}}class b4n extends Fke{walkManySep(t,r,a){if(t.idx===this.occurrence){const s=hT(r.concat(a));this.result.isEndOfRule=s===void 0,s instanceof wd&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else super.walkManySep(t,r,a)}}class czi extends Fke{walkAtLeastOne(t,r,a){if(t.idx===this.occurrence){const s=hT(r.concat(a));this.result.isEndOfRule=s===void 0,s instanceof wd&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else super.walkAtLeastOne(t,r,a)}}class y4n extends Fke{walkAtLeastOneSep(t,r,a){if(t.idx===this.occurrence){const s=hT(r.concat(a));this.result.isEndOfRule=s===void 0,s instanceof wd&&(this.result.token=s.terminalType,this.result.occurrence=s.idx)}else super.walkAtLeastOneSep(t,r,a)}}function $ct(e,t,r=[]){r=Im(r);let a=[],s=0;function o(h){return h.concat(fm(e,s+1))}function u(h){const f=$ct(o(h),t,r);return a.concat(f)}for(;r.length{Jh(f.definition)===!1&&(a=u(f.definition))}),a;if(h instanceof wd)r.push(h.terminalType);else throw Error("non exhaustive match")}s++}return a.push({partialPath:r,suffixDef:fm(e,s)}),a}function Ajn(e,t,r,a){const s="EXIT_NONE_TERMINAL",o=[s],u="EXIT_ALTERNATIVE";let h=!1;const f=t.length,p=f-a-1,m=[],b=[];for(b.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!Jh(b);){const _=b.pop();if(_===u){h&&Vj(b).idx<=p&&b.pop();continue}const w=_.def,S=_.idx,C=_.ruleStack,A=_.occurrenceStack;if(Jh(w))continue;const k=w[0];if(k===s){const I={idx:S,def:fm(w),ruleStack:nle(C),occurrenceStack:nle(A)};b.push(I)}else if(k instanceof wd)if(S=0;I--){const N=k.definition[I],L={idx:S,def:N.definition.concat(fm(w)),ruleStack:C,occurrenceStack:A};b.push(L),b.push(u)}else if(k instanceof s_)b.push({idx:S,def:k.definition.concat(fm(w)),ruleStack:C,occurrenceStack:A});else if(k instanceof nK)b.push(uzi(k,S,C,A));else throw Error("non exhaustive match")}return m}function uzi(e,t,r,a){const s=Im(r);s.push(e.name);const o=Im(a);return o.push(1),{idx:t,def:e.definition,ruleStack:s,occurrenceStack:o}}var If;(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(If||(If={}));function vmt(e){if(e instanceof Am||e==="Option")return If.OPTION;if(e instanceof l0||e==="Repetition")return If.REPETITION;if(e instanceof Kw||e==="RepetitionMandatory")return If.REPETITION_MANDATORY;if(e instanceof Xw||e==="RepetitionMandatoryWithSeparator")return If.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof u_||e==="RepetitionWithSeparator")return If.REPETITION_WITH_SEPARATOR;if(e instanceof h_||e==="Alternation")return If.ALTERNATION;throw Error("non exhaustive match")}function v4n(e){const{occurrence:t,rule:r,prodType:a,maxLookahead:s}=e,o=vmt(a);return o===If.ALTERNATION?$ke(t,r,s):Uke(t,r,o,s)}function hzi(e,t,r,a,s,o){const u=$ke(e,t,r),h=Ijn(u)?dTe:Gce;return o(u,a,h,s)}function dzi(e,t,r,a,s,o){const u=Uke(e,t,s,r),h=Ijn(u)?dTe:Gce;return o(u[0],h,a)}function fzi(e,t,r,a){const s=e.length,o=tT(e,u=>tT(u,h=>h.length===1));if(t)return function(u){const h=As(u,f=>f.GATE);for(let f=0;feT(f)),h=Gw(u,(f,p,m)=>(_o(p,b=>{so(f,b.tokenTypeIdx)||(f[b.tokenTypeIdx]=m),_o(b.categoryMatches,_=>{so(f,_)||(f[_]=m)})}),f),{});return function(){const f=this.LA(1);return h[f.tokenTypeIdx]}}else return function(){for(let u=0;uo.length===1),s=e.length;if(a&&!r){const o=eT(e);if(o.length===1&&Jh(o[0].categoryMatches)){const h=o[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===h}}else{const u=Gw(o,(h,f,p)=>(h[f.tokenTypeIdx]=!0,_o(f.categoryMatches,m=>{h[m]=!0}),h),[]);return function(){const h=this.LA(1);return u[h.tokenTypeIdx]===!0}}}else return function(){e:for(let o=0;o$ct([u],1)),a=_4n(r.length),s=As(r,u=>{const h={};return _o(u,f=>{const p=Nit(f.partialPath);_o(p,m=>{h[m]=!0})}),h});let o=r;for(let u=1;u<=t;u++){const h=o;o=_4n(h.length);for(let f=0;f{const k=Nit(A.partialPath);_o(k,I=>{s[f][I]=!0})})}}}}return a}function $ke(e,t,r,a){const s=new kjn(e,If.ALTERNATION,a);return t.accept(s),Rjn(s.result,r)}function Uke(e,t,r,a){const s=new kjn(e,r);t.accept(s);const o=s.result,h=new gzi(t,e,r).startWalking(),f=new s_({definition:o}),p=new s_({definition:h});return Rjn([f,p],a)}function Uct(e,t){e:for(let r=0;r{const s=t[a];return r===s||s.categoryMatchesMap[r.tokenTypeIdx]})}function Ijn(e){return tT(e,t=>tT(t,r=>tT(r,a=>Jh(a.categoryMatches))))}function yzi(e){const t=e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName});return As(t,r=>Object.assign({type:dv.CUSTOM_LOOKAHEAD_VALIDATION},r))}function vzi(e,t,r,a){const s=dS(e,f=>_zi(f,r)),o=Ozi(e,t,r),u=dS(e,f=>kzi(f,r)),h=dS(e,f=>xzi(f,e,a,r));return s.concat(o,u,h)}function _zi(e,t){const r=new Ezi;e.accept(r);const a=r.allProductions,s=$$i(a,wzi),o=yT(s,h=>h.length>1);return As(wp(o),h=>{const f=hT(h),p=t.buildDuplicateFoundError(e,h),m=PC(f),b={message:p,type:dv.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:m,occurrence:f.idx},_=Njn(f);return _&&(b.parameter=_),b})}function wzi(e){return`${PC(e)}_#_${e.idx}_#_${Njn(e)}`}function Njn(e){return e instanceof wd?e.terminalType.name:e instanceof hv?e.nonTerminalName:""}class Ezi extends rK{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(t){this.allProductions.push(t)}visitOption(t){this.allProductions.push(t)}visitRepetitionWithSeparator(t){this.allProductions.push(t)}visitRepetitionMandatory(t){this.allProductions.push(t)}visitRepetitionMandatoryWithSeparator(t){this.allProductions.push(t)}visitRepetition(t){this.allProductions.push(t)}visitAlternation(t){this.allProductions.push(t)}visitTerminal(t){this.allProductions.push(t)}}function xzi(e,t,r,a){const s=[];if(Gw(t,(u,h)=>h.name===e.name?u+1:u,0)>1){const u=a.buildDuplicateRuleNameError({topLevelRule:e,grammarName:r});s.push({message:u,type:dv.DUPLICATE_RULE_NAME,ruleName:e.name})}return s}function Szi(e,t,r){const a=[];let s;return wv(t,e)||(s=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `,a.push({message:s,type:dv.INVALID_RULE_OVERRIDE,ruleName:e})),a}function Ojn(e,t,r,a=[]){const s=[],o=Fxe(t.definition);if(Jh(o))return[];{const u=e.name;wv(o,e)&&s.push({message:r.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:a}),type:dv.LEFT_RECURSION,ruleName:u});const f=Dke(o,a.concat([e])),p=dS(f,m=>{const b=Im(a);return b.push(m),Ojn(e,m,r,b)});return s.concat(p)}}function Fxe(e){let t=[];if(Jh(e))return t;const r=hT(e);if(r instanceof hv)t.push(r.referencedRule);else if(r instanceof s_||r instanceof Am||r instanceof Kw||r instanceof Xw||r instanceof u_||r instanceof l0)t=t.concat(Fxe(r.definition));else if(r instanceof h_)t=eT(As(r.definition,o=>Fxe(o.definition)));else if(!(r instanceof wd))throw Error("non exhaustive match");const a=uTe(r),s=e.length>1;if(a&&s){const o=fm(e);return t.concat(Fxe(o))}else return t}class _mt extends rK{constructor(){super(...arguments),this.alternations=[]}visitAlternation(t){this.alternations.push(t)}}function Tzi(e,t){const r=new _mt;e.accept(r);const a=r.alternations;return dS(a,o=>{const u=nle(o.definition);return dS(u,(h,f)=>{const p=Ajn([h],[],Gce,1);return Jh(p)?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:o,emptyChoiceIdx:f}),type:dv.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:o.idx,alternative:f+1}]:[]})})}function Czi(e,t,r){const a=new _mt;e.accept(a);let s=a.alternations;return s=Mke(s,u=>u.ignoreAmbiguities===!0),dS(s,u=>{const h=u.idx,f=u.maxLookahead||t,p=$ke(h,e,f,u),m=Izi(p,u,e,r),b=Nzi(p,u,e,r);return m.concat(b)})}class Azi extends rK{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(t){this.allProductions.push(t)}visitRepetitionMandatory(t){this.allProductions.push(t)}visitRepetitionMandatoryWithSeparator(t){this.allProductions.push(t)}visitRepetition(t){this.allProductions.push(t)}}function kzi(e,t){const r=new _mt;e.accept(r);const a=r.alternations;return dS(a,o=>o.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:o}),type:dv.TOO_MANY_ALTS,ruleName:e.name,occurrence:o.idx}]:[])}function Rzi(e,t,r){const a=[];return _o(e,s=>{const o=new Azi;s.accept(o);const u=o.allProductions;_o(u,h=>{const f=vmt(h),p=h.maxLookahead||t,m=h.idx,_=Uke(m,s,f,p)[0];if(Jh(eT(_))){const w=r.buildEmptyRepetitionError({topLevelRule:s,repetition:h});a.push({message:w,type:dv.NO_NON_EMPTY_LOOKAHEAD,ruleName:s.name})}})}),a}function Izi(e,t,r,a){const s=[],o=Gw(e,(h,f,p)=>(t.definition[p].ignoreAmbiguities===!0||_o(f,m=>{const b=[p];_o(e,(_,w)=>{p!==w&&Uct(_,m)&&t.definition[w].ignoreAmbiguities!==!0&&b.push(w)}),b.length>1&&!Uct(s,m)&&(s.push(m),h.push({alts:b,path:m}))}),h),[]);return As(o,h=>{const f=As(h.alts,m=>m+1);return{message:a.buildAlternationAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:f,prefixPath:h.path}),type:dv.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:t.idx,alternatives:h.alts}})}function Nzi(e,t,r,a){const s=Gw(e,(u,h,f)=>{const p=As(h,m=>({idx:f,path:m}));return u.concat(p)},[]);return Uce(dS(s,u=>{if(t.definition[u.idx].ignoreAmbiguities===!0)return[];const f=u.idx,p=u.path,m=PS(s,_=>t.definition[_.idx].ignoreAmbiguities!==!0&&_.idx{const w=[_.idx+1,f+1],S=t.idx===0?"":t.idx;return{message:a.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:w,prefixPath:_.path}),type:dv.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:S,alternatives:w}})}))}function Ozi(e,t,r){const a=[],s=As(t,o=>o.name);return _o(e,o=>{const u=o.name;if(wv(s,u)){const h=r.buildNamespaceConflictError(o);a.push({message:h,type:dv.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:u})}}),a}function Lzi(e){const t=gmt(e,{errMsgProvider:rzi}),r={};return _o(e.rules,a=>{r[a.name]=a}),izi(r,t.errMsgProvider)}function Dzi(e){return e=gmt(e,{errMsgProvider:oF}),vzi(e.rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}const Ljn="MismatchedTokenException",Djn="NoViableAltException",Mjn="EarlyExitException",Pjn="NotAllInputParsedException",Bjn=[Ljn,Djn,Mjn,Pjn];Object.freeze(Bjn);function fTe(e){return wv(Bjn,e.name)}class zke extends Error{constructor(t,r){super(t),this.token=r,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}class Fjn extends zke{constructor(t,r,a){super(t,r),this.previousToken=a,this.name=Ljn}}class Mzi extends zke{constructor(t,r,a){super(t,r),this.previousToken=a,this.name=Djn}}class Pzi extends zke{constructor(t,r){super(t,r),this.name=Pjn}}class Bzi extends zke{constructor(t,r,a){super(t,r),this.previousToken=a,this.name=Mjn}}const Oit={},$jn="InRuleRecoveryException";class Fzi extends Error{constructor(t){super(t),this.name=$jn}}class $zi{initRecoverable(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=so(t,"recoveryEnabled")?t.recoveryEnabled:fR.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=Uzi)}getTokenToInsert(t){const r=ymt(t,"",NaN,NaN,NaN,NaN,NaN,NaN);return r.isInsertedInRecovery=!0,r}canTokenTypeBeInsertedInRecovery(t){return!0}canTokenTypeBeDeletedInRecovery(t){return!0}tryInRepetitionRecovery(t,r,a,s){const o=this.findReSyncTokenType(),u=this.exportLexerState(),h=[];let f=!1;const p=this.LA(1);let m=this.LA(1);const b=()=>{const _=this.LA(0),w=this.errorMessageProvider.buildMismatchTokenMessage({expected:s,actual:p,previous:_,ruleName:this.getCurrRuleFullName()}),S=new Fjn(w,p,this.LA(0));S.resyncedTokens=nle(h),this.SAVE_ERROR(S)};for(;!f;)if(this.tokenMatcher(m,s)){b();return}else if(a.call(this)){b(),t.apply(this,r);return}else this.tokenMatcher(m,o)?f=!0:(m=this.SKIP_TOKEN(),this.addToResyncTokens(m,h));this.importLexerState(u)}shouldInRepetitionRecoveryBeTried(t,r,a){return!(a===!1||this.tokenMatcher(this.LA(1),t)||this.isBackTracking()||this.canPerformInRuleRecovery(t,this.getFollowsForInRuleRecovery(t,r)))}getFollowsForInRuleRecovery(t,r){const a=this.getCurrentGrammarPath(t,r);return this.getNextPossibleTokenTypes(a)}tryInRuleRecovery(t,r){if(this.canRecoverWithSingleTokenInsertion(t,r))return this.getTokenToInsert(t);if(this.canRecoverWithSingleTokenDeletion(t)){const a=this.SKIP_TOKEN();return this.consumeToken(),a}throw new Fzi("sad sad panda")}canPerformInRuleRecovery(t,r){return this.canRecoverWithSingleTokenInsertion(t,r)||this.canRecoverWithSingleTokenDeletion(t)}canRecoverWithSingleTokenInsertion(t,r){if(!this.canTokenTypeBeInsertedInRecovery(t)||Jh(r))return!1;const a=this.LA(1);return Yj(r,o=>this.tokenMatcher(a,o))!==void 0}canRecoverWithSingleTokenDeletion(t){return this.canTokenTypeBeDeletedInRecovery(t)?this.tokenMatcher(this.LA(2),t):!1}isInCurrentRuleReSyncSet(t){const r=this.getCurrFollowKey(),a=this.getFollowSetFromFollowKey(r);return wv(a,t)}findReSyncTokenType(){const t=this.flattenFollowSet();let r=this.LA(1),a=2;for(;;){const s=Yj(t,o=>Cjn(r,o));if(s!==void 0)return s;r=this.LA(a),a++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return Oit;const t=this.getLastExplicitRuleShortName(),r=this.getLastExplicitRuleOccurrenceIndex(),a=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:r,inRule:this.shortRuleNameToFullName(a)}}buildFullFollowKeyStack(){const t=this.RULE_STACK,r=this.RULE_OCCURRENCE_STACK;return As(t,(a,s)=>s===0?Oit:{ruleName:this.shortRuleNameToFullName(a),idxInCallingRule:r[s],inRule:this.shortRuleNameToFullName(t[s-1])})}flattenFollowSet(){const t=As(this.buildFullFollowKeyStack(),r=>this.getFollowSetFromFollowKey(r));return eT(t)}getFollowSetFromFollowKey(t){if(t===Oit)return[p9];const r=t.ruleName+t.idxInCallingRule+gjn+t.inRule;return this.resyncFollows[r]}addToResyncTokens(t,r){return this.tokenMatcher(t,p9)||r.push(t),r}reSyncTo(t){const r=[];let a=this.LA(1);for(;this.tokenMatcher(a,t)===!1;)a=this.SKIP_TOKEN(),this.addToResyncTokens(a,r);return nle(r)}attemptInRepetitionRecovery(t,r,a,s,o,u,h){}getCurrentGrammarPath(t,r){const a=this.getHumanReadableRuleStack(),s=Im(this.RULE_OCCURRENCE_STACK);return{ruleStack:a,occurrenceStack:s,lastTok:t,lastTokOccurrence:r}}getHumanReadableRuleStack(){return As(this.RULE_STACK,t=>this.shortRuleNameToFullName(t))}}function Uzi(e,t,r,a,s,o,u){const h=this.getKeyForAutomaticLookahead(a,s);let f=this.firstAfterRepMap[h];if(f===void 0){const _=this.getCurrRuleFullName(),w=this.getGAstProductions()[_];f=new o(w,s).startWalking(),this.firstAfterRepMap[h]=f}let p=f.token,m=f.occurrence;const b=f.isEndOfRule;this.RULE_STACK.length===1&&b&&p===void 0&&(p=p9,m=1),!(p===void 0||m===void 0)&&this.shouldInRepetitionRecoveryBeTried(p,m,u)&&this.tryInRepetitionRecovery(e,t,r,p)}const zzi=4,Z9=8,Ujn=1<Ojn(r,r,oF))}validateEmptyOrAlternatives(t){return dS(t,r=>Tzi(r,oF))}validateAmbiguousAlternationAlternatives(t,r){return dS(t,a=>Czi(a,r,oF))}validateSomeNonEmptyLookaheadPath(t,r){return Rzi(t,r,oF)}buildLookaheadForAlternation(t){return hzi(t.prodOccurrence,t.rule,t.maxLookahead,t.hasPredicates,t.dynamicTokensEnabled,fzi)}buildLookaheadForOptional(t){return dzi(t.prodOccurrence,t.rule,t.maxLookahead,t.dynamicTokensEnabled,vmt(t.prodType),pzi)}}class Gzi{initLooksAhead(t){this.dynamicTokensEnabled=so(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:fR.dynamicTokensEnabled,this.maxLookahead=so(t,"maxLookahead")?t.maxLookahead:fR.maxLookahead,this.lookaheadStrategy=so(t,"lookaheadStrategy")?t.lookaheadStrategy:new wmt({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(t){_o(t,r=>{this.TRACE_INIT(`${r.name} Rule Lookahead`,()=>{const{alternation:a,repetition:s,option:o,repetitionMandatory:u,repetitionMandatoryWithSeparator:h,repetitionWithSeparator:f}=Hzi(r);_o(a,p=>{const m=p.idx===0?"":p.idx;this.TRACE_INIT(`${PC(p)}${m}`,()=>{const b=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:p.idx,rule:r,maxLookahead:p.maxLookahead||this.maxLookahead,hasPredicates:p.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),_=Lit(this.fullRuleNameToShort[r.name],Ujn,p.idx);this.setLaFuncCache(_,b)})}),_o(s,p=>{this.computeLookaheadFunc(r,p.idx,zct,"Repetition",p.maxLookahead,PC(p))}),_o(o,p=>{this.computeLookaheadFunc(r,p.idx,zjn,"Option",p.maxLookahead,PC(p))}),_o(u,p=>{this.computeLookaheadFunc(r,p.idx,Gct,"RepetitionMandatory",p.maxLookahead,PC(p))}),_o(h,p=>{this.computeLookaheadFunc(r,p.idx,$xe,"RepetitionMandatoryWithSeparator",p.maxLookahead,PC(p))}),_o(f,p=>{this.computeLookaheadFunc(r,p.idx,qct,"RepetitionWithSeparator",p.maxLookahead,PC(p))})})})}computeLookaheadFunc(t,r,a,s,o,u){this.TRACE_INIT(`${u}${r===0?"":r}`,()=>{const h=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:r,rule:t,maxLookahead:o||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:s}),f=Lit(this.fullRuleNameToShort[t.name],a,r);this.setLaFuncCache(f,h)})}getKeyForAutomaticLookahead(t,r){const a=this.getLastExplicitRuleShortName();return Lit(a,t,r)}getLaFuncFromCache(t){return this.lookAheadFuncsCache.get(t)}setLaFuncCache(t,r){this.lookAheadFuncsCache.set(t,r)}}class qzi extends rK{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(t){this.dslMethods.option.push(t)}visitRepetitionWithSeparator(t){this.dslMethods.repetitionWithSeparator.push(t)}visitRepetitionMandatory(t){this.dslMethods.repetitionMandatory.push(t)}visitRepetitionMandatoryWithSeparator(t){this.dslMethods.repetitionMandatoryWithSeparator.push(t)}visitRepetition(t){this.dslMethods.repetition.push(t)}visitAlternation(t){this.dslMethods.alternation.push(t)}}const tEe=new qzi;function Hzi(e){tEe.reset(),e.accept(tEe);const t=tEe.dslMethods;return tEe.reset(),t}function w4n(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffsetu.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: ${o.join(` `).replace(/\n/g,` `)}`)}}};return r.prototype=a,r.prototype.constructor=r,r._RULE_NAMES=t,r}function Xzi(e,t,r){const a=function(){};Gjn(a,e+"BaseSemanticsWithDefaults");const s=Object.create(r.prototype);return _o(t,o=>{s[o]=Wzi}),a.prototype=s,a.prototype.constructor=a,a}var Hct;(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(Hct||(Hct={}));function Qzi(e,t){return Zzi(e,t)}function Zzi(e,t){const r=PS(t,s=>CR(e[s])===!1),a=As(r,s=>({msg:`Missing visitor method: <${s}> on ${e.constructor.name} CST Visitor.`,type:Hct.MISSING_METHOD,methodName:s}));return Uce(a)}class Jzi{initTreeBuilder(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=so(t,"nodeLocationTracking")?t.nodeLocationTracking:fR.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=gp,this.cstFinallyStateUpdate=gp,this.cstPostTerminal=gp,this.cstPostNonTerminal=gp,this.cstPostRule=gp;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=E4n,this.setNodeLocationFromNode=E4n,this.cstPostRule=gp,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=gp,this.setNodeLocationFromNode=gp,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=w4n,this.setNodeLocationFromNode=w4n,this.cstPostRule=gp,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=gp,this.setNodeLocationFromNode=gp,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=gp,this.setNodeLocationFromNode=gp,this.cstPostRule=gp,this.setInitialNodeLocation=gp;else throw Error(`Invalid config option: "${t.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(t){t.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(t){const r=this.LA(1);t.location={startOffset:r.startOffset,startLine:r.startLine,startColumn:r.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(t){const r={name:t,children:Object.create(null)};this.setInitialNodeLocation(r),this.CST_STACK.push(r)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(t){const r=this.LA(0),a=t.location;a.startOffset<=r.startOffset?(a.endOffset=r.endOffset,a.endLine=r.endLine,a.endColumn=r.endColumn):(a.startOffset=NaN,a.startLine=NaN,a.startColumn=NaN)}cstPostRuleOnlyOffset(t){const r=this.LA(0),a=t.location;a.startOffset<=r.startOffset?a.endOffset=r.endOffset:a.startOffset=NaN}cstPostTerminal(t,r){const a=this.CST_STACK[this.CST_STACK.length-1];Vzi(a,r,t),this.setNodeLocationFromToken(a.location,r)}cstPostNonTerminal(t,r){const a=this.CST_STACK[this.CST_STACK.length-1];Yzi(a,r,t),this.setNodeLocationFromNode(a.location,t.location)}getBaseCstVisitorConstructor(){if(dR(this.baseCstVisitorConstructor)){const t=Kzi(this.className,IS(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(dR(this.baseCstVisitorWithDefaultsConstructor)){const t=Xzi(this.className,IS(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=t,t}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){const t=this.RULE_STACK;return t[t.length-1]}getPreviousExplicitRuleShortName(){const t=this.RULE_STACK;return t[t.length-2]}getLastExplicitRuleOccurrenceIndex(){const t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]}}class eGi{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(t){if(this.selfAnalysisDone!==!0)throw Error("Missing invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):gTe}LA(t){const r=this.currIdx+t;return r<0||this.tokVectorLength<=r?gTe:this.tokVector[r]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(t){this.currIdx=t}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}}class tGi{ACTION(t){return t.call(this)}consume(t,r,a){return this.consumeInternal(r,t,a)}subrule(t,r,a){return this.subruleInternal(r,t,a)}option(t,r){return this.optionInternal(r,t)}or(t,r){return this.orInternal(r,t)}many(t,r){return this.manyInternal(t,r)}atLeastOne(t,r){return this.atLeastOneInternal(t,r)}CONSUME(t,r){return this.consumeInternal(t,0,r)}CONSUME1(t,r){return this.consumeInternal(t,1,r)}CONSUME2(t,r){return this.consumeInternal(t,2,r)}CONSUME3(t,r){return this.consumeInternal(t,3,r)}CONSUME4(t,r){return this.consumeInternal(t,4,r)}CONSUME5(t,r){return this.consumeInternal(t,5,r)}CONSUME6(t,r){return this.consumeInternal(t,6,r)}CONSUME7(t,r){return this.consumeInternal(t,7,r)}CONSUME8(t,r){return this.consumeInternal(t,8,r)}CONSUME9(t,r){return this.consumeInternal(t,9,r)}SUBRULE(t,r){return this.subruleInternal(t,0,r)}SUBRULE1(t,r){return this.subruleInternal(t,1,r)}SUBRULE2(t,r){return this.subruleInternal(t,2,r)}SUBRULE3(t,r){return this.subruleInternal(t,3,r)}SUBRULE4(t,r){return this.subruleInternal(t,4,r)}SUBRULE5(t,r){return this.subruleInternal(t,5,r)}SUBRULE6(t,r){return this.subruleInternal(t,6,r)}SUBRULE7(t,r){return this.subruleInternal(t,7,r)}SUBRULE8(t,r){return this.subruleInternal(t,8,r)}SUBRULE9(t,r){return this.subruleInternal(t,9,r)}OPTION(t){return this.optionInternal(t,0)}OPTION1(t){return this.optionInternal(t,1)}OPTION2(t){return this.optionInternal(t,2)}OPTION3(t){return this.optionInternal(t,3)}OPTION4(t){return this.optionInternal(t,4)}OPTION5(t){return this.optionInternal(t,5)}OPTION6(t){return this.optionInternal(t,6)}OPTION7(t){return this.optionInternal(t,7)}OPTION8(t){return this.optionInternal(t,8)}OPTION9(t){return this.optionInternal(t,9)}OR(t){return this.orInternal(t,0)}OR1(t){return this.orInternal(t,1)}OR2(t){return this.orInternal(t,2)}OR3(t){return this.orInternal(t,3)}OR4(t){return this.orInternal(t,4)}OR5(t){return this.orInternal(t,5)}OR6(t){return this.orInternal(t,6)}OR7(t){return this.orInternal(t,7)}OR8(t){return this.orInternal(t,8)}OR9(t){return this.orInternal(t,9)}MANY(t){this.manyInternal(0,t)}MANY1(t){this.manyInternal(1,t)}MANY2(t){this.manyInternal(2,t)}MANY3(t){this.manyInternal(3,t)}MANY4(t){this.manyInternal(4,t)}MANY5(t){this.manyInternal(5,t)}MANY6(t){this.manyInternal(6,t)}MANY7(t){this.manyInternal(7,t)}MANY8(t){this.manyInternal(8,t)}MANY9(t){this.manyInternal(9,t)}MANY_SEP(t){this.manySepFirstInternal(0,t)}MANY_SEP1(t){this.manySepFirstInternal(1,t)}MANY_SEP2(t){this.manySepFirstInternal(2,t)}MANY_SEP3(t){this.manySepFirstInternal(3,t)}MANY_SEP4(t){this.manySepFirstInternal(4,t)}MANY_SEP5(t){this.manySepFirstInternal(5,t)}MANY_SEP6(t){this.manySepFirstInternal(6,t)}MANY_SEP7(t){this.manySepFirstInternal(7,t)}MANY_SEP8(t){this.manySepFirstInternal(8,t)}MANY_SEP9(t){this.manySepFirstInternal(9,t)}AT_LEAST_ONE(t){this.atLeastOneInternal(0,t)}AT_LEAST_ONE1(t){return this.atLeastOneInternal(1,t)}AT_LEAST_ONE2(t){this.atLeastOneInternal(2,t)}AT_LEAST_ONE3(t){this.atLeastOneInternal(3,t)}AT_LEAST_ONE4(t){this.atLeastOneInternal(4,t)}AT_LEAST_ONE5(t){this.atLeastOneInternal(5,t)}AT_LEAST_ONE6(t){this.atLeastOneInternal(6,t)}AT_LEAST_ONE7(t){this.atLeastOneInternal(7,t)}AT_LEAST_ONE8(t){this.atLeastOneInternal(8,t)}AT_LEAST_ONE9(t){this.atLeastOneInternal(9,t)}AT_LEAST_ONE_SEP(t){this.atLeastOneSepFirstInternal(0,t)}AT_LEAST_ONE_SEP1(t){this.atLeastOneSepFirstInternal(1,t)}AT_LEAST_ONE_SEP2(t){this.atLeastOneSepFirstInternal(2,t)}AT_LEAST_ONE_SEP3(t){this.atLeastOneSepFirstInternal(3,t)}AT_LEAST_ONE_SEP4(t){this.atLeastOneSepFirstInternal(4,t)}AT_LEAST_ONE_SEP5(t){this.atLeastOneSepFirstInternal(5,t)}AT_LEAST_ONE_SEP6(t){this.atLeastOneSepFirstInternal(6,t)}AT_LEAST_ONE_SEP7(t){this.atLeastOneSepFirstInternal(7,t)}AT_LEAST_ONE_SEP8(t){this.atLeastOneSepFirstInternal(8,t)}AT_LEAST_ONE_SEP9(t){this.atLeastOneSepFirstInternal(9,t)}RULE(t,r,a=mTe){if(wv(this.definedRulesNames,t)){const u={message:oF.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),type:dv.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(u)}this.definedRulesNames.push(t);const s=this.defineRule(t,r,a);return this[t]=s,s}OVERRIDE_RULE(t,r,a=mTe){const s=Szi(t,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(s);const o=this.defineRule(t,r,a);return this[t]=o,o}BACKTRACK(t,r){return function(){this.isBackTrackingStack.push(1);const a=this.saveRecogState();try{return t.apply(this,r),!0}catch(s){if(fTe(s))return!1;throw s}finally{this.reloadRecogState(a),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return uUi(wp(this.gastProductionsCache))}}class nGi{initRecognizerEngine(t,r){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=dTe,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},so(r,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a property. See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0 For Further details.`);if(Wc(t)){if(Jh(t))throw Error(`A Token Vocabulary cannot be empty. Note that the first argument for the parser constructor is no longer a Token vector (since v4.0).`);if(typeof t[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument. See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0 For Further details.`)}if(Wc(t))this.tokensMap=Gw(t,(o,u)=>(o[u.name]=u,o),{});else if(so(t,"modes")&&tT(eT(wp(t.modes)),ezi)){const o=eT(wp(t.modes)),u=mmt(o);this.tokensMap=Gw(u,(h,f)=>(h[f.name]=f,h),{})}else if(RS(t))this.tokensMap=Im(t);else throw new Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=p9;const a=so(t,"modes")?eT(wp(t.modes)):wp(t),s=tT(a,o=>Jh(o.categoryMatches));this.tokenMatcher=s?dTe:Gce,qce(wp(this.tokensMap))}defineRule(t,r,a){if(this.selfAnalysisDone)throw Error(`Grammar rule <${t}> may not be defined after the 'performSelfAnalysis' method has been called' Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);const s=so(a,"resyncEnabled")?a.resyncEnabled:mTe.resyncEnabled,o=so(a,"recoveryValueFunc")?a.recoveryValueFunc:mTe.recoveryValueFunc,u=this.ruleShortNameIdx<u.call(this)&&h.call(this)}}else o=t;if(s.call(this)===!0)return o.call(this)}atLeastOneInternal(t,r){const a=this.getKeyForAutomaticLookahead(Gct,t);return this.atLeastOneInternalLogic(t,r,a)}atLeastOneInternalLogic(t,r,a){let s=this.getLaFuncFromCache(a),o;if(typeof r!="function"){o=r.DEF;const u=r.GATE;if(u!==void 0){const h=s;s=()=>u.call(this)&&h.call(this)}}else o=r;if(s.call(this)===!0){let u=this.doSingleRepetition(o);for(;s.call(this)===!0&&u===!0;)u=this.doSingleRepetition(o)}else throw this.raiseEarlyExitException(t,If.REPETITION_MANDATORY,r.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,r],s,Gct,t,czi)}atLeastOneSepFirstInternal(t,r){const a=this.getKeyForAutomaticLookahead($xe,t);this.atLeastOneSepFirstInternalLogic(t,r,a)}atLeastOneSepFirstInternalLogic(t,r,a){const s=r.DEF,o=r.SEP;if(this.getLaFuncFromCache(a).call(this)===!0){s.call(this);const h=()=>this.tokenMatcher(this.LA(1),o);for(;this.tokenMatcher(this.LA(1),o)===!0;)this.CONSUME(o),s.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,o,h,s,y4n],h,$xe,t,y4n)}else throw this.raiseEarlyExitException(t,If.REPETITION_MANDATORY_WITH_SEPARATOR,r.ERR_MSG)}manyInternal(t,r){const a=this.getKeyForAutomaticLookahead(zct,t);return this.manyInternalLogic(t,r,a)}manyInternalLogic(t,r,a){let s=this.getLaFuncFromCache(a),o;if(typeof r!="function"){o=r.DEF;const h=r.GATE;if(h!==void 0){const f=s;s=()=>h.call(this)&&f.call(this)}}else o=r;let u=!0;for(;s.call(this)===!0&&u===!0;)u=this.doSingleRepetition(o);this.attemptInRepetitionRecovery(this.manyInternal,[t,r],s,zct,t,lzi,u)}manySepFirstInternal(t,r){const a=this.getKeyForAutomaticLookahead(qct,t);this.manySepFirstInternalLogic(t,r,a)}manySepFirstInternalLogic(t,r,a){const s=r.DEF,o=r.SEP;if(this.getLaFuncFromCache(a).call(this)===!0){s.call(this);const h=()=>this.tokenMatcher(this.LA(1),o);for(;this.tokenMatcher(this.LA(1),o)===!0;)this.CONSUME(o),s.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,o,h,s,b4n],h,qct,t,b4n)}}repetitionSepSecondInternal(t,r,a,s,o){for(;a();)this.CONSUME(r),s.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,r,a,s,o],a,$xe,t,o)}doSingleRepetition(t){const r=this.getLexerPosition();return t.call(this),this.getLexerPosition()>r}orInternal(t,r){const a=this.getKeyForAutomaticLookahead(Ujn,r),s=Wc(t)?t:t.DEF,u=this.getLaFuncFromCache(a).call(this,s);if(u!==void 0)return s[u].ALT.call(this);this.raiseNoAltException(r,t.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){const t=this.LA(1),r=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new Pzi(r,t))}}subruleInternal(t,r,a){let s;try{const o=a!==void 0?a.ARGS:void 0;return this.subruleIdx=r,s=t.apply(this,o),this.cstPostNonTerminal(s,a!==void 0&&a.LABEL!==void 0?a.LABEL:t.ruleName),s}catch(o){throw this.subruleInternalError(o,a,t.ruleName)}}subruleInternalError(t,r,a){throw fTe(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,r!==void 0&&r.LABEL!==void 0?r.LABEL:a),delete t.partialCstResult),t}consumeInternal(t,r,a){let s;try{const o=this.LA(1);this.tokenMatcher(o,t)===!0?(this.consumeToken(),s=o):this.consumeInternalError(t,o,a)}catch(o){s=this.consumeInternalRecovery(t,r,o)}return this.cstPostTerminal(a!==void 0&&a.LABEL!==void 0?a.LABEL:t.name,s),s}consumeInternalError(t,r,a){let s;const o=this.LA(0);throw a!==void 0&&a.ERR_MSG?s=a.ERR_MSG:s=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:r,previous:o,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Fjn(s,r,o))}consumeInternalRecovery(t,r,a){if(this.recoveryEnabled&&a.name==="MismatchedTokenException"&&!this.isBackTracking()){const s=this.getFollowsForInRuleRecovery(t,r);try{return this.tryInRuleRecovery(t,s)}catch(o){throw o.name===$jn?a:o}}else throw a}saveRecogState(){const t=this.errors,r=Im(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:r,CST_STACK:this.CST_STACK}}reloadRecogState(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK}ruleInvocationStateUpdate(t,r,a){this.RULE_OCCURRENCE_STACK.push(a),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(r)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){const t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]}shortRuleNameToFullName(t){return this.shortRuleNameToFull[t]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),p9)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}}class rGi{initErrorHandler(t){this._errors=[],this.errorMessageProvider=so(t,"errorMessageProvider")?t.errorMessageProvider:fR.errorMessageProvider}SAVE_ERROR(t){if(fTe(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:Im(this.RULE_OCCURRENCE_STACK)},this._errors.push(t),t;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return Im(this._errors)}set errors(t){this._errors=t}raiseEarlyExitException(t,r,a){const s=this.getCurrRuleFullName(),o=this.getGAstProductions()[s],h=Uke(t,o,r,this.maxLookahead)[0],f=[];for(let m=1;m<=this.maxLookahead;m++)f.push(this.LA(m));const p=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:h,actual:f,previous:this.LA(0),customUserDescription:a,ruleName:s});throw this.SAVE_ERROR(new Bzi(p,this.LA(1),this.LA(0)))}raiseNoAltException(t,r){const a=this.getCurrRuleFullName(),s=this.getGAstProductions()[a],o=$ke(t,s,this.maxLookahead),u=[];for(let p=1;p<=this.maxLookahead;p++)u.push(this.LA(p));const h=this.LA(0),f=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:o,actual:u,previous:h,customUserDescription:r,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new Mzi(f,this.LA(1),h))}}class iGi{initContentAssist(){}computeContentAssist(t,r){const a=this.gastProductionsCache[t];if(dR(a))throw Error(`Rule ->${t}<- does not exist in this grammar.`);return Ajn([a],r,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(t){const r=hT(t.ruleStack),s=this.getGAstProductions()[r];return new ozi(s,t).startWalking()}}const Gke={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(Gke);const x4n=!0,S4n=Math.pow(2,Z9)-1,qjn=Tjn({name:"RECORDING_PHASE_TOKEN",pattern:J2.NA});qce([qjn]);const Hjn=ymt(qjn,`This IToken indicates the Parser is in Recording Phase See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(Hjn);const aGi={name:`This CSTNode indicates the Parser is in Recording Phase See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}};class sGi{initGastRecorder(t){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let t=0;t<10;t++){const r=t>0?t:"";this[`CONSUME${r}`]=function(a,s){return this.consumeInternalRecord(a,t,s)},this[`SUBRULE${r}`]=function(a,s){return this.subruleInternalRecord(a,t,s)},this[`OPTION${r}`]=function(a){return this.optionInternalRecord(a,t)},this[`OR${r}`]=function(a){return this.orInternalRecord(a,t)},this[`MANY${r}`]=function(a){this.manyInternalRecord(t,a)},this[`MANY_SEP${r}`]=function(a){this.manySepFirstInternalRecord(t,a)},this[`AT_LEAST_ONE${r}`]=function(a){this.atLeastOneInternalRecord(t,a)},this[`AT_LEAST_ONE_SEP${r}`]=function(a){this.atLeastOneSepFirstInternalRecord(t,a)}}this.consume=function(t,r,a){return this.consumeInternalRecord(r,t,a)},this.subrule=function(t,r,a){return this.subruleInternalRecord(r,t,a)},this.option=function(t,r){return this.optionInternalRecord(r,t)},this.or=function(t,r){return this.orInternalRecord(r,t)},this.many=function(t,r){this.manyInternalRecord(t,r)},this.atLeastOne=function(t,r){this.atLeastOneInternalRecord(t,r)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{const t=this;for(let r=0;r<10;r++){const a=r>0?r:"";delete t[`CONSUME${a}`],delete t[`SUBRULE${a}`],delete t[`OPTION${a}`],delete t[`OR${a}`],delete t[`MANY${a}`],delete t[`MANY_SEP${a}`],delete t[`AT_LEAST_ONE${a}`],delete t[`AT_LEAST_ONE_SEP${a}`]}delete t.consume,delete t.subrule,delete t.option,delete t.or,delete t.many,delete t.atLeastOne,delete t.ACTION,delete t.BACKTRACK,delete t.LA})}ACTION_RECORD(t){}BACKTRACK_RECORD(t,r){return()=>!0}LA_RECORD(t){return gTe}topLevelRuleRecord(t,r){try{const a=new nK({definition:[],name:t});return a.name=t,this.recordingProdStack.push(a),r.call(this),this.recordingProdStack.pop(),a}catch(a){if(a.KNOWN_RECORDER_ERROR!==!0)try{a.message=a.message+` This error was thrown during the "grammar recording phase" For more info see: https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw a}throw a}}optionInternalRecord(t,r){return uie.call(this,Am,t,r)}atLeastOneInternalRecord(t,r){uie.call(this,Kw,r,t)}atLeastOneSepFirstInternalRecord(t,r){uie.call(this,Xw,r,t,x4n)}manyInternalRecord(t,r){uie.call(this,l0,r,t)}manySepFirstInternalRecord(t,r){uie.call(this,u_,r,t,x4n)}orInternalRecord(t,r){return oGi.call(this,t,r)}subruleInternalRecord(t,r,a){if(pTe(r),!t||so(t,"ruleName")===!1){const h=new Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(t)}> inside top level rule: <${this.recordingProdStack[0].name}>`);throw h.KNOWN_RECORDER_ERROR=!0,h}const s=Vj(this.recordingProdStack),o=t.ruleName,u=new hv({idx:r,nonTerminalName:o,label:a==null?void 0:a.LABEL,referencedRule:void 0});return s.definition.push(u),this.outputCst?aGi:Gke}consumeInternalRecord(t,r,a){if(pTe(r),!xjn(t)){const u=new Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(t)}> inside top level rule: <${this.recordingProdStack[0].name}>`);throw u.KNOWN_RECORDER_ERROR=!0,u}const s=Vj(this.recordingProdStack),o=new wd({idx:r,terminalType:t,label:a==null?void 0:a.LABEL});return s.definition.push(o),Hjn}}function uie(e,t,r,a=!1){pTe(r);const s=Vj(this.recordingProdStack),o=CR(t)?t:t.DEF,u=new e({definition:[],idx:r});return a&&(u.separator=t.SEP),so(t,"MAX_LOOKAHEAD")&&(u.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(u),o.call(this),s.definition.push(u),this.recordingProdStack.pop(),Gke}function oGi(e,t){pTe(t);const r=Vj(this.recordingProdStack),a=Wc(e)===!1,s=a===!1?e:e.DEF,o=new h_({definition:[],idx:t,ignoreAmbiguities:a&&e.IGNORE_AMBIGUITIES===!0});so(e,"MAX_LOOKAHEAD")&&(o.maxLookahead=e.MAX_LOOKAHEAD);const u=hjn(s,h=>CR(h.GATE));return o.hasPredicates=u,r.definition.push(o),_o(s,h=>{const f=new s_({definition:[]});o.definition.push(f),so(h,"IGNORE_AMBIGUITIES")?f.ignoreAmbiguities=h.IGNORE_AMBIGUITIES:so(h,"GATE")&&(f.ignoreAmbiguities=!0),this.recordingProdStack.push(f),h.ALT.call(this),this.recordingProdStack.pop()}),Gke}function T4n(e){return e===0?"":`${e}`}function pTe(e){if(e<0||e>S4n){const t=new Error(`Invalid DSL Method idx value: <${e}> Idx value must be a none negative value smaller than ${S4n+1}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}class lGi{initPerformanceTracer(t){if(so(t,"traceInitPerf")){const r=t.traceInitPerf,a=typeof r=="number";this.traceInitMaxIdent=a?r:1/0,this.traceInitPerf=a?r>0:r}else this.traceInitMaxIdent=0,this.traceInitPerf=fR.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(t,r){if(this.traceInitPerf===!0){this.traceInitIndent++;const a=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent <${t}>`);const{time:s,value:o}=fjn(r),u=s>10?console.warn:console.log;return this.traceInitIndent time: ${s}ms`),this.traceInitIndent--,o}else return r()}}function cGi(e,t){t.forEach(r=>{const a=r.prototype;Object.getOwnPropertyNames(a).forEach(s=>{if(s==="constructor")return;const o=Object.getOwnPropertyDescriptor(a,s);o&&(o.get||o.set)?Object.defineProperty(e.prototype,s,o):e.prototype[s]=r.prototype[s]})})}const gTe=ymt(p9,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(gTe);const fR=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:PV,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),mTe=Object.freeze({recoveryValueFunc:()=>{},resyncEnabled:!0});var dv;(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(dv||(dv={}));function C4n(e=void 0){return function(){return e}}class Hce{static performSelfAnalysis(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let t;this.selfAnalysisDone=!0;const r=this.className;this.TRACE_INIT("toFastProps",()=>{pjn(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),_o(this.definedRulesNames,s=>{const u=this[s].originalGrammarAction;let h;this.TRACE_INIT(`${s} Rule`,()=>{h=this.topLevelRuleRecord(s,u)}),this.gastProductionsCache[s]=h})}finally{this.disableRecording()}});let a=[];if(this.TRACE_INIT("Grammar Resolving",()=>{a=Lzi({rules:wp(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(a)}),this.TRACE_INIT("Grammar Validations",()=>{if(Jh(a)&&this.skipValidations===!1){const s=Dzi({rules:wp(this.gastProductionsCache),tokenTypes:wp(this.tokensMap),errMsgProvider:oF,grammarName:r}),o=yzi({lookaheadStrategy:this.lookaheadStrategy,rules:wp(this.gastProductionsCache),tokenTypes:wp(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(s,o)}}),Jh(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{const s=bUi(wp(this.gastProductionsCache));this.resyncFollows=s}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var s,o;(o=(s=this.lookaheadStrategy).initialize)===null||o===void 0||o.call(s,{rules:wp(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(wp(this.gastProductionsCache))})),!Hce.DEFER_DEFINITION_ERRORS_HANDLING&&!Jh(this.definitionErrors))throw t=As(this.definitionErrors,s=>s.message),new Error(`Parser Definition Errors detected: ${t.join(` ------------------------------- `)}`)})}constructor(t,r){this.definitionErrors=[],this.selfAnalysisDone=!1;const a=this;if(a.initErrorHandler(r),a.initLexerAdapter(),a.initLooksAhead(r),a.initRecognizerEngine(t,r),a.initRecoverable(r),a.initTreeBuilder(r),a.initContentAssist(),a.initGastRecorder(r),a.initPerformanceTracer(r),so(r,"ignoredIssues"))throw new Error(`The IParserConfig property has been deprecated. Please use the flag on the relevant DSL method instead. See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES For further details.`);this.skipValidations=so(r,"skipValidations")?r.skipValidations:fR.skipValidations}}Hce.DEFER_DEFINITION_ERRORS_HANDLING=!1;cGi(Hce,[$zi,Gzi,Jzi,eGi,nGi,tGi,rGi,iGi,sGi,lGi]);class uGi extends Hce{constructor(t,r=fR){const a=Im(r);a.outputCst=!1,super(t,a)}}function jj(e,t,r){return`${e.name}_${t}_${r}`}const g9=1,hGi=2,Vjn=4,Yjn=5,Vce=7,dGi=8,fGi=9,pGi=10,gGi=11,jjn=12;class Emt{constructor(t){this.target=t}isEpsilon(){return!1}}class xmt extends Emt{constructor(t,r){super(t),this.tokenType=r}}class Wjn extends Emt{constructor(t){super(t)}isEpsilon(){return!0}}class Smt extends Emt{constructor(t,r,a){super(t),this.rule=r,this.followState=a}isEpsilon(){return!0}}function mGi(e){const t={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};bGi(t,e);const r=e.length;for(let a=0;aKjn(e,t,u));return iK(e,t,a,r,...s)}function xGi(e,t,r){const a=Rg(e,t,r,{type:g9});J9(e,a);const s=iK(e,t,a,r,Y$(e,t,r));return SGi(e,t,r,s)}function Y$(e,t,r){const a=Rp(wo(r.definition,s=>Kjn(e,t,s)),s=>s!==void 0);return a.length===1?a[0]:a.length===0?void 0:CGi(e,a)}function Xjn(e,t,r,a,s){const o=a.left,u=a.right,h=Rg(e,t,r,{type:gGi});J9(e,h);const f=Rg(e,t,r,{type:jjn});return o.loopback=h,f.loopback=h,e.decisionMap[jj(t,s?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=h,T1(u,h),s===void 0?(T1(h,o),T1(h,f)):(T1(h,f),T1(h,s.left),T1(s.right,o)),{left:o,right:f}}function Qjn(e,t,r,a,s){const o=a.left,u=a.right,h=Rg(e,t,r,{type:pGi});J9(e,h);const f=Rg(e,t,r,{type:jjn}),p=Rg(e,t,r,{type:fGi});return h.loopback=p,f.loopback=p,T1(h,o),T1(h,f),T1(u,p),s!==void 0?(T1(p,f),T1(p,s.left),T1(s.right,o)):T1(p,h),e.decisionMap[jj(t,s?"RepetitionWithSeparator":"Repetition",r.idx)]=h,{left:h,right:f}}function SGi(e,t,r,a){const s=a.left,o=a.right;return T1(s,o),e.decisionMap[jj(t,"Option",r.idx)]=s,a}function J9(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}function iK(e,t,r,a,...s){const o=Rg(e,t,a,{type:dGi,start:r});r.end=o;for(const h of s)h!==void 0?(T1(r,h.left),T1(h.right,o)):T1(r,o);const u={left:r,right:o};return e.decisionMap[jj(t,TGi(a),a.idx)]=r,u}function TGi(e){if(e instanceof h_)return"Alternation";if(e instanceof Am)return"Option";if(e instanceof l0)return"Repetition";if(e instanceof u_)return"RepetitionWithSeparator";if(e instanceof Kw)return"RepetitionMandatory";if(e instanceof Xw)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}function CGi(e,t){const r=t.length;for(let o=0;ot.alt)}get key(){let t="";for(const r in this.map)t+=r+":";return t}}function Zjn(e,t=!0){return`${t?`a${e.alt}`:""}s${e.state.stateNumber}:${e.stack.map(r=>r.stateNumber.toString()).join("_")}`}function IGi(e,t){const r={};return a=>{const s=a.toString();let o=r[s];return o!==void 0||(o={atnStartState:e,decision:t,states:{}},r[s]=o),o}}class Jjn{constructor(){this.predicates=[]}is(t){return t>=this.predicates.length||this.predicates[t]}set(t,r){this.predicates[t]=r}toString(){let t="";const r=this.predicates.length;for(let a=0;aconsole.log(a)}initialize(t){this.atn=mGi(t.rules),this.dfas=OGi(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(t){const{prodOccurrence:r,rule:a,hasPredicates:s,dynamicTokensEnabled:o}=t,u=this.dfas,h=this.logging,f=jj(a,"Alternation",r),m=this.atn.decisionMap[f].decision,b=wo(v4n({maxLookahead:1,occurrence:r,prodType:"Alternation",rule:a}),_=>wo(_,w=>w[0]));if(k4n(b,!1)&&!o){const _=TS(b,(w,S,C)=>(Zt(S,A=>{A&&(w[A.tokenTypeIdx]=C,Zt(A.categoryMatches,k=>{w[k]=C}))}),w),{});return s?function(w){var S;const C=this.LA(1),A=_[C.tokenTypeIdx];if(w!==void 0&&A!==void 0){const k=(S=w[A])===null||S===void 0?void 0:S.GATE;if(k!==void 0&&k.call(this)===!1)return}return A}:function(){const w=this.LA(1);return _[w.tokenTypeIdx]}}else return s?function(_){const w=new Jjn,S=_===void 0?0:_.length;for(let A=0;Awo(_,w=>w[0]));if(k4n(b)&&b[0][0]&&!o){const _=b[0],w=MS(_);if(w.length===1&&uA(w[0].categoryMatches)){const C=w[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===C}}else{const S=TS(w,(C,A)=>(A!==void 0&&(C[A.tokenTypeIdx]=!0,Zt(A.categoryMatches,k=>{C[k]=!0})),C),{});return function(){const C=this.LA(1);return S[C.tokenTypeIdx]===!0}}}return function(){const _=Dit.call(this,u,m,A4n,h);return typeof _=="object"?!1:_===0}}}function k4n(e,t=!0){const r=new Set;for(const a of e){const s=new Set;for(const o of a){if(o===void 0){if(t)break;return!1}const u=[o.tokenTypeIdx].concat(o.categoryMatches);for(const h of u)if(r.has(h)){if(!s.has(h))return!1}else r.add(h),s.add(h)}}return!0}function OGi(e){const t=e.decisionStates.length,r=Array(t);for(let a=0;aoY(s)).join(", "),r=e.production.idx===0?"":e.production.idx;let a=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(", ")}> in <${BGi(e.production)}${r}> inside <${e.topLevelRule.name}> Rule, <${t}> may appears as a prefix path in all these alternatives. `;return a=a+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES For Further details.`,a}function BGi(e){if(e instanceof hv)return"SUBRULE";if(e instanceof Am)return"OPTION";if(e instanceof h_)return"OR";if(e instanceof Kw)return"AT_LEAST_ONE";if(e instanceof Xw)return"AT_LEAST_ONE_SEP";if(e instanceof u_)return"MANY_SEP";if(e instanceof l0)return"MANY";if(e instanceof wd)return"CONSUME";throw Error("non exhaustive match")}function FGi(e,t,r){const a=cAi(t.configs.elements,o=>o.state.transitions),s=IAi(a.filter(o=>o instanceof xmt).map(o=>o.tokenType),o=>o.tokenTypeIdx);return{actualToken:r,possibleTokenTypes:s,tokenPath:e}}function $Gi(e,t){return e.edges[t.tokenTypeIdx]}function UGi(e,t,r){const a=new Vct,s=[];for(const u of e.elements){if(r.is(u.alt)===!1)continue;if(u.state.type===Vce){s.push(u);continue}const h=u.state.transitions.length;for(let f=0;f0&&!VGi(o))for(const u of s)o.add(u);return o}function zGi(e,t){if(e instanceof xmt&&Cjn(t,e.tokenType))return e.target}function GGi(e,t){let r;for(const a of e.elements)if(t.is(a.alt)===!0){if(r===void 0)r=a.alt;else if(r!==a.alt)return}return r}function eWn(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}function R4n(e,t,r,a){return a=tWn(e,a),t.edges[r.tokenTypeIdx]=a,a}function tWn(e,t){if(t===bTe)return t;const r=t.configs.key,a=e.states[r];return a!==void 0?a:(t.configs.finalize(),e.states[r]=t,t)}function qGi(e){const t=new Vct,r=e.transitions.length;for(let a=0;a0){const s=[...e.stack],u={state:s.pop(),alt:e.alt,stack:s};yTe(u,t)}else t.add(e);return}r.epsilonOnlyTransitions||t.add(e);const a=r.transitions.length;for(let s=0;s1)return!0;return!1}function XGi(e){for(const t of Array.from(e.values()))if(Object.keys(t).length===1)return!0;return!1}var I4n;(function(e){function t(r){return typeof r=="string"}e.is=t})(I4n||(I4n={}));var Yct;(function(e){function t(r){return typeof r=="string"}e.is=t})(Yct||(Yct={}));var N4n;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}e.is=t})(N4n||(N4n={}));var vTe;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}e.is=t})(vTe||(vTe={}));var Pu;(function(e){function t(a,s){return a===Number.MAX_VALUE&&(a=vTe.MAX_VALUE),s===Number.MAX_VALUE&&(s=vTe.MAX_VALUE),{line:a,character:s}}e.create=t;function r(a){let s=a;return nr.objectLiteral(s)&&nr.uinteger(s.line)&&nr.uinteger(s.character)}e.is=r})(Pu||(Pu={}));var Bc;(function(e){function t(a,s,o,u){if(nr.uinteger(a)&&nr.uinteger(s)&&nr.uinteger(o)&&nr.uinteger(u))return{start:Pu.create(a,s),end:Pu.create(o,u)};if(Pu.is(a)&&Pu.is(s))return{start:a,end:s};throw new Error(`Range#create called with invalid arguments[${a}, ${s}, ${o}, ${u}]`)}e.create=t;function r(a){let s=a;return nr.objectLiteral(s)&&Pu.is(s.start)&&Pu.is(s.end)}e.is=r})(Bc||(Bc={}));var _Te;(function(e){function t(a,s){return{uri:a,range:s}}e.create=t;function r(a){let s=a;return nr.objectLiteral(s)&&Bc.is(s.range)&&(nr.string(s.uri)||nr.undefined(s.uri))}e.is=r})(_Te||(_Te={}));var O4n;(function(e){function t(a,s,o,u){return{targetUri:a,targetRange:s,targetSelectionRange:o,originSelectionRange:u}}e.create=t;function r(a){let s=a;return nr.objectLiteral(s)&&Bc.is(s.targetRange)&&nr.string(s.targetUri)&&Bc.is(s.targetSelectionRange)&&(Bc.is(s.originSelectionRange)||nr.undefined(s.originSelectionRange))}e.is=r})(O4n||(O4n={}));var jct;(function(e){function t(a,s,o,u){return{red:a,green:s,blue:o,alpha:u}}e.create=t;function r(a){const s=a;return nr.objectLiteral(s)&&nr.numberRange(s.red,0,1)&&nr.numberRange(s.green,0,1)&&nr.numberRange(s.blue,0,1)&&nr.numberRange(s.alpha,0,1)}e.is=r})(jct||(jct={}));var L4n;(function(e){function t(a,s){return{range:a,color:s}}e.create=t;function r(a){const s=a;return nr.objectLiteral(s)&&Bc.is(s.range)&&jct.is(s.color)}e.is=r})(L4n||(L4n={}));var D4n;(function(e){function t(a,s,o){return{label:a,textEdit:s,additionalTextEdits:o}}e.create=t;function r(a){const s=a;return nr.objectLiteral(s)&&nr.string(s.label)&&(nr.undefined(s.textEdit)||Kj.is(s))&&(nr.undefined(s.additionalTextEdits)||nr.typedArray(s.additionalTextEdits,Kj.is))}e.is=r})(D4n||(D4n={}));var M4n;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(M4n||(M4n={}));var P4n;(function(e){function t(a,s,o,u,h,f){const p={startLine:a,endLine:s};return nr.defined(o)&&(p.startCharacter=o),nr.defined(u)&&(p.endCharacter=u),nr.defined(h)&&(p.kind=h),nr.defined(f)&&(p.collapsedText=f),p}e.create=t;function r(a){const s=a;return nr.objectLiteral(s)&&nr.uinteger(s.startLine)&&nr.uinteger(s.startLine)&&(nr.undefined(s.startCharacter)||nr.uinteger(s.startCharacter))&&(nr.undefined(s.endCharacter)||nr.uinteger(s.endCharacter))&&(nr.undefined(s.kind)||nr.string(s.kind))}e.is=r})(P4n||(P4n={}));var Wct;(function(e){function t(a,s){return{location:a,message:s}}e.create=t;function r(a){let s=a;return nr.defined(s)&&_Te.is(s.location)&&nr.string(s.message)}e.is=r})(Wct||(Wct={}));var B4n;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(B4n||(B4n={}));var F4n;(function(e){e.Unnecessary=1,e.Deprecated=2})(F4n||(F4n={}));var $4n;(function(e){function t(r){const a=r;return nr.objectLiteral(a)&&nr.string(a.href)}e.is=t})($4n||($4n={}));var wTe;(function(e){function t(a,s,o,u,h,f){let p={range:a,message:s};return nr.defined(o)&&(p.severity=o),nr.defined(u)&&(p.code=u),nr.defined(h)&&(p.source=h),nr.defined(f)&&(p.relatedInformation=f),p}e.create=t;function r(a){var s;let o=a;return nr.defined(o)&&Bc.is(o.range)&&nr.string(o.message)&&(nr.number(o.severity)||nr.undefined(o.severity))&&(nr.integer(o.code)||nr.string(o.code)||nr.undefined(o.code))&&(nr.undefined(o.codeDescription)||nr.string((s=o.codeDescription)===null||s===void 0?void 0:s.href))&&(nr.string(o.source)||nr.undefined(o.source))&&(nr.undefined(o.relatedInformation)||nr.typedArray(o.relatedInformation,Wct.is))}e.is=r})(wTe||(wTe={}));var Wj;(function(e){function t(a,s,...o){let u={title:a,command:s};return nr.defined(o)&&o.length>0&&(u.arguments=o),u}e.create=t;function r(a){let s=a;return nr.defined(s)&&nr.string(s.title)&&nr.string(s.command)}e.is=r})(Wj||(Wj={}));var Kj;(function(e){function t(o,u){return{range:o,newText:u}}e.replace=t;function r(o,u){return{range:{start:o,end:o},newText:u}}e.insert=r;function a(o){return{range:o,newText:""}}e.del=a;function s(o){const u=o;return nr.objectLiteral(u)&&nr.string(u.newText)&&Bc.is(u.range)}e.is=s})(Kj||(Kj={}));var Kct;(function(e){function t(a,s,o){const u={label:a};return s!==void 0&&(u.needsConfirmation=s),o!==void 0&&(u.description=o),u}e.create=t;function r(a){const s=a;return nr.objectLiteral(s)&&nr.string(s.label)&&(nr.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(nr.string(s.description)||s.description===void 0)}e.is=r})(Kct||(Kct={}));var Xj;(function(e){function t(r){const a=r;return nr.string(a)}e.is=t})(Xj||(Xj={}));var U4n;(function(e){function t(o,u,h){return{range:o,newText:u,annotationId:h}}e.replace=t;function r(o,u,h){return{range:{start:o,end:o},newText:u,annotationId:h}}e.insert=r;function a(o,u){return{range:o,newText:"",annotationId:u}}e.del=a;function s(o){const u=o;return Kj.is(u)&&(Kct.is(u.annotationId)||Xj.is(u.annotationId))}e.is=s})(U4n||(U4n={}));var Xct;(function(e){function t(a,s){return{textDocument:a,edits:s}}e.create=t;function r(a){let s=a;return nr.defined(s)&&tut.is(s.textDocument)&&Array.isArray(s.edits)}e.is=r})(Xct||(Xct={}));var Qct;(function(e){function t(a,s,o){let u={kind:"create",uri:a};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(u.options=s),o!==void 0&&(u.annotationId=o),u}e.create=t;function r(a){let s=a;return s&&s.kind==="create"&&nr.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||nr.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||nr.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Xj.is(s.annotationId))}e.is=r})(Qct||(Qct={}));var Zct;(function(e){function t(a,s,o,u){let h={kind:"rename",oldUri:a,newUri:s};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(h.options=o),u!==void 0&&(h.annotationId=u),h}e.create=t;function r(a){let s=a;return s&&s.kind==="rename"&&nr.string(s.oldUri)&&nr.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||nr.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||nr.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Xj.is(s.annotationId))}e.is=r})(Zct||(Zct={}));var Jct;(function(e){function t(a,s,o){let u={kind:"delete",uri:a};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(u.options=s),o!==void 0&&(u.annotationId=o),u}e.create=t;function r(a){let s=a;return s&&s.kind==="delete"&&nr.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||nr.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||nr.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||Xj.is(s.annotationId))}e.is=r})(Jct||(Jct={}));var eut;(function(e){function t(r){let a=r;return a&&(a.changes!==void 0||a.documentChanges!==void 0)&&(a.documentChanges===void 0||a.documentChanges.every(s=>nr.string(s.kind)?Qct.is(s)||Zct.is(s)||Jct.is(s):Xct.is(s)))}e.is=t})(eut||(eut={}));var z4n;(function(e){function t(a){return{uri:a}}e.create=t;function r(a){let s=a;return nr.defined(s)&&nr.string(s.uri)}e.is=r})(z4n||(z4n={}));var G4n;(function(e){function t(a,s){return{uri:a,version:s}}e.create=t;function r(a){let s=a;return nr.defined(s)&&nr.string(s.uri)&&nr.integer(s.version)}e.is=r})(G4n||(G4n={}));var tut;(function(e){function t(a,s){return{uri:a,version:s}}e.create=t;function r(a){let s=a;return nr.defined(s)&&nr.string(s.uri)&&(s.version===null||nr.integer(s.version))}e.is=r})(tut||(tut={}));var q4n;(function(e){function t(a,s,o,u){return{uri:a,languageId:s,version:o,text:u}}e.create=t;function r(a){let s=a;return nr.defined(s)&&nr.string(s.uri)&&nr.string(s.languageId)&&nr.integer(s.version)&&nr.string(s.text)}e.is=r})(q4n||(q4n={}));var nut;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(r){const a=r;return a===e.PlainText||a===e.Markdown}e.is=t})(nut||(nut={}));var rle;(function(e){function t(r){const a=r;return nr.objectLiteral(r)&&nut.is(a.kind)&&nr.string(a.value)}e.is=t})(rle||(rle={}));var H4n;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(H4n||(H4n={}));var V4n;(function(e){e.PlainText=1,e.Snippet=2})(V4n||(V4n={}));var Y4n;(function(e){e.Deprecated=1})(Y4n||(Y4n={}));var j4n;(function(e){function t(a,s,o){return{newText:a,insert:s,replace:o}}e.create=t;function r(a){const s=a;return s&&nr.string(s.newText)&&Bc.is(s.insert)&&Bc.is(s.replace)}e.is=r})(j4n||(j4n={}));var W4n;(function(e){e.asIs=1,e.adjustIndentation=2})(W4n||(W4n={}));var K4n;(function(e){function t(r){const a=r;return a&&(nr.string(a.detail)||a.detail===void 0)&&(nr.string(a.description)||a.description===void 0)}e.is=t})(K4n||(K4n={}));var X4n;(function(e){function t(r){return{label:r}}e.create=t})(X4n||(X4n={}));var Q4n;(function(e){function t(r,a){return{items:r||[],isIncomplete:!!a}}e.create=t})(Q4n||(Q4n={}));var ETe;(function(e){function t(a){return a.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function r(a){const s=a;return nr.string(s)||nr.objectLiteral(s)&&nr.string(s.language)&&nr.string(s.value)}e.is=r})(ETe||(ETe={}));var Z4n;(function(e){function t(r){let a=r;return!!a&&nr.objectLiteral(a)&&(rle.is(a.contents)||ETe.is(a.contents)||nr.typedArray(a.contents,ETe.is))&&(r.range===void 0||Bc.is(r.range))}e.is=t})(Z4n||(Z4n={}));var J4n;(function(e){function t(r,a){return a?{label:r,documentation:a}:{label:r}}e.create=t})(J4n||(J4n={}));var e3n;(function(e){function t(r,a,...s){let o={label:r};return nr.defined(a)&&(o.documentation=a),nr.defined(s)?o.parameters=s:o.parameters=[],o}e.create=t})(e3n||(e3n={}));var t3n;(function(e){e.Text=1,e.Read=2,e.Write=3})(t3n||(t3n={}));var n3n;(function(e){function t(r,a){let s={range:r};return nr.number(a)&&(s.kind=a),s}e.create=t})(n3n||(n3n={}));var r3n;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(r3n||(r3n={}));var i3n;(function(e){e.Deprecated=1})(i3n||(i3n={}));var a3n;(function(e){function t(r,a,s,o,u){let h={name:r,kind:a,location:{uri:o,range:s}};return u&&(h.containerName=u),h}e.create=t})(a3n||(a3n={}));var s3n;(function(e){function t(r,a,s,o){return o!==void 0?{name:r,kind:a,location:{uri:s,range:o}}:{name:r,kind:a,location:{uri:s}}}e.create=t})(s3n||(s3n={}));var o3n;(function(e){function t(a,s,o,u,h,f){let p={name:a,detail:s,kind:o,range:u,selectionRange:h};return f!==void 0&&(p.children=f),p}e.create=t;function r(a){let s=a;return s&&nr.string(s.name)&&nr.number(s.kind)&&Bc.is(s.range)&&Bc.is(s.selectionRange)&&(s.detail===void 0||nr.string(s.detail))&&(s.deprecated===void 0||nr.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}e.is=r})(o3n||(o3n={}));var l3n;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(l3n||(l3n={}));var xTe;(function(e){e.Invoked=1,e.Automatic=2})(xTe||(xTe={}));var c3n;(function(e){function t(a,s,o){let u={diagnostics:a};return s!=null&&(u.only=s),o!=null&&(u.triggerKind=o),u}e.create=t;function r(a){let s=a;return nr.defined(s)&&nr.typedArray(s.diagnostics,wTe.is)&&(s.only===void 0||nr.typedArray(s.only,nr.string))&&(s.triggerKind===void 0||s.triggerKind===xTe.Invoked||s.triggerKind===xTe.Automatic)}e.is=r})(c3n||(c3n={}));var u3n;(function(e){function t(a,s,o){let u={title:a},h=!0;return typeof s=="string"?(h=!1,u.kind=s):Wj.is(s)?u.command=s:u.edit=s,h&&o!==void 0&&(u.kind=o),u}e.create=t;function r(a){let s=a;return s&&nr.string(s.title)&&(s.diagnostics===void 0||nr.typedArray(s.diagnostics,wTe.is))&&(s.kind===void 0||nr.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||Wj.is(s.command))&&(s.isPreferred===void 0||nr.boolean(s.isPreferred))&&(s.edit===void 0||eut.is(s.edit))}e.is=r})(u3n||(u3n={}));var h3n;(function(e){function t(a,s){let o={range:a};return nr.defined(s)&&(o.data=s),o}e.create=t;function r(a){let s=a;return nr.defined(s)&&Bc.is(s.range)&&(nr.undefined(s.command)||Wj.is(s.command))}e.is=r})(h3n||(h3n={}));var d3n;(function(e){function t(a,s){return{tabSize:a,insertSpaces:s}}e.create=t;function r(a){let s=a;return nr.defined(s)&&nr.uinteger(s.tabSize)&&nr.boolean(s.insertSpaces)}e.is=r})(d3n||(d3n={}));var f3n;(function(e){function t(a,s,o){return{range:a,target:s,data:o}}e.create=t;function r(a){let s=a;return nr.defined(s)&&Bc.is(s.range)&&(nr.undefined(s.target)||nr.string(s.target))}e.is=r})(f3n||(f3n={}));var p3n;(function(e){function t(a,s){return{range:a,parent:s}}e.create=t;function r(a){let s=a;return nr.objectLiteral(s)&&Bc.is(s.range)&&(s.parent===void 0||e.is(s.parent))}e.is=r})(p3n||(p3n={}));var g3n;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(g3n||(g3n={}));var m3n;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(m3n||(m3n={}));var b3n;(function(e){function t(r){const a=r;return nr.objectLiteral(a)&&(a.resultId===void 0||typeof a.resultId=="string")&&Array.isArray(a.data)&&(a.data.length===0||typeof a.data[0]=="number")}e.is=t})(b3n||(b3n={}));var y3n;(function(e){function t(a,s){return{range:a,text:s}}e.create=t;function r(a){const s=a;return s!=null&&Bc.is(s.range)&&nr.string(s.text)}e.is=r})(y3n||(y3n={}));var v3n;(function(e){function t(a,s,o){return{range:a,variableName:s,caseSensitiveLookup:o}}e.create=t;function r(a){const s=a;return s!=null&&Bc.is(s.range)&&nr.boolean(s.caseSensitiveLookup)&&(nr.string(s.variableName)||s.variableName===void 0)}e.is=r})(v3n||(v3n={}));var _3n;(function(e){function t(a,s){return{range:a,expression:s}}e.create=t;function r(a){const s=a;return s!=null&&Bc.is(s.range)&&(nr.string(s.expression)||s.expression===void 0)}e.is=r})(_3n||(_3n={}));var w3n;(function(e){function t(a,s){return{frameId:a,stoppedLocation:s}}e.create=t;function r(a){const s=a;return nr.defined(s)&&Bc.is(a.stoppedLocation)}e.is=r})(w3n||(w3n={}));var rut;(function(e){e.Type=1,e.Parameter=2;function t(r){return r===1||r===2}e.is=t})(rut||(rut={}));var iut;(function(e){function t(a){return{value:a}}e.create=t;function r(a){const s=a;return nr.objectLiteral(s)&&(s.tooltip===void 0||nr.string(s.tooltip)||rle.is(s.tooltip))&&(s.location===void 0||_Te.is(s.location))&&(s.command===void 0||Wj.is(s.command))}e.is=r})(iut||(iut={}));var E3n;(function(e){function t(a,s,o){const u={position:a,label:s};return o!==void 0&&(u.kind=o),u}e.create=t;function r(a){const s=a;return nr.objectLiteral(s)&&Pu.is(s.position)&&(nr.string(s.label)||nr.typedArray(s.label,iut.is))&&(s.kind===void 0||rut.is(s.kind))&&s.textEdits===void 0||nr.typedArray(s.textEdits,Kj.is)&&(s.tooltip===void 0||nr.string(s.tooltip)||rle.is(s.tooltip))&&(s.paddingLeft===void 0||nr.boolean(s.paddingLeft))&&(s.paddingRight===void 0||nr.boolean(s.paddingRight))}e.is=r})(E3n||(E3n={}));var x3n;(function(e){function t(r){return{kind:"snippet",value:r}}e.createSnippet=t})(x3n||(x3n={}));var S3n;(function(e){function t(r,a,s,o){return{insertText:r,filterText:a,range:s,command:o}}e.create=t})(S3n||(S3n={}));var T3n;(function(e){function t(r){return{items:r}}e.create=t})(T3n||(T3n={}));var C3n;(function(e){e.Invoked=0,e.Automatic=1})(C3n||(C3n={}));var A3n;(function(e){function t(r,a){return{range:r,text:a}}e.create=t})(A3n||(A3n={}));var k3n;(function(e){function t(r,a){return{triggerKind:r,selectedCompletionInfo:a}}e.create=t})(k3n||(k3n={}));var R3n;(function(e){function t(r){const a=r;return nr.objectLiteral(a)&&Yct.is(a.uri)&&nr.string(a.name)}e.is=t})(R3n||(R3n={}));var I3n;(function(e){function t(o,u,h,f){return new QGi(o,u,h,f)}e.create=t;function r(o){let u=o;return!!(nr.defined(u)&&nr.string(u.uri)&&(nr.undefined(u.languageId)||nr.string(u.languageId))&&nr.uinteger(u.lineCount)&&nr.func(u.getText)&&nr.func(u.positionAt)&&nr.func(u.offsetAt))}e.is=r;function a(o,u){let h=o.getText(),f=s(u,(m,b)=>{let _=m.range.start.line-b.range.start.line;return _===0?m.range.start.character-b.range.start.character:_}),p=h.length;for(let m=f.length-1;m>=0;m--){let b=f[m],_=o.offsetAt(b.range.start),w=o.offsetAt(b.range.end);if(w<=p)h=h.substring(0,_)+b.newText+h.substring(w,h.length);else throw new Error("Overlapping edit");p=_}return h}e.applyEdits=a;function s(o,u){if(o.length<=1)return o;const h=o.length/2|0,f=o.slice(0,h),p=o.slice(h);s(f,u),s(p,u);let m=0,b=0,_=0;for(;m0&&t.push(r.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let r=this.getLineOffsets(),a=0,s=r.length;if(s===0)return Pu.create(0,t);for(;at?s=u:a=u+1}let o=a-1;return Pu.create(o,t-r[o])}offsetAt(t){let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let a=r[t.line],s=t.line+1"u"}e.undefined=a;function s(w){return w===!0||w===!1}e.boolean=s;function o(w){return t.call(w)==="[object String]"}e.string=o;function u(w){return t.call(w)==="[object Number]"}e.number=u;function h(w,S,C){return t.call(w)==="[object Number]"&&S<=w&&w<=C}e.numberRange=h;function f(w){return t.call(w)==="[object Number]"&&-2147483648<=w&&w<=2147483647}e.integer=f;function p(w){return t.call(w)==="[object Number]"&&0<=w&&w<=2147483647}e.uinteger=p;function m(w){return t.call(w)==="[object Function]"}e.func=m;function b(w){return w!==null&&typeof w=="object"}e.objectLiteral=b;function _(w,S){return Array.isArray(w)&&w.every(S)}e.typedArray=_})(nr||(nr={}));class ZGi{constructor(){this.nodeStack=[]}get current(){var t;return(t=this.nodeStack[this.nodeStack.length-1])!==null&&t!==void 0?t:this.rootNode}buildRootNode(t){return this.rootNode=new rWn(t),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(t){const r=new Amt;return r.grammarSource=t,r.root=this.rootNode,this.current.content.push(r),this.nodeStack.push(r),r}buildLeafNode(t,r){const a=new aut(t.startOffset,t.image.length,kct(t),t.tokenType,!r);return a.grammarSource=r,a.root=this.rootNode,this.current.content.push(a),a}removeNode(t){const r=t.container;if(r){const a=r.content.indexOf(t);a>=0&&r.content.splice(a,1)}}addHiddenNodes(t){const r=[];for(const o of t){const u=new aut(o.startOffset,o.image.length,kct(o),o.tokenType,!0);u.root=this.rootNode,r.push(u)}let a=this.current,s=!1;if(a.content.length>0){a.content.push(...r);return}for(;a.container;){const o=a.container.content.indexOf(a);if(o>0){a.container.content.splice(o,0,...r),s=!0;break}a=a.container}s||this.rootNode.content.unshift(...r)}construct(t){const r=this.current;typeof t.$type=="string"&&(this.current.astNode=t),t.$cstNode=r;const a=this.nodeStack.pop();(a==null?void 0:a.content.length)===0&&this.removeNode(a)}}class nWn{get parent(){return this.container}get feature(){return this.grammarSource}get hidden(){return!1}get astNode(){var t,r;const a=typeof((t=this._astNode)===null||t===void 0?void 0:t.$type)=="string"?this._astNode:(r=this.container)===null||r===void 0?void 0:r.astNode;if(!a)throw new Error("This node has no associated AST element");return a}set astNode(t){this._astNode=t}get element(){return this.astNode}get text(){return this.root.fullText.substring(this.offset,this.end)}}class aut extends nWn{get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(t,r,a,s,o=!1){super(),this._hidden=o,this._offset=t,this._tokenType=s,this._length=r,this._range=a}}class Amt extends nWn{constructor(){super(...arguments),this.content=new kmt(this)}get children(){return this.content}get offset(){var t,r;return(r=(t=this.firstNonHiddenNode)===null||t===void 0?void 0:t.offset)!==null&&r!==void 0?r:0}get length(){return this.end-this.offset}get end(){var t,r;return(r=(t=this.lastNonHiddenNode)===null||t===void 0?void 0:t.end)!==null&&r!==void 0?r:0}get range(){const t=this.firstNonHiddenNode,r=this.lastNonHiddenNode;if(t&&r){if(this._rangeCache===void 0){const{range:a}=t,{range:s}=r;this._rangeCache={start:a.start,end:s.end.line=0;t--){const r=this.content[t];if(!r.hidden)return r}return this.content[this.content.length-1]}}class kmt extends Array{constructor(t){super(),this.parent=t,Object.setPrototypeOf(this,kmt.prototype)}push(...t){return this.addParents(t),super.push(...t)}unshift(...t){return this.addParents(t),super.unshift(...t)}splice(t,r,...a){return this.addParents(a),super.splice(t,r,...a)}addParents(t){for(const r of t)r.container=this.parent}}class rWn extends Amt{get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(t){super(),this._text="",this._text=t??""}}const sut=Symbol("Datatype");function Mit(e){return e.$type===sut}const N3n="​",iWn=e=>e.endsWith(N3n)?e:e+N3n;class aWn{constructor(t){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=t.parser.Lexer;const r=this.lexer.definition,a=t.LanguageMetaData.mode==="production";this.wrapper=new rqi(r,Object.assign(Object.assign({},t.parser.ParserConfig),{skipValidations:a,errorMessageProvider:t.parser.ParserErrorMessageProvider}))}alternatives(t,r){this.wrapper.wrapOr(t,r)}optional(t,r){this.wrapper.wrapOption(t,r)}many(t,r){this.wrapper.wrapMany(t,r)}atLeastOne(t,r){this.wrapper.wrapAtLeastOne(t,r)}getRule(t){return this.allRules.get(t)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}}class JGi extends aWn{get current(){return this.stack[this.stack.length-1]}constructor(t){super(t),this.nodeBuilder=new ZGi,this.stack=[],this.assignmentMap=new Map,this.linker=t.references.Linker,this.converter=t.parser.ValueConverter,this.astReflection=t.shared.AstReflection}rule(t,r){const a=this.computeRuleType(t),s=this.wrapper.DEFINE_RULE(iWn(t.name),this.startImplementation(a,r).bind(this));return this.allRules.set(t.name,s),t.entry&&(this.mainRule=s),s}computeRuleType(t){if(!t.fragment){if(DYn(t))return sut;{const r=Kgt(t);return r??t.name}}}parse(t,r={}){this.nodeBuilder.buildRootNode(t);const a=this.lexerResult=this.lexer.tokenize(t);this.wrapper.input=a.tokens;const s=r.rule?this.allRules.get(r.rule):this.mainRule;if(!s)throw new Error(r.rule?`No rule found with name '${r.rule}'`:"No main rule available.");const o=s.call(this.wrapper,{});return this.nodeBuilder.addHiddenNodes(a.hidden),this.unorderedGroups.clear(),this.lexerResult=void 0,{value:o,lexerErrors:a.errors,lexerReport:a.report,parserErrors:this.wrapper.errors}}startImplementation(t,r){return a=>{const s=!this.isRecording()&&t!==void 0;if(s){const u={$type:t};this.stack.push(u),t===sut&&(u.value="")}let o;try{o=r(a)}catch{o=void 0}return o===void 0&&s&&(o=this.construct()),o}}extractHiddenTokens(t){const r=this.lexerResult.hidden;if(!r.length)return[];const a=t.startOffset;for(let s=0;sa)return r.splice(0,s);return r.splice(0,r.length)}consume(t,r,a){const s=this.wrapper.wrapConsume(t,r);if(!this.isRecording()&&this.isValidToken(s)){const o=this.extractHiddenTokens(s);this.nodeBuilder.addHiddenNodes(o);const u=this.nodeBuilder.buildLeafNode(s,a),{assignment:h,isCrossRef:f}=this.getAssignment(a),p=this.current;if(h){const m=t$(a)?s.image:this.converter.convert(s.image,u);this.assign(h.operator,h.feature,m,u,f)}else if(Mit(p)){let m=s.image;t$(a)||(m=this.converter.convert(m,u).toString()),p.value+=m}}}isValidToken(t){return!t.isInsertedInRecovery&&!isNaN(t.startOffset)&&typeof t.endOffset=="number"&&!isNaN(t.endOffset)}subrule(t,r,a,s,o){let u;!this.isRecording()&&!a&&(u=this.nodeBuilder.buildCompositeNode(s));const h=this.wrapper.wrapSubrule(t,r,o);!this.isRecording()&&u&&u.length>0&&this.performSubruleAssignment(h,s,u)}performSubruleAssignment(t,r,a){const{assignment:s,isCrossRef:o}=this.getAssignment(r);if(s)this.assign(s.operator,s.feature,t,a,o);else if(!s){const u=this.current;if(Mit(u))u.value+=t.toString();else if(typeof t=="object"&&t){const f=this.assignWithoutOverride(t,u);this.stack.pop(),this.stack.push(f)}}}action(t,r){if(!this.isRecording()){let a=this.current;if(r.feature&&r.operator){a=this.construct(),this.nodeBuilder.removeNode(a.$cstNode),this.nodeBuilder.buildCompositeNode(r).content.push(a.$cstNode);const o={$type:t};this.stack.push(o),this.assign(r.operator,r.feature,a,a.$cstNode,!1)}else a.$type=t}}construct(){if(this.isRecording())return;const t=this.current;return tDi(t),this.nodeBuilder.construct(t),this.stack.pop(),Mit(t)?this.converter.convert(t.value,t.$cstNode):(nDi(this.astReflection,t),t)}getAssignment(t){if(!this.assignmentMap.has(t)){const r=wke(t,e$);this.assignmentMap.set(t,{assignment:r,isCrossRef:r?Vgt(r.terminal):!1})}return this.assignmentMap.get(t)}assign(t,r,a,s,o){const u=this.current;let h;switch(o&&typeof a=="string"?h=this.linker.buildReference(u,r,s,a):h=a,t){case"=":{u[r]=h;break}case"?=":{u[r]=!0;break}case"+=":Array.isArray(u[r])||(u[r]=[]),u[r].push(h)}}assignWithoutOverride(t,r){for(const[s,o]of Object.entries(r)){const u=t[s];u===void 0?t[s]=o:Array.isArray(u)&&Array.isArray(o)&&(o.push(...u),t[s]=o)}const a=t.$cstNode;return a&&(a.astNode=void 0,t.$cstNode=void 0),t}get definitionErrors(){return this.wrapper.definitionErrors}}class eqi{buildMismatchTokenMessage(t){return PV.buildMismatchTokenMessage(t)}buildNotAllInputParsedMessage(t){return PV.buildNotAllInputParsedMessage(t)}buildNoViableAltMessage(t){return PV.buildNoViableAltMessage(t)}buildEarlyExitMessage(t){return PV.buildEarlyExitMessage(t)}}class sWn extends eqi{buildMismatchTokenMessage({expected:t,actual:r}){return`Expecting ${t.LABEL?"`"+t.LABEL+"`":t.name.endsWith(":KW")?`keyword '${t.name.substring(0,t.name.length-3)}'`:`token of type '${t.name}'`} but found \`${r.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:t}){return`Expecting end of file but found \`${t.image}\`.`}}class tqi extends aWn{constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(t){this.resetState();const r=this.lexer.tokenize(t,{mode:"partial"});return this.tokens=r.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(t,r){const a=this.wrapper.DEFINE_RULE(iWn(t.name),this.startImplementation(r).bind(this));return this.allRules.set(t.name,a),t.entry&&(this.mainRule=a),a}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(t){return r=>{const a=this.keepStackSize();try{t(r)}finally{this.resetStackSize(a)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){const t=this.elementStack.length;return this.stackSize=t,t}resetStackSize(t){this.removeUnexpectedElements(),this.stackSize=t}consume(t,r,a){this.wrapper.wrapConsume(t,r),this.isRecording()||(this.lastElementStack=[...this.elementStack,a],this.nextTokenIndex=this.currIdx+1)}subrule(t,r,a,s,o){this.before(s),this.wrapper.wrapSubrule(t,r,o),this.after(s)}before(t){this.isRecording()||this.elementStack.push(t)}after(t){if(!this.isRecording()){const r=this.elementStack.lastIndexOf(t);r>=0&&this.elementStack.splice(r)}}get currIdx(){return this.wrapper.currIdx}}const nqi={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new sWn};class rqi extends uGi{constructor(t,r){const a=r&&"maxLookahead"in r;super(t,Object.assign(Object.assign(Object.assign({},nqi),{lookaheadStrategy:a?new wmt({maxLookahead:r.maxLookahead}):new NGi({logging:r.skipValidations?()=>{}:void 0})}),r))}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(t,r){return this.RULE(t,r)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(t,r){return this.consume(t,r)}wrapSubrule(t,r,a){return this.subrule(t,r,{ARGS:[a]})}wrapOr(t,r){this.or(t,r)}wrapOption(t,r){this.option(t,r)}wrapMany(t,r){this.many(t,r)}wrapAtLeastOne(t,r){this.atLeastOne(t,r)}}function oWn(e,t,r){return iqi({parser:t,tokens:r,ruleNames:new Map},e),t}function iqi(e,t){const r=RYn(t,!1),a=wm(t.rules).filter(AS).filter(s=>r.has(s));for(const s of a){const o=Object.assign(Object.assign({},e),{consume:1,optional:1,subrule:1,many:1,or:1});e.parser.rule(s,a$(o,s.definition))}}function a$(e,t,r=!1){let a;if(t$(t))a=hqi(e,t);else if(_ke(t))a=aqi(e,t);else if(e$(t))a=a$(e,t.terminal);else if(Vgt(t))a=lWn(e,t);else if(n$(t))a=sqi(e,t);else if(xYn(t))a=lqi(e,t);else if(SYn(t))a=cqi(e,t);else if(Ygt(t))a=uqi(e,t);else if(jLi(t)){const s=e.consume++;a=()=>e.parser.consume(s,p9,t)}else throw new vYn(t.$cstNode,`Unexpected element type: ${t.$type}`);return cWn(e,r?void 0:STe(t),a,t.cardinality)}function aqi(e,t){const r=Xgt(t);return()=>e.parser.action(r,t)}function sqi(e,t){const r=t.rule.ref;if(AS(r)){const a=e.subrule++,s=r.fragment,o=t.arguments.length>0?oqi(r,t.arguments):()=>({});return u=>e.parser.subrule(a,uWn(e,r),s,t,o(u))}else if(G$(r)){const a=e.consume++,s=out(e,r.name);return()=>e.parser.consume(a,s,t)}else if(r)Dce();else throw new vYn(t.$cstNode,`Undefined rule: ${t.rule.$refText}`)}function oqi(e,t){const r=t.map(a=>v7(a.value));return a=>{const s={};for(let o=0;ot(a)||r(a)}else if(ULi(e)){const t=v7(e.left),r=v7(e.right);return a=>t(a)&&r(a)}else if(GLi(e)){const t=v7(e.value);return r=>!t(r)}else if(qLi(e)){const t=e.parameter.ref.name;return r=>r!==void 0&&r[t]===!0}else if($Li(e)){const t=!!e.true;return()=>t}Dce()}function lqi(e,t){if(t.elements.length===1)return a$(e,t.elements[0]);{const r=[];for(const s of t.elements){const o={ALT:a$(e,s,!0)},u=STe(s);u&&(o.GATE=v7(u)),r.push(o)}const a=e.or++;return s=>e.parser.alternatives(a,r.map(o=>{const u={ALT:()=>o.ALT(s)},h=o.GATE;return h&&(u.GATE=()=>h(s)),u}))}}function cqi(e,t){if(t.elements.length===1)return a$(e,t.elements[0]);const r=[];for(const h of t.elements){const f={ALT:a$(e,h,!0)},p=STe(h);p&&(f.GATE=v7(p)),r.push(f)}const a=e.or++,s=(h,f)=>{const p=f.getRuleStack().join("-");return`uGroup_${h}_${p}`},o=h=>e.parser.alternatives(a,r.map((f,p)=>{const m={ALT:()=>!0},b=e.parser;m.ALT=()=>{if(f.ALT(h),!b.isRecording()){const w=s(a,b);b.unorderedGroups.get(w)||b.unorderedGroups.set(w,[]);const S=b.unorderedGroups.get(w);typeof(S==null?void 0:S[p])>"u"&&(S[p]=!0)}};const _=f.GATE;return _?m.GATE=()=>_(h):m.GATE=()=>{const w=b.unorderedGroups.get(s(a,b));return!(w!=null&&w[p])},m})),u=cWn(e,STe(t),o,"*");return h=>{u(h),e.parser.isRecording()||e.parser.unorderedGroups.delete(s(a,e.parser))}}function uqi(e,t){const r=t.elements.map(a=>a$(e,a));return a=>r.forEach(s=>s(a))}function STe(e){if(Ygt(e))return e.guardCondition}function lWn(e,t,r=t.terminal){if(r)if(n$(r)&&AS(r.rule.ref)){const a=r.rule.ref,s=e.subrule++;return o=>e.parser.subrule(s,uWn(e,a),!1,t,o)}else if(n$(r)&&G$(r.rule.ref)){const a=e.consume++,s=out(e,r.rule.ref.name);return()=>e.parser.consume(a,s,t)}else if(t$(r)){const a=e.consume++,s=out(e,r.value);return()=>e.parser.consume(a,s,t)}else throw new Error("Could not build cross reference parser");else{if(!t.type.ref)throw new Error("Could not resolve reference to type: "+t.type.$refText);const a=OYn(t.type.ref),s=a==null?void 0:a.terminal;if(!s)throw new Error("Could not find name assignment for type: "+Xgt(t.type.ref));return lWn(e,t,s)}}function hqi(e,t){const r=e.consume++,a=e.tokens[t.value];if(!a)throw new Error("Could not find token for keyword: "+t.value);return()=>e.parser.consume(r,a,t)}function cWn(e,t,r,a){const s=t&&v7(t);if(!a)if(s){const o=e.or++;return u=>e.parser.alternatives(o,[{ALT:()=>r(u),GATE:()=>s(u)},{ALT:C4n(),GATE:()=>!s(u)}])}else return r;if(a==="*"){const o=e.many++;return u=>e.parser.many(o,{DEF:()=>r(u),GATE:s?()=>s(u):void 0})}else if(a==="+"){const o=e.many++;if(s){const u=e.or++;return h=>e.parser.alternatives(u,[{ALT:()=>e.parser.atLeastOne(o,{DEF:()=>r(h)}),GATE:()=>s(h)},{ALT:C4n(),GATE:()=>!s(h)}])}else return u=>e.parser.atLeastOne(o,{DEF:()=>r(u)})}else if(a==="?"){const o=e.optional++;return u=>e.parser.optional(o,{DEF:()=>r(u),GATE:s?()=>s(u):void 0})}else Dce()}function uWn(e,t){const r=dqi(e,t),a=e.parser.getRule(r);if(!a)throw new Error(`Rule "${r}" not found."`);return a}function dqi(e,t){if(AS(t))return t.name;if(e.ruleNames.has(t))return e.ruleNames.get(t);{let r=t,a=r.$container,s=t.$type;for(;!AS(a);)(Ygt(a)||xYn(a)||SYn(a))&&(s=a.elements.indexOf(r).toString()+":"+s),r=a,a=a.$container;return s=a.name+":"+s,e.ruleNames.set(t,s),s}}function out(e,t){const r=e.tokens[t];if(!r)throw new Error(`Token "${t}" not found."`);return r}function fqi(e){const t=e.Grammar,r=e.parser.Lexer,a=new tqi(e);return oWn(t,a,r.definition),a.finalize(),a}function pqi(e){const t=gqi(e);return t.finalize(),t}function gqi(e){const t=e.Grammar,r=e.parser.Lexer,a=new JGi(e);return oWn(t,a,r.definition)}class hWn{constructor(){this.diagnostics=[]}buildTokens(t,r){const a=wm(RYn(t,!1)),s=this.buildTerminalTokens(a),o=this.buildKeywordTokens(a,s,r);return s.forEach(u=>{const h=u.PATTERN;typeof h=="object"&&h&&"test"in h&&Ict(h)?o.unshift(u):o.push(u)}),o}flushLexingReport(t){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){const t=[...this.diagnostics];return this.diagnostics=[],t}buildTerminalTokens(t){return t.filter(G$).filter(r=>!r.fragment).map(r=>this.buildTerminalToken(r)).toArray()}buildTerminalToken(t){const r=Qgt(t),a=this.requiresCustomPattern(r)?this.regexPatternFunction(r):r,s={name:t.name,PATTERN:a};return typeof a=="function"&&(s.LINE_BREAKS=!0),t.hidden&&(s.GROUP=Ict(r)?J2.SKIPPED:"hidden"),s}requiresCustomPattern(t){return t.flags.includes("u")||t.flags.includes("s")?!0:!!(t.source.includes("?<=")||t.source.includes("?(r.lastIndex=s,r.exec(a))}buildKeywordTokens(t,r,a){return t.filter(AS).flatMap(s=>Mce(s).filter(t$)).distinct(s=>s.value).toArray().sort((s,o)=>o.value.length-s.value.length).map(s=>this.buildKeywordToken(s,r,!!(a!=null&&a.caseInsensitive)))}buildKeywordToken(t,r,a){const s=this.buildKeywordPattern(t,a),o={name:t.value,PATTERN:s,LONGER_ALT:this.findLongerAlt(t,r)};return typeof s=="function"&&(o.LINE_BREAKS=!0),o}buildKeywordPattern(t,r){return r?new RegExp(hDi(t.value)):t.value}findLongerAlt(t,r){return r.reduce((a,s)=>{const o=s==null?void 0:s.PATTERN;return o!=null&&o.source&&dDi("^"+o.source+"$",t.value)&&a.push(s),a},[])}}class dWn{convert(t,r){let a=r.grammarSource;if(Vgt(a)&&(a=mDi(a)),n$(a)){const s=a.rule.ref;if(!s)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(s,t,r)}return t}runConverter(t,r,a){var s;switch(t.name.toUpperCase()){case"INT":return l7.convertInt(r);case"STRING":return l7.convertString(r);case"ID":return l7.convertID(r)}switch((s=xDi(t))===null||s===void 0?void 0:s.toLowerCase()){case"number":return l7.convertNumber(r);case"boolean":return l7.convertBoolean(r);case"bigint":return l7.convertBigint(r);case"date":return l7.convertDate(r);default:return r}}}var l7;(function(e){function t(p){let m="";for(let b=1;bfWn(t))}_b.stringArray=_qi;var Qj={};Object.defineProperty(Qj,"__esModule",{value:!0});var gWn=Qj.Emitter=Qj.Event=void 0;const wqi=qke;var O3n;(function(e){const t={dispose(){}};e.None=function(){return t}})(O3n||(Qj.Event=O3n={}));class Eqi{add(t,r=null,a){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(t),this._contexts.push(r),Array.isArray(a)&&a.push({dispose:()=>this.remove(t,r)})}remove(t,r=null){if(!this._callbacks)return;let a=!1;for(let s=0,o=this._callbacks.length;s{this._callbacks||(this._callbacks=new Eqi),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,r);const s={dispose:()=>{this._callbacks&&(this._callbacks.remove(t,r),s.dispose=Hke._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(a)&&a.push(s),s}),this._event}fire(t){this._callbacks&&this._callbacks.invoke.call(this._callbacks,t)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}gWn=Qj.Emitter=Hke;Hke._noop=function(){};var Nf;Object.defineProperty(ile,"__esModule",{value:!0});var Rmt=ile.CancellationTokenSource=Nf=ile.CancellationToken=void 0;const xqi=qke,Sqi=_b,uut=Qj;var TTe;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:uut.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:uut.Event.None});function t(r){const a=r;return a&&(a===e.None||a===e.Cancelled||Sqi.boolean(a.isCancellationRequested)&&!!a.onCancellationRequested)}e.is=t})(TTe||(Nf=ile.CancellationToken=TTe={}));const Tqi=Object.freeze(function(e,t){const r=(0,xqi.default)().timer.setTimeout(e.bind(t),0);return{dispose(){r.dispose()}}});class L3n{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Tqi:(this._emitter||(this._emitter=new uut.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}class Cqi{get token(){return this._token||(this._token=new L3n),this._token}cancel(){this._token?this._token.cancel():this._token=TTe.Cancelled}dispose(){this._token?this._token instanceof L3n&&this._token.dispose():this._token=TTe.None}}Rmt=ile.CancellationTokenSource=Cqi;function Aqi(){return new Promise(e=>{typeof setImmediate>"u"?setTimeout(e,0):setImmediate(e)})}let Uxe=0,kqi=10;function Rqi(){return Uxe=performance.now(),new Rmt}const CTe=Symbol("OperationCancelled");function Vke(e){return e===CTe}async function Ow(e){if(e===Nf.None)return;const t=performance.now();if(t-Uxe>=kqi&&(Uxe=t,await Aqi(),Uxe=performance.now()),e.isCancellationRequested)throw CTe}class Imt{constructor(){this.promise=new Promise((t,r)=>{this.resolve=a=>(t(a),this),this.reject=a=>(r(a),this)})}}class ale{constructor(t,r,a,s){this._uri=t,this._languageId=r,this._version=a,this._content=s,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){const r=this.offsetAt(t.start),a=this.offsetAt(t.end);return this._content.substring(r,a)}return this._content}update(t,r){for(const a of t)if(ale.isIncremental(a)){const s=bWn(a.range),o=this.offsetAt(s.start),u=this.offsetAt(s.end);this._content=this._content.substring(0,o)+a.text+this._content.substring(u,this._content.length);const h=Math.max(s.start.line,0),f=Math.max(s.end.line,0);let p=this._lineOffsets;const m=D3n(a.text,!1,o);if(f-h===m.length)for(let _=0,w=m.length;_t?s=u:a=u+1}const o=a-1;return t=this.ensureBeforeEOL(t,r[o]),{line:o,character:t-r[o]}}offsetAt(t){const r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;const a=r[t.line];if(t.character<=0)return a;const s=t.line+1r&&mWn(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){const r=t;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}static isFull(t){const r=t;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}}var hut;(function(e){function t(s,o,u,h){return new ale(s,o,u,h)}e.create=t;function r(s,o,u){if(s instanceof ale)return s.update(o,u),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=r;function a(s,o){const u=s.getText(),h=dut(o.map(Iqi),(m,b)=>{const _=m.range.start.line-b.range.start.line;return _===0?m.range.start.character-b.range.start.character:_});let f=0;const p=[];for(const m of h){const b=s.offsetAt(m.range.start);if(bf&&p.push(u.substring(f,b)),m.newText.length&&p.push(m.newText),f=s.offsetAt(m.range.end)}return p.push(u.substr(f)),p.join("")}e.applyEdits=a})(hut||(hut={}));function dut(e,t){if(e.length<=1)return e;const r=e.length/2|0,a=e.slice(0,r),s=e.slice(r);dut(a,t),dut(s,t);let o=0,u=0,h=0;for(;or.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}function Iqi(e){const t=bWn(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var yWn;(()=>{var e={470:s=>{function o(f){if(typeof f!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(f))}function u(f,p){for(var m,b="",_=0,w=-1,S=0,C=0;C<=f.length;++C){if(C2){var A=b.lastIndexOf("/");if(A!==b.length-1){A===-1?(b="",_=0):_=(b=b.slice(0,A)).length-1-b.lastIndexOf("/"),w=C,S=0;continue}}else if(b.length===2||b.length===1){b="",_=0,w=C,S=0;continue}}p&&(b.length>0?b+="/..":b="..",_=2)}else b.length>0?b+="/"+f.slice(w+1,C):b=f.slice(w+1,C),_=C-w-1;w=C,S=0}else m===46&&S!==-1?++S:S=-1}return b}var h={resolve:function(){for(var f,p="",m=!1,b=arguments.length-1;b>=-1&&!m;b--){var _;b>=0?_=arguments[b]:(f===void 0&&(f=process.cwd()),_=f),o(_),_.length!==0&&(p=_+"/"+p,m=_.charCodeAt(0)===47)}return p=u(p,!m),m?p.length>0?"/"+p:"/":p.length>0?p:"."},normalize:function(f){if(o(f),f.length===0)return".";var p=f.charCodeAt(0)===47,m=f.charCodeAt(f.length-1)===47;return(f=u(f,!p)).length!==0||p||(f="."),f.length>0&&m&&(f+="/"),p?"/"+f:f},isAbsolute:function(f){return o(f),f.length>0&&f.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var f,p=0;p0&&(f===void 0?f=m:f+="/"+m)}return f===void 0?".":h.normalize(f)},relative:function(f,p){if(o(f),o(p),f===p||(f=h.resolve(f))===(p=h.resolve(p)))return"";for(var m=1;mC){if(p.charCodeAt(w+k)===47)return p.slice(w+k+1);if(k===0)return p.slice(w+k)}else _>C&&(f.charCodeAt(m+k)===47?A=k:k===0&&(A=0));break}var I=f.charCodeAt(m+k);if(I!==p.charCodeAt(w+k))break;I===47&&(A=k)}var N="";for(k=m+A+1;k<=b;++k)k!==b&&f.charCodeAt(k)!==47||(N.length===0?N+="..":N+="/..");return N.length>0?N+p.slice(w+A):(w+=A,p.charCodeAt(w)===47&&++w,p.slice(w))},_makeLong:function(f){return f},dirname:function(f){if(o(f),f.length===0)return".";for(var p=f.charCodeAt(0),m=p===47,b=-1,_=!0,w=f.length-1;w>=1;--w)if((p=f.charCodeAt(w))===47){if(!_){b=w;break}}else _=!1;return b===-1?m?"/":".":m&&b===1?"//":f.slice(0,b)},basename:function(f,p){if(p!==void 0&&typeof p!="string")throw new TypeError('"ext" argument must be a string');o(f);var m,b=0,_=-1,w=!0;if(p!==void 0&&p.length>0&&p.length<=f.length){if(p.length===f.length&&p===f)return"";var S=p.length-1,C=-1;for(m=f.length-1;m>=0;--m){var A=f.charCodeAt(m);if(A===47){if(!w){b=m+1;break}}else C===-1&&(w=!1,C=m+1),S>=0&&(A===p.charCodeAt(S)?--S==-1&&(_=m):(S=-1,_=C))}return b===_?_=C:_===-1&&(_=f.length),f.slice(b,_)}for(m=f.length-1;m>=0;--m)if(f.charCodeAt(m)===47){if(!w){b=m+1;break}}else _===-1&&(w=!1,_=m+1);return _===-1?"":f.slice(b,_)},extname:function(f){o(f);for(var p=-1,m=0,b=-1,_=!0,w=0,S=f.length-1;S>=0;--S){var C=f.charCodeAt(S);if(C!==47)b===-1&&(_=!1,b=S+1),C===46?p===-1?p=S:w!==1&&(w=1):p!==-1&&(w=-1);else if(!_){m=S+1;break}}return p===-1||b===-1||w===0||w===1&&p===b-1&&p===m+1?"":f.slice(p,b)},format:function(f){if(f===null||typeof f!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof f);return function(p,m){var b=m.dir||m.root,_=m.base||(m.name||"")+(m.ext||"");return b?b===m.root?b+_:b+"/"+_:_}(0,f)},parse:function(f){o(f);var p={root:"",dir:"",base:"",ext:"",name:""};if(f.length===0)return p;var m,b=f.charCodeAt(0),_=b===47;_?(p.root="/",m=1):m=0;for(var w=-1,S=0,C=-1,A=!0,k=f.length-1,I=0;k>=m;--k)if((b=f.charCodeAt(k))!==47)C===-1&&(A=!1,C=k+1),b===46?w===-1?w=k:I!==1&&(I=1):w!==-1&&(I=-1);else if(!A){S=k+1;break}return w===-1||C===-1||I===0||I===1&&w===C-1&&w===S+1?C!==-1&&(p.base=p.name=S===0&&_?f.slice(1,C):f.slice(S,C)):(S===0&&_?(p.name=f.slice(1,w),p.base=f.slice(1,C)):(p.name=f.slice(S,w),p.base=f.slice(S,C)),p.ext=f.slice(w,C)),S>0?p.dir=f.slice(0,S-1):_&&(p.dir="/"),p},sep:"/",delimiter:":",win32:null,posix:null};h.posix=h,s.exports=h}},t={};function r(s){var o=t[s];if(o!==void 0)return o.exports;var u=t[s]={exports:{}};return e[s](u,u.exports,r),u.exports}r.d=(s,o)=>{for(var u in o)r.o(o,u)&&!r.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:o[u]})},r.o=(s,o)=>Object.prototype.hasOwnProperty.call(s,o),r.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var a={};(()=>{let s;r.r(a),r.d(a,{URI:()=>_,Utils:()=>G}),typeof process=="object"?s=process.platform==="win32":typeof navigator=="object"&&(s=navigator.userAgent.indexOf("Windows")>=0);const o=/^\w[\w\d+.-]*$/,u=/^\//,h=/^\/\//;function f(B,Z){if(!B.scheme&&Z)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${B.authority}", path: "${B.path}", query: "${B.query}", fragment: "${B.fragment}"}`);if(B.scheme&&!o.test(B.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(B.path){if(B.authority){if(!u.test(B.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(h.test(B.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const p="",m="/",b=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class _{constructor(Z,z,Y,W,Q,V=!1){Gi(this,"scheme");Gi(this,"authority");Gi(this,"path");Gi(this,"query");Gi(this,"fragment");typeof Z=="object"?(this.scheme=Z.scheme||p,this.authority=Z.authority||p,this.path=Z.path||p,this.query=Z.query||p,this.fragment=Z.fragment||p):(this.scheme=function(j,ee){return j||ee?j:"file"}(Z,V),this.authority=z||p,this.path=function(j,ee){switch(j){case"https":case"http":case"file":ee?ee[0]!==m&&(ee=m+ee):ee=m}return ee}(this.scheme,Y||p),this.query=W||p,this.fragment=Q||p,f(this,V))}static isUri(Z){return Z instanceof _||!!Z&&typeof Z.authority=="string"&&typeof Z.fragment=="string"&&typeof Z.path=="string"&&typeof Z.query=="string"&&typeof Z.scheme=="string"&&typeof Z.fsPath=="string"&&typeof Z.with=="function"&&typeof Z.toString=="function"}get fsPath(){return I(this)}with(Z){if(!Z)return this;let{scheme:z,authority:Y,path:W,query:Q,fragment:V}=Z;return z===void 0?z=this.scheme:z===null&&(z=p),Y===void 0?Y=this.authority:Y===null&&(Y=p),W===void 0?W=this.path:W===null&&(W=p),Q===void 0?Q=this.query:Q===null&&(Q=p),V===void 0?V=this.fragment:V===null&&(V=p),z===this.scheme&&Y===this.authority&&W===this.path&&Q===this.query&&V===this.fragment?this:new S(z,Y,W,Q,V)}static parse(Z,z=!1){const Y=b.exec(Z);return Y?new S(Y[2]||p,M(Y[4]||p),M(Y[5]||p),M(Y[7]||p),M(Y[9]||p),z):new S(p,p,p,p,p)}static file(Z){let z=p;if(s&&(Z=Z.replace(/\\/g,m)),Z[0]===m&&Z[1]===m){const Y=Z.indexOf(m,2);Y===-1?(z=Z.substring(2),Z=m):(z=Z.substring(2,Y),Z=Z.substring(Y)||m)}return new S("file",z,Z,p,p)}static from(Z){const z=new S(Z.scheme,Z.authority,Z.path,Z.query,Z.fragment);return f(z,!0),z}toString(Z=!1){return N(this,Z)}toJSON(){return this}static revive(Z){if(Z){if(Z instanceof _)return Z;{const z=new S(Z);return z._formatted=Z.external,z._fsPath=Z._sep===w?Z.fsPath:null,z}}return Z}}const w=s?1:void 0;class S extends _{constructor(){super(...arguments);Gi(this,"_formatted",null);Gi(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=I(this)),this._fsPath}toString(z=!1){return z?N(this,!0):(this._formatted||(this._formatted=N(this,!1)),this._formatted)}toJSON(){const z={$mid:1};return this._fsPath&&(z.fsPath=this._fsPath,z._sep=w),this._formatted&&(z.external=this._formatted),this.path&&(z.path=this.path),this.scheme&&(z.scheme=this.scheme),this.authority&&(z.authority=this.authority),this.query&&(z.query=this.query),this.fragment&&(z.fragment=this.fragment),z}}const C={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function A(B,Z,z){let Y,W=-1;for(let Q=0;Q=97&&V<=122||V>=65&&V<=90||V>=48&&V<=57||V===45||V===46||V===95||V===126||Z&&V===47||z&&V===91||z&&V===93||z&&V===58)W!==-1&&(Y+=encodeURIComponent(B.substring(W,Q)),W=-1),Y!==void 0&&(Y+=B.charAt(Q));else{Y===void 0&&(Y=B.substr(0,Q));const j=C[V];j!==void 0?(W!==-1&&(Y+=encodeURIComponent(B.substring(W,Q)),W=-1),Y+=j):W===-1&&(W=Q)}}return W!==-1&&(Y+=encodeURIComponent(B.substring(W))),Y!==void 0?Y:B}function k(B){let Z;for(let z=0;z1&&B.scheme==="file"?`//${B.authority}${B.path}`:B.path.charCodeAt(0)===47&&(B.path.charCodeAt(1)>=65&&B.path.charCodeAt(1)<=90||B.path.charCodeAt(1)>=97&&B.path.charCodeAt(1)<=122)&&B.path.charCodeAt(2)===58?B.path[1].toLowerCase()+B.path.substr(2):B.path,s&&(z=z.replace(/\//g,"\\")),z}function N(B,Z){const z=Z?k:A;let Y="",{scheme:W,authority:Q,path:V,query:j,fragment:ee}=B;if(W&&(Y+=W,Y+=":"),(Q||W==="file")&&(Y+=m,Y+=m),Q){let te=Q.indexOf("@");if(te!==-1){const ne=Q.substr(0,te);Q=Q.substr(te+1),te=ne.lastIndexOf(":"),te===-1?Y+=z(ne,!1,!1):(Y+=z(ne.substr(0,te),!1,!1),Y+=":",Y+=z(ne.substr(te+1),!1,!0)),Y+="@"}Q=Q.toLowerCase(),te=Q.lastIndexOf(":"),te===-1?Y+=z(Q,!1,!0):(Y+=z(Q.substr(0,te),!1,!0),Y+=Q.substr(te))}if(V){if(V.length>=3&&V.charCodeAt(0)===47&&V.charCodeAt(2)===58){const te=V.charCodeAt(1);te>=65&&te<=90&&(V=`/${String.fromCharCode(te+32)}:${V.substr(3)}`)}else if(V.length>=2&&V.charCodeAt(1)===58){const te=V.charCodeAt(0);te>=65&&te<=90&&(V=`${String.fromCharCode(te+32)}:${V.substr(2)}`)}Y+=z(V,!0,!1)}return j&&(Y+="?",Y+=z(j,!1,!1)),ee&&(Y+="#",Y+=Z?ee:A(ee,!1,!1)),Y}function L(B){try{return decodeURIComponent(B)}catch{return B.length>3?B.substr(0,3)+L(B.substr(3)):B}}const P=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function M(B){return B.match(P)?B.replace(P,Z=>L(Z)):B}var F=r(470);const U=F.posix||F,$="/";var G;(function(B){B.joinPath=function(Z,...z){return Z.with({path:U.join(Z.path,...z)})},B.resolvePath=function(Z,...z){let Y=Z.path,W=!1;Y[0]!==$&&(Y=$+Y,W=!0);let Q=U.resolve(Y,...z);return W&&Q[0]===$&&!Z.authority&&(Q=Q.substring(1)),Z.with({path:Q})},B.dirname=function(Z){if(Z.path.length===0||Z.path===$)return Z;let z=U.dirname(Z.path);return z.length===1&&z.charCodeAt(0)===46&&(z=""),Z.with({path:z})},B.basename=function(Z){return U.basename(Z.path)},B.extname=function(Z){return U.extname(Z.path)}})(G||(G={}))})(),yWn=a})();const{URI:s$,Utils:hie}=yWn;var m9;(function(e){e.basename=hie.basename,e.dirname=hie.dirname,e.extname=hie.extname,e.joinPath=hie.joinPath,e.resolvePath=hie.resolvePath;function t(s,o){return(s==null?void 0:s.toString())===(o==null?void 0:o.toString())}e.equals=t;function r(s,o){const u=typeof s=="string"?s:s.path,h=typeof o=="string"?o:o.path,f=u.split("/").filter(w=>w.length>0),p=h.split("/").filter(w=>w.length>0);let m=0;for(;ms??(s=hut.create(t.toString(),a.getServices(t).LanguageMetaData.languageId,0,r??""))}}class Oqi{constructor(t){this.documentMap=new Map,this.langiumDocumentFactory=t.workspace.LangiumDocumentFactory,this.serviceRegistry=t.ServiceRegistry}get all(){return wm(this.documentMap.values())}addDocument(t){const r=t.uri.toString();if(this.documentMap.has(r))throw new Error(`A document with the URI '${r}' is already present.`);this.documentMap.set(r,t)}getDocument(t){const r=t.toString();return this.documentMap.get(r)}async getOrCreateDocument(t,r){let a=this.getDocument(t);return a||(a=await this.langiumDocumentFactory.fromUri(t,r),this.addDocument(a),a)}createDocument(t,r,a){if(a)return this.langiumDocumentFactory.fromString(r,t,a).then(s=>(this.addDocument(s),s));{const s=this.langiumDocumentFactory.fromString(r,t);return this.addDocument(s),s}}hasDocument(t){return this.documentMap.has(t.toString())}invalidateDocument(t){const r=t.toString(),a=this.documentMap.get(r);return a&&(this.serviceRegistry.getServices(t).references.Linker.unlink(a),a.state=Vd.Changed,a.precomputedScopes=void 0,a.diagnostics=void 0),a}deleteDocument(t){const r=t.toString(),a=this.documentMap.get(r);return a&&(a.state=Vd.Changed,this.documentMap.delete(r)),a}}const Pit=Symbol("ref_resolving");class Lqi{constructor(t){this.reflection=t.shared.AstReflection,this.langiumDocuments=()=>t.shared.workspace.LangiumDocuments,this.scopeProvider=t.references.ScopeProvider,this.astNodeLocator=t.workspace.AstNodeLocator}async link(t,r=Nf.None){for(const a of aY(t.parseResult.value))await Ow(r),CYn(a).forEach(s=>this.doLink(s,t))}doLink(t,r){var a;const s=t.reference;if(s._ref===void 0){s._ref=Pit;try{const o=this.getCandidate(t);if(Oxe(o))s._ref=o;else if(s._nodeDescription=o,this.langiumDocuments().hasDocument(o.documentUri)){const u=this.loadAstNode(o);s._ref=u??this.createLinkingError(t,o)}else s._ref=void 0}catch(o){console.error(`An error occurred while resolving reference to '${s.$refText}':`,o);const u=(a=o.message)!==null&&a!==void 0?a:String(o);s._ref=Object.assign(Object.assign({},t),{message:`An error occurred while resolving reference to '${s.$refText}': ${u}`})}r.references.push(s)}}unlink(t){for(const r of t.references)delete r._ref,delete r._nodeDescription;t.references=[]}getCandidate(t){const a=this.scopeProvider.getScope(t).getElement(t.reference.$refText);return a??this.createLinkingError(t)}buildReference(t,r,a,s){const o=this,u={$refNode:a,$refText:s,get ref(){var h;if(Eb(this._ref))return this._ref;if(RLi(this._nodeDescription)){const f=o.loadAstNode(this._nodeDescription);this._ref=f??o.createLinkingError({reference:u,container:t,property:r},this._nodeDescription)}else if(this._ref===void 0){this._ref=Pit;const f=Rct(t).$document,p=o.getLinkedNode({reference:u,container:t,property:r});if(p.error&&f&&f.state=t.end)return o.ref}}if(a){const s=this.nameProvider.getNameNode(a);if(s&&(s===t||OLi(t,s)))return a}}}findDeclarationNode(t){const r=this.findDeclaration(t);if(r!=null&&r.$cstNode){const a=this.nameProvider.getNameNode(r);return a??r.$cstNode}}findReferences(t,r){const a=[];if(r.includeDeclaration){const o=this.getReferenceToSelf(t);o&&a.push(o)}let s=this.index.findAllReferences(t,this.nodeLocator.getAstNodePath(t));return r.documentUri&&(s=s.filter(o=>m9.equals(o.sourceUri,r.documentUri))),a.push(...s),wm(a)}getReferenceToSelf(t){const r=this.nameProvider.getNameNode(t);if(r){const a=h9(t),s=this.nodeLocator.getAstNodePath(t);return{sourceUri:a.uri,sourcePath:s,targetUri:a.uri,targetPath:s,segment:aTe(r),local:!0}}}}class ATe{constructor(t){if(this.map=new Map,t)for(const[r,a]of t)this.add(r,a)}get size(){return Cct.sum(wm(this.map.values()).map(t=>t.length))}clear(){this.map.clear()}delete(t,r){if(r===void 0)return this.map.delete(t);{const a=this.map.get(t);if(a){const s=a.indexOf(r);if(s>=0)return a.length===1?this.map.delete(t):a.splice(s,1),!0}return!1}}get(t){var r;return(r=this.map.get(t))!==null&&r!==void 0?r:[]}has(t,r){if(r===void 0)return this.map.has(t);{const a=this.map.get(t);return a?a.indexOf(r)>=0:!1}}add(t,r){return this.map.has(t)?this.map.get(t).push(r):this.map.set(t,[r]),this}addAll(t,r){return this.map.has(t)?this.map.get(t).push(...r):this.map.set(t,Array.from(r)),this}forEach(t){this.map.forEach((r,a)=>r.forEach(s=>t(s,a,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return wm(this.map.entries()).flatMap(([t,r])=>r.map(a=>[t,a]))}keys(){return wm(this.map.keys())}values(){return wm(this.map.values()).flat()}entriesGroupedByKey(){return wm(this.map.entries())}}class M3n{get size(){return this.map.size}constructor(t){if(this.map=new Map,this.inverse=new Map,t)for(const[r,a]of t)this.set(r,a)}clear(){this.map.clear(),this.inverse.clear()}set(t,r){return this.map.set(t,r),this.inverse.set(r,t),this}get(t){return this.map.get(t)}getKey(t){return this.inverse.get(t)}delete(t){const r=this.map.get(t);return r!==void 0?(this.map.delete(t),this.inverse.delete(r),!0):!1}}class Bqi{constructor(t){this.nameProvider=t.references.NameProvider,this.descriptions=t.workspace.AstNodeDescriptionProvider}async computeExports(t,r=Nf.None){return this.computeExportsForNode(t.parseResult.value,t,void 0,r)}async computeExportsForNode(t,r,a=jgt,s=Nf.None){const o=[];this.exportNode(t,o,r);for(const u of a(t))await Ow(s),this.exportNode(u,o,r);return o}exportNode(t,r,a){const s=this.nameProvider.getName(t);s&&r.push(this.descriptions.createDescription(t,s,a))}async computeLocalScopes(t,r=Nf.None){const a=t.parseResult.value,s=new ATe;for(const o of Mce(a))await Ow(r),this.processNode(o,t,s);return s}processNode(t,r,a){const s=t.$container;if(s){const o=this.nameProvider.getName(t);o&&a.add(s,this.descriptions.createDescription(t,o,r))}}}class P3n{constructor(t,r,a){var s;this.elements=t,this.outerScope=r,this.caseInsensitive=(s=a==null?void 0:a.caseInsensitive)!==null&&s!==void 0?s:!1}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(t){const r=this.caseInsensitive?this.elements.find(a=>a.name.toLowerCase()===t.toLowerCase()):this.elements.find(a=>a.name===t);if(r)return r;if(this.outerScope)return this.outerScope.getElement(t)}}class Fqi{constructor(t,r,a){var s;this.elements=new Map,this.caseInsensitive=(s=a==null?void 0:a.caseInsensitive)!==null&&s!==void 0?s:!1;for(const o of t){const u=this.caseInsensitive?o.name.toLowerCase():o.name;this.elements.set(u,o)}this.outerScope=r}getElement(t){const r=this.caseInsensitive?t.toLowerCase():t,a=this.elements.get(r);if(a)return a;if(this.outerScope)return this.outerScope.getElement(t)}getAllElements(){let t=wm(this.elements.values());return this.outerScope&&(t=t.concat(this.outerScope.getAllElements())),t}}class vWn{constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(t){this.toDispose.push(t)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(t=>t.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}}class $qi extends vWn{constructor(){super(...arguments),this.cache=new Map}has(t){return this.throwIfDisposed(),this.cache.has(t)}set(t,r){this.throwIfDisposed(),this.cache.set(t,r)}get(t,r){if(this.throwIfDisposed(),this.cache.has(t))return this.cache.get(t);if(r){const a=r();return this.cache.set(t,a),a}else return}delete(t){return this.throwIfDisposed(),this.cache.delete(t)}clear(){this.throwIfDisposed(),this.cache.clear()}}class Uqi extends vWn{constructor(t){super(),this.cache=new Map,this.converter=t??(r=>r)}has(t,r){return this.throwIfDisposed(),this.cacheForContext(t).has(r)}set(t,r,a){this.throwIfDisposed(),this.cacheForContext(t).set(r,a)}get(t,r,a){this.throwIfDisposed();const s=this.cacheForContext(t);if(s.has(r))return s.get(r);if(a){const o=a();return s.set(r,o),o}else return}delete(t,r){return this.throwIfDisposed(),this.cacheForContext(t).delete(r)}clear(t){if(this.throwIfDisposed(),t){const r=this.converter(t);this.cache.delete(r)}else this.cache.clear()}cacheForContext(t){const r=this.converter(t);let a=this.cache.get(r);return a||(a=new Map,this.cache.set(r,a)),a}}class zqi extends $qi{constructor(t,r){super(),r?(this.toDispose.push(t.workspace.DocumentBuilder.onBuildPhase(r,()=>{this.clear()})),this.toDispose.push(t.workspace.DocumentBuilder.onUpdate((a,s)=>{s.length>0&&this.clear()}))):this.toDispose.push(t.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}}class Gqi{constructor(t){this.reflection=t.shared.AstReflection,this.nameProvider=t.references.NameProvider,this.descriptions=t.workspace.AstNodeDescriptionProvider,this.indexManager=t.shared.workspace.IndexManager,this.globalScopeCache=new zqi(t.shared)}getScope(t){const r=[],a=this.reflection.getReferenceType(t),s=h9(t.container).precomputedScopes;if(s){let u=t.container;do{const h=s.get(u);h.length>0&&r.push(wm(h).filter(f=>this.reflection.isSubtype(f.type,a))),u=u.$container}while(u)}let o=this.getGlobalScope(a,t);for(let u=r.length-1;u>=0;u--)o=this.createScope(r[u],o);return o}createScope(t,r,a){return new P3n(wm(t),r,a)}createScopeForNodes(t,r,a){const s=wm(t).map(o=>{const u=this.nameProvider.getName(o);if(u)return this.descriptions.createDescription(o,u)}).nonNullable();return new P3n(s,r,a)}getGlobalScope(t,r){return this.globalScopeCache.get(t,()=>new Fqi(this.indexManager.allElements(t)))}}function qqi(e){return typeof e.$comment=="string"}function B3n(e){return typeof e=="object"&&!!e&&("$ref"in e||"$error"in e)}class Hqi{constructor(t){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=t.shared.workspace.LangiumDocuments,this.astNodeLocator=t.workspace.AstNodeLocator,this.nameProvider=t.references.NameProvider,this.commentProvider=t.documentation.CommentProvider}serialize(t,r){const a=r??{},s=r==null?void 0:r.replacer,o=(h,f)=>this.replacer(h,f,a),u=s?(h,f)=>s(h,f,o):o;try{return this.currentDocument=h9(t),JSON.stringify(t,u,r==null?void 0:r.space)}finally{this.currentDocument=void 0}}deserialize(t,r){const a=r??{},s=JSON.parse(t);return this.linkNode(s,s,a),s}replacer(t,r,{refText:a,sourceText:s,textRegions:o,comments:u,uriConverter:h}){var f,p,m,b;if(!this.ignoreProperties.has(t))if(eA(r)){const _=r.ref,w=a?r.$refText:void 0;if(_){const S=h9(_);let C="";this.currentDocument&&this.currentDocument!==S&&(h?C=h(S.uri,r):C=S.uri.toString());const A=this.astNodeLocator.getAstNodePath(_);return{$ref:`${C}#${A}`,$refText:w}}else return{$error:(p=(f=r.error)===null||f===void 0?void 0:f.message)!==null&&p!==void 0?p:"Could not resolve reference",$refText:w}}else if(Eb(r)){let _;if(o&&(_=this.addAstNodeRegionWithAssignmentsTo(Object.assign({},r)),(!t||r.$document)&&(_!=null&&_.$textRegion)&&(_.$textRegion.documentURI=(m=this.currentDocument)===null||m===void 0?void 0:m.uri.toString())),s&&!t&&(_??(_=Object.assign({},r)),_.$sourceText=(b=r.$cstNode)===null||b===void 0?void 0:b.text),u){_??(_=Object.assign({},r));const w=this.commentProvider.getComment(r);w&&(_.$comment=w.replace(/\r/g,""))}return _??r}else return r}addAstNodeRegionWithAssignmentsTo(t){const r=a=>({offset:a.offset,end:a.end,length:a.length,range:a.range});if(t.$cstNode){const a=t.$textRegion=r(t.$cstNode),s=a.assignments={};return Object.keys(t).filter(o=>!o.startsWith("$")).forEach(o=>{const u=yDi(t.$cstNode,o).map(r);u.length!==0&&(s[o]=u)}),t}}linkNode(t,r,a,s,o,u){for(const[f,p]of Object.entries(t))if(Array.isArray(p))for(let m=0;m{await this.handleException(()=>t.call(r,a,s,o),"An error occurred during validation",s,a)}}async handleException(t,r,a,s){try{await t()}catch(o){if(Vke(o))throw o;console.error(`${r}:`,o),o instanceof Error&&o.stack&&console.error(o.stack);const u=o instanceof Error?o.message:String(o);a("error",`${r}: ${u}`,{node:s})}}addEntry(t,r){if(t==="AstNode"){this.entries.add("AstNode",r);return}for(const a of this.reflection.getAllSubTypes(t))this.entries.add(a,r)}getChecks(t,r){let a=wm(this.entries.get(t)).concat(this.entries.get("AstNode"));return r&&(a=a.filter(s=>r.includes(s.category))),a.map(s=>s.check)}registerBeforeDocument(t,r=this){this.entriesBefore.push(this.wrapPreparationException(t,"An error occurred during set-up of the validation",r))}registerAfterDocument(t,r=this){this.entriesAfter.push(this.wrapPreparationException(t,"An error occurred during tear-down of the validation",r))}wrapPreparationException(t,r,a){return async(s,o,u,h)=>{await this.handleException(()=>t.call(a,s,o,u,h),r,o,s)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}}class jqi{constructor(t){this.validationRegistry=t.validation.ValidationRegistry,this.metadata=t.LanguageMetaData}async validateDocument(t,r={},a=Nf.None){const s=t.parseResult,o=[];if(await Ow(a),(!r.categories||r.categories.includes("built-in"))&&(this.processLexingErrors(s,o,r),r.stopAfterLexingErrors&&o.some(u=>{var h;return((h=u.data)===null||h===void 0?void 0:h.code)===F3.LexingError})||(this.processParsingErrors(s,o,r),r.stopAfterParsingErrors&&o.some(u=>{var h;return((h=u.data)===null||h===void 0?void 0:h.code)===F3.ParsingError}))||(this.processLinkingErrors(t,o,r),r.stopAfterLinkingErrors&&o.some(u=>{var h;return((h=u.data)===null||h===void 0?void 0:h.code)===F3.LinkingError}))))return o;try{o.push(...await this.validateAst(s.value,r,a))}catch(u){if(Vke(u))throw u;console.error("An error occurred during validation:",u)}return await Ow(a),o}processLexingErrors(t,r,a){var s,o,u;const h=[...t.lexerErrors,...(o=(s=t.lexerReport)===null||s===void 0?void 0:s.diagnostics)!==null&&o!==void 0?o:[]];for(const f of h){const p=(u=f.severity)!==null&&u!==void 0?u:"error",m={severity:Bit(p),range:{start:{line:f.line-1,character:f.column-1},end:{line:f.line-1,character:f.column+f.length-1}},message:f.message,data:Kqi(p),source:this.getSource()};r.push(m)}}processParsingErrors(t,r,a){for(const s of t.parserErrors){let o;if(isNaN(s.token.startOffset)){if("previousToken"in s){const u=s.previousToken;if(isNaN(u.startOffset)){const h={line:0,character:0};o={start:h,end:h}}else{const h={line:u.endLine-1,character:u.endColumn};o={start:h,end:h}}}}else o=kct(s.token);if(o){const u={severity:Bit("error"),range:o,message:s.message,data:Cae(F3.ParsingError),source:this.getSource()};r.push(u)}}}processLinkingErrors(t,r,a){for(const s of t.references){const o=s.error;if(o){const u={node:o.container,property:o.property,index:o.index,data:{code:F3.LinkingError,containerType:o.container.$type,property:o.property,refText:o.reference.$refText}};r.push(this.toDiagnostic("error",o.message,u))}}}async validateAst(t,r,a=Nf.None){const s=[],o=(u,h,f)=>{s.push(this.toDiagnostic(u,h,f))};return await this.validateAstBefore(t,r,o,a),await this.validateAstNodes(t,r,o,a),await this.validateAstAfter(t,r,o,a),s}async validateAstBefore(t,r,a,s=Nf.None){var o;const u=this.validationRegistry.checksBefore;for(const h of u)await Ow(s),await h(t,a,(o=r.categories)!==null&&o!==void 0?o:[],s)}async validateAstNodes(t,r,a,s=Nf.None){await Promise.all(aY(t).map(async o=>{await Ow(s);const u=this.validationRegistry.getChecks(o.$type,r.categories);for(const h of u)await h(o,a,s)}))}async validateAstAfter(t,r,a,s=Nf.None){var o;const u=this.validationRegistry.checksAfter;for(const h of u)await Ow(s),await h(t,a,(o=r.categories)!==null&&o!==void 0?o:[],s)}toDiagnostic(t,r,a){return{message:r,range:Wqi(a),severity:Bit(t),code:a.code,codeDescription:a.codeDescription,tags:a.tags,relatedInformation:a.relatedInformation,data:a.data,source:this.getSource()}}getSource(){return this.metadata.languageId}}function Wqi(e){if(e.range)return e.range;let t;return typeof e.property=="string"?t=NYn(e.node.$cstNode,e.property,e.index):typeof e.keyword=="string"&&(t=vDi(e.node.$cstNode,e.keyword,e.index)),t??(t=e.node.$cstNode),t?t.range:{start:{line:0,character:0},end:{line:0,character:0}}}function Bit(e){switch(e){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+e)}}function Kqi(e){switch(e){case"error":return Cae(F3.LexingError);case"warning":return Cae(F3.LexingWarning);case"info":return Cae(F3.LexingInfo);case"hint":return Cae(F3.LexingHint);default:throw new Error("Invalid diagnostic severity: "+e)}}var F3;(function(e){e.LexingError="lexing-error",e.LexingWarning="lexing-warning",e.LexingInfo="lexing-info",e.LexingHint="lexing-hint",e.ParsingError="parsing-error",e.LinkingError="linking-error"})(F3||(F3={}));class Xqi{constructor(t){this.astNodeLocator=t.workspace.AstNodeLocator,this.nameProvider=t.references.NameProvider}createDescription(t,r,a){const s=a??h9(t);r??(r=this.nameProvider.getName(t));const o=this.astNodeLocator.getAstNodePath(t);if(!r)throw new Error(`Node at path ${o} has no name.`);let u;const h=()=>{var f;return u??(u=aTe((f=this.nameProvider.getNameNode(t))!==null&&f!==void 0?f:t.$cstNode))};return{node:t,name:r,get nameSegment(){return h()},selectionSegment:aTe(t.$cstNode),type:t.$type,documentUri:s.uri,path:o}}}class Qqi{constructor(t){this.nodeLocator=t.workspace.AstNodeLocator}async createDescriptions(t,r=Nf.None){const a=[],s=t.parseResult.value;for(const o of aY(s))await Ow(r),CYn(o).filter(u=>!Oxe(u)).forEach(u=>{const h=this.createDescription(u);h&&a.push(h)});return a}createDescription(t){const r=t.reference.$nodeDescription,a=t.reference.$refNode;if(!r||!a)return;const s=h9(t.container).uri;return{sourceUri:s,sourcePath:this.nodeLocator.getAstNodePath(t.container),targetUri:r.documentUri,targetPath:r.path,segment:aTe(a),local:m9.equals(r.documentUri,s)}}}class Zqi{constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(t){if(t.$container){const r=this.getAstNodePath(t.$container),a=this.getPathSegment(t);return r+this.segmentSeparator+a}return""}getPathSegment({$containerProperty:t,$containerIndex:r}){if(!t)throw new Error("Missing '$containerProperty' in AST node.");return r!==void 0?t+this.indexSeparator+r:t}getAstNode(t,r){return r.split(this.segmentSeparator).reduce((s,o)=>{if(!s||o.length===0)return s;const u=o.indexOf(this.indexSeparator);if(u>0){const h=o.substring(0,u),f=parseInt(o.substring(u+1)),p=s[h];return p==null?void 0:p[f]}return s[o]},t)}}class Jqi{constructor(t){this._ready=new Imt,this.settings={},this.workspaceConfig=!1,this.onConfigurationSectionUpdateEmitter=new gWn,this.serviceRegistry=t.ServiceRegistry}get ready(){return this._ready.promise}initialize(t){var r,a;this.workspaceConfig=(a=(r=t.capabilities.workspace)===null||r===void 0?void 0:r.configuration)!==null&&a!==void 0?a:!1}async initialized(t){if(this.workspaceConfig){if(t.register){const r=this.serviceRegistry.all;t.register({section:r.map(a=>this.toSectionName(a.LanguageMetaData.languageId))})}if(t.fetchConfiguration){const r=this.serviceRegistry.all.map(s=>({section:this.toSectionName(s.LanguageMetaData.languageId)})),a=await t.fetchConfiguration(r);r.forEach((s,o)=>{this.updateSectionConfiguration(s.section,a[o])})}}this._ready.resolve()}updateConfiguration(t){t.settings&&Object.keys(t.settings).forEach(r=>{const a=t.settings[r];this.updateSectionConfiguration(r,a),this.onConfigurationSectionUpdateEmitter.fire({section:r,configuration:a})})}updateSectionConfiguration(t,r){this.settings[t]=r}async getConfiguration(t,r){await this.ready;const a=this.toSectionName(t);if(this.settings[a])return this.settings[a][r]}toSectionName(t){return`${t}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}}var kse;(function(e){function t(r){return{dispose:async()=>await r()}}e.create=t})(kse||(kse={}));class eHi{constructor(t){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new ATe,this.documentPhaseListeners=new ATe,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=Vd.Changed,this.langiumDocuments=t.workspace.LangiumDocuments,this.langiumDocumentFactory=t.workspace.LangiumDocumentFactory,this.textDocuments=t.workspace.TextDocuments,this.indexManager=t.workspace.IndexManager,this.serviceRegistry=t.ServiceRegistry}async build(t,r={},a=Nf.None){var s,o;for(const u of t){const h=u.uri.toString();if(u.state===Vd.Validated){if(typeof r.validation=="boolean"&&r.validation)u.state=Vd.IndexedReferences,u.diagnostics=void 0,this.buildState.delete(h);else if(typeof r.validation=="object"){const f=this.buildState.get(h),p=(s=f==null?void 0:f.result)===null||s===void 0?void 0:s.validationChecks;if(p){const b=((o=r.validation.categories)!==null&&o!==void 0?o:kTe.all).filter(_=>!p.includes(_));b.length>0&&(this.buildState.set(h,{completed:!1,options:{validation:Object.assign(Object.assign({},r.validation),{categories:b})},result:f.result}),u.state=Vd.IndexedReferences)}}}else this.buildState.delete(h)}this.currentState=Vd.Changed,await this.emitUpdate(t.map(u=>u.uri),[]),await this.buildDocuments(t,r,a)}async update(t,r,a=Nf.None){this.currentState=Vd.Changed;for(const u of r)this.langiumDocuments.deleteDocument(u),this.buildState.delete(u.toString()),this.indexManager.remove(u);for(const u of t){if(!this.langiumDocuments.invalidateDocument(u)){const f=this.langiumDocumentFactory.fromModel({$type:"INVALID"},u);f.state=Vd.Changed,this.langiumDocuments.addDocument(f)}this.buildState.delete(u.toString())}const s=wm(t).concat(r).map(u=>u.toString()).toSet();this.langiumDocuments.all.filter(u=>!s.has(u.uri.toString())&&this.shouldRelink(u,s)).forEach(u=>{this.serviceRegistry.getServices(u.uri).references.Linker.unlink(u),u.state=Math.min(u.state,Vd.ComputedScopes),u.diagnostics=void 0}),await this.emitUpdate(t,r),await Ow(a);const o=this.sortDocuments(this.langiumDocuments.all.filter(u=>{var h;return u.statea(t,r)))}sortDocuments(t){let r=0,a=t.length-1;for(;r=0&&!this.hasTextDocument(t[a]);)a--;ra.error!==void 0)?!0:this.indexManager.isAffected(t,r)}onUpdate(t){return this.updateListeners.push(t),kse.create(()=>{const r=this.updateListeners.indexOf(t);r>=0&&this.updateListeners.splice(r,1)})}async buildDocuments(t,r,a){this.prepareBuild(t,r),await this.runCancelable(t,Vd.Parsed,a,o=>this.langiumDocumentFactory.update(o,a)),await this.runCancelable(t,Vd.IndexedContent,a,o=>this.indexManager.updateContent(o,a)),await this.runCancelable(t,Vd.ComputedScopes,a,async o=>{const u=this.serviceRegistry.getServices(o.uri).references.ScopeComputation;o.precomputedScopes=await u.computeLocalScopes(o,a)}),await this.runCancelable(t,Vd.Linked,a,o=>this.serviceRegistry.getServices(o.uri).references.Linker.link(o,a)),await this.runCancelable(t,Vd.IndexedReferences,a,o=>this.indexManager.updateReferences(o,a));const s=t.filter(o=>this.shouldValidate(o));await this.runCancelable(s,Vd.Validated,a,o=>this.validate(o,a));for(const o of t){const u=this.buildState.get(o.uri.toString());u&&(u.completed=!0)}}prepareBuild(t,r){for(const a of t){const s=a.uri.toString(),o=this.buildState.get(s);(!o||o.completed)&&this.buildState.set(s,{completed:!1,options:r,result:o==null?void 0:o.result})}}async runCancelable(t,r,a,s){const o=t.filter(h=>h.stateh.state===r);await this.notifyBuildPhase(u,r,a),this.currentState=r}onBuildPhase(t,r){return this.buildPhaseListeners.add(t,r),kse.create(()=>{this.buildPhaseListeners.delete(t,r)})}onDocumentPhase(t,r){return this.documentPhaseListeners.add(t,r),kse.create(()=>{this.documentPhaseListeners.delete(t,r)})}waitUntil(t,r,a){let s;if(r&&"path"in r?s=r:a=r,a??(a=Nf.None),s){const o=this.langiumDocuments.getDocument(s);if(o&&o.state>t)return Promise.resolve(s)}return this.currentState>=t?Promise.resolve(void 0):a.isCancellationRequested?Promise.reject(CTe):new Promise((o,u)=>{const h=this.onBuildPhase(t,()=>{if(h.dispose(),f.dispose(),s){const p=this.langiumDocuments.getDocument(s);o(p==null?void 0:p.uri)}else o(void 0)}),f=a.onCancellationRequested(()=>{h.dispose(),f.dispose(),u(CTe)})})}async notifyDocumentPhase(t,r,a){const o=this.documentPhaseListeners.get(r).slice();for(const u of o)try{await u(t,a)}catch(h){if(!Vke(h))throw h}}async notifyBuildPhase(t,r,a){if(t.length===0)return;const o=this.buildPhaseListeners.get(r).slice();for(const u of o)await Ow(a),await u(t,a)}shouldValidate(t){return!!this.getBuildOptions(t).validation}async validate(t,r){var a,s;const o=this.serviceRegistry.getServices(t.uri).validation.DocumentValidator,u=this.getBuildOptions(t).validation,h=typeof u=="object"?u:void 0,f=await o.validateDocument(t,h,r);t.diagnostics?t.diagnostics.push(...f):t.diagnostics=f;const p=this.buildState.get(t.uri.toString());if(p){(a=p.result)!==null&&a!==void 0||(p.result={});const m=(s=h==null?void 0:h.categories)!==null&&s!==void 0?s:kTe.all;p.result.validationChecks?p.result.validationChecks.push(...m):p.result.validationChecks=[...m]}}getBuildOptions(t){var r,a;return(a=(r=this.buildState.get(t.uri.toString()))===null||r===void 0?void 0:r.options)!==null&&a!==void 0?a:{}}}class tHi{constructor(t){this.symbolIndex=new Map,this.symbolByTypeIndex=new Uqi,this.referenceIndex=new Map,this.documents=t.workspace.LangiumDocuments,this.serviceRegistry=t.ServiceRegistry,this.astReflection=t.AstReflection}findAllReferences(t,r){const a=h9(t).uri,s=[];return this.referenceIndex.forEach(o=>{o.forEach(u=>{m9.equals(u.targetUri,a)&&u.targetPath===r&&s.push(u)})}),wm(s)}allElements(t,r){let a=wm(this.symbolIndex.keys());return r&&(a=a.filter(s=>!r||r.has(s))),a.map(s=>this.getFileDescriptions(s,t)).flat()}getFileDescriptions(t,r){var a;return r?this.symbolByTypeIndex.get(t,r,()=>{var o;return((o=this.symbolIndex.get(t))!==null&&o!==void 0?o:[]).filter(h=>this.astReflection.isSubtype(h.type,r))}):(a=this.symbolIndex.get(t))!==null&&a!==void 0?a:[]}remove(t){const r=t.toString();this.symbolIndex.delete(r),this.symbolByTypeIndex.clear(r),this.referenceIndex.delete(r)}async updateContent(t,r=Nf.None){const s=await this.serviceRegistry.getServices(t.uri).references.ScopeComputation.computeExports(t,r),o=t.uri.toString();this.symbolIndex.set(o,s),this.symbolByTypeIndex.clear(o)}async updateReferences(t,r=Nf.None){const s=await this.serviceRegistry.getServices(t.uri).workspace.ReferenceDescriptionProvider.createDescriptions(t,r);this.referenceIndex.set(t.uri.toString(),s)}isAffected(t,r){const a=this.referenceIndex.get(t.uri.toString());return a?a.some(s=>!s.local&&r.has(s.targetUri.toString())):!1}}class nHi{constructor(t){this.initialBuildOptions={},this._ready=new Imt,this.serviceRegistry=t.ServiceRegistry,this.langiumDocuments=t.workspace.LangiumDocuments,this.documentBuilder=t.workspace.DocumentBuilder,this.fileSystemProvider=t.workspace.FileSystemProvider,this.mutex=t.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(t){var r;this.folders=(r=t.workspaceFolders)!==null&&r!==void 0?r:void 0}initialized(t){return this.mutex.write(r=>{var a;return this.initializeWorkspace((a=this.folders)!==null&&a!==void 0?a:[],r)})}async initializeWorkspace(t,r=Nf.None){const a=await this.performStartup(t);await Ow(r),await this.documentBuilder.build(a,this.initialBuildOptions,r)}async performStartup(t){const r=this.serviceRegistry.all.flatMap(o=>o.LanguageMetaData.fileExtensions),a=[],s=o=>{a.push(o),this.langiumDocuments.hasDocument(o.uri)||this.langiumDocuments.addDocument(o)};return await this.loadAdditionalDocuments(t,s),await Promise.all(t.map(o=>[o,this.getRootFolder(o)]).map(async o=>this.traverseFolder(...o,r,s))),this._ready.resolve(),a}loadAdditionalDocuments(t,r){return Promise.resolve()}getRootFolder(t){return s$.parse(t.uri)}async traverseFolder(t,r,a,s){const o=await this.fileSystemProvider.readDirectory(r);await Promise.all(o.map(async u=>{if(this.includeEntry(t,u,a)){if(u.isDirectory)await this.traverseFolder(t,u.uri,a,s);else if(u.isFile){const h=await this.langiumDocuments.getOrCreateDocument(u.uri);s(h)}}}))}includeEntry(t,r,a){const s=m9.basename(r.uri);if(s.startsWith("."))return!1;if(r.isDirectory)return s!=="node_modules"&&s!=="out";if(r.isFile){const o=m9.extname(r.uri);return a.includes(o)}return!1}}class rHi{buildUnexpectedCharactersMessage(t,r,a,s,o){return Fct.buildUnexpectedCharactersMessage(t,r,a,s,o)}buildUnableToPopLexerModeMessage(t){return Fct.buildUnableToPopLexerModeMessage(t)}}const iHi={mode:"full"};class aHi{constructor(t){this.errorMessageProvider=t.parser.LexerErrorMessageProvider,this.tokenBuilder=t.parser.TokenBuilder;const r=this.tokenBuilder.buildTokens(t.Grammar,{caseInsensitive:t.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(r);const a=F3n(r)?Object.values(r):r,s=t.LanguageMetaData.mode==="production";this.chevrotainLexer=new J2(a,{positionTracking:"full",skipValidations:s,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(t,r=iHi){var a,s,o;const u=this.chevrotainLexer.tokenize(t);return{tokens:u.tokens,errors:u.errors,hidden:(a=u.groups.hidden)!==null&&a!==void 0?a:[],report:(o=(s=this.tokenBuilder).flushLexingReport)===null||o===void 0?void 0:o.call(s,t)}}toTokenTypeDictionary(t){if(F3n(t))return t;const r=_Wn(t)?Object.values(t.modes).flat():t,a={};return r.forEach(s=>a[s.name]=s),a}}function sHi(e){return Array.isArray(e)&&(e.length===0||"name"in e[0])}function _Wn(e){return e&&"modes"in e&&"defaultMode"in e}function F3n(e){return!sHi(e)&&!_Wn(e)}function oHi(e,t,r){let a,s;typeof e=="string"?(s=t,a=r):(s=e.range.start,a=t),s||(s=Pu.create(0,0));const o=wWn(e),u=Nmt(a),h=uHi({lines:o,position:s,options:u});return gHi({index:0,tokens:h,position:s})}function lHi(e,t){const r=Nmt(t),a=wWn(e);if(a.length===0)return!1;const s=a[0],o=a[a.length-1],u=r.start,h=r.end;return!!(u!=null&&u.exec(s))&&!!(h!=null&&h.exec(o))}function wWn(e){let t="";return typeof e=="string"?t=e:t=e.text,t.split(sDi)}const $3n=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,cHi=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function uHi(e){var t,r,a;const s=[];let o=e.position.line,u=e.position.character;for(let h=0;h=m.length){if(s.length>0){const w=Pu.create(o,u);s.push({type:"break",content:"",range:Bc.create(w,w)})}}else{$3n.lastIndex=b;const w=$3n.exec(m);if(w){const S=w[0],C=w[1],A=Pu.create(o,u+b),k=Pu.create(o,u+b+S.length);s.push({type:"tag",content:C,range:Bc.create(A,k)}),b+=S.length,b=fut(m,b)}if(b0&&s[s.length-1].type==="break"?s.slice(0,-1):s}function hHi(e,t,r,a){const s=[];if(e.length===0){const o=Pu.create(r,a),u=Pu.create(r,a+t.length);s.push({type:"text",content:t,range:Bc.create(o,u)})}else{let o=0;for(const h of e){const f=h.index,p=t.substring(o,f);p.length>0&&s.push({type:"text",content:t.substring(o,f),range:Bc.create(Pu.create(r,o+a),Pu.create(r,f+a))});let m=p.length+1;const b=h[1];if(s.push({type:"inline-tag",content:b,range:Bc.create(Pu.create(r,o+m+a),Pu.create(r,o+m+b.length+a))}),m+=b.length,h.length===4){m+=h[2].length;const _=h[3];s.push({type:"text",content:_,range:Bc.create(Pu.create(r,o+m+a),Pu.create(r,o+m+_.length+a))})}else s.push({type:"text",content:"",range:Bc.create(Pu.create(r,o+m+a),Pu.create(r,o+m+a))});o=f+h[0].length}const u=t.substring(o);u.length>0&&s.push({type:"text",content:u,range:Bc.create(Pu.create(r,o+a),Pu.create(r,o+a+u.length))})}return s}const dHi=/\S/,fHi=/\s*$/;function fut(e,t){const r=e.substring(t).match(dHi);return r?t+r.index:e.length}function pHi(e){const t=e.match(fHi);if(t&&typeof t.index=="number")return t.index}function gHi(e){var t,r,a,s;const o=Pu.create(e.position.line,e.position.character);if(e.tokens.length===0)return new U3n([],Bc.create(o,o));const u=[];for(;e.indexr.name===t)}getTags(t){return this.getAllTags().filter(r=>r.name===t)}getAllTags(){return this.elements.filter(t=>"name"in t)}toString(){let t="";for(const r of this.elements)if(t.length===0)t=r.toString();else{const a=r.toString();t+=z3n(t)+a}return t.trim()}toMarkdown(t){let r="";for(const a of this.elements)if(r.length===0)r=a.toMarkdown(t);else{const s=a.toMarkdown(t);r+=z3n(r)+s}return r.trim()}}class $it{constructor(t,r,a,s){this.name=t,this.content=r,this.inline=a,this.range=s}toString(){let t=`@${this.name}`;const r=this.content.toString();return this.content.inlines.length===1?t=`${t} ${r}`:this.content.inlines.length>1&&(t=`${t} ${r}`),this.inline?`{${t}}`:t}toMarkdown(t){var r,a;return(a=(r=t==null?void 0:t.renderTag)===null||r===void 0?void 0:r.call(t,this))!==null&&a!==void 0?a:this.toMarkdownDefault(t)}toMarkdownDefault(t){const r=this.content.toMarkdown(t);if(this.inline){const o=vHi(this.name,r,t??{});if(typeof o=="string")return o}let a="";(t==null?void 0:t.tag)==="italic"||(t==null?void 0:t.tag)===void 0?a="*":(t==null?void 0:t.tag)==="bold"?a="**":(t==null?void 0:t.tag)==="bold-italic"&&(a="***");let s=`${a}@${this.name}${a}`;return this.content.inlines.length===1?s=`${s} — ${r}`:this.content.inlines.length>1&&(s=`${s} ${r}`),this.inline?`{${s}}`:s}}function vHi(e,t,r){var a,s;if(e==="linkplain"||e==="linkcode"||e==="link"){const o=t.indexOf(" ");let u=t;if(o>0){const f=fut(t,o);u=t.substring(f),t=t.substring(0,o)}return(e==="linkcode"||e==="link"&&r.link==="code")&&(u=`\`${u}\``),(s=(a=r.renderLink)===null||a===void 0?void 0:a.call(r,t,u))!==null&&s!==void 0?s:_Hi(t,u)}}function _Hi(e,t){try{return s$.parse(e,!0),`[${t}](${e})`}catch{return e}}class put{constructor(t,r){this.inlines=t,this.range=r}toString(){let t="";for(let r=0;ra.range.start.line&&(t+=` `)}return t}toMarkdown(t){let r="";for(let a=0;as.range.start.line&&(r+=` `)}return r}}class TWn{constructor(t,r){this.text=t,this.range=r}toString(){return this.text}toMarkdown(){return this.text}}function z3n(e){return e.endsWith(` `)?` `:` `}class wHi{constructor(t){this.indexManager=t.shared.workspace.IndexManager,this.commentProvider=t.documentation.CommentProvider}getDocumentation(t){const r=this.commentProvider.getComment(t);if(r&&lHi(r))return oHi(r).toMarkdown({renderLink:(s,o)=>this.documentationLinkRenderer(t,s,o),renderTag:s=>this.documentationTagRenderer(t,s)})}documentationLinkRenderer(t,r,a){var s;const o=(s=this.findNameInPrecomputedScopes(t,r))!==null&&s!==void 0?s:this.findNameInGlobalScope(t,r);if(o&&o.nameSegment){const u=o.nameSegment.range.start.line+1,h=o.nameSegment.range.start.character+1,f=o.documentUri.with({fragment:`L${u},${h}`});return`[${a}](${f.toString()})`}else return}documentationTagRenderer(t,r){}findNameInPrecomputedScopes(t,r){const s=h9(t).precomputedScopes;if(!s)return;let o=t;do{const h=s.get(o).find(f=>f.name===r);if(h)return h;o=o.$container}while(o)}findNameInGlobalScope(t,r){return this.indexManager.allElements().find(s=>s.name===r)}}class EHi{constructor(t){this.grammarConfig=()=>t.parser.GrammarConfig}getComment(t){var r;return qqi(t)?t.$comment:(r=PLi(t.$cstNode,this.grammarConfig().multilineCommentRules))===null||r===void 0?void 0:r.text}}class xHi{constructor(t){this.syncParser=t.parser.LangiumParser}parse(t,r){return Promise.resolve(this.syncParser.parse(t))}}class SHi{constructor(){this.previousTokenSource=new Rmt,this.writeQueue=[],this.readQueue=[],this.done=!0}write(t){this.cancelWrite();const r=Rqi();return this.previousTokenSource=r,this.enqueue(this.writeQueue,t,r.token)}read(t){return this.enqueue(this.readQueue,t)}enqueue(t,r,a=Nf.None){const s=new Imt,o={action:r,deferred:s,cancellationToken:a};return t.push(o),this.performNextOperation(),s.promise}async performNextOperation(){if(!this.done)return;const t=[];if(this.writeQueue.length>0)t.push(this.writeQueue.shift());else if(this.readQueue.length>0)t.push(...this.readQueue.splice(0,this.readQueue.length));else return;this.done=!1,await Promise.all(t.map(async({action:r,deferred:a,cancellationToken:s})=>{try{const o=await Promise.resolve().then(()=>r(s));a.resolve(o)}catch(o){Vke(o)?a.resolve(void 0):a.reject(o)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}}class THi{constructor(t){this.grammarElementIdMap=new M3n,this.tokenTypeIdMap=new M3n,this.grammar=t.Grammar,this.lexer=t.parser.Lexer,this.linker=t.references.Linker}dehydrate(t){return{lexerErrors:t.lexerErrors,lexerReport:t.lexerReport?this.dehydrateLexerReport(t.lexerReport):void 0,parserErrors:t.parserErrors.map(r=>Object.assign(Object.assign({},r),{message:r.message})),value:this.dehydrateAstNode(t.value,this.createDehyrationContext(t.value))}}dehydrateLexerReport(t){return t}createDehyrationContext(t){const r=new Map,a=new Map;for(const s of aY(t))r.set(s,{});if(t.$cstNode)for(const s of Act(t.$cstNode))a.set(s,{});return{astNodes:r,cstNodes:a}}dehydrateAstNode(t,r){const a=r.astNodes.get(t);a.$type=t.$type,a.$containerIndex=t.$containerIndex,a.$containerProperty=t.$containerProperty,t.$cstNode!==void 0&&(a.$cstNode=this.dehydrateCstNode(t.$cstNode,r));for(const[s,o]of Object.entries(t))if(!s.startsWith("$"))if(Array.isArray(o)){const u=[];a[s]=u;for(const h of o)Eb(h)?u.push(this.dehydrateAstNode(h,r)):eA(h)?u.push(this.dehydrateReference(h,r)):u.push(h)}else Eb(o)?a[s]=this.dehydrateAstNode(o,r):eA(o)?a[s]=this.dehydrateReference(o,r):o!==void 0&&(a[s]=o);return a}dehydrateReference(t,r){const a={};return a.$refText=t.$refText,t.$refNode&&(a.$refNode=r.cstNodes.get(t.$refNode)),a}dehydrateCstNode(t,r){const a=r.cstNodes.get(t);return yYn(t)?a.fullText=t.fullText:a.grammarSource=this.getGrammarElementId(t.grammarSource),a.hidden=t.hidden,a.astNode=r.astNodes.get(t.astNode),Zoe(t)?a.content=t.content.map(s=>this.dehydrateCstNode(s,r)):bYn(t)&&(a.tokenType=t.tokenType.name,a.offset=t.offset,a.length=t.length,a.startLine=t.range.start.line,a.startColumn=t.range.start.character,a.endLine=t.range.end.line,a.endColumn=t.range.end.character),a}hydrate(t){const r=t.value,a=this.createHydrationContext(r);return"$cstNode"in r&&this.hydrateCstNode(r.$cstNode,a),{lexerErrors:t.lexerErrors,lexerReport:t.lexerReport,parserErrors:t.parserErrors,value:this.hydrateAstNode(r,a)}}createHydrationContext(t){const r=new Map,a=new Map;for(const o of aY(t))r.set(o,{});let s;if(t.$cstNode)for(const o of Act(t.$cstNode)){let u;"fullText"in o?(u=new rWn(o.fullText),s=u):"content"in o?u=new Amt:"tokenType"in o&&(u=this.hydrateCstLeafNode(o)),u&&(a.set(o,u),u.root=s)}return{astNodes:r,cstNodes:a}}hydrateAstNode(t,r){const a=r.astNodes.get(t);a.$type=t.$type,a.$containerIndex=t.$containerIndex,a.$containerProperty=t.$containerProperty,t.$cstNode&&(a.$cstNode=r.cstNodes.get(t.$cstNode));for(const[s,o]of Object.entries(t))if(!s.startsWith("$"))if(Array.isArray(o)){const u=[];a[s]=u;for(const h of o)Eb(h)?u.push(this.setParent(this.hydrateAstNode(h,r),a)):eA(h)?u.push(this.hydrateReference(h,a,s,r)):u.push(h)}else Eb(o)?a[s]=this.setParent(this.hydrateAstNode(o,r),a):eA(o)?a[s]=this.hydrateReference(o,a,s,r):o!==void 0&&(a[s]=o);return a}setParent(t,r){return t.$container=r,t}hydrateReference(t,r,a,s){return this.linker.buildReference(r,a,s.cstNodes.get(t.$refNode),t.$refText)}hydrateCstNode(t,r,a=0){const s=r.cstNodes.get(t);if(typeof t.grammarSource=="number"&&(s.grammarSource=this.getGrammarElement(t.grammarSource)),s.astNode=r.astNodes.get(t.astNode),Zoe(s))for(const o of t.content){const u=this.hydrateCstNode(o,r,a++);s.content.push(u)}return s}hydrateCstLeafNode(t){const r=this.getTokenType(t.tokenType),a=t.offset,s=t.length,o=t.startLine,u=t.startColumn,h=t.endLine,f=t.endColumn,p=t.hidden;return new aut(a,s,{start:{line:o,character:u},end:{line:h,character:f}},r,p)}getTokenType(t){return this.lexer.definition[t]}getGrammarElementId(t){if(t)return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(t)}getGrammarElement(t){return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.getKey(t)}createGrammarElementIdMap(){let t=0;for(const r of aY(this.grammar))FLi(r)&&this.grammarElementIdMap.set(r,t++)}}function eL(e){return{documentation:{CommentProvider:t=>new EHi(t),DocumentationProvider:t=>new wHi(t)},parser:{AsyncParser:t=>new xHi(t),GrammarConfig:t=>RDi(t),LangiumParser:t=>pqi(t),CompletionParser:t=>fqi(t),ValueConverter:()=>new dWn,TokenBuilder:()=>new hWn,Lexer:t=>new aHi(t),ParserErrorMessageProvider:()=>new sWn,LexerErrorMessageProvider:()=>new rHi},workspace:{AstNodeLocator:()=>new Zqi,AstNodeDescriptionProvider:t=>new Xqi(t),ReferenceDescriptionProvider:t=>new Qqi(t)},references:{Linker:t=>new Lqi(t),NameProvider:()=>new Mqi,ScopeProvider:t=>new Gqi(t),ScopeComputation:t=>new Bqi(t),References:t=>new Pqi(t)},serializer:{Hydrator:t=>new THi(t),JsonSerializer:t=>new Hqi(t)},validation:{DocumentValidator:t=>new jqi(t),ValidationRegistry:t=>new Yqi(t)},shared:()=>e.shared}}function tL(e){return{ServiceRegistry:t=>new Vqi(t),workspace:{LangiumDocuments:t=>new Oqi(t),LangiumDocumentFactory:t=>new Nqi(t),DocumentBuilder:t=>new eHi(t),IndexManager:t=>new tHi(t),WorkspaceManager:t=>new nHi(t),FileSystemProvider:t=>e.fileSystemProvider(t),WorkspaceLock:()=>new SHi,ConfigurationProvider:t=>new Jqi(t)}}}var G3n;(function(e){e.merge=(t,r)=>RTe(RTe({},t),r)})(G3n||(G3n={}));function Ib(e,t,r,a,s,o,u,h,f){const p=[e,t,r,a,s,o,u,h,f].reduce(RTe,{});return CWn(p)}const CHi=Symbol("isProxy");function CWn(e,t){const r=new Proxy({},{deleteProperty:()=>!1,set:()=>{throw new Error("Cannot set property on injected service container")},get:(a,s)=>s===CHi?!0:H3n(a,s,e,t||r),getOwnPropertyDescriptor:(a,s)=>(H3n(a,s,e,t||r),Object.getOwnPropertyDescriptor(a,s)),has:(a,s)=>s in e,ownKeys:()=>[...Object.getOwnPropertyNames(e)]});return r}const q3n=Symbol();function H3n(e,t,r,a){if(t in e){if(e[t]instanceof Error)throw new Error("Construction failure. Please make sure that your dependencies are constructable.",{cause:e[t]});if(e[t]===q3n)throw new Error('Cycle detected. Please make "'+String(t)+'" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies');return e[t]}else if(t in r){const s=r[t];e[t]=q3n;try{e[t]=typeof s=="function"?s(a):CWn(s,a)}catch(o){throw e[t]=o instanceof Error?o:void 0,o}return e[t]}else return}function RTe(e,t){if(t){for(const[r,a]of Object.entries(t))if(a!==void 0){const s=e[r];s!==null&&a!==null&&typeof s=="object"&&typeof a=="object"?e[r]=RTe(s,a):e[r]=a}}return e}class AHi{readFile(){throw new Error("No file system is available.")}async readDirectory(){return[]}}const nL={fileSystemProvider:()=>new AHi},kHi={Grammar:()=>{},LanguageMetaData:()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"})},RHi={AstReflection:()=>new TYn};function IHi(){const e=Ib(tL(nL),RHi),t=Ib(eL({shared:e}),kHi);return e.ServiceRegistry.register(t),t}function j$(e){var t;const r=IHi(),a=r.serializer.JsonSerializer.deserialize(e);return r.shared.workspace.LangiumDocumentFactory.fromModel(a,s$.parse(`memory://${(t=a.name)!==null&&t!==void 0?t:"grammar"}.langium`)),a}var NHi=Object.defineProperty,ra=(e,t)=>NHi(e,"name",{value:t,configurable:!0}),V3n="Statement",zxe="Architecture";function OHi(e){return vT.isInstance(e,zxe)}ra(OHi,"isArchitecture");var nEe="Axis",Aae="Branch";function LHi(e){return vT.isInstance(e,Aae)}ra(LHi,"isBranch");var rEe="Checkout",iEe="CherryPicking",Uit="ClassDefStatement",kae="Commit";function DHi(e){return vT.isInstance(e,kae)}ra(DHi,"isCommit");var zit="Curve",Git="Edge",qit="Entry",Rae="GitGraph";function MHi(e){return vT.isInstance(e,Rae)}ra(MHi,"isGitGraph");var Hit="Group",Gxe="Info";function PHi(e){return vT.isInstance(e,Gxe)}ra(PHi,"isInfo");var aEe="Item",Vit="Junction",Iae="Merge";function BHi(e){return vT.isInstance(e,Iae)}ra(BHi,"isMerge");var Yit="Option",qxe="Packet";function FHi(e){return vT.isInstance(e,qxe)}ra(FHi,"isPacket");var Hxe="PacketBlock";function $Hi(e){return vT.isInstance(e,Hxe)}ra($Hi,"isPacketBlock");var Vxe="Pie";function UHi(e){return vT.isInstance(e,Vxe)}ra(UHi,"isPie");var Yxe="PieSection";function zHi(e){return vT.isInstance(e,Yxe)}ra(zHi,"isPieSection");var jit="Radar",Wit="Service",jxe="Treemap";function GHi(e){return vT.isInstance(e,jxe)}ra(GHi,"isTreemap");var Kit="TreemapRow",sEe="Direction",oEe="Leaf",lEe="Section",AY,AWn=(AY=class extends mYn{getAllTypes(){return[zxe,nEe,Aae,rEe,iEe,Uit,kae,zit,sEe,Git,qit,Rae,Hit,Gxe,aEe,Vit,oEe,Iae,Yit,qxe,Hxe,Vxe,Yxe,jit,lEe,Wit,V3n,jxe,Kit]}computeIsSubtype(t,r){switch(t){case Aae:case rEe:case iEe:case kae:case Iae:return this.isSubtype(V3n,r);case sEe:return this.isSubtype(Rae,r);case oEe:case lEe:return this.isSubtype(aEe,r);default:return!1}}getReferenceType(t){const r=`${t.container.$type}:${t.property}`;switch(r){case"Entry:axis":return nEe;default:throw new Error(`${r} is not a valid reference id.`)}}getTypeMetaData(t){switch(t){case zxe:return{name:zxe,properties:[{name:"accDescr"},{name:"accTitle"},{name:"edges",defaultValue:[]},{name:"groups",defaultValue:[]},{name:"junctions",defaultValue:[]},{name:"services",defaultValue:[]},{name:"title"}]};case nEe:return{name:nEe,properties:[{name:"label"},{name:"name"}]};case Aae:return{name:Aae,properties:[{name:"name"},{name:"order"}]};case rEe:return{name:rEe,properties:[{name:"branch"}]};case iEe:return{name:iEe,properties:[{name:"id"},{name:"parent"},{name:"tags",defaultValue:[]}]};case Uit:return{name:Uit,properties:[{name:"className"},{name:"styleText"}]};case kae:return{name:kae,properties:[{name:"id"},{name:"message"},{name:"tags",defaultValue:[]},{name:"type"}]};case zit:return{name:zit,properties:[{name:"entries",defaultValue:[]},{name:"label"},{name:"name"}]};case Git:return{name:Git,properties:[{name:"lhsDir"},{name:"lhsGroup",defaultValue:!1},{name:"lhsId"},{name:"lhsInto",defaultValue:!1},{name:"rhsDir"},{name:"rhsGroup",defaultValue:!1},{name:"rhsId"},{name:"rhsInto",defaultValue:!1},{name:"title"}]};case qit:return{name:qit,properties:[{name:"axis"},{name:"value"}]};case Rae:return{name:Rae,properties:[{name:"accDescr"},{name:"accTitle"},{name:"statements",defaultValue:[]},{name:"title"}]};case Hit:return{name:Hit,properties:[{name:"icon"},{name:"id"},{name:"in"},{name:"title"}]};case Gxe:return{name:Gxe,properties:[{name:"accDescr"},{name:"accTitle"},{name:"title"}]};case aEe:return{name:aEe,properties:[{name:"classSelector"},{name:"name"}]};case Vit:return{name:Vit,properties:[{name:"id"},{name:"in"}]};case Iae:return{name:Iae,properties:[{name:"branch"},{name:"id"},{name:"tags",defaultValue:[]},{name:"type"}]};case Yit:return{name:Yit,properties:[{name:"name"},{name:"value",defaultValue:!1}]};case qxe:return{name:qxe,properties:[{name:"accDescr"},{name:"accTitle"},{name:"blocks",defaultValue:[]},{name:"title"}]};case Hxe:return{name:Hxe,properties:[{name:"bits"},{name:"end"},{name:"label"},{name:"start"}]};case Vxe:return{name:Vxe,properties:[{name:"accDescr"},{name:"accTitle"},{name:"sections",defaultValue:[]},{name:"showData",defaultValue:!1},{name:"title"}]};case Yxe:return{name:Yxe,properties:[{name:"label"},{name:"value"}]};case jit:return{name:jit,properties:[{name:"accDescr"},{name:"accTitle"},{name:"axes",defaultValue:[]},{name:"curves",defaultValue:[]},{name:"options",defaultValue:[]},{name:"title"}]};case Wit:return{name:Wit,properties:[{name:"icon"},{name:"iconText"},{name:"id"},{name:"in"},{name:"title"}]};case jxe:return{name:jxe,properties:[{name:"accDescr"},{name:"accTitle"},{name:"title"},{name:"TreemapRows",defaultValue:[]}]};case Kit:return{name:Kit,properties:[{name:"indent"},{name:"item"}]};case sEe:return{name:sEe,properties:[{name:"accDescr"},{name:"accTitle"},{name:"dir"},{name:"statements",defaultValue:[]},{name:"title"}]};case oEe:return{name:oEe,properties:[{name:"classSelector"},{name:"name"},{name:"value"}]};case lEe:return{name:lEe,properties:[{name:"classSelector"},{name:"name"}]};default:return{name:t,properties:[]}}}},ra(AY,"MermaidAstReflection"),AY),vT=new AWn,Y3n,qHi=ra(()=>Y3n??(Y3n=j$(`{"$type":"Grammar","isDeclared":true,"name":"Info","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`)),"InfoGrammar"),j3n,HHi=ra(()=>j3n??(j3n=j$(`{"$type":"Grammar","isDeclared":true,"name":"Packet","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`)),"PacketGrammar"),W3n,VHi=ra(()=>W3n??(W3n=j$(`{"$type":"Grammar","isDeclared":true,"name":"Pie","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"}}]},"fragment":false,"hidden":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`)),"PieGrammar"),K3n,YHi=ra(()=>K3n??(K3n=j$(`{"$type":"Grammar","isDeclared":true,"name":"Architecture","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/"},"fragment":false,"hidden":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@18"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[[\\\\w ]+\\\\]/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`)),"ArchitectureGrammar"),X3n,jHi=ra(()=>X3n??(X3n=j$(`{"$type":"Grammar","isDeclared":true,"name":"GitGraph","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`)),"GitGraphGrammar"),Q3n,WHi=ra(()=>Q3n??(Q3n=j$(`{"$type":"Grammar","isDeclared":true,"name":"Radar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"}}]},"fragment":false,"hidden":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}}}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"definesHiddenTokens":false,"hiddenTokens":[],"types":[],"usedGrammars":[]}`)),"RadarGrammar"),Z3n,KHi=ra(()=>Z3n??(Z3n=j$(`{"$type":"Grammar","isDeclared":true,"name":"Treemap","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"}},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"}},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","}},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@14"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"definesHiddenTokens":false,"hiddenTokens":[],"imports":[],"types":[],"usedGrammars":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}`)),"TreemapGrammar"),XHi={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},QHi={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},ZHi={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},JHi={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},eVi={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},tVi={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},nVi={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},W$={AstReflection:ra(()=>new AWn,"AstReflection")},rVi={Grammar:ra(()=>qHi(),"Grammar"),LanguageMetaData:ra(()=>XHi,"LanguageMetaData"),parser:{}},iVi={Grammar:ra(()=>HHi(),"Grammar"),LanguageMetaData:ra(()=>QHi,"LanguageMetaData"),parser:{}},aVi={Grammar:ra(()=>VHi(),"Grammar"),LanguageMetaData:ra(()=>ZHi,"LanguageMetaData"),parser:{}},sVi={Grammar:ra(()=>YHi(),"Grammar"),LanguageMetaData:ra(()=>JHi,"LanguageMetaData"),parser:{}},oVi={Grammar:ra(()=>jHi(),"Grammar"),LanguageMetaData:ra(()=>eVi,"LanguageMetaData"),parser:{}},lVi={Grammar:ra(()=>WHi(),"Grammar"),LanguageMetaData:ra(()=>tVi,"LanguageMetaData"),parser:{}},cVi={Grammar:ra(()=>KHi(),"Grammar"),LanguageMetaData:ra(()=>nVi,"LanguageMetaData"),parser:{}},uVi=/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,hVi=/accTitle[\t ]*:([^\n\r]*)/,dVi=/title([\t ][^\n\r]*|)/,fVi={ACC_DESCR:uVi,ACC_TITLE:hVi,TITLE:dVi},kY,Yke=(kY=class extends dWn{runConverter(t,r,a){let s=this.runCommonConverter(t,r,a);return s===void 0&&(s=this.runCustomConverter(t,r,a)),s===void 0?super.runConverter(t,r,a):s}runCommonConverter(t,r,a){const s=fVi[t.name];if(s===void 0)return;const o=s.exec(r);if(o!==null){if(o[1]!==void 0)return o[1].trim().replace(/[\t ]{2,}/gm," ");if(o[2]!==void 0)return o[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,` `)}}},ra(kY,"AbstractMermaidValueConverter"),kY),RY,jke=(RY=class extends Yke{runCustomConverter(t,r,a){}},ra(RY,"CommonValueConverter"),RY),IY,rL=(IY=class extends hWn{constructor(t){super(),this.keywords=new Set(t)}buildKeywordTokens(t,r,a){const s=super.buildKeywordTokens(t,r,a);return s.forEach(o=>{this.keywords.has(o.name)&&o.PATTERN!==void 0&&(o.PATTERN=new RegExp(o.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),s}},ra(IY,"AbstractMermaidTokenBuilder"),IY),NY;NY=class extends rL{},ra(NY,"CommonTokenBuilder");var OY,pVi=(OY=class extends rL{constructor(){super(["gitGraph"])}},ra(OY,"GitGraphTokenBuilder"),OY),kWn={parser:{TokenBuilder:ra(()=>new pVi,"TokenBuilder"),ValueConverter:ra(()=>new jke,"ValueConverter")}};function RWn(e=nL){const t=Ib(tL(e),W$),r=Ib(eL({shared:t}),oVi,kWn);return t.ServiceRegistry.register(r),{shared:t,GitGraph:r}}ra(RWn,"createGitGraphServices");var LY,gVi=(LY=class extends rL{constructor(){super(["info","showInfo"])}},ra(LY,"InfoTokenBuilder"),LY),IWn={parser:{TokenBuilder:ra(()=>new gVi,"TokenBuilder"),ValueConverter:ra(()=>new jke,"ValueConverter")}};function NWn(e=nL){const t=Ib(tL(e),W$),r=Ib(eL({shared:t}),rVi,IWn);return t.ServiceRegistry.register(r),{shared:t,Info:r}}ra(NWn,"createInfoServices");var DY,mVi=(DY=class extends rL{constructor(){super(["packet"])}},ra(DY,"PacketTokenBuilder"),DY),OWn={parser:{TokenBuilder:ra(()=>new mVi,"TokenBuilder"),ValueConverter:ra(()=>new jke,"ValueConverter")}};function LWn(e=nL){const t=Ib(tL(e),W$),r=Ib(eL({shared:t}),iVi,OWn);return t.ServiceRegistry.register(r),{shared:t,Packet:r}}ra(LWn,"createPacketServices");var MY,bVi=(MY=class extends rL{constructor(){super(["pie","showData"])}},ra(MY,"PieTokenBuilder"),MY),PY,yVi=(PY=class extends Yke{runCustomConverter(t,r,a){if(t.name==="PIE_SECTION_LABEL")return r.replace(/"/g,"").trim()}},ra(PY,"PieValueConverter"),PY),DWn={parser:{TokenBuilder:ra(()=>new bVi,"TokenBuilder"),ValueConverter:ra(()=>new yVi,"ValueConverter")}};function MWn(e=nL){const t=Ib(tL(e),W$),r=Ib(eL({shared:t}),aVi,DWn);return t.ServiceRegistry.register(r),{shared:t,Pie:r}}ra(MWn,"createPieServices");var BY,vVi=(BY=class extends rL{constructor(){super(["architecture"])}},ra(BY,"ArchitectureTokenBuilder"),BY),FY,_Vi=(FY=class extends Yke{runCustomConverter(t,r,a){if(t.name==="ARCH_ICON")return r.replace(/[()]/g,"").trim();if(t.name==="ARCH_TEXT_ICON")return r.replace(/["()]/g,"");if(t.name==="ARCH_TITLE")return r.replace(/[[\]]/g,"").trim()}},ra(FY,"ArchitectureValueConverter"),FY),PWn={parser:{TokenBuilder:ra(()=>new vVi,"TokenBuilder"),ValueConverter:ra(()=>new _Vi,"ValueConverter")}};function BWn(e=nL){const t=Ib(tL(e),W$),r=Ib(eL({shared:t}),sVi,PWn);return t.ServiceRegistry.register(r),{shared:t,Architecture:r}}ra(BWn,"createArchitectureServices");var $Y,wVi=($Y=class extends rL{constructor(){super(["radar-beta"])}},ra($Y,"RadarTokenBuilder"),$Y),FWn={parser:{TokenBuilder:ra(()=>new wVi,"TokenBuilder"),ValueConverter:ra(()=>new jke,"ValueConverter")}};function $Wn(e=nL){const t=Ib(tL(e),W$),r=Ib(eL({shared:t}),lVi,FWn);return t.ServiceRegistry.register(r),{shared:t,Radar:r}}ra($Wn,"createRadarServices");var UY,EVi=(UY=class extends rL{constructor(){super(["treemap"])}},ra(UY,"TreemapTokenBuilder"),UY),xVi=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,zY,SVi=(zY=class extends Yke{runCustomConverter(t,r,a){if(t.name==="NUMBER2")return parseFloat(r.replace(/,/g,""));if(t.name==="SEPARATOR")return r.substring(1,r.length-1);if(t.name==="STRING2")return r.substring(1,r.length-1);if(t.name==="INDENTATION")return r.length;if(t.name==="ClassDef"){if(typeof r!="string")return r;const s=xVi.exec(r);if(s)return{$type:"ClassDefStatement",className:s[1],styleText:s[2]||void 0}}}},ra(zY,"TreemapValueConverter"),zY);function UWn(e){const t=e.validation.TreemapValidator,r=e.validation.ValidationRegistry;if(r){const a={Treemap:t.checkSingleRoot.bind(t)};r.register(a,t)}}ra(UWn,"registerValidationChecks");var GY,TVi=(GY=class{checkSingleRoot(t,r){let a;for(const s of t.TreemapRows)s.item&&(a===void 0&&s.indent===void 0?a=0:s.indent===void 0?r("error","Multiple root nodes are not allowed in a treemap.",{node:s,property:"item"}):a!==void 0&&a>=parseInt(s.indent,10)&&r("error","Multiple root nodes are not allowed in a treemap.",{node:s,property:"item"}))}},ra(GY,"TreemapValidator"),GY),zWn={parser:{TokenBuilder:ra(()=>new EVi,"TokenBuilder"),ValueConverter:ra(()=>new SVi,"ValueConverter")},validation:{TreemapValidator:ra(()=>new TVi,"TreemapValidator")}};function GWn(e=nL){const t=Ib(tL(e),W$),r=Ib(eL({shared:t}),cVi,zWn);return t.ServiceRegistry.register(r),UWn(r),{shared:t,Treemap:r}}ra(GWn,"createTreemapServices");var c7={},CVi={info:ra(async()=>{const{createInfoServices:e}=await ea(async()=>{const{createInfoServices:r}=await Promise.resolve().then(()=>vca);return{createInfoServices:r}},void 0),t=e().Info.parser.LangiumParser;c7.info=t},"info"),packet:ra(async()=>{const{createPacketServices:e}=await ea(async()=>{const{createPacketServices:r}=await Promise.resolve().then(()=>_ca);return{createPacketServices:r}},void 0),t=e().Packet.parser.LangiumParser;c7.packet=t},"packet"),pie:ra(async()=>{const{createPieServices:e}=await ea(async()=>{const{createPieServices:r}=await Promise.resolve().then(()=>wca);return{createPieServices:r}},void 0),t=e().Pie.parser.LangiumParser;c7.pie=t},"pie"),architecture:ra(async()=>{const{createArchitectureServices:e}=await ea(async()=>{const{createArchitectureServices:r}=await Promise.resolve().then(()=>Eca);return{createArchitectureServices:r}},void 0),t=e().Architecture.parser.LangiumParser;c7.architecture=t},"architecture"),gitGraph:ra(async()=>{const{createGitGraphServices:e}=await ea(async()=>{const{createGitGraphServices:r}=await Promise.resolve().then(()=>xca);return{createGitGraphServices:r}},void 0),t=e().GitGraph.parser.LangiumParser;c7.gitGraph=t},"gitGraph"),radar:ra(async()=>{const{createRadarServices:e}=await ea(async()=>{const{createRadarServices:r}=await Promise.resolve().then(()=>Sca);return{createRadarServices:r}},void 0),t=e().Radar.parser.LangiumParser;c7.radar=t},"radar"),treemap:ra(async()=>{const{createTreemapServices:e}=await ea(async()=>{const{createTreemapServices:r}=await Promise.resolve().then(()=>Tca);return{createTreemapServices:r}},void 0),t=e().Treemap.parser.LangiumParser;c7.treemap=t},"treemap")};async function iL(e,t){const r=CVi[e];if(!r)throw new Error(`Unknown diagram type: ${e}`);c7[e]||await r();const s=c7[e].parse(t);if(s.lexerErrors.length>0||s.parserErrors.length>0)throw new AVi(s);return s.value}ra(iL,"parse");var qY,AVi=(qY=class extends Error{constructor(t){const r=t.lexerErrors.map(s=>s.message).join(` `),a=t.parserErrors.map(s=>s.message).join(` `);super(`Parsing failed: ${r} ${a}`),this.result=t}},ra(qY,"MermaidParseError"),qY),th={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},kVi=Cc.gitGraph,K$=X(()=>cv({...kVi,...$c().gitGraph}),"getConfig"),oa=new gYn(()=>{const e=K$(),t=e.mainBranchName,r=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:r}]]),branches:new Map([[t,null]]),currBranch:t,direction:"LR",seq:0,options:{}}});function Wke(){return tBn({length:7})}X(Wke,"getID");function qWn(e,t){const r=Object.create(null);return e.reduce((a,s)=>{const o=t(s);return r[o]||(r[o]=!0,a.push(s)),a},[])}X(qWn,"uniqBy");var RVi=X(function(e){oa.records.direction=e},"setDirection"),IVi=X(function(e){it.debug("options str",e),e=e==null?void 0:e.trim(),e=e||"{}";try{oa.records.options=JSON.parse(e)}catch(t){it.error("error while parsing gitGraph options",t.message)}},"setOptions"),NVi=X(function(){return oa.records.options},"getOptions"),OVi=X(function(e){let t=e.msg,r=e.id;const a=e.type;let s=e.tags;it.info("commit",t,r,a,s),it.debug("Entering commit:",t,r,a,s);const o=K$();r=Ti.sanitizeText(r,o),t=Ti.sanitizeText(t,o),s=s==null?void 0:s.map(h=>Ti.sanitizeText(h,o));const u={id:r||oa.records.seq+"-"+Wke(),message:t,seq:oa.records.seq++,type:a??th.NORMAL,tags:s??[],parents:oa.records.head==null?[]:[oa.records.head.id],branch:oa.records.currBranch};oa.records.head=u,it.info("main branch",o.mainBranchName),oa.records.commits.has(u.id)&&it.warn(`Commit ID ${u.id} already exists`),oa.records.commits.set(u.id,u),oa.records.branches.set(oa.records.currBranch,u.id),it.debug("in pushCommit "+u.id)},"commit"),LVi=X(function(e){let t=e.name;const r=e.order;if(t=Ti.sanitizeText(t,K$()),oa.records.branches.has(t))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);oa.records.branches.set(t,oa.records.head!=null?oa.records.head.id:null),oa.records.branchConfig.set(t,{name:t,order:r}),HWn(t),it.debug("in createBranch")},"branch"),DVi=X(e=>{let t=e.branch,r=e.id;const a=e.type,s=e.tags,o=K$();t=Ti.sanitizeText(t,o),r&&(r=Ti.sanitizeText(r,o));const u=oa.records.branches.get(oa.records.currBranch),h=oa.records.branches.get(t),f=u?oa.records.commits.get(u):void 0,p=h?oa.records.commits.get(h):void 0;if(f&&p&&f.branch===t)throw new Error(`Cannot merge branch '${t}' into itself.`);if(oa.records.currBranch===t){const _=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw _.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["branch abc"]},_}if(f===void 0||!f){const _=new Error(`Incorrect usage of "merge". Current branch (${oa.records.currBranch})has no commits`);throw _.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["commit"]},_}if(!oa.records.branches.has(t)){const _=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist");throw _.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},_}if(p===void 0||!p){const _=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits");throw _.hash={text:`merge ${t}`,token:`merge ${t}`,expected:['"commit"']},_}if(f===p){const _=new Error('Incorrect usage of "merge". Both branches have same head');throw _.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["branch abc"]},_}if(r&&oa.records.commits.has(r)){const _=new Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom id");throw _.hash={text:`merge ${t} ${r} ${a} ${s==null?void 0:s.join(" ")}`,token:`merge ${t} ${r} ${a} ${s==null?void 0:s.join(" ")}`,expected:[`merge ${t} ${r}_UNIQUE ${a} ${s==null?void 0:s.join(" ")}`]},_}const m=h||"",b={id:r||`${oa.records.seq}-${Wke()}`,message:`merged branch ${t} into ${oa.records.currBranch}`,seq:oa.records.seq++,parents:oa.records.head==null?[]:[oa.records.head.id,m],branch:oa.records.currBranch,type:th.MERGE,customType:a,customId:!!r,tags:s??[]};oa.records.head=b,oa.records.commits.set(b.id,b),oa.records.branches.set(oa.records.currBranch,b.id),it.debug(oa.records.branches),it.debug("in mergeBranch")},"merge"),MVi=X(function(e){let t=e.id,r=e.targetId,a=e.tags,s=e.parent;it.debug("Entering cherryPick:",t,r,a);const o=K$();if(t=Ti.sanitizeText(t,o),r=Ti.sanitizeText(r,o),a=a==null?void 0:a.map(f=>Ti.sanitizeText(f,o)),s=Ti.sanitizeText(s,o),!t||!oa.records.commits.has(t)){const f=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw f.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},f}const u=oa.records.commits.get(t);if(u===void 0||!u)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(s&&!(Array.isArray(u.parents)&&u.parents.includes(s)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const h=u.branch;if(u.type===th.MERGE&&!s)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!r||!oa.records.commits.has(r)){if(h===oa.records.currBranch){const b=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw b.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},b}const f=oa.records.branches.get(oa.records.currBranch);if(f===void 0||!f){const b=new Error(`Incorrect usage of "cherry-pick". Current branch (${oa.records.currBranch})has no commits`);throw b.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},b}const p=oa.records.commits.get(f);if(p===void 0||!p){const b=new Error(`Incorrect usage of "cherry-pick". Current branch (${oa.records.currBranch})has no commits`);throw b.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},b}const m={id:oa.records.seq+"-"+Wke(),message:`cherry-picked ${u==null?void 0:u.message} into ${oa.records.currBranch}`,seq:oa.records.seq++,parents:oa.records.head==null?[]:[oa.records.head.id,u.id],branch:oa.records.currBranch,type:th.CHERRY_PICK,tags:a?a.filter(Boolean):[`cherry-pick:${u.id}${u.type===th.MERGE?`|parent:${s}`:""}`]};oa.records.head=m,oa.records.commits.set(m.id,m),oa.records.branches.set(oa.records.currBranch,m.id),it.debug(oa.records.branches),it.debug("in cherryPick")}},"cherryPick"),HWn=X(function(e){if(e=Ti.sanitizeText(e,K$()),oa.records.branches.has(e)){oa.records.currBranch=e;const t=oa.records.branches.get(oa.records.currBranch);t===void 0||!t?oa.records.head=null:oa.records.head=oa.records.commits.get(t)??null}else{const t=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},"checkout");function gut(e,t,r){const a=e.indexOf(t);a===-1?e.push(r):e.splice(a,1,r)}X(gut,"upsert");function Omt(e){const t=e.reduce((s,o)=>s.seq>o.seq?s:o,e[0]);let r="";e.forEach(function(s){s===t?r+=" *":r+=" |"});const a=[r,t.id,t.seq];for(const s in oa.records.branches)oa.records.branches.get(s)===t.id&&a.push(s);if(it.debug(a.join(" ")),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){const s=oa.records.commits.get(t.parents[0]);gut(e,t,s),t.parents[1]&&e.push(oa.records.commits.get(t.parents[1]))}else{if(t.parents.length==0)return;if(t.parents[0]){const s=oa.records.commits.get(t.parents[0]);gut(e,t,s)}}e=qWn(e,s=>s.id),Omt(e)}X(Omt,"prettyPrintCommitHistory");var PVi=X(function(){it.debug(oa.records.commits);const e=VWn()[0];Omt([e])},"prettyPrint"),BVi=X(function(){oa.reset(),M1()},"clear"),FVi=X(function(){return[...oa.records.branchConfig.values()].map((t,r)=>t.order!==null&&t.order!==void 0?t:{...t,order:parseFloat(`0.${r}`)}).sort((t,r)=>(t.order??0)-(r.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),$Vi=X(function(){return oa.records.branches},"getBranches"),UVi=X(function(){return oa.records.commits},"getCommits"),VWn=X(function(){const e=[...oa.records.commits.values()];return e.forEach(function(t){it.debug(t.id)}),e.sort((t,r)=>t.seq-r.seq),e},"getCommitsArray"),zVi=X(function(){return oa.records.currBranch},"getCurrentBranch"),GVi=X(function(){return oa.records.direction},"getDirection"),qVi=X(function(){return oa.records.head},"getHead"),YWn={commitType:th,getConfig:K$,setDirection:RVi,setOptions:IVi,getOptions:NVi,commit:OVi,branch:LVi,merge:DVi,cherryPick:MVi,checkout:HWn,prettyPrint:PVi,clear:BVi,getBranchesAsObjArray:FVi,getBranches:$Vi,getCommits:UVi,getCommitsArray:VWn,getCurrentBranch:zVi,getDirection:GVi,getHead:qVi,setAccTitle:N1,getAccTitle:Mp,getAccDescription:Bp,setAccDescription:Pp,setDiagramTitle:Og,getDiagramTitle:P1},HVi=X((e,t)=>{z$(e,t),e.dir&&t.setDirection(e.dir);for(const r of e.statements)VVi(r,t)},"populate"),VVi=X((e,t)=>{const a={Commit:X(s=>t.commit(YVi(s)),"Commit"),Branch:X(s=>t.branch(jVi(s)),"Branch"),Merge:X(s=>t.merge(WVi(s)),"Merge"),Checkout:X(s=>t.checkout(KVi(s)),"Checkout"),CherryPicking:X(s=>t.cherryPick(XVi(s)),"CherryPicking")}[e.$type];a?a(e):it.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),YVi=X(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?th[e.type]:th.NORMAL,tags:e.tags??void 0}),"parseCommit"),jVi=X(e=>({name:e.name,order:e.order??0}),"parseBranch"),WVi=X(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?th[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),KVi=X(e=>e.branch,"parseCheckout"),XVi=X(e=>{var r;return{id:e.id,targetId:"",tags:((r=e.tags)==null?void 0:r.length)===0?void 0:e.tags,parent:e.parent}},"parseCherryPicking"),QVi={parse:X(async e=>{const t=await iL("gitGraph",e);it.debug(t),HVi(t,YWn)},"parse")},Xit=nn(),A1=Xit==null?void 0:Xit.gitGraph,vO=10,_O=40,IC=4,b7=2,UB=8,G2=new Map,e_=new Map,ITe=30,Nae=new Map,NTe=[],nO=0,Rc="LR",ZVi=X(()=>{G2.clear(),e_.clear(),Nae.clear(),nO=0,NTe=[],Rc="LR"},"clear"),jWn=X(e=>{const t=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|/gi):e).forEach(a=>{const s=document.createElementNS("http://www.w3.org/2000/svg","tspan");s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),s.setAttribute("dy","1em"),s.setAttribute("x","0"),s.setAttribute("class","row"),s.textContent=a.trim(),t.appendChild(s)}),t},"drawText"),WWn=X(e=>{let t,r,a;return Rc==="BT"?(r=X((s,o)=>s<=o,"comparisonFunc"),a=1/0):(r=X((s,o)=>s>=o,"comparisonFunc"),a=0),e.forEach(s=>{var u,h;const o=Rc==="TB"||Rc=="BT"?(u=e_.get(s))==null?void 0:u.y:(h=e_.get(s))==null?void 0:h.x;o!==void 0&&r(o,a)&&(t=s,a=o)}),t},"findClosestParent"),JVi=X(e=>{let t="",r=1/0;return e.forEach(a=>{const s=e_.get(a).y;s<=r&&(t=a,r=s)}),t||void 0},"findClosestParentBT"),eYi=X((e,t,r)=>{let a=r,s=r;const o=[];e.forEach(u=>{const h=t.get(u);if(!h)throw new Error(`Commit not found for key ${u}`);h.parents.length?(a=nYi(h),s=Math.max(a,s)):o.push(h),rYi(h,a)}),a=s,o.forEach(u=>{iYi(u,a,r)}),e.forEach(u=>{const h=t.get(u);if(h!=null&&h.parents.length){const f=JVi(h.parents);a=e_.get(f).y-_O,a<=s&&(s=a);const p=G2.get(h.branch).pos,m=a-vO;e_.set(h.id,{x:p,y:m})}})},"setParallelBTPos"),tYi=X(e=>{var a;const t=WWn(e.parents.filter(s=>s!==null));if(!t)throw new Error(`Closest parent not found for commit ${e.id}`);const r=(a=e_.get(t))==null?void 0:a.y;if(r===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return r},"findClosestParentPos"),nYi=X(e=>tYi(e)+_O,"calculateCommitPosition"),rYi=X((e,t)=>{const r=G2.get(e.branch);if(!r)throw new Error(`Branch not found for commit ${e.id}`);const a=r.pos,s=t+vO;return e_.set(e.id,{x:a,y:s}),{x:a,y:s}},"setCommitPosition"),iYi=X((e,t,r)=>{const a=G2.get(e.branch);if(!a)throw new Error(`Branch not found for commit ${e.id}`);const s=t+r,o=a.pos;e_.set(e.id,{x:o,y:s})},"setRootPosition"),aYi=X((e,t,r,a,s,o)=>{if(o===th.HIGHLIGHT)e.append("rect").attr("x",r.x-10).attr("y",r.y-10).attr("width",20).attr("height",20).attr("class",`commit ${t.id} commit-highlight${s%UB} ${a}-outer`),e.append("rect").attr("x",r.x-6).attr("y",r.y-6).attr("width",12).attr("height",12).attr("class",`commit ${t.id} commit${s%UB} ${a}-inner`);else if(o===th.CHERRY_PICK)e.append("circle").attr("cx",r.x).attr("cy",r.y).attr("r",10).attr("class",`commit ${t.id} ${a}`),e.append("circle").attr("cx",r.x-3).attr("cy",r.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${t.id} ${a}`),e.append("circle").attr("cx",r.x+3).attr("cy",r.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${t.id} ${a}`),e.append("line").attr("x1",r.x+3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke","#fff").attr("class",`commit ${t.id} ${a}`),e.append("line").attr("x1",r.x-3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke","#fff").attr("class",`commit ${t.id} ${a}`);else{const u=e.append("circle");if(u.attr("cx",r.x),u.attr("cy",r.y),u.attr("r",t.type===th.MERGE?9:10),u.attr("class",`commit ${t.id} commit${s%UB}`),o===th.MERGE){const h=e.append("circle");h.attr("cx",r.x),h.attr("cy",r.y),h.attr("r",6),h.attr("class",`commit ${a} ${t.id} commit${s%UB}`)}o===th.REVERSE&&e.append("path").attr("d",`M ${r.x-5},${r.y-5}L${r.x+5},${r.y+5}M${r.x-5},${r.y+5}L${r.x+5},${r.y-5}`).attr("class",`commit ${a} ${t.id} commit${s%UB}`)}},"drawCommitBullet"),sYi=X((e,t,r,a)=>{var s;if(t.type!==th.CHERRY_PICK&&(t.customId&&t.type===th.MERGE||t.type!==th.MERGE)&&(A1!=null&&A1.showCommitLabel)){const o=e.append("g"),u=o.insert("rect").attr("class","commit-label-bkg"),h=o.append("text").attr("x",a).attr("y",r.y+25).attr("class","commit-label").text(t.id),f=(s=h.node())==null?void 0:s.getBBox();if(f&&(u.attr("x",r.posWithOffset-f.width/2-b7).attr("y",r.y+13.5).attr("width",f.width+2*b7).attr("height",f.height+2*b7),Rc==="TB"||Rc==="BT"?(u.attr("x",r.x-(f.width+4*IC+5)).attr("y",r.y-12),h.attr("x",r.x-(f.width+4*IC)).attr("y",r.y+f.height-12)):h.attr("x",r.posWithOffset-f.width/2),A1.rotateCommitLabel))if(Rc==="TB"||Rc==="BT")h.attr("transform","rotate(-45, "+r.x+", "+r.y+")"),u.attr("transform","rotate(-45, "+r.x+", "+r.y+")");else{const p=-7.5-(f.width+10)/25*9.5,m=10+f.width/25*8.5;o.attr("transform","translate("+p+", "+m+") rotate(-45, "+a+", "+r.y+")")}}},"drawCommitLabel"),oYi=X((e,t,r,a)=>{var s;if(t.tags.length>0){let o=0,u=0,h=0;const f=[];for(const p of t.tags.reverse()){const m=e.insert("polygon"),b=e.append("circle"),_=e.append("text").attr("y",r.y-16-o).attr("class","tag-label").text(p),w=(s=_.node())==null?void 0:s.getBBox();if(!w)throw new Error("Tag bbox not found");u=Math.max(u,w.width),h=Math.max(h,w.height),_.attr("x",r.posWithOffset-w.width/2),f.push({tag:_,hole:b,rect:m,yOffset:o}),o+=20}for(const{tag:p,hole:m,rect:b,yOffset:_}of f){const w=h/2,S=r.y-19.2-_;if(b.attr("class","tag-label-bkg").attr("points",` ${a-u/2-IC/2},${S+b7} ${a-u/2-IC/2},${S-b7} ${r.posWithOffset-u/2-IC},${S-w-b7} ${r.posWithOffset+u/2+IC},${S-w-b7} ${r.posWithOffset+u/2+IC},${S+w+b7} ${r.posWithOffset-u/2-IC},${S+w+b7}`),m.attr("cy",S).attr("cx",a-u/2+IC/2).attr("r",1.5).attr("class","tag-hole"),Rc==="TB"||Rc==="BT"){const C=a+_;b.attr("class","tag-label-bkg").attr("points",` ${r.x},${C+2} ${r.x},${C-2} ${r.x+vO},${C-w-2} ${r.x+vO+u+4},${C-w-2} ${r.x+vO+u+4},${C+w+2} ${r.x+vO},${C+w+2}`).attr("transform","translate(12,12) rotate(45, "+r.x+","+a+")"),m.attr("cx",r.x+IC/2).attr("cy",C).attr("transform","translate(12,12) rotate(45, "+r.x+","+a+")"),p.attr("x",r.x+5).attr("y",C+3).attr("transform","translate(14,14) rotate(45, "+r.x+","+a+")")}}}},"drawCommitTags"),lYi=X(e=>{switch(e.customType??e.type){case th.NORMAL:return"commit-normal";case th.REVERSE:return"commit-reverse";case th.HIGHLIGHT:return"commit-highlight";case th.MERGE:return"commit-merge";case th.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),cYi=X((e,t,r,a)=>{const s={x:0,y:0};if(e.parents.length>0){const o=WWn(e.parents);if(o){const u=a.get(o)??s;return t==="TB"?u.y+_O:t==="BT"?(a.get(e.id)??s).y-_O:u.x+_O}}else return t==="TB"?ITe:t==="BT"?(a.get(e.id)??s).y-_O:0;return 0},"calculatePosition"),uYi=X((e,t,r)=>{var u,h;const a=Rc==="BT"&&r?t:t+vO,s=Rc==="TB"||Rc==="BT"?a:(u=G2.get(e.branch))==null?void 0:u.pos,o=Rc==="TB"||Rc==="BT"?(h=G2.get(e.branch))==null?void 0:h.pos:a;if(o===void 0||s===void 0)throw new Error(`Position were undefined for commit ${e.id}`);return{x:o,y:s,posWithOffset:a}},"getCommitPosition"),J3n=X((e,t,r)=>{if(!A1)throw new Error("GitGraph config not found");const a=e.append("g").attr("class","commit-bullets"),s=e.append("g").attr("class","commit-labels");let o=Rc==="TB"||Rc==="BT"?ITe:0;const u=[...t.keys()],h=(A1==null?void 0:A1.parallelCommits)??!1,f=X((m,b)=>{var S,C;const _=(S=t.get(m))==null?void 0:S.seq,w=(C=t.get(b))==null?void 0:C.seq;return _!==void 0&&w!==void 0?_-w:0},"sortKeys");let p=u.sort(f);Rc==="BT"&&(h&&eYi(p,t,o),p=p.reverse()),p.forEach(m=>{var w;const b=t.get(m);if(!b)throw new Error(`Commit not found for key ${m}`);h&&(o=cYi(b,Rc,o,e_));const _=uYi(b,o,h);if(r){const S=lYi(b),C=b.customType??b.type,A=((w=G2.get(b.branch))==null?void 0:w.index)??0;aYi(a,b,_,S,A,C),sYi(s,b,_,o),oYi(s,b,_,o)}Rc==="TB"||Rc==="BT"?e_.set(b.id,{x:_.x,y:_.posWithOffset}):e_.set(b.id,{x:_.posWithOffset,y:_.y}),o=Rc==="BT"&&h?o+_O:o+_O+vO,o>nO&&(nO=o)})},"drawCommits"),hYi=X((e,t,r,a,s)=>{const u=(Rc==="TB"||Rc==="BT"?r.xp.branch===u,"isOnBranchToGetCurve"),f=X(p=>p.seq>e.seq&&p.seqf(p)&&h(p))},"shouldRerouteArrow"),Oae=X((e,t,r=0)=>{const a=e+Math.abs(e-t)/2;if(r>5)return a;if(NTe.every(u=>Math.abs(u-a)>=10))return NTe.push(a),a;const o=Math.abs(e-t);return Oae(e,t-o/5,r+1)},"findLane"),dYi=X((e,t,r,a)=>{var w,S,C,A,k;const s=e_.get(t.id),o=e_.get(r.id);if(s===void 0||o===void 0)throw new Error(`Commit positions not found for commits ${t.id} and ${r.id}`);const u=hYi(t,r,s,o,a);let h="",f="",p=0,m=0,b=(w=G2.get(r.branch))==null?void 0:w.index;r.type===th.MERGE&&t.id!==r.parents[0]&&(b=(S=G2.get(t.branch))==null?void 0:S.index);let _;if(u){h="A 10 10, 0, 0, 0,",f="A 10 10, 0, 0, 1,",p=10,m=10;const I=s.yo.x&&(h="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",p=20,m=20,r.type===th.MERGE&&t.id!==r.parents[0]?_=`M ${s.x} ${s.y} L ${s.x} ${o.y-p} ${f} ${s.x-m} ${o.y} L ${o.x} ${o.y}`:_=`M ${s.x} ${s.y} L ${o.x+p} ${s.y} ${h} ${o.x} ${s.y+m} L ${o.x} ${o.y}`),s.x===o.x&&(_=`M ${s.x} ${s.y} L ${o.x} ${o.y}`)):Rc==="BT"?(s.xo.x&&(h="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",p=20,m=20,r.type===th.MERGE&&t.id!==r.parents[0]?_=`M ${s.x} ${s.y} L ${s.x} ${o.y+p} ${h} ${s.x-m} ${o.y} L ${o.x} ${o.y}`:_=`M ${s.x} ${s.y} L ${o.x-p} ${s.y} ${h} ${o.x} ${s.y-m} L ${o.x} ${o.y}`),s.x===o.x&&(_=`M ${s.x} ${s.y} L ${o.x} ${o.y}`)):(s.yo.y&&(r.type===th.MERGE&&t.id!==r.parents[0]?_=`M ${s.x} ${s.y} L ${o.x-p} ${s.y} ${h} ${o.x} ${s.y-m} L ${o.x} ${o.y}`:_=`M ${s.x} ${s.y} L ${s.x} ${o.y+p} ${f} ${s.x+m} ${o.y} L ${o.x} ${o.y}`),s.y===o.y&&(_=`M ${s.x} ${s.y} L ${o.x} ${o.y}`));if(_===void 0)throw new Error("Line definition not found");e.append("path").attr("d",_).attr("class","arrow arrow"+b%UB)},"drawArrow"),fYi=X((e,t)=>{const r=e.append("g").attr("class","commit-arrows");[...t.keys()].forEach(a=>{const s=t.get(a);s.parents&&s.parents.length>0&&s.parents.forEach(o=>{dYi(r,t.get(o),s,t)})})},"drawArrows"),pYi=X((e,t)=>{const r=e.append("g");t.forEach((a,s)=>{var S;const o=s%UB,u=(S=G2.get(a.name))==null?void 0:S.pos;if(u===void 0)throw new Error(`Position not found for branch ${a.name}`);const h=r.append("line");h.attr("x1",0),h.attr("y1",u),h.attr("x2",nO),h.attr("y2",u),h.attr("class","branch branch"+o),Rc==="TB"?(h.attr("y1",ITe),h.attr("x1",u),h.attr("y2",nO),h.attr("x2",u)):Rc==="BT"&&(h.attr("y1",nO),h.attr("x1",u),h.attr("y2",ITe),h.attr("x2",u)),NTe.push(u);const f=a.name,p=jWn(f),m=r.insert("rect"),_=r.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+o);_.node().appendChild(p);const w=p.getBBox();m.attr("class","branchLabelBkg label"+o).attr("rx",4).attr("ry",4).attr("x",-w.width-4-((A1==null?void 0:A1.rotateCommitLabel)===!0?30:0)).attr("y",-w.height/2+8).attr("width",w.width+18).attr("height",w.height+4),_.attr("transform","translate("+(-w.width-14-((A1==null?void 0:A1.rotateCommitLabel)===!0?30:0))+", "+(u-w.height/2-1)+")"),Rc==="TB"?(m.attr("x",u-w.width/2-10).attr("y",0),_.attr("transform","translate("+(u-w.width/2-5)+", 0)")):Rc==="BT"?(m.attr("x",u-w.width/2-10).attr("y",nO),_.attr("transform","translate("+(u-w.width/2-5)+", "+nO+")")):m.attr("transform","translate(-19, "+(u-w.height/2)+")")})},"drawBranches"),gYi=X(function(e,t,r,a,s){return G2.set(e,{pos:t,index:r}),t+=50+(s?40:0)+(Rc==="TB"||Rc==="BT"?a.width/2:0),t},"setBranchPosition"),mYi=X(function(e,t,r,a){if(ZVi(),it.debug("in gitgraph renderer",e+` `,"id:",t,r),!A1)throw new Error("GitGraph config not found");const s=A1.rotateCommitLabel??!1,o=a.db;Nae=o.getCommits();const u=o.getBranchesAsObjArray();Rc=o.getDirection();const h=gn(`[id="${t}"]`);let f=0;u.forEach((p,m)=>{var A;const b=jWn(p.name),_=h.append("g"),w=_.insert("g").attr("class","branchLabel"),S=w.insert("g").attr("class","label branch-label");(A=S.node())==null||A.appendChild(b);const C=b.getBBox();f=gYi(p.name,f,m,C,s),S.remove(),w.remove(),_.remove()}),J3n(h,Nae,!1),A1.showBranches&&pYi(h,u),fYi(h,Nae),J3n(h,Nae,!0),Vo.insertTitle(h,"gitTitleText",A1.titleTopMargin??0,o.getDiagramTitle()),TLn(void 0,h,A1.diagramPadding,A1.useMaxWidth)},"draw"),bYi={draw:mYi},yYi=X(e=>` .commit-id, .commit-msg, .branch-label { fill: lightgrey; color: lightgrey; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-family: var(--mermaid-font-family); } ${[0,1,2,3,4,5,6,7].map(t=>` .branch-label${t} { fill: ${e["gitBranchLabel"+t]}; } .commit${t} { stroke: ${e["git"+t]}; fill: ${e["git"+t]}; } .commit-highlight${t} { stroke: ${e["gitInv"+t]}; fill: ${e["gitInv"+t]}; } .label${t} { fill: ${e["git"+t]}; } .arrow${t} { stroke: ${e["git"+t]}; } `).join(` `)} .branch { stroke-width: 1; stroke: ${e.lineColor}; stroke-dasharray: 2; } .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelColor};} .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelBackground}; opacity: 0.5; } .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};} .tag-label-bkg { fill: ${e.tagLabelBackground}; stroke: ${e.tagLabelBorder}; } .tag-hole { fill: ${e.textColor}; } .commit-merge { stroke: ${e.primaryColor}; fill: ${e.primaryColor}; } .commit-reverse { stroke: ${e.primaryColor}; fill: ${e.primaryColor}; stroke-width: 3; } .commit-highlight-outer { } .commit-highlight-inner { stroke: ${e.primaryColor}; fill: ${e.primaryColor}; } .arrow { stroke-width: 8; stroke-linecap: round; fill: none} .gitTitleText { text-anchor: middle; font-size: 18px; fill: ${e.textColor}; } `,"getStyles"),vYi=yYi,_Yi={parser:QVi,db:YWn,renderer:bYi,styles:vYi};const wYi=Object.freeze(Object.defineProperty({__proto__:null,diagram:_Yi},Symbol.toStringTag,{value:"Module"}));var KWn={exports:{}};(function(e,t){(function(r,a){e.exports=a()})(ml,function(){var r="day";return function(a,s,o){var u=function(p){return p.add(4-p.isoWeekday(),r)},h=s.prototype;h.isoWeekYear=function(){return u(this).year()},h.isoWeek=function(p){if(!this.$utils().u(p))return this.add(7*(p-this.isoWeek()),r);var m,b,_,w,S=u(this),C=(m=this.isoWeekYear(),b=this.$u,_=(b?o.utc:o)().year(m).startOf("year"),w=4-_.isoWeekday(),_.isoWeekday()>4&&(w+=7),_.add(w,r));return S.diff(C,"week")+1},h.isoWeekday=function(p){return this.$utils().u(p)?this.day()||7:this.day(this.day()%7?p:p-7)};var f=h.startOf;h.startOf=function(p,m){var b=this.$utils(),_=!!b.u(m)||m;return b.p(p)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):f.bind(this)(p,m)}}})})(KWn);var EYi=KWn.exports;const XWn=O1(EYi);var QWn={exports:{}};(function(e,t){(function(r,a){e.exports=a()})(ml,function(){var r,a,s=1e3,o=6e4,u=36e5,h=864e5,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p=31536e6,m=2628e6,b=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,_={years:p,months:m,days:h,hours:u,minutes:o,seconds:s,milliseconds:1,weeks:6048e5},w=function(M){return M instanceof L},S=function(M,F,U){return new L(M,U,F.$l)},C=function(M){return a.p(M)+"s"},A=function(M){return M<0},k=function(M){return A(M)?Math.ceil(M):Math.floor(M)},I=function(M){return Math.abs(M)},N=function(M,F){return M?A(M)?{negative:!0,format:""+I(M)+F}:{negative:!1,format:""+M+F}:{negative:!1,format:""}},L=function(){function M(U,$,G){var B=this;if(this.$d={},this.$l=G,U===void 0&&(this.$ms=0,this.parseFromMilliseconds()),$)return S(U*_[C($)],this);if(typeof U=="number")return this.$ms=U,this.parseFromMilliseconds(),this;if(typeof U=="object")return Object.keys(U).forEach(function(Y){B.$d[C(Y)]=U[Y]}),this.calMilliseconds(),this;if(typeof U=="string"){var Z=U.match(b);if(Z){var z=Z.slice(2).map(function(Y){return Y!=null?Number(Y):0});return this.$d.years=z[0],this.$d.months=z[1],this.$d.weeks=z[2],this.$d.days=z[3],this.$d.hours=z[4],this.$d.minutes=z[5],this.$d.seconds=z[6],this.calMilliseconds(),this}}return this}var F=M.prototype;return F.calMilliseconds=function(){var U=this;this.$ms=Object.keys(this.$d).reduce(function($,G){return $+(U.$d[G]||0)*_[G]},0)},F.parseFromMilliseconds=function(){var U=this.$ms;this.$d.years=k(U/p),U%=p,this.$d.months=k(U/m),U%=m,this.$d.days=k(U/h),U%=h,this.$d.hours=k(U/u),U%=u,this.$d.minutes=k(U/o),U%=o,this.$d.seconds=k(U/s),U%=s,this.$d.milliseconds=U},F.toISOString=function(){var U=N(this.$d.years,"Y"),$=N(this.$d.months,"M"),G=+this.$d.days||0;this.$d.weeks&&(G+=7*this.$d.weeks);var B=N(G,"D"),Z=N(this.$d.hours,"H"),z=N(this.$d.minutes,"M"),Y=this.$d.seconds||0;this.$d.milliseconds&&(Y+=this.$d.milliseconds/1e3,Y=Math.round(1e3*Y)/1e3);var W=N(Y,"S"),Q=U.negative||$.negative||B.negative||Z.negative||z.negative||W.negative,V=Z.format||z.format||W.format?"T":"",j=(Q?"-":"")+"P"+U.format+$.format+B.format+V+Z.format+z.format+W.format;return j==="P"||j==="-P"?"P0D":j},F.toJSON=function(){return this.toISOString()},F.format=function(U){var $=U||"YYYY-MM-DDTHH:mm:ss",G={Y:this.$d.years,YY:a.s(this.$d.years,2,"0"),YYYY:a.s(this.$d.years,4,"0"),M:this.$d.months,MM:a.s(this.$d.months,2,"0"),D:this.$d.days,DD:a.s(this.$d.days,2,"0"),H:this.$d.hours,HH:a.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:a.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:a.s(this.$d.seconds,2,"0"),SSS:a.s(this.$d.milliseconds,3,"0")};return $.replace(f,function(B,Z){return Z||String(G[B])})},F.as=function(U){return this.$ms/_[C(U)]},F.get=function(U){var $=this.$ms,G=C(U);return G==="milliseconds"?$%=1e3:$=G==="weeks"?k($/_[G]):this.$d[G],$||0},F.add=function(U,$,G){var B;return B=$?U*_[C($)]:w(U)?U.$ms:S(U,this).$ms,S(this.$ms+B*(G?-1:1),this)},F.subtract=function(U,$){return this.add(U,$,!0)},F.locale=function(U){var $=this.clone();return $.$l=U,$},F.clone=function(){return S(this.$ms,this)},F.humanize=function(U){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!U)},F.valueOf=function(){return this.asMilliseconds()},F.milliseconds=function(){return this.get("milliseconds")},F.asMilliseconds=function(){return this.as("milliseconds")},F.seconds=function(){return this.get("seconds")},F.asSeconds=function(){return this.as("seconds")},F.minutes=function(){return this.get("minutes")},F.asMinutes=function(){return this.as("minutes")},F.hours=function(){return this.get("hours")},F.asHours=function(){return this.as("hours")},F.days=function(){return this.get("days")},F.asDays=function(){return this.as("days")},F.weeks=function(){return this.get("weeks")},F.asWeeks=function(){return this.as("weeks")},F.months=function(){return this.get("months")},F.asMonths=function(){return this.as("months")},F.years=function(){return this.get("years")},F.asYears=function(){return this.as("years")},M}(),P=function(M,F,U){return M.add(F.years()*U,"y").add(F.months()*U,"M").add(F.days()*U,"d").add(F.hours()*U,"h").add(F.minutes()*U,"m").add(F.seconds()*U,"s").add(F.milliseconds()*U,"ms")};return function(M,F,U){r=U,a=U().$utils(),U.duration=function(B,Z){var z=U.locale();return S(B,{$l:z},Z)},U.isDuration=w;var $=F.prototype.add,G=F.prototype.subtract;F.prototype.add=function(B,Z){return w(B)?P(this,B,1):$.bind(this)(B,Z)},F.prototype.subtract=function(B,Z){return w(B)?P(this,B,-1):G.bind(this)(B,Z)}}})})(QWn);var xYi=QWn.exports;const SYi=O1(xYi);var mut=function(){var e=X(function(z,Y,W,Q){for(W=W||{},Q=z.length;Q--;W[z[Q]]=Y);return W},"o"),t=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],r=[1,26],a=[1,27],s=[1,28],o=[1,29],u=[1,30],h=[1,31],f=[1,32],p=[1,33],m=[1,34],b=[1,9],_=[1,10],w=[1,11],S=[1,12],C=[1,13],A=[1,14],k=[1,15],I=[1,16],N=[1,19],L=[1,20],P=[1,21],M=[1,22],F=[1,23],U=[1,25],$=[1,35],G={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:X(function(Y,W,Q,V,j,ee,te){var ne=ee.length-1;switch(j){case 1:return ee[ne-1];case 2:this.$=[];break;case 3:ee[ne-1].push(ee[ne]),this.$=ee[ne-1];break;case 4:case 5:this.$=ee[ne];break;case 6:case 7:this.$=[];break;case 8:V.setWeekday("monday");break;case 9:V.setWeekday("tuesday");break;case 10:V.setWeekday("wednesday");break;case 11:V.setWeekday("thursday");break;case 12:V.setWeekday("friday");break;case 13:V.setWeekday("saturday");break;case 14:V.setWeekday("sunday");break;case 15:V.setWeekend("friday");break;case 16:V.setWeekend("saturday");break;case 17:V.setDateFormat(ee[ne].substr(11)),this.$=ee[ne].substr(11);break;case 18:V.enableInclusiveEndDates(),this.$=ee[ne].substr(18);break;case 19:V.TopAxis(),this.$=ee[ne].substr(8);break;case 20:V.setAxisFormat(ee[ne].substr(11)),this.$=ee[ne].substr(11);break;case 21:V.setTickInterval(ee[ne].substr(13)),this.$=ee[ne].substr(13);break;case 22:V.setExcludes(ee[ne].substr(9)),this.$=ee[ne].substr(9);break;case 23:V.setIncludes(ee[ne].substr(9)),this.$=ee[ne].substr(9);break;case 24:V.setTodayMarker(ee[ne].substr(12)),this.$=ee[ne].substr(12);break;case 27:V.setDiagramTitle(ee[ne].substr(6)),this.$=ee[ne].substr(6);break;case 28:this.$=ee[ne].trim(),V.setAccTitle(this.$);break;case 29:case 30:this.$=ee[ne].trim(),V.setAccDescription(this.$);break;case 31:V.addSection(ee[ne].substr(8)),this.$=ee[ne].substr(8);break;case 33:V.addTask(ee[ne-1],ee[ne]),this.$="task";break;case 34:this.$=ee[ne-1],V.setClickEvent(ee[ne-1],ee[ne],null);break;case 35:this.$=ee[ne-2],V.setClickEvent(ee[ne-2],ee[ne-1],ee[ne]);break;case 36:this.$=ee[ne-2],V.setClickEvent(ee[ne-2],ee[ne-1],null),V.setLink(ee[ne-2],ee[ne]);break;case 37:this.$=ee[ne-3],V.setClickEvent(ee[ne-3],ee[ne-2],ee[ne-1]),V.setLink(ee[ne-3],ee[ne]);break;case 38:this.$=ee[ne-2],V.setClickEvent(ee[ne-2],ee[ne],null),V.setLink(ee[ne-2],ee[ne-1]);break;case 39:this.$=ee[ne-3],V.setClickEvent(ee[ne-3],ee[ne-1],ee[ne]),V.setLink(ee[ne-3],ee[ne-2]);break;case 40:this.$=ee[ne-1],V.setLink(ee[ne-1],ee[ne]);break;case 41:case 47:this.$=ee[ne-1]+" "+ee[ne];break;case 42:case 43:case 45:this.$=ee[ne-2]+" "+ee[ne-1]+" "+ee[ne];break;case 44:case 46:this.$=ee[ne-3]+" "+ee[ne-2]+" "+ee[ne-1]+" "+ee[ne];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:a,14:s,15:o,16:u,17:h,18:f,19:18,20:p,21:m,22:b,23:_,24:w,25:S,26:C,27:A,28:k,29:I,30:N,31:L,33:P,35:M,36:F,37:24,38:U,40:$},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:r,13:a,14:s,15:o,16:u,17:h,18:f,19:18,20:p,21:m,22:b,23:_,24:w,25:S,26:C,27:A,28:k,29:I,30:N,31:L,33:P,35:M,36:F,37:24,38:U,40:$},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:X(function(Y,W){if(W.recoverable)this.trace(Y);else{var Q=new Error(Y);throw Q.hash=W,Q}},"parseError"),parse:X(function(Y){var W=this,Q=[0],V=[],j=[null],ee=[],te=this.table,ne="",se=0,ie=0,ge=2,ce=1,be=ee.slice.call(arguments,1),ve=Object.create(this.lexer),De={yy:{}};for(var ye in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ye)&&(De.yy[ye]=this.yy[ye]);ve.setInput(Y,De.yy),De.yy.lexer=ve,De.yy.parser=this,typeof ve.yylloc>"u"&&(ve.yylloc={});var Ee=ve.yylloc;ee.push(Ee);var he=ve.options&&ve.options.ranges;typeof De.yy.parseError=="function"?this.parseError=De.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function we(Je){Q.length=Q.length-2*Je,j.length=j.length-Je,ee.length=ee.length-Je}X(we,"popStack");function Ce(){var Je;return Je=V.pop()||ve.lex()||ce,typeof Je!="number"&&(Je instanceof Array&&(V=Je,Je=V.pop()),Je=W.symbols_[Je]||Je),Je}X(Ce,"lex");for(var Ie,Le,Fe,Ve,Oe={},Dt,ot,sn,Kt;;){if(Le=Q[Q.length-1],this.defaultActions[Le]?Fe=this.defaultActions[Le]:((Ie===null||typeof Ie>"u")&&(Ie=Ce()),Fe=te[Le]&&te[Le][Ie]),typeof Fe>"u"||!Fe.length||!Fe[0]){var Ft="";Kt=[];for(Dt in te[Le])this.terminals_[Dt]&&Dt>ge&&Kt.push("'"+this.terminals_[Dt]+"'");ve.showPosition?Ft="Parse error on line "+(se+1)+`: `+ve.showPosition()+` Expecting `+Kt.join(", ")+", got '"+(this.terminals_[Ie]||Ie)+"'":Ft="Parse error on line "+(se+1)+": Unexpected "+(Ie==ce?"end of input":"'"+(this.terminals_[Ie]||Ie)+"'"),this.parseError(Ft,{text:ve.match,token:this.terminals_[Ie]||Ie,line:ve.yylineno,loc:Ee,expected:Kt})}if(Fe[0]instanceof Array&&Fe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Le+", token: "+Ie);switch(Fe[0]){case 1:Q.push(Ie),j.push(ve.yytext),ee.push(ve.yylloc),Q.push(Fe[1]),Ie=null,ie=ve.yyleng,ne=ve.yytext,se=ve.yylineno,Ee=ve.yylloc;break;case 2:if(ot=this.productions_[Fe[1]][1],Oe.$=j[j.length-ot],Oe._$={first_line:ee[ee.length-(ot||1)].first_line,last_line:ee[ee.length-1].last_line,first_column:ee[ee.length-(ot||1)].first_column,last_column:ee[ee.length-1].last_column},he&&(Oe._$.range=[ee[ee.length-(ot||1)].range[0],ee[ee.length-1].range[1]]),Ve=this.performAction.apply(Oe,[ne,ie,se,De.yy,Fe[1],j,ee].concat(be)),typeof Ve<"u")return Ve;ot&&(Q=Q.slice(0,-1*ot*2),j=j.slice(0,-1*ot),ee=ee.slice(0,-1*ot)),Q.push(this.productions_[Fe[1]][0]),j.push(Oe.$),ee.push(Oe._$),sn=te[Q[Q.length-2]][Q[Q.length-1]],Q.push(sn);break;case 3:return!0}}return!0},"parse")},B=function(){var z={EOF:1,parseError:X(function(W,Q){if(this.yy.parser)this.yy.parser.parseError(W,Q);else throw new Error(W)},"parseError"),setInput:X(function(Y,W){return this.yy=W||this.yy||{},this._input=Y,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:X(function(){var Y=this._input[0];this.yytext+=Y,this.yyleng++,this.offset++,this.match+=Y,this.matched+=Y;var W=Y.match(/(?:\r\n?|\n).*/g);return W?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Y},"input"),unput:X(function(Y){var W=Y.length,Q=Y.split(/(?:\r\n?|\n)/g);this._input=Y+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-W),this.offset-=W;var V=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Q.length-1&&(this.yylineno-=Q.length-1);var j=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Q?(Q.length===V.length?this.yylloc.first_column:0)+V[V.length-Q.length].length-Q[0].length:this.yylloc.first_column-W},this.options.ranges&&(this.yylloc.range=[j[0],j[0]+this.yyleng-W]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(Y){this.unput(this.match.slice(Y))},"less"),pastInput:X(function(){var Y=this.matched.substr(0,this.matched.length-this.match.length);return(Y.length>20?"...":"")+Y.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var Y=this.match;return Y.length<20&&(Y+=this._input.substr(0,20-Y.length)),(Y.substr(0,20)+(Y.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var Y=this.pastInput(),W=new Array(Y.length+1).join("-");return Y+this.upcomingInput()+` `+W+"^"},"showPosition"),test_match:X(function(Y,W){var Q,V,j;if(this.options.backtrack_lexer&&(j={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(j.yylloc.range=this.yylloc.range.slice(0))),V=Y[0].match(/(?:\r\n?|\n).*/g),V&&(this.yylineno+=V.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:V?V[V.length-1].length-V[V.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Y[0].length},this.yytext+=Y[0],this.match+=Y[0],this.matches=Y,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Y[0].length),this.matched+=Y[0],Q=this.performAction.call(this,this.yy,this,W,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Q)return Q;if(this._backtrack){for(var ee in j)this[ee]=j[ee];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Y,W,Q,V;this._more||(this.yytext="",this.match="");for(var j=this._currentRules(),ee=0;eeW[0].length)){if(W=Q,V=ee,this.options.backtrack_lexer){if(Y=this.test_match(Q,j[ee]),Y!==!1)return Y;if(this._backtrack){W=!1;continue}else return!1}else if(!this.options.flex)break}return W?(Y=this.test_match(W,j[V]),Y!==!1?Y:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var W=this.next();return W||this.lex()},"lex"),begin:X(function(W){this.conditionStack.push(W)},"begin"),popState:X(function(){var W=this.conditionStack.length-1;return W>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(W){return W=this.conditionStack.length-1-Math.abs(W||0),W>=0?this.conditionStack[W]:"INITIAL"},"topState"),pushState:X(function(W){this.begin(W)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function(W,Q,V,j){switch(V){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return z}();G.lexer=B;function Z(){this.yy={}}return X(Z,"Parser"),Z.prototype=G,G.Parser=Z,new Z}();mut.parser=mut;var TYi=mut;Fc.extend(XWn);Fc.extend(FAn);Fc.extend(PAn);var eTn={friday:5,saturday:6},tA="",Lmt="",Dmt=void 0,Mmt="",Yce=[],jce=[],Pmt=new Map,Bmt=[],OTe=[],Zj="",Fmt="",ZWn=["active","done","crit","milestone","vert"],$mt=[],Wce=!1,Umt=!1,zmt="sunday",LTe="saturday",but=0,CYi=X(function(){Bmt=[],OTe=[],Zj="",$mt=[],Wxe=0,vut=void 0,Kxe=void 0,mp=[],tA="",Lmt="",Fmt="",Dmt=void 0,Mmt="",Yce=[],jce=[],Wce=!1,Umt=!1,but=0,Pmt=new Map,M1(),zmt="sunday",LTe="saturday"},"clear"),AYi=X(function(e){Lmt=e},"setAxisFormat"),kYi=X(function(){return Lmt},"getAxisFormat"),RYi=X(function(e){Dmt=e},"setTickInterval"),IYi=X(function(){return Dmt},"getTickInterval"),NYi=X(function(e){Mmt=e},"setTodayMarker"),OYi=X(function(){return Mmt},"getTodayMarker"),LYi=X(function(e){tA=e},"setDateFormat"),DYi=X(function(){Wce=!0},"enableInclusiveEndDates"),MYi=X(function(){return Wce},"endDatesAreInclusive"),PYi=X(function(){Umt=!0},"enableTopAxis"),BYi=X(function(){return Umt},"topAxisEnabled"),FYi=X(function(e){Fmt=e},"setDisplayMode"),$Yi=X(function(){return Fmt},"getDisplayMode"),UYi=X(function(){return tA},"getDateFormat"),zYi=X(function(e){Yce=e.toLowerCase().split(/[\s,]+/)},"setIncludes"),GYi=X(function(){return Yce},"getIncludes"),qYi=X(function(e){jce=e.toLowerCase().split(/[\s,]+/)},"setExcludes"),HYi=X(function(){return jce},"getExcludes"),VYi=X(function(){return Pmt},"getLinks"),YYi=X(function(e){Zj=e,Bmt.push(e)},"addSection"),jYi=X(function(){return Bmt},"getSections"),WYi=X(function(){let e=tTn();const t=10;let r=0;for(;!e&&r{const f=h.trim();return f==="x"||f==="X"},"isTimestampFormat")(t)&&/^\d+$/.test(r))return new Date(Number(r));const o=/^after\s+(?[\d\w- ]+)/.exec(r);if(o!==null){let h=null;for(const p of o.groups.ids.split(" ")){let m=X$(p);m!==void 0&&(!h||m.endTime>h.endTime)&&(h=m)}if(h)return h.endTime;const f=new Date;return f.setHours(0,0,0,0),f}let u=Fc(r,t.trim(),!0);if(u.isValid())return u.toDate();{it.debug("Invalid date:"+r),it.debug("With date format:"+t.trim());const h=new Date(r);if(h===void 0||isNaN(h.getTime())||h.getFullYear()<-1e4||h.getFullYear()>1e4)throw new Error("Invalid date:"+r);return h}},"getStartDate"),tKn=X(function(e){const t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t!==null?[Number.parseFloat(t[1]),t[2]]:[NaN,"ms"]},"parseDuration"),nKn=X(function(e,t,r,a=!1){r=r.trim();const o=/^until\s+(?[\d\w- ]+)/.exec(r);if(o!==null){let m=null;for(const _ of o.groups.ids.split(" ")){let w=X$(_);w!==void 0&&(!m||w.startTime{window.open(r,"_self")}),Pmt.set(a,r))}),iKn(e,"clickable")},"setLink"),iKn=X(function(e,t){e.split(",").forEach(function(r){let a=X$(r);a!==void 0&&a.classes.push(t)})},"setClass"),iji=X(function(e,t,r){if(nn().securityLevel!=="loose"||t===void 0)return;let a=[];if(typeof r=="string"){a=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o{Vo.runFunc(t,...a)})},"setClickFun"),aKn=X(function(e,t){$mt.push(function(){const r=document.querySelector(`[id="${e}"]`);r!==null&&r.addEventListener("click",function(){t()})},function(){const r=document.querySelector(`[id="${e}-text"]`);r!==null&&r.addEventListener("click",function(){t()})})},"pushFun"),aji=X(function(e,t,r){e.split(",").forEach(function(a){iji(a,t,r)}),iKn(e,"clickable")},"setClickEvent"),sji=X(function(e){$mt.forEach(function(t){t(e)})},"bindFunctions"),oji={getConfig:X(()=>nn().gantt,"getConfig"),clear:CYi,setDateFormat:LYi,getDateFormat:UYi,enableInclusiveEndDates:DYi,endDatesAreInclusive:MYi,enableTopAxis:PYi,topAxisEnabled:BYi,setAxisFormat:AYi,getAxisFormat:kYi,setTickInterval:RYi,getTickInterval:IYi,setTodayMarker:NYi,getTodayMarker:OYi,setAccTitle:N1,getAccTitle:Mp,setDiagramTitle:Og,getDiagramTitle:P1,setDisplayMode:FYi,getDisplayMode:$Yi,setAccDescription:Pp,getAccDescription:Bp,addSection:YYi,getSections:jYi,getTasks:WYi,addTask:tji,findTaskById:X$,addTaskOrg:nji,setIncludes:zYi,getIncludes:GYi,setExcludes:qYi,getExcludes:HYi,setClickEvent:aji,setLink:rji,getLinks:VYi,bindFunctions:sji,parseDuration:tKn,isInvalidDate:JWn,setWeekday:KYi,getWeekday:XYi,setWeekend:QYi};function Gmt(e,t,r){let a=!0;for(;a;)a=!1,r.forEach(function(s){const o="^\\s*"+s+"\\s*$",u=new RegExp(o);e[0].match(u)&&(t[s]=!0,e.shift(1),a=!0)})}X(Gmt,"getTaskTags");Fc.extend(SYi);var lji=X(function(){it.debug("Something is calling, setConf, remove the call")},"setConf"),nTn={monday:Rj,tuesday:r1t,wednesday:i1t,thursday:YO,friday:a1t,saturday:s1t,sunday:MW},cji=X((e,t)=>{let r=[...e].map(()=>-1/0),a=[...e].sort((o,u)=>o.startTime-u.startTime||o.order-u.order),s=0;for(const o of a)for(let u=0;u=r[u]){r[u]=o.endTime,o.order=u+t,u>s&&(s=u);break}return s},"getMaxIntersections"),Z6,Qit=1e4,uji=X(function(e,t,r,a){const s=nn().gantt,o=nn().securityLevel;let u;o==="sandbox"&&(u=gn("#i"+t));const h=gn(o==="sandbox"?u.nodes()[0].contentDocument.body:"body"),f=o==="sandbox"?u.nodes()[0].contentDocument:document,p=f.getElementById(t);Z6=p.parentElement.offsetWidth,Z6===void 0&&(Z6=1200),s.useWidth!==void 0&&(Z6=s.useWidth);const m=a.db.getTasks();let b=[];for(const $ of m)b.push($.type);b=U(b);const _={};let w=2*s.topPadding;if(a.db.getDisplayMode()==="compact"||s.displayMode==="compact"){const $={};for(const B of m)$[B.section]===void 0?$[B.section]=[B]:$[B.section].push(B);let G=0;for(const B of Object.keys($)){const Z=cji($[B],G)+1;G+=Z,w+=Z*(s.barHeight+s.barGap),_[B]=Z}}else{w+=m.length*(s.barHeight+s.barGap);for(const $ of b)_[$]=m.filter(G=>G.type===$).length}p.setAttribute("viewBox","0 0 "+Z6+" "+w);const S=h.select(`[id="${t}"]`),C=xDn().domain([ALn(m,function($){return $.startTime}),CLn(m,function($){return $.endTime})]).rangeRound([0,Z6-s.leftPadding-s.rightPadding]);function A($,G){const B=$.startTime,Z=G.startTime;let z=0;return B>Z?z=1:Bne.vert===se.vert?0:ne.vert?1:-1);const V=[...new Set($.map(ne=>ne.order))].map(ne=>$.find(se=>se.order===ne));S.append("g").selectAll("rect").data(V).enter().append("rect").attr("x",0).attr("y",function(ne,se){return se=ne.order,se*G+B-2}).attr("width",function(){return W-s.rightPadding/2}).attr("height",G).attr("class",function(ne){for(const[se,ie]of b.entries())if(ne.type===ie)return"section section"+se%s.numberSectionStyles;return"section section0"}).enter();const j=S.append("g").selectAll("rect").data($).enter(),ee=a.db.getLinks();if(j.append("rect").attr("id",function(ne){return ne.id}).attr("rx",3).attr("ry",3).attr("x",function(ne){return ne.milestone?C(ne.startTime)+Z+.5*(C(ne.endTime)-C(ne.startTime))-.5*z:C(ne.startTime)+Z}).attr("y",function(ne,se){return se=ne.order,ne.vert?s.gridLineStartPadding:se*G+B}).attr("width",function(ne){return ne.milestone?z:ne.vert?.08*z:C(ne.renderEndTime||ne.endTime)-C(ne.startTime)}).attr("height",function(ne){return ne.vert?m.length*(s.barHeight+s.barGap)+s.barHeight*2:z}).attr("transform-origin",function(ne,se){return se=ne.order,(C(ne.startTime)+Z+.5*(C(ne.endTime)-C(ne.startTime))).toString()+"px "+(se*G+B+.5*z).toString()+"px"}).attr("class",function(ne){const se="task";let ie="";ne.classes.length>0&&(ie=ne.classes.join(" "));let ge=0;for(const[be,ve]of b.entries())ne.type===ve&&(ge=be%s.numberSectionStyles);let ce="";return ne.active?ne.crit?ce+=" activeCrit":ce=" active":ne.done?ne.crit?ce=" doneCrit":ce=" done":ne.crit&&(ce+=" crit"),ce.length===0&&(ce=" task"),ne.milestone&&(ce=" milestone "+ce),ne.vert&&(ce=" vert "+ce),ce+=ge,ce+=" "+ie,se+ce}),j.append("text").attr("id",function(ne){return ne.id+"-text"}).text(function(ne){return ne.task}).attr("font-size",s.fontSize).attr("x",function(ne){let se=C(ne.startTime),ie=C(ne.renderEndTime||ne.endTime);if(ne.milestone&&(se+=.5*(C(ne.endTime)-C(ne.startTime))-.5*z,ie=se+z),ne.vert)return C(ne.startTime)+Z;const ge=this.getBBox().width;return ge>ie-se?ie+ge+1.5*s.leftPadding>W?se+Z-5:ie+Z+5:(ie-se)/2+se+Z}).attr("y",function(ne,se){return ne.vert?s.gridLineStartPadding+m.length*(s.barHeight+s.barGap)+60:(se=ne.order,se*G+s.barHeight/2+(s.fontSize/2-2)+B)}).attr("text-height",z).attr("class",function(ne){const se=C(ne.startTime);let ie=C(ne.endTime);ne.milestone&&(ie=se+z);const ge=this.getBBox().width;let ce="";ne.classes.length>0&&(ce=ne.classes.join(" "));let be=0;for(const[De,ye]of b.entries())ne.type===ye&&(be=De%s.numberSectionStyles);let ve="";return ne.active&&(ne.crit?ve="activeCritText"+be:ve="activeText"+be),ne.done?ne.crit?ve=ve+" doneCritText"+be:ve=ve+" doneText"+be:ne.crit&&(ve=ve+" critText"+be),ne.milestone&&(ve+=" milestoneText"),ne.vert&&(ve+=" vertText"),ge>ie-se?ie+ge+1.5*s.leftPadding>W?ce+" taskTextOutsideLeft taskTextOutside"+be+" "+ve:ce+" taskTextOutsideRight taskTextOutside"+be+" "+ve+" width-"+ge:ce+" taskText taskText"+be+" "+ve+" width-"+ge}),nn().securityLevel==="sandbox"){let ne;ne=gn("#i"+t);const se=ne.nodes()[0].contentDocument;j.filter(function(ie){return ee.has(ie.id)}).each(function(ie){var ge=se.querySelector("#"+ie.id),ce=se.querySelector("#"+ie.id+"-text");const be=ge.parentNode;var ve=se.createElement("a");ve.setAttribute("xlink:href",ee.get(ie.id)),ve.setAttribute("target","_top"),be.appendChild(ve),ve.appendChild(ge),ve.appendChild(ce)})}}X(I,"drawRects");function N($,G,B,Z,z,Y,W,Q){if(W.length===0&&Q.length===0)return;let V,j;for(const{startTime:ge,endTime:ce}of Y)(V===void 0||gej)&&(j=ce);if(!V||!j)return;if(Fc(j).diff(Fc(V),"year")>5){it.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const ee=a.db.getDateFormat(),te=[];let ne=null,se=Fc(V);for(;se.valueOf()<=j;)a.db.isInvalidDate(se,ee,W,Q)?ne?ne.end=se:ne={start:se,end:se}:ne&&(te.push(ne),ne=null),se=se.add(1,"d");S.append("g").selectAll("rect").data(te).enter().append("rect").attr("id",ge=>"exclude-"+ge.start.format("YYYY-MM-DD")).attr("x",ge=>C(ge.start.startOf("day"))+B).attr("y",s.gridLineStartPadding).attr("width",ge=>C(ge.end.endOf("day"))-C(ge.start.startOf("day"))).attr("height",z-G-s.gridLineStartPadding).attr("transform-origin",function(ge,ce){return(C(ge.start)+B+.5*(C(ge.end)-C(ge.start))).toString()+"px "+(ce*$+.5*z).toString()+"px"}).attr("class","exclude-range")}X(N,"drawExcludeDays");function L($,G,B,Z){if(B<=0||$>G)return 1/0;const z=G-$,Y=Fc.duration({[Z??"day"]:B}).asMilliseconds();return Y<=0?1/0:Math.ceil(z/Y)}X(L,"getEstimatedTickCount");function P($,G,B,Z){const z=a.db.getDateFormat(),Y=a.db.getAxisFormat();let W;Y?W=Y:z==="D"?W="%d":W=s.axisFormat??"%Y-%m-%d";let Q=ILn(C).tickSize(-Z+G+s.gridLineStartPadding).tickFormat(Nj(W));const j=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(a.db.getTickInterval()||s.tickInterval);if(j!==null){const ee=parseInt(j[1],10);if(isNaN(ee)||ee<=0)it.warn(`Invalid tick interval value: "${j[1]}". Skipping custom tick interval.`);else{const te=j[2],ne=a.db.getWeekday()||s.weekday,se=C.domain(),ie=se[0],ge=se[1],ce=L(ie,ge,ee,te);if(ce>Qit)it.warn(`The tick interval "${ee}${te}" would generate ${ce} ticks, which exceeds the maximum allowed (${Qit}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(te){case"millisecond":Q.ticks(VO.every(ee));break;case"second":Q.ticks(WC.every(ee));break;case"minute":Q.ticks(DF.every(ee));break;case"hour":Q.ticks(MF.every(ee));break;case"day":Q.ticks(tR.every(ee));break;case"week":Q.ticks(nTn[ne].every(ee));break;case"month":Q.ticks(PF.every(ee));break}}}if(S.append("g").attr("class","grid").attr("transform","translate("+$+", "+(Z-50)+")").call(Q).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),a.db.topAxisEnabled()||s.topAxis){let ee=RLn(C).tickSize(-Z+G+s.gridLineStartPadding).tickFormat(Nj(W));if(j!==null){const te=parseInt(j[1],10);if(isNaN(te)||te<=0)it.warn(`Invalid tick interval value: "${j[1]}". Skipping custom tick interval.`);else{const ne=j[2],se=a.db.getWeekday()||s.weekday,ie=C.domain(),ge=ie[0],ce=ie[1];if(L(ge,ce,te,ne)<=Qit)switch(ne){case"millisecond":ee.ticks(VO.every(te));break;case"second":ee.ticks(WC.every(te));break;case"minute":ee.ticks(DF.every(te));break;case"hour":ee.ticks(MF.every(te));break;case"day":ee.ticks(tR.every(te));break;case"week":ee.ticks(nTn[se].every(te));break;case"month":ee.ticks(PF.every(te));break}}}S.append("g").attr("class","grid").attr("transform","translate("+$+", "+G+")").call(ee).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}X(P,"makeGrid");function M($,G){let B=0;const Z=Object.keys(_).map(z=>[z,_[z]]);S.append("g").selectAll("text").data(Z).enter().append(function(z){const Y=z[0].split(Ti.lineBreakRegex),W=-(Y.length-1)/2,Q=f.createElementNS("http://www.w3.org/2000/svg","text");Q.setAttribute("dy",W+"em");for(const[V,j]of Y.entries()){const ee=f.createElementNS("http://www.w3.org/2000/svg","tspan");ee.setAttribute("alignment-baseline","central"),ee.setAttribute("x","10"),V>0&&ee.setAttribute("dy","1em"),ee.textContent=j,Q.appendChild(ee)}return Q}).attr("x",10).attr("y",function(z,Y){if(Y>0)for(let W=0;W` .mermaid-main-font { font-family: ${e.fontFamily}; } .exclude-range { fill: ${e.excludeBkgColor}; } .section { stroke: none; opacity: 0.2; } .section0 { fill: ${e.sectionBkgColor}; } .section2 { fill: ${e.sectionBkgColor2}; } .section1, .section3 { fill: ${e.altSectionBkgColor}; opacity: 0.2; } .sectionTitle0 { fill: ${e.titleColor}; } .sectionTitle1 { fill: ${e.titleColor}; } .sectionTitle2 { fill: ${e.titleColor}; } .sectionTitle3 { fill: ${e.titleColor}; } .sectionTitle { text-anchor: start; font-family: ${e.fontFamily}; } /* Grid and axis */ .grid .tick { stroke: ${e.gridColor}; opacity: 0.8; shape-rendering: crispEdges; } .grid .tick text { font-family: ${e.fontFamily}; fill: ${e.textColor}; } .grid path { stroke-width: 0; } /* Today line */ .today { fill: none; stroke: ${e.todayLineColor}; stroke-width: 2px; } /* Task styling */ /* Default task */ .task { stroke-width: 2; } .taskText { text-anchor: middle; font-family: ${e.fontFamily}; } .taskTextOutsideRight { fill: ${e.taskTextDarkColor}; text-anchor: start; font-family: ${e.fontFamily}; } .taskTextOutsideLeft { fill: ${e.taskTextDarkColor}; text-anchor: end; } /* Special case clickable */ .task.clickable { cursor: pointer; } .taskText.clickable { cursor: pointer; fill: ${e.taskTextClickableColor} !important; font-weight: bold; } .taskTextOutsideLeft.clickable { cursor: pointer; fill: ${e.taskTextClickableColor} !important; font-weight: bold; } .taskTextOutsideRight.clickable { cursor: pointer; fill: ${e.taskTextClickableColor} !important; font-weight: bold; } /* Specific task settings for the sections*/ .taskText0, .taskText1, .taskText2, .taskText3 { fill: ${e.taskTextColor}; } .task0, .task1, .task2, .task3 { fill: ${e.taskBkgColor}; stroke: ${e.taskBorderColor}; } .taskTextOutside0, .taskTextOutside2 { fill: ${e.taskTextOutsideColor}; } .taskTextOutside1, .taskTextOutside3 { fill: ${e.taskTextOutsideColor}; } /* Active task */ .active0, .active1, .active2, .active3 { fill: ${e.activeTaskBkgColor}; stroke: ${e.activeTaskBorderColor}; } .activeText0, .activeText1, .activeText2, .activeText3 { fill: ${e.taskTextDarkColor} !important; } /* Completed task */ .done0, .done1, .done2, .done3 { stroke: ${e.doneTaskBorderColor}; fill: ${e.doneTaskBkgColor}; stroke-width: 2; } .doneText0, .doneText1, .doneText2, .doneText3 { fill: ${e.taskTextDarkColor} !important; } /* Tasks on the critical line */ .crit0, .crit1, .crit2, .crit3 { stroke: ${e.critBorderColor}; fill: ${e.critBkgColor}; stroke-width: 2; } .activeCrit0, .activeCrit1, .activeCrit2, .activeCrit3 { stroke: ${e.critBorderColor}; fill: ${e.activeTaskBkgColor}; stroke-width: 2; } .doneCrit0, .doneCrit1, .doneCrit2, .doneCrit3 { stroke: ${e.critBorderColor}; fill: ${e.doneTaskBkgColor}; stroke-width: 2; cursor: pointer; shape-rendering: crispEdges; } .milestone { transform: rotate(45deg) scale(0.8,0.8); } .milestoneText { font-style: italic; } .doneCritText0, .doneCritText1, .doneCritText2, .doneCritText3 { fill: ${e.taskTextDarkColor} !important; } .vert { stroke: ${e.vertLineColor}; } .vertText { font-size: 15px; text-anchor: middle; fill: ${e.vertLineColor} !important; } .activeCritText0, .activeCritText1, .activeCritText2, .activeCritText3 { fill: ${e.taskTextDarkColor} !important; } .titleText { text-anchor: middle; font-size: 18px; fill: ${e.titleColor||e.textColor}; font-family: ${e.fontFamily}; } `,"getStyles"),fji=dji,pji={parser:TYi,db:oji,renderer:hji,styles:fji};const gji=Object.freeze(Object.defineProperty({__proto__:null,diagram:pji},Symbol.toStringTag,{value:"Module"}));var mji={parse:X(async e=>{const t=await iL("info",e);it.debug(t)},"parse")},bji={version:fot.version+""},yji=X(()=>bji.version,"getVersion"),vji={getVersion:yji},_ji=X((e,t,r)=>{it.debug(`rendering info diagram `+e);const a=bR(t);yv(a,100,400,!0),a.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${r}`)},"draw"),wji={draw:_ji},Eji={parser:mji,db:vji,renderer:wji};const xji=Object.freeze(Object.defineProperty({__proto__:null,diagram:Eji},Symbol.toStringTag,{value:"Module"}));var Sji=Cc.pie,qmt={sections:new Map,showData:!1},DTe=qmt.sections,Hmt=qmt.showData,Tji=structuredClone(Sji),Cji=X(()=>structuredClone(Tji),"getConfig"),Aji=X(()=>{DTe=new Map,Hmt=qmt.showData,M1()},"clear"),kji=X(({label:e,value:t})=>{if(t<0)throw new Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);DTe.has(e)||(DTe.set(e,t),it.debug(`added new section: ${e}, with value: ${t}`))},"addSection"),Rji=X(()=>DTe,"getSections"),Iji=X(e=>{Hmt=e},"setShowData"),Nji=X(()=>Hmt,"getShowData"),sKn={getConfig:Cji,clear:Aji,setDiagramTitle:Og,getDiagramTitle:P1,setAccTitle:N1,getAccTitle:Mp,setAccDescription:Pp,getAccDescription:Bp,addSection:kji,getSections:Rji,setShowData:Iji,getShowData:Nji},Oji=X((e,t)=>{z$(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},"populateDb"),Lji={parse:X(async e=>{const t=await iL("pie",e);it.debug(t),Oji(t,sKn)},"parse")},Dji=X(e=>` .pieCircle{ stroke: ${e.pieStrokeColor}; stroke-width : ${e.pieStrokeWidth}; opacity : ${e.pieOpacity}; } .pieOuterCircle{ stroke: ${e.pieOuterStrokeColor}; stroke-width: ${e.pieOuterStrokeWidth}; fill: none; } .pieTitleText { text-anchor: middle; font-size: ${e.pieTitleTextSize}; fill: ${e.pieTitleTextColor}; font-family: ${e.fontFamily}; } .slice { font-family: ${e.fontFamily}; fill: ${e.pieSectionTextColor}; font-size:${e.pieSectionTextSize}; // fill: white; } .legend text { fill: ${e.pieLegendTextColor}; font-family: ${e.fontFamily}; font-size: ${e.pieLegendTextSize}; } `,"getStyles"),Mji=Dji,Pji=X(e=>{const t=[...e.values()].reduce((s,o)=>s+o,0),r=[...e.entries()].map(([s,o])=>({label:s,value:o})).filter(s=>s.value/t*100>=1).sort((s,o)=>o.value-s.value);return ADn().value(s=>s.value)(r)},"createPieArcs"),Bji=X((e,t,r,a)=>{it.debug(`rendering pie chart `+e);const s=a.db,o=nn(),u=cv(s.getConfig(),o.pie),h=40,f=18,p=4,m=450,b=m,_=bR(t),w=_.append("g");w.attr("transform","translate("+b/2+","+m/2+")");const{themeVariables:S}=o;let[C]=N$(S.pieOuterStrokeWidth);C??(C=2);const A=u.textPosition,k=Math.min(b,m)/2-h,I=_S().innerRadius(0).outerRadius(k),N=_S().innerRadius(k*A).outerRadius(k*A);w.append("circle").attr("cx",0).attr("cy",0).attr("r",k+C/2).attr("class","pieOuterCircle");const L=s.getSections(),P=Pji(L),M=[S.pie1,S.pie2,S.pie3,S.pie4,S.pie5,S.pie6,S.pie7,S.pie8,S.pie9,S.pie10,S.pie11,S.pie12];let F=0;L.forEach(Y=>{F+=Y});const U=P.filter(Y=>(Y.data.value/F*100).toFixed(0)!=="0"),$=cA(M);w.selectAll("mySlices").data(U).enter().append("path").attr("d",I).attr("fill",Y=>$(Y.data.label)).attr("class","pieCircle"),w.selectAll("mySlices").data(U).enter().append("text").text(Y=>(Y.data.value/F*100).toFixed(0)+"%").attr("transform",Y=>"translate("+N.centroid(Y)+")").style("text-anchor","middle").attr("class","slice"),w.append("text").text(s.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText");const G=[...L.entries()].map(([Y,W])=>({label:Y,value:W})),B=w.selectAll(".legend").data(G).enter().append("g").attr("class","legend").attr("transform",(Y,W)=>{const Q=f+p,V=Q*G.length/2,j=12*f,ee=W*Q-V;return"translate("+j+","+ee+")"});B.append("rect").attr("width",f).attr("height",f).style("fill",Y=>$(Y.label)).style("stroke",Y=>$(Y.label)),B.append("text").attr("x",f+p).attr("y",f-p).text(Y=>s.getShowData()?`${Y.label} [${Y.value}]`:Y.label);const Z=Math.max(...B.selectAll("text").nodes().map(Y=>(Y==null?void 0:Y.getBoundingClientRect().width)??0)),z=b+h+f+p+Z;_.attr("viewBox",`0 0 ${z} ${m}`),yv(_,m,z,u.useMaxWidth)},"draw"),Fji={draw:Bji},$ji={parser:Lji,db:sKn,renderer:Fji,styles:Mji};const Uji=Object.freeze(Object.defineProperty({__proto__:null,diagram:$ji},Symbol.toStringTag,{value:"Module"}));var _ut=function(){var e=X(function(Xe,fe,Qe,Ke){for(Qe=Qe||{},Ke=Xe.length;Ke--;Qe[Xe[Ke]]=fe);return Qe},"o"),t=[1,3],r=[1,4],a=[1,5],s=[1,6],o=[1,7],u=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],h=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],f=[55,56,57],p=[2,36],m=[1,37],b=[1,36],_=[1,38],w=[1,35],S=[1,43],C=[1,41],A=[1,14],k=[1,23],I=[1,18],N=[1,19],L=[1,20],P=[1,21],M=[1,22],F=[1,24],U=[1,25],$=[1,26],G=[1,27],B=[1,28],Z=[1,29],z=[1,32],Y=[1,33],W=[1,34],Q=[1,39],V=[1,40],j=[1,42],ee=[1,44],te=[1,62],ne=[1,61],se=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],ie=[1,65],ge=[1,66],ce=[1,67],be=[1,68],ve=[1,69],De=[1,70],ye=[1,71],Ee=[1,72],he=[1,73],we=[1,74],Ce=[1,75],Ie=[1,76],Le=[4,5,6,7,8,9,10,11,12,13,14,15,18],Fe=[1,90],Ve=[1,91],Oe=[1,92],Dt=[1,99],ot=[1,93],sn=[1,96],Kt=[1,94],Ft=[1,95],Je=[1,97],ht=[1,98],et=[1,102],qe=[10,55,56,57],He=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],Ge={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:X(function(fe,Qe,Ke,mt,lt,$t,Ut){var Jt=$t.length-1;switch(lt){case 23:this.$=$t[Jt];break;case 24:this.$=$t[Jt-1]+""+$t[Jt];break;case 26:this.$=$t[Jt-1]+$t[Jt];break;case 27:this.$=[$t[Jt].trim()];break;case 28:$t[Jt-2].push($t[Jt].trim()),this.$=$t[Jt-2];break;case 29:this.$=$t[Jt-4],mt.addClass($t[Jt-2],$t[Jt]);break;case 37:this.$=[];break;case 42:this.$=$t[Jt].trim(),mt.setDiagramTitle(this.$);break;case 43:this.$=$t[Jt].trim(),mt.setAccTitle(this.$);break;case 44:case 45:this.$=$t[Jt].trim(),mt.setAccDescription(this.$);break;case 46:mt.addSection($t[Jt].substr(8)),this.$=$t[Jt].substr(8);break;case 47:mt.addPoint($t[Jt-3],"",$t[Jt-1],$t[Jt],[]);break;case 48:mt.addPoint($t[Jt-4],$t[Jt-3],$t[Jt-1],$t[Jt],[]);break;case 49:mt.addPoint($t[Jt-4],"",$t[Jt-2],$t[Jt-1],$t[Jt]);break;case 50:mt.addPoint($t[Jt-5],$t[Jt-4],$t[Jt-2],$t[Jt-1],$t[Jt]);break;case 51:mt.setXAxisLeftText($t[Jt-2]),mt.setXAxisRightText($t[Jt]);break;case 52:$t[Jt-1].text+=" ⟶ ",mt.setXAxisLeftText($t[Jt-1]);break;case 53:mt.setXAxisLeftText($t[Jt]);break;case 54:mt.setYAxisBottomText($t[Jt-2]),mt.setYAxisTopText($t[Jt]);break;case 55:$t[Jt-1].text+=" ⟶ ",mt.setYAxisBottomText($t[Jt-1]);break;case 56:mt.setYAxisBottomText($t[Jt]);break;case 57:mt.setQuadrant1Text($t[Jt]);break;case 58:mt.setQuadrant2Text($t[Jt]);break;case 59:mt.setQuadrant3Text($t[Jt]);break;case 60:mt.setQuadrant4Text($t[Jt]);break;case 64:this.$={text:$t[Jt],type:"text"};break;case 65:this.$={text:$t[Jt-1].text+""+$t[Jt],type:$t[Jt-1].type};break;case 66:this.$={text:$t[Jt],type:"text"};break;case 67:this.$={text:$t[Jt],type:"markdown"};break;case 68:this.$=$t[Jt];break;case 69:this.$=$t[Jt-1]+""+$t[Jt];break}},"anonymous"),table:[{18:t,26:1,27:2,28:r,55:a,56:s,57:o},{1:[3]},{18:t,26:8,27:2,28:r,55:a,56:s,57:o},{18:t,26:9,27:2,28:r,55:a,56:s,57:o},e(u,[2,33],{29:10}),e(h,[2,61]),e(h,[2,62]),e(h,[2,63]),{1:[2,30]},{1:[2,31]},e(f,p,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:m,5:b,10:_,12:w,13:S,14:C,18:A,25:k,35:I,37:N,39:L,41:P,42:M,48:F,50:U,51:$,52:G,53:B,54:Z,60:z,61:Y,63:W,64:Q,65:V,66:j,67:ee}),e(u,[2,34]),{27:45,55:a,56:s,57:o},e(f,[2,37]),e(f,p,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:m,5:b,10:_,12:w,13:S,14:C,18:A,25:k,35:I,37:N,39:L,41:P,42:M,48:F,50:U,51:$,52:G,53:B,54:Z,60:z,61:Y,63:W,64:Q,65:V,66:j,67:ee}),e(f,[2,39]),e(f,[2,40]),e(f,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},e(f,[2,45]),e(f,[2,46]),{18:[1,50]},{4:m,5:b,10:_,12:w,13:S,14:C,43:51,58:31,60:z,61:Y,63:W,64:Q,65:V,66:j,67:ee},{4:m,5:b,10:_,12:w,13:S,14:C,43:52,58:31,60:z,61:Y,63:W,64:Q,65:V,66:j,67:ee},{4:m,5:b,10:_,12:w,13:S,14:C,43:53,58:31,60:z,61:Y,63:W,64:Q,65:V,66:j,67:ee},{4:m,5:b,10:_,12:w,13:S,14:C,43:54,58:31,60:z,61:Y,63:W,64:Q,65:V,66:j,67:ee},{4:m,5:b,10:_,12:w,13:S,14:C,43:55,58:31,60:z,61:Y,63:W,64:Q,65:V,66:j,67:ee},{4:m,5:b,10:_,12:w,13:S,14:C,43:56,58:31,60:z,61:Y,63:W,64:Q,65:V,66:j,67:ee},{4:m,5:b,8:te,10:_,12:w,13:S,14:C,18:ne,44:[1,57],47:[1,58],58:60,59:59,63:W,64:Q,65:V,66:j,67:ee},e(se,[2,64]),e(se,[2,66]),e(se,[2,67]),e(se,[2,70]),e(se,[2,71]),e(se,[2,72]),e(se,[2,73]),e(se,[2,74]),e(se,[2,75]),e(se,[2,76]),e(se,[2,77]),e(se,[2,78]),e(se,[2,79]),e(se,[2,80]),e(u,[2,35]),e(f,[2,38]),e(f,[2,42]),e(f,[2,43]),e(f,[2,44]),{3:64,4:ie,5:ge,6:ce,7:be,8:ve,9:De,10:ye,11:Ee,12:he,13:we,14:Ce,15:Ie,21:63},e(f,[2,53],{59:59,58:60,4:m,5:b,8:te,10:_,12:w,13:S,14:C,18:ne,49:[1,77],63:W,64:Q,65:V,66:j,67:ee}),e(f,[2,56],{59:59,58:60,4:m,5:b,8:te,10:_,12:w,13:S,14:C,18:ne,49:[1,78],63:W,64:Q,65:V,66:j,67:ee}),e(f,[2,57],{59:59,58:60,4:m,5:b,8:te,10:_,12:w,13:S,14:C,18:ne,63:W,64:Q,65:V,66:j,67:ee}),e(f,[2,58],{59:59,58:60,4:m,5:b,8:te,10:_,12:w,13:S,14:C,18:ne,63:W,64:Q,65:V,66:j,67:ee}),e(f,[2,59],{59:59,58:60,4:m,5:b,8:te,10:_,12:w,13:S,14:C,18:ne,63:W,64:Q,65:V,66:j,67:ee}),e(f,[2,60],{59:59,58:60,4:m,5:b,8:te,10:_,12:w,13:S,14:C,18:ne,63:W,64:Q,65:V,66:j,67:ee}),{45:[1,79]},{44:[1,80]},e(se,[2,65]),e(se,[2,81]),e(se,[2,82]),e(se,[2,83]),{3:82,4:ie,5:ge,6:ce,7:be,8:ve,9:De,10:ye,11:Ee,12:he,13:we,14:Ce,15:Ie,18:[1,81]},e(Le,[2,23]),e(Le,[2,1]),e(Le,[2,2]),e(Le,[2,3]),e(Le,[2,4]),e(Le,[2,5]),e(Le,[2,6]),e(Le,[2,7]),e(Le,[2,8]),e(Le,[2,9]),e(Le,[2,10]),e(Le,[2,11]),e(Le,[2,12]),e(f,[2,52],{58:31,43:83,4:m,5:b,10:_,12:w,13:S,14:C,60:z,61:Y,63:W,64:Q,65:V,66:j,67:ee}),e(f,[2,55],{58:31,43:84,4:m,5:b,10:_,12:w,13:S,14:C,60:z,61:Y,63:W,64:Q,65:V,66:j,67:ee}),{46:[1,85]},{45:[1,86]},{4:Fe,5:Ve,6:Oe,8:Dt,11:ot,13:sn,16:89,17:Kt,18:Ft,19:Je,20:ht,22:88,23:87},e(Le,[2,24]),e(f,[2,51],{59:59,58:60,4:m,5:b,8:te,10:_,12:w,13:S,14:C,18:ne,63:W,64:Q,65:V,66:j,67:ee}),e(f,[2,54],{59:59,58:60,4:m,5:b,8:te,10:_,12:w,13:S,14:C,18:ne,63:W,64:Q,65:V,66:j,67:ee}),e(f,[2,47],{22:88,16:89,23:100,4:Fe,5:Ve,6:Oe,8:Dt,11:ot,13:sn,17:Kt,18:Ft,19:Je,20:ht}),{46:[1,101]},e(f,[2,29],{10:et}),e(qe,[2,27],{16:103,4:Fe,5:Ve,6:Oe,8:Dt,11:ot,13:sn,17:Kt,18:Ft,19:Je,20:ht}),e(He,[2,25]),e(He,[2,13]),e(He,[2,14]),e(He,[2,15]),e(He,[2,16]),e(He,[2,17]),e(He,[2,18]),e(He,[2,19]),e(He,[2,20]),e(He,[2,21]),e(He,[2,22]),e(f,[2,49],{10:et}),e(f,[2,48],{22:88,16:89,23:104,4:Fe,5:Ve,6:Oe,8:Dt,11:ot,13:sn,17:Kt,18:Ft,19:Je,20:ht}),{4:Fe,5:Ve,6:Oe,8:Dt,11:ot,13:sn,16:89,17:Kt,18:Ft,19:Je,20:ht,22:105},e(He,[2,26]),e(f,[2,50],{10:et}),e(qe,[2,28],{16:103,4:Fe,5:Ve,6:Oe,8:Dt,11:ot,13:sn,17:Kt,18:Ft,19:Je,20:ht})],defaultActions:{8:[2,30],9:[2,31]},parseError:X(function(fe,Qe){if(Qe.recoverable)this.trace(fe);else{var Ke=new Error(fe);throw Ke.hash=Qe,Ke}},"parseError"),parse:X(function(fe){var Qe=this,Ke=[0],mt=[],lt=[null],$t=[],Ut=this.table,Jt="",wn=0,Vn=0,Wn=2,Dn=1,zn=$t.slice.call(arguments,1),vn=Object.create(this.lexer),Cn={yy:{}};for(var Ar in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ar)&&(Cn.yy[Ar]=this.yy[Ar]);vn.setInput(fe,Cn.yy),Cn.yy.lexer=vn,Cn.yy.parser=this,typeof vn.yylloc>"u"&&(vn.yylloc={});var ur=vn.yylloc;$t.push(ur);var On=vn.options&&vn.options.ranges;typeof Cn.yy.parseError=="function"?this.parseError=Cn.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ir(La){Ke.length=Ke.length-2*La,lt.length=lt.length-La,$t.length=$t.length-La}X(Ir,"popStack");function Ln(){var La;return La=mt.pop()||vn.lex()||Dn,typeof La!="number"&&(La instanceof Array&&(mt=La,La=mt.pop()),La=Qe.symbols_[La]||La),La}X(Ln,"lex");for(var pr,Cr,Zr,Pr,Ci={},ds,ta,Os,uo;;){if(Cr=Ke[Ke.length-1],this.defaultActions[Cr]?Zr=this.defaultActions[Cr]:((pr===null||typeof pr>"u")&&(pr=Ln()),Zr=Ut[Cr]&&Ut[Cr][pr]),typeof Zr>"u"||!Zr.length||!Zr[0]){var Ls="";uo=[];for(ds in Ut[Cr])this.terminals_[ds]&&ds>Wn&&uo.push("'"+this.terminals_[ds]+"'");vn.showPosition?Ls="Parse error on line "+(wn+1)+`: `+vn.showPosition()+` Expecting `+uo.join(", ")+", got '"+(this.terminals_[pr]||pr)+"'":Ls="Parse error on line "+(wn+1)+": Unexpected "+(pr==Dn?"end of input":"'"+(this.terminals_[pr]||pr)+"'"),this.parseError(Ls,{text:vn.match,token:this.terminals_[pr]||pr,line:vn.yylineno,loc:ur,expected:uo})}if(Zr[0]instanceof Array&&Zr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Cr+", token: "+pr);switch(Zr[0]){case 1:Ke.push(pr),lt.push(vn.yytext),$t.push(vn.yylloc),Ke.push(Zr[1]),pr=null,Vn=vn.yyleng,Jt=vn.yytext,wn=vn.yylineno,ur=vn.yylloc;break;case 2:if(ta=this.productions_[Zr[1]][1],Ci.$=lt[lt.length-ta],Ci._$={first_line:$t[$t.length-(ta||1)].first_line,last_line:$t[$t.length-1].last_line,first_column:$t[$t.length-(ta||1)].first_column,last_column:$t[$t.length-1].last_column},On&&(Ci._$.range=[$t[$t.length-(ta||1)].range[0],$t[$t.length-1].range[1]]),Pr=this.performAction.apply(Ci,[Jt,Vn,wn,Cn.yy,Zr[1],lt,$t].concat(zn)),typeof Pr<"u")return Pr;ta&&(Ke=Ke.slice(0,-1*ta*2),lt=lt.slice(0,-1*ta),$t=$t.slice(0,-1*ta)),Ke.push(this.productions_[Zr[1]][0]),lt.push(Ci.$),$t.push(Ci._$),Os=Ut[Ke[Ke.length-2]][Ke[Ke.length-1]],Ke.push(Os);break;case 3:return!0}}return!0},"parse")},Ye=function(){var Xe={EOF:1,parseError:X(function(Qe,Ke){if(this.yy.parser)this.yy.parser.parseError(Qe,Ke);else throw new Error(Qe)},"parseError"),setInput:X(function(fe,Qe){return this.yy=Qe||this.yy||{},this._input=fe,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:X(function(){var fe=this._input[0];this.yytext+=fe,this.yyleng++,this.offset++,this.match+=fe,this.matched+=fe;var Qe=fe.match(/(?:\r\n?|\n).*/g);return Qe?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),fe},"input"),unput:X(function(fe){var Qe=fe.length,Ke=fe.split(/(?:\r\n?|\n)/g);this._input=fe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Qe),this.offset-=Qe;var mt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Ke.length-1&&(this.yylineno-=Ke.length-1);var lt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Ke?(Ke.length===mt.length?this.yylloc.first_column:0)+mt[mt.length-Ke.length].length-Ke[0].length:this.yylloc.first_column-Qe},this.options.ranges&&(this.yylloc.range=[lt[0],lt[0]+this.yyleng-Qe]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(fe){this.unput(this.match.slice(fe))},"less"),pastInput:X(function(){var fe=this.matched.substr(0,this.matched.length-this.match.length);return(fe.length>20?"...":"")+fe.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var fe=this.match;return fe.length<20&&(fe+=this._input.substr(0,20-fe.length)),(fe.substr(0,20)+(fe.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var fe=this.pastInput(),Qe=new Array(fe.length+1).join("-");return fe+this.upcomingInput()+` `+Qe+"^"},"showPosition"),test_match:X(function(fe,Qe){var Ke,mt,lt;if(this.options.backtrack_lexer&&(lt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(lt.yylloc.range=this.yylloc.range.slice(0))),mt=fe[0].match(/(?:\r\n?|\n).*/g),mt&&(this.yylineno+=mt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:mt?mt[mt.length-1].length-mt[mt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+fe[0].length},this.yytext+=fe[0],this.match+=fe[0],this.matches=fe,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(fe[0].length),this.matched+=fe[0],Ke=this.performAction.call(this,this.yy,this,Qe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ke)return Ke;if(this._backtrack){for(var $t in lt)this[$t]=lt[$t];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var fe,Qe,Ke,mt;this._more||(this.yytext="",this.match="");for(var lt=this._currentRules(),$t=0;$tQe[0].length)){if(Qe=Ke,mt=$t,this.options.backtrack_lexer){if(fe=this.test_match(Ke,lt[$t]),fe!==!1)return fe;if(this._backtrack){Qe=!1;continue}else return!1}else if(!this.options.flex)break}return Qe?(fe=this.test_match(Qe,lt[mt]),fe!==!1?fe:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var Qe=this.next();return Qe||this.lex()},"lex"),begin:X(function(Qe){this.conditionStack.push(Qe)},"begin"),popState:X(function(){var Qe=this.conditionStack.length-1;return Qe>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(Qe){return Qe=this.conditionStack.length-1-Math.abs(Qe||0),Qe>=0?this.conditionStack[Qe]:"INITIAL"},"topState"),pushState:X(function(Qe){this.begin(Qe)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function(Qe,Ke,mt,lt){switch(mt){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:return 65;case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}};return Xe}();Ge.lexer=Ye;function Ae(){this.yy={}}return X(Ae,"Parser"),Ae.prototype=Ge,Ge.Parser=Ae,new Ae}();_ut.parser=_ut;var zji=_ut,By=JCe(),HY,Gji=(HY=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var t,r,a,s,o,u,h,f,p,m,b,_,w,S,C,A,k,I;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((t=Cc.quadrantChart)==null?void 0:t.chartWidth)||500,chartWidth:((r=Cc.quadrantChart)==null?void 0:r.chartHeight)||500,titlePadding:((a=Cc.quadrantChart)==null?void 0:a.titlePadding)||10,titleFontSize:((s=Cc.quadrantChart)==null?void 0:s.titleFontSize)||20,quadrantPadding:((o=Cc.quadrantChart)==null?void 0:o.quadrantPadding)||5,xAxisLabelPadding:((u=Cc.quadrantChart)==null?void 0:u.xAxisLabelPadding)||5,yAxisLabelPadding:((h=Cc.quadrantChart)==null?void 0:h.yAxisLabelPadding)||5,xAxisLabelFontSize:((f=Cc.quadrantChart)==null?void 0:f.xAxisLabelFontSize)||16,yAxisLabelFontSize:((p=Cc.quadrantChart)==null?void 0:p.yAxisLabelFontSize)||16,quadrantLabelFontSize:((m=Cc.quadrantChart)==null?void 0:m.quadrantLabelFontSize)||16,quadrantTextTopPadding:((b=Cc.quadrantChart)==null?void 0:b.quadrantTextTopPadding)||5,pointTextPadding:((_=Cc.quadrantChart)==null?void 0:_.pointTextPadding)||5,pointLabelFontSize:((w=Cc.quadrantChart)==null?void 0:w.pointLabelFontSize)||12,pointRadius:((S=Cc.quadrantChart)==null?void 0:S.pointRadius)||5,xAxisPosition:((C=Cc.quadrantChart)==null?void 0:C.xAxisPosition)||"top",yAxisPosition:((A=Cc.quadrantChart)==null?void 0:A.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((k=Cc.quadrantChart)==null?void 0:k.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((I=Cc.quadrantChart)==null?void 0:I.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:By.quadrant1Fill,quadrant2Fill:By.quadrant2Fill,quadrant3Fill:By.quadrant3Fill,quadrant4Fill:By.quadrant4Fill,quadrant1TextFill:By.quadrant1TextFill,quadrant2TextFill:By.quadrant2TextFill,quadrant3TextFill:By.quadrant3TextFill,quadrant4TextFill:By.quadrant4TextFill,quadrantPointFill:By.quadrantPointFill,quadrantPointTextFill:By.quadrantPointTextFill,quadrantXAxisTextFill:By.quadrantXAxisTextFill,quadrantYAxisTextFill:By.quadrantYAxisTextFill,quadrantTitleFill:By.quadrantTitleFill,quadrantInternalBorderStrokeFill:By.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:By.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,it.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}addClass(t,r){this.classes.set(t,r)}setConfig(t){it.trace("setConfig called with: ",t),this.config={...this.config,...t}}setThemeConfig(t){it.trace("setThemeConfig called with: ",t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,r,a,s){const o=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,u={top:t==="top"&&r?o:0,bottom:t==="bottom"&&r?o:0},h=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,f={left:this.config.yAxisPosition==="left"&&a?h:0,right:this.config.yAxisPosition==="right"&&a?h:0},p=this.config.titleFontSize+this.config.titlePadding*2,m={top:s?p:0},b=this.config.quadrantPadding+f.left,_=this.config.quadrantPadding+u.top+m.top,w=this.config.chartWidth-this.config.quadrantPadding*2-f.left-f.right,S=this.config.chartHeight-this.config.quadrantPadding*2-u.top-u.bottom-m.top,C=w/2,A=S/2;return{xAxisSpace:u,yAxisSpace:f,titleSpace:m,quadrantSpace:{quadrantLeft:b,quadrantTop:_,quadrantWidth:w,quadrantHalfWidth:C,quadrantHeight:S,quadrantHalfHeight:A}}}getAxisLabels(t,r,a,s){const{quadrantSpace:o,titleSpace:u}=s,{quadrantHalfHeight:h,quadrantHeight:f,quadrantLeft:p,quadrantHalfWidth:m,quadrantTop:b,quadrantWidth:_}=o,w=!!this.data.xAxisRightText,S=!!this.data.yAxisTopText,C=[];return this.data.xAxisLeftText&&r&&C.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:p+(w?m/2:0),y:t==="top"?this.config.xAxisLabelPadding+u.top:this.config.xAxisLabelPadding+b+f+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:w?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&r&&C.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:p+m+(w?m/2:0),y:t==="top"?this.config.xAxisLabelPadding+u.top:this.config.xAxisLabelPadding+b+f+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:w?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&a&&C.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+p+_+this.config.quadrantPadding,y:b+f-(S?h/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:S?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&a&&C.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+p+_+this.config.quadrantPadding,y:b+h-(S?h/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:S?"center":"left",horizontalPos:"top",rotation:-90}),C}getQuadrants(t){const{quadrantSpace:r}=t,{quadrantHalfHeight:a,quadrantLeft:s,quadrantHalfWidth:o,quadrantTop:u}=r,h=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:s+o,y:u,width:o,height:a,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:s,y:u,width:o,height:a,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:s,y:u+a,width:o,height:a,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:s+o,y:u+a,width:o,height:a,fill:this.themeConfig.quadrant4Fill}];for(const f of h)f.text.x=f.x+f.width/2,this.data.points.length===0?(f.text.y=f.y+f.height/2,f.text.horizontalPos="middle"):(f.text.y=f.y+this.config.quadrantTextTopPadding,f.text.horizontalPos="top");return h}getQuadrantPoints(t){const{quadrantSpace:r}=t,{quadrantHeight:a,quadrantLeft:s,quadrantTop:o,quadrantWidth:u}=r,h=sT().domain([0,1]).range([s,u+s]),f=sT().domain([0,1]).range([a+o,o]);return this.data.points.map(m=>{const b=this.classes.get(m.className);return b&&(m={...b,...m}),{x:h(m.x),y:f(m.y),fill:m.color??this.themeConfig.quadrantPointFill,radius:m.radius??this.config.pointRadius,text:{text:m.text,fill:this.themeConfig.quadrantPointTextFill,x:h(m.x),y:f(m.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:m.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:m.strokeWidth??"0px"}})}getBorders(t){const r=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:a}=t,{quadrantHalfHeight:s,quadrantHeight:o,quadrantLeft:u,quadrantHalfWidth:h,quadrantTop:f,quadrantWidth:p}=a;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:u-r,y1:f,x2:u+p+r,y2:f},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:u+p,y1:f+r,x2:u+p,y2:f+o-r},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:u-r,y1:f+o,x2:u+p+r,y2:f+o},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:u,y1:f+r,x2:u,y2:f+o-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:u+h,y1:f+r,x2:u+h,y2:f+o-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:u+r,y1:f+s,x2:u+p-r,y2:f+s}]}getTitle(t){if(t)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const t=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),r=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),a=this.config.showTitle&&!!this.data.titleText,s=this.data.points.length>0?"bottom":this.config.xAxisPosition,o=this.calculateSpace(s,t,r,a);return{points:this.getQuadrantPoints(o),quadrants:this.getQuadrants(o),axisLabels:this.getAxisLabels(s,t,r,o),borderLines:this.getBorders(o),title:this.getTitle(a)}}},X(HY,"QuadrantBuilder"),HY),VY,cEe=(VY=class extends Error{constructor(t,r,a){super(`value for ${t} ${r} is invalid, please use a valid ${a}`),this.name="InvalidStyleError"}},X(VY,"InvalidStyleError"),VY);function wut(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}X(wut,"validateHexCode");function oKn(e){return!/^\d+$/.test(e)}X(oKn,"validateNumber");function lKn(e){return!/^\d+px$/.test(e)}X(lKn,"validateSizeInPixels");var qji=nn();function qA(e){return Ic(e.trim(),qji)}X(qA,"textSanitizer");var Sm=new Gji;function cKn(e){Sm.setData({quadrant1Text:qA(e.text)})}X(cKn,"setQuadrant1Text");function uKn(e){Sm.setData({quadrant2Text:qA(e.text)})}X(uKn,"setQuadrant2Text");function hKn(e){Sm.setData({quadrant3Text:qA(e.text)})}X(hKn,"setQuadrant3Text");function dKn(e){Sm.setData({quadrant4Text:qA(e.text)})}X(dKn,"setQuadrant4Text");function fKn(e){Sm.setData({xAxisLeftText:qA(e.text)})}X(fKn,"setXAxisLeftText");function pKn(e){Sm.setData({xAxisRightText:qA(e.text)})}X(pKn,"setXAxisRightText");function gKn(e){Sm.setData({yAxisTopText:qA(e.text)})}X(gKn,"setYAxisTopText");function mKn(e){Sm.setData({yAxisBottomText:qA(e.text)})}X(mKn,"setYAxisBottomText");function Kke(e){const t={};for(const r of e){const[a,s]=r.trim().split(/\s*:\s*/);if(a==="radius"){if(oKn(s))throw new cEe(a,s,"number");t.radius=parseInt(s)}else if(a==="color"){if(wut(s))throw new cEe(a,s,"hex code");t.color=s}else if(a==="stroke-color"){if(wut(s))throw new cEe(a,s,"hex code");t.strokeColor=s}else if(a==="stroke-width"){if(lKn(s))throw new cEe(a,s,"number of pixels (eg. 10px)");t.strokeWidth=s}else throw new Error(`style named ${a} is not supported.`)}return t}X(Kke,"parseStyles");function bKn(e,t,r,a,s){const o=Kke(s);Sm.addPoints([{x:r,y:a,text:qA(e.text),className:t,...o}])}X(bKn,"addPoint");function yKn(e,t){Sm.addClass(e,Kke(t))}X(yKn,"addClass");function vKn(e){Sm.setConfig({chartWidth:e})}X(vKn,"setWidth");function _Kn(e){Sm.setConfig({chartHeight:e})}X(_Kn,"setHeight");function wKn(){const e=nn(),{themeVariables:t,quadrantChart:r}=e;return r&&Sm.setConfig(r),Sm.setThemeConfig({quadrant1Fill:t.quadrant1Fill,quadrant2Fill:t.quadrant2Fill,quadrant3Fill:t.quadrant3Fill,quadrant4Fill:t.quadrant4Fill,quadrant1TextFill:t.quadrant1TextFill,quadrant2TextFill:t.quadrant2TextFill,quadrant3TextFill:t.quadrant3TextFill,quadrant4TextFill:t.quadrant4TextFill,quadrantPointFill:t.quadrantPointFill,quadrantPointTextFill:t.quadrantPointTextFill,quadrantXAxisTextFill:t.quadrantXAxisTextFill,quadrantYAxisTextFill:t.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:t.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:t.quadrantInternalBorderStrokeFill,quadrantTitleFill:t.quadrantTitleFill}),Sm.setData({titleText:P1()}),Sm.build()}X(wKn,"getQuadrantData");var Hji=X(function(){Sm.clear(),M1()},"clear"),Vji={setWidth:vKn,setHeight:_Kn,setQuadrant1Text:cKn,setQuadrant2Text:uKn,setQuadrant3Text:hKn,setQuadrant4Text:dKn,setXAxisLeftText:fKn,setXAxisRightText:pKn,setYAxisTopText:gKn,setYAxisBottomText:mKn,parseStyles:Kke,addPoint:bKn,addClass:yKn,getQuadrantData:wKn,clear:Hji,setAccTitle:N1,getAccTitle:Mp,setDiagramTitle:Og,getDiagramTitle:P1,getAccDescription:Bp,setAccDescription:Pp},Yji=X((e,t,r,a)=>{var U,$,G;function s(B){return B==="top"?"hanging":"middle"}X(s,"getDominantBaseLine");function o(B){return B==="left"?"start":"middle"}X(o,"getTextAnchor");function u(B){return`translate(${B.x}, ${B.y}) rotate(${B.rotation||0})`}X(u,"getTransformation");const h=nn();it.debug(`Rendering quadrant chart `+e);const f=h.securityLevel;let p;f==="sandbox"&&(p=gn("#i"+t));const b=gn(f==="sandbox"?p.nodes()[0].contentDocument.body:"body").select(`[id="${t}"]`),_=b.append("g").attr("class","main"),w=((U=h.quadrantChart)==null?void 0:U.chartWidth)??500,S=(($=h.quadrantChart)==null?void 0:$.chartHeight)??500;yv(b,S,w,((G=h.quadrantChart)==null?void 0:G.useMaxWidth)??!0),b.attr("viewBox","0 0 "+w+" "+S),a.db.setHeight(S),a.db.setWidth(w);const C=a.db.getQuadrantData(),A=_.append("g").attr("class","quadrants"),k=_.append("g").attr("class","border"),I=_.append("g").attr("class","data-points"),N=_.append("g").attr("class","labels"),L=_.append("g").attr("class","title");C.title&&L.append("text").attr("x",0).attr("y",0).attr("fill",C.title.fill).attr("font-size",C.title.fontSize).attr("dominant-baseline",s(C.title.horizontalPos)).attr("text-anchor",o(C.title.verticalPos)).attr("transform",u(C.title)).text(C.title.text),C.borderLines&&k.selectAll("line").data(C.borderLines).enter().append("line").attr("x1",B=>B.x1).attr("y1",B=>B.y1).attr("x2",B=>B.x2).attr("y2",B=>B.y2).style("stroke",B=>B.strokeFill).style("stroke-width",B=>B.strokeWidth);const P=A.selectAll("g.quadrant").data(C.quadrants).enter().append("g").attr("class","quadrant");P.append("rect").attr("x",B=>B.x).attr("y",B=>B.y).attr("width",B=>B.width).attr("height",B=>B.height).attr("fill",B=>B.fill),P.append("text").attr("x",0).attr("y",0).attr("fill",B=>B.text.fill).attr("font-size",B=>B.text.fontSize).attr("dominant-baseline",B=>s(B.text.horizontalPos)).attr("text-anchor",B=>o(B.text.verticalPos)).attr("transform",B=>u(B.text)).text(B=>B.text.text),N.selectAll("g.label").data(C.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(B=>B.text).attr("fill",B=>B.fill).attr("font-size",B=>B.fontSize).attr("dominant-baseline",B=>s(B.horizontalPos)).attr("text-anchor",B=>o(B.verticalPos)).attr("transform",B=>u(B));const F=I.selectAll("g.data-point").data(C.points).enter().append("g").attr("class","data-point");F.append("circle").attr("cx",B=>B.x).attr("cy",B=>B.y).attr("r",B=>B.radius).attr("fill",B=>B.fill).attr("stroke",B=>B.strokeColor).attr("stroke-width",B=>B.strokeWidth),F.append("text").attr("x",0).attr("y",0).text(B=>B.text.text).attr("fill",B=>B.text.fill).attr("font-size",B=>B.text.fontSize).attr("dominant-baseline",B=>s(B.text.horizontalPos)).attr("text-anchor",B=>o(B.text.verticalPos)).attr("transform",B=>u(B.text))},"draw"),jji={draw:Yji},Wji={parser:zji,db:Vji,renderer:jji,styles:X(()=>"","styles")};const Kji=Object.freeze(Object.defineProperty({__proto__:null,diagram:Wji},Symbol.toStringTag,{value:"Module"}));var Eut=function(){var e=X(function(W,Q,V,j){for(V=V||{},j=W.length;j--;V[W[j]]=Q);return V},"o"),t=[1,10,12,14,16,18,19,21,23],r=[2,6],a=[1,3],s=[1,5],o=[1,6],u=[1,7],h=[1,5,10,12,14,16,18,19,21,23,34,35,36],f=[1,25],p=[1,26],m=[1,28],b=[1,29],_=[1,30],w=[1,31],S=[1,32],C=[1,33],A=[1,34],k=[1,35],I=[1,36],N=[1,37],L=[1,43],P=[1,42],M=[1,47],F=[1,50],U=[1,10,12,14,16,18,19,21,23,34,35,36],$=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],G=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],B=[1,64],Z={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:X(function(Q,V,j,ee,te,ne,se){var ie=ne.length-1;switch(te){case 5:ee.setOrientation(ne[ie]);break;case 9:ee.setDiagramTitle(ne[ie].text.trim());break;case 12:ee.setLineData({text:"",type:"text"},ne[ie]);break;case 13:ee.setLineData(ne[ie-1],ne[ie]);break;case 14:ee.setBarData({text:"",type:"text"},ne[ie]);break;case 15:ee.setBarData(ne[ie-1],ne[ie]);break;case 16:this.$=ne[ie].trim(),ee.setAccTitle(this.$);break;case 17:case 18:this.$=ne[ie].trim(),ee.setAccDescription(this.$);break;case 19:this.$=ne[ie-1];break;case 20:this.$=[Number(ne[ie-2]),...ne[ie]];break;case 21:this.$=[Number(ne[ie])];break;case 22:ee.setXAxisTitle(ne[ie]);break;case 23:ee.setXAxisTitle(ne[ie-1]);break;case 24:ee.setXAxisTitle({type:"text",text:""});break;case 25:ee.setXAxisBand(ne[ie]);break;case 26:ee.setXAxisRangeData(Number(ne[ie-2]),Number(ne[ie]));break;case 27:this.$=ne[ie-1];break;case 28:this.$=[ne[ie-2],...ne[ie]];break;case 29:this.$=[ne[ie]];break;case 30:ee.setYAxisTitle(ne[ie]);break;case 31:ee.setYAxisTitle(ne[ie-1]);break;case 32:ee.setYAxisTitle({type:"text",text:""});break;case 33:ee.setYAxisRangeData(Number(ne[ie-2]),Number(ne[ie]));break;case 37:this.$={text:ne[ie],type:"text"};break;case 38:this.$={text:ne[ie],type:"text"};break;case 39:this.$={text:ne[ie],type:"markdown"};break;case 40:this.$=ne[ie];break;case 41:this.$=ne[ie-1]+""+ne[ie];break}},"anonymous"),table:[e(t,r,{3:1,4:2,7:4,5:a,34:s,35:o,36:u}),{1:[3]},e(t,r,{4:2,7:4,3:8,5:a,34:s,35:o,36:u}),e(t,r,{4:2,7:4,6:9,3:10,5:a,8:[1,11],34:s,35:o,36:u}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(h,[2,34]),e(h,[2,35]),e(h,[2,36]),{1:[2,1]},e(t,r,{4:2,7:4,3:21,5:a,34:s,35:o,36:u}),{1:[2,3]},e(h,[2,5]),e(t,[2,7],{4:22,34:s,35:o,36:u}),{11:23,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},{11:39,13:38,24:L,27:P,29:40,30:41,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},{11:45,15:44,27:M,33:46,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},{11:49,17:48,24:F,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},{11:52,17:51,24:F,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},{20:[1,53]},{22:[1,54]},e(U,[2,18]),{1:[2,2]},e(U,[2,8]),e(U,[2,9]),e($,[2,37],{40:55,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N}),e($,[2,38]),e($,[2,39]),e(G,[2,40]),e(G,[2,42]),e(G,[2,43]),e(G,[2,44]),e(G,[2,45]),e(G,[2,46]),e(G,[2,47]),e(G,[2,48]),e(G,[2,49]),e(G,[2,50]),e(G,[2,51]),e(U,[2,10]),e(U,[2,22],{30:41,29:56,24:L,27:P}),e(U,[2,24]),e(U,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},e(U,[2,11]),e(U,[2,30],{33:60,27:M}),e(U,[2,32]),{31:[1,61]},e(U,[2,12]),{17:62,24:F},{25:63,27:B},e(U,[2,14]),{17:65,24:F},e(U,[2,16]),e(U,[2,17]),e(G,[2,41]),e(U,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(U,[2,31]),{27:[1,69]},e(U,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(U,[2,15]),e(U,[2,26]),e(U,[2,27]),{11:59,32:72,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},e(U,[2,33]),e(U,[2,19]),{25:73,27:B},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:X(function(Q,V){if(V.recoverable)this.trace(Q);else{var j=new Error(Q);throw j.hash=V,j}},"parseError"),parse:X(function(Q){var V=this,j=[0],ee=[],te=[null],ne=[],se=this.table,ie="",ge=0,ce=0,be=2,ve=1,De=ne.slice.call(arguments,1),ye=Object.create(this.lexer),Ee={yy:{}};for(var he in this.yy)Object.prototype.hasOwnProperty.call(this.yy,he)&&(Ee.yy[he]=this.yy[he]);ye.setInput(Q,Ee.yy),Ee.yy.lexer=ye,Ee.yy.parser=this,typeof ye.yylloc>"u"&&(ye.yylloc={});var we=ye.yylloc;ne.push(we);var Ce=ye.options&&ye.options.ranges;typeof Ee.yy.parseError=="function"?this.parseError=Ee.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ie(et){j.length=j.length-2*et,te.length=te.length-et,ne.length=ne.length-et}X(Ie,"popStack");function Le(){var et;return et=ee.pop()||ye.lex()||ve,typeof et!="number"&&(et instanceof Array&&(ee=et,et=ee.pop()),et=V.symbols_[et]||et),et}X(Le,"lex");for(var Fe,Ve,Oe,Dt,ot={},sn,Kt,Ft,Je;;){if(Ve=j[j.length-1],this.defaultActions[Ve]?Oe=this.defaultActions[Ve]:((Fe===null||typeof Fe>"u")&&(Fe=Le()),Oe=se[Ve]&&se[Ve][Fe]),typeof Oe>"u"||!Oe.length||!Oe[0]){var ht="";Je=[];for(sn in se[Ve])this.terminals_[sn]&&sn>be&&Je.push("'"+this.terminals_[sn]+"'");ye.showPosition?ht="Parse error on line "+(ge+1)+`: `+ye.showPosition()+` Expecting `+Je.join(", ")+", got '"+(this.terminals_[Fe]||Fe)+"'":ht="Parse error on line "+(ge+1)+": Unexpected "+(Fe==ve?"end of input":"'"+(this.terminals_[Fe]||Fe)+"'"),this.parseError(ht,{text:ye.match,token:this.terminals_[Fe]||Fe,line:ye.yylineno,loc:we,expected:Je})}if(Oe[0]instanceof Array&&Oe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ve+", token: "+Fe);switch(Oe[0]){case 1:j.push(Fe),te.push(ye.yytext),ne.push(ye.yylloc),j.push(Oe[1]),Fe=null,ce=ye.yyleng,ie=ye.yytext,ge=ye.yylineno,we=ye.yylloc;break;case 2:if(Kt=this.productions_[Oe[1]][1],ot.$=te[te.length-Kt],ot._$={first_line:ne[ne.length-(Kt||1)].first_line,last_line:ne[ne.length-1].last_line,first_column:ne[ne.length-(Kt||1)].first_column,last_column:ne[ne.length-1].last_column},Ce&&(ot._$.range=[ne[ne.length-(Kt||1)].range[0],ne[ne.length-1].range[1]]),Dt=this.performAction.apply(ot,[ie,ce,ge,Ee.yy,Oe[1],te,ne].concat(De)),typeof Dt<"u")return Dt;Kt&&(j=j.slice(0,-1*Kt*2),te=te.slice(0,-1*Kt),ne=ne.slice(0,-1*Kt)),j.push(this.productions_[Oe[1]][0]),te.push(ot.$),ne.push(ot._$),Ft=se[j[j.length-2]][j[j.length-1]],j.push(Ft);break;case 3:return!0}}return!0},"parse")},z=function(){var W={EOF:1,parseError:X(function(V,j){if(this.yy.parser)this.yy.parser.parseError(V,j);else throw new Error(V)},"parseError"),setInput:X(function(Q,V){return this.yy=V||this.yy||{},this._input=Q,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:X(function(){var Q=this._input[0];this.yytext+=Q,this.yyleng++,this.offset++,this.match+=Q,this.matched+=Q;var V=Q.match(/(?:\r\n?|\n).*/g);return V?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Q},"input"),unput:X(function(Q){var V=Q.length,j=Q.split(/(?:\r\n?|\n)/g);this._input=Q+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-V),this.offset-=V;var ee=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),j.length-1&&(this.yylineno-=j.length-1);var te=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:j?(j.length===ee.length?this.yylloc.first_column:0)+ee[ee.length-j.length].length-j[0].length:this.yylloc.first_column-V},this.options.ranges&&(this.yylloc.range=[te[0],te[0]+this.yyleng-V]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(Q){this.unput(this.match.slice(Q))},"less"),pastInput:X(function(){var Q=this.matched.substr(0,this.matched.length-this.match.length);return(Q.length>20?"...":"")+Q.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var Q=this.match;return Q.length<20&&(Q+=this._input.substr(0,20-Q.length)),(Q.substr(0,20)+(Q.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var Q=this.pastInput(),V=new Array(Q.length+1).join("-");return Q+this.upcomingInput()+` `+V+"^"},"showPosition"),test_match:X(function(Q,V){var j,ee,te;if(this.options.backtrack_lexer&&(te={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(te.yylloc.range=this.yylloc.range.slice(0))),ee=Q[0].match(/(?:\r\n?|\n).*/g),ee&&(this.yylineno+=ee.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ee?ee[ee.length-1].length-ee[ee.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Q[0].length},this.yytext+=Q[0],this.match+=Q[0],this.matches=Q,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Q[0].length),this.matched+=Q[0],j=this.performAction.call(this,this.yy,this,V,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),j)return j;if(this._backtrack){for(var ne in te)this[ne]=te[ne];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Q,V,j,ee;this._more||(this.yytext="",this.match="");for(var te=this._currentRules(),ne=0;neV[0].length)){if(V=j,ee=ne,this.options.backtrack_lexer){if(Q=this.test_match(j,te[ne]),Q!==!1)return Q;if(this._backtrack){V=!1;continue}else return!1}else if(!this.options.flex)break}return V?(Q=this.test_match(V,te[ee]),Q!==!1?Q:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var V=this.next();return V||this.lex()},"lex"),begin:X(function(V){this.conditionStack.push(V)},"begin"),popState:X(function(){var V=this.conditionStack.length-1;return V>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(V){return V=this.conditionStack.length-1-Math.abs(V||0),V>=0?this.conditionStack[V]:"INITIAL"},"topState"),pushState:X(function(V){this.begin(V)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function(V,j,ee,te){switch(ee){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 31;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 27;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 44:break;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return W}();Z.lexer=z;function Y(){this.yy={}}return X(Y,"Parser"),Y.prototype=Z,Z.Parser=Y,new Y}();Eut.parser=Eut;var Xji=Eut;function xut(e){return e.type==="bar"}X(xut,"isBarPlot");function Vmt(e){return e.type==="band"}X(Vmt,"isBandAxisData");function cY(e){return e.type==="linear"}X(cY,"isLinearAxisData");var YY,EKn=(YY=class{constructor(t){this.parentGroup=t}getMaxDimension(t,r){if(!this.parentGroup)return{width:t.reduce((o,u)=>Math.max(u.length,o),0)*r,height:r};const a={width:0,height:0},s=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",r);for(const o of t){const u=kBn(s,1,o),h=u?u.width:o.length*r,f=u?u.height:r;a.width=Math.max(a.width,h),a.height=Math.max(a.height,f)}return s.remove(),a}},X(YY,"TextDimensionCalculatorWithFont"),YY),rTn=.7,iTn=.2,jY,xKn=(jY=class{constructor(t,r,a,s){this.axisConfig=t,this.title=r,this.textDimensionCalculator=a,this.axisThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){rTn*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(rTn*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let r=t.height;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth&&(r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const a=this.getLabelDimension(),s=iTn*t.width;this.outerPadding=Math.min(a.width/2,s);const o=a.height+this.axisConfig.labelPadding*2;this.labelTextHeight=a.height,o<=r&&(r-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength&&(this.showTick=!0,r-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const a=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),s=a.height+this.axisConfig.titlePadding*2;this.titleTextHeight=a.height,s<=r&&(r-=s,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-r}calculateSpaceIfDrawnVertical(t){let r=t.width;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth&&(r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const a=this.getLabelDimension(),s=iTn*t.height;this.outerPadding=Math.min(a.height/2,s);const o=a.width+this.axisConfig.labelPadding*2;o<=r&&(r-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength&&(this.showTick=!0,r-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const a=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),s=a.height+this.axisConfig.titlePadding*2;this.titleTextHeight=a.height,s<=r&&(r-=s,this.showTitle=!0)}this.boundingRect.width=t.width-r,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const r=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${r},${this.boundingRect.y} L ${r},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(r),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const r=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(a=>({path:`M ${r},${this.getScaleValue(a)} L ${r-this.axisConfig.tickLength},${this.getScaleValue(a)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const r=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const r=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(a=>({path:`M ${this.getScaleValue(a)},${r} L ${this.getScaleValue(a)},${r+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const r=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const r=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(a=>({path:`M ${this.getScaleValue(a)},${r+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(a)},${r+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}},X(jY,"BaseAxis"),jY),WY,Qji=(WY=class extends xKn{constructor(t,r,a,s,o){super(t,s,o,r),this.categories=a,this.scale=goe().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=goe().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),it.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},X(WY,"BandAxis"),WY),KY,Zji=(KY=class extends xKn{constructor(t,r,a,s,o){super(t,s,o,r),this.domain=a,this.scale=sT().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=sT().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}},X(KY,"LinearAxis"),KY);function Sut(e,t,r,a){const s=new EKn(a);return Vmt(e)?new Qji(t,r,e.categories,e.title,s):new Zji(t,r,[e.min,e.max],e.title,s)}X(Sut,"getAxis");var XY,Jji=(XY=class{constructor(t,r,a,s){this.textDimensionCalculator=t,this.chartConfig=r,this.chartData=a,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const r=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),a=Math.max(r.width,t.width),s=r.height+2*this.chartConfig.titlePadding;return r.width<=a&&r.height<=s&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=a,this.boundingRect.height=s,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}},X(XY,"ChartTitle"),XY);function SKn(e,t,r,a){const s=new EKn(a);return new Jji(s,e,t,r)}X(SKn,"getChartTitleComponent");var QY,eWi=(QY=class{constructor(t,r,a,s,o){this.plotData=t,this.xAxis=r,this.yAxis=a,this.orientation=s,this.plotIndex=o}getDrawableElement(){const t=this.plotData.data.map(a=>[this.xAxis.getScaleValue(a[0]),this.yAxis.getScaleValue(a[1])]);let r;return this.orientation==="horizontal"?r=r_().y(a=>a[0]).x(a=>a[1])(t):r=r_().x(a=>a[0]).y(a=>a[1])(t),r?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:r,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},X(QY,"LinePlot"),QY),ZY,tWi=(ZY=class{constructor(t,r,a,s,o,u){this.barData=t,this.boundingRect=r,this.xAxis=a,this.yAxis=s,this.orientation=o,this.plotIndex=u}getDrawableElement(){const t=this.barData.data.map(o=>[this.xAxis.getScaleValue(o[0]),this.yAxis.getScaleValue(o[1])]),a=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),s=a/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:this.boundingRect.x,y:o[0]-s,height:a,width:o[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:o[0]-s,y:o[1],width:a,height:this.boundingRect.y+this.boundingRect.height-o[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},X(ZY,"BarPlot"),ZY),JY,nWi=(JY=class{constructor(t,r,a){this.chartConfig=t,this.chartData=r,this.chartThemeConfig=a,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,r){this.xAxis=t,this.yAxis=r}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const t=[];for(const[r,a]of this.chartData.plots.entries())switch(a.type){case"line":{const s=new eWi(a,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);t.push(...s.getDrawableElement())}break;case"bar":{const s=new tWi(a,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);t.push(...s.getDrawableElement())}break}return t}},X(JY,"BasePlot"),JY);function TKn(e,t,r){return new nWi(e,t,r)}X(TKn,"getPlotComponent");var ej,rWi=(ej=class{constructor(t,r,a,s){this.chartConfig=t,this.chartData=r,this.componentStore={title:SKn(t,r,a,s),plot:TKn(t,r,a),xAxis:Sut(r.xAxis,t.xAxis,{titleColor:a.xAxisTitleColor,labelColor:a.xAxisLabelColor,tickColor:a.xAxisTickColor,axisLineColor:a.xAxisLineColor},s),yAxis:Sut(r.yAxis,t.yAxis,{titleColor:a.yAxisTitleColor,labelColor:a.yAxisLabelColor,tickColor:a.yAxisTickColor,axisLineColor:a.yAxisLineColor},s)}}calculateVerticalSpace(){let t=this.chartConfig.width,r=this.chartConfig.height,a=0,s=0,o=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),u=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),h=this.componentStore.plot.calculateSpace({width:o,height:u});t-=h.width,r-=h.height,h=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),s=h.height,r-=h.height,this.componentStore.xAxis.setAxisPosition("bottom"),h=this.componentStore.xAxis.calculateSpace({width:t,height:r}),r-=h.height,this.componentStore.yAxis.setAxisPosition("left"),h=this.componentStore.yAxis.calculateSpace({width:t,height:r}),a=h.width,t-=h.width,t>0&&(o+=t,t=0),r>0&&(u+=r,r=0),this.componentStore.plot.calculateSpace({width:o,height:u}),this.componentStore.plot.setBoundingBoxXY({x:a,y:s}),this.componentStore.xAxis.setRange([a,a+o]),this.componentStore.xAxis.setBoundingBoxXY({x:a,y:s+u}),this.componentStore.yAxis.setRange([s,s+u]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:s}),this.chartData.plots.some(f=>xut(f))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,r=this.chartConfig.height,a=0,s=0,o=0,u=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),h=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),f=this.componentStore.plot.calculateSpace({width:u,height:h});t-=f.width,r-=f.height,f=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),a=f.height,r-=f.height,this.componentStore.xAxis.setAxisPosition("left"),f=this.componentStore.xAxis.calculateSpace({width:t,height:r}),t-=f.width,s=f.width,this.componentStore.yAxis.setAxisPosition("top"),f=this.componentStore.yAxis.calculateSpace({width:t,height:r}),r-=f.height,o=a+f.height,t>0&&(u+=t,t=0),r>0&&(h+=r,r=0),this.componentStore.plot.calculateSpace({width:u,height:h}),this.componentStore.plot.setBoundingBoxXY({x:s,y:o}),this.componentStore.yAxis.setRange([s,s+u]),this.componentStore.yAxis.setBoundingBoxXY({x:s,y:a}),this.componentStore.xAxis.setRange([o,o+h]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:o}),this.chartData.plots.some(p=>xut(p))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const r of Object.values(this.componentStore))t.push(...r.getDrawableElements());return t}},X(ej,"Orchestrator"),ej),tj,iWi=(tj=class{static build(t,r,a,s){return new rWi(t,r,a,s).getDrawableElement()}},X(tj,"XYChartBuilder"),tj),sle=0,CKn,ole=Wmt(),lle=jmt(),Bu=Kmt(),Tut=lle.plotColorPalette.split(",").map(e=>e.trim()),Xke=!1,Ymt=!1;function jmt(){const e=JCe(),t=$c();return cv(e.xyChart,t.themeVariables.xyChart)}X(jmt,"getChartDefaultThemeConfig");function Wmt(){const e=$c();return cv(Cc.xyChart,e.xyChart)}X(Wmt,"getChartDefaultConfig");function Kmt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}X(Kmt,"getChartDefaultData");function Qke(e){const t=$c();return Ic(e.trim(),t)}X(Qke,"textSanitizer");function AKn(e){CKn=e}X(AKn,"setTmpSVGG");function kKn(e){e==="horizontal"?ole.chartOrientation="horizontal":ole.chartOrientation="vertical"}X(kKn,"setOrientation");function RKn(e){Bu.xAxis.title=Qke(e.text)}X(RKn,"setXAxisTitle");function Xmt(e,t){Bu.xAxis={type:"linear",title:Bu.xAxis.title,min:e,max:t},Xke=!0}X(Xmt,"setXAxisRangeData");function IKn(e){Bu.xAxis={type:"band",title:Bu.xAxis.title,categories:e.map(t=>Qke(t.text))},Xke=!0}X(IKn,"setXAxisBand");function NKn(e){Bu.yAxis.title=Qke(e.text)}X(NKn,"setYAxisTitle");function OKn(e,t){Bu.yAxis={type:"linear",title:Bu.yAxis.title,min:e,max:t},Ymt=!0}X(OKn,"setYAxisRangeData");function LKn(e){const t=Math.min(...e),r=Math.max(...e),a=cY(Bu.yAxis)?Bu.yAxis.min:1/0,s=cY(Bu.yAxis)?Bu.yAxis.max:-1/0;Bu.yAxis={type:"linear",title:Bu.yAxis.title,min:Math.min(a,t),max:Math.max(s,r)}}X(LKn,"setYAxisRangeFromPlotData");function Qmt(e){let t=[];if(e.length===0)return t;if(!Xke){const r=cY(Bu.xAxis)?Bu.xAxis.min:1/0,a=cY(Bu.xAxis)?Bu.xAxis.max:-1/0;Xmt(Math.min(r,1),Math.max(a,e.length))}if(Ymt||LKn(e),Vmt(Bu.xAxis)&&(t=Bu.xAxis.categories.map((r,a)=>[r,e[a]])),cY(Bu.xAxis)){const r=Bu.xAxis.min,a=Bu.xAxis.max,s=(a-r)/(e.length-1),o=[];for(let u=r;u<=a;u+=s)o.push(`${u}`);t=o.map((u,h)=>[u,e[h]])}return t}X(Qmt,"transformDataWithoutCategory");function Zmt(e){return Tut[e===0?0:e%Tut.length]}X(Zmt,"getPlotColorFromPalette");function DKn(e,t){const r=Qmt(t);Bu.plots.push({type:"line",strokeFill:Zmt(sle),strokeWidth:2,data:r}),sle++}X(DKn,"setLineData");function MKn(e,t){const r=Qmt(t);Bu.plots.push({type:"bar",fill:Zmt(sle),data:r}),sle++}X(MKn,"setBarData");function PKn(){if(Bu.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return Bu.title=P1(),iWi.build(ole,Bu,lle,CKn)}X(PKn,"getDrawableElem");function BKn(){return lle}X(BKn,"getChartThemeConfig");function FKn(){return ole}X(FKn,"getChartConfig");function $Kn(){return Bu}X($Kn,"getXYChartData");var aWi=X(function(){M1(),sle=0,ole=Wmt(),Bu=Kmt(),lle=jmt(),Tut=lle.plotColorPalette.split(",").map(e=>e.trim()),Xke=!1,Ymt=!1},"clear"),sWi={getDrawableElem:PKn,clear:aWi,setAccTitle:N1,getAccTitle:Mp,setDiagramTitle:Og,getDiagramTitle:P1,getAccDescription:Bp,setAccDescription:Pp,setOrientation:kKn,setXAxisTitle:RKn,setXAxisRangeData:Xmt,setXAxisBand:IKn,setYAxisTitle:NKn,setYAxisRangeData:OKn,setLineData:DKn,setBarData:MKn,setTmpSVGG:AKn,getChartThemeConfig:BKn,getChartConfig:FKn,getXYChartData:$Kn},oWi=X((e,t,r,a)=>{const s=a.db,o=s.getChartThemeConfig(),u=s.getChartConfig(),h=s.getXYChartData().plots[0].data.map(k=>k[1]);function f(k){return k==="top"?"text-before-edge":"middle"}X(f,"getDominantBaseLine");function p(k){return k==="left"?"start":k==="right"?"end":"middle"}X(p,"getTextAnchor");function m(k){return`translate(${k.x}, ${k.y}) rotate(${k.rotation||0})`}X(m,"getTextTransformation"),it.debug(`Rendering xychart chart `+e);const b=bR(t),_=b.append("g").attr("class","main"),w=_.append("rect").attr("width",u.width).attr("height",u.height).attr("class","background");yv(b,u.height,u.width,!0),b.attr("viewBox",`0 0 ${u.width} ${u.height}`),w.attr("fill",o.backgroundColor),s.setTmpSVGG(b.append("g").attr("class","mermaid-tmp-group"));const S=s.getDrawableElem(),C={};function A(k){let I=_,N="";for(const[L]of k.entries()){let P=_;L>0&&C[N]&&(P=C[N]),N+=k[L],I=C[N],I||(I=C[N]=P.append("g").attr("class",k[L]))}return I}X(A,"getGroup");for(const k of S){if(k.data.length===0)continue;const I=A(k.groupTexts);switch(k.type){case"rect":if(I.selectAll("rect").data(k.data).enter().append("rect").attr("x",N=>N.x).attr("y",N=>N.y).attr("width",N=>N.width).attr("height",N=>N.height).attr("fill",N=>N.fill).attr("stroke",N=>N.strokeFill).attr("stroke-width",N=>N.strokeWidth),u.showDataLabel)if(u.chartOrientation==="horizontal"){let N=function(U,$){const{data:G,label:B}=U;return $*B.length*L<=G.width-10};X(N,"fitsHorizontally");const L=.7,P=k.data.map((U,$)=>({data:U,label:h[$].toString()})).filter(U=>U.data.width>0&&U.data.height>0),M=P.map(U=>{const{data:$}=U;let G=$.height*.7;for(;!N(U,G)&&G>0;)G-=1;return G}),F=Math.floor(Math.min(...M));I.selectAll("text").data(P).enter().append("text").attr("x",U=>U.data.x+U.data.width-10).attr("y",U=>U.data.y+U.data.height/2).attr("text-anchor","end").attr("dominant-baseline","middle").attr("fill","black").attr("font-size",`${F}px`).text(U=>U.label)}else{let N=function(U,$,G){const{data:B,label:Z}=U,Y=$*Z.length*.7,W=B.x+B.width/2,Q=W-Y/2,V=W+Y/2,j=Q>=B.x&&V<=B.x+B.width,ee=B.y+G+$<=B.y+B.height;return j&&ee};X(N,"fitsInBar");const L=10,P=k.data.map((U,$)=>({data:U,label:h[$].toString()})).filter(U=>U.data.width>0&&U.data.height>0),M=P.map(U=>{const{data:$,label:G}=U;let B=$.width/(G.length*.7);for(;!N(U,B,L)&&B>0;)B-=1;return B}),F=Math.floor(Math.min(...M));I.selectAll("text").data(P).enter().append("text").attr("x",U=>U.data.x+U.data.width/2).attr("y",U=>U.data.y+L).attr("text-anchor","middle").attr("dominant-baseline","hanging").attr("fill","black").attr("font-size",`${F}px`).text(U=>U.label)}break;case"text":I.selectAll("text").data(k.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",N=>N.fill).attr("font-size",N=>N.fontSize).attr("dominant-baseline",N=>f(N.verticalPos)).attr("text-anchor",N=>p(N.horizontalPos)).attr("transform",N=>m(N)).text(N=>N.text);break;case"path":I.selectAll("path").data(k.data).enter().append("path").attr("d",N=>N.path).attr("fill",N=>N.fill?N.fill:"none").attr("stroke",N=>N.strokeFill).attr("stroke-width",N=>N.strokeWidth);break}}},"draw"),lWi={draw:oWi},cWi={parser:Xji,db:sWi,renderer:lWi};const uWi=Object.freeze(Object.defineProperty({__proto__:null,diagram:cWi},Symbol.toStringTag,{value:"Module"}));var Cut=function(){var e=X(function(Ge,Ye,Ae,Xe){for(Ae=Ae||{},Xe=Ge.length;Xe--;Ae[Ge[Xe]]=Ye);return Ae},"o"),t=[1,3],r=[1,4],a=[1,5],s=[1,6],o=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],u=[1,22],h=[2,7],f=[1,26],p=[1,27],m=[1,28],b=[1,29],_=[1,33],w=[1,34],S=[1,35],C=[1,36],A=[1,37],k=[1,38],I=[1,24],N=[1,31],L=[1,32],P=[1,30],M=[1,39],F=[1,40],U=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],$=[1,61],G=[89,90],B=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Z=[27,29],z=[1,70],Y=[1,71],W=[1,72],Q=[1,73],V=[1,74],j=[1,75],ee=[1,76],te=[1,83],ne=[1,80],se=[1,84],ie=[1,85],ge=[1,86],ce=[1,87],be=[1,88],ve=[1,89],De=[1,90],ye=[1,91],Ee=[1,92],he=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],we=[63,64],Ce=[1,101],Ie=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],Le=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Fe=[1,110],Ve=[1,106],Oe=[1,107],Dt=[1,108],ot=[1,109],sn=[1,111],Kt=[1,116],Ft=[1,117],Je=[1,114],ht=[1,115],et={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:X(function(Ye,Ae,Xe,fe,Qe,Ke,mt){var lt=Ke.length-1;switch(Qe){case 4:this.$=Ke[lt].trim(),fe.setAccTitle(this.$);break;case 5:case 6:this.$=Ke[lt].trim(),fe.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:fe.setDirection("TB");break;case 18:fe.setDirection("BT");break;case 19:fe.setDirection("RL");break;case 20:fe.setDirection("LR");break;case 21:fe.addRequirement(Ke[lt-3],Ke[lt-4]);break;case 22:fe.addRequirement(Ke[lt-5],Ke[lt-6]),fe.setClass([Ke[lt-5]],Ke[lt-3]);break;case 23:fe.setNewReqId(Ke[lt-2]);break;case 24:fe.setNewReqText(Ke[lt-2]);break;case 25:fe.setNewReqRisk(Ke[lt-2]);break;case 26:fe.setNewReqVerifyMethod(Ke[lt-2]);break;case 29:this.$=fe.RequirementType.REQUIREMENT;break;case 30:this.$=fe.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=fe.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=fe.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=fe.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=fe.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=fe.RiskLevel.LOW_RISK;break;case 36:this.$=fe.RiskLevel.MED_RISK;break;case 37:this.$=fe.RiskLevel.HIGH_RISK;break;case 38:this.$=fe.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=fe.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=fe.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=fe.VerifyType.VERIFY_TEST;break;case 42:fe.addElement(Ke[lt-3]);break;case 43:fe.addElement(Ke[lt-5]),fe.setClass([Ke[lt-5]],Ke[lt-3]);break;case 44:fe.setNewElementType(Ke[lt-2]);break;case 45:fe.setNewElementDocRef(Ke[lt-2]);break;case 48:fe.addRelationship(Ke[lt-2],Ke[lt],Ke[lt-4]);break;case 49:fe.addRelationship(Ke[lt-2],Ke[lt-4],Ke[lt]);break;case 50:this.$=fe.Relationships.CONTAINS;break;case 51:this.$=fe.Relationships.COPIES;break;case 52:this.$=fe.Relationships.DERIVES;break;case 53:this.$=fe.Relationships.SATISFIES;break;case 54:this.$=fe.Relationships.VERIFIES;break;case 55:this.$=fe.Relationships.REFINES;break;case 56:this.$=fe.Relationships.TRACES;break;case 57:this.$=Ke[lt-2],fe.defineClass(Ke[lt-1],Ke[lt]);break;case 58:fe.setClass(Ke[lt-1],Ke[lt]);break;case 59:fe.setClass([Ke[lt-2]],Ke[lt]);break;case 60:case 62:this.$=[Ke[lt]];break;case 61:case 63:this.$=Ke[lt-2].concat([Ke[lt]]);break;case 64:this.$=Ke[lt-2],fe.setCssStyle(Ke[lt-1],Ke[lt]);break;case 65:this.$=[Ke[lt]];break;case 66:Ke[lt-2].push(Ke[lt]),this.$=Ke[lt-2];break;case 68:this.$=Ke[lt-1]+Ke[lt];break}},"anonymous"),table:[{3:1,4:2,6:t,9:r,11:a,13:s},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:r,11:a,13:s},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(o,[2,6]),{3:12,4:2,6:t,9:r,11:a,13:s},{1:[2,2]},{4:17,5:u,7:13,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:f,22:p,23:m,24:b,25:23,33:25,41:_,42:w,43:S,44:C,45:A,46:k,54:I,72:N,74:L,77:P,89:M,90:F},e(o,[2,4]),e(o,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:u,7:42,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:f,22:p,23:m,24:b,25:23,33:25,41:_,42:w,43:S,44:C,45:A,46:k,54:I,72:N,74:L,77:P,89:M,90:F},{4:17,5:u,7:43,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:f,22:p,23:m,24:b,25:23,33:25,41:_,42:w,43:S,44:C,45:A,46:k,54:I,72:N,74:L,77:P,89:M,90:F},{4:17,5:u,7:44,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:f,22:p,23:m,24:b,25:23,33:25,41:_,42:w,43:S,44:C,45:A,46:k,54:I,72:N,74:L,77:P,89:M,90:F},{4:17,5:u,7:45,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:f,22:p,23:m,24:b,25:23,33:25,41:_,42:w,43:S,44:C,45:A,46:k,54:I,72:N,74:L,77:P,89:M,90:F},{4:17,5:u,7:46,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:f,22:p,23:m,24:b,25:23,33:25,41:_,42:w,43:S,44:C,45:A,46:k,54:I,72:N,74:L,77:P,89:M,90:F},{4:17,5:u,7:47,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:f,22:p,23:m,24:b,25:23,33:25,41:_,42:w,43:S,44:C,45:A,46:k,54:I,72:N,74:L,77:P,89:M,90:F},{4:17,5:u,7:48,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:f,22:p,23:m,24:b,25:23,33:25,41:_,42:w,43:S,44:C,45:A,46:k,54:I,72:N,74:L,77:P,89:M,90:F},{4:17,5:u,7:49,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:f,22:p,23:m,24:b,25:23,33:25,41:_,42:w,43:S,44:C,45:A,46:k,54:I,72:N,74:L,77:P,89:M,90:F},{4:17,5:u,7:50,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:f,22:p,23:m,24:b,25:23,33:25,41:_,42:w,43:S,44:C,45:A,46:k,54:I,72:N,74:L,77:P,89:M,90:F},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(U,[2,17]),e(U,[2,18]),e(U,[2,19]),e(U,[2,20]),{30:60,33:62,75:$,89:M,90:F},{30:63,33:62,75:$,89:M,90:F},{30:64,33:62,75:$,89:M,90:F},e(G,[2,29]),e(G,[2,30]),e(G,[2,31]),e(G,[2,32]),e(G,[2,33]),e(G,[2,34]),e(B,[2,81]),e(B,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Z,[2,79]),e(Z,[2,80]),{27:[1,67],29:[1,68]},e(Z,[2,85]),e(Z,[2,86]),{62:69,65:z,66:Y,67:W,68:Q,69:V,70:j,71:ee},{62:77,65:z,66:Y,67:W,68:Q,69:V,70:j,71:ee},{30:78,33:62,75:$,89:M,90:F},{73:79,75:te,76:ne,78:81,79:82,80:se,81:ie,82:ge,83:ce,84:be,85:ve,86:De,87:ye,88:Ee},e(he,[2,60]),e(he,[2,62]),{73:93,75:te,76:ne,78:81,79:82,80:se,81:ie,82:ge,83:ce,84:be,85:ve,86:De,87:ye,88:Ee},{30:94,33:62,75:$,76:ne,89:M,90:F},{5:[1,95]},{30:96,33:62,75:$,89:M,90:F},{5:[1,97]},{30:98,33:62,75:$,89:M,90:F},{63:[1,99]},e(we,[2,50]),e(we,[2,51]),e(we,[2,52]),e(we,[2,53]),e(we,[2,54]),e(we,[2,55]),e(we,[2,56]),{64:[1,100]},e(U,[2,59],{76:ne}),e(U,[2,64],{76:Ce}),{33:103,75:[1,102],89:M,90:F},e(Ie,[2,65],{79:104,75:te,80:se,81:ie,82:ge,83:ce,84:be,85:ve,86:De,87:ye,88:Ee}),e(Le,[2,67]),e(Le,[2,69]),e(Le,[2,70]),e(Le,[2,71]),e(Le,[2,72]),e(Le,[2,73]),e(Le,[2,74]),e(Le,[2,75]),e(Le,[2,76]),e(Le,[2,77]),e(Le,[2,78]),e(U,[2,57],{76:Ce}),e(U,[2,58],{76:ne}),{5:Fe,28:105,31:Ve,34:Oe,36:Dt,38:ot,40:sn},{27:[1,112],76:ne},{5:Kt,40:Ft,56:113,57:Je,59:ht},{27:[1,118],76:ne},{33:119,89:M,90:F},{33:120,89:M,90:F},{75:te,78:121,79:82,80:se,81:ie,82:ge,83:ce,84:be,85:ve,86:De,87:ye,88:Ee},e(he,[2,61]),e(he,[2,63]),e(Le,[2,68]),e(U,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:Fe,28:126,31:Ve,34:Oe,36:Dt,38:ot,40:sn},e(U,[2,28]),{5:[1,127]},e(U,[2,42]),{32:[1,128]},{32:[1,129]},{5:Kt,40:Ft,56:130,57:Je,59:ht},e(U,[2,47]),{5:[1,131]},e(U,[2,48]),e(U,[2,49]),e(Ie,[2,66],{79:104,75:te,80:se,81:ie,82:ge,83:ce,84:be,85:ve,86:De,87:ye,88:Ee}),{33:132,89:M,90:F},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(U,[2,27]),{5:Fe,28:145,31:Ve,34:Oe,36:Dt,38:ot,40:sn},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(U,[2,46]),{5:Kt,40:Ft,56:152,57:Je,59:ht},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(U,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(U,[2,43]),{5:Fe,28:159,31:Ve,34:Oe,36:Dt,38:ot,40:sn},{5:Fe,28:160,31:Ve,34:Oe,36:Dt,38:ot,40:sn},{5:Fe,28:161,31:Ve,34:Oe,36:Dt,38:ot,40:sn},{5:Fe,28:162,31:Ve,34:Oe,36:Dt,38:ot,40:sn},{5:Kt,40:Ft,56:163,57:Je,59:ht},{5:Kt,40:Ft,56:164,57:Je,59:ht},e(U,[2,23]),e(U,[2,24]),e(U,[2,25]),e(U,[2,26]),e(U,[2,44]),e(U,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:X(function(Ye,Ae){if(Ae.recoverable)this.trace(Ye);else{var Xe=new Error(Ye);throw Xe.hash=Ae,Xe}},"parseError"),parse:X(function(Ye){var Ae=this,Xe=[0],fe=[],Qe=[null],Ke=[],mt=this.table,lt="",$t=0,Ut=0,Jt=2,wn=1,Vn=Ke.slice.call(arguments,1),Wn=Object.create(this.lexer),Dn={yy:{}};for(var zn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,zn)&&(Dn.yy[zn]=this.yy[zn]);Wn.setInput(Ye,Dn.yy),Dn.yy.lexer=Wn,Dn.yy.parser=this,typeof Wn.yylloc>"u"&&(Wn.yylloc={});var vn=Wn.yylloc;Ke.push(vn);var Cn=Wn.options&&Wn.options.ranges;typeof Dn.yy.parseError=="function"?this.parseError=Dn.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ar(Os){Xe.length=Xe.length-2*Os,Qe.length=Qe.length-Os,Ke.length=Ke.length-Os}X(Ar,"popStack");function ur(){var Os;return Os=fe.pop()||Wn.lex()||wn,typeof Os!="number"&&(Os instanceof Array&&(fe=Os,Os=fe.pop()),Os=Ae.symbols_[Os]||Os),Os}X(ur,"lex");for(var On,Ir,Ln,pr,Cr={},Zr,Pr,Ci,ds;;){if(Ir=Xe[Xe.length-1],this.defaultActions[Ir]?Ln=this.defaultActions[Ir]:((On===null||typeof On>"u")&&(On=ur()),Ln=mt[Ir]&&mt[Ir][On]),typeof Ln>"u"||!Ln.length||!Ln[0]){var ta="";ds=[];for(Zr in mt[Ir])this.terminals_[Zr]&&Zr>Jt&&ds.push("'"+this.terminals_[Zr]+"'");Wn.showPosition?ta="Parse error on line "+($t+1)+`: `+Wn.showPosition()+` Expecting `+ds.join(", ")+", got '"+(this.terminals_[On]||On)+"'":ta="Parse error on line "+($t+1)+": Unexpected "+(On==wn?"end of input":"'"+(this.terminals_[On]||On)+"'"),this.parseError(ta,{text:Wn.match,token:this.terminals_[On]||On,line:Wn.yylineno,loc:vn,expected:ds})}if(Ln[0]instanceof Array&&Ln.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ir+", token: "+On);switch(Ln[0]){case 1:Xe.push(On),Qe.push(Wn.yytext),Ke.push(Wn.yylloc),Xe.push(Ln[1]),On=null,Ut=Wn.yyleng,lt=Wn.yytext,$t=Wn.yylineno,vn=Wn.yylloc;break;case 2:if(Pr=this.productions_[Ln[1]][1],Cr.$=Qe[Qe.length-Pr],Cr._$={first_line:Ke[Ke.length-(Pr||1)].first_line,last_line:Ke[Ke.length-1].last_line,first_column:Ke[Ke.length-(Pr||1)].first_column,last_column:Ke[Ke.length-1].last_column},Cn&&(Cr._$.range=[Ke[Ke.length-(Pr||1)].range[0],Ke[Ke.length-1].range[1]]),pr=this.performAction.apply(Cr,[lt,Ut,$t,Dn.yy,Ln[1],Qe,Ke].concat(Vn)),typeof pr<"u")return pr;Pr&&(Xe=Xe.slice(0,-1*Pr*2),Qe=Qe.slice(0,-1*Pr),Ke=Ke.slice(0,-1*Pr)),Xe.push(this.productions_[Ln[1]][0]),Qe.push(Cr.$),Ke.push(Cr._$),Ci=mt[Xe[Xe.length-2]][Xe[Xe.length-1]],Xe.push(Ci);break;case 3:return!0}}return!0},"parse")},qe=function(){var Ge={EOF:1,parseError:X(function(Ae,Xe){if(this.yy.parser)this.yy.parser.parseError(Ae,Xe);else throw new Error(Ae)},"parseError"),setInput:X(function(Ye,Ae){return this.yy=Ae||this.yy||{},this._input=Ye,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:X(function(){var Ye=this._input[0];this.yytext+=Ye,this.yyleng++,this.offset++,this.match+=Ye,this.matched+=Ye;var Ae=Ye.match(/(?:\r\n?|\n).*/g);return Ae?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ye},"input"),unput:X(function(Ye){var Ae=Ye.length,Xe=Ye.split(/(?:\r\n?|\n)/g);this._input=Ye+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ae),this.offset-=Ae;var fe=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Xe.length-1&&(this.yylineno-=Xe.length-1);var Qe=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Xe?(Xe.length===fe.length?this.yylloc.first_column:0)+fe[fe.length-Xe.length].length-Xe[0].length:this.yylloc.first_column-Ae},this.options.ranges&&(this.yylloc.range=[Qe[0],Qe[0]+this.yyleng-Ae]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(Ye){this.unput(this.match.slice(Ye))},"less"),pastInput:X(function(){var Ye=this.matched.substr(0,this.matched.length-this.match.length);return(Ye.length>20?"...":"")+Ye.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var Ye=this.match;return Ye.length<20&&(Ye+=this._input.substr(0,20-Ye.length)),(Ye.substr(0,20)+(Ye.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var Ye=this.pastInput(),Ae=new Array(Ye.length+1).join("-");return Ye+this.upcomingInput()+` `+Ae+"^"},"showPosition"),test_match:X(function(Ye,Ae){var Xe,fe,Qe;if(this.options.backtrack_lexer&&(Qe={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Qe.yylloc.range=this.yylloc.range.slice(0))),fe=Ye[0].match(/(?:\r\n?|\n).*/g),fe&&(this.yylineno+=fe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:fe?fe[fe.length-1].length-fe[fe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ye[0].length},this.yytext+=Ye[0],this.match+=Ye[0],this.matches=Ye,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Ye[0].length),this.matched+=Ye[0],Xe=this.performAction.call(this,this.yy,this,Ae,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Xe)return Xe;if(this._backtrack){for(var Ke in Qe)this[Ke]=Qe[Ke];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ye,Ae,Xe,fe;this._more||(this.yytext="",this.match="");for(var Qe=this._currentRules(),Ke=0;KeAe[0].length)){if(Ae=Xe,fe=Ke,this.options.backtrack_lexer){if(Ye=this.test_match(Xe,Qe[Ke]),Ye!==!1)return Ye;if(this._backtrack){Ae=!1;continue}else return!1}else if(!this.options.flex)break}return Ae?(Ye=this.test_match(Ae,Qe[fe]),Ye!==!1?Ye:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var Ae=this.next();return Ae||this.lex()},"lex"),begin:X(function(Ae){this.conditionStack.push(Ae)},"begin"),popState:X(function(){var Ae=this.conditionStack.length-1;return Ae>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(Ae){return Ae=this.conditionStack.length-1-Math.abs(Ae||0),Ae>=0?this.conditionStack[Ae]:"INITIAL"},"topState"),pushState:X(function(Ae){this.begin(Ae)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function(Ae,Xe,fe,Qe){switch(fe){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return Xe.yytext=Xe.yytext.trim(),89;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};return Ge}();et.lexer=qe;function He(){this.yy={}}return X(He,"Parser"),He.prototype=et,et.Parser=He,new He}();Cut.parser=Cut;var hWi=Cut,nj,dWi=(nj=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=N1,this.getAccTitle=Mp,this.setAccDescription=Pp,this.getAccDescription=Bp,this.setDiagramTitle=Og,this.getDiagramTitle=P1,this.getConfig=X(()=>nn().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}getDirection(){return this.direction}setDirection(t){this.direction=t}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(t,r){return this.requirements.has(t)||this.requirements.set(t,{name:t,type:r,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(t)}getRequirements(){return this.requirements}setNewReqId(t){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=t)}setNewReqText(t){this.latestRequirement!==void 0&&(this.latestRequirement.text=t)}setNewReqRisk(t){this.latestRequirement!==void 0&&(this.latestRequirement.risk=t)}setNewReqVerifyMethod(t){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=t)}addElement(t){return this.elements.has(t)||(this.elements.set(t,{name:t,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),it.info("Added new element: ",t)),this.resetLatestElement(),this.elements.get(t)}getElements(){return this.elements}setNewElementType(t){this.latestElement!==void 0&&(this.latestElement.type=t)}setNewElementDocRef(t){this.latestElement!==void 0&&(this.latestElement.docRef=t)}addRelationship(t,r,a){this.relations.push({type:t,src:r,dst:a})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,M1()}setCssStyle(t,r){for(const a of t){const s=this.requirements.get(a)??this.elements.get(a);if(!r||!s)return;for(const o of r)o.includes(",")?s.cssStyles.push(...o.split(",")):s.cssStyles.push(o)}}setClass(t,r){var a;for(const s of t){const o=this.requirements.get(s)??this.elements.get(s);if(o)for(const u of r){o.classes.push(u);const h=(a=this.classes.get(u))==null?void 0:a.styles;h&&o.cssStyles.push(...h)}}}defineClass(t,r){for(const a of t){let s=this.classes.get(a);s===void 0&&(s={id:a,styles:[],textStyles:[]},this.classes.set(a,s)),r&&r.forEach(function(o){if(/color/.exec(o)){const u=o.replace("fill","bgFill");s.textStyles.push(u)}s.styles.push(o)}),this.requirements.forEach(o=>{o.classes.includes(a)&&o.cssStyles.push(...r.flatMap(u=>u.split(",")))}),this.elements.forEach(o=>{o.classes.includes(a)&&o.cssStyles.push(...r.flatMap(u=>u.split(",")))})}}getClasses(){return this.classes}getData(){var s,o,u,h;const t=nn(),r=[],a=[];for(const f of this.requirements.values()){const p=f;p.id=f.name,p.cssStyles=f.cssStyles,p.cssClasses=f.classes.join(" "),p.shape="requirementBox",p.look=t.look,r.push(p)}for(const f of this.elements.values()){const p=f;p.shape="requirementBox",p.look=t.look,p.id=f.name,p.cssStyles=f.cssStyles,p.cssClasses=f.classes.join(" "),r.push(p)}for(const f of this.relations){let p=0;const m=f.type===this.Relationships.CONTAINS,b={id:`${f.src}-${f.dst}-${p}`,start:((s=this.requirements.get(f.src))==null?void 0:s.name)??((o=this.elements.get(f.src))==null?void 0:o.name),end:((u=this.requirements.get(f.dst))==null?void 0:u.name)??((h=this.elements.get(f.dst))==null?void 0:h.name),label:`<<${f.type}>>`,classes:"relationshipLine",style:["fill:none",m?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:m?"normal":"dashed",arrowTypeStart:m?"requirement_contains":"",arrowTypeEnd:m?"":"requirement_arrow",look:t.look};a.push(b),p++}return{nodes:r,edges:a,other:{},config:t,direction:this.getDirection()}}},X(nj,"RequirementDB"),nj),fWi=X(e=>` marker { fill: ${e.relationColor}; stroke: ${e.relationColor}; } marker.cross { stroke: ${e.lineColor}; } svg { font-family: ${e.fontFamily}; font-size: ${e.fontSize}; } .reqBox { fill: ${e.requirementBackground}; fill-opacity: 1.0; stroke: ${e.requirementBorderColor}; stroke-width: ${e.requirementBorderSize}; } .reqTitle, .reqLabel{ fill: ${e.requirementTextColor}; } .reqLabelBox { fill: ${e.relationLabelBackground}; fill-opacity: 1.0; } .req-title-line { stroke: ${e.requirementBorderColor}; stroke-width: ${e.requirementBorderSize}; } .relationshipLine { stroke: ${e.relationColor}; stroke-width: 1; } .relationshipLabel { fill: ${e.relationLabelColor}; } .divider { stroke: ${e.nodeBorder}; stroke-width: 1; } .label { font-family: ${e.fontFamily}; color: ${e.nodeTextColor||e.textColor}; } .label text,span { fill: ${e.nodeTextColor||e.textColor}; color: ${e.nodeTextColor||e.textColor}; } .labelBkg { background-color: ${e.edgeLabelBackground}; } `,"getStyles"),pWi=fWi,UKn={};KCe(UKn,{draw:()=>gWi});var gWi=X(async function(e,t,r,a){it.info("REF0:"),it.info("Drawing requirement diagram (unified)",t);const{securityLevel:s,state:o,layout:u}=nn(),h=a.db.getData(),f=eK(t,s);h.type=a.type,h.layoutAlgorithm=hce(u),h.nodeSpacing=(o==null?void 0:o.nodeSpacing)??50,h.rankSpacing=(o==null?void 0:o.rankSpacing)??50,h.markers=["requirement_contains","requirement_arrow"],h.diagramId=t,await $W(h,f);const p=8;Vo.insertTitle(f,"requirementDiagramTitleText",(o==null?void 0:o.titleTopMargin)??25,a.db.getDiagramTitle()),U$(f,p,"requirementDiagram",(o==null?void 0:o.useMaxWidth)??!0)},"draw"),mWi={parser:hWi,get db(){return new dWi},renderer:UKn,styles:pWi};const bWi=Object.freeze(Object.defineProperty({__proto__:null,diagram:mWi},Symbol.toStringTag,{value:"Module"}));var Aut=function(){var e=X(function(Ee,he,we,Ce){for(we=we||{},Ce=Ee.length;Ce--;we[Ee[Ce]]=he);return we},"o"),t=[1,2],r=[1,3],a=[1,4],s=[2,4],o=[1,9],u=[1,11],h=[1,13],f=[1,14],p=[1,16],m=[1,17],b=[1,18],_=[1,24],w=[1,25],S=[1,26],C=[1,27],A=[1,28],k=[1,29],I=[1,30],N=[1,31],L=[1,32],P=[1,33],M=[1,34],F=[1,35],U=[1,36],$=[1,37],G=[1,38],B=[1,39],Z=[1,41],z=[1,42],Y=[1,43],W=[1,44],Q=[1,45],V=[1,46],j=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],ee=[2,71],te=[4,5,16,50,52,53],ne=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],se=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],ie=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],ge=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],ce=[69,70,71],be=[1,127],ve={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:X(function(he,we,Ce,Ie,Le,Fe,Ve){var Oe=Fe.length-1;switch(Le){case 3:return Ie.apply(Fe[Oe]),Fe[Oe];case 4:case 9:this.$=[];break;case 5:case 10:Fe[Oe-1].push(Fe[Oe]),this.$=Fe[Oe-1];break;case 6:case 7:case 11:case 12:this.$=Fe[Oe];break;case 8:case 13:this.$=[];break;case 15:Fe[Oe].type="createParticipant",this.$=Fe[Oe];break;case 16:Fe[Oe-1].unshift({type:"boxStart",boxData:Ie.parseBoxData(Fe[Oe-2])}),Fe[Oe-1].push({type:"boxEnd",boxText:Fe[Oe-2]}),this.$=Fe[Oe-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(Fe[Oe-2]),sequenceIndexStep:Number(Fe[Oe-1]),sequenceVisible:!0,signalType:Ie.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(Fe[Oe-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:Ie.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:Ie.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:Ie.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:Ie.LINETYPE.ACTIVE_START,actor:Fe[Oe-1].actor};break;case 23:this.$={type:"activeEnd",signalType:Ie.LINETYPE.ACTIVE_END,actor:Fe[Oe-1].actor};break;case 29:Ie.setDiagramTitle(Fe[Oe].substring(6)),this.$=Fe[Oe].substring(6);break;case 30:Ie.setDiagramTitle(Fe[Oe].substring(7)),this.$=Fe[Oe].substring(7);break;case 31:this.$=Fe[Oe].trim(),Ie.setAccTitle(this.$);break;case 32:case 33:this.$=Fe[Oe].trim(),Ie.setAccDescription(this.$);break;case 34:Fe[Oe-1].unshift({type:"loopStart",loopText:Ie.parseMessage(Fe[Oe-2]),signalType:Ie.LINETYPE.LOOP_START}),Fe[Oe-1].push({type:"loopEnd",loopText:Fe[Oe-2],signalType:Ie.LINETYPE.LOOP_END}),this.$=Fe[Oe-1];break;case 35:Fe[Oe-1].unshift({type:"rectStart",color:Ie.parseMessage(Fe[Oe-2]),signalType:Ie.LINETYPE.RECT_START}),Fe[Oe-1].push({type:"rectEnd",color:Ie.parseMessage(Fe[Oe-2]),signalType:Ie.LINETYPE.RECT_END}),this.$=Fe[Oe-1];break;case 36:Fe[Oe-1].unshift({type:"optStart",optText:Ie.parseMessage(Fe[Oe-2]),signalType:Ie.LINETYPE.OPT_START}),Fe[Oe-1].push({type:"optEnd",optText:Ie.parseMessage(Fe[Oe-2]),signalType:Ie.LINETYPE.OPT_END}),this.$=Fe[Oe-1];break;case 37:Fe[Oe-1].unshift({type:"altStart",altText:Ie.parseMessage(Fe[Oe-2]),signalType:Ie.LINETYPE.ALT_START}),Fe[Oe-1].push({type:"altEnd",signalType:Ie.LINETYPE.ALT_END}),this.$=Fe[Oe-1];break;case 38:Fe[Oe-1].unshift({type:"parStart",parText:Ie.parseMessage(Fe[Oe-2]),signalType:Ie.LINETYPE.PAR_START}),Fe[Oe-1].push({type:"parEnd",signalType:Ie.LINETYPE.PAR_END}),this.$=Fe[Oe-1];break;case 39:Fe[Oe-1].unshift({type:"parStart",parText:Ie.parseMessage(Fe[Oe-2]),signalType:Ie.LINETYPE.PAR_OVER_START}),Fe[Oe-1].push({type:"parEnd",signalType:Ie.LINETYPE.PAR_END}),this.$=Fe[Oe-1];break;case 40:Fe[Oe-1].unshift({type:"criticalStart",criticalText:Ie.parseMessage(Fe[Oe-2]),signalType:Ie.LINETYPE.CRITICAL_START}),Fe[Oe-1].push({type:"criticalEnd",signalType:Ie.LINETYPE.CRITICAL_END}),this.$=Fe[Oe-1];break;case 41:Fe[Oe-1].unshift({type:"breakStart",breakText:Ie.parseMessage(Fe[Oe-2]),signalType:Ie.LINETYPE.BREAK_START}),Fe[Oe-1].push({type:"breakEnd",optText:Ie.parseMessage(Fe[Oe-2]),signalType:Ie.LINETYPE.BREAK_END}),this.$=Fe[Oe-1];break;case 43:this.$=Fe[Oe-3].concat([{type:"option",optionText:Ie.parseMessage(Fe[Oe-1]),signalType:Ie.LINETYPE.CRITICAL_OPTION},Fe[Oe]]);break;case 45:this.$=Fe[Oe-3].concat([{type:"and",parText:Ie.parseMessage(Fe[Oe-1]),signalType:Ie.LINETYPE.PAR_AND},Fe[Oe]]);break;case 47:this.$=Fe[Oe-3].concat([{type:"else",altText:Ie.parseMessage(Fe[Oe-1]),signalType:Ie.LINETYPE.ALT_ELSE},Fe[Oe]]);break;case 48:Fe[Oe-3].draw="participant",Fe[Oe-3].type="addParticipant",Fe[Oe-3].description=Ie.parseMessage(Fe[Oe-1]),this.$=Fe[Oe-3];break;case 49:Fe[Oe-1].draw="participant",Fe[Oe-1].type="addParticipant",this.$=Fe[Oe-1];break;case 50:Fe[Oe-3].draw="actor",Fe[Oe-3].type="addParticipant",Fe[Oe-3].description=Ie.parseMessage(Fe[Oe-1]),this.$=Fe[Oe-3];break;case 51:Fe[Oe-1].draw="actor",Fe[Oe-1].type="addParticipant",this.$=Fe[Oe-1];break;case 52:Fe[Oe-1].type="destroyParticipant",this.$=Fe[Oe-1];break;case 53:Fe[Oe-1].draw="participant",Fe[Oe-1].type="addParticipant",this.$=Fe[Oe-1];break;case 54:this.$=[Fe[Oe-1],{type:"addNote",placement:Fe[Oe-2],actor:Fe[Oe-1].actor,text:Fe[Oe]}];break;case 55:Fe[Oe-2]=[].concat(Fe[Oe-1],Fe[Oe-1]).slice(0,2),Fe[Oe-2][0]=Fe[Oe-2][0].actor,Fe[Oe-2][1]=Fe[Oe-2][1].actor,this.$=[Fe[Oe-1],{type:"addNote",placement:Ie.PLACEMENT.OVER,actor:Fe[Oe-2].slice(0,2),text:Fe[Oe]}];break;case 56:this.$=[Fe[Oe-1],{type:"addLinks",actor:Fe[Oe-1].actor,text:Fe[Oe]}];break;case 57:this.$=[Fe[Oe-1],{type:"addALink",actor:Fe[Oe-1].actor,text:Fe[Oe]}];break;case 58:this.$=[Fe[Oe-1],{type:"addProperties",actor:Fe[Oe-1].actor,text:Fe[Oe]}];break;case 59:this.$=[Fe[Oe-1],{type:"addDetails",actor:Fe[Oe-1].actor,text:Fe[Oe]}];break;case 62:this.$=[Fe[Oe-2],Fe[Oe]];break;case 63:this.$=Fe[Oe];break;case 64:this.$=Ie.PLACEMENT.LEFTOF;break;case 65:this.$=Ie.PLACEMENT.RIGHTOF;break;case 66:this.$=[Fe[Oe-4],Fe[Oe-1],{type:"addMessage",from:Fe[Oe-4].actor,to:Fe[Oe-1].actor,signalType:Fe[Oe-3],msg:Fe[Oe],activate:!0},{type:"activeStart",signalType:Ie.LINETYPE.ACTIVE_START,actor:Fe[Oe-1].actor}];break;case 67:this.$=[Fe[Oe-4],Fe[Oe-1],{type:"addMessage",from:Fe[Oe-4].actor,to:Fe[Oe-1].actor,signalType:Fe[Oe-3],msg:Fe[Oe]},{type:"activeEnd",signalType:Ie.LINETYPE.ACTIVE_END,actor:Fe[Oe-4].actor}];break;case 68:this.$=[Fe[Oe-3],Fe[Oe-1],{type:"addMessage",from:Fe[Oe-3].actor,to:Fe[Oe-1].actor,signalType:Fe[Oe-2],msg:Fe[Oe]}];break;case 69:this.$={type:"addParticipant",actor:Fe[Oe-1],config:Fe[Oe]};break;case 70:this.$=Fe[Oe-1].trim();break;case 71:this.$={type:"addParticipant",actor:Fe[Oe]};break;case 72:this.$=Ie.LINETYPE.SOLID_OPEN;break;case 73:this.$=Ie.LINETYPE.DOTTED_OPEN;break;case 74:this.$=Ie.LINETYPE.SOLID;break;case 75:this.$=Ie.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=Ie.LINETYPE.DOTTED;break;case 77:this.$=Ie.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=Ie.LINETYPE.SOLID_CROSS;break;case 79:this.$=Ie.LINETYPE.DOTTED_CROSS;break;case 80:this.$=Ie.LINETYPE.SOLID_POINT;break;case 81:this.$=Ie.LINETYPE.DOTTED_POINT;break;case 82:this.$=Ie.parseMessage(Fe[Oe].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:r,6:a},{1:[3]},{3:5,4:t,5:r,6:a},{3:6,4:t,5:r,6:a},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:u,8:8,9:10,12:12,13:h,14:f,17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,55:Z,60:z,61:Y,62:W,63:Q,71:V},e(j,[2,5]),{9:47,12:12,13:h,14:f,17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,55:Z,60:z,61:Y,62:W,63:Q,71:V},e(j,[2,7]),e(j,[2,8]),e(j,[2,14]),{12:48,50:$,52:G,53:B},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:V},{22:55,71:V},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(j,[2,29]),e(j,[2,30]),{32:[1,61]},{34:[1,62]},e(j,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:V},{22:75,71:V},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:V},{22:92,71:V},{22:93,71:V},{22:94,71:V},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],ee),e(j,[2,6]),e(j,[2,15]),e(te,[2,9],{10:95}),e(j,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(j,[2,21]),{5:[1,99]},{5:[1,100]},e(j,[2,24]),e(j,[2,25]),e(j,[2,26]),e(j,[2,27]),e(j,[2,28]),e(j,[2,31]),e(j,[2,32]),e(ne,s,{7:101}),e(ne,s,{7:102}),e(ne,s,{7:103}),e(se,s,{40:104,7:105}),e(ie,s,{42:106,7:107}),e(ie,s,{7:107,42:108}),e(ge,s,{45:109,7:110}),e(ne,s,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],ee,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:V},e(ce,[2,72]),e(ce,[2,73]),e(ce,[2,74]),e(ce,[2,75]),e(ce,[2,76]),e(ce,[2,77]),e(ce,[2,78]),e(ce,[2,79]),e(ce,[2,80]),e(ce,[2,81]),{22:123,71:V},{22:125,59:124,71:V},{71:[2,64]},{71:[2,65]},{57:126,86:be},{57:128,86:be},{57:129,86:be},{57:130,86:be},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:$,52:G,53:B},{5:[1,136]},e(j,[2,19]),e(j,[2,20]),e(j,[2,22]),e(j,[2,23]),{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[1,137],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,55:Z,60:z,61:Y,62:W,63:Q,71:V},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[1,138],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,55:Z,60:z,61:Y,62:W,63:Q,71:V},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[1,139],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,55:Z,60:z,61:Y,62:W,63:Q,71:V},{16:[1,140]},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[2,46],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,49:[1,141],50:$,52:G,53:B,55:Z,60:z,61:Y,62:W,63:Q,71:V},{16:[1,142]},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[2,44],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,48:[1,143],50:$,52:G,53:B,55:Z,60:z,61:Y,62:W,63:Q,71:V},{16:[1,144]},{16:[1,145]},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[2,42],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,47:[1,146],50:$,52:G,53:B,55:Z,60:z,61:Y,62:W,63:Q,71:V},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[1,147],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,55:Z,60:z,61:Y,62:W,63:Q,71:V},{15:[1,148]},e(j,[2,49]),e(j,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(j,[2,51]),e(j,[2,52]),{22:151,71:V},{22:152,71:V},{57:153,86:be},{57:154,86:be},{57:155,86:be},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(j,[2,16]),e(te,[2,10]),{12:157,50:$,52:G,53:B},e(te,[2,12]),e(te,[2,13]),e(j,[2,18]),e(j,[2,34]),e(j,[2,35]),e(j,[2,36]),e(j,[2,37]),{15:[1,158]},e(j,[2,38]),{15:[1,159]},e(j,[2,39]),e(j,[2,40]),{15:[1,160]},e(j,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:be},{57:165,86:be},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:V},e(te,[2,11]),e(se,s,{7:105,40:167}),e(ie,s,{7:107,42:168}),e(ge,s,{7:110,45:169}),e(j,[2,48]),{5:[2,70]},e(j,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:X(function(he,we){if(we.recoverable)this.trace(he);else{var Ce=new Error(he);throw Ce.hash=we,Ce}},"parseError"),parse:X(function(he){var we=this,Ce=[0],Ie=[],Le=[null],Fe=[],Ve=this.table,Oe="",Dt=0,ot=0,sn=2,Kt=1,Ft=Fe.slice.call(arguments,1),Je=Object.create(this.lexer),ht={yy:{}};for(var et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,et)&&(ht.yy[et]=this.yy[et]);Je.setInput(he,ht.yy),ht.yy.lexer=Je,ht.yy.parser=this,typeof Je.yylloc>"u"&&(Je.yylloc={});var qe=Je.yylloc;Fe.push(qe);var He=Je.options&&Je.options.ranges;typeof ht.yy.parseError=="function"?this.parseError=ht.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ge(wn){Ce.length=Ce.length-2*wn,Le.length=Le.length-wn,Fe.length=Fe.length-wn}X(Ge,"popStack");function Ye(){var wn;return wn=Ie.pop()||Je.lex()||Kt,typeof wn!="number"&&(wn instanceof Array&&(Ie=wn,wn=Ie.pop()),wn=we.symbols_[wn]||wn),wn}X(Ye,"lex");for(var Ae,Xe,fe,Qe,Ke={},mt,lt,$t,Ut;;){if(Xe=Ce[Ce.length-1],this.defaultActions[Xe]?fe=this.defaultActions[Xe]:((Ae===null||typeof Ae>"u")&&(Ae=Ye()),fe=Ve[Xe]&&Ve[Xe][Ae]),typeof fe>"u"||!fe.length||!fe[0]){var Jt="";Ut=[];for(mt in Ve[Xe])this.terminals_[mt]&&mt>sn&&Ut.push("'"+this.terminals_[mt]+"'");Je.showPosition?Jt="Parse error on line "+(Dt+1)+`: `+Je.showPosition()+` Expecting `+Ut.join(", ")+", got '"+(this.terminals_[Ae]||Ae)+"'":Jt="Parse error on line "+(Dt+1)+": Unexpected "+(Ae==Kt?"end of input":"'"+(this.terminals_[Ae]||Ae)+"'"),this.parseError(Jt,{text:Je.match,token:this.terminals_[Ae]||Ae,line:Je.yylineno,loc:qe,expected:Ut})}if(fe[0]instanceof Array&&fe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Xe+", token: "+Ae);switch(fe[0]){case 1:Ce.push(Ae),Le.push(Je.yytext),Fe.push(Je.yylloc),Ce.push(fe[1]),Ae=null,ot=Je.yyleng,Oe=Je.yytext,Dt=Je.yylineno,qe=Je.yylloc;break;case 2:if(lt=this.productions_[fe[1]][1],Ke.$=Le[Le.length-lt],Ke._$={first_line:Fe[Fe.length-(lt||1)].first_line,last_line:Fe[Fe.length-1].last_line,first_column:Fe[Fe.length-(lt||1)].first_column,last_column:Fe[Fe.length-1].last_column},He&&(Ke._$.range=[Fe[Fe.length-(lt||1)].range[0],Fe[Fe.length-1].range[1]]),Qe=this.performAction.apply(Ke,[Oe,ot,Dt,ht.yy,fe[1],Le,Fe].concat(Ft)),typeof Qe<"u")return Qe;lt&&(Ce=Ce.slice(0,-1*lt*2),Le=Le.slice(0,-1*lt),Fe=Fe.slice(0,-1*lt)),Ce.push(this.productions_[fe[1]][0]),Le.push(Ke.$),Fe.push(Ke._$),$t=Ve[Ce[Ce.length-2]][Ce[Ce.length-1]],Ce.push($t);break;case 3:return!0}}return!0},"parse")},De=function(){var Ee={EOF:1,parseError:X(function(we,Ce){if(this.yy.parser)this.yy.parser.parseError(we,Ce);else throw new Error(we)},"parseError"),setInput:X(function(he,we){return this.yy=we||this.yy||{},this._input=he,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:X(function(){var he=this._input[0];this.yytext+=he,this.yyleng++,this.offset++,this.match+=he,this.matched+=he;var we=he.match(/(?:\r\n?|\n).*/g);return we?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),he},"input"),unput:X(function(he){var we=he.length,Ce=he.split(/(?:\r\n?|\n)/g);this._input=he+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-we),this.offset-=we;var Ie=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Ce.length-1&&(this.yylineno-=Ce.length-1);var Le=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Ce?(Ce.length===Ie.length?this.yylloc.first_column:0)+Ie[Ie.length-Ce.length].length-Ce[0].length:this.yylloc.first_column-we},this.options.ranges&&(this.yylloc.range=[Le[0],Le[0]+this.yyleng-we]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(he){this.unput(this.match.slice(he))},"less"),pastInput:X(function(){var he=this.matched.substr(0,this.matched.length-this.match.length);return(he.length>20?"...":"")+he.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var he=this.match;return he.length<20&&(he+=this._input.substr(0,20-he.length)),(he.substr(0,20)+(he.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var he=this.pastInput(),we=new Array(he.length+1).join("-");return he+this.upcomingInput()+` `+we+"^"},"showPosition"),test_match:X(function(he,we){var Ce,Ie,Le;if(this.options.backtrack_lexer&&(Le={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Le.yylloc.range=this.yylloc.range.slice(0))),Ie=he[0].match(/(?:\r\n?|\n).*/g),Ie&&(this.yylineno+=Ie.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ie?Ie[Ie.length-1].length-Ie[Ie.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+he[0].length},this.yytext+=he[0],this.match+=he[0],this.matches=he,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(he[0].length),this.matched+=he[0],Ce=this.performAction.call(this,this.yy,this,we,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ce)return Ce;if(this._backtrack){for(var Fe in Le)this[Fe]=Le[Fe];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var he,we,Ce,Ie;this._more||(this.yytext="",this.match="");for(var Le=this._currentRules(),Fe=0;Fewe[0].length)){if(we=Ce,Ie=Fe,this.options.backtrack_lexer){if(he=this.test_match(Ce,Le[Fe]),he!==!1)return he;if(this._backtrack){we=!1;continue}else return!1}else if(!this.options.flex)break}return we?(he=this.test_match(we,Le[Ie]),he!==!1?he:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var we=this.next();return we||this.lex()},"lex"),begin:X(function(we){this.conditionStack.push(we)},"begin"),popState:X(function(){var we=this.conditionStack.length-1;return we>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(we){return we=this.conditionStack.length-1-Math.abs(we||0),we>=0?this.conditionStack[we]:"INITIAL"},"topState"),pushState:X(function(we){this.begin(we)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function(we,Ce,Ie,Le){switch(Ie){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 19;case 7:return this.begin("CONFIG"),73;case 8:return 74;case 9:return this.popState(),this.popState(),75;case 10:return Ce.yytext=Ce.yytext.trim(),71;case 11:return Ce.yytext=Ce.yytext.trim(),this.begin("ALIAS"),71;case 12:return this.begin("LINE"),14;case 13:return this.begin("ID"),50;case 14:return this.begin("ID"),52;case 15:return 13;case 16:return this.begin("ID"),53;case 17:return Ce.yytext=Ce.yytext.trim(),this.begin("ALIAS"),71;case 18:return this.popState(),this.popState(),this.begin("LINE"),51;case 19:return this.popState(),this.popState(),5;case 20:return this.begin("LINE"),36;case 21:return this.begin("LINE"),37;case 22:return this.begin("LINE"),38;case 23:return this.begin("LINE"),39;case 24:return this.begin("LINE"),49;case 25:return this.begin("LINE"),41;case 26:return this.begin("LINE"),43;case 27:return this.begin("LINE"),48;case 28:return this.begin("LINE"),44;case 29:return this.begin("LINE"),47;case 30:return this.begin("LINE"),46;case 31:return this.popState(),15;case 32:return 16;case 33:return 66;case 34:return 67;case 35:return 60;case 36:return 61;case 37:return 62;case 38:return 63;case 39:return 58;case 40:return 55;case 41:return this.begin("ID"),21;case 42:return this.begin("ID"),23;case 43:return 29;case 44:return 30;case 45:return this.begin("acc_title"),31;case 46:return this.popState(),"acc_title_value";case 47:return this.begin("acc_descr"),33;case 48:return this.popState(),"acc_descr_value";case 49:this.begin("acc_descr_multiline");break;case 50:this.popState();break;case 51:return"acc_descr_multiline_value";case 52:return 6;case 53:return 18;case 54:return 20;case 55:return 65;case 56:return 5;case 57:return Ce.yytext=Ce.yytext.trim(),71;case 58:return 78;case 59:return 79;case 60:return 80;case 61:return 81;case 62:return 76;case 63:return 77;case 64:return 82;case 65:return 83;case 66:return 84;case 67:return 85;case 68:return 86;case 69:return 86;case 70:return 69;case 71:return 70;case 72:return 5;case 73:return"INVALID"}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^\<->\->:\n,;@]+?([\-]*[^\<->\->:\n,;@]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^<\->\->:\n,;]+?([\-]*[^<\->\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[50,51],inclusive:!1},acc_descr:{rules:[48],inclusive:!1},acc_title:{rules:[46],inclusive:!1},ID:{rules:[2,3,7,10,11,17],inclusive:!1},ALIAS:{rules:[2,3,18,19],inclusive:!1},LINE:{rules:[2,3,31],inclusive:!1},CONFIG:{rules:[8,9],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,12,13,14,15,16,20,21,22,23,24,25,26,27,28,29,30,32,33,34,35,36,37,38,39,40,41,42,43,44,45,47,49,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73],inclusive:!0}}};return Ee}();ve.lexer=De;function ye(){this.yy={}}return X(ye,"Parser"),ye.prototype=ve,ve.Parser=ye,new ye}();Aut.parser=Aut;var yWi=Aut,vWi={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34},_Wi={FILLED:0,OPEN:1},wWi={LEFTOF:0,RIGHTOF:1,OVER:2},uEe={ACTOR:"actor",CONTROL:"control",DATABASE:"database",ENTITY:"entity"},rj,EWi=(rj=class{constructor(){this.state=new gYn(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=N1,this.setAccDescription=Pp,this.setDiagramTitle=Og,this.getAccTitle=Mp,this.getAccDescription=Bp,this.getDiagramTitle=P1,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(nn().wrap),this.LINETYPE=vWi,this.ARROWTYPE=_Wi,this.PLACEMENT=wWi}addBox(t){this.state.records.boxes.push({name:t.text,wrap:t.wrap??this.autoWrap(),fill:t.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(t,r,a,s,o){let u=this.state.records.currentBox,h;if(o!==void 0){let p;o.includes(` `)?p=o+` `:p=`{ `+o+` }`,h=fAe(p,{schema:dAe})}s=(h==null?void 0:h.type)??s;const f=this.state.records.actors.get(t);if(f){if(this.state.records.currentBox&&f.box&&this.state.records.currentBox!==f.box)throw new Error(`A same participant should only be defined in one Box: ${f.name} can't be in '${f.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(u=f.box?f.box:this.state.records.currentBox,f.box=u,f&&r===f.name&&a==null)return}if((a==null?void 0:a.text)==null&&(a={text:r,type:s}),(s==null||a.text==null)&&(a={text:r,type:s}),this.state.records.actors.set(t,{box:u,name:r,description:a.text,wrap:a.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:s??"participant"}),this.state.records.prevActor){const p=this.state.records.actors.get(this.state.records.prevActor);p&&(p.nextActor=t)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(t),this.state.records.prevActor=t}activationCount(t){let r,a=0;if(!t)return 0;for(r=0;r>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},h}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:r,message:(a==null?void 0:a.text)??"",wrap:(a==null?void 0:a.wrap)??this.autoWrap(),type:s,activate:o}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(t=>t.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(t){return this.state.records.actors.get(t)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(t){this.state.records.wrapEnabled=t}extractWrap(t){if(t===void 0)return{};t=t.trim();const r=/^:?wrap:/.exec(t)!==null?!0:/^:?nowrap:/.exec(t)!==null?!1:void 0;return{cleanedText:(r===void 0?t:t.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:r}}autoWrap(){var t;return this.state.records.wrapEnabled!==void 0?this.state.records.wrapEnabled:((t=nn().sequence)==null?void 0:t.wrap)??!1}clear(){this.state.reset(),M1()}parseMessage(t){const r=t.trim(),{wrap:a,cleanedText:s}=this.extractWrap(r),o={text:s,wrap:a};return it.debug(`parseMessage: ${JSON.stringify(o)}`),o}parseBoxData(t){const r=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t);let a=r!=null&&r[1]?r[1].trim():"transparent",s=r!=null&&r[2]?r[2].trim():void 0;if(window!=null&&window.CSS)window.CSS.supports("color",a)||(a="transparent",s=t.trim());else{const h=new Option().style;h.color=a,h.color!==a&&(a="transparent",s=t.trim())}const{wrap:o,cleanedText:u}=this.extractWrap(s);return{text:u?Ic(u,nn()):void 0,color:a,wrap:o}}addNote(t,r,a){const s={actor:t,placement:r,message:a.text,wrap:a.wrap??this.autoWrap()},o=[].concat(t,t);this.state.records.notes.push(s),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:o[0],to:o[1],message:a.text,wrap:a.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:r})}addLinks(t,r){const a=this.getActor(t);try{let s=Ic(r.text,nn());s=s.replace(/=/g,"="),s=s.replace(/&/g,"&");const o=JSON.parse(s);this.insertLinks(a,o)}catch(s){it.error("error while parsing actor link text",s)}}addALink(t,r){const a=this.getActor(t);try{const s={};let o=Ic(r.text,nn());const u=o.indexOf("@");o=o.replace(/=/g,"="),o=o.replace(/&/g,"&");const h=o.slice(0,u-1).trim(),f=o.slice(u+1).trim();s[h]=f,this.insertLinks(a,s)}catch(s){it.error("error while parsing actor link text",s)}}insertLinks(t,r){if(t.links==null)t.links=r;else for(const a in r)t.links[a]=r[a]}addProperties(t,r){const a=this.getActor(t);try{const s=Ic(r.text,nn()),o=JSON.parse(s);this.insertProperties(a,o)}catch(s){it.error("error while parsing actor properties text",s)}}insertProperties(t,r){if(t.properties==null)t.properties=r;else for(const a in r)t.properties[a]=r[a]}boxEnd(){this.state.records.currentBox=void 0}addDetails(t,r){const a=this.getActor(t),s=document.getElementById(r.text);try{const o=s.innerHTML,u=JSON.parse(o);u.properties&&this.insertProperties(a,u.properties),u.links&&this.insertLinks(a,u.links)}catch(o){it.error("error while parsing actor details text",o)}}getActorProperty(t,r){if((t==null?void 0:t.properties)!==void 0)return t.properties[r]}apply(t){if(Array.isArray(t))t.forEach(r=>{this.apply(r)});else switch(t.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":this.addActor(t.actor,t.actor,t.description,t.draw,t.config);break;case"createParticipant":if(this.state.records.actors.has(t.actor))throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=t.actor,this.addActor(t.actor,t.actor,t.description,t.draw,t.config),this.state.records.createdActors.set(t.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=t.actor,this.state.records.destroyedActors.set(t.actor,this.state.records.messages.length);break;case"activeStart":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"activeEnd":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"addNote":this.addNote(t.actor,t.placement,t.text);break;case"addLinks":this.addLinks(t.actor,t.text);break;case"addALink":this.addALink(t.actor,t.text);break;case"addProperties":this.addProperties(t.actor,t.text);break;case"addDetails":this.addDetails(t.actor,t.text);break;case"addMessage":if(this.state.records.lastCreated){if(t.to!==this.state.records.lastCreated)throw new Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(t.to!==this.state.records.lastDestroyed&&t.from!==this.state.records.lastDestroyed)throw new Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");this.state.records.lastDestroyed=void 0}this.addSignal(t.from,t.to,t.msg,t.signalType,t.activate);break;case"boxStart":this.addBox(t.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"rectStart":this.addSignal(void 0,void 0,t.color,t.signalType);break;case"rectEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"optStart":this.addSignal(void 0,void 0,t.optText,t.signalType);break;case"optEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"altStart":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"else":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"altEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"setAccTitle":N1(t.text);break;case"parStart":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"and":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"parEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,t.criticalText,t.signalType);break;case"option":this.addSignal(void 0,void 0,t.optionText,t.signalType);break;case"criticalEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"breakStart":this.addSignal(void 0,void 0,t.breakText,t.signalType);break;case"breakEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break}}getConfig(){return nn().sequence}},X(rj,"SequenceDB"),rj),xWi=X(e=>`.actor { stroke: ${e.actorBorder}; fill: ${e.actorBkg}; } text.actor > tspan { fill: ${e.actorTextColor}; stroke: none; } .actor-line { stroke: ${e.actorLineColor}; } .innerArc { stroke-width: 1.5; stroke-dasharray: none; } .messageLine0 { stroke-width: 1.5; stroke-dasharray: none; stroke: ${e.signalColor}; } .messageLine1 { stroke-width: 1.5; stroke-dasharray: 2, 2; stroke: ${e.signalColor}; } #arrowhead path { fill: ${e.signalColor}; stroke: ${e.signalColor}; } .sequenceNumber { fill: ${e.sequenceNumberColor}; } #sequencenumber { fill: ${e.signalColor}; } #crosshead path { fill: ${e.signalColor}; stroke: ${e.signalColor}; } .messageText { fill: ${e.signalTextColor}; stroke: none; } .labelBox { stroke: ${e.labelBoxBorderColor}; fill: ${e.labelBoxBkgColor}; } .labelText, .labelText > tspan { fill: ${e.labelTextColor}; stroke: none; } .loopText, .loopText > tspan { fill: ${e.loopTextColor}; stroke: none; } .loopLine { stroke-width: 2px; stroke-dasharray: 2, 2; stroke: ${e.labelBoxBorderColor}; fill: ${e.labelBoxBorderColor}; } .note { //stroke: #decc93; stroke: ${e.noteBorderColor}; fill: ${e.noteBkgColor}; } .noteText, .noteText > tspan { fill: ${e.noteTextColor}; stroke: none; } .activation0 { fill: ${e.activationBkgColor}; stroke: ${e.activationBorderColor}; } .activation1 { fill: ${e.activationBkgColor}; stroke: ${e.activationBorderColor}; } .activation2 { fill: ${e.activationBkgColor}; stroke: ${e.activationBorderColor}; } .actorPopupMenu { position: absolute; } .actorPopupMenuPanel { position: absolute; fill: ${e.actorBkg}; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4)); } .actor-man line { stroke: ${e.actorBorder}; fill: ${e.actorBkg}; } .actor-man circle, line { stroke: ${e.actorBorder}; fill: ${e.actorBkg}; stroke-width: 2px; } `,"getStyles"),SWi=xWi,lF=18*2,aL="actor-top",sL="actor-bottom",Zke="actor-box",b9="actor-man",cle=X(function(e,t){return vke(e,t)},"drawRect"),TWi=X(function(e,t,r,a,s){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};const o=t.links,u=t.actorCnt,h=t.rectData;var f="none";s&&(f="block !important");const p=e.append("g");p.attr("id","actor"+u+"_popup"),p.attr("class","actorPopupMenu"),p.attr("display",f);var m="";h.class!==void 0&&(m=" "+h.class);let b=h.width>r?h.width:r;const _=p.append("rect");if(_.attr("class","actorPopupMenuPanel"+m),_.attr("x",h.x),_.attr("y",h.height),_.attr("fill",h.fill),_.attr("stroke",h.stroke),_.attr("width",b),_.attr("height",h.height),_.attr("rx",h.rx),_.attr("ry",h.ry),o!=null){var w=20;for(let A in o){var S=p.append("a"),C=M9(o[A]);S.attr("xlink:href",C),S.attr("target","_blank"),jWi(a)(A,S,h.x+10,h.height+w,b,20,{class:"actor"},a),w+=30}}return _.attr("height",w),{height:h.height+w,width:b}},"drawPopup"),Jke=X(function(e){return"var pu = document.getElementById('"+e+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),MTe=X(async function(e,t,r=null){let a=e.append("foreignObject");const s=await nce(t.text,$c()),u=a.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(s).node().getBoundingClientRect();if(a.attr("height",Math.round(u.height)).attr("width",Math.round(u.width)),t.class==="noteText"){const h=e.node().firstChild;h.setAttribute("height",u.height+2*t.textMargin);const f=h.getBBox();a.attr("x",Math.round(f.x+f.width/2-u.width/2)).attr("y",Math.round(f.y+f.height/2-u.height/2))}else if(r){let{startx:h,stopx:f,starty:p}=r;if(h>f){const m=h;h=f,f=m}a.attr("x",Math.round(h+Math.abs(h-f)/2-u.width/2)),t.class==="loopText"?a.attr("y",Math.round(p)):a.attr("y",Math.round(p-u.height))}return[a]},"drawKatex"),Jj=X(function(e,t){let r=0,a=0;const s=t.text.split(Ti.lineBreakRegex),[o,u]=N$(t.fontSize);let h=[],f=0,p=X(()=>t.y,"yfunc");if(t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0)switch(t.valign){case"top":case"start":p=X(()=>Math.round(t.y+t.textMargin),"yfunc");break;case"middle":case"center":p=X(()=>Math.round(t.y+(r+a+t.textMargin)/2),"yfunc");break;case"bottom":case"end":p=X(()=>Math.round(t.y+(r+a+2*t.textMargin)-t.textMargin),"yfunc");break}if(t.anchor!==void 0&&t.textMargin!==void 0&&t.width!==void 0)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"middle":case"center":t.x=Math.round(t.x+t.width/2),t.anchor="middle",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"right":case"end":t.x=Math.round(t.x+t.width-t.textMargin),t.anchor="end",t.dominantBaseline="middle",t.alignmentBaseline="middle";break}for(let[m,b]of s.entries()){t.textMargin!==void 0&&t.textMargin===0&&o!==void 0&&(f=m*o);const _=e.append("text");_.attr("x",t.x),_.attr("y",p()),t.anchor!==void 0&&_.attr("text-anchor",t.anchor).attr("dominant-baseline",t.dominantBaseline).attr("alignment-baseline",t.alignmentBaseline),t.fontFamily!==void 0&&_.style("font-family",t.fontFamily),u!==void 0&&_.style("font-size",u),t.fontWeight!==void 0&&_.style("font-weight",t.fontWeight),t.fill!==void 0&&_.attr("fill",t.fill),t.class!==void 0&&_.attr("class",t.class),t.dy!==void 0?_.attr("dy",t.dy):f!==0&&_.attr("dy",f);const w=b||jPn;if(t.tspan){const S=_.append("tspan");S.attr("x",t.x),t.fill!==void 0&&S.attr("fill",t.fill),S.text(w)}else _.text(w);t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0&&(a+=(_._groups||_)[0][0].getBBox().height,r=a),h.push(_)}return h},"drawText"),zKn=X(function(e,t){function r(s,o,u,h,f){return s+","+o+" "+(s+u)+","+o+" "+(s+u)+","+(o+h-f)+" "+(s+u-f*1.2)+","+(o+h)+" "+s+","+(o+h)}X(r,"genPoints");const a=e.append("polygon");return a.attr("points",r(t.x,t.y,t.width,t.height,7)),a.attr("class","labelBox"),t.y=t.y+t.height/2,Jj(e,t),a},"drawLabel"),wc=-1,GKn=X((e,t,r,a)=>{e.select&&r.forEach(s=>{const o=t.get(s),u=e.select("#actor"+o.actorCnt);!a.mirrorActors&&o.stopy?u.attr("y2",o.stopy+o.height/2):a.mirrorActors&&u.attr("y2",o.stopy)})},"fixLifeLineHeights"),CWi=X(function(e,t,r,a){var w,S;const s=a?t.stopy:t.starty,o=t.x+t.width/2,u=s+t.height,h=e.append("g").lower();var f=h;a||(wc++,Object.keys(t.links||{}).length&&!r.forceMenus&&f.attr("onclick",Jke(`actor${wc}_popup`)).attr("cursor","pointer"),f.append("line").attr("id","actor"+wc).attr("x1",o).attr("y1",u).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),f=h.append("g"),t.actorCnt=wc,t.links!=null&&f.attr("id","root-"+wc));const p=Ww();var m="actor";(w=t.properties)!=null&&w.class?m=t.properties.class:p.fill="#eaeaea",a?m+=` ${sL}`:m+=` ${aL}`,p.x=t.x,p.y=s,p.width=t.width,p.height=t.height,p.class=m,p.rx=3,p.ry=3,p.name=t.name;const b=cle(f,p);if(t.rectData=p,(S=t.properties)!=null&&S.icon){const C=t.properties.icon.trim();C.charAt(0)==="@"?Bgt(f,p.x+p.width-20,p.y+10,C.substr(1)):Pgt(f,p.x+p.width-20,p.y+10,C)}RR(r,u0(t.description))(t.description,f,p.x,p.y,p.width,p.height,{class:`actor ${Zke}`},r);let _=t.height;if(b.node){const C=b.node().getBBox();t.height=C.height,_=C.height}return _},"drawActorTypeParticipant"),AWi=X(function(e,t,r,a){var C,A;const s=a?t.stopy:t.starty,o=t.x+t.width/2,u=s+t.height,h=e.append("g").lower();var f=h;a||(wc++,Object.keys(t.links||{}).length&&!r.forceMenus&&f.attr("onclick",Jke(`actor${wc}_popup`)).attr("cursor","pointer"),f.append("line").attr("id","actor"+wc).attr("x1",o).attr("y1",u).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),f=h.append("g"),t.actorCnt=wc,t.links!=null&&f.attr("id","root-"+wc));const p=Ww();var m="actor";(C=t.properties)!=null&&C.class?m=t.properties.class:p.fill="#eaeaea",a?m+=` ${sL}`:m+=` ${aL}`,p.x=t.x,p.y=s,p.width=t.width,p.height=t.height,p.class=m,p.name=t.name;const b=6,_={...p,x:p.x+-b,y:p.y+ +b,class:"actor"},w=cle(f,p);if(cle(f,_),t.rectData=p,(A=t.properties)!=null&&A.icon){const k=t.properties.icon.trim();k.charAt(0)==="@"?Bgt(f,p.x+p.width-20,p.y+10,k.substr(1)):Pgt(f,p.x+p.width-20,p.y+10,k)}RR(r,u0(t.description))(t.description,f,p.x-b,p.y+b,p.width,p.height,{class:`actor ${Zke}`},r);let S=t.height;if(w.node){const k=w.node().getBBox();t.height=k.height,S=k.height}return S},"drawActorTypeCollections"),kWi=X(function(e,t,r,a){var k,I;const s=a?t.stopy:t.starty,o=t.x+t.width/2,u=s+t.height,h=e.append("g").lower();let f=h;a||(wc++,Object.keys(t.links||{}).length&&!r.forceMenus&&f.attr("onclick",Jke(`actor${wc}_popup`)).attr("cursor","pointer"),f.append("line").attr("id","actor"+wc).attr("x1",o).attr("y1",u).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),f=h.append("g"),t.actorCnt=wc,t.links!=null&&f.attr("id","root-"+wc));const p=Ww();let m="actor";(k=t.properties)!=null&&k.class?m=t.properties.class:p.fill="#eaeaea",a?m+=` ${sL}`:m+=` ${aL}`,p.x=t.x,p.y=s,p.width=t.width,p.height=t.height,p.class=m,p.name=t.name;const b=p.height/2,_=b/(2.5+p.height/50),w=f.append("g"),S=f.append("g");if(w.append("path").attr("d",`M ${p.x},${p.y+b} a ${_},${b} 0 0 0 0,${p.height} h ${p.width-2*_} a ${_},${b} 0 0 0 0,-${p.height} Z `).attr("class",m),S.append("path").attr("d",`M ${p.x},${p.y+b} a ${_},${b} 0 0 0 0,${p.height}`).attr("stroke","#666").attr("stroke-width","1px").attr("class",m),w.attr("transform",`translate(${_}, ${-(p.height/2)})`),S.attr("transform",`translate(${p.width-_}, ${-p.height/2})`),t.rectData=p,(I=t.properties)!=null&&I.icon){const N=t.properties.icon.trim(),L=p.x+p.width-20,P=p.y+10;N.charAt(0)==="@"?Bgt(f,L,P,N.substr(1)):Pgt(f,L,P,N)}RR(r,u0(t.description))(t.description,f,p.x,p.y,p.width,p.height,{class:`actor ${Zke}`},r);let C=t.height;const A=w.select("path:last-child");if(A.node()){const N=A.node().getBBox();t.height=N.height,C=N.height}return C},"drawActorTypeQueue"),RWi=X(function(e,t,r,a){var C;const s=a?t.stopy:t.starty,o=t.x+t.width/2,u=s+75,h=e.append("g").lower();a||(wc++,h.append("line").attr("id","actor"+wc).attr("x1",o).attr("y1",u).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=wc);const f=e.append("g");let p=b9;a?p+=` ${sL}`:p+=` ${aL}`,f.attr("class",p),f.attr("name",t.name);const m=Ww();m.x=t.x,m.y=s,m.fill="#eaeaea",m.width=t.width,m.height=t.height,m.class="actor";const b=t.x+t.width/2,_=s+30,w=18;f.append("defs").append("marker").attr("id","filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").append("path").attr("d","M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"),f.append("circle").attr("cx",b).attr("cy",_).attr("r",w).attr("fill","#eaeaf7").attr("stroke","#666").attr("stroke-width",1.2),f.append("line").attr("marker-end","url(#filled-head-control)").attr("transform",`translate(${b}, ${_-w})`);const S=f.node().getBBox();return t.height=S.height+2*(((C=r==null?void 0:r.sequence)==null?void 0:C.labelBoxHeight)??0),RR(r,u0(t.description))(t.description,f,m.x,m.y+w+(a?5:10),m.width,m.height,{class:`actor ${b9}`},r),t.height},"drawActorTypeControl"),IWi=X(function(e,t,r,a){var C;const s=a?t.stopy:t.starty,o=t.x+t.width/2,u=s+75,h=e.append("g").lower(),f=e.append("g");let p=b9;a?p+=` ${sL}`:p+=` ${aL}`,f.attr("class",p),f.attr("name",t.name);const m=Ww();m.x=t.x,m.y=s,m.fill="#eaeaea",m.width=t.width,m.height=t.height,m.class="actor";const b=t.x+t.width/2,_=s+(a?10:25),w=18;f.append("circle").attr("cx",b).attr("cy",_).attr("r",w).attr("width",t.width).attr("height",t.height),f.append("line").attr("x1",b-w).attr("x2",b+w).attr("y1",_+w).attr("y2",_+w).attr("stroke","#333").attr("stroke-width",2);const S=f.node().getBBox();return t.height=S.height+(((C=r==null?void 0:r.sequence)==null?void 0:C.labelBoxHeight)??0),a||(wc++,h.append("line").attr("id","actor"+wc).attr("x1",o).attr("y1",u).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=wc),RR(r,u0(t.description))(t.description,f,m.x,m.y+(a?(_-s+w-5)/2:(_+w-s)/2),m.width,m.height,{class:`actor ${b9}`},r),a?f.attr("transform",`translate(0, ${w/2})`):f.attr("transform",`translate(0, ${w/2})`),t.height},"drawActorTypeEntity"),NWi=X(function(e,t,r,a){var I;const s=a?t.stopy:t.starty,o=t.x+t.width/2,u=s+t.height+2*r.boxTextMargin,h=e.append("g").lower();let f=h;a||(wc++,Object.keys(t.links||{}).length&&!r.forceMenus&&f.attr("onclick",Jke(`actor${wc}_popup`)).attr("cursor","pointer"),f.append("line").attr("id","actor"+wc).attr("x1",o).attr("y1",u).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),f=h.append("g"),t.actorCnt=wc,t.links!=null&&f.attr("id","root-"+wc));const p=Ww();let m="actor";(I=t.properties)!=null&&I.class?m=t.properties.class:p.fill="#eaeaea",a?m+=` ${sL}`:m+=` ${aL}`,p.x=t.x,p.y=s,p.width=t.width,p.height=t.height,p.class=m,p.name=t.name,p.x=t.x,p.y=s;const b=p.width/4,_=p.width/4,w=b/2,S=w/(2.5+b/50),C=f.append("g"),A=` M ${p.x},${p.y+S} a ${w},${S} 0 0 0 ${b},0 a ${w},${S} 0 0 0 -${b},0 l 0,${_-2*S} a ${w},${S} 0 0 0 ${b},0 l 0,-${_-2*S} `;C.append("path").attr("d",A).attr("fill","#eaeaea").attr("stroke","#000").attr("stroke-width",1).attr("class",m),a?C.attr("transform",`translate(${b*1.5}, ${p.height/4-2*S})`):C.attr("transform",`translate(${b*1.5}, ${(p.height+S)/4})`),t.rectData=p,RR(r,u0(t.description))(t.description,f,p.x,p.y+(a?(p.height+_)/4:(p.height+S)/2),p.width,p.height,{class:`actor ${Zke}`},r);const k=C.select("path:last-child");if(k.node()){const N=k.node().getBBox();t.height=N.height+(r.sequence.labelBoxHeight??0)}return t.height},"drawActorTypeDatabase"),OWi=X(function(e,t,r,a){const s=a?t.stopy:t.starty,o=t.x+t.width/2,u=s+80,h=30,f=e.append("g").lower();a||(wc++,f.append("line").attr("id","actor"+wc).attr("x1",o).attr("y1",u).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=wc);const p=e.append("g");let m=b9;a?m+=` ${sL}`:m+=` ${aL}`,p.attr("class",m),p.attr("name",t.name);const b=Ww();b.x=t.x,b.y=s,b.fill="#eaeaea",b.width=t.width,b.height=t.height,b.class="actor",p.append("line").attr("id","actor-man-torso"+wc).attr("x1",t.x+t.width/2-h*2.5).attr("y1",s+10).attr("x2",t.x+t.width/2-15).attr("y2",s+10),p.append("line").attr("id","actor-man-arms"+wc).attr("x1",t.x+t.width/2-h*2.5).attr("y1",s+0).attr("x2",t.x+t.width/2-h*2.5).attr("y2",s+20),p.append("circle").attr("cx",t.x+t.width/2).attr("cy",s+10).attr("r",h);const _=p.node().getBBox();return t.height=_.height+(r.sequence.labelBoxHeight??0),RR(r,u0(t.description))(t.description,p,b.x,b.y+(a?h/2-4:h/2+3),b.width,b.height,{class:`actor ${b9}`},r),a?p.attr("transform",`translate(0,${h/2+7})`):p.attr("transform",`translate(0,${h/2+7})`),t.height},"drawActorTypeBoundary"),LWi=X(function(e,t,r,a){const s=a?t.stopy:t.starty,o=t.x+t.width/2,u=s+80,h=e.append("g").lower();a||(wc++,h.append("line").attr("id","actor"+wc).attr("x1",o).attr("y1",u).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=wc);const f=e.append("g");let p=b9;a?p+=` ${sL}`:p+=` ${aL}`,f.attr("class",p),f.attr("name",t.name);const m=Ww();m.x=t.x,m.y=s,m.fill="#eaeaea",m.width=t.width,m.height=t.height,m.class="actor",m.rx=3,m.ry=3,f.append("line").attr("id","actor-man-torso"+wc).attr("x1",o).attr("y1",s+25).attr("x2",o).attr("y2",s+45),f.append("line").attr("id","actor-man-arms"+wc).attr("x1",o-lF/2).attr("y1",s+33).attr("x2",o+lF/2).attr("y2",s+33),f.append("line").attr("x1",o-lF/2).attr("y1",s+60).attr("x2",o).attr("y2",s+45),f.append("line").attr("x1",o).attr("y1",s+45).attr("x2",o+lF/2-2).attr("y2",s+60);const b=f.append("circle");b.attr("cx",t.x+t.width/2),b.attr("cy",s+10),b.attr("r",15),b.attr("width",t.width),b.attr("height",t.height);const _=f.node().getBBox();return t.height=_.height,RR(r,u0(t.description))(t.description,f,m.x,m.y+35,m.width,m.height,{class:`actor ${b9}`},r),t.height},"drawActorTypeActor"),DWi=X(async function(e,t,r,a){switch(t.type){case"actor":return await LWi(e,t,r,a);case"participant":return await CWi(e,t,r,a);case"boundary":return await OWi(e,t,r,a);case"control":return await RWi(e,t,r,a);case"entity":return await IWi(e,t,r,a);case"database":return await NWi(e,t,r,a);case"collections":return await AWi(e,t,r,a);case"queue":return await kWi(e,t,r,a)}},"drawActor"),MWi=X(function(e,t,r){const s=e.append("g");qKn(s,t),t.name&&RR(r)(t.name,s,t.x,t.y+r.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:"text"},r),s.lower()},"drawBox"),PWi=X(function(e){return e.append("g")},"anchorElement"),BWi=X(function(e,t,r,a,s){const o=Ww(),u=t.anchored;o.x=t.startx,o.y=t.starty,o.class="activation"+s%3,o.width=t.stopx-t.startx,o.height=r-t.starty,cle(u,o)},"drawActivation"),FWi=X(async function(e,t,r,a){const{boxMargin:s,boxTextMargin:o,labelBoxHeight:u,labelBoxWidth:h,messageFontFamily:f,messageFontSize:p,messageFontWeight:m}=a,b=e.append("g"),_=X(function(C,A,k,I){return b.append("line").attr("x1",C).attr("y1",A).attr("x2",k).attr("y2",I).attr("class","loopLine")},"drawLoopLine");_(t.startx,t.starty,t.stopx,t.starty),_(t.stopx,t.starty,t.stopx,t.stopy),_(t.startx,t.stopy,t.stopx,t.stopy),_(t.startx,t.starty,t.startx,t.stopy),t.sections!==void 0&&t.sections.forEach(function(C){_(t.startx,C.y,t.stopx,C.y).style("stroke-dasharray","3, 3")});let w=Fgt();w.text=r,w.x=t.startx,w.y=t.starty,w.fontFamily=f,w.fontSize=p,w.fontWeight=m,w.anchor="middle",w.valign="middle",w.tspan=!1,w.width=h||50,w.height=u||20,w.textMargin=o,w.class="labelText",zKn(b,w),w=HKn(),w.text=t.title,w.x=t.startx+h/2+(t.stopx-t.startx)/2,w.y=t.starty+s+o,w.anchor="middle",w.valign="middle",w.textMargin=o,w.class="loopText",w.fontFamily=f,w.fontSize=p,w.fontWeight=m,w.wrap=!0;let S=u0(w.text)?await MTe(b,w,t):Jj(b,w);if(t.sectionTitles!==void 0){for(const[C,A]of Object.entries(t.sectionTitles))if(A.message){w.text=A.message,w.x=t.startx+(t.stopx-t.startx)/2,w.y=t.sections[C].y+s+o,w.class="loopText",w.anchor="middle",w.valign="middle",w.tspan=!1,w.fontFamily=f,w.fontSize=p,w.fontWeight=m,w.wrap=t.wrap,u0(w.text)?(t.starty=t.sections[C].y,await MTe(b,w,t)):Jj(b,w);let k=Math.round(S.map(I=>(I._groups||I)[0][0].getBBox().height).reduce((I,N)=>I+N));t.sections[C].height+=k-(s+o)}}return t.height=Math.round(t.stopy-t.starty),b},"drawLoop"),qKn=X(function(e,t){rYn(e,t)},"drawBackgroundRect"),$Wi=X(function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),UWi=X(function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),zWi=X(function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),GWi=X(function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),qWi=X(function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),HWi=X(function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertSequenceNumber"),VWi=X(function(e){e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},"insertArrowCrossHead"),HKn=X(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},"getTextObj"),YWi=X(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),RR=function(){function e(o,u,h,f,p,m,b){const _=u.append("text").attr("x",h+p/2).attr("y",f+m/2+5).style("text-anchor","middle").text(o);s(_,b)}X(e,"byText");function t(o,u,h,f,p,m,b,_){const{actorFontSize:w,actorFontFamily:S,actorFontWeight:C}=_,[A,k]=N$(w),I=o.split(Ti.lineBreakRegex);for(let N=0;Ne.height||0))+(this.loops.length===0?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.messages.length===0?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.notes.length===0?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},"getHeight"),clear:X(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:X(function(e){this.boxes.push(e)},"addBox"),addActor:X(function(e){this.actors.push(e)},"addActor"),addLoop:X(function(e){this.loops.push(e)},"addLoop"),addMessage:X(function(e){this.messages.push(e)},"addMessage"),addNote:X(function(e){this.notes.push(e)},"addNote"),lastActor:X(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:X(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:X(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:X(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:X(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,jKn(nn())},"init"),updateVal:X(function(e,t,r,a){e[t]===void 0?e[t]=r:e[t]=a(r,e[t])},"updateVal"),updateBounds:X(function(e,t,r,a){const s=this;let o=0;function u(h){return X(function(p){o++;const m=s.sequenceItems.length-o+1;s.updateVal(p,"starty",t-m*Mn.boxMargin,Math.min),s.updateVal(p,"stopy",a+m*Mn.boxMargin,Math.max),s.updateVal(li.data,"startx",e-m*Mn.boxMargin,Math.min),s.updateVal(li.data,"stopx",r+m*Mn.boxMargin,Math.max),h!=="activation"&&(s.updateVal(p,"startx",e-m*Mn.boxMargin,Math.min),s.updateVal(p,"stopx",r+m*Mn.boxMargin,Math.max),s.updateVal(li.data,"starty",t-m*Mn.boxMargin,Math.min),s.updateVal(li.data,"stopy",a+m*Mn.boxMargin,Math.max))},"updateItemBounds")}X(u,"updateFn"),this.sequenceItems.forEach(u()),this.activations.forEach(u("activation"))},"updateBounds"),insert:X(function(e,t,r,a){const s=Ti.getMin(e,r),o=Ti.getMax(e,r),u=Ti.getMin(t,a),h=Ti.getMax(t,a);this.updateVal(li.data,"startx",s,Math.min),this.updateVal(li.data,"starty",u,Math.min),this.updateVal(li.data,"stopx",o,Math.max),this.updateVal(li.data,"stopy",h,Math.max),this.updateBounds(s,u,o,h)},"insert"),newActivation:X(function(e,t,r){const a=r.get(e.from),s=e6e(e.from).length||0,o=a.x+a.width/2+(s-1)*Mn.activationWidth/2;this.activations.push({startx:o,starty:this.verticalPos+2,stopx:o+Mn.activationWidth,stopy:void 0,actor:e.from,anchored:q0.anchorElement(t)})},"newActivation"),endActivation:X(function(e){const t=this.activations.map(function(r){return r.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},"endActivation"),createLoop:X(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},"createLoop"),newLoop:X(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},"newLoop"),endLoop:X(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:X(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},"isLoopOverlap"),addSectionToLoop:X(function(e){const t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:li.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},"addSectionToLoop"),saveVerticalPos:X(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:X(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:X(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=Ti.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:X(function(){return this.verticalPos},"getVerticalPos"),getBounds:X(function(){return{bounds:this.data,models:this.models}},"getBounds")},WWi=X(async function(e,t){li.bumpVerticalPos(Mn.boxMargin),t.height=Mn.boxMargin,t.starty=li.getVerticalPos();const r=Ww();r.x=t.startx,r.y=t.starty,r.width=t.width||Mn.width,r.class="note";const a=e.append("g"),s=q0.drawRect(a,r),o=Fgt();o.x=t.startx,o.y=t.starty,o.width=r.width,o.dy="1em",o.text=t.message,o.class="noteText",o.fontFamily=Mn.noteFontFamily,o.fontSize=Mn.noteFontSize,o.fontWeight=Mn.noteFontWeight,o.anchor=Mn.noteAlign,o.textMargin=Mn.noteMargin,o.valign="center";const u=u0(o.text)?await MTe(a,o):Jj(a,o),h=Math.round(u.map(f=>(f._groups||f)[0][0].getBBox().height).reduce((f,p)=>f+p));s.attr("height",h+2*Mn.noteMargin),t.height+=h+2*Mn.noteMargin,li.bumpVerticalPos(h+2*Mn.noteMargin),t.stopy=t.starty+h+2*Mn.noteMargin,t.stopx=t.startx+r.width,li.insert(t.startx,t.starty,t.stopx,t.stopy),li.models.addNote(t)},"drawNote"),o$=X(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont"),bV=X(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),"noteFont"),kut=X(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),"actorFont");async function VKn(e,t){li.bumpVerticalPos(10);const{startx:r,stopx:a,message:s}=t,o=Ti.splitBreaks(s).length,u=u0(s),h=u?await tce(s,nn()):Vo.calculateTextDimensions(s,o$(Mn));if(!u){const b=h.height/o;t.height+=b,li.bumpVerticalPos(b)}let f,p=h.height-10;const m=h.width;if(r===a){f=li.getVerticalPos()+p,Mn.rightAngles||(p+=Mn.boxMargin,f=li.getVerticalPos()+p),p+=30;const b=Ti.getMax(m/2,Mn.width/2);li.insert(r-b,li.getVerticalPos()-10+p,a+b,li.getVerticalPos()+30+p)}else p+=Mn.boxMargin,f=li.getVerticalPos()+p,li.insert(r,f-10,a,f);return li.bumpVerticalPos(p),t.height+=p,t.stopy=t.starty+t.height,li.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),f}X(VKn,"boundMessage");var KWi=X(async function(e,t,r,a){const{startx:s,stopx:o,starty:u,message:h,type:f,sequenceIndex:p,sequenceVisible:m}=t,b=Vo.calculateTextDimensions(h,o$(Mn)),_=Fgt();_.x=s,_.y=u+10,_.width=o-s,_.class="messageText",_.dy="1em",_.text=h,_.fontFamily=Mn.messageFontFamily,_.fontSize=Mn.messageFontSize,_.fontWeight=Mn.messageFontWeight,_.anchor=Mn.messageAlign,_.valign="center",_.textMargin=Mn.wrapPadding,_.tspan=!1,u0(_.text)?await MTe(e,_,{startx:s,stopx:o,starty:r}):Jj(e,_);const w=b.width;let S;s===o?Mn.rightAngles?S=e.append("path").attr("d",`M ${s},${r} H ${s+Ti.getMax(Mn.width/2,w/2)} V ${r+25} H ${s}`):S=e.append("path").attr("d","M "+s+","+r+" C "+(s+60)+","+(r-10)+" "+(s+60)+","+(r+30)+" "+s+","+(r+20)):(S=e.append("line"),S.attr("x1",s),S.attr("y1",r),S.attr("x2",o),S.attr("y2",r)),f===a.db.LINETYPE.DOTTED||f===a.db.LINETYPE.DOTTED_CROSS||f===a.db.LINETYPE.DOTTED_POINT||f===a.db.LINETYPE.DOTTED_OPEN||f===a.db.LINETYPE.BIDIRECTIONAL_DOTTED?(S.style("stroke-dasharray","3, 3"),S.attr("class","messageLine1")):S.attr("class","messageLine0");let C="";Mn.arrowMarkerAbsolute&&(C=tAe(!0)),S.attr("stroke-width",2),S.attr("stroke","none"),S.style("fill","none"),(f===a.db.LINETYPE.SOLID||f===a.db.LINETYPE.DOTTED)&&S.attr("marker-end","url("+C+"#arrowhead)"),(f===a.db.LINETYPE.BIDIRECTIONAL_SOLID||f===a.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(S.attr("marker-start","url("+C+"#arrowhead)"),S.attr("marker-end","url("+C+"#arrowhead)")),(f===a.db.LINETYPE.SOLID_POINT||f===a.db.LINETYPE.DOTTED_POINT)&&S.attr("marker-end","url("+C+"#filled-head)"),(f===a.db.LINETYPE.SOLID_CROSS||f===a.db.LINETYPE.DOTTED_CROSS)&&S.attr("marker-end","url("+C+"#crosshead)"),(m||Mn.showSequenceNumbers)&&((f===a.db.LINETYPE.BIDIRECTIONAL_SOLID||f===a.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(ss&&(s=p.height),p.width+h.x>o&&(o=p.width+h.x)}return{maxHeight:s,maxWidth:o}},"drawActorsPopup"),jKn=X(function(e){W0(Mn,e),e.fontFamily&&(Mn.actorFontFamily=Mn.noteFontFamily=Mn.messageFontFamily=e.fontFamily),e.fontSize&&(Mn.actorFontSize=Mn.noteFontSize=Mn.messageFontSize=e.fontSize),e.fontWeight&&(Mn.actorFontWeight=Mn.noteFontWeight=Mn.messageFontWeight=e.fontWeight)},"setConf"),e6e=X(function(e){return li.activations.filter(function(t){return t.actor===e})},"actorActivations"),aTn=X(function(e,t){const r=t.get(e),a=e6e(e),s=a.reduce(function(u,h){return Ti.getMin(u,h.startx)},r.x+r.width/2-1),o=a.reduce(function(u,h){return Ti.getMax(u,h.stopx)},r.x+r.width/2+1);return[s,o]},"activationBounds");function y3(e,t,r,a,s){li.bumpVerticalPos(r);let o=a;if(t.id&&t.message&&e[t.id]){const u=e[t.id].width,h=o$(Mn);t.message=Vo.wrapLabel(`[${t.message}]`,u-2*Mn.wrapPadding,h),t.width=u,t.wrap=!0;const f=Vo.calculateTextDimensions(t.message,h),p=Ti.getMax(f.height,Mn.labelBoxHeight);o=a+p,it.debug(`${p} - ${t.message}`)}s(t),li.bumpVerticalPos(o)}X(y3,"adjustLoopHeightForWrap");function WKn(e,t,r,a,s,o,u){function h(m,b){m.x{j.add(ee.from),j.add(ee.to)}),S=S.filter(ee=>j.has(ee))}XWi(p,m,b,S,0,C,!1);const L=await tKi(C,m,N,a);q0.insertArrowHead(p),q0.insertArrowCrossHead(p),q0.insertArrowFilledHead(p),q0.insertSequenceNumber(p);function P(j,ee){const te=li.endActivation(j);te.starty+18>ee&&(te.starty=ee-6,ee+=12),q0.drawActivation(p,te,ee,Mn,e6e(j.from).length),li.insert(te.startx,ee-10,te.stopx,ee)}X(P,"activeEnd");let M=1,F=1;const U=[],$=[];let G=0;for(const j of C){let ee,te,ne;switch(j.type){case a.db.LINETYPE.NOTE:li.resetVerticalPos(),te=j.noteModel,await WWi(p,te);break;case a.db.LINETYPE.ACTIVE_START:li.newActivation(j,p,m);break;case a.db.LINETYPE.ACTIVE_END:P(j,li.getVerticalPos());break;case a.db.LINETYPE.LOOP_START:y3(L,j,Mn.boxMargin,Mn.boxMargin+Mn.boxTextMargin,se=>li.newLoop(se));break;case a.db.LINETYPE.LOOP_END:ee=li.endLoop(),await q0.drawLoop(p,ee,"loop",Mn),li.bumpVerticalPos(ee.stopy-li.getVerticalPos()),li.models.addLoop(ee);break;case a.db.LINETYPE.RECT_START:y3(L,j,Mn.boxMargin,Mn.boxMargin,se=>li.newLoop(void 0,se.message));break;case a.db.LINETYPE.RECT_END:ee=li.endLoop(),$.push(ee),li.models.addLoop(ee),li.bumpVerticalPos(ee.stopy-li.getVerticalPos());break;case a.db.LINETYPE.OPT_START:y3(L,j,Mn.boxMargin,Mn.boxMargin+Mn.boxTextMargin,se=>li.newLoop(se));break;case a.db.LINETYPE.OPT_END:ee=li.endLoop(),await q0.drawLoop(p,ee,"opt",Mn),li.bumpVerticalPos(ee.stopy-li.getVerticalPos()),li.models.addLoop(ee);break;case a.db.LINETYPE.ALT_START:y3(L,j,Mn.boxMargin,Mn.boxMargin+Mn.boxTextMargin,se=>li.newLoop(se));break;case a.db.LINETYPE.ALT_ELSE:y3(L,j,Mn.boxMargin+Mn.boxTextMargin,Mn.boxMargin,se=>li.addSectionToLoop(se));break;case a.db.LINETYPE.ALT_END:ee=li.endLoop(),await q0.drawLoop(p,ee,"alt",Mn),li.bumpVerticalPos(ee.stopy-li.getVerticalPos()),li.models.addLoop(ee);break;case a.db.LINETYPE.PAR_START:case a.db.LINETYPE.PAR_OVER_START:y3(L,j,Mn.boxMargin,Mn.boxMargin+Mn.boxTextMargin,se=>li.newLoop(se)),li.saveVerticalPos();break;case a.db.LINETYPE.PAR_AND:y3(L,j,Mn.boxMargin+Mn.boxTextMargin,Mn.boxMargin,se=>li.addSectionToLoop(se));break;case a.db.LINETYPE.PAR_END:ee=li.endLoop(),await q0.drawLoop(p,ee,"par",Mn),li.bumpVerticalPos(ee.stopy-li.getVerticalPos()),li.models.addLoop(ee);break;case a.db.LINETYPE.AUTONUMBER:M=j.message.start||M,F=j.message.step||F,j.message.visible?a.db.enableSequenceNumbers():a.db.disableSequenceNumbers();break;case a.db.LINETYPE.CRITICAL_START:y3(L,j,Mn.boxMargin,Mn.boxMargin+Mn.boxTextMargin,se=>li.newLoop(se));break;case a.db.LINETYPE.CRITICAL_OPTION:y3(L,j,Mn.boxMargin+Mn.boxTextMargin,Mn.boxMargin,se=>li.addSectionToLoop(se));break;case a.db.LINETYPE.CRITICAL_END:ee=li.endLoop(),await q0.drawLoop(p,ee,"critical",Mn),li.bumpVerticalPos(ee.stopy-li.getVerticalPos()),li.models.addLoop(ee);break;case a.db.LINETYPE.BREAK_START:y3(L,j,Mn.boxMargin,Mn.boxMargin+Mn.boxTextMargin,se=>li.newLoop(se));break;case a.db.LINETYPE.BREAK_END:ee=li.endLoop(),await q0.drawLoop(p,ee,"break",Mn),li.bumpVerticalPos(ee.stopy-li.getVerticalPos()),li.models.addLoop(ee);break;default:try{ne=j.msgModel,ne.starty=li.getVerticalPos(),ne.sequenceIndex=M,ne.sequenceVisible=a.db.showSequenceNumbers();const se=await VKn(p,ne);WKn(j,ne,se,G,m,b,_),U.push({messageModel:ne,lineStartY:se}),li.models.addMessage(ne)}catch(se){it.error("error while drawing message",se)}}[a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.SOLID,a.db.LINETYPE.DOTTED,a.db.LINETYPE.SOLID_CROSS,a.db.LINETYPE.DOTTED_CROSS,a.db.LINETYPE.SOLID_POINT,a.db.LINETYPE.DOTTED_POINT,a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(j.type)&&(M=M+F),G++}it.debug("createdActors",b),it.debug("destroyedActors",_),await Rut(p,m,S,!1);for(const j of U)await KWi(p,j.messageModel,j.lineStartY,a);Mn.mirrorActors&&await Rut(p,m,S,!0),$.forEach(j=>q0.drawBackgroundRect(p,j)),GKn(p,m,S,Mn);for(const j of li.models.boxes){j.height=li.getVerticalPos()-j.y,li.insert(j.x,j.y,j.x+j.width,j.height);const ee=Mn.boxMargin*2;j.startx=j.x-ee,j.starty=j.y-ee*.25,j.stopx=j.startx+j.width+2*ee,j.stopy=j.starty+j.height+ee*.75,j.stroke="rgb(0,0,0, 0.5)",q0.drawBox(p,j,Mn)}k&&li.bumpVerticalPos(Mn.boxMargin);const B=YKn(p,m,S,f),{bounds:Z}=li.getBounds();Z.startx===void 0&&(Z.startx=0),Z.starty===void 0&&(Z.starty=0),Z.stopx===void 0&&(Z.stopx=0),Z.stopy===void 0&&(Z.stopy=0);let z=Z.stopy-Z.starty;z{const u=o$(Mn);let h=o.actorKeys.reduce((b,_)=>b+=e.get(_).width+(e.get(_).margin||0),0);const f=Mn.boxMargin*8;h+=f,h-=2*Mn.boxTextMargin,o.wrap&&(o.name=Vo.wrapLabel(o.name,h-2*Mn.wrapPadding,u));const p=Vo.calculateTextDimensions(o.name,u);s=Ti.getMax(p.height,s);const m=Ti.getMax(h,p.width+2*Mn.wrapPadding);if(o.margin=Mn.boxTextMargin,ho.textMaxHeight=s),Ti.getMax(a,Mn.height)}X(XKn,"calculateActorMargins");var JWi=X(async function(e,t,r){const a=t.get(e.from),s=t.get(e.to),o=a.x,u=s.x,h=e.wrap&&e.message;let f=u0(e.message)?await tce(e.message,nn()):Vo.calculateTextDimensions(h?Vo.wrapLabel(e.message,Mn.width,bV(Mn)):e.message,bV(Mn));const p={width:h?Mn.width:Ti.getMax(Mn.width,f.width+2*Mn.noteMargin),height:0,startx:a.x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===r.db.PLACEMENT.RIGHTOF?(p.width=h?Ti.getMax(Mn.width,f.width):Ti.getMax(a.width/2+s.width/2,f.width+2*Mn.noteMargin),p.startx=o+(a.width+Mn.actorMargin)/2):e.placement===r.db.PLACEMENT.LEFTOF?(p.width=h?Ti.getMax(Mn.width,f.width+2*Mn.noteMargin):Ti.getMax(a.width/2+s.width/2,f.width+2*Mn.noteMargin),p.startx=o-p.width+(a.width-Mn.actorMargin)/2):e.to===e.from?(f=Vo.calculateTextDimensions(h?Vo.wrapLabel(e.message,Ti.getMax(Mn.width,a.width),bV(Mn)):e.message,bV(Mn)),p.width=h?Ti.getMax(Mn.width,a.width):Ti.getMax(a.width,Mn.width,f.width+2*Mn.noteMargin),p.startx=o+(a.width-p.width)/2):(p.width=Math.abs(o+a.width/2-(u+s.width/2))+Mn.actorMargin,p.startx=o2,b=X(C=>h?-C:C,"adjustValue");e.from===e.to?p=f:(e.activate&&!m&&(p+=b(Mn.activationWidth/2-1)),[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN].includes(e.type)||(p+=b(3)),[r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type)&&(f-=b(3)));const _=[a,s,o,u],w=Math.abs(f-p);e.wrap&&e.message&&(e.message=Vo.wrapLabel(e.message,Ti.getMax(w+2*Mn.wrapPadding,Mn.width),o$(Mn)));const S=Vo.calculateTextDimensions(e.message,o$(Mn));return{width:Ti.getMax(e.wrap?0:S.width+2*Mn.wrapPadding,w+2*Mn.wrapPadding,Mn.width),height:0,startx:f,stopx:p,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,_),toBounds:Math.max.apply(null,_)}},"buildMessageModel"),tKi=X(async function(e,t,r,a){const s={},o=[];let u,h,f;for(const p of e){switch(p.type){case a.db.LINETYPE.LOOP_START:case a.db.LINETYPE.ALT_START:case a.db.LINETYPE.OPT_START:case a.db.LINETYPE.PAR_START:case a.db.LINETYPE.PAR_OVER_START:case a.db.LINETYPE.CRITICAL_START:case a.db.LINETYPE.BREAK_START:o.push({id:p.id,msg:p.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case a.db.LINETYPE.ALT_ELSE:case a.db.LINETYPE.PAR_AND:case a.db.LINETYPE.CRITICAL_OPTION:p.message&&(u=o.pop(),s[u.id]=u,s[p.id]=u,o.push(u));break;case a.db.LINETYPE.LOOP_END:case a.db.LINETYPE.ALT_END:case a.db.LINETYPE.OPT_END:case a.db.LINETYPE.PAR_END:case a.db.LINETYPE.CRITICAL_END:case a.db.LINETYPE.BREAK_END:u=o.pop(),s[u.id]=u;break;case a.db.LINETYPE.ACTIVE_START:{const b=t.get(p.from?p.from:p.to.actor),_=e6e(p.from?p.from:p.to.actor).length,w=b.x+b.width/2+(_-1)*Mn.activationWidth/2,S={startx:w,stopx:w+Mn.activationWidth,actor:p.from,enabled:!0};li.activations.push(S)}break;case a.db.LINETYPE.ACTIVE_END:{const b=li.activations.map(_=>_.actor).lastIndexOf(p.from);li.activations.splice(b,1).splice(0,1)}break}p.placement!==void 0?(h=await JWi(p,t,a),p.noteModel=h,o.forEach(b=>{u=b,u.from=Ti.getMin(u.from,h.startx),u.to=Ti.getMax(u.to,h.startx+h.width),u.width=Ti.getMax(u.width,Math.abs(u.from-u.to))-Mn.labelBoxWidth})):(f=eKi(p,t,a),p.msgModel=f,f.startx&&f.stopx&&o.length>0&&o.forEach(b=>{if(u=b,f.startx===f.stopx){const _=t.get(p.from),w=t.get(p.to);u.from=Ti.getMin(_.x-f.width/2,_.x-_.width/2,u.from),u.to=Ti.getMax(w.x+f.width/2,w.x+_.width/2,u.to),u.width=Ti.getMax(u.width,Math.abs(u.to-u.from))-Mn.labelBoxWidth}else u.from=Ti.getMin(f.startx,u.from),u.to=Ti.getMax(f.stopx,u.to),u.width=Ti.getMax(u.width,f.width)-Mn.labelBoxWidth}))}return li.activations=[],it.debug("Loop type widths:",s),s},"calculateLoopBounds"),nKi={bounds:li,drawActors:Rut,drawActorsPopup:YKn,setConf:jKn,draw:QWi},rKi={parser:yWi,get db(){return new EWi},renderer:nKi,styles:SWi,init:X(e=>{e.sequence||(e.sequence={}),e.wrap&&(e.sequence.wrap=e.wrap,yot({sequence:{wrap:e.wrap}}))},"init")};const iKi=Object.freeze(Object.defineProperty({__proto__:null,diagram:rKi},Symbol.toStringTag,{value:"Module"}));var Iut=function(){var e=X(function(ht,et,qe,He){for(qe=qe||{},He=ht.length;He--;qe[ht[He]]=et);return qe},"o"),t=[1,18],r=[1,19],a=[1,20],s=[1,41],o=[1,42],u=[1,26],h=[1,24],f=[1,25],p=[1,32],m=[1,33],b=[1,34],_=[1,45],w=[1,35],S=[1,36],C=[1,37],A=[1,38],k=[1,27],I=[1,28],N=[1,29],L=[1,30],P=[1,31],M=[1,44],F=[1,46],U=[1,43],$=[1,47],G=[1,9],B=[1,8,9],Z=[1,58],z=[1,59],Y=[1,60],W=[1,61],Q=[1,62],V=[1,63],j=[1,64],ee=[1,8,9,41],te=[1,76],ne=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],se=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ie=[13,60,86,100,102,103],ge=[13,60,73,74,86,100,102,103],ce=[13,60,68,69,70,71,72,86,100,102,103],be=[1,100],ve=[1,117],De=[1,113],ye=[1,109],Ee=[1,115],he=[1,110],we=[1,111],Ce=[1,112],Ie=[1,114],Le=[1,116],Fe=[22,48,60,61,82,86,87,88,89,90],Ve=[1,8,9,39,41,44],Oe=[1,8,9,22],Dt=[1,145],ot=[1,8,9,61],sn=[1,8,9,22,48,60,61,82,86,87,88,89,90],Kt={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",48:"SPACE",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:X(function(et,qe,He,Ge,Ye,Ae,Xe){var fe=Ae.length-1;switch(Ye){case 8:this.$=Ae[fe-1];break;case 9:case 10:case 13:case 15:this.$=Ae[fe];break;case 11:case 14:this.$=Ae[fe-2]+"."+Ae[fe];break;case 12:case 16:this.$=Ae[fe-1]+Ae[fe];break;case 17:case 18:this.$=Ae[fe-1]+"~"+Ae[fe]+"~";break;case 19:Ge.addRelation(Ae[fe]);break;case 20:Ae[fe-1].title=Ge.cleanupLabel(Ae[fe]),Ge.addRelation(Ae[fe-1]);break;case 31:this.$=Ae[fe].trim(),Ge.setAccTitle(this.$);break;case 32:case 33:this.$=Ae[fe].trim(),Ge.setAccDescription(this.$);break;case 34:Ge.addClassesToNamespace(Ae[fe-3],Ae[fe-1]);break;case 35:Ge.addClassesToNamespace(Ae[fe-4],Ae[fe-1]);break;case 36:this.$=Ae[fe],Ge.addNamespace(Ae[fe]);break;case 37:this.$=[Ae[fe]];break;case 38:this.$=[Ae[fe-1]];break;case 39:Ae[fe].unshift(Ae[fe-2]),this.$=Ae[fe];break;case 41:Ge.setCssClass(Ae[fe-2],Ae[fe]);break;case 42:Ge.addMembers(Ae[fe-3],Ae[fe-1]);break;case 44:Ge.setCssClass(Ae[fe-5],Ae[fe-3]),Ge.addMembers(Ae[fe-5],Ae[fe-1]);break;case 45:this.$=Ae[fe],Ge.addClass(Ae[fe]);break;case 46:this.$=Ae[fe-1],Ge.addClass(Ae[fe-1]),Ge.setClassLabel(Ae[fe-1],Ae[fe]);break;case 50:Ge.addAnnotation(Ae[fe],Ae[fe-2]);break;case 51:case 64:this.$=[Ae[fe]];break;case 52:Ae[fe].push(Ae[fe-1]),this.$=Ae[fe];break;case 53:break;case 54:Ge.addMember(Ae[fe-1],Ge.cleanupLabel(Ae[fe]));break;case 55:break;case 56:break;case 57:this.$={id1:Ae[fe-2],id2:Ae[fe],relation:Ae[fe-1],relationTitle1:"none",relationTitle2:"none"};break;case 58:this.$={id1:Ae[fe-3],id2:Ae[fe],relation:Ae[fe-1],relationTitle1:Ae[fe-2],relationTitle2:"none"};break;case 59:this.$={id1:Ae[fe-3],id2:Ae[fe],relation:Ae[fe-2],relationTitle1:"none",relationTitle2:Ae[fe-1]};break;case 60:this.$={id1:Ae[fe-4],id2:Ae[fe],relation:Ae[fe-2],relationTitle1:Ae[fe-3],relationTitle2:Ae[fe-1]};break;case 61:Ge.addNote(Ae[fe],Ae[fe-1]);break;case 62:Ge.addNote(Ae[fe]);break;case 63:this.$=Ae[fe-2],Ge.defineClass(Ae[fe-1],Ae[fe]);break;case 65:this.$=Ae[fe-2].concat([Ae[fe]]);break;case 66:Ge.setDirection("TB");break;case 67:Ge.setDirection("BT");break;case 68:Ge.setDirection("RL");break;case 69:Ge.setDirection("LR");break;case 70:this.$={type1:Ae[fe-2],type2:Ae[fe],lineType:Ae[fe-1]};break;case 71:this.$={type1:"none",type2:Ae[fe],lineType:Ae[fe-1]};break;case 72:this.$={type1:Ae[fe-1],type2:"none",lineType:Ae[fe]};break;case 73:this.$={type1:"none",type2:"none",lineType:Ae[fe]};break;case 74:this.$=Ge.relationType.AGGREGATION;break;case 75:this.$=Ge.relationType.EXTENSION;break;case 76:this.$=Ge.relationType.COMPOSITION;break;case 77:this.$=Ge.relationType.DEPENDENCY;break;case 78:this.$=Ge.relationType.LOLLIPOP;break;case 79:this.$=Ge.lineType.LINE;break;case 80:this.$=Ge.lineType.DOTTED_LINE;break;case 81:case 87:this.$=Ae[fe-2],Ge.setClickEvent(Ae[fe-1],Ae[fe]);break;case 82:case 88:this.$=Ae[fe-3],Ge.setClickEvent(Ae[fe-2],Ae[fe-1]),Ge.setTooltip(Ae[fe-2],Ae[fe]);break;case 83:this.$=Ae[fe-2],Ge.setLink(Ae[fe-1],Ae[fe]);break;case 84:this.$=Ae[fe-3],Ge.setLink(Ae[fe-2],Ae[fe-1],Ae[fe]);break;case 85:this.$=Ae[fe-3],Ge.setLink(Ae[fe-2],Ae[fe-1]),Ge.setTooltip(Ae[fe-2],Ae[fe]);break;case 86:this.$=Ae[fe-4],Ge.setLink(Ae[fe-3],Ae[fe-2],Ae[fe]),Ge.setTooltip(Ae[fe-3],Ae[fe-1]);break;case 89:this.$=Ae[fe-3],Ge.setClickEvent(Ae[fe-2],Ae[fe-1],Ae[fe]);break;case 90:this.$=Ae[fe-4],Ge.setClickEvent(Ae[fe-3],Ae[fe-2],Ae[fe-1]),Ge.setTooltip(Ae[fe-3],Ae[fe]);break;case 91:this.$=Ae[fe-3],Ge.setLink(Ae[fe-2],Ae[fe]);break;case 92:this.$=Ae[fe-4],Ge.setLink(Ae[fe-3],Ae[fe-1],Ae[fe]);break;case 93:this.$=Ae[fe-4],Ge.setLink(Ae[fe-3],Ae[fe-1]),Ge.setTooltip(Ae[fe-3],Ae[fe]);break;case 94:this.$=Ae[fe-5],Ge.setLink(Ae[fe-4],Ae[fe-2],Ae[fe]),Ge.setTooltip(Ae[fe-4],Ae[fe-1]);break;case 95:this.$=Ae[fe-2],Ge.setCssStyle(Ae[fe-1],Ae[fe]);break;case 96:Ge.setCssClass(Ae[fe-1],Ae[fe]);break;case 97:this.$=[Ae[fe]];break;case 98:Ae[fe-2].push(Ae[fe]),this.$=Ae[fe-2];break;case 100:this.$=Ae[fe-1]+Ae[fe];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:r,37:a,38:22,42:s,43:23,46:o,49:u,51:h,52:f,54:p,56:m,57:b,60:_,62:w,63:S,64:C,65:A,75:k,76:I,78:N,82:L,83:P,86:M,100:F,102:U,103:$},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(G,[2,5],{8:[1,48]}),{8:[1,49]},e(B,[2,19],{22:[1,50]}),e(B,[2,21]),e(B,[2,22]),e(B,[2,23]),e(B,[2,24]),e(B,[2,25]),e(B,[2,26]),e(B,[2,27]),e(B,[2,28]),e(B,[2,29]),e(B,[2,30]),{34:[1,51]},{36:[1,52]},e(B,[2,33]),e(B,[2,53],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:Z,69:z,70:Y,71:W,72:Q,73:V,74:j}),{39:[1,65]},e(ee,[2,40],{39:[1,67],44:[1,66]}),e(B,[2,55]),e(B,[2,56]),{16:68,60:_,86:M,100:F,102:U},{16:39,17:40,19:69,60:_,86:M,100:F,102:U,103:$},{16:39,17:40,19:70,60:_,86:M,100:F,102:U,103:$},{16:39,17:40,19:71,60:_,86:M,100:F,102:U,103:$},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:_,86:M,100:F,102:U,103:$},{13:te,55:75},{58:77,60:[1,78]},e(B,[2,66]),e(B,[2,67]),e(B,[2,68]),e(B,[2,69]),e(ne,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:_,86:M,100:F,102:U,103:$}),e(ne,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:_,86:M,100:F,102:U,103:$},{16:39,17:40,19:86,60:_,86:M,100:F,102:U,103:$},e(se,[2,123]),e(se,[2,124]),e(se,[2,125]),e(se,[2,126]),e([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,127]),e(G,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:t,35:r,37:a,42:s,46:o,49:u,51:h,52:f,54:p,56:m,57:b,60:_,62:w,63:S,64:C,65:A,75:k,76:I,78:N,82:L,83:P,86:M,100:F,102:U,103:$}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:r,37:a,38:22,42:s,43:23,46:o,49:u,51:h,52:f,54:p,56:m,57:b,60:_,62:w,63:S,64:C,65:A,75:k,76:I,78:N,82:L,83:P,86:M,100:F,102:U,103:$},e(B,[2,20]),e(B,[2,31]),e(B,[2,32]),{13:[1,90],16:39,17:40,19:89,60:_,86:M,100:F,102:U,103:$},{53:91,66:56,67:57,68:Z,69:z,70:Y,71:W,72:Q,73:V,74:j},e(B,[2,54]),{67:92,73:V,74:j},e(ie,[2,73],{66:93,68:Z,69:z,70:Y,71:W,72:Q}),e(ge,[2,74]),e(ge,[2,75]),e(ge,[2,76]),e(ge,[2,77]),e(ge,[2,78]),e(ce,[2,79]),e(ce,[2,80]),{8:[1,95],24:96,40:94,43:23,46:o},{16:97,60:_,86:M,100:F,102:U},{41:[1,99],45:98,51:be},{50:[1,101]},{13:[1,102]},{13:[1,103]},{79:[1,104],81:[1,105]},{22:ve,48:De,59:106,60:ye,82:Ee,84:107,85:108,86:he,87:we,88:Ce,89:Ie,90:Le},{60:[1,118]},{13:te,55:119},e(B,[2,62]),e(B,[2,128]),{22:ve,48:De,59:120,60:ye,61:[1,121],82:Ee,84:107,85:108,86:he,87:we,88:Ce,89:Ie,90:Le},e(Fe,[2,64]),{16:39,17:40,19:122,60:_,86:M,100:F,102:U,103:$},e(ne,[2,16]),e(ne,[2,17]),e(ne,[2,18]),{39:[2,36]},{15:124,16:84,17:85,18:[1,123],39:[2,9],60:_,86:M,100:F,102:U,103:$},{39:[2,10]},e(Ve,[2,45],{11:125,12:[1,126]}),e(G,[2,7]),{9:[1,127]},e(Oe,[2,57]),{16:39,17:40,19:128,60:_,86:M,100:F,102:U,103:$},{13:[1,130],16:39,17:40,19:129,60:_,86:M,100:F,102:U,103:$},e(ie,[2,72],{66:131,68:Z,69:z,70:Y,71:W,72:Q}),e(ie,[2,71]),{41:[1,132]},{24:96,40:133,43:23,46:o},{8:[1,134],41:[2,37]},e(ee,[2,41],{39:[1,135]}),{41:[1,136]},e(ee,[2,43]),{41:[2,51],45:137,51:be},{16:39,17:40,19:138,60:_,86:M,100:F,102:U,103:$},e(B,[2,81],{13:[1,139]}),e(B,[2,83],{13:[1,141],77:[1,140]}),e(B,[2,87],{13:[1,142],80:[1,143]}),{13:[1,144]},e(B,[2,95],{61:Dt}),e(ot,[2,97],{85:146,22:ve,48:De,60:ye,82:Ee,86:he,87:we,88:Ce,89:Ie,90:Le}),e(sn,[2,99]),e(sn,[2,101]),e(sn,[2,102]),e(sn,[2,103]),e(sn,[2,104]),e(sn,[2,105]),e(sn,[2,106]),e(sn,[2,107]),e(sn,[2,108]),e(sn,[2,109]),e(B,[2,96]),e(B,[2,61]),e(B,[2,63],{61:Dt}),{60:[1,147]},e(ne,[2,14]),{15:148,16:84,17:85,60:_,86:M,100:F,102:U,103:$},{39:[2,12]},e(Ve,[2,46]),{13:[1,149]},{1:[2,4]},e(Oe,[2,59]),e(Oe,[2,58]),{16:39,17:40,19:150,60:_,86:M,100:F,102:U,103:$},e(ie,[2,70]),e(B,[2,34]),{41:[1,151]},{24:96,40:152,41:[2,38],43:23,46:o},{45:153,51:be},e(ee,[2,42]),{41:[2,52]},e(B,[2,50]),e(B,[2,82]),e(B,[2,84]),e(B,[2,85],{77:[1,154]}),e(B,[2,88]),e(B,[2,89],{13:[1,155]}),e(B,[2,91],{13:[1,157],77:[1,156]}),{22:ve,48:De,60:ye,82:Ee,84:158,85:108,86:he,87:we,88:Ce,89:Ie,90:Le},e(sn,[2,100]),e(Fe,[2,65]),{39:[2,11]},{14:[1,159]},e(Oe,[2,60]),e(B,[2,35]),{41:[2,39]},{41:[1,160]},e(B,[2,86]),e(B,[2,90]),e(B,[2,92]),e(B,[2,93],{77:[1,161]}),e(ot,[2,98],{85:146,22:ve,48:De,60:ye,82:Ee,86:he,87:we,88:Ce,89:Ie,90:Le}),e(Ve,[2,8]),e(ee,[2,44]),e(B,[2,94])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],124:[2,12],127:[2,4],137:[2,52],148:[2,11],152:[2,39]},parseError:X(function(et,qe){if(qe.recoverable)this.trace(et);else{var He=new Error(et);throw He.hash=qe,He}},"parseError"),parse:X(function(et){var qe=this,He=[0],Ge=[],Ye=[null],Ae=[],Xe=this.table,fe="",Qe=0,Ke=0,mt=2,lt=1,$t=Ae.slice.call(arguments,1),Ut=Object.create(this.lexer),Jt={yy:{}};for(var wn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,wn)&&(Jt.yy[wn]=this.yy[wn]);Ut.setInput(et,Jt.yy),Jt.yy.lexer=Ut,Jt.yy.parser=this,typeof Ut.yylloc>"u"&&(Ut.yylloc={});var Vn=Ut.yylloc;Ae.push(Vn);var Wn=Ut.options&&Ut.options.ranges;typeof Jt.yy.parseError=="function"?this.parseError=Jt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Dn(Pr){He.length=He.length-2*Pr,Ye.length=Ye.length-Pr,Ae.length=Ae.length-Pr}X(Dn,"popStack");function zn(){var Pr;return Pr=Ge.pop()||Ut.lex()||lt,typeof Pr!="number"&&(Pr instanceof Array&&(Ge=Pr,Pr=Ge.pop()),Pr=qe.symbols_[Pr]||Pr),Pr}X(zn,"lex");for(var vn,Cn,Ar,ur,On={},Ir,Ln,pr,Cr;;){if(Cn=He[He.length-1],this.defaultActions[Cn]?Ar=this.defaultActions[Cn]:((vn===null||typeof vn>"u")&&(vn=zn()),Ar=Xe[Cn]&&Xe[Cn][vn]),typeof Ar>"u"||!Ar.length||!Ar[0]){var Zr="";Cr=[];for(Ir in Xe[Cn])this.terminals_[Ir]&&Ir>mt&&Cr.push("'"+this.terminals_[Ir]+"'");Ut.showPosition?Zr="Parse error on line "+(Qe+1)+`: `+Ut.showPosition()+` Expecting `+Cr.join(", ")+", got '"+(this.terminals_[vn]||vn)+"'":Zr="Parse error on line "+(Qe+1)+": Unexpected "+(vn==lt?"end of input":"'"+(this.terminals_[vn]||vn)+"'"),this.parseError(Zr,{text:Ut.match,token:this.terminals_[vn]||vn,line:Ut.yylineno,loc:Vn,expected:Cr})}if(Ar[0]instanceof Array&&Ar.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Cn+", token: "+vn);switch(Ar[0]){case 1:He.push(vn),Ye.push(Ut.yytext),Ae.push(Ut.yylloc),He.push(Ar[1]),vn=null,Ke=Ut.yyleng,fe=Ut.yytext,Qe=Ut.yylineno,Vn=Ut.yylloc;break;case 2:if(Ln=this.productions_[Ar[1]][1],On.$=Ye[Ye.length-Ln],On._$={first_line:Ae[Ae.length-(Ln||1)].first_line,last_line:Ae[Ae.length-1].last_line,first_column:Ae[Ae.length-(Ln||1)].first_column,last_column:Ae[Ae.length-1].last_column},Wn&&(On._$.range=[Ae[Ae.length-(Ln||1)].range[0],Ae[Ae.length-1].range[1]]),ur=this.performAction.apply(On,[fe,Ke,Qe,Jt.yy,Ar[1],Ye,Ae].concat($t)),typeof ur<"u")return ur;Ln&&(He=He.slice(0,-1*Ln*2),Ye=Ye.slice(0,-1*Ln),Ae=Ae.slice(0,-1*Ln)),He.push(this.productions_[Ar[1]][0]),Ye.push(On.$),Ae.push(On._$),pr=Xe[He[He.length-2]][He[He.length-1]],He.push(pr);break;case 3:return!0}}return!0},"parse")},Ft=function(){var ht={EOF:1,parseError:X(function(qe,He){if(this.yy.parser)this.yy.parser.parseError(qe,He);else throw new Error(qe)},"parseError"),setInput:X(function(et,qe){return this.yy=qe||this.yy||{},this._input=et,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:X(function(){var et=this._input[0];this.yytext+=et,this.yyleng++,this.offset++,this.match+=et,this.matched+=et;var qe=et.match(/(?:\r\n?|\n).*/g);return qe?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),et},"input"),unput:X(function(et){var qe=et.length,He=et.split(/(?:\r\n?|\n)/g);this._input=et+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-qe),this.offset-=qe;var Ge=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),He.length-1&&(this.yylineno-=He.length-1);var Ye=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:He?(He.length===Ge.length?this.yylloc.first_column:0)+Ge[Ge.length-He.length].length-He[0].length:this.yylloc.first_column-qe},this.options.ranges&&(this.yylloc.range=[Ye[0],Ye[0]+this.yyleng-qe]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(et){this.unput(this.match.slice(et))},"less"),pastInput:X(function(){var et=this.matched.substr(0,this.matched.length-this.match.length);return(et.length>20?"...":"")+et.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var et=this.match;return et.length<20&&(et+=this._input.substr(0,20-et.length)),(et.substr(0,20)+(et.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var et=this.pastInput(),qe=new Array(et.length+1).join("-");return et+this.upcomingInput()+` `+qe+"^"},"showPosition"),test_match:X(function(et,qe){var He,Ge,Ye;if(this.options.backtrack_lexer&&(Ye={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Ye.yylloc.range=this.yylloc.range.slice(0))),Ge=et[0].match(/(?:\r\n?|\n).*/g),Ge&&(this.yylineno+=Ge.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ge?Ge[Ge.length-1].length-Ge[Ge.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+et[0].length},this.yytext+=et[0],this.match+=et[0],this.matches=et,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(et[0].length),this.matched+=et[0],He=this.performAction.call(this,this.yy,this,qe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),He)return He;if(this._backtrack){for(var Ae in Ye)this[Ae]=Ye[Ae];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var et,qe,He,Ge;this._more||(this.yytext="",this.match="");for(var Ye=this._currentRules(),Ae=0;Aeqe[0].length)){if(qe=He,Ge=Ae,this.options.backtrack_lexer){if(et=this.test_match(He,Ye[Ae]),et!==!1)return et;if(this._backtrack){qe=!1;continue}else return!1}else if(!this.options.flex)break}return qe?(et=this.test_match(qe,Ye[Ge]),et!==!1?et:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var qe=this.next();return qe||this.lex()},"lex"),begin:X(function(qe){this.conditionStack.push(qe)},"begin"),popState:X(function(){var qe=this.conditionStack.length-1;return qe>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(qe){return qe=this.conditionStack.length-1-Math.abs(qe||0),qe>=0?this.conditionStack[qe]:"INITIAL"},"topState"),pushState:X(function(qe){this.begin(qe)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:X(function(qe,He,Ge,Ye){switch(Ge){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin("namespace-body"),39;case 33:return this.popState(),41;case 34:return"EOF_IN_STRUCT";case 35:return 8;case 36:break;case 37:return"EDGE_STATE";case 38:return this.begin("class"),46;case 39:return this.popState(),8;case 40:break;case 41:return this.popState(),this.popState(),41;case 42:return this.begin("class-body"),39;case 43:return this.popState(),41;case 44:return"EOF_IN_STRUCT";case 45:return"EDGE_STATE";case 46:return"OPEN_IN_STRUCT";case 47:break;case 48:return"MEMBER";case 49:return 83;case 50:return 75;case 51:return 76;case 52:return 78;case 53:return 54;case 54:return 56;case 55:return 49;case 56:return 50;case 57:return 81;case 58:this.popState();break;case 59:return"GENERICTYPE";case 60:this.begin("generic");break;case 61:this.popState();break;case 62:return"BQUOTE_STR";case 63:this.begin("bqstring");break;case 64:return 77;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 69;case 69:return 69;case 70:return 71;case 71:return 71;case 72:return 70;case 73:return 68;case 74:return 72;case 75:return 73;case 76:return 74;case 77:return 22;case 78:return 44;case 79:return 100;case 80:return 18;case 81:return"PLUS";case 82:return 87;case 83:return 61;case 84:return 89;case 85:return 89;case 86:return 90;case 87:return"EQUALS";case 88:return"EQUALS";case 89:return 60;case 90:return 12;case 91:return 14;case 92:return"PUNCTUATION";case 93:return 86;case 94:return 102;case 95:return 48;case 96:return 48;case 97:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,33,34,35,36,37,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},namespace:{rules:[26,29,30,31,32,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},"class-body":{rules:[26,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},class:{rules:[26,39,40,41,42,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr:{rules:[9,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_title:{rules:[7,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_args:{rules:[22,23,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_name:{rules:[19,20,21,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},href:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},struct:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},generic:{rules:[26,49,50,51,52,53,54,55,56,57,58,59,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},bqstring:{rules:[26,49,50,51,52,53,54,55,56,57,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},string:{rules:[24,25,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!0}}};return ht}();Kt.lexer=Ft;function Je(){this.yy={}}return X(Je,"Parser"),Je.prototype=Kt,Kt.Parser=Je,new Je}();Iut.parser=Iut;var QKn=Iut,sTn=["#","+","~","-",""],ij,oTn=(ij=class{constructor(t,r){this.memberType=r,this.visibility="",this.classifier="",this.text="";const a=Ic(t,nn());this.parseMember(a)}getDisplayDetails(){let t=this.visibility+WN(this.id);this.memberType==="method"&&(t+=`(${WN(this.parameters.trim())})`,this.returnType&&(t+=" : "+WN(this.returnType))),t=t.trim();const r=this.parseClassifier();return{displayText:t,cssStyle:r}}parseMember(t){let r="";if(this.memberType==="method"){const o=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(o){const u=o[1]?o[1].trim():"";if(sTn.includes(u)&&(this.visibility=u),this.id=o[2],this.parameters=o[3]?o[3].trim():"",r=o[4]?o[4].trim():"",this.returnType=o[5]?o[5].trim():"",r===""){const h=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(h)&&(r=h,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const s=t.length,o=t.substring(0,1),u=t.substring(s-1);sTn.includes(o)&&(this.visibility=o),/[$*]/.exec(u)&&(r=u),this.id=t.substring(this.visibility===""?0:1,r===""?s:s-1)}this.classifier=r,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const a=`${this.visibility?"\\"+this.visibility:""}${WN(this.id)}${this.memberType==="method"?`(${WN(this.parameters)})${this.returnType?" : "+WN(this.returnType):""}`:""}`;this.text=a.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<")&&(this.text=this.text.replace("\\<","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},X(ij,"ClassMember"),ij),hEe="classId-",lTn=0,EB=X(e=>Ti.sanitizeText(e,nn()),"sanitizeText"),aj,ZKn=(aj=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=[],this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=X(t=>{let r=gn(".mermaidTooltip");(r._groups||r)[0][0]===null&&(r=gn("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),gn(t).select("svg").selectAll("g.node").on("mouseover",o=>{const u=gn(o.currentTarget);if(u.attr("title")===null)return;const f=this.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(u.attr("title")).style("left",window.scrollX+f.left+(f.right-f.left)/2+"px").style("top",window.scrollY+f.top-14+document.body.scrollTop+"px"),r.html(r.html().replace(/<br\/>/g,"
    ")),u.classed("hover",!0)}).on("mouseout",o=>{r.transition().duration(500).style("opacity",0),gn(o.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=N1,this.getAccTitle=Mp,this.setAccDescription=Pp,this.getAccDescription=Bp,this.setDiagramTitle=Og,this.getDiagramTitle=P1,this.getConfig=X(()=>nn().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}splitClassNameAndType(t){const r=Ti.sanitizeText(t,nn());let a="",s=r;if(r.indexOf("~")>0){const o=r.split("~");s=EB(o[0]),a=EB(o[1])}return{className:s,type:a}}setClassLabel(t,r){const a=Ti.sanitizeText(t,nn());r&&(r=EB(r));const{className:s}=this.splitClassNameAndType(a);this.classes.get(s).label=r,this.classes.get(s).text=`${r}${this.classes.get(s).type?`<${this.classes.get(s).type}>`:""}`}addClass(t){const r=Ti.sanitizeText(t,nn()),{className:a,type:s}=this.splitClassNameAndType(r);if(this.classes.has(a))return;const o=Ti.sanitizeText(a,nn());this.classes.set(o,{id:o,type:s,label:o,text:`${o}${s?`<${s}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:hEe+o+"-"+lTn}),lTn++}addInterface(t,r){const a={id:`interface${this.interfaces.length}`,label:t,classId:r};this.interfaces.push(a)}lookUpDomId(t){const r=Ti.sanitizeText(t,nn());if(this.classes.has(r))return this.classes.get(r).domId;throw new Error("Class not found: "+r)}clear(){this.relations=[],this.classes=new Map,this.notes=[],this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.direction="TB",M1()}getClass(t){return this.classes.get(t)}getClasses(){return this.classes}getRelations(){return this.relations}getNotes(){return this.notes}addRelation(t){it.debug("Adding relation: "+JSON.stringify(t));const r=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];t.relation.type1===this.relationType.LOLLIPOP&&!r.includes(t.relation.type2)?(this.addClass(t.id2),this.addInterface(t.id1,t.id2),t.id1=`interface${this.interfaces.length-1}`):t.relation.type2===this.relationType.LOLLIPOP&&!r.includes(t.relation.type1)?(this.addClass(t.id1),this.addInterface(t.id2,t.id1),t.id2=`interface${this.interfaces.length-1}`):(this.addClass(t.id1),this.addClass(t.id2)),t.id1=this.splitClassNameAndType(t.id1).className,t.id2=this.splitClassNameAndType(t.id2).className,t.relationTitle1=Ti.sanitizeText(t.relationTitle1.trim(),nn()),t.relationTitle2=Ti.sanitizeText(t.relationTitle2.trim(),nn()),this.relations.push(t)}addAnnotation(t,r){const a=this.splitClassNameAndType(t).className;this.classes.get(a).annotations.push(r)}addMember(t,r){this.addClass(t);const a=this.splitClassNameAndType(t).className,s=this.classes.get(a);if(typeof r=="string"){const o=r.trim();o.startsWith("<<")&&o.endsWith(">>")?s.annotations.push(EB(o.substring(2,o.length-2))):o.indexOf(")")>0?s.methods.push(new oTn(o,"method")):o&&s.members.push(new oTn(o,"attribute"))}}addMembers(t,r){Array.isArray(r)&&(r.reverse(),r.forEach(a=>this.addMember(t,a)))}addNote(t,r){const a={id:`note${this.notes.length}`,class:r,text:t};this.notes.push(a)}cleanupLabel(t){return t.startsWith(":")&&(t=t.substring(1)),EB(t.trim())}setCssClass(t,r){t.split(",").forEach(a=>{let s=a;/\d/.exec(a[0])&&(s=hEe+s);const o=this.classes.get(s);o&&(o.cssClasses+=" "+r)})}defineClass(t,r){for(const a of t){let s=this.styleClasses.get(a);s===void 0&&(s={id:a,styles:[],textStyles:[]},this.styleClasses.set(a,s)),r&&r.forEach(o=>{if(/color/.exec(o)){const u=o.replace("fill","bgFill");s.textStyles.push(u)}s.styles.push(o)}),this.classes.forEach(o=>{o.cssClasses.includes(a)&&o.styles.push(...r.flatMap(u=>u.split(",")))})}}setTooltip(t,r){t.split(",").forEach(a=>{r!==void 0&&(this.classes.get(a).tooltip=EB(r))})}getTooltip(t,r){return r&&this.namespaces.has(r)?this.namespaces.get(r).classes.get(t).tooltip:this.classes.get(t).tooltip}setLink(t,r,a){const s=nn();t.split(",").forEach(o=>{let u=o;/\d/.exec(o[0])&&(u=hEe+u);const h=this.classes.get(u);h&&(h.link=Vo.formatUrl(r,s),s.securityLevel==="sandbox"?h.linkTarget="_top":typeof a=="string"?h.linkTarget=EB(a):h.linkTarget="_blank")}),this.setCssClass(t,"clickable")}setClickEvent(t,r,a){t.split(",").forEach(s=>{this.setClickFunc(s,r,a),this.classes.get(s).haveCallback=!0}),this.setCssClass(t,"clickable")}setClickFunc(t,r,a){const s=Ti.sanitizeText(t,nn());if(nn().securityLevel!=="loose"||r===void 0)return;const u=s;if(this.classes.has(u)){const h=this.lookUpDomId(u);let f=[];if(typeof a=="string"){f=a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let p=0;p{const p=document.querySelector(`[id="${h}"]`);p!==null&&p.addEventListener("click",()=>{Vo.runFunc(r,...f)},!1)})}}bindFunctions(t){this.functions.forEach(r=>{r(t)})}getDirection(){return this.direction}setDirection(t){this.direction=t}addNamespace(t){this.namespaces.has(t)||(this.namespaces.set(t,{id:t,classes:new Map,children:{},domId:hEe+t+"-"+this.namespaceCounter}),this.namespaceCounter++)}getNamespace(t){return this.namespaces.get(t)}getNamespaces(){return this.namespaces}addClassesToNamespace(t,r){if(this.namespaces.has(t))for(const a of r){const{className:s}=this.splitClassNameAndType(a);this.classes.get(s).parent=t,this.namespaces.get(t).classes.set(s,this.classes.get(s))}}setCssStyle(t,r){const a=this.classes.get(t);if(!(!r||!a))for(const s of r)s.includes(",")?a.styles.push(...s.split(",")):a.styles.push(s)}getArrowMarker(t){let r;switch(t){case 0:r="aggregation";break;case 1:r="extension";break;case 2:r="composition";break;case 3:r="dependency";break;case 4:r="lollipop";break;default:r="none"}return r}getData(){var o;const t=[],r=[],a=nn();for(const u of this.namespaces.keys()){const h=this.namespaces.get(u);if(h){const f={id:h.id,label:h.id,isGroup:!0,padding:a.class.padding??16,shape:"rect",cssStyles:["fill: none","stroke: black"],look:a.look};t.push(f)}}for(const u of this.classes.keys()){const h=this.classes.get(u);if(h){const f=h;f.parentId=h.parent,f.look=a.look,t.push(f)}}let s=0;for(const u of this.notes){s++;const h={id:u.id,label:u.text,isGroup:!1,shape:"note",padding:a.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${a.themeVariables.noteBkgColor}`,`stroke: ${a.themeVariables.noteBorderColor}`],look:a.look};t.push(h);const f=((o=this.classes.get(u.class))==null?void 0:o.id)??"";if(f){const p={id:`edgeNote${s}`,start:u.id,end:f,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:a.look};r.push(p)}}for(const u of this.interfaces){const h={id:u.id,label:u.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:a.look};t.push(h)}s=0;for(const u of this.relations){s++;const h={id:XV(u.id1,u.id2,{prefix:"id",counter:s}),start:u.id1,end:u.id2,type:"normal",label:u.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(u.relation.type1),arrowTypeEnd:this.getArrowMarker(u.relation.type2),startLabelRight:u.relationTitle1==="none"?"":u.relationTitle1,endLabelLeft:u.relationTitle2==="none"?"":u.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:u.style||"",pattern:u.relation.lineType==1?"dashed":"solid",look:a.look};r.push(h)}return{nodes:t,edges:r,other:{},config:a,direction:this.getDirection()}}},X(aj,"ClassDB"),aj),aKi=X(e=>`g.classGroup text { fill: ${e.nodeBorder||e.classText}; stroke: none; font-family: ${e.fontFamily}; font-size: 10px; .title { font-weight: bolder; } } .nodeLabel, .edgeLabel { color: ${e.classText}; } .edgeLabel .label rect { fill: ${e.mainBkg}; } .label text { fill: ${e.classText}; } .labelBkg { background: ${e.mainBkg}; } .edgeLabel .label span { background: ${e.mainBkg}; } .classTitle { font-weight: bolder; } .node rect, .node circle, .node ellipse, .node polygon, .node path { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: 1px; } .divider { stroke: ${e.nodeBorder}; stroke-width: 1; } g.clickable { cursor: pointer; } g.classGroup rect { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; } g.classGroup line { stroke: ${e.nodeBorder}; stroke-width: 1; } .classLabel .box { stroke: none; stroke-width: 0; fill: ${e.mainBkg}; opacity: 0.5; } .classLabel .label { fill: ${e.nodeBorder}; font-size: 10px; } .relation { stroke: ${e.lineColor}; stroke-width: 1; fill: none; } .dashed-line{ stroke-dasharray: 3; } .dotted-line{ stroke-dasharray: 1 2; } #compositionStart, .composition { fill: ${e.lineColor} !important; stroke: ${e.lineColor} !important; stroke-width: 1; } #compositionEnd, .composition { fill: ${e.lineColor} !important; stroke: ${e.lineColor} !important; stroke-width: 1; } #dependencyStart, .dependency { fill: ${e.lineColor} !important; stroke: ${e.lineColor} !important; stroke-width: 1; } #dependencyStart, .dependency { fill: ${e.lineColor} !important; stroke: ${e.lineColor} !important; stroke-width: 1; } #extensionStart, .extension { fill: transparent !important; stroke: ${e.lineColor} !important; stroke-width: 1; } #extensionEnd, .extension { fill: transparent !important; stroke: ${e.lineColor} !important; stroke-width: 1; } #aggregationStart, .aggregation { fill: transparent !important; stroke: ${e.lineColor} !important; stroke-width: 1; } #aggregationEnd, .aggregation { fill: transparent !important; stroke: ${e.lineColor} !important; stroke-width: 1; } #lollipopStart, .lollipop { fill: ${e.mainBkg} !important; stroke: ${e.lineColor} !important; stroke-width: 1; } #lollipopEnd, .lollipop { fill: ${e.mainBkg} !important; stroke: ${e.lineColor} !important; stroke-width: 1; } .edgeTerminals { font-size: 11px; line-height: initial; } .classTitleText { text-anchor: middle; font-size: 18px; fill: ${e.textColor}; } ${Lce()} `,"getStyles"),JKn=aKi,sKi=X((e,t="TB")=>{if(!e.doc)return t;let r=t;for(const a of e.doc)a.stmt==="dir"&&(r=a.value);return r},"getDir"),oKi=X(function(e,t){return t.db.getClasses()},"getClasses"),lKi=X(async function(e,t,r,a){it.info("REF0:"),it.info("Drawing class diagram (v3)",t);const{securityLevel:s,state:o,layout:u}=nn(),h=a.db.getData(),f=eK(t,s);h.type=a.type,h.layoutAlgorithm=hce(u),h.nodeSpacing=(o==null?void 0:o.nodeSpacing)||50,h.rankSpacing=(o==null?void 0:o.rankSpacing)||50,h.markers=["aggregation","extension","composition","dependency","lollipop"],h.diagramId=t,await $W(h,f);const p=8;Vo.insertTitle(f,"classDiagramTitleText",(o==null?void 0:o.titleTopMargin)??25,a.db.getDiagramTitle()),U$(f,p,"classDiagram",(o==null?void 0:o.useMaxWidth)??!0)},"draw"),eXn={getClasses:oKi,draw:lKi,getDir:sKi},cKi={parser:QKn,get db(){return new ZKn},renderer:eXn,styles:JKn,init:X(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};const uKi=Object.freeze(Object.defineProperty({__proto__:null,diagram:cKi},Symbol.toStringTag,{value:"Module"}));var hKi={parser:QKn,get db(){return new ZKn},renderer:eXn,styles:JKn,init:X(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};const dKi=Object.freeze(Object.defineProperty({__proto__:null,diagram:hKi},Symbol.toStringTag,{value:"Module"}));var Nut=function(){var e=X(function(ee,te,ne,se){for(ne=ne||{},se=ee.length;se--;ne[ee[se]]=te);return ne},"o"),t=[1,2],r=[1,3],a=[1,4],s=[2,4],o=[1,9],u=[1,11],h=[1,16],f=[1,17],p=[1,18],m=[1,19],b=[1,33],_=[1,20],w=[1,21],S=[1,22],C=[1,23],A=[1,24],k=[1,26],I=[1,27],N=[1,28],L=[1,29],P=[1,30],M=[1,31],F=[1,32],U=[1,35],$=[1,36],G=[1,37],B=[1,38],Z=[1,34],z=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],Y=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],W=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],Q={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:X(function(te,ne,se,ie,ge,ce,be){var ve=ce.length-1;switch(ge){case 3:return ie.setRootDoc(ce[ve]),ce[ve];case 4:this.$=[];break;case 5:ce[ve]!="nl"&&(ce[ve-1].push(ce[ve]),this.$=ce[ve-1]);break;case 6:case 7:this.$=ce[ve];break;case 8:this.$="nl";break;case 12:this.$=ce[ve];break;case 13:const he=ce[ve-1];he.description=ie.trimColon(ce[ve]),this.$=he;break;case 14:this.$={stmt:"relation",state1:ce[ve-2],state2:ce[ve]};break;case 15:const we=ie.trimColon(ce[ve]);this.$={stmt:"relation",state1:ce[ve-3],state2:ce[ve-1],description:we};break;case 19:this.$={stmt:"state",id:ce[ve-3],type:"default",description:"",doc:ce[ve-1]};break;case 20:var De=ce[ve],ye=ce[ve-2].trim();if(ce[ve].match(":")){var Ee=ce[ve].split(":");De=Ee[0],ye=[ye,Ee[1]]}this.$={stmt:"state",id:De,type:"default",description:ye};break;case 21:this.$={stmt:"state",id:ce[ve-3],type:"default",description:ce[ve-5],doc:ce[ve-1]};break;case 22:this.$={stmt:"state",id:ce[ve],type:"fork"};break;case 23:this.$={stmt:"state",id:ce[ve],type:"join"};break;case 24:this.$={stmt:"state",id:ce[ve],type:"choice"};break;case 25:this.$={stmt:"state",id:ie.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:ce[ve-1].trim(),note:{position:ce[ve-2].trim(),text:ce[ve].trim()}};break;case 29:this.$=ce[ve].trim(),ie.setAccTitle(this.$);break;case 30:case 31:this.$=ce[ve].trim(),ie.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:ce[ve-3],url:ce[ve-2],tooltip:ce[ve-1]};break;case 33:this.$={stmt:"click",id:ce[ve-3],url:ce[ve-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:ce[ve-1].trim(),classes:ce[ve].trim()};break;case 36:this.$={stmt:"style",id:ce[ve-1].trim(),styleClass:ce[ve].trim()};break;case 37:this.$={stmt:"applyClass",id:ce[ve-1].trim(),styleClass:ce[ve].trim()};break;case 38:ie.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:ie.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:ie.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:ie.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:ce[ve].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:ce[ve-2].trim(),classes:[ce[ve].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:ce[ve-2].trim(),classes:[ce[ve].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:t,5:r,6:a},{1:[3]},{3:5,4:t,5:r,6:a},{3:6,4:t,5:r,6:a},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:h,17:f,19:p,22:m,24:b,25:_,26:w,27:S,28:C,29:A,32:25,33:k,35:I,37:N,38:L,41:P,45:M,48:F,51:U,52:$,53:G,54:B,57:Z},e(z,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:h,17:f,19:p,22:m,24:b,25:_,26:w,27:S,28:C,29:A,32:25,33:k,35:I,37:N,38:L,41:P,45:M,48:F,51:U,52:$,53:G,54:B,57:Z},e(z,[2,7]),e(z,[2,8]),e(z,[2,9]),e(z,[2,10]),e(z,[2,11]),e(z,[2,12],{14:[1,40],15:[1,41]}),e(z,[2,16]),{18:[1,42]},e(z,[2,18],{20:[1,43]}),{23:[1,44]},e(z,[2,22]),e(z,[2,23]),e(z,[2,24]),e(z,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(z,[2,28]),{34:[1,49]},{36:[1,50]},e(z,[2,31]),{13:51,24:b,57:Z},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(Y,[2,44],{58:[1,56]}),e(Y,[2,45],{58:[1,57]}),e(z,[2,38]),e(z,[2,39]),e(z,[2,40]),e(z,[2,41]),e(z,[2,6]),e(z,[2,13]),{13:58,24:b,57:Z},e(z,[2,17]),e(W,s,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(z,[2,29]),e(z,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(z,[2,14],{14:[1,71]}),{4:o,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:h,17:f,19:p,21:[1,72],22:m,24:b,25:_,26:w,27:S,28:C,29:A,32:25,33:k,35:I,37:N,38:L,41:P,45:M,48:F,51:U,52:$,53:G,54:B,57:Z},e(z,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(z,[2,34]),e(z,[2,35]),e(z,[2,36]),e(z,[2,37]),e(Y,[2,46]),e(Y,[2,47]),e(z,[2,15]),e(z,[2,19]),e(W,s,{7:78}),e(z,[2,26]),e(z,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:h,17:f,19:p,21:[1,81],22:m,24:b,25:_,26:w,27:S,28:C,29:A,32:25,33:k,35:I,37:N,38:L,41:P,45:M,48:F,51:U,52:$,53:G,54:B,57:Z},e(z,[2,32]),e(z,[2,33]),e(z,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:X(function(te,ne){if(ne.recoverable)this.trace(te);else{var se=new Error(te);throw se.hash=ne,se}},"parseError"),parse:X(function(te){var ne=this,se=[0],ie=[],ge=[null],ce=[],be=this.table,ve="",De=0,ye=0,Ee=2,he=1,we=ce.slice.call(arguments,1),Ce=Object.create(this.lexer),Ie={yy:{}};for(var Le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Le)&&(Ie.yy[Le]=this.yy[Le]);Ce.setInput(te,Ie.yy),Ie.yy.lexer=Ce,Ie.yy.parser=this,typeof Ce.yylloc>"u"&&(Ce.yylloc={});var Fe=Ce.yylloc;ce.push(Fe);var Ve=Ce.options&&Ce.options.ranges;typeof Ie.yy.parseError=="function"?this.parseError=Ie.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Oe(Ye){se.length=se.length-2*Ye,ge.length=ge.length-Ye,ce.length=ce.length-Ye}X(Oe,"popStack");function Dt(){var Ye;return Ye=ie.pop()||Ce.lex()||he,typeof Ye!="number"&&(Ye instanceof Array&&(ie=Ye,Ye=ie.pop()),Ye=ne.symbols_[Ye]||Ye),Ye}X(Dt,"lex");for(var ot,sn,Kt,Ft,Je={},ht,et,qe,He;;){if(sn=se[se.length-1],this.defaultActions[sn]?Kt=this.defaultActions[sn]:((ot===null||typeof ot>"u")&&(ot=Dt()),Kt=be[sn]&&be[sn][ot]),typeof Kt>"u"||!Kt.length||!Kt[0]){var Ge="";He=[];for(ht in be[sn])this.terminals_[ht]&&ht>Ee&&He.push("'"+this.terminals_[ht]+"'");Ce.showPosition?Ge="Parse error on line "+(De+1)+`: `+Ce.showPosition()+` Expecting `+He.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'":Ge="Parse error on line "+(De+1)+": Unexpected "+(ot==he?"end of input":"'"+(this.terminals_[ot]||ot)+"'"),this.parseError(Ge,{text:Ce.match,token:this.terminals_[ot]||ot,line:Ce.yylineno,loc:Fe,expected:He})}if(Kt[0]instanceof Array&&Kt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+sn+", token: "+ot);switch(Kt[0]){case 1:se.push(ot),ge.push(Ce.yytext),ce.push(Ce.yylloc),se.push(Kt[1]),ot=null,ye=Ce.yyleng,ve=Ce.yytext,De=Ce.yylineno,Fe=Ce.yylloc;break;case 2:if(et=this.productions_[Kt[1]][1],Je.$=ge[ge.length-et],Je._$={first_line:ce[ce.length-(et||1)].first_line,last_line:ce[ce.length-1].last_line,first_column:ce[ce.length-(et||1)].first_column,last_column:ce[ce.length-1].last_column},Ve&&(Je._$.range=[ce[ce.length-(et||1)].range[0],ce[ce.length-1].range[1]]),Ft=this.performAction.apply(Je,[ve,ye,De,Ie.yy,Kt[1],ge,ce].concat(we)),typeof Ft<"u")return Ft;et&&(se=se.slice(0,-1*et*2),ge=ge.slice(0,-1*et),ce=ce.slice(0,-1*et)),se.push(this.productions_[Kt[1]][0]),ge.push(Je.$),ce.push(Je._$),qe=be[se[se.length-2]][se[se.length-1]],se.push(qe);break;case 3:return!0}}return!0},"parse")},V=function(){var ee={EOF:1,parseError:X(function(ne,se){if(this.yy.parser)this.yy.parser.parseError(ne,se);else throw new Error(ne)},"parseError"),setInput:X(function(te,ne){return this.yy=ne||this.yy||{},this._input=te,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:X(function(){var te=this._input[0];this.yytext+=te,this.yyleng++,this.offset++,this.match+=te,this.matched+=te;var ne=te.match(/(?:\r\n?|\n).*/g);return ne?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),te},"input"),unput:X(function(te){var ne=te.length,se=te.split(/(?:\r\n?|\n)/g);this._input=te+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ne),this.offset-=ne;var ie=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),se.length-1&&(this.yylineno-=se.length-1);var ge=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:se?(se.length===ie.length?this.yylloc.first_column:0)+ie[ie.length-se.length].length-se[0].length:this.yylloc.first_column-ne},this.options.ranges&&(this.yylloc.range=[ge[0],ge[0]+this.yyleng-ne]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(te){this.unput(this.match.slice(te))},"less"),pastInput:X(function(){var te=this.matched.substr(0,this.matched.length-this.match.length);return(te.length>20?"...":"")+te.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var te=this.match;return te.length<20&&(te+=this._input.substr(0,20-te.length)),(te.substr(0,20)+(te.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var te=this.pastInput(),ne=new Array(te.length+1).join("-");return te+this.upcomingInput()+` `+ne+"^"},"showPosition"),test_match:X(function(te,ne){var se,ie,ge;if(this.options.backtrack_lexer&&(ge={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ge.yylloc.range=this.yylloc.range.slice(0))),ie=te[0].match(/(?:\r\n?|\n).*/g),ie&&(this.yylineno+=ie.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ie?ie[ie.length-1].length-ie[ie.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+te[0].length},this.yytext+=te[0],this.match+=te[0],this.matches=te,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(te[0].length),this.matched+=te[0],se=this.performAction.call(this,this.yy,this,ne,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),se)return se;if(this._backtrack){for(var ce in ge)this[ce]=ge[ce];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var te,ne,se,ie;this._more||(this.yytext="",this.match="");for(var ge=this._currentRules(),ce=0;cene[0].length)){if(ne=se,ie=ce,this.options.backtrack_lexer){if(te=this.test_match(se,ge[ce]),te!==!1)return te;if(this._backtrack){ne=!1;continue}else return!1}else if(!this.options.flex)break}return ne?(te=this.test_match(ne,ge[ie]),te!==!1?te:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var ne=this.next();return ne||this.lex()},"lex"),begin:X(function(ne){this.conditionStack.push(ne)},"begin"),popState:X(function(){var ne=this.conditionStack.length-1;return ne>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(ne){return ne=this.conditionStack.length-1-Math.abs(ne||0),ne>=0?this.conditionStack[ne]:"INITIAL"},"topState"),pushState:X(function(ne){this.begin(ne)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function(ne,se,ie,ge){switch(ie){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:break;case 9:break;case 10:return 5;case 11:break;case 12:break;case 13:break;case 14:break;case 15:return this.pushState("SCALE"),17;case 16:return 18;case 17:this.popState();break;case 18:return this.begin("acc_title"),33;case 19:return this.popState(),"acc_title_value";case 20:return this.begin("acc_descr"),35;case 21:return this.popState(),"acc_descr_value";case 22:this.begin("acc_descr_multiline");break;case 23:this.popState();break;case 24:return"acc_descr_multiline_value";case 25:return this.pushState("CLASSDEF"),41;case 26:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 27:return this.popState(),this.pushState("CLASSDEFID"),42;case 28:return this.popState(),43;case 29:return this.pushState("CLASS"),48;case 30:return this.popState(),this.pushState("CLASS_STYLE"),49;case 31:return this.popState(),50;case 32:return this.pushState("STYLE"),45;case 33:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 34:return this.popState(),47;case 35:return this.pushState("SCALE"),17;case 36:return 18;case 37:this.popState();break;case 38:this.pushState("STATE");break;case 39:return this.popState(),se.yytext=se.yytext.slice(0,-8).trim(),25;case 40:return this.popState(),se.yytext=se.yytext.slice(0,-8).trim(),26;case 41:return this.popState(),se.yytext=se.yytext.slice(0,-10).trim(),27;case 42:return this.popState(),se.yytext=se.yytext.slice(0,-8).trim(),25;case 43:return this.popState(),se.yytext=se.yytext.slice(0,-8).trim(),26;case 44:return this.popState(),se.yytext=se.yytext.slice(0,-10).trim(),27;case 45:return 51;case 46:return 52;case 47:return 53;case 48:return 54;case 49:this.pushState("STATE_STRING");break;case 50:return this.pushState("STATE_ID"),"AS";case 51:return this.popState(),"ID";case 52:this.popState();break;case 53:return"STATE_DESCR";case 54:return 19;case 55:this.popState();break;case 56:return this.popState(),this.pushState("struct"),20;case 57:break;case 58:return this.popState(),21;case 59:break;case 60:return this.begin("NOTE"),29;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:return this.popState(),this.pushState("NOTE_ID"),60;case 63:this.popState(),this.pushState("FLOATING_NOTE");break;case 64:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 65:break;case 66:return"NOTE_TEXT";case 67:return this.popState(),"ID";case 68:return this.popState(),this.pushState("NOTE_TEXT"),24;case 69:return this.popState(),se.yytext=se.yytext.substr(2).trim(),31;case 70:return this.popState(),se.yytext=se.yytext.slice(0,-8).trim(),31;case 71:return 6;case 72:return 6;case 73:return 16;case 74:return 57;case 75:return 24;case 76:return se.yytext=se.yytext.trim(),14;case 77:return 15;case 78:return 28;case 79:return 58;case 80:return 5;case 81:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[12,13],inclusive:!1},struct:{rules:[12,13,25,29,32,38,45,46,47,48,57,58,59,60,74,75,76,77,78],inclusive:!1},FLOATING_NOTE_ID:{rules:[67],inclusive:!1},FLOATING_NOTE:{rules:[64,65,66],inclusive:!1},NOTE_TEXT:{rules:[69,70],inclusive:!1},NOTE_ID:{rules:[68],inclusive:!1},NOTE:{rules:[61,62,63],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[34],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[33],inclusive:!1},CLASS_STYLE:{rules:[31],inclusive:!1},CLASS:{rules:[30],inclusive:!1},CLASSDEFID:{rules:[28],inclusive:!1},CLASSDEF:{rules:[26,27],inclusive:!1},acc_descr_multiline:{rules:[23,24],inclusive:!1},acc_descr:{rules:[21],inclusive:!1},acc_title:{rules:[19],inclusive:!1},SCALE:{rules:[16,17,36,37],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[51],inclusive:!1},STATE_STRING:{rules:[52,53],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[12,13,39,40,41,42,43,44,49,50,54,55,56],inclusive:!1},ID:{rules:[12,13],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,13,14,15,18,20,22,25,29,32,35,38,56,60,71,72,73,74,75,76,77,79,80,81],inclusive:!0}}};return ee}();Q.lexer=V;function j(){this.yy={}}return X(j,"Parser"),j.prototype=Q,Q.Parser=j,new j}();Nut.parser=Nut;var tXn=Nut,fKi="TB",nXn="TB",cTn="dir",yV="state",tV="root",Out="relation",pKi="classDef",gKi="style",mKi="applyClass",Rse="default",rXn="divider",iXn="fill:none",aXn="fill: #333",sXn="c",oXn="text",lXn="normal",Zit="rect",Jit="rectWithTitle",bKi="stateStart",yKi="stateEnd",uTn="divider",hTn="roundedWithTitle",vKi="note",_Ki="noteGroup",Kce="statediagram",wKi="state",EKi=`${Kce}-${wKi}`,cXn="transition",xKi="note",SKi="note-edge",TKi=`${cXn} ${SKi}`,CKi=`${Kce}-${xKi}`,AKi="cluster",kKi=`${Kce}-${AKi}`,RKi="cluster-alt",IKi=`${Kce}-${RKi}`,uXn="parent",hXn="note",NKi="state",Jmt="----",OKi=`${Jmt}${hXn}`,dTn=`${Jmt}${uXn}`,dXn=X((e,t=nXn)=>{if(!e.doc)return t;let r=t;for(const a of e.doc)a.stmt==="dir"&&(r=a.value);return r},"getDir"),LKi=X(function(e,t){return t.db.getClasses()},"getClasses"),DKi=X(async function(e,t,r,a){it.info("REF0:"),it.info("Drawing state diagram (v2)",t);const{securityLevel:s,state:o,layout:u}=nn();a.db.extract(a.db.getRootDocV2());const h=a.db.getData(),f=eK(t,s);h.type=a.type,h.layoutAlgorithm=u,h.nodeSpacing=(o==null?void 0:o.nodeSpacing)||50,h.rankSpacing=(o==null?void 0:o.rankSpacing)||50,h.markers=["barb"],h.diagramId=t,await $W(h,f);const p=8;try{(typeof a.db.getLinks=="function"?a.db.getLinks():new Map).forEach((b,_)=>{var N;const w=typeof _=="string"?_:typeof(_==null?void 0:_.id)=="string"?_.id:"";if(!w){it.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(_));return}const S=(N=f.node())==null?void 0:N.querySelectorAll("g");let C;if(S==null||S.forEach(L=>{var M;((M=L.textContent)==null?void 0:M.trim())===w&&(C=L)}),!C){it.warn("⚠️ Could not find node matching text:",w);return}const A=C.parentNode;if(!A){it.warn("⚠️ Node has no parent, cannot wrap:",w);return}const k=document.createElementNS("http://www.w3.org/2000/svg","a"),I=b.url.replace(/^"+|"+$/g,"");if(k.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",I),k.setAttribute("target","_blank"),b.tooltip){const L=b.tooltip.replace(/^"+|"+$/g,"");k.setAttribute("title",L)}A.replaceChild(k,C),k.appendChild(C),it.info("🔗 Wrapped node in
    tag for:",w,b.url)})}catch(m){it.error("❌ Error injecting clickable links:",m)}Vo.insertTitle(f,"statediagramTitleText",(o==null?void 0:o.titleTopMargin)??25,a.db.getDiagramTitle()),U$(f,p,Kce,(o==null?void 0:o.useMaxWidth)??!0)},"draw"),MKi={getClasses:LKi,draw:DKi,getDir:dXn},Xxe=new Map,rO=0;function Qxe(e="",t=0,r="",a=Jmt){const s=r!==null&&r.length>0?`${a}${r}`:"";return`${NKi}-${e}${s}-${t}`}X(Qxe,"stateDomId");var PKi=X((e,t,r,a,s,o,u,h)=>{it.trace("items",t),t.forEach(f=>{switch(f.stmt){case yV:Dae(e,f,r,a,s,o,u,h);break;case Rse:Dae(e,f,r,a,s,o,u,h);break;case Out:{Dae(e,f.state1,r,a,s,o,u,h),Dae(e,f.state2,r,a,s,o,u,h);const p={id:"edge"+rO,start:f.state1.id,end:f.state2.id,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:iXn,labelStyle:"",label:Ti.sanitizeText(f.description??"",nn()),arrowheadStyle:aXn,labelpos:sXn,labelType:oXn,thickness:lXn,classes:cXn,look:u};s.push(p),rO++}break}})},"setupDoc"),fTn=X((e,t=nXn)=>{let r=t;if(e.doc)for(const a of e.doc)a.stmt==="dir"&&(r=a.value);return r},"getDir");function Lae(e,t,r){if(!t.id||t.id===""||t.id==="")return;t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(" ").forEach(s=>{const o=r.get(s);o&&(t.cssCompiledStyles=[...t.cssCompiledStyles??[],...o.styles])}));const a=e.find(s=>s.id===t.id);a?Object.assign(a,t):e.push(t)}X(Lae,"insertOrUpdateNode");function fXn(e){var t;return((t=e==null?void 0:e.classes)==null?void 0:t.join(" "))??""}X(fXn,"getClassesFromDbInfo");function pXn(e){return(e==null?void 0:e.styles)??[]}X(pXn,"getStylesFromDbInfo");var Dae=X((e,t,r,a,s,o,u,h)=>{var w,S,C;const f=t.id,p=r.get(f),m=fXn(p),b=pXn(p),_=nn();if(it.info("dataFetcher parsedItem",t,p,b),f!=="root"){let A=Zit;t.start===!0?A=bKi:t.start===!1&&(A=yKi),t.type!==Rse&&(A=t.type),Xxe.get(f)||Xxe.set(f,{id:f,shape:A,description:Ti.sanitizeText(f,_),cssClasses:`${m} ${EKi}`,cssStyles:b});const k=Xxe.get(f);t.description&&(Array.isArray(k.description)?(k.shape=Jit,k.description.push(t.description)):(w=k.description)!=null&&w.length&&k.description.length>0?(k.shape=Jit,k.description===f?k.description=[t.description]:k.description=[k.description,t.description]):(k.shape=Zit,k.description=t.description),k.description=Ti.sanitizeTextOrArray(k.description,_)),((S=k.description)==null?void 0:S.length)===1&&k.shape===Jit&&(k.type==="group"?k.shape=hTn:k.shape=Zit),!k.type&&t.doc&&(it.info("Setting cluster for XCX",f,fTn(t)),k.type="group",k.isGroup=!0,k.dir=fTn(t),k.shape=t.type===rXn?uTn:hTn,k.cssClasses=`${k.cssClasses} ${kKi} ${o?IKi:""}`);const I={labelStyle:"",shape:k.shape,label:k.description,cssClasses:k.cssClasses,cssCompiledStyles:[],cssStyles:k.cssStyles,id:f,dir:k.dir,domId:Qxe(f,rO),type:k.type,isGroup:k.type==="group",padding:8,rx:10,ry:10,look:u};if(I.shape===uTn&&(I.label=""),e&&e.id!=="root"&&(it.trace("Setting node ",f," to be child of its parent ",e.id),I.parentId=e.id),I.centerLabel=!0,t.note){const N={labelStyle:"",shape:vKi,label:t.note.text,cssClasses:CKi,cssStyles:[],cssCompiledStyles:[],id:f+OKi+"-"+rO,domId:Qxe(f,rO,hXn),type:k.type,isGroup:k.type==="group",padding:(C=_.flowchart)==null?void 0:C.padding,look:u,position:t.note.position},L=f+dTn,P={labelStyle:"",shape:_Ki,label:t.note.text,cssClasses:k.cssClasses,cssStyles:[],id:f+dTn,domId:Qxe(f,rO,uXn),type:"group",isGroup:!0,padding:16,look:u,position:t.note.position};rO++,P.id=L,N.parentId=L,Lae(a,P,h),Lae(a,N,h),Lae(a,I,h);let M=f,F=N.id;t.note.position==="left of"&&(M=N.id,F=f),s.push({id:M+"-"+F,start:M,end:F,arrowhead:"none",arrowTypeEnd:"",style:iXn,labelStyle:"",classes:TKi,arrowheadStyle:aXn,labelpos:sXn,labelType:oXn,thickness:lXn,look:u})}else Lae(a,I,h)}t.doc&&(it.trace("Adding nodes children "),PKi(t,t.doc,r,a,s,!o,u,h))},"dataFetcher"),BKi=X(()=>{Xxe.clear(),rO=0},"reset"),Fy={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},pTn=X(()=>new Map,"newClassesList"),gTn=X(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),dEe=X(e=>JSON.parse(JSON.stringify(e)),"clone"),bF,zB=(bF=class{constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=pTn(),this.documents={root:gTn()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=Mp,this.setAccTitle=N1,this.getAccDescription=Bp,this.setAccDescription=Pp,this.setDiagramTitle=Og,this.getDiagramTitle=P1,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}extract(t){this.clear(!0);for(const s of Array.isArray(t)?t:t.doc)switch(s.stmt){case yV:this.addState(s.id.trim(),s.type,s.doc,s.description,s.note);break;case Out:this.addRelation(s.state1,s.state2,s.description);break;case pKi:this.addStyleClass(s.id.trim(),s.classes);break;case gKi:this.handleStyleDef(s);break;case mKi:this.setCssClass(s.id.trim(),s.styleClass);break;case"click":this.addLink(s.id,s.url,s.tooltip);break}const r=this.getStates(),a=nn();BKi(),Dae(void 0,this.getRootDocV2(),r,this.nodes,this.edges,!0,a.look,this.classes);for(const s of this.nodes)if(Array.isArray(s.label)){if(s.description=s.label.slice(1),s.isGroup&&s.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${s.id}]`);s.label=s.label[0]}}handleStyleDef(t){const r=t.id.trim().split(","),a=t.styleClass.split(",");for(const s of r){let o=this.getState(s);if(!o){const u=s.trim();this.addState(u),o=this.getState(u)}o&&(o.styles=a.map(u=>{var h;return(h=u.replace(/;/g,""))==null?void 0:h.trim()}))}}setRootDoc(t){it.info("Setting root doc",t),this.rootDoc=t,this.version===1?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,r,a){if(r.stmt===Out){this.docTranslator(t,r.state1,!0),this.docTranslator(t,r.state2,!1);return}if(r.stmt===yV&&(r.id===Fy.START_NODE?(r.id=t.id+(a?"_start":"_end"),r.start=a):r.id=r.id.trim()),r.stmt!==tV&&r.stmt!==yV||!r.doc)return;const s=[];let o=[];for(const u of r.doc)if(u.type===rXn){const h=dEe(u);h.doc=dEe(o),s.push(h),o=[]}else o.push(u);if(s.length>0&&o.length>0){const u={stmt:yV,id:JPn(),type:"divider",doc:dEe(o)};s.push(dEe(u)),r.doc=s}r.doc.forEach(u=>this.docTranslator(r,u,!0))}getRootDocV2(){return this.docTranslator({id:tV,stmt:tV},{id:tV,stmt:tV,doc:this.rootDoc},!0),{id:tV,doc:this.rootDoc}}addState(t,r=Rse,a=void 0,s=void 0,o=void 0,u=void 0,h=void 0,f=void 0){const p=t==null?void 0:t.trim();if(!this.currentDocument.states.has(p))it.info("Adding state ",p,s),this.currentDocument.states.set(p,{stmt:yV,id:p,descriptions:[],type:r,doc:a,note:o,classes:[],styles:[],textStyles:[]});else{const m=this.currentDocument.states.get(p);if(!m)throw new Error(`State not found: ${p}`);m.doc||(m.doc=a),m.type||(m.type=r)}if(s&&(it.info("Setting state description",p,s),(Array.isArray(s)?s:[s]).forEach(b=>this.addDescription(p,b.trim()))),o){const m=this.currentDocument.states.get(p);if(!m)throw new Error(`State not found: ${p}`);m.note=o,m.note.text=Ti.sanitizeText(m.note.text,nn())}u&&(it.info("Setting state classes",p,u),(Array.isArray(u)?u:[u]).forEach(b=>this.setCssClass(p,b.trim()))),h&&(it.info("Setting state styles",p,h),(Array.isArray(h)?h:[h]).forEach(b=>this.setStyle(p,b.trim()))),f&&(it.info("Setting state styles",p,h),(Array.isArray(f)?f:[f]).forEach(b=>this.setTextStyle(p,b.trim())))}clear(t){this.nodes=[],this.edges=[],this.documents={root:gTn()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=pTn(),t||(this.links=new Map,M1())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){it.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,r,a){this.links.set(t,{url:r,tooltip:a}),it.warn("Adding link",t,r,a)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===Fy.START_NODE?(this.startEndCount++,`${Fy.START_TYPE}${this.startEndCount}`):t}startTypeIfNeeded(t="",r=Rse){return t===Fy.START_NODE?Fy.START_TYPE:r}endIdIfNeeded(t=""){return t===Fy.END_NODE?(this.startEndCount++,`${Fy.END_TYPE}${this.startEndCount}`):t}endTypeIfNeeded(t="",r=Rse){return t===Fy.END_NODE?Fy.END_TYPE:r}addRelationObjs(t,r,a=""){const s=this.startIdIfNeeded(t.id.trim()),o=this.startTypeIfNeeded(t.id.trim(),t.type),u=this.startIdIfNeeded(r.id.trim()),h=this.startTypeIfNeeded(r.id.trim(),r.type);this.addState(s,o,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(u,h,r.doc,r.description,r.note,r.classes,r.styles,r.textStyles),this.currentDocument.relations.push({id1:s,id2:u,relationTitle:Ti.sanitizeText(a,nn())})}addRelation(t,r,a){if(typeof t=="object"&&typeof r=="object")this.addRelationObjs(t,r,a);else if(typeof t=="string"&&typeof r=="string"){const s=this.startIdIfNeeded(t.trim()),o=this.startTypeIfNeeded(t),u=this.endIdIfNeeded(r.trim()),h=this.endTypeIfNeeded(r);this.addState(s,o),this.addState(u,h),this.currentDocument.relations.push({id1:s,id2:u,relationTitle:a?Ti.sanitizeText(a,nn()):void 0})}}addDescription(t,r){var o;const a=this.currentDocument.states.get(t),s=r.startsWith(":")?r.replace(":","").trim():r;(o=a==null?void 0:a.descriptions)==null||o.push(Ti.sanitizeText(s,nn()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,r=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});const a=this.classes.get(t);r&&a&&r.split(Fy.STYLECLASS_SEP).forEach(s=>{const o=s.replace(/([^;]*);/,"$1").trim();if(RegExp(Fy.COLOR_KEYWORD).exec(s)){const h=o.replace(Fy.FILL_KEYWORD,Fy.BG_FILL).replace(Fy.COLOR_KEYWORD,Fy.FILL_KEYWORD);a.textStyles.push(h)}a.styles.push(o)})}getClasses(){return this.classes}setCssClass(t,r){t.split(",").forEach(a=>{var o;let s=this.getState(a);if(!s){const u=a.trim();this.addState(u),s=this.getState(u)}(o=s==null?void 0:s.classes)==null||o.push(r)})}setStyle(t,r){var a,s;(s=(a=this.getState(t))==null?void 0:a.styles)==null||s.push(r)}setTextStyle(t,r){var a,s;(s=(a=this.getState(t))==null?void 0:a.textStyles)==null||s.push(r)}getDirectionStatement(){return this.rootDoc.find(t=>t.stmt===cTn)}getDirection(){var t;return((t=this.getDirectionStatement())==null?void 0:t.value)??fKi}setDirection(t){const r=this.getDirectionStatement();r?r.value=t:this.rootDoc.unshift({stmt:cTn,value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){const t=nn();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:dXn(this.getRootDocV2())}}getConfig(){return nn().state}},X(bF,"StateDB"),bF.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},bF),FKi=X(e=>` defs #statediagram-barbEnd { fill: ${e.transitionColor}; stroke: ${e.transitionColor}; } g.stateGroup text { fill: ${e.nodeBorder}; stroke: none; font-size: 10px; } g.stateGroup text { fill: ${e.textColor}; stroke: none; font-size: 10px; } g.stateGroup .state-title { font-weight: bolder; fill: ${e.stateLabelColor}; } g.stateGroup rect { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; } g.stateGroup line { stroke: ${e.lineColor}; stroke-width: 1; } .transition { stroke: ${e.transitionColor}; stroke-width: 1; fill: none; } .stateGroup .composit { fill: ${e.background}; border-bottom: 1px } .stateGroup .alt-composit { fill: #e0e0e0; border-bottom: 1px } .state-note { stroke: ${e.noteBorderColor}; fill: ${e.noteBkgColor}; text { fill: ${e.noteTextColor}; stroke: none; font-size: 10px; } } .stateLabel .box { stroke: none; stroke-width: 0; fill: ${e.mainBkg}; opacity: 0.5; } .edgeLabel .label rect { fill: ${e.labelBackgroundColor}; opacity: 0.5; } .edgeLabel { background-color: ${e.edgeLabelBackground}; p { background-color: ${e.edgeLabelBackground}; } rect { opacity: 0.5; background-color: ${e.edgeLabelBackground}; fill: ${e.edgeLabelBackground}; } text-align: center; } .edgeLabel .label text { fill: ${e.transitionLabelColor||e.tertiaryTextColor}; } .label div .edgeLabel { color: ${e.transitionLabelColor||e.tertiaryTextColor}; } .stateLabel text { fill: ${e.stateLabelColor}; font-size: 10px; font-weight: bold; } .node circle.state-start { fill: ${e.specialStateColor}; stroke: ${e.specialStateColor}; } .node .fork-join { fill: ${e.specialStateColor}; stroke: ${e.specialStateColor}; } .node circle.state-end { fill: ${e.innerEndBackground}; stroke: ${e.background}; stroke-width: 1.5 } .end-state-inner { fill: ${e.compositeBackground||e.background}; // stroke: ${e.background}; stroke-width: 1.5 } .node rect { fill: ${e.stateBkg||e.mainBkg}; stroke: ${e.stateBorder||e.nodeBorder}; stroke-width: 1px; } .node polygon { fill: ${e.mainBkg}; stroke: ${e.stateBorder||e.nodeBorder};; stroke-width: 1px; } #statediagram-barbEnd { fill: ${e.lineColor}; } .statediagram-cluster rect { fill: ${e.compositeTitleBackground}; stroke: ${e.stateBorder||e.nodeBorder}; stroke-width: 1px; } .cluster-label, .nodeLabel { color: ${e.stateLabelColor}; // line-height: 1; } .statediagram-cluster rect.outer { rx: 5px; ry: 5px; } .statediagram-state .divider { stroke: ${e.stateBorder||e.nodeBorder}; } .statediagram-state .title-state { rx: 5px; ry: 5px; } .statediagram-cluster.statediagram-cluster .inner { fill: ${e.compositeBackground||e.background}; } .statediagram-cluster.statediagram-cluster-alt .inner { fill: ${e.altBackground?e.altBackground:"#efefef"}; } .statediagram-cluster .inner { rx:0; ry:0; } .statediagram-state rect.basic { rx: 5px; ry: 5px; } .statediagram-state rect.divider { stroke-dasharray: 10,10; fill: ${e.altBackground?e.altBackground:"#efefef"}; } .note-edge { stroke-dasharray: 5; } .statediagram-note rect { fill: ${e.noteBkgColor}; stroke: ${e.noteBorderColor}; stroke-width: 1px; rx: 0; ry: 0; } .statediagram-note rect { fill: ${e.noteBkgColor}; stroke: ${e.noteBorderColor}; stroke-width: 1px; rx: 0; ry: 0; } .statediagram-note text { fill: ${e.noteTextColor}; } .statediagram-note .nodeLabel { color: ${e.noteTextColor}; } .statediagram .edgeLabel { color: red; // ${e.noteTextColor}; } #dependencyStart, #dependencyEnd { fill: ${e.lineColor}; stroke: ${e.lineColor}; stroke-width: 1; } .statediagramTitleText { text-anchor: middle; font-size: 18px; fill: ${e.textColor}; } `,"getStyles"),gXn=FKi,$Ki=X(e=>e.append("circle").attr("class","start-state").attr("r",nn().state.sizeUnit).attr("cx",nn().state.padding+nn().state.sizeUnit).attr("cy",nn().state.padding+nn().state.sizeUnit),"drawStartState"),UKi=X(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",nn().state.textHeight).attr("class","divider").attr("x2",nn().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),zKi=X((e,t)=>{const r=e.append("text").attr("x",2*nn().state.padding).attr("y",nn().state.textHeight+2*nn().state.padding).attr("font-size",nn().state.fontSize).attr("class","state-title").text(t.id),a=r.node().getBBox();return e.insert("rect",":first-child").attr("x",nn().state.padding).attr("y",nn().state.padding).attr("width",a.width+2*nn().state.padding).attr("height",a.height+2*nn().state.padding).attr("rx",nn().state.radius),r},"drawSimpleState"),GKi=X((e,t)=>{const r=X(function(_,w,S){const C=_.append("tspan").attr("x",2*nn().state.padding).text(w);S||C.attr("dy",nn().state.textHeight)},"addTspan"),s=e.append("text").attr("x",2*nn().state.padding).attr("y",nn().state.textHeight+1.3*nn().state.padding).attr("font-size",nn().state.fontSize).attr("class","state-title").text(t.descriptions[0]).node().getBBox(),o=s.height,u=e.append("text").attr("x",nn().state.padding).attr("y",o+nn().state.padding*.4+nn().state.dividerMargin+nn().state.textHeight).attr("class","state-description");let h=!0,f=!0;t.descriptions.forEach(function(_){h||(r(u,_,f),f=!1),h=!1});const p=e.append("line").attr("x1",nn().state.padding).attr("y1",nn().state.padding+o+nn().state.dividerMargin/2).attr("y2",nn().state.padding+o+nn().state.dividerMargin/2).attr("class","descr-divider"),m=u.node().getBBox(),b=Math.max(m.width,s.width);return p.attr("x2",b+3*nn().state.padding),e.insert("rect",":first-child").attr("x",nn().state.padding).attr("y",nn().state.padding).attr("width",b+2*nn().state.padding).attr("height",m.height+o+2*nn().state.padding).attr("rx",nn().state.radius),e},"drawDescrState"),qKi=X((e,t,r)=>{const a=nn().state.padding,s=2*nn().state.padding,o=e.node().getBBox(),u=o.width,h=o.x,f=e.append("text").attr("x",0).attr("y",nn().state.titleShift).attr("font-size",nn().state.fontSize).attr("class","state-title").text(t.id),m=f.node().getBBox().width+s;let b=Math.max(m,u);b===u&&(b=b+s);let _;const w=e.node().getBBox();t.doc,_=h-a,m>u&&(_=(u-b)/2+a),Math.abs(h-w.x)u&&(_=h-(m-u)/2);const S=1-nn().state.textHeight;return e.insert("rect",":first-child").attr("x",_).attr("y",S).attr("class",r?"alt-composit":"composit").attr("width",b).attr("height",w.height+nn().state.textHeight+nn().state.titleShift+1).attr("rx","0"),f.attr("x",_+a),m<=u&&f.attr("x",h+(b-s)/2-m/2+a),e.insert("rect",":first-child").attr("x",_).attr("y",nn().state.titleShift-nn().state.textHeight-nn().state.padding).attr("width",b).attr("height",nn().state.textHeight*3).attr("rx",nn().state.radius),e.insert("rect",":first-child").attr("x",_).attr("y",nn().state.titleShift-nn().state.textHeight-nn().state.padding).attr("width",b).attr("height",w.height+3+2*nn().state.textHeight).attr("rx",nn().state.radius),e},"addTitleAndBox"),HKi=X(e=>(e.append("circle").attr("class","end-state-outer").attr("r",nn().state.sizeUnit+nn().state.miniPadding).attr("cx",nn().state.padding+nn().state.sizeUnit+nn().state.miniPadding).attr("cy",nn().state.padding+nn().state.sizeUnit+nn().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",nn().state.sizeUnit).attr("cx",nn().state.padding+nn().state.sizeUnit+2).attr("cy",nn().state.padding+nn().state.sizeUnit+2)),"drawEndState"),VKi=X((e,t)=>{let r=nn().state.forkWidth,a=nn().state.forkHeight;if(t.parentId){let s=r;r=a,a=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",a).attr("x",nn().state.padding).attr("y",nn().state.padding)},"drawForkJoinState"),YKi=X((e,t,r,a)=>{let s=0;const o=a.append("text");o.style("text-anchor","start"),o.attr("class","noteText");let u=e.replace(/\r\n/g,"
    ");u=u.replace(/\n/g,"
    ");const h=u.split(Ti.lineBreakRegex);let f=1.25*nn().state.noteMargin;for(const p of h){const m=p.trim();if(m.length>0){const b=o.append("tspan");if(b.text(m),f===0){const _=b.node().getBBox();f+=_.height}s+=f,b.attr("x",t+nn().state.noteMargin),b.attr("y",r+s+1.25*nn().state.noteMargin)}}return{textWidth:o.node().getBBox().width,textHeight:s}},"_drawLongText"),jKi=X((e,t)=>{t.attr("class","state-note");const r=t.append("rect").attr("x",0).attr("y",nn().state.padding),a=t.append("g"),{textWidth:s,textHeight:o}=YKi(e,0,0,a);return r.attr("height",o+2*nn().state.noteMargin),r.attr("width",s+nn().state.noteMargin*2),r},"drawNote"),mTn=X(function(e,t){const r=t.id,a={id:r,label:t.id,width:0,height:0},s=e.append("g").attr("id",r).attr("class","stateGroup");t.type==="start"&&$Ki(s),t.type==="end"&&HKi(s),(t.type==="fork"||t.type==="join")&&VKi(s,t),t.type==="note"&&jKi(t.note.text,s),t.type==="divider"&&UKi(s),t.type==="default"&&t.descriptions.length===0&&zKi(s,t),t.type==="default"&&t.descriptions.length>0&&GKi(s,t);const o=s.node().getBBox();return a.width=o.width+2*nn().state.padding,a.height=o.height+2*nn().state.padding,a},"drawState"),bTn=0,WKi=X(function(e,t,r){const a=X(function(f){switch(f){case zB.relationType.AGGREGATION:return"aggregation";case zB.relationType.EXTENSION:return"extension";case zB.relationType.COMPOSITION:return"composition";case zB.relationType.DEPENDENCY:return"dependency"}},"getRelationType");t.points=t.points.filter(f=>!Number.isNaN(f.y));const s=t.points,o=r_().x(function(f){return f.x}).y(function(f){return f.y}).curve(j3),u=e.append("path").attr("d",o(s)).attr("id","edge"+bTn).attr("class","transition");let h="";if(nn().state.arrowMarkerAbsolute&&(h=tAe(!0)),u.attr("marker-end","url("+h+"#"+a(zB.relationType.DEPENDENCY)+"End)"),r.title!==void 0){const f=e.append("g").attr("class","stateLabel"),{x:p,y:m}=Vo.calcLabelPosition(t.points),b=Ti.getRows(r.title);let _=0;const w=[];let S=0,C=0;for(let I=0;I<=b.length;I++){const N=f.append("text").attr("text-anchor","middle").text(b[I]).attr("x",p).attr("y",m+_),L=N.node().getBBox();S=Math.max(S,L.width),C=Math.min(C,L.x),it.info(L.x,p,m+_),_===0&&(_=N.node().getBBox().height,it.info("Title height",_,m)),w.push(N)}let A=_*b.length;if(b.length>1){const I=(b.length-1)*_*.5;w.forEach((N,L)=>N.attr("y",m+L*_-I)),A=_*b.length}const k=f.node().getBBox();f.insert("rect",":first-child").attr("class","box").attr("x",p-S/2-nn().state.padding/2).attr("y",m-A/2-nn().state.padding/2-3.5).attr("width",S+nn().state.padding).attr("height",A+nn().state.padding),it.info(k)}bTn++},"drawEdge"),Aw,eat={},KKi=X(function(){},"setConf"),XKi=X(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),QKi=X(function(e,t,r,a){Aw=nn().state;const s=nn().securityLevel;let o;s==="sandbox"&&(o=gn("#i"+t));const u=gn(s==="sandbox"?o.nodes()[0].contentDocument.body:"body"),h=s==="sandbox"?o.nodes()[0].contentDocument:document;it.debug("Rendering diagram "+e);const f=u.select(`[id='${t}']`);XKi(f);const p=a.db.getRootDoc();mXn(p,f,void 0,!1,u,h,a);const m=Aw.padding,b=f.node().getBBox(),_=b.width+m*2,w=b.height+m*2,S=_*1.75;yv(f,w,S,Aw.useMaxWidth),f.attr("viewBox",`${b.x-Aw.padding} ${b.y-Aw.padding} `+_+" "+w)},"draw"),ZKi=X(e=>e?e.length*Aw.fontSizeFactor:1,"getLabelWidth"),mXn=X((e,t,r,a,s,o,u)=>{const h=new c_({compound:!0,multigraph:!0});let f,p=!0;for(f=0;f{const L=N.parentElement;let P=0,M=0;L&&(L.parentElement&&(P=L.parentElement.getBBox().width),M=parseInt(L.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),N.setAttribute("x1",0-M+8),N.setAttribute("x2",P-M-8)})):it.debug("No Node "+k+": "+JSON.stringify(h.node(k)))});let C=S.getBBox();h.edges().forEach(function(k){k!==void 0&&h.edge(k)!==void 0&&(it.debug("Edge "+k.v+" -> "+k.w+": "+JSON.stringify(h.edge(k))),WKi(t,h.edge(k),h.edge(k).relation))}),C=S.getBBox();const A={id:r||"root",label:r||"root",width:0,height:0};return A.width=C.width+2*Aw.padding,A.height=C.height+2*Aw.padding,it.debug("Doc rendered",A,h),A},"renderDoc"),JKi={setConf:KKi,draw:QKi},eXi={parser:tXn,get db(){return new zB(1)},renderer:JKi,styles:gXn,init:X(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};const tXi=Object.freeze(Object.defineProperty({__proto__:null,diagram:eXi},Symbol.toStringTag,{value:"Module"}));var nXi={parser:tXn,get db(){return new zB(2)},renderer:MKi,styles:gXn,init:X(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};const rXi=Object.freeze(Object.defineProperty({__proto__:null,diagram:nXi},Symbol.toStringTag,{value:"Module"}));var Lut=function(){var e=X(function(b,_,w,S){for(w=w||{},S=b.length;S--;w[b[S]]=_);return w},"o"),t=[6,8,10,11,12,14,16,17,18],r=[1,9],a=[1,10],s=[1,11],o=[1,12],u=[1,13],h=[1,14],f={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:X(function(_,w,S,C,A,k,I){var N=k.length-1;switch(A){case 1:return k[N-1];case 2:this.$=[];break;case 3:k[N-1].push(k[N]),this.$=k[N-1];break;case 4:case 5:this.$=k[N];break;case 6:case 7:this.$=[];break;case 8:C.setDiagramTitle(k[N].substr(6)),this.$=k[N].substr(6);break;case 9:this.$=k[N].trim(),C.setAccTitle(this.$);break;case 10:case 11:this.$=k[N].trim(),C.setAccDescription(this.$);break;case 12:C.addSection(k[N].substr(8)),this.$=k[N].substr(8);break;case 13:C.addTask(k[N-1],k[N]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:a,14:s,16:o,17:u,18:h},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:15,11:r,12:a,14:s,16:o,17:u,18:h},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,16]},{15:[1,17]},e(t,[2,11]),e(t,[2,12]),{19:[1,18]},e(t,[2,4]),e(t,[2,9]),e(t,[2,10]),e(t,[2,13])],defaultActions:{},parseError:X(function(_,w){if(w.recoverable)this.trace(_);else{var S=new Error(_);throw S.hash=w,S}},"parseError"),parse:X(function(_){var w=this,S=[0],C=[],A=[null],k=[],I=this.table,N="",L=0,P=0,M=2,F=1,U=k.slice.call(arguments,1),$=Object.create(this.lexer),G={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(G.yy[B]=this.yy[B]);$.setInput(_,G.yy),G.yy.lexer=$,G.yy.parser=this,typeof $.yylloc>"u"&&($.yylloc={});var Z=$.yylloc;k.push(Z);var z=$.options&&$.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(be){S.length=S.length-2*be,A.length=A.length-be,k.length=k.length-be}X(Y,"popStack");function W(){var be;return be=C.pop()||$.lex()||F,typeof be!="number"&&(be instanceof Array&&(C=be,be=C.pop()),be=w.symbols_[be]||be),be}X(W,"lex");for(var Q,V,j,ee,te={},ne,se,ie,ge;;){if(V=S[S.length-1],this.defaultActions[V]?j=this.defaultActions[V]:((Q===null||typeof Q>"u")&&(Q=W()),j=I[V]&&I[V][Q]),typeof j>"u"||!j.length||!j[0]){var ce="";ge=[];for(ne in I[V])this.terminals_[ne]&&ne>M&&ge.push("'"+this.terminals_[ne]+"'");$.showPosition?ce="Parse error on line "+(L+1)+`: `+$.showPosition()+` Expecting `+ge.join(", ")+", got '"+(this.terminals_[Q]||Q)+"'":ce="Parse error on line "+(L+1)+": Unexpected "+(Q==F?"end of input":"'"+(this.terminals_[Q]||Q)+"'"),this.parseError(ce,{text:$.match,token:this.terminals_[Q]||Q,line:$.yylineno,loc:Z,expected:ge})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+Q);switch(j[0]){case 1:S.push(Q),A.push($.yytext),k.push($.yylloc),S.push(j[1]),Q=null,P=$.yyleng,N=$.yytext,L=$.yylineno,Z=$.yylloc;break;case 2:if(se=this.productions_[j[1]][1],te.$=A[A.length-se],te._$={first_line:k[k.length-(se||1)].first_line,last_line:k[k.length-1].last_line,first_column:k[k.length-(se||1)].first_column,last_column:k[k.length-1].last_column},z&&(te._$.range=[k[k.length-(se||1)].range[0],k[k.length-1].range[1]]),ee=this.performAction.apply(te,[N,P,L,G.yy,j[1],A,k].concat(U)),typeof ee<"u")return ee;se&&(S=S.slice(0,-1*se*2),A=A.slice(0,-1*se),k=k.slice(0,-1*se)),S.push(this.productions_[j[1]][0]),A.push(te.$),k.push(te._$),ie=I[S[S.length-2]][S[S.length-1]],S.push(ie);break;case 3:return!0}}return!0},"parse")},p=function(){var b={EOF:1,parseError:X(function(w,S){if(this.yy.parser)this.yy.parser.parseError(w,S);else throw new Error(w)},"parseError"),setInput:X(function(_,w){return this.yy=w||this.yy||{},this._input=_,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:X(function(){var _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var w=_.match(/(?:\r\n?|\n).*/g);return w?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},"input"),unput:X(function(_){var w=_.length,S=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-w),this.offset-=w;var C=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),S.length-1&&(this.yylineno-=S.length-1);var A=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:S?(S.length===C.length?this.yylloc.first_column:0)+C[C.length-S.length].length-S[0].length:this.yylloc.first_column-w},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-w]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(_){this.unput(this.match.slice(_))},"less"),pastInput:X(function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var _=this.pastInput(),w=new Array(_.length+1).join("-");return _+this.upcomingInput()+` `+w+"^"},"showPosition"),test_match:X(function(_,w){var S,C,A;if(this.options.backtrack_lexer&&(A={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(A.yylloc.range=this.yylloc.range.slice(0))),C=_[0].match(/(?:\r\n?|\n).*/g),C&&(this.yylineno+=C.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:C?C[C.length-1].length-C[C.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_[0].length},this.yytext+=_[0],this.match+=_[0],this.matches=_,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(_[0].length),this.matched+=_[0],S=this.performAction.call(this,this.yy,this,w,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),S)return S;if(this._backtrack){for(var k in A)this[k]=A[k];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _,w,S,C;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),k=0;kw[0].length)){if(w=S,C=k,this.options.backtrack_lexer){if(_=this.test_match(S,A[k]),_!==!1)return _;if(this._backtrack){w=!1;continue}else return!1}else if(!this.options.flex)break}return w?(_=this.test_match(w,A[C]),_!==!1?_:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var w=this.next();return w||this.lex()},"lex"),begin:X(function(w){this.conditionStack.push(w)},"begin"),popState:X(function(){var w=this.conditionStack.length-1;return w>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(w){return w=this.conditionStack.length-1-Math.abs(w||0),w>=0?this.conditionStack[w]:"INITIAL"},"topState"),pushState:X(function(w){this.begin(w)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function(w,S,C,A){switch(C){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return b}();f.lexer=p;function m(){this.yy={}}return X(m,"Parser"),m.prototype=f,f.Parser=m,new m}();Lut.parser=Lut;var iXi=Lut,eW="",ebt=[],ule=[],hle=[],aXi=X(function(){ebt.length=0,ule.length=0,eW="",hle.length=0,M1()},"clear"),sXi=X(function(e){eW=e,ebt.push(e)},"addSection"),oXi=X(function(){return ebt},"getSections"),lXi=X(function(){let e=yTn();const t=100;let r=0;for(;!e&&r{r.people&&e.push(...r.people)}),[...new Set(e)].sort()},"updateActors"),uXi=X(function(e,t){const r=t.substr(1).split(":");let a=0,s=[];r.length===1?(a=Number(r[0]),s=[]):(a=Number(r[0]),s=r[1].split(","));const o=s.map(h=>h.trim()),u={section:eW,type:eW,people:o,task:e,score:a};hle.push(u)},"addTask"),hXi=X(function(e){const t={section:eW,type:eW,description:e,task:e,classes:[]};ule.push(t)},"addTaskOrg"),yTn=X(function(){const e=X(function(r){return hle[r].processed},"compileTask");let t=!0;for(const[r,a]of hle.entries())e(r),t=t&&a.processed;return t},"compileTasks"),dXi=X(function(){return cXi()},"getActors"),vTn={getConfig:X(()=>nn().journey,"getConfig"),clear:aXi,setDiagramTitle:Og,getDiagramTitle:P1,setAccTitle:N1,getAccTitle:Mp,setAccDescription:Pp,getAccDescription:Bp,addSection:sXi,getSections:oXi,getTasks:lXi,addTask:uXi,addTaskOrg:hXi,getActors:dXi},fXi=X(e=>`.label { font-family: ${e.fontFamily}; color: ${e.textColor}; } .mouth { stroke: #666; } line { stroke: ${e.textColor} } .legend { fill: ${e.textColor}; font-family: ${e.fontFamily}; } .label text { fill: #333; } .label { color: ${e.textColor} } .face { ${e.faceColor?`fill: ${e.faceColor}`:"fill: #FFF8DC"}; stroke: #999; } .node rect, .node circle, .node ellipse, .node polygon, .node path { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: 1px; } .node .label { text-align: center; } .node.clickable { cursor: pointer; } .arrowheadPath { fill: ${e.arrowheadColor}; } .edgePath .path { stroke: ${e.lineColor}; stroke-width: 1.5px; } .flowchart-link { stroke: ${e.lineColor}; fill: none; } .edgeLabel { background-color: ${e.edgeLabelBackground}; rect { opacity: 0.5; } text-align: center; } .cluster rect { } .cluster text { fill: ${e.titleColor}; } div.mermaidTooltip { position: absolute; text-align: center; max-width: 200px; padding: 2px; font-family: ${e.fontFamily}; font-size: 12px; background: ${e.tertiaryColor}; border: 1px solid ${e.border2}; border-radius: 2px; pointer-events: none; z-index: 100; } .task-type-0, .section-type-0 { ${e.fillType0?`fill: ${e.fillType0}`:""}; } .task-type-1, .section-type-1 { ${e.fillType0?`fill: ${e.fillType1}`:""}; } .task-type-2, .section-type-2 { ${e.fillType0?`fill: ${e.fillType2}`:""}; } .task-type-3, .section-type-3 { ${e.fillType0?`fill: ${e.fillType3}`:""}; } .task-type-4, .section-type-4 { ${e.fillType0?`fill: ${e.fillType4}`:""}; } .task-type-5, .section-type-5 { ${e.fillType0?`fill: ${e.fillType5}`:""}; } .task-type-6, .section-type-6 { ${e.fillType0?`fill: ${e.fillType6}`:""}; } .task-type-7, .section-type-7 { ${e.fillType0?`fill: ${e.fillType7}`:""}; } .actor-0 { ${e.actor0?`fill: ${e.actor0}`:""}; } .actor-1 { ${e.actor1?`fill: ${e.actor1}`:""}; } .actor-2 { ${e.actor2?`fill: ${e.actor2}`:""}; } .actor-3 { ${e.actor3?`fill: ${e.actor3}`:""}; } .actor-4 { ${e.actor4?`fill: ${e.actor4}`:""}; } .actor-5 { ${e.actor5?`fill: ${e.actor5}`:""}; } ${Lce()} `,"getStyles"),pXi=fXi,tbt=X(function(e,t){return vke(e,t)},"drawRect"),gXi=X(function(e,t){const a=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=e.append("g");s.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function o(f){const p=_S().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}X(o,"smile");function u(f){const p=_S().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}X(u,"sad");function h(f){f.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return X(h,"ambivalent"),t.score>3?o(s):t.score<3?u(s):h(s),a},"drawFace"),bXn=X(function(e,t){const r=e.append("circle");return r.attr("cx",t.cx),r.attr("cy",t.cy),r.attr("class","actor-"+t.pos),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("r",t.r),r.class!==void 0&&r.attr("class",r.class),t.title!==void 0&&r.append("title").text(t.title),r},"drawCircle"),yXn=X(function(e,t){return f9i(e,t)},"drawText"),mXi=X(function(e,t){function r(s,o,u,h,f){return s+","+o+" "+(s+u)+","+o+" "+(s+u)+","+(o+h-f)+" "+(s+u-f*1.2)+","+(o+h)+" "+s+","+(o+h)}X(r,"genPoints");const a=e.append("polygon");a.attr("points",r(t.x,t.y,50,20,7)),a.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,yXn(e,t)},"drawLabel"),bXi=X(function(e,t,r){const a=e.append("g"),s=Ww();s.x=t.x,s.y=t.y,s.fill=t.fill,s.width=r.width*t.taskCount+r.diagramMarginX*(t.taskCount-1),s.height=r.height,s.class="journey-section section-type-"+t.num,s.rx=3,s.ry=3,tbt(a,s),vXn(r)(t.text,a,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+t.num},r,t.colour)},"drawSection"),_Tn=-1,yXi=X(function(e,t,r){const a=t.x+r.width/2,s=e.append("g");_Tn++;const o=300+5*30;s.append("line").attr("id","task"+_Tn).attr("x1",a).attr("y1",t.y).attr("x2",a).attr("y2",o).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),gXi(s,{cx:a,cy:300+(5-t.score)*30,score:t.score});const u=Ww();u.x=t.x,u.y=t.y,u.fill=t.fill,u.width=r.width,u.height=r.height,u.class="task task-type-"+t.num,u.rx=3,u.ry=3,tbt(s,u);let h=t.x+14;t.people.forEach(f=>{const p=t.actors[f].color,m={cx:h,cy:t.y,r:7,fill:p,stroke:"#000",title:f,pos:t.actors[f].position};bXn(s,m),h+=10}),vXn(r)(t.task,s,u.x,u.y,u.width,u.height,{class:"task"},r,t.colour)},"drawTask"),vXi=X(function(e,t){rYn(e,t)},"drawBackgroundRect"),vXn=function(){function e(s,o,u,h,f,p,m,b){const _=o.append("text").attr("x",u+f/2).attr("y",h+p/2+5).style("font-color",b).style("text-anchor","middle").text(s);a(_,m)}X(e,"byText");function t(s,o,u,h,f,p,m,b,_){const{taskFontSize:w,taskFontFamily:S}=b,C=s.split(//gi);for(let A=0;A{const o=I7[s].color,u={cx:20,cy:a,r:7,fill:o,stroke:"#000",pos:I7[s].position};dle.drawCircle(e,u);let h=e.append("text").attr("visibility","hidden").text(s);const f=h.node().getBoundingClientRect().width;h.remove();let p=[];if(f<=r)p=[s];else{const m=s.split(" ");let b="";h=e.append("text").attr("visibility","hidden"),m.forEach(_=>{const w=b?`${b} ${_}`:_;if(h.text(w),h.node().getBoundingClientRect().width>r){if(b&&p.push(b),b=_,h.text(_),h.node().getBoundingClientRect().width>r){let C="";for(const A of _)C+=A,h.text(C+"-"),h.node().getBoundingClientRect().width>r&&(p.push(C.slice(0,-1)+"-"),C=A);b=C}}else b=w}),b&&p.push(b),h.remove()}p.forEach((m,b)=>{const _={x:40,y:a+7+b*20,fill:"#666",text:m,textMargin:t.boxTextMargin??5},S=dle.drawText(e,_).node().getBoundingClientRect().width;S>Zxe&&S>t.leftMargin-S&&(Zxe=S)}),a+=Math.max(20,p.length*20)})}X(_Xn,"drawActorLegend");var A3=nn().journey,QN=0,EXi=X(function(e,t,r,a){const s=nn(),o=s.journey.titleColor,u=s.journey.titleFontSize,h=s.journey.titleFontFamily,f=s.securityLevel;let p;f==="sandbox"&&(p=gn("#i"+t));const m=gn(f==="sandbox"?p.nodes()[0].contentDocument.body:"body");jx.init();const b=m.select("#"+t);dle.initGraphics(b);const _=a.db.getTasks(),w=a.db.getDiagramTitle(),S=a.db.getActors();for(const L in I7)delete I7[L];let C=0;S.forEach(L=>{I7[L]={color:A3.actorColours[C%A3.actorColours.length],position:C},C++}),_Xn(b),QN=A3.leftMargin+Zxe,jx.insert(0,0,QN,Object.keys(I7).length*50),xXi(b,_,0);const A=jx.getBounds();w&&b.append("text").text(w).attr("x",QN).attr("font-size",u).attr("font-weight","bold").attr("y",25).attr("fill",o).attr("font-family",h);const k=A.stopy-A.starty+2*A3.diagramMarginY,I=QN+A.stopx+2*A3.diagramMarginX;yv(b,k,I,A3.useMaxWidth),b.append("line").attr("x1",QN).attr("y1",A3.height*4).attr("x2",I-QN-4).attr("y2",A3.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const N=w?70:0;b.attr("viewBox",`${A.startx} -25 ${I} ${k+N}`),b.attr("preserveAspectRatio","xMinYMin meet"),b.attr("height",k+N+25)},"draw"),jx={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:X(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:X(function(e,t,r,a){e[t]===void 0?e[t]=r:e[t]=a(r,e[t])},"updateVal"),updateBounds:X(function(e,t,r,a){const s=nn().journey,o=this;let u=0;function h(f){return X(function(m){u++;const b=o.sequenceItems.length-u+1;o.updateVal(m,"starty",t-b*s.boxMargin,Math.min),o.updateVal(m,"stopy",a+b*s.boxMargin,Math.max),o.updateVal(jx.data,"startx",e-b*s.boxMargin,Math.min),o.updateVal(jx.data,"stopx",r+b*s.boxMargin,Math.max),f!=="activation"&&(o.updateVal(m,"startx",e-b*s.boxMargin,Math.min),o.updateVal(m,"stopx",r+b*s.boxMargin,Math.max),o.updateVal(jx.data,"starty",t-b*s.boxMargin,Math.min),o.updateVal(jx.data,"stopy",a+b*s.boxMargin,Math.max))},"updateItemBounds")}X(h,"updateFn"),this.sequenceItems.forEach(h())},"updateBounds"),insert:X(function(e,t,r,a){const s=Math.min(e,r),o=Math.max(e,r),u=Math.min(t,a),h=Math.max(t,a);this.updateVal(jx.data,"startx",s,Math.min),this.updateVal(jx.data,"starty",u,Math.min),this.updateVal(jx.data,"stopx",o,Math.max),this.updateVal(jx.data,"stopy",h,Math.max),this.updateBounds(s,u,o,h)},"insert"),bumpVerticalPos:X(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:X(function(){return this.verticalPos},"getVerticalPos"),getBounds:X(function(){return this.data},"getBounds")},tat=A3.sectionFills,wTn=A3.sectionColours,xXi=X(function(e,t,r){const a=nn().journey;let s="";const o=a.height*2+a.diagramMarginY,u=r+o;let h=0,f="#CCC",p="black",m=0;for(const[b,_]of t.entries()){if(s!==_.section){f=tat[h%tat.length],m=h%tat.length,p=wTn[h%wTn.length];let S=0;const C=_.section;for(let k=b;k(I7[C]&&(S[C]=I7[C]),S),{});_.x=b*a.taskMargin+b*a.width+QN,_.y=u,_.width=a.diagramMarginX,_.height=a.diagramMarginY,_.colour=p,_.fill=f,_.num=m,_.actors=w,dle.drawTask(e,_,a),jx.insert(_.x,_.y,_.x+_.width+a.taskMargin,300+5*30)}},"drawTasks"),ETn={setConf:wXi,draw:EXi},SXi={parser:iXi,db:vTn,renderer:ETn,styles:pXi,init:X(e=>{ETn.setConf(e.journey),vTn.clear()},"init")};const TXi=Object.freeze(Object.defineProperty({__proto__:null,diagram:SXi},Symbol.toStringTag,{value:"Module"}));var Dut=function(){var e=X(function(_,w,S,C){for(S=S||{},C=_.length;C--;S[_[C]]=w);return S},"o"),t=[6,8,10,11,12,14,16,17,20,21],r=[1,9],a=[1,10],s=[1,11],o=[1,12],u=[1,13],h=[1,16],f=[1,17],p={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:X(function(w,S,C,A,k,I,N){var L=I.length-1;switch(k){case 1:return I[L-1];case 2:this.$=[];break;case 3:I[L-1].push(I[L]),this.$=I[L-1];break;case 4:case 5:this.$=I[L];break;case 6:case 7:this.$=[];break;case 8:A.getCommonDb().setDiagramTitle(I[L].substr(6)),this.$=I[L].substr(6);break;case 9:this.$=I[L].trim(),A.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=I[L].trim(),A.getCommonDb().setAccDescription(this.$);break;case 12:A.addSection(I[L].substr(8)),this.$=I[L].substr(8);break;case 15:A.addTask(I[L],0,""),this.$=I[L];break;case 16:A.addEvent(I[L].substr(2)),this.$=I[L];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:a,14:s,16:o,17:u,18:14,19:15,20:h,21:f},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:18,11:r,12:a,14:s,16:o,17:u,18:14,19:15,20:h,21:f},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,19]},{15:[1,20]},e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,4]),e(t,[2,9]),e(t,[2,10])],defaultActions:{},parseError:X(function(w,S){if(S.recoverable)this.trace(w);else{var C=new Error(w);throw C.hash=S,C}},"parseError"),parse:X(function(w){var S=this,C=[0],A=[],k=[null],I=[],N=this.table,L="",P=0,M=0,F=2,U=1,$=I.slice.call(arguments,1),G=Object.create(this.lexer),B={yy:{}};for(var Z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z)&&(B.yy[Z]=this.yy[Z]);G.setInput(w,B.yy),B.yy.lexer=G,B.yy.parser=this,typeof G.yylloc>"u"&&(G.yylloc={});var z=G.yylloc;I.push(z);var Y=G.options&&G.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function W(ve){C.length=C.length-2*ve,k.length=k.length-ve,I.length=I.length-ve}X(W,"popStack");function Q(){var ve;return ve=A.pop()||G.lex()||U,typeof ve!="number"&&(ve instanceof Array&&(A=ve,ve=A.pop()),ve=S.symbols_[ve]||ve),ve}X(Q,"lex");for(var V,j,ee,te,ne={},se,ie,ge,ce;;){if(j=C[C.length-1],this.defaultActions[j]?ee=this.defaultActions[j]:((V===null||typeof V>"u")&&(V=Q()),ee=N[j]&&N[j][V]),typeof ee>"u"||!ee.length||!ee[0]){var be="";ce=[];for(se in N[j])this.terminals_[se]&&se>F&&ce.push("'"+this.terminals_[se]+"'");G.showPosition?be="Parse error on line "+(P+1)+`: `+G.showPosition()+` Expecting `+ce.join(", ")+", got '"+(this.terminals_[V]||V)+"'":be="Parse error on line "+(P+1)+": Unexpected "+(V==U?"end of input":"'"+(this.terminals_[V]||V)+"'"),this.parseError(be,{text:G.match,token:this.terminals_[V]||V,line:G.yylineno,loc:z,expected:ce})}if(ee[0]instanceof Array&&ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+V);switch(ee[0]){case 1:C.push(V),k.push(G.yytext),I.push(G.yylloc),C.push(ee[1]),V=null,M=G.yyleng,L=G.yytext,P=G.yylineno,z=G.yylloc;break;case 2:if(ie=this.productions_[ee[1]][1],ne.$=k[k.length-ie],ne._$={first_line:I[I.length-(ie||1)].first_line,last_line:I[I.length-1].last_line,first_column:I[I.length-(ie||1)].first_column,last_column:I[I.length-1].last_column},Y&&(ne._$.range=[I[I.length-(ie||1)].range[0],I[I.length-1].range[1]]),te=this.performAction.apply(ne,[L,M,P,B.yy,ee[1],k,I].concat($)),typeof te<"u")return te;ie&&(C=C.slice(0,-1*ie*2),k=k.slice(0,-1*ie),I=I.slice(0,-1*ie)),C.push(this.productions_[ee[1]][0]),k.push(ne.$),I.push(ne._$),ge=N[C[C.length-2]][C[C.length-1]],C.push(ge);break;case 3:return!0}}return!0},"parse")},m=function(){var _={EOF:1,parseError:X(function(S,C){if(this.yy.parser)this.yy.parser.parseError(S,C);else throw new Error(S)},"parseError"),setInput:X(function(w,S){return this.yy=S||this.yy||{},this._input=w,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:X(function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var S=w.match(/(?:\r\n?|\n).*/g);return S?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},"input"),unput:X(function(w){var S=w.length,C=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-S),this.offset-=S;var A=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),C.length-1&&(this.yylineno-=C.length-1);var k=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:C?(C.length===A.length?this.yylloc.first_column:0)+A[A.length-C.length].length-C[0].length:this.yylloc.first_column-S},this.options.ranges&&(this.yylloc.range=[k[0],k[0]+this.yyleng-S]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(w){this.unput(this.match.slice(w))},"less"),pastInput:X(function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var w=this.pastInput(),S=new Array(w.length+1).join("-");return w+this.upcomingInput()+` `+S+"^"},"showPosition"),test_match:X(function(w,S){var C,A,k;if(this.options.backtrack_lexer&&(k={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(k.yylloc.range=this.yylloc.range.slice(0))),A=w[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+w[0].length},this.yytext+=w[0],this.match+=w[0],this.matches=w,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(w[0].length),this.matched+=w[0],C=this.performAction.call(this,this.yy,this,S,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),C)return C;if(this._backtrack){for(var I in k)this[I]=k[I];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var w,S,C,A;this._more||(this.yytext="",this.match="");for(var k=this._currentRules(),I=0;IS[0].length)){if(S=C,A=I,this.options.backtrack_lexer){if(w=this.test_match(C,k[I]),w!==!1)return w;if(this._backtrack){S=!1;continue}else return!1}else if(!this.options.flex)break}return S?(w=this.test_match(S,k[A]),w!==!1?w:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var S=this.next();return S||this.lex()},"lex"),begin:X(function(S){this.conditionStack.push(S)},"begin"),popState:X(function(){var S=this.conditionStack.length-1;return S>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(S){return S=this.conditionStack.length-1-Math.abs(S||0),S>=0?this.conditionStack[S]:"INITIAL"},"topState"),pushState:X(function(S){this.begin(S)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function(S,C,A,k){switch(A){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return _}();p.lexer=m;function b(){this.yy={}}return X(b,"Parser"),b.prototype=p,p.Parser=b,new b}();Dut.parser=Dut;var CXi=Dut,wXn={};KCe(wXn,{addEvent:()=>RXn,addSection:()=>TXn,addTask:()=>kXn,addTaskOrg:()=>IXn,clear:()=>SXn,default:()=>AXi,getCommonDb:()=>xXn,getSections:()=>CXn,getTasks:()=>AXn});var tW="",EXn=0,nbt=[],PTe=[],nW=[],xXn=X(()=>$0t,"getCommonDb"),SXn=X(function(){nbt.length=0,PTe.length=0,tW="",nW.length=0,M1()},"clear"),TXn=X(function(e){tW=e,nbt.push(e)},"addSection"),CXn=X(function(){return nbt},"getSections"),AXn=X(function(){let e=xTn();const t=100;let r=0;for(;!e&&rr.id===EXn-1).events.push(e)},"addEvent"),IXn=X(function(e){const t={section:tW,type:tW,description:e,task:e,classes:[]};PTe.push(t)},"addTaskOrg"),xTn=X(function(){const e=X(function(r){return nW[r].processed},"compileTask");let t=!0;for(const[r,a]of nW.entries())e(r),t=t&&a.processed;return t},"compileTasks"),AXi={clear:SXn,getCommonDb:xXn,addSection:TXn,getSections:CXn,getTasks:AXn,addTask:kXn,addTaskOrg:IXn,addEvent:RXn},kXi=12,t6e=X(function(e,t){const r=e.append("rect");return r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),r.attr("rx",t.rx),r.attr("ry",t.ry),t.class!==void 0&&r.attr("class",t.class),r},"drawRect"),RXi=X(function(e,t){const a=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=e.append("g");s.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function o(f){const p=_S().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}X(o,"smile");function u(f){const p=_S().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}X(u,"sad");function h(f){f.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return X(h,"ambivalent"),t.score>3?o(s):t.score<3?u(s):h(s),a},"drawFace"),IXi=X(function(e,t){const r=e.append("circle");return r.attr("cx",t.cx),r.attr("cy",t.cy),r.attr("class","actor-"+t.pos),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("r",t.r),r.class!==void 0&&r.attr("class",r.class),t.title!==void 0&&r.append("title").text(t.title),r},"drawCircle"),NXn=X(function(e,t){const r=t.text.replace(//gi," "),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(r),a},"drawText"),NXi=X(function(e,t){function r(s,o,u,h,f){return s+","+o+" "+(s+u)+","+o+" "+(s+u)+","+(o+h-f)+" "+(s+u-f*1.2)+","+(o+h)+" "+s+","+(o+h)}X(r,"genPoints");const a=e.append("polygon");a.attr("points",r(t.x,t.y,50,20,7)),a.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,NXn(e,t)},"drawLabel"),OXi=X(function(e,t,r){const a=e.append("g"),s=rbt();s.x=t.x,s.y=t.y,s.fill=t.fill,s.width=r.width,s.height=r.height,s.class="journey-section section-type-"+t.num,s.rx=3,s.ry=3,t6e(a,s),OXn(r)(t.text,a,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+t.num},r,t.colour)},"drawSection"),STn=-1,LXi=X(function(e,t,r){const a=t.x+r.width/2,s=e.append("g");STn++;const o=300+5*30;s.append("line").attr("id","task"+STn).attr("x1",a).attr("y1",t.y).attr("x2",a).attr("y2",o).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),RXi(s,{cx:a,cy:300+(5-t.score)*30,score:t.score});const u=rbt();u.x=t.x,u.y=t.y,u.fill=t.fill,u.width=r.width,u.height=r.height,u.class="task task-type-"+t.num,u.rx=3,u.ry=3,t6e(s,u),OXn(r)(t.task,s,u.x,u.y,u.width,u.height,{class:"task"},r,t.colour)},"drawTask"),DXi=X(function(e,t){t6e(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},"drawBackgroundRect"),MXi=X(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),rbt=X(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),OXn=function(){function e(s,o,u,h,f,p,m,b){const _=o.append("text").attr("x",u+f/2).attr("y",h+p/2+5).style("font-color",b).style("text-anchor","middle").text(s);a(_,m)}X(e,"byText");function t(s,o,u,h,f,p,m,b,_){const{taskFontSize:w,taskFontFamily:S}=b,C=s.split(//gi);for(let A=0;A)/).reverse(),s,o=[],u=1.1,h=r.attr("y"),f=parseFloat(r.attr("dy")),p=r.text(null).append("tspan").attr("x",0).attr("y",h).attr("dy",f+"em");for(let m=0;mt||s==="
    ")&&(o.pop(),p.text(o.join(" ").trim()),s==="
    "?o=[""]:o=[s],p=r.append("tspan").attr("x",0).attr("y",h).attr("dy",u+"em").text(s))})}X(ibt,"wrap");var BXi=X(function(e,t,r,a){var b;const s=r%kXi-1,o=e.append("g");t.section=s,o.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+s));const u=o.append("g"),h=o.append("g"),p=h.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(ibt,t.width).node().getBBox(),m=(b=a.fontSize)!=null&&b.replace?a.fontSize.replace("px",""):a.fontSize;return t.height=p.height+m*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,h.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),$Xi(u,t,s,a),t},"drawNode"),FXi=X(function(e,t,r){var h;const a=e.append("g"),o=a.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(ibt,t.width).node().getBBox(),u=(h=r.fontSize)!=null&&h.replace?r.fontSize.replace("px",""):r.fontSize;return a.remove(),o.height+u*1.1*.5+t.padding},"getVirtualNodeHeight"),$Xi=X(function(e,t,r){e.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${-t.height+2*5} q0,-5 5,-5 h${t.width-2*5} q5,0 5,5 v${t.height-5} H0 Z`),e.append("line").attr("class","node-line-"+r).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},"defaultBkg"),GB={drawRect:t6e,drawCircle:IXi,drawSection:OXi,drawText:NXn,drawLabel:NXi,drawTask:LXi,drawBackgroundRect:DXi,getTextObj:MXi,getNoteRect:rbt,initGraphics:PXi,drawNode:BXi,getVirtualNodeHeight:FXi},UXi=X(function(e,t,r,a){var $,G,B;const s=nn(),o=(($=s.timeline)==null?void 0:$.leftMargin)??50;it.debug("timeline",a.db);const u=s.securityLevel;let h;u==="sandbox"&&(h=gn("#i"+t));const p=gn(u==="sandbox"?h.nodes()[0].contentDocument.body:"body").select("#"+t);p.append("g");const m=a.db.getTasks(),b=a.db.getCommonDb().getDiagramTitle();it.debug("task",m),GB.initGraphics(p);const _=a.db.getSections();it.debug("sections",_);let w=0,S=0,C=0,A=0,k=50+o,I=50;A=50;let N=0,L=!0;_.forEach(function(Z){const z={number:N,descr:Z,section:N,width:150,padding:20,maxHeight:w},Y=GB.getVirtualNodeHeight(p,z,s);it.debug("sectionHeight before draw",Y),w=Math.max(w,Y+20)});let P=0,M=0;it.debug("tasks.length",m.length);for(const[Z,z]of m.entries()){const Y={number:Z,descr:z,section:z.section,width:150,padding:20,maxHeight:S},W=GB.getVirtualNodeHeight(p,Y,s);it.debug("taskHeight before draw",W),S=Math.max(S,W+20),P=Math.max(P,z.events.length);let Q=0;for(const V of z.events){const j={descr:V,section:z.section,number:z.section,width:150,padding:20,maxHeight:50};Q+=GB.getVirtualNodeHeight(p,j,s)}z.events.length>0&&(Q+=(z.events.length-1)*10),M=Math.max(M,Q)}it.debug("maxSectionHeight before draw",w),it.debug("maxTaskHeight before draw",S),_&&_.length>0?_.forEach(Z=>{const z=m.filter(V=>V.section===Z),Y={number:N,descr:Z,section:N,width:200*Math.max(z.length,1)-50,padding:20,maxHeight:w};it.debug("sectionNode",Y);const W=p.append("g"),Q=GB.drawNode(W,Y,N,s);it.debug("sectionNode output",Q),W.attr("transform",`translate(${k}, ${A})`),I+=w+50,z.length>0&&TTn(p,z,N,k,I,S,s,P,M,w,!1),k+=200*Math.max(z.length,1),I=A,N++}):(L=!1,TTn(p,m,N,k,I,S,s,P,M,w,!0));const F=p.node().getBBox();it.debug("bounds",F),b&&p.append("text").text(b).attr("x",F.width/2-o).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),C=L?w+S+150:S+100,p.append("g").attr("class","lineWrapper").append("line").attr("x1",o).attr("y1",C).attr("x2",F.width+3*o).attr("y2",C).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),rce(void 0,p,((G=s.timeline)==null?void 0:G.padding)??50,((B=s.timeline)==null?void 0:B.useMaxWidth)??!1)},"draw"),TTn=X(function(e,t,r,a,s,o,u,h,f,p,m){var b;for(const _ of t){const w={descr:_.task,section:r,number:r,width:150,padding:20,maxHeight:o};it.debug("taskNode",w);const S=e.append("g").attr("class","taskWrapper"),A=GB.drawNode(S,w,r,u).height;if(it.debug("taskHeight after draw",A),S.attr("transform",`translate(${a}, ${s})`),o=Math.max(o,A),_.events){const k=e.append("g").attr("class","lineWrapper");let I=o;s+=100,I=I+zXi(e,_.events,r,a,s,u),s-=100,k.append("line").attr("x1",a+190/2).attr("y1",s+o).attr("x2",a+190/2).attr("y2",s+o+100+f+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}a=a+200,m&&!((b=u.timeline)!=null&&b.disableMulticolor)&&r++}s=s-10},"drawTasks"),zXi=X(function(e,t,r,a,s,o){let u=0;const h=s;s=s+100;for(const f of t){const p={descr:f,section:r,number:r,width:150,padding:20,maxHeight:50};it.debug("eventNode",p);const m=e.append("g").attr("class","eventWrapper"),_=GB.drawNode(m,p,r,o).height;u=u+_,m.attr("transform",`translate(${a}, ${s})`),s=s+10+_}return s=h,u},"drawEvents"),GXi={setConf:X(()=>{},"setConf"),draw:UXi},qXi=X(e=>{let t="";for(let r=0;r` .edge { stroke-width: 3; } ${qXi(e)} .section-root rect, .section-root path, .section-root circle { fill: ${e.git0}; } .section-root text { fill: ${e.gitBranchLabel0}; } .icon-container { height:100%; display: flex; justify-content: center; align-items: center; } .edge { fill: none; } .eventWrapper { filter: brightness(120%); } `,"getStyles"),VXi=HXi,YXi={db:wXn,renderer:GXi,parser:CXi,styles:VXi};const jXi=Object.freeze(Object.defineProperty({__proto__:null,diagram:YXi},Symbol.toStringTag,{value:"Module"})),hm=[];for(let e=0;e<256;++e)hm.push((e+256).toString(16).slice(1));function WXi(e,t=0){return(hm[e[t+0]]+hm[e[t+1]]+hm[e[t+2]]+hm[e[t+3]]+"-"+hm[e[t+4]]+hm[e[t+5]]+"-"+hm[e[t+6]]+hm[e[t+7]]+"-"+hm[e[t+8]]+hm[e[t+9]]+"-"+hm[e[t+10]]+hm[e[t+11]]+hm[e[t+12]]+hm[e[t+13]]+hm[e[t+14]]+hm[e[t+15]]).toLowerCase()}let nat;const KXi=new Uint8Array(16);function XXi(){if(!nat){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");nat=crypto.getRandomValues.bind(crypto)}return nat(KXi)}const QXi=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),CTn={randomUUID:QXi};function ZXi(e,t,r){var s;if(CTn.randomUUID&&!e)return CTn.randomUUID();e=e||{};const a=e.random??((s=e.rng)==null?void 0:s.call(e))??XXi();if(a.length<16)throw new Error("Random bytes length must be >= 16");return a[6]=a[6]&15|64,a[8]=a[8]&63|128,WXi(a)}var Mut=function(){var e=X(function(L,P,M,F){for(M=M||{},F=L.length;F--;M[L[F]]=P);return M},"o"),t=[1,4],r=[1,13],a=[1,12],s=[1,15],o=[1,16],u=[1,20],h=[1,19],f=[6,7,8],p=[1,26],m=[1,24],b=[1,25],_=[6,7,11],w=[1,6,13,15,16,19,22],S=[1,33],C=[1,34],A=[1,6,7,11,13,15,16,19,22],k={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:X(function(P,M,F,U,$,G,B){var Z=G.length-1;switch($){case 6:case 7:return U;case 8:U.getLogger().trace("Stop NL ");break;case 9:U.getLogger().trace("Stop EOF ");break;case 11:U.getLogger().trace("Stop NL2 ");break;case 12:U.getLogger().trace("Stop EOF2 ");break;case 15:U.getLogger().info("Node: ",G[Z].id),U.addNode(G[Z-1].length,G[Z].id,G[Z].descr,G[Z].type);break;case 16:U.getLogger().trace("Icon: ",G[Z]),U.decorateNode({icon:G[Z]});break;case 17:case 21:U.decorateNode({class:G[Z]});break;case 18:U.getLogger().trace("SPACELIST");break;case 19:U.getLogger().trace("Node: ",G[Z].id),U.addNode(0,G[Z].id,G[Z].descr,G[Z].type);break;case 20:U.decorateNode({icon:G[Z]});break;case 25:U.getLogger().trace("node found ..",G[Z-2]),this.$={id:G[Z-1],descr:G[Z-1],type:U.getType(G[Z-2],G[Z])};break;case 26:this.$={id:G[Z],descr:G[Z],type:U.nodeType.DEFAULT};break;case 27:U.getLogger().trace("node found ..",G[Z-3]),this.$={id:G[Z-3],descr:G[Z-1],type:U.getType(G[Z-2],G[Z])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:r,7:[1,10],9:9,12:11,13:a,14:14,15:s,16:o,17:17,18:18,19:u,22:h},e(f,[2,3]),{1:[2,2]},e(f,[2,4]),e(f,[2,5]),{1:[2,6],6:r,12:21,13:a,14:14,15:s,16:o,17:17,18:18,19:u,22:h},{6:r,9:22,12:11,13:a,14:14,15:s,16:o,17:17,18:18,19:u,22:h},{6:p,7:m,10:23,11:b},e(_,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:h}),e(_,[2,18]),e(_,[2,19]),e(_,[2,20]),e(_,[2,21]),e(_,[2,23]),e(_,[2,24]),e(_,[2,26],{19:[1,30]}),{20:[1,31]},{6:p,7:m,10:32,11:b},{1:[2,7],6:r,12:21,13:a,14:14,15:s,16:o,17:17,18:18,19:u,22:h},e(w,[2,14],{7:S,11:C}),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(_,[2,15]),e(_,[2,16]),e(_,[2,17]),{20:[1,35]},{21:[1,36]},e(w,[2,13],{7:S,11:C}),e(A,[2,11]),e(A,[2,12]),{21:[1,37]},e(_,[2,25]),e(_,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:X(function(P,M){if(M.recoverable)this.trace(P);else{var F=new Error(P);throw F.hash=M,F}},"parseError"),parse:X(function(P){var M=this,F=[0],U=[],$=[null],G=[],B=this.table,Z="",z=0,Y=0,W=2,Q=1,V=G.slice.call(arguments,1),j=Object.create(this.lexer),ee={yy:{}};for(var te in this.yy)Object.prototype.hasOwnProperty.call(this.yy,te)&&(ee.yy[te]=this.yy[te]);j.setInput(P,ee.yy),ee.yy.lexer=j,ee.yy.parser=this,typeof j.yylloc>"u"&&(j.yylloc={});var ne=j.yylloc;G.push(ne);var se=j.options&&j.options.ranges;typeof ee.yy.parseError=="function"?this.parseError=ee.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ie(Le){F.length=F.length-2*Le,$.length=$.length-Le,G.length=G.length-Le}X(ie,"popStack");function ge(){var Le;return Le=U.pop()||j.lex()||Q,typeof Le!="number"&&(Le instanceof Array&&(U=Le,Le=U.pop()),Le=M.symbols_[Le]||Le),Le}X(ge,"lex");for(var ce,be,ve,De,ye={},Ee,he,we,Ce;;){if(be=F[F.length-1],this.defaultActions[be]?ve=this.defaultActions[be]:((ce===null||typeof ce>"u")&&(ce=ge()),ve=B[be]&&B[be][ce]),typeof ve>"u"||!ve.length||!ve[0]){var Ie="";Ce=[];for(Ee in B[be])this.terminals_[Ee]&&Ee>W&&Ce.push("'"+this.terminals_[Ee]+"'");j.showPosition?Ie="Parse error on line "+(z+1)+`: `+j.showPosition()+` Expecting `+Ce.join(", ")+", got '"+(this.terminals_[ce]||ce)+"'":Ie="Parse error on line "+(z+1)+": Unexpected "+(ce==Q?"end of input":"'"+(this.terminals_[ce]||ce)+"'"),this.parseError(Ie,{text:j.match,token:this.terminals_[ce]||ce,line:j.yylineno,loc:ne,expected:Ce})}if(ve[0]instanceof Array&&ve.length>1)throw new Error("Parse Error: multiple actions possible at state: "+be+", token: "+ce);switch(ve[0]){case 1:F.push(ce),$.push(j.yytext),G.push(j.yylloc),F.push(ve[1]),ce=null,Y=j.yyleng,Z=j.yytext,z=j.yylineno,ne=j.yylloc;break;case 2:if(he=this.productions_[ve[1]][1],ye.$=$[$.length-he],ye._$={first_line:G[G.length-(he||1)].first_line,last_line:G[G.length-1].last_line,first_column:G[G.length-(he||1)].first_column,last_column:G[G.length-1].last_column},se&&(ye._$.range=[G[G.length-(he||1)].range[0],G[G.length-1].range[1]]),De=this.performAction.apply(ye,[Z,Y,z,ee.yy,ve[1],$,G].concat(V)),typeof De<"u")return De;he&&(F=F.slice(0,-1*he*2),$=$.slice(0,-1*he),G=G.slice(0,-1*he)),F.push(this.productions_[ve[1]][0]),$.push(ye.$),G.push(ye._$),we=B[F[F.length-2]][F[F.length-1]],F.push(we);break;case 3:return!0}}return!0},"parse")},I=function(){var L={EOF:1,parseError:X(function(M,F){if(this.yy.parser)this.yy.parser.parseError(M,F);else throw new Error(M)},"parseError"),setInput:X(function(P,M){return this.yy=M||this.yy||{},this._input=P,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:X(function(){var P=this._input[0];this.yytext+=P,this.yyleng++,this.offset++,this.match+=P,this.matched+=P;var M=P.match(/(?:\r\n?|\n).*/g);return M?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),P},"input"),unput:X(function(P){var M=P.length,F=P.split(/(?:\r\n?|\n)/g);this._input=P+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-M),this.offset-=M;var U=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),F.length-1&&(this.yylineno-=F.length-1);var $=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:F?(F.length===U.length?this.yylloc.first_column:0)+U[U.length-F.length].length-F[0].length:this.yylloc.first_column-M},this.options.ranges&&(this.yylloc.range=[$[0],$[0]+this.yyleng-M]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(P){this.unput(this.match.slice(P))},"less"),pastInput:X(function(){var P=this.matched.substr(0,this.matched.length-this.match.length);return(P.length>20?"...":"")+P.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var P=this.match;return P.length<20&&(P+=this._input.substr(0,20-P.length)),(P.substr(0,20)+(P.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var P=this.pastInput(),M=new Array(P.length+1).join("-");return P+this.upcomingInput()+` `+M+"^"},"showPosition"),test_match:X(function(P,M){var F,U,$;if(this.options.backtrack_lexer&&($={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&($.yylloc.range=this.yylloc.range.slice(0))),U=P[0].match(/(?:\r\n?|\n).*/g),U&&(this.yylineno+=U.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:U?U[U.length-1].length-U[U.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+P[0].length},this.yytext+=P[0],this.match+=P[0],this.matches=P,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(P[0].length),this.matched+=P[0],F=this.performAction.call(this,this.yy,this,M,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),F)return F;if(this._backtrack){for(var G in $)this[G]=$[G];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var P,M,F,U;this._more||(this.yytext="",this.match="");for(var $=this._currentRules(),G=0;G<$.length;G++)if(F=this._input.match(this.rules[$[G]]),F&&(!M||F[0].length>M[0].length)){if(M=F,U=G,this.options.backtrack_lexer){if(P=this.test_match(F,$[G]),P!==!1)return P;if(this._backtrack){M=!1;continue}else return!1}else if(!this.options.flex)break}return M?(P=this.test_match(M,$[U]),P!==!1?P:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var M=this.next();return M||this.lex()},"lex"),begin:X(function(M){this.conditionStack.push(M)},"begin"),popState:X(function(){var M=this.conditionStack.length-1;return M>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(M){return M=this.conditionStack.length-1-Math.abs(M||0),M>=0?this.conditionStack[M]:"INITIAL"},"topState"),pushState:X(function(M){this.begin(M)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function(M,F,U,$){switch(U){case 0:return M.getLogger().trace("Found comment",F.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:M.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return M.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:M.getLogger().trace("end icon"),this.popState();break;case 10:return M.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return M.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return M.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return M.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:M.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return M.getLogger().trace("description:",F.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),M.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),M.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),M.getLogger().trace("node end ...",F.yytext),"NODE_DEND";case 30:return this.popState(),M.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),M.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),M.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),M.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),M.getLogger().trace("node end (("),"NODE_DEND";case 35:return M.getLogger().trace("Long description:",F.yytext),20;case 36:return M.getLogger().trace("Long description:",F.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return L}();k.lexer=I;function N(){this.yy={}}return X(N,"Parser"),N.prototype=k,k.Parser=N,new N}();Mut.parser=Mut;var JXi=Mut,J6={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},sj,eQi=(sj=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=J6,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(t){for(let r=this.nodes.length-1;r>=0;r--)if(this.nodes[r].level0?this.nodes[0]:null}addNode(t,r,a,s){var m,b;it.info("addNode",t,r,a,s);let o=!1;this.nodes.length===0?(this.baseLevel=t,t=0,o=!0):this.baseLevel!==void 0&&(t=t-this.baseLevel,o=!1);const u=nn();let h=((m=u.mindmap)==null?void 0:m.padding)??Cc.mindmap.padding;switch(s){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:h*=2;break}const f={id:this.count++,nodeId:Ic(r,u),level:t,descr:Ic(a,u),type:s,children:[],width:((b=u.mindmap)==null?void 0:b.maxNodeWidth)??Cc.mindmap.maxNodeWidth,padding:h,isRoot:o},p=this.getParent(t);if(p)p.children.push(f),this.nodes.push(f);else if(o)this.nodes.push(f);else throw new Error(`There can be only one root. No parent could be found for ("${f.descr}")`)}getType(t,r){switch(it.debug("In get type",t,r),t){case"[":return this.nodeType.RECT;case"(":return r===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(t,r){this.elements[t]=r}getElementById(t){return this.elements[t]}decorateNode(t){if(!t)return;const r=nn(),a=this.nodes[this.nodes.length-1];t.icon&&(a.icon=Ic(t.icon,r)),t.class&&(a.class=Ic(t.class,r))}type2Str(t){switch(t){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(t,r){if(t.level===0?t.section=void 0:t.section=r,t.children)for(const[a,s]of t.children.entries()){const o=t.level===0?a:r;this.assignSections(s,o)}}flattenNodes(t,r){const a=["mindmap-node"];t.isRoot===!0?a.push("section-root","section--1"):t.section!==void 0&&a.push(`section-${t.section}`),t.class&&a.push(t.class);const s=a.join(" "),o=X(h=>{switch(h){case J6.CIRCLE:return"mindmapCircle";case J6.RECT:return"rect";case J6.ROUNDED_RECT:return"rounded";case J6.CLOUD:return"cloud";case J6.BANG:return"bang";case J6.HEXAGON:return"hexagon";case J6.DEFAULT:return"defaultMindmapNode";case J6.NO_BORDER:default:return"rect"}},"getShapeFromType"),u={id:t.id.toString(),domId:"node_"+t.id.toString(),label:t.descr,isGroup:!1,shape:o(t.type),width:t.width,height:t.height??0,padding:t.padding,cssClasses:s,cssStyles:[],look:"default",icon:t.icon,x:t.x,y:t.y,level:t.level,nodeId:t.nodeId,type:t.type,section:t.section};if(r.push(u),t.children)for(const h of t.children)this.flattenNodes(h,r)}generateEdges(t,r){if(t.children)for(const a of t.children){let s="edge";a.section!==void 0&&(s+=` section-edge-${a.section}`);const o=t.level+1;s+=` edge-depth-${o}`;const u={id:`edge_${t.id}_${a.id}`,start:t.id.toString(),end:a.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:"default",classes:s,depth:t.level,section:a.section};r.push(u),this.generateEdges(a,r)}}getData(){const t=this.getMindmap(),r=nn(),s=Bii().layout!==void 0,o=r;if(s||(o.layout="cose-bilkent"),!t)return{nodes:[],edges:[],config:o};it.debug("getData: mindmapRoot",t,r),this.assignSections(t);const u=[],h=[];this.flattenNodes(t,u),this.generateEdges(t,h),it.debug(`getData: processed ${u.length} nodes and ${h.length} edges`);const f=new Map;for(const p of u)f.set(p.id,{shape:p.shape,width:p.width,height:p.height,padding:p.padding});return{nodes:u,edges:h,config:o,rootNode:t,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(f),type:"mindmap",diagramId:"mindmap-"+ZXi()}}getLogger(){return it}},X(sj,"MindmapDB"),sj),tQi=X(async(e,t,r,a)=>{var f,p;it.debug(`Rendering mindmap diagram `+e);const s=a.db,o=s.getData(),u=eK(t,o.config.securityLevel);o.type=a.type,o.layoutAlgorithm=hce(o.config.layout,{fallback:"cose-bilkent"}),o.diagramId=t,s.getMindmap()&&(o.nodes.forEach(m=>{m.shape==="rounded"?(m.radius=15,m.taper=15,m.stroke="none",m.width=0,m.padding=15):m.shape==="circle"?m.padding=10:m.shape==="rect"&&(m.width=0,m.padding=10)}),await $W(o,u),U$(u,((f=o.config.mindmap)==null?void 0:f.padding)??Cc.mindmap.padding,"mindmapDiagram",((p=o.config.mindmap)==null?void 0:p.useMaxWidth)??Cc.mindmap.useMaxWidth))},"draw"),nQi={draw:tQi},rQi=X(e=>{let t="";for(let r=0;r` .edge { stroke-width: 3; } ${rQi(e)} .section-root rect, .section-root path, .section-root circle, .section-root polygon { fill: ${e.git0}; } .section-root text { fill: ${e.gitBranchLabel0}; } .section-root span { color: ${e.gitBranchLabel0}; } .section-2 span { color: ${e.gitBranchLabel0}; } .icon-container { height:100%; display: flex; justify-content: center; align-items: center; } .edge { fill: none; } .mindmap-node-label { dy: 1em; alignment-baseline: middle; text-anchor: middle; dominant-baseline: middle; text-align: center; } `,"getStyles"),aQi=iQi,sQi={get db(){return new eQi},renderer:nQi,parser:JXi,styles:aQi};const oQi=Object.freeze(Object.defineProperty({__proto__:null,diagram:sQi},Symbol.toStringTag,{value:"Module"}));var Put=function(){var e=X(function(F,U,$,G){for($=$||{},G=F.length;G--;$[F[G]]=U);return $},"o"),t=[1,4],r=[1,13],a=[1,12],s=[1,15],o=[1,16],u=[1,20],h=[1,19],f=[6,7,8],p=[1,26],m=[1,24],b=[1,25],_=[6,7,11],w=[1,31],S=[6,7,11,24],C=[1,6,13,16,17,20,23],A=[1,35],k=[1,36],I=[1,6,7,11,13,16,17,20,23],N=[1,38],L={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:X(function(U,$,G,B,Z,z,Y){var W=z.length-1;switch(Z){case 6:case 7:return B;case 8:B.getLogger().trace("Stop NL ");break;case 9:B.getLogger().trace("Stop EOF ");break;case 11:B.getLogger().trace("Stop NL2 ");break;case 12:B.getLogger().trace("Stop EOF2 ");break;case 15:B.getLogger().info("Node: ",z[W-1].id),B.addNode(z[W-2].length,z[W-1].id,z[W-1].descr,z[W-1].type,z[W]);break;case 16:B.getLogger().info("Node: ",z[W].id),B.addNode(z[W-1].length,z[W].id,z[W].descr,z[W].type);break;case 17:B.getLogger().trace("Icon: ",z[W]),B.decorateNode({icon:z[W]});break;case 18:case 23:B.decorateNode({class:z[W]});break;case 19:B.getLogger().trace("SPACELIST");break;case 20:B.getLogger().trace("Node: ",z[W-1].id),B.addNode(0,z[W-1].id,z[W-1].descr,z[W-1].type,z[W]);break;case 21:B.getLogger().trace("Node: ",z[W].id),B.addNode(0,z[W].id,z[W].descr,z[W].type);break;case 22:B.decorateNode({icon:z[W]});break;case 27:B.getLogger().trace("node found ..",z[W-2]),this.$={id:z[W-1],descr:z[W-1],type:B.getType(z[W-2],z[W])};break;case 28:this.$={id:z[W],descr:z[W],type:0};break;case 29:B.getLogger().trace("node found ..",z[W-3]),this.$={id:z[W-3],descr:z[W-1],type:B.getType(z[W-2],z[W])};break;case 30:this.$=z[W-1]+z[W];break;case 31:this.$=z[W];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:r,7:[1,10],9:9,12:11,13:a,14:14,16:s,17:o,18:17,19:18,20:u,23:h},e(f,[2,3]),{1:[2,2]},e(f,[2,4]),e(f,[2,5]),{1:[2,6],6:r,12:21,13:a,14:14,16:s,17:o,18:17,19:18,20:u,23:h},{6:r,9:22,12:11,13:a,14:14,16:s,17:o,18:17,19:18,20:u,23:h},{6:p,7:m,10:23,11:b},e(_,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:u,23:h}),e(_,[2,19]),e(_,[2,21],{15:30,24:w}),e(_,[2,22]),e(_,[2,23]),e(S,[2,25]),e(S,[2,26]),e(S,[2,28],{20:[1,32]}),{21:[1,33]},{6:p,7:m,10:34,11:b},{1:[2,7],6:r,12:21,13:a,14:14,16:s,17:o,18:17,19:18,20:u,23:h},e(C,[2,14],{7:A,11:k}),e(I,[2,8]),e(I,[2,9]),e(I,[2,10]),e(_,[2,16],{15:37,24:w}),e(_,[2,17]),e(_,[2,18]),e(_,[2,20],{24:N}),e(S,[2,31]),{21:[1,39]},{22:[1,40]},e(C,[2,13],{7:A,11:k}),e(I,[2,11]),e(I,[2,12]),e(_,[2,15],{24:N}),e(S,[2,30]),{22:[1,41]},e(S,[2,27]),e(S,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:X(function(U,$){if($.recoverable)this.trace(U);else{var G=new Error(U);throw G.hash=$,G}},"parseError"),parse:X(function(U){var $=this,G=[0],B=[],Z=[null],z=[],Y=this.table,W="",Q=0,V=0,j=2,ee=1,te=z.slice.call(arguments,1),ne=Object.create(this.lexer),se={yy:{}};for(var ie in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ie)&&(se.yy[ie]=this.yy[ie]);ne.setInput(U,se.yy),se.yy.lexer=ne,se.yy.parser=this,typeof ne.yylloc>"u"&&(ne.yylloc={});var ge=ne.yylloc;z.push(ge);var ce=ne.options&&ne.options.ranges;typeof se.yy.parseError=="function"?this.parseError=se.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function be(Oe){G.length=G.length-2*Oe,Z.length=Z.length-Oe,z.length=z.length-Oe}X(be,"popStack");function ve(){var Oe;return Oe=B.pop()||ne.lex()||ee,typeof Oe!="number"&&(Oe instanceof Array&&(B=Oe,Oe=B.pop()),Oe=$.symbols_[Oe]||Oe),Oe}X(ve,"lex");for(var De,ye,Ee,he,we={},Ce,Ie,Le,Fe;;){if(ye=G[G.length-1],this.defaultActions[ye]?Ee=this.defaultActions[ye]:((De===null||typeof De>"u")&&(De=ve()),Ee=Y[ye]&&Y[ye][De]),typeof Ee>"u"||!Ee.length||!Ee[0]){var Ve="";Fe=[];for(Ce in Y[ye])this.terminals_[Ce]&&Ce>j&&Fe.push("'"+this.terminals_[Ce]+"'");ne.showPosition?Ve="Parse error on line "+(Q+1)+`: `+ne.showPosition()+` Expecting `+Fe.join(", ")+", got '"+(this.terminals_[De]||De)+"'":Ve="Parse error on line "+(Q+1)+": Unexpected "+(De==ee?"end of input":"'"+(this.terminals_[De]||De)+"'"),this.parseError(Ve,{text:ne.match,token:this.terminals_[De]||De,line:ne.yylineno,loc:ge,expected:Fe})}if(Ee[0]instanceof Array&&Ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ye+", token: "+De);switch(Ee[0]){case 1:G.push(De),Z.push(ne.yytext),z.push(ne.yylloc),G.push(Ee[1]),De=null,V=ne.yyleng,W=ne.yytext,Q=ne.yylineno,ge=ne.yylloc;break;case 2:if(Ie=this.productions_[Ee[1]][1],we.$=Z[Z.length-Ie],we._$={first_line:z[z.length-(Ie||1)].first_line,last_line:z[z.length-1].last_line,first_column:z[z.length-(Ie||1)].first_column,last_column:z[z.length-1].last_column},ce&&(we._$.range=[z[z.length-(Ie||1)].range[0],z[z.length-1].range[1]]),he=this.performAction.apply(we,[W,V,Q,se.yy,Ee[1],Z,z].concat(te)),typeof he<"u")return he;Ie&&(G=G.slice(0,-1*Ie*2),Z=Z.slice(0,-1*Ie),z=z.slice(0,-1*Ie)),G.push(this.productions_[Ee[1]][0]),Z.push(we.$),z.push(we._$),Le=Y[G[G.length-2]][G[G.length-1]],G.push(Le);break;case 3:return!0}}return!0},"parse")},P=function(){var F={EOF:1,parseError:X(function($,G){if(this.yy.parser)this.yy.parser.parseError($,G);else throw new Error($)},"parseError"),setInput:X(function(U,$){return this.yy=$||this.yy||{},this._input=U,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:X(function(){var U=this._input[0];this.yytext+=U,this.yyleng++,this.offset++,this.match+=U,this.matched+=U;var $=U.match(/(?:\r\n?|\n).*/g);return $?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),U},"input"),unput:X(function(U){var $=U.length,G=U.split(/(?:\r\n?|\n)/g);this._input=U+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-$),this.offset-=$;var B=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),G.length-1&&(this.yylineno-=G.length-1);var Z=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:G?(G.length===B.length?this.yylloc.first_column:0)+B[B.length-G.length].length-G[0].length:this.yylloc.first_column-$},this.options.ranges&&(this.yylloc.range=[Z[0],Z[0]+this.yyleng-$]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(U){this.unput(this.match.slice(U))},"less"),pastInput:X(function(){var U=this.matched.substr(0,this.matched.length-this.match.length);return(U.length>20?"...":"")+U.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var U=this.match;return U.length<20&&(U+=this._input.substr(0,20-U.length)),(U.substr(0,20)+(U.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var U=this.pastInput(),$=new Array(U.length+1).join("-");return U+this.upcomingInput()+` `+$+"^"},"showPosition"),test_match:X(function(U,$){var G,B,Z;if(this.options.backtrack_lexer&&(Z={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Z.yylloc.range=this.yylloc.range.slice(0))),B=U[0].match(/(?:\r\n?|\n).*/g),B&&(this.yylineno+=B.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:B?B[B.length-1].length-B[B.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+U[0].length},this.yytext+=U[0],this.match+=U[0],this.matches=U,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(U[0].length),this.matched+=U[0],G=this.performAction.call(this,this.yy,this,$,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),G)return G;if(this._backtrack){for(var z in Z)this[z]=Z[z];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var U,$,G,B;this._more||(this.yytext="",this.match="");for(var Z=this._currentRules(),z=0;z$[0].length)){if($=G,B=z,this.options.backtrack_lexer){if(U=this.test_match(G,Z[z]),U!==!1)return U;if(this._backtrack){$=!1;continue}else return!1}else if(!this.options.flex)break}return $?(U=this.test_match($,Z[B]),U!==!1?U:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var $=this.next();return $||this.lex()},"lex"),begin:X(function($){this.conditionStack.push($)},"begin"),popState:X(function(){var $=this.conditionStack.length-1;return $>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function($){return $=this.conditionStack.length-1-Math.abs($||0),$>=0?this.conditionStack[$]:"INITIAL"},"topState"),pushState:X(function($){this.begin($)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function($,G,B,Z){switch(B){case 0:return this.pushState("shapeData"),G.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const z=/\n\s*/g;return G.yytext=G.yytext.replace(z,"
    "),24;case 4:return 24;case 5:this.popState();break;case 6:return $.getLogger().trace("Found comment",G.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:$.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return $.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:$.getLogger().trace("end icon"),this.popState();break;case 16:return $.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return $.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return $.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return $.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:return this.begin("NODE"),20;case 21:return this.begin("NODE"),20;case 22:return this.begin("NODE"),20;case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:$.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return $.getLogger().trace("description:",G.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),$.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),$.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),$.getLogger().trace("node end ...",G.yytext),"NODE_DEND";case 36:return this.popState(),$.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),$.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),$.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),$.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),$.getLogger().trace("node end (("),"NODE_DEND";case 41:return $.getLogger().trace("Long description:",G.yytext),21;case 42:return $.getLogger().trace("Long description:",G.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return F}();L.lexer=P;function M(){this.yy={}}return X(M,"Parser"),M.prototype=L,L.Parser=M,new M}();Put.parser=Put;var lQi=Put,Xx=[],abt=[],But=0,sbt={},cQi=X(()=>{Xx=[],abt=[],But=0,sbt={}},"clear"),uQi=X(e=>{if(Xx.length===0)return null;const t=Xx[0].level;let r=null;for(let a=Xx.length-1;a>=0;a--)if(Xx[a].level===t&&!r&&(r=Xx[a]),Xx[a].levelh.parentId===s.id);for(const h of u){const f={id:h.id,parentId:s.id,label:Ic(h.label??"",a),isGroup:!1,ticket:h==null?void 0:h.ticket,priority:h==null?void 0:h.priority,assigned:h==null?void 0:h.assigned,icon:h==null?void 0:h.icon,shape:"kanbanItem",level:h.level,rx:5,ry:5,cssStyles:["text-align: left"]};t.push(f)}}return{nodes:t,edges:e,other:{},config:nn()}},"getData"),dQi=X((e,t,r,a,s)=>{var p,m;const o=nn();let u=((p=o.mindmap)==null?void 0:p.padding)??Cc.mindmap.padding;switch(a){case Ep.ROUNDED_RECT:case Ep.RECT:case Ep.HEXAGON:u*=2}const h={id:Ic(t,o)||"kbn"+But++,level:e,label:Ic(r,o),width:((m=o.mindmap)==null?void 0:m.maxNodeWidth)??Cc.mindmap.maxNodeWidth,padding:u,isGroup:!1};if(s!==void 0){let b;s.includes(` `)?b=s+` `:b=`{ `+s+` }`;const _=fAe(b,{schema:dAe});if(_.shape&&(_.shape!==_.shape.toLowerCase()||_.shape.includes("_")))throw new Error(`No such shape: ${_.shape}. Shape names should be lowercase.`);_!=null&&_.shape&&_.shape==="kanbanItem"&&(h.shape=_==null?void 0:_.shape),_!=null&&_.label&&(h.label=_==null?void 0:_.label),_!=null&&_.icon&&(h.icon=_==null?void 0:_.icon.toString()),_!=null&&_.assigned&&(h.assigned=_==null?void 0:_.assigned.toString()),_!=null&&_.ticket&&(h.ticket=_==null?void 0:_.ticket.toString()),_!=null&&_.priority&&(h.priority=_==null?void 0:_.priority)}const f=uQi(e);f?h.parentId=f.id||"kbn"+But++:abt.push(h),Xx.push(h)},"addNode"),Ep={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},fQi=X((e,t)=>{switch(it.debug("In get type",e,t),e){case"[":return Ep.RECT;case"(":return t===")"?Ep.ROUNDED_RECT:Ep.CLOUD;case"((":return Ep.CIRCLE;case")":return Ep.CLOUD;case"))":return Ep.BANG;case"{{":return Ep.HEXAGON;default:return Ep.DEFAULT}},"getType"),pQi=X((e,t)=>{sbt[e]=t},"setElementForId"),gQi=X(e=>{if(!e)return;const t=nn(),r=Xx[Xx.length-1];e.icon&&(r.icon=Ic(e.icon,t)),e.class&&(r.cssClasses=Ic(e.class,t))},"decorateNode"),mQi=X(e=>{switch(e){case Ep.DEFAULT:return"no-border";case Ep.RECT:return"rect";case Ep.ROUNDED_RECT:return"rounded-rect";case Ep.CIRCLE:return"circle";case Ep.CLOUD:return"cloud";case Ep.BANG:return"bang";case Ep.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),bQi=X(()=>it,"getLogger"),yQi=X(e=>sbt[e],"getElementById"),vQi={clear:cQi,addNode:dQi,getSections:LXn,getData:hQi,nodeType:Ep,getType:fQi,setElementForId:pQi,decorateNode:gQi,type2Str:mQi,getLogger:bQi,getElementById:yQi},_Qi=vQi,wQi=X(async(e,t,r,a)=>{var A,k,I,N,L;it.debug(`Rendering kanban diagram `+e);const o=a.db.getData(),u=nn();u.htmlLabels=!1;const h=bR(t),f=h.append("g");f.attr("class","sections");const p=h.append("g");p.attr("class","items");const m=o.nodes.filter(P=>P.isGroup);let b=0;const _=10,w=[];let S=25;for(const P of m){const M=((A=u==null?void 0:u.kanban)==null?void 0:A.sectionWidth)||200;b=b+1,P.x=M*b+(b-1)*_/2,P.width=M,P.y=0,P.height=M*3,P.rx=5,P.ry=5,P.cssClasses=P.cssClasses+" section-"+b;const F=await ept(f,P);S=Math.max(S,(k=F==null?void 0:F.labelBBox)==null?void 0:k.height),w.push(F)}let C=0;for(const P of m){const M=w[C];C=C+1;const F=((I=u==null?void 0:u.kanban)==null?void 0:I.sectionWidth)||200,U=-F*3/2+S;let $=U;const G=o.nodes.filter(z=>z.parentId===P.id);for(const z of G){if(z.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");z.x=P.x,z.width=F-1.5*_;const W=(await NAe(p,z,{config:u})).node().getBBox();z.y=$+W.height/2,await olt(z),$=z.y+W.height/2+_/2}const B=M.cluster.select("rect"),Z=Math.max($-U+3*_,50)+(S-25);B.attr("height",Z)}rce(void 0,h,((N=u.mindmap)==null?void 0:N.padding)??Cc.kanban.padding,((L=u.mindmap)==null?void 0:L.useMaxWidth)??Cc.kanban.useMaxWidth)},"draw"),EQi={draw:wQi},xQi=X(e=>{let t="";for(let a=0;ae.darkMode?qr(a,s):Nr(a,s),"adjuster");for(let a=0;a` .edge { stroke-width: 3; } ${xQi(e)} .section-root rect, .section-root path, .section-root circle, .section-root polygon { fill: ${e.git0}; } .section-root text { fill: ${e.gitBranchLabel0}; } .icon-container { height:100%; display: flex; justify-content: center; align-items: center; } .edge { fill: none; } .cluster-label, .label { color: ${e.textColor}; fill: ${e.textColor}; } .kanban-label { dy: 1em; alignment-baseline: middle; text-anchor: middle; dominant-baseline: middle; text-align: center; } ${Lce()} `,"getStyles"),TQi=SQi,CQi={db:_Qi,renderer:EQi,parser:lQi,styles:TQi};const AQi=Object.freeze(Object.defineProperty({__proto__:null,diagram:CQi},Symbol.toStringTag,{value:"Module"}));function ATn(e,t){let r;if(t===void 0)for(const a of e)a!=null&&(r=a)&&(r=a);else{let a=-1;for(let s of e)(s=t(s,++a,e))!=null&&(r=s)&&(r=s)}return r}function DXn(e,t){let r;if(t===void 0)for(const a of e)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let s of e)(s=t(s,++a,e))!=null&&(r>s||r===void 0&&s>=s)&&(r=s)}return r}function rat(e,t){let r=0;if(t===void 0)for(let a of e)(a=+a)&&(r+=a);else{let a=-1;for(let s of e)(s=+t(s,++a,e))&&(r+=s)}return r}function kQi(e){return e.target.depth}function MXn(e){return e.depth}function PXn(e,t){return t-1-e.height}function obt(e,t){return e.sourceLinks.length?e.depth:t-1}function BXn(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?DXn(e.sourceLinks,kQi)-1:0}function fEe(e){return function(){return e}}function kTn(e,t){return BTe(e.source,t.source)||e.index-t.index}function RTn(e,t){return BTe(e.target,t.target)||e.index-t.index}function BTe(e,t){return e.y0-t.y0}function iat(e){return e.value}function RQi(e){return e.index}function IQi(e){return e.nodes}function NQi(e){return e.links}function ITn(e,t){const r=e.get(t);if(!r)throw new Error("missing: "+t);return r}function NTn({nodes:e}){for(const t of e){let r=t.y0,a=r;for(const s of t.sourceLinks)s.y0=r+s.width/2,r+=s.width;for(const s of t.targetLinks)s.y1=a+s.width/2,a+=s.width}}function FXn(){let e=0,t=0,r=1,a=1,s=24,o=8,u,h=RQi,f=obt,p,m,b=IQi,_=NQi,w=6;function S(){const W={nodes:b.apply(null,arguments),links:_.apply(null,arguments)};return C(W),A(W),k(W),I(W),P(W),NTn(W),W}S.update=function(W){return NTn(W),W},S.nodeId=function(W){return arguments.length?(h=typeof W=="function"?W:fEe(W),S):h},S.nodeAlign=function(W){return arguments.length?(f=typeof W=="function"?W:fEe(W),S):f},S.nodeSort=function(W){return arguments.length?(p=W,S):p},S.nodeWidth=function(W){return arguments.length?(s=+W,S):s},S.nodePadding=function(W){return arguments.length?(o=u=+W,S):o},S.nodes=function(W){return arguments.length?(b=typeof W=="function"?W:fEe(W),S):b},S.links=function(W){return arguments.length?(_=typeof W=="function"?W:fEe(W),S):_},S.linkSort=function(W){return arguments.length?(m=W,S):m},S.size=function(W){return arguments.length?(e=t=0,r=+W[0],a=+W[1],S):[r-e,a-t]},S.extent=function(W){return arguments.length?(e=+W[0][0],r=+W[1][0],t=+W[0][1],a=+W[1][1],S):[[e,t],[r,a]]},S.iterations=function(W){return arguments.length?(w=+W,S):w};function C({nodes:W,links:Q}){for(const[j,ee]of W.entries())ee.index=j,ee.sourceLinks=[],ee.targetLinks=[];const V=new Map(W.map((j,ee)=>[h(j,ee,W),j]));for(const[j,ee]of Q.entries()){ee.index=j;let{source:te,target:ne}=ee;typeof te!="object"&&(te=ee.source=ITn(V,te)),typeof ne!="object"&&(ne=ee.target=ITn(V,ne)),te.sourceLinks.push(ee),ne.targetLinks.push(ee)}if(m!=null)for(const{sourceLinks:j,targetLinks:ee}of W)j.sort(m),ee.sort(m)}function A({nodes:W}){for(const Q of W)Q.value=Q.fixedValue===void 0?Math.max(rat(Q.sourceLinks,iat),rat(Q.targetLinks,iat)):Q.fixedValue}function k({nodes:W}){const Q=W.length;let V=new Set(W),j=new Set,ee=0;for(;V.size;){for(const te of V){te.depth=ee;for(const{target:ne}of te.sourceLinks)j.add(ne)}if(++ee>Q)throw new Error("circular link");V=j,j=new Set}}function I({nodes:W}){const Q=W.length;let V=new Set(W),j=new Set,ee=0;for(;V.size;){for(const te of V){te.height=ee;for(const{source:ne}of te.targetLinks)j.add(ne)}if(++ee>Q)throw new Error("circular link");V=j,j=new Set}}function N({nodes:W}){const Q=ATn(W,ee=>ee.depth)+1,V=(r-e-s)/(Q-1),j=new Array(Q);for(const ee of W){const te=Math.max(0,Math.min(Q-1,Math.floor(f.call(null,ee,Q))));ee.layer=te,ee.x0=e+te*V,ee.x1=ee.x0+s,j[te]?j[te].push(ee):j[te]=[ee]}if(p)for(const ee of j)ee.sort(p);return j}function L(W){const Q=DXn(W,V=>(a-t-(V.length-1)*u)/rat(V,iat));for(const V of W){let j=t;for(const ee of V){ee.y0=j,ee.y1=j+ee.value*Q,j=ee.y1+u;for(const te of ee.sourceLinks)te.width=te.value*Q}j=(a-j+u)/(V.length+1);for(let ee=0;eeV.length)-1)),L(Q);for(let V=0;V0))continue;let ge=(se/ie-ne.y0)*Q;ne.y0+=ge,ne.y1+=ge,B(ne)}p===void 0&&te.sort(BTe),U(te,V)}}function F(W,Q,V){for(let j=W.length,ee=j-2;ee>=0;--ee){const te=W[ee];for(const ne of te){let se=0,ie=0;for(const{target:ce,value:be}of ne.sourceLinks){let ve=be*(ce.layer-ne.layer);se+=Y(ne,ce)*ve,ie+=ve}if(!(ie>0))continue;let ge=(se/ie-ne.y0)*Q;ne.y0+=ge,ne.y1+=ge,B(ne)}p===void 0&&te.sort(BTe),U(te,V)}}function U(W,Q){const V=W.length>>1,j=W[V];G(W,j.y0-u,V-1,Q),$(W,j.y1+u,V+1,Q),G(W,a,W.length-1,Q),$(W,t,0,Q)}function $(W,Q,V,j){for(;V1e-6&&(ee.y0+=te,ee.y1+=te),Q=ee.y1+u}}function G(W,Q,V,j){for(;V>=0;--V){const ee=W[V],te=(ee.y1-Q)*j;te>1e-6&&(ee.y0-=te,ee.y1-=te),Q=ee.y0-u}}function B({sourceLinks:W,targetLinks:Q}){if(m===void 0){for(const{source:{sourceLinks:V}}of Q)V.sort(RTn);for(const{target:{targetLinks:V}}of W)V.sort(kTn)}}function Z(W){if(m===void 0)for(const{sourceLinks:Q,targetLinks:V}of W)Q.sort(RTn),V.sort(kTn)}function z(W,Q){let V=W.y0-(W.sourceLinks.length-1)*u/2;for(const{target:j,width:ee}of W.sourceLinks){if(j===Q)break;V+=ee+u}for(const{source:j,width:ee}of Q.targetLinks){if(j===W)break;V-=ee}return V}function Y(W,Q){let V=Q.y0-(Q.targetLinks.length-1)*u/2;for(const{source:j,width:ee}of Q.targetLinks){if(j===W)break;V+=ee+u}for(const{target:j,width:ee}of W.sourceLinks){if(j===Q)break;V-=ee}return V}return S}var Fut=Math.PI,$ut=2*Fut,LB=1e-6,OQi=$ut-LB;function Uut(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function $Xn(){return new Uut}Uut.prototype=$Xn.prototype={constructor:Uut,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,r,a){this._+="Q"+ +e+","+ +t+","+(this._x1=+r)+","+(this._y1=+a)},bezierCurveTo:function(e,t,r,a,s,o){this._+="C"+ +e+","+ +t+","+ +r+","+ +a+","+(this._x1=+s)+","+(this._y1=+o)},arcTo:function(e,t,r,a,s){e=+e,t=+t,r=+r,a=+a,s=+s;var o=this._x1,u=this._y1,h=r-e,f=a-t,p=o-e,m=u-t,b=p*p+m*m;if(s<0)throw new Error("negative radius: "+s);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(b>LB)if(!(Math.abs(m*h-f*p)>LB)||!s)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var _=r-o,w=a-u,S=h*h+f*f,C=_*_+w*w,A=Math.sqrt(S),k=Math.sqrt(b),I=s*Math.tan((Fut-Math.acos((S+b-C)/(2*A*k)))/2),N=I/k,L=I/A;Math.abs(N-1)>LB&&(this._+="L"+(e+N*p)+","+(t+N*m)),this._+="A"+s+","+s+",0,0,"+ +(m*_>p*w)+","+(this._x1=e+L*h)+","+(this._y1=t+L*f)}},arc:function(e,t,r,a,s,o){e=+e,t=+t,r=+r,o=!!o;var u=r*Math.cos(a),h=r*Math.sin(a),f=e+u,p=t+h,m=1^o,b=o?a-s:s-a;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+f+","+p:(Math.abs(this._x1-f)>LB||Math.abs(this._y1-p)>LB)&&(this._+="L"+f+","+p),r&&(b<0&&(b=b%$ut+$ut),b>OQi?this._+="A"+r+","+r+",0,1,"+m+","+(e-u)+","+(t-h)+"A"+r+","+r+",0,1,"+m+","+(this._x1=f)+","+(this._y1=p):b>LB&&(this._+="A"+r+","+r+",0,"+ +(b>=Fut)+","+m+","+(this._x1=e+r*Math.cos(s))+","+(this._y1=t+r*Math.sin(s))))},rect:function(e,t,r,a){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +a+"h"+-r+"Z"},toString:function(){return this._}};function OTn(e){return function(){return e}}function LQi(e){return e[0]}function DQi(e){return e[1]}var MQi=Array.prototype.slice;function PQi(e){return e.source}function BQi(e){return e.target}function FQi(e){var t=PQi,r=BQi,a=LQi,s=DQi,o=null;function u(){var h,f=MQi.call(arguments),p=t.apply(this,f),m=r.apply(this,f);if(o||(o=h=$Xn()),e(o,+a.apply(this,(f[0]=p,f)),+s.apply(this,f),+a.apply(this,(f[0]=m,f)),+s.apply(this,f)),h)return o=null,h+""||null}return u.source=function(h){return arguments.length?(t=h,u):t},u.target=function(h){return arguments.length?(r=h,u):r},u.x=function(h){return arguments.length?(a=typeof h=="function"?h:OTn(+h),u):a},u.y=function(h){return arguments.length?(s=typeof h=="function"?h:OTn(+h),u):s},u.context=function(h){return arguments.length?(o=h??null,u):o},u}function $Qi(e,t,r,a,s){e.moveTo(t,r),e.bezierCurveTo(t=(t+a)/2,r,t,s,a,s)}function UQi(){return FQi($Qi)}function zQi(e){return[e.source.x1,e.y0]}function GQi(e){return[e.target.x0,e.y1]}function UXn(){return UQi().source(zQi).target(GQi)}var zut=function(){var e=X(function(h,f,p,m){for(p=p||{},m=h.length;m--;p[h[m]]=f);return p},"o"),t=[1,9],r=[1,10],a=[1,5,10,12],s={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:X(function(f,p,m,b,_,w,S){var C=w.length-1;switch(_){case 7:const A=b.findOrCreateNode(w[C-4].trim().replaceAll('""','"')),k=b.findOrCreateNode(w[C-2].trim().replaceAll('""','"')),I=parseFloat(w[C].trim());b.addLink(A,k,I);break;case 8:case 9:case 11:this.$=w[C];break;case 10:this.$=w[C-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:t,20:r},{1:[2,6],7:11,10:[1,12]},e(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(a,[2,8]),e(a,[2,9]),{19:[1,16]},e(a,[2,11]),{1:[2,1]},{1:[2,5]},e(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:t,20:r},{15:18,16:7,17:8,18:t,20:r},{18:[1,19]},e(r,[2,3]),{12:[1,20]},e(a,[2,10]),{15:21,16:7,17:8,18:t,20:r},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:X(function(f,p){if(p.recoverable)this.trace(f);else{var m=new Error(f);throw m.hash=p,m}},"parseError"),parse:X(function(f){var p=this,m=[0],b=[],_=[null],w=[],S=this.table,C="",A=0,k=0,I=2,N=1,L=w.slice.call(arguments,1),P=Object.create(this.lexer),M={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(M.yy[F]=this.yy[F]);P.setInput(f,M.yy),M.yy.lexer=P,M.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var U=P.yylloc;w.push(U);var $=P.options&&P.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function G(se){m.length=m.length-2*se,_.length=_.length-se,w.length=w.length-se}X(G,"popStack");function B(){var se;return se=b.pop()||P.lex()||N,typeof se!="number"&&(se instanceof Array&&(b=se,se=b.pop()),se=p.symbols_[se]||se),se}X(B,"lex");for(var Z,z,Y,W,Q={},V,j,ee,te;;){if(z=m[m.length-1],this.defaultActions[z]?Y=this.defaultActions[z]:((Z===null||typeof Z>"u")&&(Z=B()),Y=S[z]&&S[z][Z]),typeof Y>"u"||!Y.length||!Y[0]){var ne="";te=[];for(V in S[z])this.terminals_[V]&&V>I&&te.push("'"+this.terminals_[V]+"'");P.showPosition?ne="Parse error on line "+(A+1)+`: `+P.showPosition()+` Expecting `+te.join(", ")+", got '"+(this.terminals_[Z]||Z)+"'":ne="Parse error on line "+(A+1)+": Unexpected "+(Z==N?"end of input":"'"+(this.terminals_[Z]||Z)+"'"),this.parseError(ne,{text:P.match,token:this.terminals_[Z]||Z,line:P.yylineno,loc:U,expected:te})}if(Y[0]instanceof Array&&Y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+Z);switch(Y[0]){case 1:m.push(Z),_.push(P.yytext),w.push(P.yylloc),m.push(Y[1]),Z=null,k=P.yyleng,C=P.yytext,A=P.yylineno,U=P.yylloc;break;case 2:if(j=this.productions_[Y[1]][1],Q.$=_[_.length-j],Q._$={first_line:w[w.length-(j||1)].first_line,last_line:w[w.length-1].last_line,first_column:w[w.length-(j||1)].first_column,last_column:w[w.length-1].last_column},$&&(Q._$.range=[w[w.length-(j||1)].range[0],w[w.length-1].range[1]]),W=this.performAction.apply(Q,[C,k,A,M.yy,Y[1],_,w].concat(L)),typeof W<"u")return W;j&&(m=m.slice(0,-1*j*2),_=_.slice(0,-1*j),w=w.slice(0,-1*j)),m.push(this.productions_[Y[1]][0]),_.push(Q.$),w.push(Q._$),ee=S[m[m.length-2]][m[m.length-1]],m.push(ee);break;case 3:return!0}}return!0},"parse")},o=function(){var h={EOF:1,parseError:X(function(p,m){if(this.yy.parser)this.yy.parser.parseError(p,m);else throw new Error(p)},"parseError"),setInput:X(function(f,p){return this.yy=p||this.yy||{},this._input=f,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:X(function(){var f=this._input[0];this.yytext+=f,this.yyleng++,this.offset++,this.match+=f,this.matched+=f;var p=f.match(/(?:\r\n?|\n).*/g);return p?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),f},"input"),unput:X(function(f){var p=f.length,m=f.split(/(?:\r\n?|\n)/g);this._input=f+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-p),this.offset-=p;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===b.length?this.yylloc.first_column:0)+b[b.length-m.length].length-m[0].length:this.yylloc.first_column-p},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-p]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(f){this.unput(this.match.slice(f))},"less"),pastInput:X(function(){var f=this.matched.substr(0,this.matched.length-this.match.length);return(f.length>20?"...":"")+f.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var f=this.match;return f.length<20&&(f+=this._input.substr(0,20-f.length)),(f.substr(0,20)+(f.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var f=this.pastInput(),p=new Array(f.length+1).join("-");return f+this.upcomingInput()+` `+p+"^"},"showPosition"),test_match:X(function(f,p){var m,b,_;if(this.options.backtrack_lexer&&(_={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(_.yylloc.range=this.yylloc.range.slice(0))),b=f[0].match(/(?:\r\n?|\n).*/g),b&&(this.yylineno+=b.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+f[0].length},this.yytext+=f[0],this.match+=f[0],this.matches=f,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(f[0].length),this.matched+=f[0],m=this.performAction.call(this,this.yy,this,p,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var w in _)this[w]=_[w];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var f,p,m,b;this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),w=0;w<_.length;w++)if(m=this._input.match(this.rules[_[w]]),m&&(!p||m[0].length>p[0].length)){if(p=m,b=w,this.options.backtrack_lexer){if(f=this.test_match(m,_[w]),f!==!1)return f;if(this._backtrack){p=!1;continue}else return!1}else if(!this.options.flex)break}return p?(f=this.test_match(p,_[b]),f!==!1?f:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var p=this.next();return p||this.lex()},"lex"),begin:X(function(p){this.conditionStack.push(p)},"begin"),popState:X(function(){var p=this.conditionStack.length-1;return p>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(p){return p=this.conditionStack.length-1-Math.abs(p||0),p>=0?this.conditionStack[p]:"INITIAL"},"topState"),pushState:X(function(p){this.begin(p)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:X(function(p,m,b,_){switch(b){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return h}();s.lexer=o;function u(){this.yy={}}return X(u,"Parser"),u.prototype=s,s.Parser=u,new u}();zut.parser=zut;var FTe=zut,n6e=[],r6e=[],$Te=new Map,qQi=X(()=>{n6e=[],r6e=[],$Te=new Map,M1()},"clear"),oj,HQi=(oj=class{constructor(t,r,a=0){this.source=t,this.target=r,this.value=a}},X(oj,"SankeyLink"),oj),VQi=X((e,t,r)=>{n6e.push(new HQi(e,t,r))},"addLink"),lj,YQi=(lj=class{constructor(t){this.ID=t}},X(lj,"SankeyNode"),lj),jQi=X(e=>{e=Ti.sanitizeText(e,nn());let t=$Te.get(e);return t===void 0&&(t=new YQi(e),$Te.set(e,t),r6e.push(t)),t},"findOrCreateNode"),WQi=X(()=>r6e,"getNodes"),KQi=X(()=>n6e,"getLinks"),XQi=X(()=>({nodes:r6e.map(e=>({id:e.ID})),links:n6e.map(e=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),"getGraph"),QQi={nodesMap:$Te,getConfig:X(()=>nn().sankey,"getConfig"),getNodes:WQi,getLinks:KQi,getGraph:XQi,addLink:VQi,findOrCreateNode:jQi,getAccTitle:Mp,setAccTitle:N1,getAccDescription:Bp,setAccDescription:Pp,getDiagramTitle:P1,setDiagramTitle:Og,clear:qQi},M7,LTn=(M7=class{static next(t){return new M7(t+ ++M7.count)}constructor(t){this.id=t,this.href=`#${t}`}toString(){return"url("+this.href+")"}},X(M7,"Uid"),M7.count=0,M7),ZQi={left:MXn,right:PXn,center:BXn,justify:obt},JQi=X(function(e,t,r,a){const{securityLevel:s,sankey:o}=nn(),u=SLn.sankey;let h;s==="sandbox"&&(h=gn("#i"+t));const f=gn(s==="sandbox"?h.nodes()[0].contentDocument.body:"body"),p=s==="sandbox"?f.select(`[id="${t}"]`):gn(`[id="${t}"]`),m=(o==null?void 0:o.width)??u.width,b=(o==null?void 0:o.height)??u.width,_=(o==null?void 0:o.useMaxWidth)??u.useMaxWidth,w=(o==null?void 0:o.nodeAlignment)??u.nodeAlignment,S=(o==null?void 0:o.prefix)??u.prefix,C=(o==null?void 0:o.suffix)??u.suffix,A=(o==null?void 0:o.showValues)??u.showValues,k=a.db.getGraph(),I=ZQi[w];FXn().nodeId(G=>G.id).nodeWidth(10).nodePadding(10+(A?15:0)).nodeAlign(I).extent([[0,0],[m,b]])(k);const P=cA(o1t);p.append("g").attr("class","nodes").selectAll(".node").data(k.nodes).join("g").attr("class","node").attr("id",G=>(G.uid=LTn.next("node-")).id).attr("transform",function(G){return"translate("+G.x0+","+G.y0+")"}).attr("x",G=>G.x0).attr("y",G=>G.y0).append("rect").attr("height",G=>G.y1-G.y0).attr("width",G=>G.x1-G.x0).attr("fill",G=>P(G.id));const M=X(({id:G,value:B})=>A?`${G} ${S}${Math.round(B*100)/100}${C}`:G,"getText");p.append("g").attr("class","node-labels").attr("font-size",14).selectAll("text").data(k.nodes).join("text").attr("x",G=>G.x0(G.y1+G.y0)/2).attr("dy",`${A?"0":"0.35"}em`).attr("text-anchor",G=>G.x0(B.uid=LTn.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",B=>B.source.x1).attr("x2",B=>B.target.x0);G.append("stop").attr("offset","0%").attr("stop-color",B=>P(B.source.id)),G.append("stop").attr("offset","100%").attr("stop-color",B=>P(B.target.id))}let $;switch(U){case"gradient":$=X(G=>G.uid,"coloring");break;case"source":$=X(G=>P(G.source.id),"coloring");break;case"target":$=X(G=>P(G.target.id),"coloring");break;default:$=U}F.append("path").attr("d",UXn()).attr("stroke",$).attr("stroke-width",G=>Math.max(1,G.width)),rce(void 0,p,0,_)},"draw"),eZi={draw:JQi},tZi=X(e=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,` `).trim(),"prepareTextForParsing"),nZi=X(e=>`.label { font-family: ${e.fontFamily}; }`,"getStyles"),rZi=nZi,iZi=FTe.parse.bind(FTe);FTe.parse=e=>iZi(tZi(e));var aZi={styles:rZi,parser:FTe,db:QQi,renderer:eZi};const sZi=Object.freeze(Object.defineProperty({__proto__:null,diagram:aZi},Symbol.toStringTag,{value:"Module"}));var oZi=Cc.packet,cj,zXn=(cj=class{constructor(){this.packet=[],this.setAccTitle=N1,this.getAccTitle=Mp,this.setDiagramTitle=Og,this.getDiagramTitle=P1,this.getAccDescription=Bp,this.setAccDescription=Pp}getConfig(){const t=cv({...oZi,...$c().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){M1(),this.packet=[]}},X(cj,"PacketDB"),cj),lZi=1e4,cZi=X((e,t)=>{z$(e,t);let r=-1,a=[],s=1;const{bitsPerRow:o}=t.getConfig();for(let{start:u,end:h,bits:f,label:p}of e.blocks){if(u!==void 0&&h!==void 0&&h{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const a=t*r-1,s=t*r;return[{start:e.start,end:a,label:e.label,bits:a-e.start},{start:s,end:e.end,label:e.label,bits:e.end-s}]},"getNextFittingBlock"),GXn={parser:{yy:void 0},parse:X(async e=>{var a;const t=await iL("packet",e),r=(a=GXn.parser)==null?void 0:a.yy;if(!(r instanceof zXn))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");it.debug(t),cZi(t,r)},"parse")},hZi=X((e,t,r,a)=>{const s=a.db,o=s.getConfig(),{rowHeight:u,paddingY:h,bitWidth:f,bitsPerRow:p}=o,m=s.getPacket(),b=s.getDiagramTitle(),_=u+h,w=_*(m.length+1)-(b?0:u),S=f*p+2,C=bR(t);C.attr("viewbox",`0 0 ${S} ${w}`),yv(C,w,S,o.useMaxWidth);for(const[A,k]of m.entries())dZi(C,k,A,o);C.append("text").text(b).attr("x",S/2).attr("y",w-_/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),dZi=X((e,t,r,{rowHeight:a,paddingX:s,paddingY:o,bitWidth:u,bitsPerRow:h,showBits:f})=>{const p=e.append("g"),m=r*(a+o)+o;for(const b of t){const _=b.start%h*u+1,w=(b.end-b.start+1)*u-s;if(p.append("rect").attr("x",_).attr("y",m).attr("width",w).attr("height",a).attr("class","packetBlock"),p.append("text").attr("x",_+w/2).attr("y",m+a/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(b.label),!f)continue;const S=b.end===b.start,C=m-2;p.append("text").attr("x",_+(S?w/2:0)).attr("y",C).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",S?"middle":"start").text(b.start),S||p.append("text").attr("x",_+w).attr("y",C).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(b.end)}},"drawWord"),fZi={draw:hZi},pZi={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},gZi=X(({packet:e}={})=>{const t=cv(pZi,e);return` .packetByte { font-size: ${t.byteFontSize}; } .packetByte.start { fill: ${t.startByteColor}; } .packetByte.end { fill: ${t.endByteColor}; } .packetLabel { fill: ${t.labelColor}; font-size: ${t.labelFontSize}; } .packetTitle { fill: ${t.titleColor}; font-size: ${t.titleFontSize}; } .packetBlock { stroke: ${t.blockStrokeColor}; stroke-width: ${t.blockStrokeWidth}; fill: ${t.blockFillColor}; } `},"styles"),mZi={parser:GXn,get db(){return new zXn},renderer:fZi,styles:gZi};const bZi=Object.freeze(Object.defineProperty({__proto__:null,diagram:mZi},Symbol.toStringTag,{value:"Module"}));var vV={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},qXn={axes:[],curves:[],options:vV},Q$=structuredClone(qXn),yZi=Cc.radar,vZi=X(()=>cv({...yZi,...$c().radar}),"getConfig"),HXn=X(()=>Q$.axes,"getAxes"),_Zi=X(()=>Q$.curves,"getCurves"),wZi=X(()=>Q$.options,"getOptions"),EZi=X(e=>{Q$.axes=e.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),xZi=X(e=>{Q$.curves=e.map(t=>({name:t.name,label:t.label??t.name,entries:SZi(t.entries)}))},"setCurves"),SZi=X(e=>{if(e[0].axis==null)return e.map(r=>r.value);const t=HXn();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(r=>{const a=e.find(s=>{var o;return((o=s.axis)==null?void 0:o.$refText)===r.name});if(a===void 0)throw new Error("Missing entry for axis "+r.label);return a.value})},"computeCurveEntries"),TZi=X(e=>{var r,a,s,o,u;const t=e.reduce((h,f)=>(h[f.name]=f,h),{});Q$.options={showLegend:((r=t.showLegend)==null?void 0:r.value)??vV.showLegend,ticks:((a=t.ticks)==null?void 0:a.value)??vV.ticks,max:((s=t.max)==null?void 0:s.value)??vV.max,min:((o=t.min)==null?void 0:o.value)??vV.min,graticule:((u=t.graticule)==null?void 0:u.value)??vV.graticule}},"setOptions"),CZi=X(()=>{M1(),Q$=structuredClone(qXn)},"clear"),Mae={getAxes:HXn,getCurves:_Zi,getOptions:wZi,setAxes:EZi,setCurves:xZi,setOptions:TZi,getConfig:vZi,clear:CZi,setAccTitle:N1,getAccTitle:Mp,setDiagramTitle:Og,getDiagramTitle:P1,getAccDescription:Bp,setAccDescription:Pp},AZi=X(e=>{z$(e,Mae);const{axes:t,curves:r,options:a}=e;Mae.setAxes(t),Mae.setCurves(r),Mae.setOptions(a)},"populate"),kZi={parse:X(async e=>{const t=await iL("radar",e);it.debug(t),AZi(t)},"parse")},RZi=X((e,t,r,a)=>{const s=a.db,o=s.getAxes(),u=s.getCurves(),h=s.getOptions(),f=s.getConfig(),p=s.getDiagramTitle(),m=bR(t),b=IZi(m,f),_=h.max??Math.max(...u.map(C=>Math.max(...C.entries))),w=h.min,S=Math.min(f.width,f.height)/2;NZi(b,o,S,h.ticks,h.graticule),OZi(b,o,S,f),VXn(b,o,u,w,_,h.graticule,f),WXn(b,u,h.showLegend,f),b.append("text").attr("class","radarTitle").text(p).attr("x",0).attr("y",-f.height/2-f.marginTop)},"draw"),IZi=X((e,t)=>{const r=t.width+t.marginLeft+t.marginRight,a=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return e.attr("viewbox",`0 0 ${r} ${a}`).attr("width",r).attr("height",a),e.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),NZi=X((e,t,r,a,s)=>{if(s==="circle")for(let o=0;o{const b=2*m*Math.PI/o-Math.PI/2,_=h*Math.cos(b),w=h*Math.sin(b);return`${_},${w}`}).join(" ");e.append("polygon").attr("points",f).attr("class","radarGraticule")}}},"drawGraticule"),OZi=X((e,t,r,a)=>{const s=t.length;for(let o=0;o{if(p.entries.length!==h)return;const b=p.entries.map((_,w)=>{const S=2*Math.PI*w/h-Math.PI/2,C=YXn(_,a,s,f),A=C*Math.cos(S),k=C*Math.sin(S);return{x:A,y:k}});o==="circle"?e.append("path").attr("d",jXn(b,u.curveTension)).attr("class",`radarCurve-${m}`):o==="polygon"&&e.append("polygon").attr("points",b.map(_=>`${_.x},${_.y}`).join(" ")).attr("class",`radarCurve-${m}`)})}X(VXn,"drawCurves");function YXn(e,t,r,a){const s=Math.min(Math.max(e,t),r);return a*(s-t)/(r-t)}X(YXn,"relativeRadius");function jXn(e,t){const r=e.length;let a=`M${e[0].x},${e[0].y}`;for(let s=0;s{const p=e.append("g").attr("transform",`translate(${s}, ${o+f*u})`);p.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${f}`),p.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(h.label)})}X(WXn,"drawLegend");var LZi={draw:RZi},DZi=X((e,t)=>{let r="";for(let a=0;a{const t=JCe(),r=$c(),a=cv(t,r.themeVariables),s=cv(a.radar,e);return{themeVariables:a,radarOptions:s}},"buildRadarStyleOptions"),PZi=X(({radar:e}={})=>{const{themeVariables:t,radarOptions:r}=MZi(e);return` .radarTitle { font-size: ${t.fontSize}; color: ${t.titleColor}; dominant-baseline: hanging; text-anchor: middle; } .radarAxisLine { stroke: ${r.axisColor}; stroke-width: ${r.axisStrokeWidth}; } .radarAxisLabel { dominant-baseline: middle; text-anchor: middle; font-size: ${r.axisLabelFontSize}px; color: ${r.axisColor}; } .radarGraticule { fill: ${r.graticuleColor}; fill-opacity: ${r.graticuleOpacity}; stroke: ${r.graticuleColor}; stroke-width: ${r.graticuleStrokeWidth}; } .radarLegendText { text-anchor: start; font-size: ${r.legendFontSize}px; dominant-baseline: hanging; } ${DZi(t,r)} `},"styles"),BZi={parser:kZi,db:Mae,renderer:LZi,styles:PZi};const FZi=Object.freeze(Object.defineProperty({__proto__:null,diagram:BZi},Symbol.toStringTag,{value:"Module"}));var Gut=function(){var e=X(function(N,L,P,M){for(P=P||{},M=N.length;M--;P[N[M]]=L);return P},"o"),t=[1,15],r=[1,7],a=[1,13],s=[1,14],o=[1,19],u=[1,16],h=[1,17],f=[1,18],p=[8,30],m=[8,10,21,28,29,30,31,39,43,46],b=[1,23],_=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],S=[8,10,15,16,21,27,28,29,30,31,39,43,46],C=[1,49],A={trace:X(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:X(function(L,P,M,F,U,$,G){var B=$.length-1;switch(U){case 4:F.getLogger().debug("Rule: separator (NL) ");break;case 5:F.getLogger().debug("Rule: separator (Space) ");break;case 6:F.getLogger().debug("Rule: separator (EOF) ");break;case 7:F.getLogger().debug("Rule: hierarchy: ",$[B-1]),F.setHierarchy($[B-1]);break;case 8:F.getLogger().debug("Stop NL ");break;case 9:F.getLogger().debug("Stop EOF ");break;case 10:F.getLogger().debug("Stop NL2 ");break;case 11:F.getLogger().debug("Stop EOF2 ");break;case 12:F.getLogger().debug("Rule: statement: ",$[B]),typeof $[B].length=="number"?this.$=$[B]:this.$=[$[B]];break;case 13:F.getLogger().debug("Rule: statement #2: ",$[B-1]),this.$=[$[B-1]].concat($[B]);break;case 14:F.getLogger().debug("Rule: link: ",$[B],L),this.$={edgeTypeStr:$[B],label:""};break;case 15:F.getLogger().debug("Rule: LABEL link: ",$[B-3],$[B-1],$[B]),this.$={edgeTypeStr:$[B],label:$[B-1]};break;case 18:const Z=parseInt($[B]),z=F.generateId();this.$={id:z,type:"space",label:"",width:Z,children:[]};break;case 23:F.getLogger().debug("Rule: (nodeStatement link node) ",$[B-2],$[B-1],$[B]," typestr: ",$[B-1].edgeTypeStr);const Y=F.edgeStrToEdgeData($[B-1].edgeTypeStr);this.$=[{id:$[B-2].id,label:$[B-2].label,type:$[B-2].type,directions:$[B-2].directions},{id:$[B-2].id+"-"+$[B].id,start:$[B-2].id,end:$[B].id,label:$[B-1].label,type:"edge",directions:$[B].directions,arrowTypeEnd:Y,arrowTypeStart:"arrow_open"},{id:$[B].id,label:$[B].label,type:F.typeStr2Type($[B].typeStr),directions:$[B].directions}];break;case 24:F.getLogger().debug("Rule: nodeStatement (abc88 node size) ",$[B-1],$[B]),this.$={id:$[B-1].id,label:$[B-1].label,type:F.typeStr2Type($[B-1].typeStr),directions:$[B-1].directions,widthInColumns:parseInt($[B],10)};break;case 25:F.getLogger().debug("Rule: nodeStatement (node) ",$[B]),this.$={id:$[B].id,label:$[B].label,type:F.typeStr2Type($[B].typeStr),directions:$[B].directions,widthInColumns:1};break;case 26:F.getLogger().debug("APA123",this?this:"na"),F.getLogger().debug("COLUMNS: ",$[B]),this.$={type:"column-setting",columns:$[B]==="auto"?-1:parseInt($[B])};break;case 27:F.getLogger().debug("Rule: id-block statement : ",$[B-2],$[B-1]),F.generateId(),this.$={...$[B-2],type:"composite",children:$[B-1]};break;case 28:F.getLogger().debug("Rule: blockStatement : ",$[B-2],$[B-1],$[B]);const W=F.generateId();this.$={id:W,type:"composite",label:"",children:$[B-1]};break;case 29:F.getLogger().debug("Rule: node (NODE_ID separator): ",$[B]),this.$={id:$[B]};break;case 30:F.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",$[B-1],$[B]),this.$={id:$[B-1],label:$[B].label,typeStr:$[B].typeStr,directions:$[B].directions};break;case 31:F.getLogger().debug("Rule: dirList: ",$[B]),this.$=[$[B]];break;case 32:F.getLogger().debug("Rule: dirList: ",$[B-1],$[B]),this.$=[$[B-1]].concat($[B]);break;case 33:F.getLogger().debug("Rule: nodeShapeNLabel: ",$[B-2],$[B-1],$[B]),this.$={typeStr:$[B-2]+$[B],label:$[B-1]};break;case 34:F.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",$[B-3],$[B-2]," #3:",$[B-1],$[B]),this.$={typeStr:$[B-3]+$[B],label:$[B-2],directions:$[B-1]};break;case 35:case 36:this.$={type:"classDef",id:$[B-1].trim(),css:$[B].trim()};break;case 37:this.$={type:"applyClass",id:$[B-1].trim(),styleClass:$[B].trim()};break;case 38:this.$={type:"applyStyles",id:$[B-1].trim(),stylesStr:$[B].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:a,29:s,31:o,39:u,43:h,46:f},{8:[1,20]},e(p,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:r,28:a,29:s,31:o,39:u,43:h,46:f}),e(m,[2,16],{14:22,15:b,16:_}),e(m,[2,17]),e(m,[2,18]),e(m,[2,19]),e(m,[2,20]),e(m,[2,21]),e(m,[2,22]),e(w,[2,25],{27:[1,25]}),e(m,[2,26]),{19:26,26:12,31:o},{10:t,11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:a,29:s,31:o,39:u,43:h,46:f},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(S,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(p,[2,13]),{26:35,31:o},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:t,11:37,13:4,14:22,15:b,16:_,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:a,29:s,31:o,39:u,43:h,46:f},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(m,[2,28]),e(m,[2,35]),e(m,[2,36]),e(m,[2,37]),e(m,[2,38]),{36:[1,47]},{33:48,34:C},{15:[1,50]},e(m,[2,27]),e(S,[2,33]),{38:[1,51]},{33:52,34:C,38:[2,31]},{31:[2,15]},e(S,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:X(function(L,P){if(P.recoverable)this.trace(L);else{var M=new Error(L);throw M.hash=P,M}},"parseError"),parse:X(function(L){var P=this,M=[0],F=[],U=[null],$=[],G=this.table,B="",Z=0,z=0,Y=2,W=1,Q=$.slice.call(arguments,1),V=Object.create(this.lexer),j={yy:{}};for(var ee in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ee)&&(j.yy[ee]=this.yy[ee]);V.setInput(L,j.yy),j.yy.lexer=V,j.yy.parser=this,typeof V.yylloc>"u"&&(V.yylloc={});var te=V.yylloc;$.push(te);var ne=V.options&&V.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function se(Ie){M.length=M.length-2*Ie,U.length=U.length-Ie,$.length=$.length-Ie}X(se,"popStack");function ie(){var Ie;return Ie=F.pop()||V.lex()||W,typeof Ie!="number"&&(Ie instanceof Array&&(F=Ie,Ie=F.pop()),Ie=P.symbols_[Ie]||Ie),Ie}X(ie,"lex");for(var ge,ce,be,ve,De={},ye,Ee,he,we;;){if(ce=M[M.length-1],this.defaultActions[ce]?be=this.defaultActions[ce]:((ge===null||typeof ge>"u")&&(ge=ie()),be=G[ce]&&G[ce][ge]),typeof be>"u"||!be.length||!be[0]){var Ce="";we=[];for(ye in G[ce])this.terminals_[ye]&&ye>Y&&we.push("'"+this.terminals_[ye]+"'");V.showPosition?Ce="Parse error on line "+(Z+1)+`: `+V.showPosition()+` Expecting `+we.join(", ")+", got '"+(this.terminals_[ge]||ge)+"'":Ce="Parse error on line "+(Z+1)+": Unexpected "+(ge==W?"end of input":"'"+(this.terminals_[ge]||ge)+"'"),this.parseError(Ce,{text:V.match,token:this.terminals_[ge]||ge,line:V.yylineno,loc:te,expected:we})}if(be[0]instanceof Array&&be.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ce+", token: "+ge);switch(be[0]){case 1:M.push(ge),U.push(V.yytext),$.push(V.yylloc),M.push(be[1]),ge=null,z=V.yyleng,B=V.yytext,Z=V.yylineno,te=V.yylloc;break;case 2:if(Ee=this.productions_[be[1]][1],De.$=U[U.length-Ee],De._$={first_line:$[$.length-(Ee||1)].first_line,last_line:$[$.length-1].last_line,first_column:$[$.length-(Ee||1)].first_column,last_column:$[$.length-1].last_column},ne&&(De._$.range=[$[$.length-(Ee||1)].range[0],$[$.length-1].range[1]]),ve=this.performAction.apply(De,[B,z,Z,j.yy,be[1],U,$].concat(Q)),typeof ve<"u")return ve;Ee&&(M=M.slice(0,-1*Ee*2),U=U.slice(0,-1*Ee),$=$.slice(0,-1*Ee)),M.push(this.productions_[be[1]][0]),U.push(De.$),$.push(De._$),he=G[M[M.length-2]][M[M.length-1]],M.push(he);break;case 3:return!0}}return!0},"parse")},k=function(){var N={EOF:1,parseError:X(function(P,M){if(this.yy.parser)this.yy.parser.parseError(P,M);else throw new Error(P)},"parseError"),setInput:X(function(L,P){return this.yy=P||this.yy||{},this._input=L,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:X(function(){var L=this._input[0];this.yytext+=L,this.yyleng++,this.offset++,this.match+=L,this.matched+=L;var P=L.match(/(?:\r\n?|\n).*/g);return P?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),L},"input"),unput:X(function(L){var P=L.length,M=L.split(/(?:\r\n?|\n)/g);this._input=L+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-P),this.offset-=P;var F=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),M.length-1&&(this.yylineno-=M.length-1);var U=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:M?(M.length===F.length?this.yylloc.first_column:0)+F[F.length-M.length].length-M[0].length:this.yylloc.first_column-P},this.options.ranges&&(this.yylloc.range=[U[0],U[0]+this.yyleng-P]),this.yyleng=this.yytext.length,this},"unput"),more:X(function(){return this._more=!0,this},"more"),reject:X(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:X(function(L){this.unput(this.match.slice(L))},"less"),pastInput:X(function(){var L=this.matched.substr(0,this.matched.length-this.match.length);return(L.length>20?"...":"")+L.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:X(function(){var L=this.match;return L.length<20&&(L+=this._input.substr(0,20-L.length)),(L.substr(0,20)+(L.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:X(function(){var L=this.pastInput(),P=new Array(L.length+1).join("-");return L+this.upcomingInput()+` `+P+"^"},"showPosition"),test_match:X(function(L,P){var M,F,U;if(this.options.backtrack_lexer&&(U={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(U.yylloc.range=this.yylloc.range.slice(0))),F=L[0].match(/(?:\r\n?|\n).*/g),F&&(this.yylineno+=F.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:F?F[F.length-1].length-F[F.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+L[0].length},this.yytext+=L[0],this.match+=L[0],this.matches=L,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(L[0].length),this.matched+=L[0],M=this.performAction.call(this,this.yy,this,P,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),M)return M;if(this._backtrack){for(var $ in U)this[$]=U[$];return!1}return!1},"test_match"),next:X(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var L,P,M,F;this._more||(this.yytext="",this.match="");for(var U=this._currentRules(),$=0;$P[0].length)){if(P=M,F=$,this.options.backtrack_lexer){if(L=this.test_match(M,U[$]),L!==!1)return L;if(this._backtrack){P=!1;continue}else return!1}else if(!this.options.flex)break}return P?(L=this.test_match(P,U[F]),L!==!1?L:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:X(function(){var P=this.next();return P||this.lex()},"lex"),begin:X(function(P){this.conditionStack.push(P)},"begin"),popState:X(function(){var P=this.conditionStack.length-1;return P>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:X(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:X(function(P){return P=this.conditionStack.length-1-Math.abs(P||0),P>=0?this.conditionStack[P]:"INITIAL"},"topState"),pushState:X(function(P){this.begin(P)},"pushState"),stateStackSize:X(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:X(function(P,M,F,U){switch(F){case 0:return P.getLogger().debug("Found block-beta"),10;case 1:return P.getLogger().debug("Found id-block"),29;case 2:return P.getLogger().debug("Found block"),10;case 3:P.getLogger().debug(".",M.yytext);break;case 4:P.getLogger().debug("_",M.yytext);break;case 5:return 5;case 6:return M.yytext=-1,28;case 7:return M.yytext=M.yytext.replace(/columns\s+/,""),P.getLogger().debug("COLUMNS (LEX)",M.yytext),28;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:P.getLogger().debug("LEX: POPPING STR:",M.yytext),this.popState();break;case 13:return P.getLogger().debug("LEX: STR end:",M.yytext),"STR";case 14:return M.yytext=M.yytext.replace(/space\:/,""),P.getLogger().debug("SPACE NUM (LEX)",M.yytext),21;case 15:return M.yytext="1",P.getLogger().debug("COLUMNS (LEX)",M.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:return this.popState(),P.getLogger().debug("Lex: (("),"NODE_DEND";case 38:return this.popState(),P.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),P.getLogger().debug("Lex: ))"),"NODE_DEND";case 40:return this.popState(),P.getLogger().debug("Lex: (("),"NODE_DEND";case 41:return this.popState(),P.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),P.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),P.getLogger().debug("Lex: -)"),"NODE_DEND";case 44:return this.popState(),P.getLogger().debug("Lex: (("),"NODE_DEND";case 45:return this.popState(),P.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),P.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),P.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:return this.popState(),P.getLogger().debug("Lex: /]"),"NODE_DEND";case 49:return this.popState(),P.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),P.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),P.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),P.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),P.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return P.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return P.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return P.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:return P.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return P.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 59:return P.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 60:return P.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 61:return P.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 62:return P.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return P.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 64:return P.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 65:return this.pushState("NODE"),35;case 66:return this.pushState("NODE"),35;case 67:return this.pushState("NODE"),35;case 68:return this.pushState("NODE"),35;case 69:return this.pushState("NODE"),35;case 70:return this.pushState("NODE"),35;case 71:return this.pushState("NODE"),35;case 72:return P.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),P.getLogger().debug("LEX ARR START"),37;case 74:return P.getLogger().debug("Lex: NODE_ID",M.yytext),31;case 75:return P.getLogger().debug("Lex: EOF",M.yytext),8;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:P.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:P.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return P.getLogger().debug("LEX: NODE_DESCR:",M.yytext),"NODE_DESCR";case 83:P.getLogger().debug("LEX POPPING"),this.popState();break;case 84:P.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (right): dir:",M.yytext),"DIR";case 86:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (left):",M.yytext),"DIR";case 87:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (x):",M.yytext),"DIR";case 88:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (y):",M.yytext),"DIR";case 89:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (up):",M.yytext),"DIR";case 90:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (down):",M.yytext),"DIR";case 91:return M.yytext="]>",P.getLogger().debug("Lex (ARROW_DIR end):",M.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 92:return P.getLogger().debug("Lex: LINK","#"+M.yytext+"#"),15;case 93:return P.getLogger().debug("Lex: LINK",M.yytext),15;case 94:return P.getLogger().debug("Lex: LINK",M.yytext),15;case 95:return P.getLogger().debug("Lex: LINK",M.yytext),15;case 96:return P.getLogger().debug("Lex: START_LINK",M.yytext),this.pushState("LLABEL"),16;case 97:return P.getLogger().debug("Lex: START_LINK",M.yytext),this.pushState("LLABEL"),16;case 98:return P.getLogger().debug("Lex: START_LINK",M.yytext),this.pushState("LLABEL"),16;case 99:this.pushState("md_string");break;case 100:return P.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 101:return this.popState(),P.getLogger().debug("Lex: LINK","#"+M.yytext+"#"),15;case 102:return this.popState(),P.getLogger().debug("Lex: LINK",M.yytext),15;case 103:return this.popState(),P.getLogger().debug("Lex: LINK",M.yytext),15;case 104:return P.getLogger().debug("Lex: COLON",M.yytext),M.yytext=M.yytext.slice(1),27}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}};return N}();A.lexer=k;function I(){this.yy={}}return X(I,"Parser"),I.prototype=A,A.Parser=I,new I}();Gut.parser=Gut;var $Zi=Gut,nT=new Map,lbt=[],qut=new Map,DTn="color",MTn="fill",UZi="bgFill",KXn=",",zZi=nn(),UTe=new Map,GZi=X(e=>Ti.sanitizeText(e,zZi),"sanitizeText"),qZi=X(function(e,t=""){let r=UTe.get(e);r||(r={id:e,styles:[],textStyles:[]},UTe.set(e,r)),t!=null&&t.split(KXn).forEach(a=>{const s=a.replace(/([^;]*);/,"$1").trim();if(RegExp(DTn).exec(a)){const u=s.replace(MTn,UZi).replace(DTn,MTn);r.textStyles.push(u)}r.styles.push(s)})},"addStyleClass"),HZi=X(function(e,t=""){const r=nT.get(e);t!=null&&(r.styles=t.split(KXn))},"addStyle2Node"),VZi=X(function(e,t){e.split(",").forEach(function(r){let a=nT.get(r);if(a===void 0){const s=r.trim();a={id:s,type:"na",children:[]},nT.set(s,a)}a.classes||(a.classes=[]),a.classes.push(t)})},"setCssClass"),XXn=X((e,t)=>{const r=e.flat(),a=[],s=r.find(u=>(u==null?void 0:u.type)==="column-setting"),o=(s==null?void 0:s.columns)??-1;for(const u of r){if(typeof o=="number"&&o>0&&u.type!=="column-setting"&&typeof u.widthInColumns=="number"&&u.widthInColumns>o&&it.warn(`Block ${u.id} width ${u.widthInColumns} exceeds configured column width ${o}`),u.label&&(u.label=GZi(u.label)),u.type==="classDef"){qZi(u.id,u.css);continue}if(u.type==="applyClass"){VZi(u.id,(u==null?void 0:u.styleClass)??"");continue}if(u.type==="applyStyles"){u!=null&&u.stylesStr&&HZi(u.id,u==null?void 0:u.stylesStr);continue}if(u.type==="column-setting")t.columns=u.columns??-1;else if(u.type==="edge"){const h=(qut.get(u.id)??0)+1;qut.set(u.id,h),u.id=h+"-"+u.id,lbt.push(u)}else{u.label||(u.type==="composite"?u.label="":u.label=u.id);const h=nT.get(u.id);if(h===void 0?nT.set(u.id,u):(u.type!=="na"&&(h.type=u.type),u.label!==u.id&&(h.label=u.label)),u.children&&XXn(u.children,u),u.type==="space"){const f=u.width??1;for(let p=0;p{it.debug("Clear called"),M1(),Ise={id:"root",type:"composite",children:[],columns:-1},nT=new Map([["root",Ise]]),cbt=[],UTe=new Map,lbt=[],qut=new Map},"clear");function QXn(e){switch(it.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return it.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}X(QXn,"typeStr2Type");function ZXn(e){switch(it.debug("typeStr2Type",e),e){case"==":return"thick";default:return"normal"}}X(ZXn,"edgeTypeStr2Type");function JXn(e){switch(e.replace(/^[\s-]+|[\s-]+$/g,"")){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}X(JXn,"edgeStrToEdgeData");var PTn=0,jZi=X(()=>(PTn++,"id-"+Math.random().toString(36).substr(2,12)+"-"+PTn),"generateId"),WZi=X(e=>{Ise.children=e,XXn(e,Ise),cbt=Ise.children},"setHierarchy"),KZi=X(e=>{const t=nT.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},"getColumns"),XZi=X(()=>[...nT.values()],"getBlocksFlat"),QZi=X(()=>cbt||[],"getBlocks"),ZZi=X(()=>lbt,"getEdges"),JZi=X(e=>nT.get(e),"getBlock"),eJi=X(e=>{nT.set(e.id,e)},"setBlock"),tJi=X(()=>it,"getLogger"),nJi=X(function(){return UTe},"getClasses"),rJi={getConfig:X(()=>$c().block,"getConfig"),typeStr2Type:QXn,edgeTypeStr2Type:ZXn,edgeStrToEdgeData:JXn,getLogger:tJi,getBlocksFlat:XZi,getBlocks:QZi,getEdges:ZZi,setHierarchy:WZi,getBlock:JZi,setBlock:eJi,getColumns:KZi,getClasses:nJi,clear:YZi,generateId:jZi},iJi=rJi,pEe=X((e,t)=>{const r=ece,a=r(e,"r"),s=r(e,"g"),o=r(e,"b");return Z2(a,s,o,t)},"fade"),aJi=X(e=>`.label { font-family: ${e.fontFamily}; color: ${e.nodeTextColor||e.textColor}; } .cluster-label text { fill: ${e.titleColor}; } .cluster-label span,p { color: ${e.titleColor}; } .label text,span,p { fill: ${e.nodeTextColor||e.textColor}; color: ${e.nodeTextColor||e.textColor}; } .node rect, .node circle, .node ellipse, .node polygon, .node path { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: 1px; } .flowchart-label text { text-anchor: middle; } // .flowchart-label .text-outer-tspan { // text-anchor: middle; // } // .flowchart-label .text-inner-tspan { // text-anchor: start; // } .node .label { text-align: center; } .node.clickable { cursor: pointer; } .arrowheadPath { fill: ${e.arrowheadColor}; } .edgePath .path { stroke: ${e.lineColor}; stroke-width: 2.0px; } .flowchart-link { stroke: ${e.lineColor}; fill: none; } .edgeLabel { background-color: ${e.edgeLabelBackground}; rect { opacity: 0.5; background-color: ${e.edgeLabelBackground}; fill: ${e.edgeLabelBackground}; } text-align: center; } /* For html labels only */ .labelBkg { background-color: ${pEe(e.edgeLabelBackground,.5)}; // background-color: } .node .cluster { // fill: ${pEe(e.mainBkg,.5)}; fill: ${pEe(e.clusterBkg,.5)}; stroke: ${pEe(e.clusterBorder,.2)}; box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px; stroke-width: 1px; } .cluster text { fill: ${e.titleColor}; } .cluster span,p { color: ${e.titleColor}; } /* .cluster div { color: ${e.titleColor}; } */ div.mermaidTooltip { position: absolute; text-align: center; max-width: 200px; padding: 2px; font-family: ${e.fontFamily}; font-size: 12px; background: ${e.tertiaryColor}; border: 1px solid ${e.border2}; border-radius: 2px; pointer-events: none; z-index: 100; } .flowchartTitleText { text-anchor: middle; font-size: 18px; fill: ${e.textColor}; } ${Lce()} `,"getStyles"),sJi=aJi,oJi=X((e,t,r,a)=>{t.forEach(s=>{bJi[s](e,r,a)})},"insertMarkers"),lJi=X((e,t,r)=>{it.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),cJi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),uJi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),hJi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),dJi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),fJi=X((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),pJi=X((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),gJi=X((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),mJi=X((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),bJi={extension:lJi,composition:cJi,aggregation:uJi,dependency:hJi,lollipop:dJi,point:fJi,circle:pJi,cross:gJi,barb:mJi},yJi=oJi,gAn,mAn,V0=((mAn=(gAn=nn())==null?void 0:gAn.block)==null?void 0:mAn.padding)??8;function eQn(e,t){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(t<0||!Number.isInteger(t))throw new Error("Position must be a non-negative integer."+t);if(e<0)return{px:t,py:0};if(e===1)return{px:0,py:t};const r=t%e,a=Math.floor(t/e);return{px:r,py:a}}X(eQn,"calculateBlockPosition");var vJi=X(e=>{let t=0,r=0;for(const a of e.children){const{width:s,height:o,x:u,y:h}=a.size??{width:0,height:0,x:0,y:0};it.debug("getMaxChildSize abc95 child:",a.id,"width:",s,"height:",o,"x:",u,"y:",h,a.type),a.type!=="space"&&(s>t&&(t=s/(e.widthInColumns??1)),o>r&&(r=o))}return{width:t,height:r}},"getMaxChildSize");function zTe(e,t,r=0,a=0){var u,h,f,p,m,b,_,w,S,C,A;it.debug("setBlockSizes abc95 (start)",e.id,(u=e==null?void 0:e.size)==null?void 0:u.x,"block width =",e==null?void 0:e.size,"siblingWidth",r),(h=e==null?void 0:e.size)!=null&&h.width||(e.size={width:r,height:a,x:0,y:0});let s=0,o=0;if(((f=e.children)==null?void 0:f.length)>0){for(const U of e.children)zTe(U,t);const k=vJi(e);s=k.width,o=k.height,it.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",s,o);for(const U of e.children)U.size&&(it.debug(`abc95 Setting size of children of ${e.id} id=${U.id} ${s} ${o} ${JSON.stringify(U.size)}`),U.size.width=s*(U.widthInColumns??1)+V0*((U.widthInColumns??1)-1),U.size.height=o,U.size.x=0,U.size.y=0,it.debug(`abc95 updating size of ${e.id} children child:${U.id} maxWidth:${s} maxHeight:${o}`));for(const U of e.children)zTe(U,t,s,o);const I=e.columns??-1;let N=0;for(const U of e.children)N+=U.widthInColumns??1;let L=e.children.length;I>0&&I0?Math.min(e.children.length,I):e.children.length;if(U>0){const $=(M-U*V0-V0)/U;it.debug("abc95 (growing to fit) width",e.id,M,(_=e.size)==null?void 0:_.width,$);for(const G of e.children)G.size&&(G.size.width=$)}}e.size={width:M,height:F,x:0,y:0}}it.debug("setBlockSizes abc94 (done)",e.id,(w=e==null?void 0:e.size)==null?void 0:w.x,(S=e==null?void 0:e.size)==null?void 0:S.width,(C=e==null?void 0:e.size)==null?void 0:C.y,(A=e==null?void 0:e.size)==null?void 0:A.height)}X(zTe,"setBlockSizes");function ubt(e,t){var a,s,o,u,h,f,p,m,b,_,w,S,C,A,k,I,N;it.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(a=e==null?void 0:e.size)==null?void 0:a.x} y: ${(s=e==null?void 0:e.size)==null?void 0:s.y} width: ${(o=e==null?void 0:e.size)==null?void 0:o.width}`);const r=e.columns??-1;if(it.debug("layoutBlocks columns abc95",e.id,"=>",r,e),e.children&&e.children.length>0){const L=((h=(u=e==null?void 0:e.children[0])==null?void 0:u.size)==null?void 0:h.width)??0,P=e.children.length*L+(e.children.length-1)*V0;it.debug("widthOfChildren 88",P,"posX");let M=0;it.debug("abc91 block?.size?.x",e.id,(f=e==null?void 0:e.size)==null?void 0:f.x);let F=(p=e==null?void 0:e.size)!=null&&p.x?((m=e==null?void 0:e.size)==null?void 0:m.x)+(-((b=e==null?void 0:e.size)==null?void 0:b.width)/2||0):-V0,U=0;for(const $ of e.children){const G=e;if(!$.size)continue;const{width:B,height:Z}=$.size,{px:z,py:Y}=eQn(r,M);if(Y!=U&&(U=Y,F=(_=e==null?void 0:e.size)!=null&&_.x?((w=e==null?void 0:e.size)==null?void 0:w.x)+(-((S=e==null?void 0:e.size)==null?void 0:S.width)/2||0):-V0,it.debug("New row in layout for block",e.id," and child ",$.id,U)),it.debug(`abc89 layout blocks (child) id: ${$.id} Pos: ${M} (px, py) ${z},${Y} (${(C=G==null?void 0:G.size)==null?void 0:C.x},${(A=G==null?void 0:G.size)==null?void 0:A.y}) parent: ${G.id} width: ${B}${V0}`),G.size){const Q=B/2;$.size.x=F+V0+Q,it.debug(`abc91 layout blocks (calc) px, pyid:${$.id} startingPos=X${F} new startingPosX${$.size.x} ${Q} padding=${V0} width=${B} halfWidth=${Q} => x:${$.size.x} y:${$.size.y} ${$.widthInColumns} (width * (child?.w || 1)) / 2 ${B*(($==null?void 0:$.widthInColumns)??1)/2}`),F=$.size.x+Q,$.size.y=G.size.y-G.size.height/2+Y*(Z+V0)+Z/2+V0,it.debug(`abc88 layout blocks (calc) px, pyid:${$.id}startingPosX${F}${V0}${Q}=>x:${$.size.x}y:${$.size.y}${$.widthInColumns}(width * (child?.w || 1)) / 2${B*(($==null?void 0:$.widthInColumns)??1)/2}`)}$.children&&ubt($);let W=($==null?void 0:$.widthInColumns)??1;r>0&&(W=Math.min(W,r-M%r)),M+=W,it.debug("abc88 columnsPos",$,M)}}it.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${(k=e==null?void 0:e.size)==null?void 0:k.x} y: ${(I=e==null?void 0:e.size)==null?void 0:I.y} width: ${(N=e==null?void 0:e.size)==null?void 0:N.width}`)}X(ubt,"layoutBlocks");function hbt(e,{minX:t,minY:r,maxX:a,maxY:s}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){const{x:o,y:u,width:h,height:f}=e.size;o-h/2a&&(a=o+h/2),u+f/2>s&&(s=u+f/2)}if(e.children)for(const o of e.children)({minX:t,minY:r,maxX:a,maxY:s}=hbt(o,{minX:t,minY:r,maxX:a,maxY:s}));return{minX:t,minY:r,maxX:a,maxY:s}}X(hbt,"findBounds");function tQn(e){const t=e.getBlock("root");if(!t)return;zTe(t,e,0,0),ubt(t),it.debug("getBlocks",JSON.stringify(t,null,2));const{minX:r,minY:a,maxX:s,maxY:o}=hbt(t),u=o-a,h=s-r;return{x:r,y:a,width:h,height:u}}X(tQn,"layout");function Hut(e,t){t&&e.attr("style",t)}X(Hut,"applyStyle");function nQn(e,t){const r=gn(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),a=r.append("xhtml:div"),s=e.label,o=e.isNode?"nodeLabel":"edgeLabel",u=a.append("span");return u.html(Ic(s,t)),Hut(u,e.labelStyle),u.attr("class",o),Hut(a,e.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),r.node()}X(nQn,"addHtmlLabel");var _Ji=X(async(e,t,r,a)=>{let s=e||"";typeof s=="object"&&(s=s[0]);const o=nn();if(nh(o.flowchart.htmlLabels)){s=s.replace(/\\n|\n/g,"
    "),it.debug("vertexText"+s);const u=await Q1t(vA(s)),h={isNode:a,label:u,labelStyle:t.replace("fill:","color:")};return nQn(h,o)}else{const u=document.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("style",t.replace("color:","fill:"));let h=[];typeof s=="string"?h=s.split(/\\n|\n|/gi):Array.isArray(s)?h=s:h=[];for(const f of h){const p=document.createElementNS("http://www.w3.org/2000/svg","tspan");p.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),p.setAttribute("dy","1em"),p.setAttribute("x","0"),r?p.setAttribute("class","title-row"):p.setAttribute("class","row"),p.textContent=f.trim(),u.appendChild(p)}return u}},"createLabel"),nS=_Ji,wJi=X((e,t,r,a,s)=>{t.arrowTypeStart&&BTn(e,"start",t.arrowTypeStart,r,a,s),t.arrowTypeEnd&&BTn(e,"end",t.arrowTypeEnd,r,a,s)},"addEdgeMarkers"),EJi={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},BTn=X((e,t,r,a,s,o)=>{const u=EJi[r];if(!u){it.warn(`Unknown arrow type: ${r}`);return}const h=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${a}#${s}_${o}-${u}${h})`)},"addEdgeMarker"),Vut={},yb={},xJi=X(async(e,t)=>{const r=nn(),a=nh(r.flowchart.htmlLabels),s=t.labelType==="markdown"?Yw(e,t.label,{style:t.labelStyle,useHtmlLabels:a,addSvgBackground:!0},r):await nS(t.label,t.labelStyle),o=e.insert("g").attr("class","edgeLabel"),u=o.insert("g").attr("class","label");u.node().appendChild(s);let h=s.getBBox();if(a){const p=s.children[0],m=gn(s);h=p.getBoundingClientRect(),m.attr("width",h.width),m.attr("height",h.height)}u.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),Vut[t.id]=o,t.width=h.width,t.height=h.height;let f;if(t.startLabelLeft){const p=await nS(t.startLabelLeft,t.labelStyle),m=e.insert("g").attr("class","edgeTerminals"),b=m.insert("g").attr("class","inner");f=b.node().appendChild(p);const _=p.getBBox();b.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),yb[t.id]||(yb[t.id]={}),yb[t.id].startLeft=m,Pae(f,t.startLabelLeft)}if(t.startLabelRight){const p=await nS(t.startLabelRight,t.labelStyle),m=e.insert("g").attr("class","edgeTerminals"),b=m.insert("g").attr("class","inner");f=m.node().appendChild(p),b.node().appendChild(p);const _=p.getBBox();b.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),yb[t.id]||(yb[t.id]={}),yb[t.id].startRight=m,Pae(f,t.startLabelRight)}if(t.endLabelLeft){const p=await nS(t.endLabelLeft,t.labelStyle),m=e.insert("g").attr("class","edgeTerminals"),b=m.insert("g").attr("class","inner");f=b.node().appendChild(p);const _=p.getBBox();b.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),m.node().appendChild(p),yb[t.id]||(yb[t.id]={}),yb[t.id].endLeft=m,Pae(f,t.endLabelLeft)}if(t.endLabelRight){const p=await nS(t.endLabelRight,t.labelStyle),m=e.insert("g").attr("class","edgeTerminals"),b=m.insert("g").attr("class","inner");f=b.node().appendChild(p);const _=p.getBBox();b.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),m.node().appendChild(p),yb[t.id]||(yb[t.id]={}),yb[t.id].endRight=m,Pae(f,t.endLabelRight)}return s},"insertEdgeLabel");function Pae(e,t){nn().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}X(Pae,"setTerminalWidth");var SJi=X((e,t)=>{it.debug("Moving label abc88 ",e.id,e.label,Vut[e.id],t);let r=t.updatedPath?t.updatedPath:t.originalPath;const a=nn(),{subGraphTitleTotalMargin:s}=oce(a);if(e.label){const o=Vut[e.id];let u=e.x,h=e.y;if(r){const f=Vo.calcLabelPosition(r);it.debug("Moving label "+e.label+" from (",u,",",h,") to (",f.x,",",f.y,") abc88"),t.updatedPath&&(u=f.x,h=f.y)}o.attr("transform",`translate(${u}, ${h+s/2})`)}if(e.startLabelLeft){const o=yb[e.id].startLeft;let u=e.x,h=e.y;if(r){const f=Vo.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}if(e.startLabelRight){const o=yb[e.id].startRight;let u=e.x,h=e.y;if(r){const f=Vo.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}if(e.endLabelLeft){const o=yb[e.id].endLeft;let u=e.x,h=e.y;if(r){const f=Vo.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}if(e.endLabelRight){const o=yb[e.id].endRight;let u=e.x,h=e.y;if(r){const f=Vo.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}},"positionEdgeLabel"),TJi=X((e,t)=>{const r=e.x,a=e.y,s=Math.abs(t.x-r),o=Math.abs(t.y-a),u=e.width/2,h=e.height/2;return s>=u||o>=h},"outsideNode"),CJi=X((e,t,r)=>{it.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(t)} insidePoint : ${JSON.stringify(r)} node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const a=e.x,s=e.y,o=Math.abs(a-r.x),u=e.width/2;let h=r.xMath.abs(a-t.x)*f){let b=r.y{it.debug("abc88 cutPathAtIntersect",e,t);let r=[],a=e[0],s=!1;return e.forEach(o=>{if(!TJi(t,o)&&!s){const u=CJi(t,a,o);let h=!1;r.forEach(f=>{h=h||f.x===u.x&&f.y===u.y}),r.some(f=>f.x===u.x&&f.y===u.y)||r.push(u),s=!0}else a=o,s||r.push(o)}),r},"cutPathAtIntersect"),AJi=X(function(e,t,r,a,s,o,u){let h=r.points;it.debug("abc88 InsertEdge: edge=",r,"e=",t);let f=!1;const p=o.node(t.v);var m=o.node(t.w);m!=null&&m.intersect&&(p!=null&&p.intersect)&&(h=h.slice(1,r.points.length-1),h.unshift(p.intersect(h[0])),h.push(m.intersect(h[h.length-1]))),r.toCluster&&(it.debug("to cluster abc88",a[r.toCluster]),h=FTn(r.points,a[r.toCluster].node),f=!0),r.fromCluster&&(it.debug("from cluster abc88",a[r.fromCluster]),h=FTn(h.reverse(),a[r.fromCluster].node).reverse(),f=!0);const b=h.filter(L=>!Number.isNaN(L.y));let _=j3;r.curve&&(s==="graph"||s==="flowchart")&&(_=r.curve);const{x:w,y:S}=kPn(r),C=r_().x(w).y(S).curve(_);let A;switch(r.thickness){case"normal":A="edge-thickness-normal";break;case"thick":A="edge-thickness-thick";break;case"invisible":A="edge-thickness-thick";break;default:A=""}switch(r.pattern){case"solid":A+=" edge-pattern-solid";break;case"dotted":A+=" edge-pattern-dotted";break;case"dashed":A+=" edge-pattern-dashed";break}const k=e.append("path").attr("d",C(b)).attr("id",r.id).attr("class"," "+A+(r.classes?" "+r.classes:"")).attr("style",r.style);let I="";(nn().flowchart.arrowMarkerAbsolute||nn().state.arrowMarkerAbsolute)&&(I=tAe(!0)),wJi(k,r,I,u,s);let N={};return f&&(N.updatedPath=h),N.originalPath=r.points,N},"insertEdge"),kJi=X(e=>{const t=new Set;for(const r of e)switch(r){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(r);break}return t},"expandAndDeduplicateDirections"),RJi=X((e,t,r)=>{const a=kJi(e),s=2,o=t.height+2*r.padding,u=o/s,h=t.width+2*u+r.padding,f=r.padding/2;return a.has("right")&&a.has("left")&&a.has("up")&&a.has("down")?[{x:0,y:0},{x:u,y:0},{x:h/2,y:2*f},{x:h-u,y:0},{x:h,y:0},{x:h,y:-o/3},{x:h+2*f,y:-o/2},{x:h,y:-2*o/3},{x:h,y:-o},{x:h-u,y:-o},{x:h/2,y:-o-2*f},{x:u,y:-o},{x:0,y:-o},{x:0,y:-2*o/3},{x:-2*f,y:-o/2},{x:0,y:-o/3}]:a.has("right")&&a.has("left")&&a.has("up")?[{x:u,y:0},{x:h-u,y:0},{x:h,y:-o/2},{x:h-u,y:-o},{x:u,y:-o},{x:0,y:-o/2}]:a.has("right")&&a.has("left")&&a.has("down")?[{x:0,y:0},{x:u,y:-o},{x:h-u,y:-o},{x:h,y:0}]:a.has("right")&&a.has("up")&&a.has("down")?[{x:0,y:0},{x:h,y:-u},{x:h,y:-o+u},{x:0,y:-o}]:a.has("left")&&a.has("up")&&a.has("down")?[{x:h,y:0},{x:0,y:-u},{x:0,y:-o+u},{x:h,y:-o}]:a.has("right")&&a.has("left")?[{x:u,y:0},{x:u,y:-f},{x:h-u,y:-f},{x:h-u,y:0},{x:h,y:-o/2},{x:h-u,y:-o},{x:h-u,y:-o+f},{x:u,y:-o+f},{x:u,y:-o},{x:0,y:-o/2}]:a.has("up")&&a.has("down")?[{x:h/2,y:0},{x:0,y:-f},{x:u,y:-f},{x:u,y:-o+f},{x:0,y:-o+f},{x:h/2,y:-o},{x:h,y:-o+f},{x:h-u,y:-o+f},{x:h-u,y:-f},{x:h,y:-f}]:a.has("right")&&a.has("up")?[{x:0,y:0},{x:h,y:-u},{x:0,y:-o}]:a.has("right")&&a.has("down")?[{x:0,y:0},{x:h,y:0},{x:0,y:-o}]:a.has("left")&&a.has("up")?[{x:h,y:0},{x:0,y:-u},{x:h,y:-o}]:a.has("left")&&a.has("down")?[{x:h,y:0},{x:0,y:0},{x:h,y:-o}]:a.has("right")?[{x:u,y:-f},{x:u,y:-f},{x:h-u,y:-f},{x:h-u,y:0},{x:h,y:-o/2},{x:h-u,y:-o},{x:h-u,y:-o+f},{x:u,y:-o+f},{x:u,y:-o+f}]:a.has("left")?[{x:u,y:0},{x:u,y:-f},{x:h-u,y:-f},{x:h-u,y:-o+f},{x:u,y:-o+f},{x:u,y:-o},{x:0,y:-o/2}]:a.has("up")?[{x:u,y:-f},{x:u,y:-o+f},{x:0,y:-o+f},{x:h/2,y:-o},{x:h,y:-o+f},{x:h-u,y:-o+f},{x:h-u,y:-f}]:a.has("down")?[{x:h/2,y:0},{x:0,y:-f},{x:u,y:-f},{x:u,y:-o+f},{x:h-u,y:-o+f},{x:h-u,y:-f},{x:h,y:-f}]:[{x:0,y:0}]},"getArrowPoints");function rQn(e,t){return e.intersect(t)}X(rQn,"intersectNode");var IJi=rQn;function iQn(e,t,r,a){var s=e.x,o=e.y,u=s-a.x,h=o-a.y,f=Math.sqrt(t*t*h*h+r*r*u*u),p=Math.abs(t*r*u/f);a.x0}X(Yut,"sameSign");var OJi=oQn,LJi=lQn;function lQn(e,t,r){var a=e.x,s=e.y,o=[],u=Number.POSITIVE_INFINITY,h=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(S){u=Math.min(u,S.x),h=Math.min(h,S.y)}):(u=Math.min(u,t.x),h=Math.min(h,t.y));for(var f=a-e.width/2-u,p=s-e.height/2-h,m=0;m1&&o.sort(function(S,C){var A=S.x-r.x,k=S.y-r.y,I=Math.sqrt(A*A+k*k),N=C.x-r.x,L=C.y-r.y,P=Math.sqrt(N*N+L*L);return I{var r=e.x,a=e.y,s=t.x-r,o=t.y-a,u=e.width/2,h=e.height/2,f,p;return Math.abs(o)*u>Math.abs(s)*h?(o<0&&(h=-h),f=o===0?0:h*s/o,p=h):(s<0&&(u=-u),f=u,p=s===0?0:u*o/s),{x:r+f,y:a+p}},"intersectRect"),MJi=DJi,Qd={node:IJi,circle:NJi,ellipse:aQn,polygon:LJi,rect:MJi},Mg=X(async(e,t,r,a)=>{const s=nn();let o;const u=t.useHtmlLabels||nh(s.flowchart.htmlLabels);r?o=r:o="node default";const h=e.insert("g").attr("class",o).attr("id",t.domId||t.id),f=h.insert("g").attr("class","label").attr("style",t.labelStyle);let p;t.labelText===void 0?p="":p=typeof t.labelText=="string"?t.labelText:t.labelText[0];const m=f.node();let b;t.labelType==="markdown"?b=Yw(f,Ic(vA(p),s),{useHtmlLabels:u,width:t.width||s.flowchart.wrappingWidth,classes:"markdown-node-label"},s):b=m.appendChild(await nS(Ic(vA(p),s),t.labelStyle,!1,a));let _=b.getBBox();const w=t.padding/2;if(nh(s.flowchart.htmlLabels)){const S=b.children[0],C=gn(b),A=S.getElementsByTagName("img");if(A){const k=p.replace(/]*>/g,"").trim()==="";await Promise.all([...A].map(I=>new Promise(N=>{function L(){if(I.style.display="flex",I.style.flexDirection="column",k){const P=s.fontSize?s.fontSize:window.getComputedStyle(document.body).fontSize,F=parseInt(P,10)*5+"px";I.style.minWidth=F,I.style.maxWidth=F}else I.style.width="100%";N(I)}X(L,"setupImage"),setTimeout(()=>{I.complete&&L()}),I.addEventListener("error",L),I.addEventListener("load",L)})))}_=S.getBoundingClientRect(),C.attr("width",_.width),C.attr("height",_.height)}return u?f.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"):f.attr("transform","translate(0, "+-_.height/2+")"),t.centerLabel&&f.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),f.insert("rect",":first-child"),{shapeSvg:h,bbox:_,halfPadding:w,label:f}},"labelHelper"),d0=X((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds");function _T(e,t,r,a){return e.insert("polygon",":first-child").attr("points",a.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}X(_T,"insertPolygonShape");var PJi=X(async(e,t)=>{t.useHtmlLabels||nn().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:a,bbox:s,halfPadding:o}=await Mg(e,t,"node "+t.classes,!0);it.info("Classes = ",t.classes);const u=a.insert("rect",":first-child");return u.attr("rx",t.rx).attr("ry",t.ry).attr("x",-s.width/2-o).attr("y",-s.height/2-o).attr("width",s.width+t.padding).attr("height",s.height+t.padding),d0(t,u),t.intersect=function(h){return Qd.rect(t,h)},a},"note"),BJi=PJi,$Tn=X(e=>e?" "+e:"","formatClass"),Qw=X((e,t)=>`${t||"node default"}${$Tn(e.classes)} ${$Tn(e.class)}`,"getClassesFromNode"),UTn=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,Qw(t,void 0),!0),s=a.width+t.padding,o=a.height+t.padding,u=s+o,h=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}];it.info("Question main (Circle)");const f=_T(r,u,u,h);return f.attr("style",t.style),d0(t,f),t.intersect=function(p){return it.warn("Intersect called"),Qd.polygon(t,h,p)},r},"question"),FJi=X((e,t)=>{const r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),a=28,s=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}];return r.insert("polygon",":first-child").attr("points",s.map(function(u){return u.x+","+u.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(u){return Qd.circle(t,14,u)},r},"choice"),$Ji=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,Qw(t,void 0),!0),s=4,o=a.height+t.padding,u=o/s,h=a.width+2*u+t.padding,f=[{x:u,y:0},{x:h-u,y:0},{x:h,y:-o/2},{x:h-u,y:-o},{x:u,y:-o},{x:0,y:-o/2}],p=_T(r,h,o,f);return p.attr("style",t.style),d0(t,p),t.intersect=function(m){return Qd.polygon(t,f,m)},r},"hexagon"),UJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,void 0,!0),s=2,o=a.height+2*t.padding,u=o/s,h=a.width+2*u+t.padding,f=RJi(t.directions,a,t),p=_T(r,h,o,f);return p.attr("style",t.style),d0(t,p),t.intersect=function(m){return Qd.polygon(t,f,m)},r},"block_arrow"),zJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,Qw(t,void 0),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:-o/2,y:0},{x:s,y:0},{x:s,y:-o},{x:-o/2,y:-o},{x:0,y:-o/2}];return _T(r,s,o,u).attr("style",t.style),t.width=s+o,t.height=o,t.intersect=function(f){return Qd.polygon(t,u,f)},r},"rect_left_inv_arrow"),GJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,Qw(t),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:-2*o/6,y:0},{x:s-o/6,y:0},{x:s+2*o/6,y:-o},{x:o/6,y:-o}],h=_T(r,s,o,u);return h.attr("style",t.style),d0(t,h),t.intersect=function(f){return Qd.polygon(t,u,f)},r},"lean_right"),qJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,Qw(t,void 0),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:2*o/6,y:0},{x:s+o/6,y:0},{x:s-2*o/6,y:-o},{x:-o/6,y:-o}],h=_T(r,s,o,u);return h.attr("style",t.style),d0(t,h),t.intersect=function(f){return Qd.polygon(t,u,f)},r},"lean_left"),HJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,Qw(t,void 0),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:-2*o/6,y:0},{x:s+2*o/6,y:0},{x:s-o/6,y:-o},{x:o/6,y:-o}],h=_T(r,s,o,u);return h.attr("style",t.style),d0(t,h),t.intersect=function(f){return Qd.polygon(t,u,f)},r},"trapezoid"),VJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,Qw(t,void 0),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:o/6,y:0},{x:s-o/6,y:0},{x:s+2*o/6,y:-o},{x:-2*o/6,y:-o}],h=_T(r,s,o,u);return h.attr("style",t.style),d0(t,h),t.intersect=function(f){return Qd.polygon(t,u,f)},r},"inv_trapezoid"),YJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,Qw(t,void 0),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:0,y:0},{x:s+o/2,y:0},{x:s,y:-o/2},{x:s+o/2,y:-o},{x:0,y:-o}],h=_T(r,s,o,u);return h.attr("style",t.style),d0(t,h),t.intersect=function(f){return Qd.polygon(t,u,f)},r},"rect_right_inv_arrow"),jJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,Qw(t,void 0),!0),s=a.width+t.padding,o=s/2,u=o/(2.5+s/50),h=a.height+u+t.padding,f="M 0,"+u+" a "+o+","+u+" 0,0,0 "+s+" 0 a "+o+","+u+" 0,0,0 "+-s+" 0 l 0,"+h+" a "+o+","+u+" 0,0,0 "+s+" 0 l 0,"+-h,p=r.attr("label-offset-y",u).insert("path",":first-child").attr("style",t.style).attr("d",f).attr("transform","translate("+-s/2+","+-(h/2+u)+")");return d0(t,p),t.intersect=function(m){const b=Qd.rect(t,m),_=b.x-t.x;if(o!=0&&(Math.abs(_)t.height/2-u)){let w=u*u*(1-_*_/(o*o));w!=0&&(w=Math.sqrt(w)),w=u-w,m.y-t.y>0&&(w=-w),b.y+=w}return b},r},"cylinder"),WJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Mg(e,t,"node "+t.classes+" "+t.class,!0),o=r.insert("rect",":first-child"),u=t.positioned?t.width:a.width+t.padding,h=t.positioned?t.height:a.height+t.padding,f=t.positioned?-u/2:-a.width/2-s,p=t.positioned?-h/2:-a.height/2-s;if(o.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",f).attr("y",p).attr("width",u).attr("height",h),t.props){const m=new Set(Object.keys(t.props));t.props.borders&&(i6e(o,t.props.borders,u,h),m.delete("borders")),m.forEach(b=>{it.warn(`Unknown node property ${b}`)})}return d0(t,o),t.intersect=function(m){return Qd.rect(t,m)},r},"rect"),KJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Mg(e,t,"node "+t.classes,!0),o=r.insert("rect",":first-child"),u=t.positioned?t.width:a.width+t.padding,h=t.positioned?t.height:a.height+t.padding,f=t.positioned?-u/2:-a.width/2-s,p=t.positioned?-h/2:-a.height/2-s;if(o.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",f).attr("y",p).attr("width",u).attr("height",h),t.props){const m=new Set(Object.keys(t.props));t.props.borders&&(i6e(o,t.props.borders,u,h),m.delete("borders")),m.forEach(b=>{it.warn(`Unknown node property ${b}`)})}return d0(t,o),t.intersect=function(m){return Qd.rect(t,m)},r},"composite"),XJi=X(async(e,t)=>{const{shapeSvg:r}=await Mg(e,t,"label",!0);it.trace("Classes = ",t.class);const a=r.insert("rect",":first-child"),s=0,o=0;if(a.attr("width",s).attr("height",o),r.attr("class","label edgeLabel"),t.props){const u=new Set(Object.keys(t.props));t.props.borders&&(i6e(a,t.props.borders,s,o),u.delete("borders")),u.forEach(h=>{it.warn(`Unknown node property ${h}`)})}return d0(t,a),t.intersect=function(u){return Qd.rect(t,u)},r},"labelRect");function i6e(e,t,r,a){const s=[],o=X(h=>{s.push(h,0)},"addBorder"),u=X(h=>{s.push(0,h)},"skipBorder");t.includes("t")?(it.debug("add top border"),o(r)):u(r),t.includes("r")?(it.debug("add right border"),o(a)):u(a),t.includes("b")?(it.debug("add bottom border"),o(r)):u(r),t.includes("l")?(it.debug("add left border"),o(a)):u(a),e.attr("stroke-dasharray",s.join(" "))}X(i6e,"applyNodePropertyBorders");var QJi=X(async(e,t)=>{let r;t.classes?r="node "+t.classes:r="node default";const a=e.insert("g").attr("class",r).attr("id",t.domId||t.id),s=a.insert("rect",":first-child"),o=a.insert("line"),u=a.insert("g").attr("class","label"),h=t.labelText.flat?t.labelText.flat():t.labelText;let f="";typeof h=="object"?f=h[0]:f=h,it.info("Label text abc79",f,h,typeof h=="object");const p=u.node().appendChild(await nS(f,t.labelStyle,!0,!0));let m={width:0,height:0};if(nh(nn().flowchart.htmlLabels)){const C=p.children[0],A=gn(p);m=C.getBoundingClientRect(),A.attr("width",m.width),A.attr("height",m.height)}it.info("Text 2",h);const b=h.slice(1,h.length);let _=p.getBBox();const w=u.node().appendChild(await nS(b.join?b.join("
    "):b,t.labelStyle,!0,!0));if(nh(nn().flowchart.htmlLabels)){const C=w.children[0],A=gn(w);m=C.getBoundingClientRect(),A.attr("width",m.width),A.attr("height",m.height)}const S=t.padding/2;return gn(w).attr("transform","translate( "+(m.width>_.width?0:(_.width-m.width)/2)+", "+(_.height+S+5)+")"),gn(p).attr("transform","translate( "+(m.width<_.width?0:-(_.width-m.width)/2)+", 0)"),m=u.node().getBBox(),u.attr("transform","translate("+-m.width/2+", "+(-m.height/2-S+3)+")"),s.attr("class","outer title-state").attr("x",-m.width/2-S).attr("y",-m.height/2-S).attr("width",m.width+t.padding).attr("height",m.height+t.padding),o.attr("class","divider").attr("x1",-m.width/2-S).attr("x2",m.width/2+S).attr("y1",-m.height/2-S+_.height+S).attr("y2",-m.height/2-S+_.height+S),d0(t,s),t.intersect=function(C){return Qd.rect(t,C)},a},"rectWithTitle"),ZJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,Qw(t,void 0),!0),s=a.height+t.padding,o=a.width+s/4+t.padding,u=r.insert("rect",":first-child").attr("style",t.style).attr("rx",s/2).attr("ry",s/2).attr("x",-o/2).attr("y",-s/2).attr("width",o).attr("height",s);return d0(t,u),t.intersect=function(h){return Qd.rect(t,h)},r},"stadium"),JJi=X(async(e,t)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Mg(e,t,Qw(t,void 0),!0),o=r.insert("circle",":first-child");return o.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",a.width/2+s).attr("width",a.width+t.padding).attr("height",a.height+t.padding),it.info("Circle main"),d0(t,o),t.intersect=function(u){return it.info("Circle intersect",t,a.width/2+s,u),Qd.circle(t,a.width/2+s,u)},r},"circle"),eea=X(async(e,t)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Mg(e,t,Qw(t,void 0),!0),o=5,u=r.insert("g",":first-child"),h=u.insert("circle"),f=u.insert("circle");return u.attr("class",t.class),h.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",a.width/2+s+o).attr("width",a.width+t.padding+o*2).attr("height",a.height+t.padding+o*2),f.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",a.width/2+s).attr("width",a.width+t.padding).attr("height",a.height+t.padding),it.info("DoubleCircle main"),d0(t,h),t.intersect=function(p){return it.info("DoubleCircle intersect",t,a.width/2+s+o,p),Qd.circle(t,a.width/2+s+o,p)},r},"doublecircle"),tea=X(async(e,t)=>{const{shapeSvg:r,bbox:a}=await Mg(e,t,Qw(t,void 0),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:0,y:0},{x:s,y:0},{x:s,y:-o},{x:0,y:-o},{x:0,y:0},{x:-8,y:0},{x:s+8,y:0},{x:s+8,y:-o},{x:-8,y:-o},{x:-8,y:0}],h=_T(r,s,o,u);return h.attr("style",t.style),d0(t,h),t.intersect=function(f){return Qd.polygon(t,u,f)},r},"subroutine"),nea=X((e,t)=>{const r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),a=r.insert("circle",":first-child");return a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),d0(t,a),t.intersect=function(s){return Qd.circle(t,7,s)},r},"start"),zTn=X((e,t,r)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let s=70,o=10;r==="LR"&&(s=10,o=70);const u=a.append("rect").attr("x",-1*s/2).attr("y",-1*o/2).attr("width",s).attr("height",o).attr("class","fork-join");return d0(t,u),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(h){return Qd.rect(t,h)},a},"forkJoin"),rea=X((e,t)=>{const r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),a=r.insert("circle",":first-child"),s=r.insert("circle",":first-child");return s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),a.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),d0(t,s),t.intersect=function(o){return Qd.circle(t,7,o)},r},"end"),iea=X(async(e,t)=>{var U;const r=t.padding/2,a=4,s=8;let o;t.classes?o="node "+t.classes:o="node default";const u=e.insert("g").attr("class",o).attr("id",t.domId||t.id),h=u.insert("rect",":first-child"),f=u.insert("line"),p=u.insert("line");let m=0,b=a;const _=u.insert("g").attr("class","label");let w=0;const S=(U=t.classData.annotations)==null?void 0:U[0],C=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",A=_.node().appendChild(await nS(C,t.labelStyle,!0,!0));let k=A.getBBox();if(nh(nn().flowchart.htmlLabels)){const $=A.children[0],G=gn(A);k=$.getBoundingClientRect(),G.attr("width",k.width),G.attr("height",k.height)}t.classData.annotations[0]&&(b+=k.height+a,m+=k.width);let I=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(nn().flowchart.htmlLabels?I+="<"+t.classData.type+">":I+="<"+t.classData.type+">");const N=_.node().appendChild(await nS(I,t.labelStyle,!0,!0));gn(N).attr("class","classTitle");let L=N.getBBox();if(nh(nn().flowchart.htmlLabels)){const $=N.children[0],G=gn(N);L=$.getBoundingClientRect(),G.attr("width",L.width),G.attr("height",L.height)}b+=L.height+a,L.width>m&&(m=L.width);const P=[];t.classData.members.forEach(async $=>{const G=$.getDisplayDetails();let B=G.displayText;nn().flowchart.htmlLabels&&(B=B.replace(//g,">"));const Z=_.node().appendChild(await nS(B,G.cssStyle?G.cssStyle:t.labelStyle,!0,!0));let z=Z.getBBox();if(nh(nn().flowchart.htmlLabels)){const Y=Z.children[0],W=gn(Z);z=Y.getBoundingClientRect(),W.attr("width",z.width),W.attr("height",z.height)}z.width>m&&(m=z.width),b+=z.height+a,P.push(Z)}),b+=s;const M=[];if(t.classData.methods.forEach(async $=>{const G=$.getDisplayDetails();let B=G.displayText;nn().flowchart.htmlLabels&&(B=B.replace(//g,">"));const Z=_.node().appendChild(await nS(B,G.cssStyle?G.cssStyle:t.labelStyle,!0,!0));let z=Z.getBBox();if(nh(nn().flowchart.htmlLabels)){const Y=Z.children[0],W=gn(Z);z=Y.getBoundingClientRect(),W.attr("width",z.width),W.attr("height",z.height)}z.width>m&&(m=z.width),b+=z.height+a,M.push(Z)}),b+=s,S){let $=(m-k.width)/2;gn(A).attr("transform","translate( "+(-1*m/2+$)+", "+-1*b/2+")"),w=k.height+a}let F=(m-L.width)/2;return gn(N).attr("transform","translate( "+(-1*m/2+F)+", "+(-1*b/2+w)+")"),w+=L.height+a,f.attr("class","divider").attr("x1",-m/2-r).attr("x2",m/2+r).attr("y1",-b/2-r+s+w).attr("y2",-b/2-r+s+w),w+=s,P.forEach($=>{gn($).attr("transform","translate( "+-m/2+", "+(-1*b/2+w+s/2)+")");const G=$==null?void 0:$.getBBox();w+=((G==null?void 0:G.height)??0)+a}),w+=s,p.attr("class","divider").attr("x1",-m/2-r).attr("x2",m/2+r).attr("y1",-b/2-r+s+w).attr("y2",-b/2-r+s+w),w+=s,M.forEach($=>{gn($).attr("transform","translate( "+-m/2+", "+(-1*b/2+w)+")");const G=$==null?void 0:$.getBBox();w+=((G==null?void 0:G.height)??0)+a}),h.attr("style",t.style).attr("class","outer title-state").attr("x",-m/2-r).attr("y",-(b/2)-r).attr("width",m+t.padding).attr("height",b+t.padding),d0(t,h),t.intersect=function($){return Qd.rect(t,$)},u},"class_box"),GTn={rhombus:UTn,composite:KJi,question:UTn,rect:WJi,labelRect:XJi,rectWithTitle:QJi,choice:FJi,circle:JJi,doublecircle:eea,stadium:ZJi,hexagon:$Ji,block_arrow:UJi,rect_left_inv_arrow:zJi,lean_right:GJi,lean_left:qJi,trapezoid:HJi,inv_trapezoid:VJi,rect_right_inv_arrow:YJi,cylinder:jJi,start:nea,end:rea,note:BJi,subroutine:tea,fork:zTn,join:zTn,class_box:iea},Jxe={},cQn=X(async(e,t,r)=>{let a,s;if(t.link){let o;nn().securityLevel==="sandbox"?o="_top":t.linkTarget&&(o=t.linkTarget||"_blank"),a=e.insert("svg:a").attr("xlink:href",t.link).attr("target",o),s=await GTn[t.shape](a,t,r)}else s=await GTn[t.shape](e,t,r),a=s;return t.tooltip&&s.attr("title",t.tooltip),t.class&&s.attr("class","node default "+t.class),Jxe[t.id]=a,t.haveCallback&&Jxe[t.id].attr("class",Jxe[t.id].attr("class")+" clickable"),a},"insertNode"),aea=X(e=>{const t=Jxe[e.id];it.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,a=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+a-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),a},"positionNode");function dbt(e,t,r=!1){var _,w,S;const a=e;let s="default";(((_=a==null?void 0:a.classes)==null?void 0:_.length)||0)>0&&(s=((a==null?void 0:a.classes)??[]).join(" ")),s=s+" flowchart-label";let o=0,u="",h;switch(a.type){case"round":o=5,u="rect";break;case"composite":o=0,u="composite",h=0;break;case"square":u="rect";break;case"diamond":u="question";break;case"hexagon":u="hexagon";break;case"block_arrow":u="block_arrow";break;case"odd":u="rect_left_inv_arrow";break;case"lean_right":u="lean_right";break;case"lean_left":u="lean_left";break;case"trapezoid":u="trapezoid";break;case"inv_trapezoid":u="inv_trapezoid";break;case"rect_left_inv_arrow":u="rect_left_inv_arrow";break;case"circle":u="circle";break;case"ellipse":u="ellipse";break;case"stadium":u="stadium";break;case"subroutine":u="subroutine";break;case"cylinder":u="cylinder";break;case"group":u="rect";break;case"doublecircle":u="doublecircle";break;default:u="rect"}const f=F1t((a==null?void 0:a.styles)??[]),p=a.label,m=a.size??{width:0,height:0,x:0,y:0};return{labelStyle:f.labelStyle,shape:u,labelText:p,rx:o,ry:o,class:s,style:f.style,id:a.id,directions:a.directions,width:m.width,height:m.height,x:m.x,y:m.y,positioned:r,intersect:void 0,type:a.type,padding:h??((S=(w=$c())==null?void 0:w.block)==null?void 0:S.padding)??0}}X(dbt,"getNodeFromBlock");async function uQn(e,t,r){const a=dbt(t,r,!1);if(a.type==="group")return;const s=$c(),o=await cQn(e,a,{config:s}),u=o.node().getBBox(),h=r.getBlock(a.id);h.size={width:u.width,height:u.height,x:0,y:0,node:o},r.setBlock(h),o.remove()}X(uQn,"calculateBlockSize");async function hQn(e,t,r){const a=dbt(t,r,!0);if(r.getBlock(a.id).type!=="space"){const o=$c();await cQn(e,a,{config:o}),t.intersect=a==null?void 0:a.intersect,aea(a)}}X(hQn,"insertBlockPositioned");async function a6e(e,t,r,a){for(const s of t)await a(e,s,r),s.children&&await a6e(e,s.children,r,a)}X(a6e,"performOperations");async function dQn(e,t,r){await a6e(e,t,r,uQn)}X(dQn,"calculateBlockSizes");async function fQn(e,t,r){await a6e(e,t,r,hQn)}X(fQn,"insertBlocks");async function pQn(e,t,r,a,s){const o=new c_({multigraph:!0,compound:!0});o.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const u of r)u.size&&o.setNode(u.id,{width:u.size.width,height:u.size.height,intersect:u.intersect});for(const u of t)if(u.start&&u.end){const h=a.getBlock(u.start),f=a.getBlock(u.end);if(h!=null&&h.size&&(f!=null&&f.size)){const p=h.size,m=f.size,b=[{x:p.x,y:p.y},{x:p.x+(m.x-p.x)/2,y:p.y+(m.y-p.y)/2},{x:m.x,y:m.y}];AJi(e,{v:u.start,w:u.end,name:u.id},{...u,arrowTypeEnd:u.arrowTypeEnd,arrowTypeStart:u.arrowTypeStart,points:b,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",o,s),u.label&&(await xJi(e,{...u,label:u.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:u.arrowTypeEnd,arrowTypeStart:u.arrowTypeStart,points:b,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),SJi({...u,x:b[1].x,y:b[1].y},{originalPath:b}))}}}X(pQn,"insertEdges");var sea=X(function(e,t){return t.db.getClasses()},"getClasses"),oea=X(async function(e,t,r,a){const{securityLevel:s,block:o}=$c(),u=a.db;let h;s==="sandbox"&&(h=gn("#i"+t));const f=gn(s==="sandbox"?h.nodes()[0].contentDocument.body:"body"),p=s==="sandbox"?f.select(`[id="${t}"]`):gn(`[id="${t}"]`);yJi(p,["point","circle","cross"],a.type,t);const b=u.getBlocks(),_=u.getBlocksFlat(),w=u.getEdges(),S=p.insert("g").attr("class","block");await dQn(S,b,u);const C=tQn(u);if(await fQn(S,b,u),await pQn(S,w,_,u,t),C){const A=C,k=Math.max(1,Math.round(.125*(A.width/A.height))),I=A.height+k+10,N=A.width+10,{useMaxWidth:L}=o;yv(p,I,N,!!L),it.debug("Here Bounds",C,A),p.attr("viewBox",`${A.x-5} ${A.y-5} ${A.width+10} ${A.height+10}`)}},"draw"),lea={draw:oea,getClasses:sea},cea={parser:$Zi,db:iJi,renderer:lea,styles:sJi};const uea=Object.freeze(Object.defineProperty({__proto__:null,diagram:cea},Symbol.toStringTag,{value:"Module"}));var gQn={exports:{}},aat={exports:{}},sat={exports:{}},qTn;function hea(){return qTn||(qTn=1,function(e,t){(function(a,s){e.exports=s()})(ml,function(){return function(r){var a={};function s(o){if(a[o])return a[o].exports;var u=a[o]={i:o,l:!1,exports:{}};return r[o].call(u.exports,u,u.exports,s),u.l=!0,u.exports}return s.m=r,s.c=a,s.i=function(o){return o},s.d=function(o,u,h){s.o(o,u)||Object.defineProperty(o,u,{configurable:!1,enumerable:!0,get:h})},s.n=function(o){var u=o&&o.__esModule?function(){return o.default}:function(){return o};return s.d(u,"a",u),u},s.o=function(o,u){return Object.prototype.hasOwnProperty.call(o,u)},s.p="",s(s.s=28)}([function(r,a,s){function o(){}o.QUALITY=1,o.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,o.DEFAULT_INCREMENTAL=!1,o.DEFAULT_ANIMATION_ON_LAYOUT=!0,o.DEFAULT_ANIMATION_DURING_LAYOUT=!1,o.DEFAULT_ANIMATION_PERIOD=50,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,o.DEFAULT_GRAPH_MARGIN=15,o.NODE_DIMENSIONS_INCLUDE_LABELS=!1,o.SIMPLE_NODE_SIZE=40,o.SIMPLE_NODE_HALF_SIZE=o.SIMPLE_NODE_SIZE/2,o.EMPTY_COMPOUND_NODE_SIZE=40,o.MIN_EDGE_LENGTH=1,o.WORLD_BOUNDARY=1e6,o.INITIAL_WORLD_BOUNDARY=o.WORLD_BOUNDARY/1e3,o.WORLD_CENTER_X=1200,o.WORLD_CENTER_Y=900,r.exports=o},function(r,a,s){var o=s(2),u=s(8),h=s(9);function f(m,b,_){o.call(this,_),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=_,this.bendpoints=[],this.source=m,this.target=b}f.prototype=Object.create(o.prototype);for(var p in o)f[p]=o[p];f.prototype.getSource=function(){return this.source},f.prototype.getTarget=function(){return this.target},f.prototype.isInterGraph=function(){return this.isInterGraph},f.prototype.getLength=function(){return this.length},f.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},f.prototype.getBendpoints=function(){return this.bendpoints},f.prototype.getLca=function(){return this.lca},f.prototype.getSourceInLca=function(){return this.sourceInLca},f.prototype.getTargetInLca=function(){return this.targetInLca},f.prototype.getOtherEnd=function(m){if(this.source===m)return this.target;if(this.target===m)return this.source;throw"Node is not incident with this edge"},f.prototype.getOtherEndInGraph=function(m,b){for(var _=this.getOtherEnd(m),w=b.getGraphManager().getRoot();;){if(_.getOwner()==b)return _;if(_.getOwner()==w)break;_=_.getOwner().getParent()}return null},f.prototype.updateLength=function(){var m=new Array(4);this.isOverlapingSourceAndTarget=u.getIntersection(this.target.getRect(),this.source.getRect(),m),this.isOverlapingSourceAndTarget||(this.lengthX=m[0]-m[2],this.lengthY=m[1]-m[3],Math.abs(this.lengthX)<1&&(this.lengthX=h.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=h.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},f.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=h.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=h.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},r.exports=f},function(r,a,s){function o(u){this.vGraphObject=u}r.exports=o},function(r,a,s){var o=s(2),u=s(10),h=s(13),f=s(0),p=s(16),m=s(5);function b(w,S,C,A){C==null&&A==null&&(A=S),o.call(this,A),w.graphManager!=null&&(w=w.graphManager),this.estimatedSize=u.MIN_VALUE,this.inclusionTreeDepth=u.MAX_VALUE,this.vGraphObject=A,this.edges=[],this.graphManager=w,C!=null&&S!=null?this.rect=new h(S.x,S.y,C.width,C.height):this.rect=new h}b.prototype=Object.create(o.prototype);for(var _ in o)b[_]=o[_];b.prototype.getEdges=function(){return this.edges},b.prototype.getChild=function(){return this.child},b.prototype.getOwner=function(){return this.owner},b.prototype.getWidth=function(){return this.rect.width},b.prototype.setWidth=function(w){this.rect.width=w},b.prototype.getHeight=function(){return this.rect.height},b.prototype.setHeight=function(w){this.rect.height=w},b.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},b.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},b.prototype.getCenter=function(){return new m(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},b.prototype.getLocation=function(){return new m(this.rect.x,this.rect.y)},b.prototype.getRect=function(){return this.rect},b.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},b.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},b.prototype.setRect=function(w,S){this.rect.x=w.x,this.rect.y=w.y,this.rect.width=S.width,this.rect.height=S.height},b.prototype.setCenter=function(w,S){this.rect.x=w-this.rect.width/2,this.rect.y=S-this.rect.height/2},b.prototype.setLocation=function(w,S){this.rect.x=w,this.rect.y=S},b.prototype.moveBy=function(w,S){this.rect.x+=w,this.rect.y+=S},b.prototype.getEdgeListToNode=function(w){var S=[],C=this;return C.edges.forEach(function(A){if(A.target==w){if(A.source!=C)throw"Incorrect edge source!";S.push(A)}}),S},b.prototype.getEdgesBetween=function(w){var S=[],C=this;return C.edges.forEach(function(A){if(!(A.source==C||A.target==C))throw"Incorrect edge source and/or target";(A.target==w||A.source==w)&&S.push(A)}),S},b.prototype.getNeighborsList=function(){var w=new Set,S=this;return S.edges.forEach(function(C){if(C.source==S)w.add(C.target);else{if(C.target!=S)throw"Incorrect incidency!";w.add(C.source)}}),w},b.prototype.withChildren=function(){var w=new Set,S,C;if(w.add(this),this.child!=null)for(var A=this.child.getNodes(),k=0;kS?(this.rect.x-=(this.labelWidth-S)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(S+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(C+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>C?(this.rect.y-=(this.labelHeight-C)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(C+this.labelHeight))}}},b.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==u.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},b.prototype.transform=function(w){var S=this.rect.x;S>f.WORLD_BOUNDARY?S=f.WORLD_BOUNDARY:S<-f.WORLD_BOUNDARY&&(S=-f.WORLD_BOUNDARY);var C=this.rect.y;C>f.WORLD_BOUNDARY?C=f.WORLD_BOUNDARY:C<-f.WORLD_BOUNDARY&&(C=-f.WORLD_BOUNDARY);var A=new m(S,C),k=w.inverseTransformPoint(A);this.setLocation(k.x,k.y)},b.prototype.getLeft=function(){return this.rect.x},b.prototype.getRight=function(){return this.rect.x+this.rect.width},b.prototype.getTop=function(){return this.rect.y},b.prototype.getBottom=function(){return this.rect.y+this.rect.height},b.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},r.exports=b},function(r,a,s){var o=s(0);function u(){}for(var h in o)u[h]=o[h];u.MAX_ITERATIONS=2500,u.DEFAULT_EDGE_LENGTH=50,u.DEFAULT_SPRING_STRENGTH=.45,u.DEFAULT_REPULSION_STRENGTH=4500,u.DEFAULT_GRAVITY_STRENGTH=.4,u.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,u.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,u.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,u.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,u.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,u.COOLING_ADAPTATION_FACTOR=.33,u.ADAPTATION_LOWER_NODE_LIMIT=1e3,u.ADAPTATION_UPPER_NODE_LIMIT=5e3,u.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,u.MAX_NODE_DISPLACEMENT=u.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,u.MIN_REPULSION_DIST=u.DEFAULT_EDGE_LENGTH/10,u.CONVERGENCE_CHECK_PERIOD=100,u.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,u.MIN_EDGE_LENGTH=1,u.GRID_CALCULATION_CHECK_PERIOD=10,r.exports=u},function(r,a,s){function o(u,h){u==null&&h==null?(this.x=0,this.y=0):(this.x=u,this.y=h)}o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.setX=function(u){this.x=u},o.prototype.setY=function(u){this.y=u},o.prototype.getDifference=function(u){return new DimensionD(this.x-u.x,this.y-u.y)},o.prototype.getCopy=function(){return new o(this.x,this.y)},o.prototype.translate=function(u){return this.x+=u.width,this.y+=u.height,this},r.exports=o},function(r,a,s){var o=s(2),u=s(10),h=s(0),f=s(7),p=s(3),m=s(1),b=s(13),_=s(12),w=s(11);function S(A,k,I){o.call(this,I),this.estimatedSize=u.MIN_VALUE,this.margin=h.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=A,k!=null&&k instanceof f?this.graphManager=k:k!=null&&k instanceof Layout&&(this.graphManager=k.graphManager)}S.prototype=Object.create(o.prototype);for(var C in o)S[C]=o[C];S.prototype.getNodes=function(){return this.nodes},S.prototype.getEdges=function(){return this.edges},S.prototype.getGraphManager=function(){return this.graphManager},S.prototype.getParent=function(){return this.parent},S.prototype.getLeft=function(){return this.left},S.prototype.getRight=function(){return this.right},S.prototype.getTop=function(){return this.top},S.prototype.getBottom=function(){return this.bottom},S.prototype.isConnected=function(){return this.isConnected},S.prototype.add=function(A,k,I){if(k==null&&I==null){var N=A;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(N)>-1)throw"Node already in graph!";return N.owner=this,this.getNodes().push(N),N}else{var L=A;if(!(this.getNodes().indexOf(k)>-1&&this.getNodes().indexOf(I)>-1))throw"Source or target not in graph!";if(!(k.owner==I.owner&&k.owner==this))throw"Both owners must be this graph!";return k.owner!=I.owner?null:(L.source=k,L.target=I,L.isInterGraph=!1,this.getEdges().push(L),k.edges.push(L),I!=k&&I.edges.push(L),L)}},S.prototype.remove=function(A){var k=A;if(A instanceof p){if(k==null)throw"Node is null!";if(!(k.owner!=null&&k.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var I=k.edges.slice(),N,L=I.length,P=0;P-1&&U>-1))throw"Source and/or target doesn't know this edge!";N.source.edges.splice(F,1),N.target!=N.source&&N.target.edges.splice(U,1);var M=N.source.owner.getEdges().indexOf(N);if(M==-1)throw"Not in owner's edge list!";N.source.owner.getEdges().splice(M,1)}},S.prototype.updateLeftTop=function(){for(var A=u.MAX_VALUE,k=u.MAX_VALUE,I,N,L,P=this.getNodes(),M=P.length,F=0;FI&&(A=I),k>N&&(k=N)}return A==u.MAX_VALUE?null:(P[0].getParent().paddingLeft!=null?L=P[0].getParent().paddingLeft:L=this.margin,this.left=k-L,this.top=A-L,new _(this.left,this.top))},S.prototype.updateBounds=function(A){for(var k=u.MAX_VALUE,I=-u.MAX_VALUE,N=u.MAX_VALUE,L=-u.MAX_VALUE,P,M,F,U,$,G=this.nodes,B=G.length,Z=0;ZP&&(k=P),IF&&(N=F),LP&&(k=P),IF&&(N=F),L=this.nodes.length){var B=0;I.forEach(function(Z){Z.owner==A&&B++}),B==this.nodes.length&&(this.isConnected=!0)}},r.exports=S},function(r,a,s){var o,u=s(1);function h(f){o=s(6),this.layout=f,this.graphs=[],this.edges=[]}h.prototype.addRoot=function(){var f=this.layout.newGraph(),p=this.layout.newNode(null),m=this.add(f,p);return this.setRootGraph(m),this.rootGraph},h.prototype.add=function(f,p,m,b,_){if(m==null&&b==null&&_==null){if(f==null)throw"Graph is null!";if(p==null)throw"Parent node is null!";if(this.graphs.indexOf(f)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(f),f.parent!=null)throw"Already has a parent!";if(p.child!=null)throw"Already has a child!";return f.parent=p,p.child=f,f}else{_=m,b=p,m=f;var w=b.getOwner(),S=_.getOwner();if(!(w!=null&&w.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(S!=null&&S.getGraphManager()==this))throw"Target not in this graph mgr!";if(w==S)return m.isInterGraph=!1,w.add(m,b,_);if(m.isInterGraph=!0,m.source=b,m.target=_,this.edges.indexOf(m)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(m),!(m.source!=null&&m.target!=null))throw"Edge source and/or target is null!";if(!(m.source.edges.indexOf(m)==-1&&m.target.edges.indexOf(m)==-1))throw"Edge already in source and/or target incidency list!";return m.source.edges.push(m),m.target.edges.push(m),m}},h.prototype.remove=function(f){if(f instanceof o){var p=f;if(p.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(p==this.rootGraph||p.parent!=null&&p.parent.graphManager==this))throw"Invalid parent node!";var m=[];m=m.concat(p.getEdges());for(var b,_=m.length,w=0;w<_;w++)b=m[w],p.remove(b);var S=[];S=S.concat(p.getNodes());var C;_=S.length;for(var w=0;w<_;w++)C=S[w],p.remove(C);p==this.rootGraph&&this.setRootGraph(null);var A=this.graphs.indexOf(p);this.graphs.splice(A,1),p.parent=null}else if(f instanceof u){if(b=f,b==null)throw"Edge is null!";if(!b.isInterGraph)throw"Not an inter-graph edge!";if(!(b.source!=null&&b.target!=null))throw"Source and/or target is null!";if(!(b.source.edges.indexOf(b)!=-1&&b.target.edges.indexOf(b)!=-1))throw"Source and/or target doesn't know this edge!";var A=b.source.edges.indexOf(b);if(b.source.edges.splice(A,1),A=b.target.edges.indexOf(b),b.target.edges.splice(A,1),!(b.source.owner!=null&&b.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(b.source.owner.getGraphManager().edges.indexOf(b)==-1)throw"Not in owner graph manager's edge list!";var A=b.source.owner.getGraphManager().edges.indexOf(b);b.source.owner.getGraphManager().edges.splice(A,1)}},h.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},h.prototype.getGraphs=function(){return this.graphs},h.prototype.getAllNodes=function(){if(this.allNodes==null){for(var f=[],p=this.getGraphs(),m=p.length,b=0;b=f.getRight()?p[0]+=Math.min(f.getX()-h.getX(),h.getRight()-f.getRight()):f.getX()<=h.getX()&&f.getRight()>=h.getRight()&&(p[0]+=Math.min(h.getX()-f.getX(),f.getRight()-h.getRight())),h.getY()<=f.getY()&&h.getBottom()>=f.getBottom()?p[1]+=Math.min(f.getY()-h.getY(),h.getBottom()-f.getBottom()):f.getY()<=h.getY()&&f.getBottom()>=h.getBottom()&&(p[1]+=Math.min(h.getY()-f.getY(),f.getBottom()-h.getBottom()));var _=Math.abs((f.getCenterY()-h.getCenterY())/(f.getCenterX()-h.getCenterX()));f.getCenterY()===h.getCenterY()&&f.getCenterX()===h.getCenterX()&&(_=1);var w=_*p[0],S=p[1]/_;p[0]w)return p[0]=m,p[1]=C,p[2]=_,p[3]=G,!1;if(b_)return p[0]=S,p[1]=b,p[2]=U,p[3]=w,!1;if(m<_)return p[0]=A,p[1]=b,p[2]=M,p[3]=w,!1}else{var Q=h.height/h.width,V=f.height/f.width,j=(w-b)/(_-m),ee=void 0,te=void 0,ne=void 0,se=void 0,ie=void 0,ge=void 0;if(-Q===j?m>_?(p[0]=k,p[1]=I,Y=!0):(p[0]=A,p[1]=C,Y=!0):Q===j&&(m>_?(p[0]=S,p[1]=C,Y=!0):(p[0]=N,p[1]=I,Y=!0)),-V===j?_>m?(p[2]=$,p[3]=G,W=!0):(p[2]=U,p[3]=F,W=!0):V===j&&(_>m?(p[2]=M,p[3]=F,W=!0):(p[2]=B,p[3]=G,W=!0)),Y&&W)return!1;if(m>_?b>w?(ee=this.getCardinalDirection(Q,j,4),te=this.getCardinalDirection(V,j,2)):(ee=this.getCardinalDirection(-Q,j,3),te=this.getCardinalDirection(-V,j,1)):b>w?(ee=this.getCardinalDirection(-Q,j,1),te=this.getCardinalDirection(-V,j,3)):(ee=this.getCardinalDirection(Q,j,2),te=this.getCardinalDirection(V,j,4)),!Y)switch(ee){case 1:se=C,ne=m+-P/j,p[0]=ne,p[1]=se;break;case 2:ne=N,se=b+L*j,p[0]=ne,p[1]=se;break;case 3:se=I,ne=m+P/j,p[0]=ne,p[1]=se;break;case 4:ne=k,se=b+-L*j,p[0]=ne,p[1]=se;break}if(!W)switch(te){case 1:ge=F,ie=_+-z/j,p[2]=ie,p[3]=ge;break;case 2:ie=B,ge=w+Z*j,p[2]=ie,p[3]=ge;break;case 3:ge=G,ie=_+z/j,p[2]=ie,p[3]=ge;break;case 4:ie=$,ge=w+-Z*j,p[2]=ie,p[3]=ge;break}}return!1},u.getCardinalDirection=function(h,f,p){return h>f?p:1+p%4},u.getIntersection=function(h,f,p,m){if(m==null)return this.getIntersection2(h,f,p);var b=h.x,_=h.y,w=f.x,S=f.y,C=p.x,A=p.y,k=m.x,I=m.y,N=void 0,L=void 0,P=void 0,M=void 0,F=void 0,U=void 0,$=void 0,G=void 0,B=void 0;return P=S-_,F=b-w,$=w*_-b*S,M=I-A,U=C-k,G=k*A-C*I,B=P*U-M*F,B===0?null:(N=(F*G-U*$)/B,L=(M*$-P*G)/B,new o(N,L))},u.angleOfVector=function(h,f,p,m){var b=void 0;return h!==p?(b=Math.atan((m-f)/(p-h)),p=0){var I=(-C+Math.sqrt(C*C-4*S*A))/(2*S),N=(-C-Math.sqrt(C*C-4*S*A))/(2*S),L=null;return I>=0&&I<=1?[I]:N>=0&&N<=1?[N]:L}else return null},u.HALF_PI=.5*Math.PI,u.ONE_AND_HALF_PI=1.5*Math.PI,u.TWO_PI=2*Math.PI,u.THREE_PI=3*Math.PI,r.exports=u},function(r,a,s){function o(){}o.sign=function(u){return u>0?1:u<0?-1:0},o.floor=function(u){return u<0?Math.ceil(u):Math.floor(u)},o.ceil=function(u){return u<0?Math.floor(u):Math.ceil(u)},r.exports=o},function(r,a,s){function o(){}o.MAX_VALUE=2147483647,o.MIN_VALUE=-2147483648,r.exports=o},function(r,a,s){var o=function(){function b(_,w){for(var S=0;S"u"?"undefined":o(h);return h==null||f!="object"&&f!="function"},r.exports=u},function(r,a,s){function o(C){if(Array.isArray(C)){for(var A=0,k=Array(C.length);A0&&A;){for(P.push(F[0]);P.length>0&&A;){var U=P[0];P.splice(0,1),L.add(U);for(var $=U.getEdges(),N=0;N<$.length;N++){var G=$[N].getOtherEnd(U);if(M.get(U)!=G)if(!L.has(G))P.push(G),M.set(G,U);else{A=!1;break}}}if(!A)C=[];else{var B=[].concat(o(L));C.push(B);for(var N=0;N-1&&F.splice(z,1)}L=new Set,M=new Map}}return C},S.prototype.createDummyNodesForBendpoints=function(C){for(var A=[],k=C.source,I=this.graphManager.calcLowestCommonAncestor(C.source,C.target),N=0;N0){for(var I=this.edgeToDummyNodes.get(k),N=0;N=0&&A.splice(G,1);var B=M.getNeighborsList();B.forEach(function(Y){if(k.indexOf(Y)<0){var W=I.get(Y),Q=W-1;Q==1&&U.push(Y),I.set(Y,Q)}})}k=k.concat(U),(A.length==1||A.length==2)&&(N=!0,L=A[0])}return L},S.prototype.setGraphManager=function(C){this.graphManager=C},r.exports=S},function(r,a,s){function o(){}o.seed=1,o.x=0,o.nextDouble=function(){return o.x=Math.sin(o.seed++)*1e4,o.x-Math.floor(o.x)},r.exports=o},function(r,a,s){var o=s(5);function u(h,f){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}u.prototype.getWorldOrgX=function(){return this.lworldOrgX},u.prototype.setWorldOrgX=function(h){this.lworldOrgX=h},u.prototype.getWorldOrgY=function(){return this.lworldOrgY},u.prototype.setWorldOrgY=function(h){this.lworldOrgY=h},u.prototype.getWorldExtX=function(){return this.lworldExtX},u.prototype.setWorldExtX=function(h){this.lworldExtX=h},u.prototype.getWorldExtY=function(){return this.lworldExtY},u.prototype.setWorldExtY=function(h){this.lworldExtY=h},u.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},u.prototype.setDeviceOrgX=function(h){this.ldeviceOrgX=h},u.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},u.prototype.setDeviceOrgY=function(h){this.ldeviceOrgY=h},u.prototype.getDeviceExtX=function(){return this.ldeviceExtX},u.prototype.setDeviceExtX=function(h){this.ldeviceExtX=h},u.prototype.getDeviceExtY=function(){return this.ldeviceExtY},u.prototype.setDeviceExtY=function(h){this.ldeviceExtY=h},u.prototype.transformX=function(h){var f=0,p=this.lworldExtX;return p!=0&&(f=this.ldeviceOrgX+(h-this.lworldOrgX)*this.ldeviceExtX/p),f},u.prototype.transformY=function(h){var f=0,p=this.lworldExtY;return p!=0&&(f=this.ldeviceOrgY+(h-this.lworldOrgY)*this.ldeviceExtY/p),f},u.prototype.inverseTransformX=function(h){var f=0,p=this.ldeviceExtX;return p!=0&&(f=this.lworldOrgX+(h-this.ldeviceOrgX)*this.lworldExtX/p),f},u.prototype.inverseTransformY=function(h){var f=0,p=this.ldeviceExtY;return p!=0&&(f=this.lworldOrgY+(h-this.ldeviceOrgY)*this.lworldExtY/p),f},u.prototype.inverseTransformPoint=function(h){var f=new o(this.inverseTransformX(h.x),this.inverseTransformY(h.y));return f},r.exports=u},function(r,a,s){function o(w){if(Array.isArray(w)){for(var S=0,C=Array(w.length);Sh.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*h.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(w-h.ADAPTATION_LOWER_NODE_LIMIT)/(h.ADAPTATION_UPPER_NODE_LIMIT-h.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-h.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=h.MAX_NODE_DISPLACEMENT_INCREMENTAL):(w>h.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(h.COOLING_ADAPTATION_FACTOR,1-(w-h.ADAPTATION_LOWER_NODE_LIMIT)/(h.ADAPTATION_UPPER_NODE_LIMIT-h.ADAPTATION_LOWER_NODE_LIMIT)*(1-h.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=h.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*h.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},b.prototype.calcSpringForces=function(){for(var w=this.getAllEdges(),S,C=0;C0&&arguments[0]!==void 0?arguments[0]:!0,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C,A,k,I,N=this.getAllNodes(),L;if(this.useFRGridVariant)for(this.totalIterations%h.GRID_CALCULATION_CHECK_PERIOD==1&&w&&this.updateGrid(),L=new Set,C=0;CP||L>P)&&(w.gravitationForceX=-this.gravityConstant*k,w.gravitationForceY=-this.gravityConstant*I)):(P=S.getEstimatedSize()*this.compoundGravityRangeFactor,(N>P||L>P)&&(w.gravitationForceX=-this.gravityConstant*k*this.compoundGravityConstant,w.gravitationForceY=-this.gravityConstant*I*this.compoundGravityConstant))},b.prototype.isConverged=function(){var w,S=!1;return this.totalIterations>this.maxIterations/3&&(S=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),w=this.totalDisplacement=N.length||P>=N[0].length)){for(var M=0;Mb}}]),p}();r.exports=f},function(r,a,s){function o(){}o.svd=function(u){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=u.length,this.n=u[0].length;var h=Math.min(this.m,this.n);this.s=function(Ln){for(var pr=[];Ln-- >0;)pr.push(0);return pr}(Math.min(this.m+1,this.n)),this.U=function(Ln){var pr=function Cr(Zr){if(Zr.length==0)return 0;for(var Pr=[],Ci=0;Ci0;)pr.push(0);return pr}(this.n),p=function(Ln){for(var pr=[];Ln-- >0;)pr.push(0);return pr}(this.m),m=!0,b=Math.min(this.m-1,this.n),_=Math.max(0,Math.min(this.n-2,this.m)),w=0;w=0;V--)if(this.s[V]!==0){for(var j=V+1;j=0;ce--){if(function(Ln,pr){return Ln&&pr}(ce<_,f[ce]!==0))for(var be=ce+1;be0;){var Ie=void 0,Le=void 0;for(Ie=Y-2;Ie>=-1&&Ie!==-1;Ie--)if(Math.abs(f[Ie])<=Ce+we*(Math.abs(this.s[Ie])+Math.abs(this.s[Ie+1]))){f[Ie]=0;break}if(Ie===Y-2)Le=4;else{var Fe=void 0;for(Fe=Y-1;Fe>=Ie&&Fe!==Ie;Fe--){var Ve=(Fe!==Y?Math.abs(f[Fe]):0)+(Fe!==Ie+1?Math.abs(f[Fe-1]):0);if(Math.abs(this.s[Fe])<=Ce+we*Ve){this.s[Fe]=0;break}}Fe===Ie?Le=3:Fe===Y-1?Le=1:(Le=2,Ie=Fe)}switch(Ie++,Le){case 1:{var Oe=f[Y-2];f[Y-2]=0;for(var Dt=Y-2;Dt>=Ie;Dt--){var ot=o.hypot(this.s[Dt],Oe),sn=this.s[Dt]/ot,Kt=Oe/ot;this.s[Dt]=ot,Dt!==Ie&&(Oe=-Kt*f[Dt-1],f[Dt-1]=sn*f[Dt-1]);for(var Ft=0;Ft=this.s[Ie+1]);){var Ar=this.s[Ie];if(this.s[Ie]=this.s[Ie+1],this.s[Ie+1]=Ar,IeMath.abs(h)?(f=h/u,f=Math.abs(u)*Math.sqrt(1+f*f)):h!=0?(f=u/h,f=Math.abs(h)*Math.sqrt(1+f*f)):f=0,f},r.exports=o},function(r,a,s){var o=function(){function f(p,m){for(var b=0;b2&&arguments[2]!==void 0?arguments[2]:1,_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;u(this,f),this.sequence1=p,this.sequence2=m,this.match_score=b,this.mismatch_penalty=_,this.gap_penalty=w,this.iMax=p.length+1,this.jMax=m.length+1,this.grid=new Array(this.iMax);for(var S=0;S=0;p--){var m=this.listeners[p];m.event===h&&m.callback===f&&this.listeners.splice(p,1)}},u.emit=function(h,f){for(var p=0;p{var a={45:(h,f,p)=>{var m={};m.layoutBase=p(551),m.CoSEConstants=p(806),m.CoSEEdge=p(767),m.CoSEGraph=p(880),m.CoSEGraphManager=p(578),m.CoSELayout=p(765),m.CoSENode=p(991),m.ConstraintHandler=p(902),h.exports=m},806:(h,f,p)=>{var m=p(551).FDLayoutConstants;function b(){}for(var _ in m)b[_]=m[_];b.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,b.DEFAULT_RADIAL_SEPARATION=m.DEFAULT_EDGE_LENGTH,b.DEFAULT_COMPONENT_SEPERATION=60,b.TILE=!0,b.TILING_PADDING_VERTICAL=10,b.TILING_PADDING_HORIZONTAL=10,b.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,b.ENFORCE_CONSTRAINTS=!0,b.APPLY_LAYOUT=!0,b.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,b.TREE_REDUCTION_ON_INCREMENTAL=!0,b.PURE_INCREMENTAL=b.DEFAULT_INCREMENTAL,h.exports=b},767:(h,f,p)=>{var m=p(551).FDLayoutEdge;function b(w,S,C){m.call(this,w,S,C)}b.prototype=Object.create(m.prototype);for(var _ in m)b[_]=m[_];h.exports=b},880:(h,f,p)=>{var m=p(551).LGraph;function b(w,S,C){m.call(this,w,S,C)}b.prototype=Object.create(m.prototype);for(var _ in m)b[_]=m[_];h.exports=b},578:(h,f,p)=>{var m=p(551).LGraphManager;function b(w){m.call(this,w)}b.prototype=Object.create(m.prototype);for(var _ in m)b[_]=m[_];h.exports=b},765:(h,f,p)=>{var m=p(551).FDLayout,b=p(578),_=p(880),w=p(991),S=p(767),C=p(806),A=p(902),k=p(551).FDLayoutConstants,I=p(551).LayoutConstants,N=p(551).Point,L=p(551).PointD,P=p(551).DimensionD,M=p(551).Layout,F=p(551).Integer,U=p(551).IGeometry,$=p(551).LGraph,G=p(551).Transform,B=p(551).LinkedList;function Z(){m.call(this),this.toBeTiled={},this.constraints={}}Z.prototype=Object.create(m.prototype);for(var z in m)Z[z]=m[z];Z.prototype.newGraphManager=function(){var Y=new b(this);return this.graphManager=Y,Y},Z.prototype.newGraph=function(Y){return new _(null,this.graphManager,Y)},Z.prototype.newNode=function(Y){return new w(this.graphManager,Y)},Z.prototype.newEdge=function(Y){return new S(null,null,Y)},Z.prototype.initParameters=function(){m.prototype.initParameters.call(this,arguments),this.isSubLayout||(C.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=C.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=C.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=k.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=k.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=k.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=k.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},Z.prototype.initSpringEmbedder=function(){m.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/k.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},Z.prototype.layout=function(){var Y=I.DEFAULT_CREATE_BENDS_AS_NEEDED;return Y&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},Z.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(C.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var W=new Set(this.getAllNodes()),Q=this.nodesWithGravity.filter(function(ee){return W.has(ee)});this.graphManager.setAllNodesToApplyGravitation(Q)}}else{var Y=this.getFlatForest();if(Y.length>0)this.positionNodesRadially(Y);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var W=new Set(this.getAllNodes()),Q=this.nodesWithGravity.filter(function(V){return W.has(V)});this.graphManager.setAllNodesToApplyGravitation(Q),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(A.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),C.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},Z.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%k.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var Y=new Set(this.getAllNodes()),W=this.nodesWithGravity.filter(function(j){return Y.has(j)});this.graphManager.setAllNodesToApplyGravitation(W),this.graphManager.updateBounds(),this.updateGrid(),C.PURE_INCREMENTAL?this.coolingFactor=k.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=k.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),C.PURE_INCREMENTAL?this.coolingFactor=k.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=k.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var Q=!this.isTreeGrowing&&!this.isGrowthFinished,V=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(Q,V),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},Z.prototype.getPositionsData=function(){for(var Y=this.graphManager.getAllNodes(),W={},Q=0;Q0&&this.updateDisplacements();for(var Q=0;Q0&&(V.fixedNodeWeight=ee)}}if(this.constraints.relativePlacementConstraint){var te=new Map,ne=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(ye){Y.fixedNodesOnHorizontal.add(ye),Y.fixedNodesOnVertical.add(ye)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var se=this.constraints.alignmentConstraint.vertical,Q=0;Q=2*ye.length/3;we--)Ee=Math.floor(Math.random()*(we+1)),he=ye[we],ye[we]=ye[Ee],ye[Ee]=he;return ye},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(ye){if(ye.left){var Ee=te.has(ye.left)?te.get(ye.left):ye.left,he=te.has(ye.right)?te.get(ye.right):ye.right;Y.nodesInRelativeHorizontal.includes(Ee)||(Y.nodesInRelativeHorizontal.push(Ee),Y.nodeToRelativeConstraintMapHorizontal.set(Ee,[]),Y.dummyToNodeForVerticalAlignment.has(Ee)?Y.nodeToTempPositionMapHorizontal.set(Ee,Y.idToNodeMap.get(Y.dummyToNodeForVerticalAlignment.get(Ee)[0]).getCenterX()):Y.nodeToTempPositionMapHorizontal.set(Ee,Y.idToNodeMap.get(Ee).getCenterX())),Y.nodesInRelativeHorizontal.includes(he)||(Y.nodesInRelativeHorizontal.push(he),Y.nodeToRelativeConstraintMapHorizontal.set(he,[]),Y.dummyToNodeForVerticalAlignment.has(he)?Y.nodeToTempPositionMapHorizontal.set(he,Y.idToNodeMap.get(Y.dummyToNodeForVerticalAlignment.get(he)[0]).getCenterX()):Y.nodeToTempPositionMapHorizontal.set(he,Y.idToNodeMap.get(he).getCenterX())),Y.nodeToRelativeConstraintMapHorizontal.get(Ee).push({right:he,gap:ye.gap}),Y.nodeToRelativeConstraintMapHorizontal.get(he).push({left:Ee,gap:ye.gap})}else{var we=ne.has(ye.top)?ne.get(ye.top):ye.top,Ce=ne.has(ye.bottom)?ne.get(ye.bottom):ye.bottom;Y.nodesInRelativeVertical.includes(we)||(Y.nodesInRelativeVertical.push(we),Y.nodeToRelativeConstraintMapVertical.set(we,[]),Y.dummyToNodeForHorizontalAlignment.has(we)?Y.nodeToTempPositionMapVertical.set(we,Y.idToNodeMap.get(Y.dummyToNodeForHorizontalAlignment.get(we)[0]).getCenterY()):Y.nodeToTempPositionMapVertical.set(we,Y.idToNodeMap.get(we).getCenterY())),Y.nodesInRelativeVertical.includes(Ce)||(Y.nodesInRelativeVertical.push(Ce),Y.nodeToRelativeConstraintMapVertical.set(Ce,[]),Y.dummyToNodeForHorizontalAlignment.has(Ce)?Y.nodeToTempPositionMapVertical.set(Ce,Y.idToNodeMap.get(Y.dummyToNodeForHorizontalAlignment.get(Ce)[0]).getCenterY()):Y.nodeToTempPositionMapVertical.set(Ce,Y.idToNodeMap.get(Ce).getCenterY())),Y.nodeToRelativeConstraintMapVertical.get(we).push({bottom:Ce,gap:ye.gap}),Y.nodeToRelativeConstraintMapVertical.get(Ce).push({top:we,gap:ye.gap})}});else{var ge=new Map,ce=new Map;this.constraints.relativePlacementConstraint.forEach(function(ye){if(ye.left){var Ee=te.has(ye.left)?te.get(ye.left):ye.left,he=te.has(ye.right)?te.get(ye.right):ye.right;ge.has(Ee)?ge.get(Ee).push(he):ge.set(Ee,[he]),ge.has(he)?ge.get(he).push(Ee):ge.set(he,[Ee])}else{var we=ne.has(ye.top)?ne.get(ye.top):ye.top,Ce=ne.has(ye.bottom)?ne.get(ye.bottom):ye.bottom;ce.has(we)?ce.get(we).push(Ce):ce.set(we,[Ce]),ce.has(Ce)?ce.get(Ce).push(we):ce.set(Ce,[we])}});var be=function(Ee,he){var we=[],Ce=[],Ie=new B,Le=new Set,Fe=0;return Ee.forEach(function(Ve,Oe){if(!Le.has(Oe)){we[Fe]=[],Ce[Fe]=!1;var Dt=Oe;for(Ie.push(Dt),Le.add(Dt),we[Fe].push(Dt);Ie.length!=0;){Dt=Ie.shift(),he.has(Dt)&&(Ce[Fe]=!0);var ot=Ee.get(Dt);ot.forEach(function(sn){Le.has(sn)||(Ie.push(sn),Le.add(sn),we[Fe].push(sn))})}Fe++}}),{components:we,isFixed:Ce}},ve=be(ge,Y.fixedNodesOnHorizontal);this.componentsOnHorizontal=ve.components,this.fixedComponentsOnHorizontal=ve.isFixed;var De=be(ce,Y.fixedNodesOnVertical);this.componentsOnVertical=De.components,this.fixedComponentsOnVertical=De.isFixed}}},Z.prototype.updateDisplacements=function(){var Y=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(De){var ye=Y.idToNodeMap.get(De.nodeId);ye.displacementX=0,ye.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var W=this.constraints.alignmentConstraint.vertical,Q=0;Q1){var ne;for(ne=0;neV&&(V=Math.floor(te.y)),ee=Math.floor(te.x+C.DEFAULT_COMPONENT_SEPERATION)}this.transform(new L(I.WORLD_CENTER_X-te.x/2,I.WORLD_CENTER_Y-te.y/2))},Z.radialLayout=function(Y,W,Q){var V=Math.max(this.maxDiagonalInTree(Y),C.DEFAULT_RADIAL_SEPARATION);Z.branchRadialLayout(W,null,0,359,0,V);var j=$.calculateBounds(Y),ee=new G;ee.setDeviceOrgX(j.getMinX()),ee.setDeviceOrgY(j.getMinY()),ee.setWorldOrgX(Q.x),ee.setWorldOrgY(Q.y);for(var te=0;te1;){var he=Ee[0];Ee.splice(0,1);var we=ce.indexOf(he);we>=0&&ce.splice(we,1),De--,be--}W!=null?ye=(ce.indexOf(Ee[0])+1)%De:ye=0;for(var Ce=Math.abs(V-Q)/be,Ie=ye;ve!=be;Ie=++Ie%De){var Le=ce[Ie].getOtherEnd(Y);if(Le!=W){var Fe=(Q+ve*Ce)%360,Ve=(Fe+Ce)%360;Z.branchRadialLayout(Le,Y,Fe,Ve,j+ee,ee),ve++}}},Z.maxDiagonalInTree=function(Y){for(var W=F.MIN_VALUE,Q=0;QW&&(W=j)}return W},Z.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},Z.prototype.groupZeroDegreeMembers=function(){var Y=this,W={};this.memberGroups={},this.idToDummyNode={};for(var Q=[],V=this.graphManager.getAllNodes(),j=0;j"u"&&(W[ne]=[]),W[ne]=W[ne].concat(ee)}Object.keys(W).forEach(function(se){if(W[se].length>1){var ie="DummyCompound_"+se;Y.memberGroups[ie]=W[se];var ge=W[se][0].getParent(),ce=new w(Y.graphManager);ce.id=ie,ce.paddingLeft=ge.paddingLeft||0,ce.paddingRight=ge.paddingRight||0,ce.paddingBottom=ge.paddingBottom||0,ce.paddingTop=ge.paddingTop||0,Y.idToDummyNode[ie]=ce;var be=Y.getGraphManager().add(Y.newGraph(),ce),ve=ge.getChild();ve.add(ce);for(var De=0;Dej?(V.rect.x-=(V.labelWidth-j)/2,V.setWidth(V.labelWidth),V.labelMarginLeft=(V.labelWidth-j)/2):V.labelPosHorizontal=="right"&&V.setWidth(j+V.labelWidth)),V.labelHeight&&(V.labelPosVertical=="top"?(V.rect.y-=V.labelHeight,V.setHeight(ee+V.labelHeight),V.labelMarginTop=V.labelHeight):V.labelPosVertical=="center"&&V.labelHeight>ee?(V.rect.y-=(V.labelHeight-ee)/2,V.setHeight(V.labelHeight),V.labelMarginTop=(V.labelHeight-ee)/2):V.labelPosVertical=="bottom"&&V.setHeight(ee+V.labelHeight))}})},Z.prototype.repopulateCompounds=function(){for(var Y=this.compoundOrder.length-1;Y>=0;Y--){var W=this.compoundOrder[Y],Q=W.id,V=W.paddingLeft,j=W.paddingTop,ee=W.labelMarginLeft,te=W.labelMarginTop;this.adjustLocations(this.tiledMemberPack[Q],W.rect.x,W.rect.y,V,j,ee,te)}},Z.prototype.repopulateZeroDegreeMembers=function(){var Y=this,W=this.tiledZeroDegreePack;Object.keys(W).forEach(function(Q){var V=Y.idToDummyNode[Q],j=V.paddingLeft,ee=V.paddingTop,te=V.labelMarginLeft,ne=V.labelMarginTop;Y.adjustLocations(W[Q],V.rect.x,V.rect.y,j,ee,te,ne)})},Z.prototype.getToBeTiled=function(Y){var W=Y.id;if(this.toBeTiled[W]!=null)return this.toBeTiled[W];var Q=Y.getChild();if(Q==null)return this.toBeTiled[W]=!1,!1;for(var V=Q.getNodes(),j=0;j0)return this.toBeTiled[W]=!1,!1;if(ee.getChild()==null){this.toBeTiled[ee.id]=!1;continue}if(!this.getToBeTiled(ee))return this.toBeTiled[W]=!1,!1}return this.toBeTiled[W]=!0,!0},Z.prototype.getNodeDegree=function(Y){Y.id;for(var W=Y.getEdges(),Q=0,V=0;Vge&&(ge=be.rect.height)}Q+=ge+Y.verticalPadding}},Z.prototype.tileCompoundMembers=function(Y,W){var Q=this;this.tiledMemberPack=[],Object.keys(Y).forEach(function(V){var j=W[V];if(Q.tiledMemberPack[V]=Q.tileNodes(Y[V],j.paddingLeft+j.paddingRight),j.rect.width=Q.tiledMemberPack[V].width,j.rect.height=Q.tiledMemberPack[V].height,j.setCenter(Q.tiledMemberPack[V].centerX,Q.tiledMemberPack[V].centerY),j.labelMarginLeft=0,j.labelMarginTop=0,C.NODE_DIMENSIONS_INCLUDE_LABELS){var ee=j.rect.width,te=j.rect.height;j.labelWidth&&(j.labelPosHorizontal=="left"?(j.rect.x-=j.labelWidth,j.setWidth(ee+j.labelWidth),j.labelMarginLeft=j.labelWidth):j.labelPosHorizontal=="center"&&j.labelWidth>ee?(j.rect.x-=(j.labelWidth-ee)/2,j.setWidth(j.labelWidth),j.labelMarginLeft=(j.labelWidth-ee)/2):j.labelPosHorizontal=="right"&&j.setWidth(ee+j.labelWidth)),j.labelHeight&&(j.labelPosVertical=="top"?(j.rect.y-=j.labelHeight,j.setHeight(te+j.labelHeight),j.labelMarginTop=j.labelHeight):j.labelPosVertical=="center"&&j.labelHeight>te?(j.rect.y-=(j.labelHeight-te)/2,j.setHeight(j.labelHeight),j.labelMarginTop=(j.labelHeight-te)/2):j.labelPosVertical=="bottom"&&j.setHeight(te+j.labelHeight))}})},Z.prototype.tileNodes=function(Y,W){var Q=this.tileNodesByFavoringDim(Y,W,!0),V=this.tileNodesByFavoringDim(Y,W,!1),j=this.getOrgRatio(Q),ee=this.getOrgRatio(V),te;return eene&&(ne=De.getWidth())});var se=ee/j,ie=te/j,ge=Math.pow(Q-V,2)+4*(se+V)*(ie+Q)*j,ce=(V-Q+Math.sqrt(ge))/(2*(se+V)),be;W?(be=Math.ceil(ce),be==ce&&be++):be=Math.floor(ce);var ve=be*(se+V)-V;return ne>ve&&(ve=ne),ve+=V*2,ve},Z.prototype.tileNodesByFavoringDim=function(Y,W,Q){var V=C.TILING_PADDING_VERTICAL,j=C.TILING_PADDING_HORIZONTAL,ee=C.TILING_COMPARE_BY,te={rows:[],rowWidth:[],rowHeight:[],width:0,height:W,verticalPadding:V,horizontalPadding:j,centerX:0,centerY:0};ee&&(te.idealRowWidth=this.calcIdealRowWidth(Y,Q));var ne=function(ye){return ye.rect.width*ye.rect.height},se=function(ye,Ee){return ne(Ee)-ne(ye)};Y.sort(function(De,ye){var Ee=se;return te.idealRowWidth?(Ee=ee,Ee(De.id,ye.id)):Ee(De,ye)});for(var ie=0,ge=0,ce=0;ce0&&(te+=Y.horizontalPadding),Y.rowWidth[Q]=te,Y.width0&&(ne+=Y.verticalPadding);var se=0;ne>Y.rowHeight[Q]&&(se=Y.rowHeight[Q],Y.rowHeight[Q]=ne,se=Y.rowHeight[Q]-se),Y.height+=se,Y.rows[Q].push(W)},Z.prototype.getShortestRowIndex=function(Y){for(var W=-1,Q=Number.MAX_VALUE,V=0;VQ&&(W=V,Q=Y.rowWidth[V]);return W},Z.prototype.canAddHorizontal=function(Y,W,Q){if(Y.idealRowWidth){var V=Y.rows.length-1,j=Y.rowWidth[V];return j+W+Y.horizontalPadding<=Y.idealRowWidth}var ee=this.getShortestRowIndex(Y);if(ee<0)return!0;var te=Y.rowWidth[ee];if(te+Y.horizontalPadding+W<=Y.width)return!0;var ne=0;Y.rowHeight[ee]0&&(ne=Q+Y.verticalPadding-Y.rowHeight[ee]);var se;Y.width-te>=W+Y.horizontalPadding?se=(Y.height+ne)/(te+W+Y.horizontalPadding):se=(Y.height+ne)/Y.width,ne=Q+Y.verticalPadding;var ie;return Y.widthee&&W!=Q){V.splice(-1,1),Y.rows[Q].push(j),Y.rowWidth[W]=Y.rowWidth[W]-ee,Y.rowWidth[Q]=Y.rowWidth[Q]+ee,Y.width=Y.rowWidth[instance.getLongestRowIndex(Y)];for(var te=Number.MIN_VALUE,ne=0;nete&&(te=V[ne].height);W>0&&(te+=Y.verticalPadding);var se=Y.rowHeight[W]+Y.rowHeight[Q];Y.rowHeight[W]=te,Y.rowHeight[Q]0)for(var ve=j;ve<=ee;ve++)be[0]+=this.grid[ve][te-1].length+this.grid[ve][te].length-1;if(ee0)for(var ve=te;ve<=ne;ve++)be[3]+=this.grid[j-1][ve].length+this.grid[j][ve].length-1;for(var De=F.MAX_VALUE,ye,Ee,he=0;he{var m=p(551).FDLayoutNode,b=p(551).IMath;function _(S,C,A,k){m.call(this,S,C,A,k)}_.prototype=Object.create(m.prototype);for(var w in m)_[w]=m[w];_.prototype.calculateDisplacement=function(){var S=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=S.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=S.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=S.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=S.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>S.coolingFactor*S.maxNodeDisplacement&&(this.displacementX=S.coolingFactor*S.maxNodeDisplacement*b.sign(this.displacementX)),Math.abs(this.displacementY)>S.coolingFactor*S.maxNodeDisplacement&&(this.displacementY=S.coolingFactor*S.maxNodeDisplacement*b.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},_.prototype.propogateDisplacementToChildren=function(S,C){for(var A=this.getChild().getNodes(),k,I=0;I{function m(A){if(Array.isArray(A)){for(var k=0,I=Array(A.length);k0){var Ar=0;Cn.forEach(function(On){Qe=="horizontal"?(Jt.set(On,N.has(On)?L[N.get(On)]:mt.get(On)),Ar+=Jt.get(On)):(Jt.set(On,N.has(On)?P[N.get(On)]:mt.get(On)),Ar+=Jt.get(On))}),Ar=Ar/Cn.length,vn.forEach(function(On){Ke.has(On)||Jt.set(On,Ar)})}else{var ur=0;vn.forEach(function(On){Qe=="horizontal"?ur+=N.has(On)?L[N.get(On)]:mt.get(On):ur+=N.has(On)?P[N.get(On)]:mt.get(On)}),ur=ur/vn.length,vn.forEach(function(On){Jt.set(On,ur)})}});for(var Wn=function(){var Cn=Vn.shift(),Ar=fe.get(Cn);Ar.forEach(function(ur){if(Jt.get(ur.id)On&&(On=ds),taIr&&(Ir=ta)}}catch(St){pr=!0,Cr=St}finally{try{!Ln&&Zr.return&&Zr.return()}finally{if(pr)throw Cr}}var Os=(Ar+On)/2-(ur+Ir)/2,uo=!0,Ls=!1,La=void 0;try{for(var to=vn[Symbol.iterator](),Fi;!(uo=(Fi=to.next()).done);uo=!0){var Pt=Fi.value;Jt.set(Pt,Jt.get(Pt)+Os)}}catch(St){Ls=!0,La=St}finally{try{!uo&&to.return&&to.return()}finally{if(Ls)throw La}}})}return Jt},z=function(fe){var Qe=0,Ke=0,mt=0,lt=0;if(fe.forEach(function(wn){wn.left?L[N.get(wn.left)]-L[N.get(wn.right)]>=0?Qe++:Ke++:P[N.get(wn.top)]-P[N.get(wn.bottom)]>=0?mt++:lt++}),Qe>Ke&&mt>lt)for(var $t=0;$tKe)for(var Ut=0;Utlt)for(var Jt=0;Jt1)k.fixedNodeConstraint.forEach(function(Xe,fe){V[fe]=[Xe.position.x,Xe.position.y],j[fe]=[L[N.get(Xe.nodeId)],P[N.get(Xe.nodeId)]]}),ee=!0;else if(k.alignmentConstraint)(function(){var Xe=0;if(k.alignmentConstraint.vertical){for(var fe=k.alignmentConstraint.vertical,Qe=function(Jt){var wn=new Set;fe[Jt].forEach(function(Dn){wn.add(Dn)});var Vn=new Set([].concat(m(wn)).filter(function(Dn){return ne.has(Dn)})),Wn=void 0;Vn.size>0?Wn=L[N.get(Vn.values().next().value)]:Wn=B(wn).x,fe[Jt].forEach(function(Dn){V[Xe]=[Wn,P[N.get(Dn)]],j[Xe]=[L[N.get(Dn)],P[N.get(Dn)]],Xe++})},Ke=0;Ke0?Wn=L[N.get(Vn.values().next().value)]:Wn=B(wn).y,mt[Jt].forEach(function(Dn){V[Xe]=[L[N.get(Dn)],Wn],j[Xe]=[L[N.get(Dn)],P[N.get(Dn)]],Xe++})},$t=0;$tce&&(ce=ge[ve].length,be=ve);if(ce0){var Ft={x:0,y:0};k.fixedNodeConstraint.forEach(function(Xe,fe){var Qe={x:L[N.get(Xe.nodeId)],y:P[N.get(Xe.nodeId)]},Ke=Xe.position,mt=G(Ke,Qe);Ft.x+=mt.x,Ft.y+=mt.y}),Ft.x/=k.fixedNodeConstraint.length,Ft.y/=k.fixedNodeConstraint.length,L.forEach(function(Xe,fe){L[fe]+=Ft.x}),P.forEach(function(Xe,fe){P[fe]+=Ft.y}),k.fixedNodeConstraint.forEach(function(Xe){L[N.get(Xe.nodeId)]=Xe.position.x,P[N.get(Xe.nodeId)]=Xe.position.y})}if(k.alignmentConstraint){if(k.alignmentConstraint.vertical)for(var Je=k.alignmentConstraint.vertical,ht=function(fe){var Qe=new Set;Je[fe].forEach(function(lt){Qe.add(lt)});var Ke=new Set([].concat(m(Qe)).filter(function(lt){return ne.has(lt)})),mt=void 0;Ke.size>0?mt=L[N.get(Ke.values().next().value)]:mt=B(Qe).x,Qe.forEach(function(lt){ne.has(lt)||(L[N.get(lt)]=mt)})},et=0;et0?mt=P[N.get(Ke.values().next().value)]:mt=B(Qe).y,Qe.forEach(function(lt){ne.has(lt)||(P[N.get(lt)]=mt)})},Ge=0;Ge{h.exports=r}},s={};function o(h){var f=s[h];if(f!==void 0)return f.exports;var p=s[h]={exports:{}};return a[h](p,p.exports,o),p.exports}var u=o(45);return u})()})}(aat)),aat.exports}(function(e,t){(function(a,s){e.exports=s(dea())})(ml,function(r){return(()=>{var a={658:h=>{h.exports=Object.assign!=null?Object.assign.bind(Object):function(f){for(var p=arguments.length,m=Array(p>1?p-1:0),b=1;b{var m=function(){function w(S,C){var A=[],k=!0,I=!1,N=void 0;try{for(var L=S[Symbol.iterator](),P;!(k=(P=L.next()).done)&&(A.push(P.value),!(C&&A.length===C));k=!0);}catch(M){I=!0,N=M}finally{try{!k&&L.return&&L.return()}finally{if(I)throw N}}return A}return function(S,C){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return w(S,C);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=p(140).layoutBase.LinkedList,_={};_.getTopMostNodes=function(w){for(var S={},C=0;C0&&ee.merge(ie)});for(var te=0;te1){P=N[0],M=P.connectedEdges().length,N.forEach(function(j){j.connectedEdges().length0&&A.set("dummy"+(A.size+1),$),G},_.relocateComponent=function(w,S,C){if(!C.fixedNodeConstraint){var A=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,I=Number.POSITIVE_INFINITY,N=Number.NEGATIVE_INFINITY;if(C.quality=="draft"){var L=!0,P=!1,M=void 0;try{for(var F=S.nodeIndexes[Symbol.iterator](),U;!(L=(U=F.next()).done);L=!0){var $=U.value,G=m($,2),B=G[0],Z=G[1],z=C.cy.getElementById(B);if(z){var Y=z.boundingBox(),W=S.xCoords[Z]-Y.w/2,Q=S.xCoords[Z]+Y.w/2,V=S.yCoords[Z]-Y.h/2,j=S.yCoords[Z]+Y.h/2;Wk&&(k=Q),VN&&(N=j)}}}catch(ie){P=!0,M=ie}finally{try{!L&&F.return&&F.return()}finally{if(P)throw M}}var ee=w.x-(k+A)/2,te=w.y-(N+I)/2;S.xCoords=S.xCoords.map(function(ie){return ie+ee}),S.yCoords=S.yCoords.map(function(ie){return ie+te})}else{Object.keys(S).forEach(function(ie){var ge=S[ie],ce=ge.getRect().x,be=ge.getRect().x+ge.getRect().width,ve=ge.getRect().y,De=ge.getRect().y+ge.getRect().height;cek&&(k=be),veN&&(N=De)});var ne=w.x-(k+A)/2,se=w.y-(N+I)/2;Object.keys(S).forEach(function(ie){var ge=S[ie];ge.setCenter(ge.getCenterX()+ne,ge.getCenterY()+se)})}}},_.calcBoundingBox=function(w,S,C,A){for(var k=Number.MAX_SAFE_INTEGER,I=Number.MIN_SAFE_INTEGER,N=Number.MAX_SAFE_INTEGER,L=Number.MIN_SAFE_INTEGER,P=void 0,M=void 0,F=void 0,U=void 0,$=w.descendants().not(":parent"),G=$.length,B=0;BP&&(k=P),IF&&(N=F),L{var m=p(548),b=p(140).CoSELayout,_=p(140).CoSENode,w=p(140).layoutBase.PointD,S=p(140).layoutBase.DimensionD,C=p(140).layoutBase.LayoutConstants,A=p(140).layoutBase.FDLayoutConstants,k=p(140).CoSEConstants,I=function(L,P){var M=L.cy,F=L.eles,U=F.nodes(),$=F.edges(),G=void 0,B=void 0,Z=void 0,z={};L.randomize&&(G=P.nodeIndexes,B=P.xCoords,Z=P.yCoords);var Y=function(ie){return typeof ie=="function"},W=function(ie,ge){return Y(ie)?ie(ge):ie},Q=m.calcParentsWithoutChildren(M,F),V=function se(ie,ge,ce,be){for(var ve=ge.length,De=0;De0){var Ie=void 0;Ie=ce.getGraphManager().add(ce.newGraph(),he),se(Ie,Ee,ce,be)}}},j=function(ie,ge,ce){for(var be=0,ve=0,De=0;De0?k.DEFAULT_EDGE_LENGTH=A.DEFAULT_EDGE_LENGTH=be/ve:Y(L.idealEdgeLength)?k.DEFAULT_EDGE_LENGTH=A.DEFAULT_EDGE_LENGTH=50:k.DEFAULT_EDGE_LENGTH=A.DEFAULT_EDGE_LENGTH=L.idealEdgeLength,k.MIN_REPULSION_DIST=A.MIN_REPULSION_DIST=A.DEFAULT_EDGE_LENGTH/10,k.DEFAULT_RADIAL_SEPARATION=A.DEFAULT_EDGE_LENGTH)},ee=function(ie,ge){ge.fixedNodeConstraint&&(ie.constraints.fixedNodeConstraint=ge.fixedNodeConstraint),ge.alignmentConstraint&&(ie.constraints.alignmentConstraint=ge.alignmentConstraint),ge.relativePlacementConstraint&&(ie.constraints.relativePlacementConstraint=ge.relativePlacementConstraint)};L.nestingFactor!=null&&(k.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=A.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=L.nestingFactor),L.gravity!=null&&(k.DEFAULT_GRAVITY_STRENGTH=A.DEFAULT_GRAVITY_STRENGTH=L.gravity),L.numIter!=null&&(k.MAX_ITERATIONS=A.MAX_ITERATIONS=L.numIter),L.gravityRange!=null&&(k.DEFAULT_GRAVITY_RANGE_FACTOR=A.DEFAULT_GRAVITY_RANGE_FACTOR=L.gravityRange),L.gravityCompound!=null&&(k.DEFAULT_COMPOUND_GRAVITY_STRENGTH=A.DEFAULT_COMPOUND_GRAVITY_STRENGTH=L.gravityCompound),L.gravityRangeCompound!=null&&(k.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=A.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=L.gravityRangeCompound),L.initialEnergyOnIncremental!=null&&(k.DEFAULT_COOLING_FACTOR_INCREMENTAL=A.DEFAULT_COOLING_FACTOR_INCREMENTAL=L.initialEnergyOnIncremental),L.tilingCompareBy!=null&&(k.TILING_COMPARE_BY=L.tilingCompareBy),L.quality=="proof"?C.QUALITY=2:C.QUALITY=0,k.NODE_DIMENSIONS_INCLUDE_LABELS=A.NODE_DIMENSIONS_INCLUDE_LABELS=C.NODE_DIMENSIONS_INCLUDE_LABELS=L.nodeDimensionsIncludeLabels,k.DEFAULT_INCREMENTAL=A.DEFAULT_INCREMENTAL=C.DEFAULT_INCREMENTAL=!L.randomize,k.ANIMATE=A.ANIMATE=C.ANIMATE=L.animate,k.TILE=L.tile,k.TILING_PADDING_VERTICAL=typeof L.tilingPaddingVertical=="function"?L.tilingPaddingVertical.call():L.tilingPaddingVertical,k.TILING_PADDING_HORIZONTAL=typeof L.tilingPaddingHorizontal=="function"?L.tilingPaddingHorizontal.call():L.tilingPaddingHorizontal,k.DEFAULT_INCREMENTAL=A.DEFAULT_INCREMENTAL=C.DEFAULT_INCREMENTAL=!0,k.PURE_INCREMENTAL=!L.randomize,C.DEFAULT_UNIFORM_LEAF_NODE_SIZES=L.uniformNodeDimensions,L.step=="transformed"&&(k.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,k.ENFORCE_CONSTRAINTS=!1,k.APPLY_LAYOUT=!1),L.step=="enforced"&&(k.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,k.ENFORCE_CONSTRAINTS=!0,k.APPLY_LAYOUT=!1),L.step=="cose"&&(k.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,k.ENFORCE_CONSTRAINTS=!1,k.APPLY_LAYOUT=!0),L.step=="all"&&(L.randomize?k.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:k.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,k.ENFORCE_CONSTRAINTS=!0,k.APPLY_LAYOUT=!0),L.fixedNodeConstraint||L.alignmentConstraint||L.relativePlacementConstraint?k.TREE_REDUCTION_ON_INCREMENTAL=!1:k.TREE_REDUCTION_ON_INCREMENTAL=!0;var te=new b,ne=te.newGraphManager();return V(ne.addRoot(),m.getTopMostNodes(U),te,L),j(te,ne,$),ee(te,L),te.runLayout(),z};h.exports={coseLayout:I}},212:(h,f,p)=>{var m=function(){function L(P,M){for(var F=0;F0)if(Q){var ee=w.getTopMostNodes(F.eles.nodes());if(Z=w.connectComponents(U,F.eles,ee),Z.forEach(function(Ve){var Oe=Ve.boundingBox();z.push({x:Oe.x1+Oe.w/2,y:Oe.y1+Oe.h/2})}),F.randomize&&Z.forEach(function(Ve){F.eles=Ve,G.push(C(F))}),F.quality=="default"||F.quality=="proof"){var te=U.collection();if(F.tile){var ne=new Map,se=[],ie=[],ge=0,ce={nodeIndexes:ne,xCoords:se,yCoords:ie},be=[];if(Z.forEach(function(Ve,Oe){Ve.edges().length==0&&(Ve.nodes().forEach(function(Dt,ot){te.merge(Ve.nodes()[ot]),Dt.isParent()||(ce.nodeIndexes.set(Ve.nodes()[ot].id(),ge++),ce.xCoords.push(Ve.nodes()[0].position().x),ce.yCoords.push(Ve.nodes()[0].position().y))}),be.push(Oe))}),te.length>1){var ve=te.boundingBox();z.push({x:ve.x1+ve.w/2,y:ve.y1+ve.h/2}),Z.push(te),G.push(ce);for(var De=be.length-1;De>=0;De--)Z.splice(be[De],1),G.splice(be[De],1),z.splice(be[De],1)}}Z.forEach(function(Ve,Oe){F.eles=Ve,B.push(k(F,G[Oe])),w.relocateComponent(z[Oe],B[Oe],F)})}else Z.forEach(function(Ve,Oe){w.relocateComponent(z[Oe],G[Oe],F)});var ye=new Set;if(Z.length>1){var Ee=[],he=$.filter(function(Ve){return Ve.css("display")=="none"});Z.forEach(function(Ve,Oe){var Dt=void 0;if(F.quality=="draft"&&(Dt=G[Oe].nodeIndexes),Ve.nodes().not(he).length>0){var ot={};ot.edges=[],ot.nodes=[];var sn=void 0;Ve.nodes().not(he).forEach(function(Kt){if(F.quality=="draft")if(!Kt.isParent())sn=Dt.get(Kt.id()),ot.nodes.push({x:G[Oe].xCoords[sn]-Kt.boundingbox().w/2,y:G[Oe].yCoords[sn]-Kt.boundingbox().h/2,width:Kt.boundingbox().w,height:Kt.boundingbox().h});else{var Ft=w.calcBoundingBox(Kt,G[Oe].xCoords,G[Oe].yCoords,Dt);ot.nodes.push({x:Ft.topLeftX,y:Ft.topLeftY,width:Ft.width,height:Ft.height})}else B[Oe][Kt.id()]&&ot.nodes.push({x:B[Oe][Kt.id()].getLeft(),y:B[Oe][Kt.id()].getTop(),width:B[Oe][Kt.id()].getWidth(),height:B[Oe][Kt.id()].getHeight()})}),Ve.edges().forEach(function(Kt){var Ft=Kt.source(),Je=Kt.target();if(Ft.css("display")!="none"&&Je.css("display")!="none")if(F.quality=="draft"){var ht=Dt.get(Ft.id()),et=Dt.get(Je.id()),qe=[],He=[];if(Ft.isParent()){var Ge=w.calcBoundingBox(Ft,G[Oe].xCoords,G[Oe].yCoords,Dt);qe.push(Ge.topLeftX+Ge.width/2),qe.push(Ge.topLeftY+Ge.height/2)}else qe.push(G[Oe].xCoords[ht]),qe.push(G[Oe].yCoords[ht]);if(Je.isParent()){var Ye=w.calcBoundingBox(Je,G[Oe].xCoords,G[Oe].yCoords,Dt);He.push(Ye.topLeftX+Ye.width/2),He.push(Ye.topLeftY+Ye.height/2)}else He.push(G[Oe].xCoords[et]),He.push(G[Oe].yCoords[et]);ot.edges.push({startX:qe[0],startY:qe[1],endX:He[0],endY:He[1]})}else B[Oe][Ft.id()]&&B[Oe][Je.id()]&&ot.edges.push({startX:B[Oe][Ft.id()].getCenterX(),startY:B[Oe][Ft.id()].getCenterY(),endX:B[Oe][Je.id()].getCenterX(),endY:B[Oe][Je.id()].getCenterY()})}),ot.nodes.length>0&&(Ee.push(ot),ye.add(Oe))}});var we=W.packComponents(Ee,F.randomize).shifts;if(F.quality=="draft")G.forEach(function(Ve,Oe){var Dt=Ve.xCoords.map(function(sn){return sn+we[Oe].dx}),ot=Ve.yCoords.map(function(sn){return sn+we[Oe].dy});Ve.xCoords=Dt,Ve.yCoords=ot});else{var Ce=0;ye.forEach(function(Ve){Object.keys(B[Ve]).forEach(function(Oe){var Dt=B[Ve][Oe];Dt.setCenter(Dt.getCenterX()+we[Ce].dx,Dt.getCenterY()+we[Ce].dy)}),Ce++})}}}else{var V=F.eles.boundingBox();if(z.push({x:V.x1+V.w/2,y:V.y1+V.h/2}),F.randomize){var j=C(F);G.push(j)}F.quality=="default"||F.quality=="proof"?(B.push(k(F,G[0])),w.relocateComponent(z[0],B[0],F)):w.relocateComponent(z[0],G[0],F)}var Ie=function(Oe,Dt){if(F.quality=="default"||F.quality=="proof"){typeof Oe=="number"&&(Oe=Dt);var ot=void 0,sn=void 0,Kt=Oe.data("id");return B.forEach(function(Je){Kt in Je&&(ot={x:Je[Kt].getRect().getCenterX(),y:Je[Kt].getRect().getCenterY()},sn=Je[Kt])}),F.nodeDimensionsIncludeLabels&&(sn.labelWidth&&(sn.labelPosHorizontal=="left"?ot.x+=sn.labelWidth/2:sn.labelPosHorizontal=="right"&&(ot.x-=sn.labelWidth/2)),sn.labelHeight&&(sn.labelPosVertical=="top"?ot.y+=sn.labelHeight/2:sn.labelPosVertical=="bottom"&&(ot.y-=sn.labelHeight/2))),ot==null&&(ot={x:Oe.position("x"),y:Oe.position("y")}),{x:ot.x,y:ot.y}}else{var Ft=void 0;return G.forEach(function(Je){var ht=Je.nodeIndexes.get(Oe.id());ht!=null&&(Ft={x:Je.xCoords[ht],y:Je.yCoords[ht]})}),Ft==null&&(Ft={x:Oe.position("x"),y:Oe.position("y")}),{x:Ft.x,y:Ft.y}}};if(F.quality=="default"||F.quality=="proof"||F.randomize){var Le=w.calcParentsWithoutChildren(U,$),Fe=$.filter(function(Ve){return Ve.css("display")=="none"});F.eles=$.not(Fe),$.nodes().not(":parent").not(Fe).layoutPositions(M,F,Ie),Le.length>0&&Le.forEach(function(Ve){Ve.position(Ie(Ve))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),L}();h.exports=N},657:(h,f,p)=>{var m=p(548),b=p(140).layoutBase.Matrix,_=p(140).layoutBase.SVD,w=function(C){var A=C.cy,k=C.eles,I=k.nodes(),N=k.nodes(":parent"),L=new Map,P=new Map,M=new Map,F=[],U=[],$=[],G=[],B=[],Z=[],z=[],Y=[],W=void 0,Q=1e8,V=1e-9,j=C.piTol,ee=C.samplingType,te=C.nodeSeparation,ne=void 0,se=function(){for(var fe=0,Qe=0,Ke=!1;Qe=lt;){Ut=mt[lt++];for(var zn=F[Ut],vn=0;vnVn&&(Vn=B[Ar],Wn=Ar)}return Wn},ge=function(fe){var Qe=void 0;if(fe){Qe=Math.floor(Math.random()*W);for(var mt=0;mt=1)break;wn=Jt}for(var Dn=0;Dn=1)break;wn=Jt}for(var vn=0;vn0&&(Qe.isParent()?F[fe].push(M.get(Qe.id())):F[fe].push(Qe.id()))})});var Fe=function(fe){var Qe=P.get(fe),Ke=void 0;L.get(fe).forEach(function(mt){A.getElementById(mt).isParent()?Ke=M.get(mt):Ke=mt,F[Qe].push(Ke),F[P.get(Ke)].push(fe)})},Ve=!0,Oe=!1,Dt=void 0;try{for(var ot=L.keys()[Symbol.iterator](),sn;!(Ve=(sn=ot.next()).done);Ve=!0){var Kt=sn.value;Fe(Kt)}}catch(Xe){Oe=!0,Dt=Xe}finally{try{!Ve&&ot.return&&ot.return()}finally{if(Oe)throw Dt}}W=P.size;var Ft=void 0;if(W>2){ne=W{var m=p(212),b=function(w){w&&w("layout","fcose",m)};typeof cytoscape<"u"&&b(cytoscape),h.exports=b},140:h=>{h.exports=r}},s={};function o(h){var f=s[h];if(f!==void 0)return f.exports;var p=s[h]={exports:{}};return a[h](p,p.exports,o),p.exports}var u=o(579);return u})()})})(gQn);var fea=gQn.exports;const pea=O1(fea);var VTn={L:"left",R:"right",T:"top",B:"bottom"},YTn={L:X(e=>`${e},${e/2} 0,${e} 0,0`,"L"),R:X(e=>`0,${e/2} ${e},0 ${e},${e}`,"R"),T:X(e=>`0,0 ${e},0 ${e/2},${e}`,"T"),B:X(e=>`${e/2},0 ${e},${e} 0,${e}`,"B")},gEe={L:X((e,t)=>e-t+2,"L"),R:X((e,t)=>e-2,"R"),T:X((e,t)=>e-t+2,"T"),B:X((e,t)=>e-2,"B")},gea=X(function(e){return qy(e)?e==="L"?"R":"L":e==="T"?"B":"T"},"getOppositeArchitectureDirection"),jTn=X(function(e){const t=e;return t==="L"||t==="R"||t==="T"||t==="B"},"isArchitectureDirection"),qy=X(function(e){const t=e;return t==="L"||t==="R"},"isArchitectureDirectionX"),y9=X(function(e){const t=e;return t==="T"||t==="B"},"isArchitectureDirectionY"),fbt=X(function(e,t){const r=qy(e)&&y9(t),a=y9(e)&&qy(t);return r||a},"isArchitectureDirectionXY"),mea=X(function(e){const t=e[0],r=e[1],a=qy(t)&&y9(r),s=y9(t)&&qy(r);return a||s},"isArchitecturePairXY"),bea=X(function(e){return e!=="LL"&&e!=="RR"&&e!=="TT"&&e!=="BB"},"isValidArchitectureDirectionPair"),jut=X(function(e,t){const r=`${e}${t}`;return bea(r)?r:void 0},"getArchitectureDirectionPair"),yea=X(function([e,t],r){const a=r[0],s=r[1];return qy(a)?y9(s)?[e+(a==="L"?-1:1),t+(s==="T"?1:-1)]:[e+(a==="L"?-1:1),t]:qy(s)?[e+(s==="L"?1:-1),t+(a==="T"?1:-1)]:[e,t+(a==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),vea=X(function(e){return e==="LT"||e==="TL"?[1,1]:e==="BL"||e==="LB"?[1,-1]:e==="BR"||e==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),_ea=X(function(e,t){return fbt(e,t)?"bend":qy(e)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),wea=X(function(e){return e.type==="service"},"isArchitectureService"),Eea=X(function(e){return e.type==="junction"},"isArchitectureJunction"),mQn=X(e=>e.data(),"edgeData"),BV=X(e=>e.data(),"nodeData"),xea=Cc.architecture,uj,bQn=(uj=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.elements={},this.setAccTitle=N1,this.getAccTitle=Mp,this.setDiagramTitle=Og,this.getDiagramTitle=P1,this.getAccDescription=Bp,this.setAccDescription=Pp,this.clear()}clear(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},M1()}addService({id:t,icon:r,in:a,title:s,iconText:o}){if(this.registeredIds[t]!==void 0)throw new Error(`The service id [${t}] is already in use by another ${this.registeredIds[t]}`);if(a!==void 0){if(t===a)throw new Error(`The service [${t}] cannot be placed within itself`);if(this.registeredIds[a]===void 0)throw new Error(`The service [${t}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[a]==="node")throw new Error(`The service [${t}]'s parent is not a group`)}this.registeredIds[t]="node",this.nodes[t]={id:t,type:"service",icon:r,iconText:o,title:s,edges:[],in:a}}getServices(){return Object.values(this.nodes).filter(wea)}addJunction({id:t,in:r}){this.registeredIds[t]="node",this.nodes[t]={id:t,type:"junction",edges:[],in:r}}getJunctions(){return Object.values(this.nodes).filter(Eea)}getNodes(){return Object.values(this.nodes)}getNode(t){return this.nodes[t]??null}addGroup({id:t,icon:r,in:a,title:s}){var o,u,h;if(((o=this.registeredIds)==null?void 0:o[t])!==void 0)throw new Error(`The group id [${t}] is already in use by another ${this.registeredIds[t]}`);if(a!==void 0){if(t===a)throw new Error(`The group [${t}] cannot be placed within itself`);if(((u=this.registeredIds)==null?void 0:u[a])===void 0)throw new Error(`The group [${t}]'s parent does not exist. Please make sure the parent is created before this group`);if(((h=this.registeredIds)==null?void 0:h[a])==="node")throw new Error(`The group [${t}]'s parent is not a group`)}this.registeredIds[t]="group",this.groups[t]={id:t,icon:r,title:s,in:a}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:t,rhsId:r,lhsDir:a,rhsDir:s,lhsInto:o,rhsInto:u,lhsGroup:h,rhsGroup:f,title:p}){if(!jTn(a))throw new Error(`Invalid direction given for left hand side of edge ${t}--${r}. Expected (L,R,T,B) got ${String(a)}`);if(!jTn(s))throw new Error(`Invalid direction given for right hand side of edge ${t}--${r}. Expected (L,R,T,B) got ${String(s)}`);if(this.nodes[t]===void 0&&this.groups[t]===void 0)throw new Error(`The left-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(this.nodes[r]===void 0&&this.groups[r]===void 0)throw new Error(`The right-hand id [${r}] does not yet exist. Please create the service/group before declaring an edge to it.`);const m=this.nodes[t].in,b=this.nodes[r].in;if(h&&m&&b&&m==b)throw new Error(`The left-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(f&&m&&b&&m==b)throw new Error(`The right-hand id [${r}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const _={lhsId:t,lhsDir:a,lhsInto:o,lhsGroup:h,rhsId:r,rhsDir:s,rhsInto:u,rhsGroup:f,title:p};this.edges.push(_),this.nodes[t]&&this.nodes[r]&&(this.nodes[t].edges.push(this.edges[this.edges.length-1]),this.nodes[r].edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}getDataStructures(){if(this.dataStructures===void 0){const t={},r=Object.entries(this.nodes).reduce((f,[p,m])=>(f[p]=m.edges.reduce((b,_)=>{var C,A;const w=(C=this.getNode(_.lhsId))==null?void 0:C.in,S=(A=this.getNode(_.rhsId))==null?void 0:A.in;if(w&&S&&w!==S){const k=_ea(_.lhsDir,_.rhsDir);k!=="bend"&&(t[w]??(t[w]={}),t[w][S]=k,t[S]??(t[S]={}),t[S][w]=k)}if(_.lhsId===p){const k=jut(_.lhsDir,_.rhsDir);k&&(b[k]=_.rhsId)}else{const k=jut(_.rhsDir,_.lhsDir);k&&(b[k]=_.lhsId)}return b},{}),f),{}),a=Object.keys(r)[0],s={[a]:1},o=Object.keys(r).reduce((f,p)=>p===a?f:{...f,[p]:1},{}),u=X(f=>{const p={[f]:[0,0]},m=[f];for(;m.length>0;){const b=m.shift();if(b){s[b]=1,delete o[b];const _=r[b],[w,S]=p[b];Object.entries(_).forEach(([C,A])=>{s[A]||(p[A]=yea([w,S],C),m.push(A))})}}return p},"BFS"),h=[u(a)];for(;Object.keys(o).length>0;)h.push(u(Object.keys(o)[0]));this.dataStructures={adjList:r,spatialMaps:h,groupAlignments:t}}return this.dataStructures}setElementForId(t,r){this.elements[t]=r}getElementById(t){return this.elements[t]}getConfig(){return cv({...xea,...$c().architecture})}getConfigField(t){return this.getConfig()[t]}},X(uj,"ArchitectureDB"),uj),Sea=X((e,t)=>{z$(e,t),e.groups.map(r=>t.addGroup(r)),e.services.map(r=>t.addService({...r,type:"service"})),e.junctions.map(r=>t.addJunction({...r,type:"junction"})),e.edges.map(r=>t.addEdge(r))},"populateDb"),yQn={parser:{yy:void 0},parse:X(async e=>{var a;const t=await iL("architecture",e);it.debug(t);const r=(a=yQn.parser)==null?void 0:a.yy;if(!(r instanceof bQn))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Sea(t,r)},"parse")},Tea=X(e=>` .edge { stroke-width: ${e.archEdgeWidth}; stroke: ${e.archEdgeColor}; fill: none; } .arrow { fill: ${e.archEdgeArrowColor}; } .node-bkg { fill: none; stroke: ${e.archGroupBorderColor}; stroke-width: ${e.archGroupBorderWidth}; stroke-dasharray: 8; } .node-icon-text { display: flex; align-items: center; } .node-icon-text > div { color: #fff; margin: 1px; height: fit-content; text-align: center; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; } `,"getStyles"),Cea=Tea,nV=X(e=>`${e}`,"wrapIcon"),fle={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:nV('')},server:{body:nV('')},disk:{body:nV('')},internet:{body:nV('')},cloud:{body:nV('')},unknown:mBn,blank:{body:nV("")}}},Aea=X(async function(e,t,r){const a=r.getConfigField("padding"),s=r.getConfigField("iconSize"),o=s/2,u=s/6,h=u/2;await Promise.all(t.edges().map(async f=>{var $,G;const{source:p,sourceDir:m,sourceArrow:b,sourceGroup:_,target:w,targetDir:S,targetArrow:C,targetGroup:A,label:k}=mQn(f);let{x:I,y:N}=f[0].sourceEndpoint();const{x:L,y:P}=f[0].midpoint();let{x:M,y:F}=f[0].targetEndpoint();const U=a+4;if(_&&(qy(m)?I+=m==="L"?-U:U:N+=m==="T"?-U:U+18),A&&(qy(S)?M+=S==="L"?-U:U:F+=S==="T"?-U:U+18),!_&&(($=r.getNode(p))==null?void 0:$.type)==="junction"&&(qy(m)?I+=m==="L"?o:-o:N+=m==="T"?o:-o),!A&&((G=r.getNode(w))==null?void 0:G.type)==="junction"&&(qy(S)?M+=S==="L"?o:-o:F+=S==="T"?o:-o),f[0]._private.rscratch){const B=e.insert("g");if(B.insert("path").attr("d",`M ${I},${N} L ${L},${P} L${M},${F} `).attr("class","edge").attr("id",XV(p,w,{prefix:"L"})),b){const Z=qy(m)?gEe[m](I,u):I-h,z=y9(m)?gEe[m](N,u):N-h;B.insert("polygon").attr("points",YTn[m](u)).attr("transform",`translate(${Z},${z})`).attr("class","arrow")}if(C){const Z=qy(S)?gEe[S](M,u):M-h,z=y9(S)?gEe[S](F,u):F-h;B.insert("polygon").attr("points",YTn[S](u)).attr("transform",`translate(${Z},${z})`).attr("class","arrow")}if(k){const Z=fbt(m,S)?"XY":qy(m)?"X":"Y";let z=0;Z==="X"?z=Math.abs(I-M):Z==="Y"?z=Math.abs(N-F)/1.5:z=Math.abs(I-M)/2;const Y=B.append("g");if(await Yw(Y,k,{useHtmlLabels:!1,width:z,classes:"architecture-service-label"},nn()),Y.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),Z==="X")Y.attr("transform","translate("+L+", "+P+")");else if(Z==="Y")Y.attr("transform","translate("+L+", "+P+") rotate(-90)");else if(Z==="XY"){const W=jut(m,S);if(W&&mea(W)){const Q=Y.node().getBoundingClientRect(),[V,j]=vea(W);Y.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*V*j*45})`);const ee=Y.node().getBoundingClientRect();Y.attr("transform",` translate(${L}, ${P-Q.height/2}) translate(${V*ee.width/2}, ${j*ee.height/2}) rotate(${-1*V*j*45}, 0, ${Q.height/2}) `)}}}}}))},"drawEdges"),kea=X(async function(e,t,r){const s=r.getConfigField("padding")*.75,o=r.getConfigField("fontSize"),h=r.getConfigField("iconSize")/2;await Promise.all(t.nodes().map(async f=>{const p=BV(f);if(p.type==="group"){const{h:m,w:b,x1:_,y1:w}=f.boundingBox(),S=e.append("rect");S.attr("id",`group-${p.id}`).attr("x",_+h).attr("y",w+h).attr("width",b).attr("height",m).attr("class","node-bkg");const C=e.append("g");let A=_,k=w;if(p.icon){const I=C.append("g");I.html(`${await QO(p.icon,{height:s,width:s,fallbackPrefix:fle.prefix})}`),I.attr("transform","translate("+(A+h+1)+", "+(k+h+1)+")"),A+=s,k+=o/2-1-2}if(p.label){const I=C.append("g");await Yw(I,p.label,{useHtmlLabels:!1,width:b,classes:"architecture-service-label"},nn()),I.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),I.attr("transform","translate("+(A+h+4)+", "+(k+h+2)+")")}r.setElementForId(p.id,S)}}))},"drawGroups"),Rea=X(async function(e,t,r){const a=nn();for(const s of r){const o=t.append("g"),u=e.getConfigField("iconSize");if(s.title){const m=o.append("g");await Yw(m,s.title,{useHtmlLabels:!1,width:u*1.5,classes:"architecture-service-label"},a),m.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),m.attr("transform","translate("+u/2+", "+u+")")}const h=o.append("g");if(s.icon)h.html(`${await QO(s.icon,{height:u,width:u,fallbackPrefix:fle.prefix})}`);else if(s.iconText){h.html(`${await QO("blank",{height:u,width:u,fallbackPrefix:fle.prefix})}`);const _=h.append("g").append("foreignObject").attr("width",u).attr("height",u).append("div").attr("class","node-icon-text").attr("style",`height: ${u}px;`).append("div").html(Ic(s.iconText,a)),w=parseInt(window.getComputedStyle(_.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;_.attr("style",`-webkit-line-clamp: ${Math.floor((u-2)/w)};`)}else h.append("path").attr("class","node-bkg").attr("id","node-"+s.id).attr("d",`M0 ${u} v${-u} q0,-5 5,-5 h${u} q5,0 5,5 v${u} H0 Z`);o.attr("id",`service-${s.id}`).attr("class","architecture-service");const{width:f,height:p}=o.node().getBBox();s.width=f,s.height=p,e.setElementForId(s.id,o)}return 0},"drawServices"),Iea=X(function(e,t,r){r.forEach(a=>{const s=t.append("g"),o=e.getConfigField("iconSize");s.append("g").append("rect").attr("id","node-"+a.id).attr("fill-opacity","0").attr("width",o).attr("height",o),s.attr("class","architecture-junction");const{width:h,height:f}=s._groups[0][0].getBBox();s.width=h,s.height=f,e.setElementForId(a.id,s)})},"drawJunctions");yBn([{name:fle.prefix,icons:fle}]);CS.use(pea);function vQn(e,t,r){e.forEach(a=>{t.add({group:"nodes",data:{type:"service",id:a.id,icon:a.icon,label:a.title,parent:a.in,width:r.getConfigField("iconSize"),height:r.getConfigField("iconSize")},classes:"node-service"})})}X(vQn,"addServices");function _Qn(e,t,r){e.forEach(a=>{t.add({group:"nodes",data:{type:"junction",id:a.id,parent:a.in,width:r.getConfigField("iconSize"),height:r.getConfigField("iconSize")},classes:"node-junction"})})}X(_Qn,"addJunctions");function wQn(e,t){t.nodes().map(r=>{const a=BV(r);if(a.type==="group")return;a.x=r.position().x,a.y=r.position().y,e.getElementById(a.id).attr("transform","translate("+(a.x||0)+","+(a.y||0)+")")})}X(wQn,"positionNodes");function EQn(e,t){e.forEach(r=>{t.add({group:"nodes",data:{type:"group",id:r.id,icon:r.icon,label:r.title,parent:r.in},classes:"node-group"})})}X(EQn,"addGroups");function xQn(e,t){e.forEach(r=>{const{lhsId:a,rhsId:s,lhsInto:o,lhsGroup:u,rhsInto:h,lhsDir:f,rhsDir:p,rhsGroup:m,title:b}=r,_=fbt(r.lhsDir,r.rhsDir)?"segments":"straight",w={id:`${a}-${s}`,label:b,source:a,sourceDir:f,sourceArrow:o,sourceGroup:u,sourceEndpoint:f==="L"?"0 50%":f==="R"?"100% 50%":f==="T"?"50% 0":"50% 100%",target:s,targetDir:p,targetArrow:h,targetGroup:m,targetEndpoint:p==="L"?"0 50%":p==="R"?"100% 50%":p==="T"?"50% 0":"50% 100%"};t.add({group:"edges",data:w,classes:_})})}X(xQn,"addEdges");function SQn(e,t,r){const a=X((h,f)=>Object.entries(h).reduce((p,[m,b])=>{var S;let _=0;const w=Object.entries(b);if(w.length===1)return p[m]=w[0][1],p;for(let C=0;C{const f={},p={};return Object.entries(h).forEach(([m,[b,_]])=>{var S,C,A;const w=((S=e.getNode(m))==null?void 0:S.in)??"default";f[_]??(f[_]={}),(C=f[_])[w]??(C[w]=[]),f[_][w].push(m),p[b]??(p[b]={}),(A=p[b])[w]??(A[w]=[]),p[b][w].push(m)}),{horiz:Object.values(a(f,"horizontal")).filter(m=>m.length>1),vert:Object.values(a(p,"vertical")).filter(m=>m.length>1)}}),[o,u]=s.reduce(([h,f],{horiz:p,vert:m})=>[[...h,...p],[...f,...m]],[[],[]]);return{horizontal:o,vertical:u}}X(SQn,"getAlignments");function TQn(e,t){const r=[],a=X(o=>`${o[0]},${o[1]}`,"posToStr"),s=X(o=>o.split(",").map(u=>parseInt(u)),"strToPos");return e.forEach(o=>{const u=Object.fromEntries(Object.entries(o).map(([m,b])=>[a(b),m])),h=[a([0,0])],f={},p={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;h.length>0;){const m=h.shift();if(m){f[m]=1;const b=u[m];if(b){const _=s(m);Object.entries(p).forEach(([w,S])=>{const C=a([_[0]+S[0],_[1]+S[1]]),A=u[C];A&&!f[C]&&(h.push(C),r.push({[VTn[w]]:A,[VTn[gea(w)]]:b,gap:1.5*t.getConfigField("iconSize")}))})}}}}),r}X(TQn,"getRelativeConstraints");function CQn(e,t,r,a,s,{spatialMaps:o,groupAlignments:u}){return new Promise(h=>{const f=gn("body").append("div").attr("id","cy").attr("style","display:none"),p=CS({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight",label:"data(label)","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${s.getConfigField("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${s.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});f.remove(),EQn(r,p),vQn(e,p,s),_Qn(t,p,s),xQn(a,p);const m=SQn(s,o,u),b=TQn(o,s),_=p.layout({name:"fcose",quality:"proof",styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(w){const[S,C]=w.connectedNodes(),{parent:A}=BV(S),{parent:k}=BV(C);return A===k?1.5*s.getConfigField("iconSize"):.5*s.getConfigField("iconSize")},edgeElasticity(w){const[S,C]=w.connectedNodes(),{parent:A}=BV(S),{parent:k}=BV(C);return A===k?.45:.001},alignmentConstraint:m,relativePlacementConstraint:b});_.one("layoutstop",()=>{var S;function w(C,A,k,I){let N,L;const{x:P,y:M}=C,{x:F,y:U}=A;L=(I-M+(P-k)*(M-U)/(P-F))/Math.sqrt(1+Math.pow((M-U)/(P-F),2)),N=Math.sqrt(Math.pow(I-M,2)+Math.pow(k-P,2)-Math.pow(L,2));const $=Math.sqrt(Math.pow(F-P,2)+Math.pow(U-M,2));N=N/$;let G=(F-P)*(I-M)-(U-M)*(k-P);switch(!0){case G>=0:G=1;break;case G<0:G=-1;break}let B=(F-P)*(k-P)+(U-M)*(I-M);switch(!0){case B>=0:B=1;break;case B<0:B=-1;break}return L=Math.abs(L)*G,N=N*B,{distances:L,weights:N}}X(w,"getSegmentWeights"),p.startBatch();for(const C of Object.values(p.edges()))if((S=C.data)!=null&&S.call(C)){const{x:A,y:k}=C.source().position(),{x:I,y:N}=C.target().position();if(A!==I&&k!==N){const L=C.sourceEndpoint(),P=C.targetEndpoint(),{sourceDir:M}=mQn(C),[F,U]=y9(M)?[L.x,P.y]:[P.x,L.y],{weights:$,distances:G}=w(L,P,F,U);C.style("segment-distances",G),C.style("segment-weights",$)}}p.endBatch(),_.run()}),_.run(),p.ready(w=>{it.info("Ready",w),h(p)})})}X(CQn,"layoutArchitecture");var Nea=X(async(e,t,r,a)=>{const s=a.db,o=s.getServices(),u=s.getJunctions(),h=s.getGroups(),f=s.getEdges(),p=s.getDataStructures(),m=bR(t),b=m.append("g");b.attr("class","architecture-edges");const _=m.append("g");_.attr("class","architecture-services");const w=m.append("g");w.attr("class","architecture-groups"),await Rea(s,_,o),Iea(s,_,u);const S=await CQn(o,u,h,f,s,p);await Aea(b,S,s),await kea(w,S,s),wQn(s,S),rce(void 0,m,s.getConfigField("padding"),s.getConfigField("useMaxWidth"))},"draw"),Oea={draw:Nea},Lea={parser:yQn,get db(){return new bQn},renderer:Oea,styles:Cea};const Dea=Object.freeze(Object.defineProperty({__proto__:null,diagram:Lea},Symbol.toStringTag,{value:"Module"}));var hj,AQn=(hj=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=N1,this.getAccTitle=Mp,this.setDiagramTitle=Og,this.getDiagramTitle=P1,this.getAccDescription=Bp,this.setAccDescription=Pp}getNodes(){return this.nodes}getConfig(){const t=Cc,r=$c();return cv({...t.treemap,...r.treemap??{}})}addNode(t,r){this.nodes.push(t),this.levels.set(t,r),r===0&&(this.outerNodes.push(t),this.root??(this.root=t))}getRoot(){return{name:"",children:this.outerNodes}}addClass(t,r){const a=this.classes.get(t)??{id:t,styles:[],textStyles:[]},s=r.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");s&&s.forEach(o=>{R1t(o)&&(a!=null&&a.textStyles?a.textStyles.push(o):a.textStyles=[o]),a!=null&&a.styles?a.styles.push(o):a.styles=[o]}),this.classes.set(t,a)}getClasses(){return this.classes}getStylesForClass(t){var r;return((r=this.classes.get(t))==null?void 0:r.styles)??[]}clear(){M1(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},X(hj,"TreeMapDB"),hj);function kQn(e){if(!e.length)return[];const t=[],r=[];return e.forEach(a=>{const s={name:a.name,children:a.type==="Leaf"?void 0:[]};for(s.classSelector=a==null?void 0:a.classSelector,a!=null&&a.cssCompiledStyles&&(s.cssCompiledStyles=[a.cssCompiledStyles]),a.type==="Leaf"&&a.value!==void 0&&(s.value=a.value);r.length>0&&r[r.length-1].level>=a.level;)r.pop();if(r.length===0)t.push(s);else{const o=r[r.length-1].node;o.children?o.children.push(s):o.children=[s]}a.type!=="Leaf"&&r.push({node:s,level:a.level})}),t}X(kQn,"buildHierarchy");var Mea=X((e,t)=>{z$(e,t);const r=[];for(const o of e.TreemapRows??[])o.$type==="ClassDefStatement"&&t.addClass(o.className??"",o.styleText??"");for(const o of e.TreemapRows??[]){const u=o.item;if(!u)continue;const h=o.indent?parseInt(o.indent):0,f=Pea(u),p=u.classSelector?t.getStylesForClass(u.classSelector):[],m=p.length>0?p.join(";"):void 0,b={level:h,name:f,type:u.$type,value:u.value,classSelector:u.classSelector,cssCompiledStyles:m};r.push(b)}const a=kQn(r),s=X((o,u)=>{for(const h of o)t.addNode(h,u),h.children&&h.children.length>0&&s(h.children,u+1)},"addNodesRecursively");s(a,0)},"populate"),Pea=X(e=>e.name?String(e.name):"","getItemName"),RQn={parser:{yy:void 0},parse:X(async e=>{var t;try{const a=await iL("treemap",e);it.debug("Treemap AST:",a);const s=(t=RQn.parser)==null?void 0:t.yy;if(!(s instanceof AQn))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Mea(a,s)}catch(r){throw it.error("Error parsing treemap:",r),r}},"parse")},Bea=10,rV=10,die=25,Fea=X((e,t,r,a)=>{const s=a.db,o=s.getConfig(),u=o.padding??Bea,h=s.getDiagramTitle(),f=s.getRoot(),{themeVariables:p}=$c();if(!f)return;const m=h?30:0,b=bR(t),_=o.nodeWidth?o.nodeWidth*rV:960,w=o.nodeHeight?o.nodeHeight*rV:500,S=_,C=w+m;b.attr("viewBox",`0 0 ${S} ${C}`),yv(b,C,S,o.useMaxWidth);let A;try{const Y=o.valueFormat||",";if(Y==="$0,0")A=X(W=>"$"+PB(",")(W),"valueFormat");else if(Y.startsWith("$")&&Y.includes(",")){const W=/\.\d+/.exec(Y),Q=W?W[0]:"";A=X(V=>"$"+PB(","+Q)(V),"valueFormat")}else if(Y.startsWith("$")){const W=Y.substring(1);A=X(Q=>"$"+PB(W||"")(Q),"valueFormat")}else A=PB(Y)}catch(Y){it.error("Error creating format function:",Y),A=PB(",")}const k=cA().range(["transparent",p.cScale0,p.cScale1,p.cScale2,p.cScale3,p.cScale4,p.cScale5,p.cScale6,p.cScale7,p.cScale8,p.cScale9,p.cScale10,p.cScale11]),I=cA().range(["transparent",p.cScalePeer0,p.cScalePeer1,p.cScalePeer2,p.cScalePeer3,p.cScalePeer4,p.cScalePeer5,p.cScalePeer6,p.cScalePeer7,p.cScalePeer8,p.cScalePeer9,p.cScalePeer10,p.cScalePeer11]),N=cA().range([p.cScaleLabel0,p.cScaleLabel1,p.cScaleLabel2,p.cScaleLabel3,p.cScaleLabel4,p.cScaleLabel5,p.cScaleLabel6,p.cScaleLabel7,p.cScaleLabel8,p.cScaleLabel9,p.cScaleLabel10,p.cScaleLabel11]);h&&b.append("text").attr("x",S/2).attr("y",m/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const L=b.append("g").attr("transform",`translate(0, ${m})`).attr("class","treemapContainer"),P=e1t(f).sum(Y=>Y.value??0).sort((Y,W)=>(W.value??0)-(Y.value??0)),F=Bci().size([_,w]).paddingTop(Y=>Y.children&&Y.children.length>0?die+rV:0).paddingInner(u).paddingLeft(Y=>Y.children&&Y.children.length>0?rV:0).paddingRight(Y=>Y.children&&Y.children.length>0?rV:0).paddingBottom(Y=>Y.children&&Y.children.length>0?rV:0).round(!0)(P),U=F.descendants().filter(Y=>Y.children&&Y.children.length>0),$=L.selectAll(".treemapSection").data(U).enter().append("g").attr("class","treemapSection").attr("transform",Y=>`translate(${Y.x0},${Y.y0})`);$.append("rect").attr("width",Y=>Y.x1-Y.x0).attr("height",die).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",Y=>Y.depth===0?"display: none;":""),$.append("clipPath").attr("id",(Y,W)=>`clip-section-${t}-${W}`).append("rect").attr("width",Y=>Math.max(0,Y.x1-Y.x0-12)).attr("height",die),$.append("rect").attr("width",Y=>Y.x1-Y.x0).attr("height",Y=>Y.y1-Y.y0).attr("class",(Y,W)=>`treemapSection section${W}`).attr("fill",Y=>k(Y.data.name)).attr("fill-opacity",.6).attr("stroke",Y=>I(Y.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",Y=>{if(Y.depth===0)return"display: none;";const W=Ia({cssCompiledStyles:Y.data.cssCompiledStyles});return W.nodeStyles+";"+W.borderStyles.join(";")}),$.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",die/2).attr("dominant-baseline","middle").text(Y=>Y.depth===0?"":Y.data.name).attr("font-weight","bold").attr("style",Y=>{if(Y.depth===0)return"display: none;";const W="dominant-baseline: middle; font-size: 12px; fill:"+N(Y.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",Q=Ia({cssCompiledStyles:Y.data.cssCompiledStyles});return W+Q.labelStyles.replace("color:","fill:")}).each(function(Y){if(Y.depth===0)return;const W=gn(this),Q=Y.data.name;W.text(Q);const V=Y.x1-Y.x0,j=6;let ee;o.showValues!==!1&&Y.value?ee=V-10-30-10-j:ee=V-j-6;const ne=Math.max(15,ee),se=W.node();if(se.getComputedTextLength()>ne){const ge="...";let ce=Q;for(;ce.length>0;){if(ce=Q.substring(0,ce.length-1),ce.length===0){W.text(ge),se.getComputedTextLength()>ne&&W.text("");break}if(W.text(ce+ge),se.getComputedTextLength()<=ne)break}}}),o.showValues!==!1&&$.append("text").attr("class","treemapSectionValue").attr("x",Y=>Y.x1-Y.x0-10).attr("y",die/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(Y=>Y.value?A(Y.value):"").attr("font-style","italic").attr("style",Y=>{if(Y.depth===0)return"display: none;";const W="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+N(Y.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",Q=Ia({cssCompiledStyles:Y.data.cssCompiledStyles});return W+Q.labelStyles.replace("color:","fill:")});const G=F.leaves(),B=L.selectAll(".treemapLeafGroup").data(G).enter().append("g").attr("class",(Y,W)=>`treemapNode treemapLeafGroup leaf${W}${Y.data.classSelector?` ${Y.data.classSelector}`:""}x`).attr("transform",Y=>`translate(${Y.x0},${Y.y0})`);B.append("rect").attr("width",Y=>Y.x1-Y.x0).attr("height",Y=>Y.y1-Y.y0).attr("class","treemapLeaf").attr("fill",Y=>Y.parent?k(Y.parent.data.name):k(Y.data.name)).attr("style",Y=>Ia({cssCompiledStyles:Y.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",Y=>Y.parent?k(Y.parent.data.name):k(Y.data.name)).attr("stroke-width",3),B.append("clipPath").attr("id",(Y,W)=>`clip-${t}-${W}`).append("rect").attr("width",Y=>Math.max(0,Y.x1-Y.x0-4)).attr("height",Y=>Math.max(0,Y.y1-Y.y0-4)),B.append("text").attr("class","treemapLabel").attr("x",Y=>(Y.x1-Y.x0)/2).attr("y",Y=>(Y.y1-Y.y0)/2).attr("style",Y=>{const W="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+N(Y.data.name)+";",Q=Ia({cssCompiledStyles:Y.data.cssCompiledStyles});return W+Q.labelStyles.replace("color:","fill:")}).attr("clip-path",(Y,W)=>`url(#clip-${t}-${W})`).text(Y=>Y.data.name).each(function(Y){const W=gn(this),Q=Y.x1-Y.x0,V=Y.y1-Y.y0,j=W.node(),ee=4,te=Q-2*ee,ne=V-2*ee;if(te<10||ne<10){W.style("display","none");return}let se=parseInt(W.style("font-size"),10);const ie=8,ge=28,ce=.6,be=6,ve=2;for(;j.getComputedTextLength()>te&&se>ie;)se--,W.style("font-size",`${se}px`);let De=Math.max(be,Math.min(ge,Math.round(se*ce))),ye=se+ve+De;for(;ye>ne&&se>ie&&(se--,De=Math.max(be,Math.min(ge,Math.round(se*ce))),!(Dete||se(W.x1-W.x0)/2).attr("y",function(W){return(W.y1-W.y0)/2}).attr("style",W=>{const Q="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+N(W.data.name)+";",V=Ia({cssCompiledStyles:W.data.cssCompiledStyles});return Q+V.labelStyles.replace("color:","fill:")}).attr("clip-path",(W,Q)=>`url(#clip-${t}-${Q})`).text(W=>W.value?A(W.value):"").each(function(W){const Q=gn(this),V=this.parentNode;if(!V){Q.style("display","none");return}const j=gn(V).select(".treemapLabel");if(j.empty()||j.style("display")==="none"){Q.style("display","none");return}const ee=parseFloat(j.style("font-size")),te=28,ne=.6,se=6,ie=2,ge=Math.max(se,Math.min(te,Math.round(ee*ne)));Q.style("font-size",`${ge}px`);const be=(W.y1-W.y0)/2+ee/2+ie;Q.attr("y",be);const ve=W.x1-W.x0,Ee=W.y1-W.y0-4,he=ve-2*4;Q.node().getComputedTextLength()>he||be+ge>Ee||ge{const t=cv(zea,e);return` .treemapNode.section { stroke: ${t.sectionStrokeColor}; stroke-width: ${t.sectionStrokeWidth}; fill: ${t.sectionFillColor}; } .treemapNode.leaf { stroke: ${t.leafStrokeColor}; stroke-width: ${t.leafStrokeWidth}; fill: ${t.leafFillColor}; } .treemapLabel { fill: ${t.labelColor}; font-size: ${t.labelFontSize}; } .treemapValue { fill: ${t.valueColor}; font-size: ${t.valueFontSize}; } .treemapTitle { fill: ${t.titleColor}; font-size: ${t.titleFontSize}; } `},"getStyles"),qea=Gea,Hea={parser:RQn,get db(){return new AQn},renderer:Uea,styles:qea};const Vea=Object.freeze(Object.defineProperty({__proto__:null,diagram:Hea},Symbol.toStringTag,{value:"Module"})),Yea=async e=>{const t=await e.getFile();return t.handle=e,t};var jea=async(e=[{}])=>{Array.isArray(e)||(e=[e]);const t=[];e.forEach((s,o)=>{t[o]={description:s.description||"",accept:{}},s.mimeTypes?s.mimeTypes.map(u=>{t[o].accept[u]=s.extensions||[]}):t[o].accept["*/*"]=s.extensions||[]});const r=await window.showOpenFilePicker({id:e[0].id,startIn:e[0].startIn,types:t,multiple:e[0].multiple||!1,excludeAcceptAllOption:e[0].excludeAcceptAllOption||!1}),a=await Promise.all(r.map(Yea));return e[0].multiple?a:a[0]};const Wea=Object.freeze(Object.defineProperty({__proto__:null,default:jea},Symbol.toStringTag,{value:"Module"}));var Kea=async(e=[{}])=>(Array.isArray(e)||(e=[e]),new Promise((t,r)=>{const a=document.createElement("input");a.type="file";const s=[...e.map(h=>h.mimeTypes||[]),...e.map(h=>h.extensions||[])].join();a.multiple=e[0].multiple||!1,a.accept=s||"";const o=h=>{typeof u=="function"&&u(),t(h)},u=e[0].legacySetup&&e[0].legacySetup(o,()=>u(r),a);a.addEventListener("change",()=>{o(a.multiple?Array.from(a.files):a.files[0])}),a.click()}));const Xea=Object.freeze(Object.defineProperty({__proto__:null,default:Kea},Symbol.toStringTag,{value:"Module"}));function eSe(e){function t(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var a=r.done;return Promise.resolve(r.value).then(function(s){return{value:s,done:a}})}return eSe=function(r){this.s=r,this.n=r.next},eSe.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(r){var a=this.s.return;return a===void 0?Promise.resolve({value:r,done:!0}):t(a.apply(this.s,arguments))},throw:function(r){var a=this.s.return;return a===void 0?Promise.reject(r):t(a.apply(this.s,arguments))}},new eSe(e)}const IQn=async(e,t,r=e.name,a)=>{const s=[],o=[];var u,h=!1,f=!1;try{for(var p,m=function(b){var _,w,S,C=2;for(typeof Symbol<"u"&&(w=Symbol.asyncIterator,S=Symbol.iterator);C--;){if(w&&(_=b[w])!=null)return _.call(b);if(S&&(_=b[S])!=null)return new eSe(_.call(b));w="@@asyncIterator",S="@@iterator"}throw new TypeError("Object is not async iterable")}(e.values());h=!(p=await m.next()).done;h=!1){const b=p.value,_=`${r}/${b.name}`;b.kind==="file"?o.push(b.getFile().then(w=>(w.directoryHandle=e,w.handle=b,Object.defineProperty(w,"webkitRelativePath",{configurable:!0,enumerable:!0,get:()=>_})))):b.kind!=="directory"||!t||a&&a(b)||s.push(IQn(b,t,_,a))}}catch(b){f=!0,u=b}finally{try{h&&m.return!=null&&await m.return()}finally{if(f)throw u}}return[...(await Promise.all(s)).flat(),...await Promise.all(o)]};var Qea=async(e={})=>{e.recursive=e.recursive||!1;const t=await window.showDirectoryPicker({id:e.id,startIn:e.startIn});return IQn(t,e.recursive,void 0,e.skipDirectory)};const Zea=Object.freeze(Object.defineProperty({__proto__:null,default:Qea},Symbol.toStringTag,{value:"Module"}));var Jea=async(e=[{}])=>(Array.isArray(e)||(e=[e]),e[0].recursive=e[0].recursive||!1,new Promise((t,r)=>{const a=document.createElement("input");a.type="file",a.webkitdirectory=!0;const s=u=>{typeof o=="function"&&o(),t(u)},o=e[0].legacySetup&&e[0].legacySetup(s,()=>o(r),a);a.addEventListener("change",()=>{let u=Array.from(a.files);e[0].recursive?e[0].recursive&&e[0].skipDirectory&&(u=u.filter(h=>h.webkitRelativePath.split("/").every(f=>!e[0].skipDirectory({name:f,kind:"directory"})))):u=u.filter(h=>h.webkitRelativePath.split("/").length===2),s(u)}),a.click()}));const eta=Object.freeze(Object.defineProperty({__proto__:null,default:Jea},Symbol.toStringTag,{value:"Module"}));var tta=async(e,t=[{}],r=null,a=!1,s=null)=>{Array.isArray(t)||(t=[t]),t[0].fileName=t[0].fileName||"Untitled";const o=[];let u=null;if(e instanceof Blob&&e.type?u=e.type:e.headers&&e.headers.get("content-type")&&(u=e.headers.get("content-type")),t.forEach((p,m)=>{o[m]={description:p.description||"",accept:{}},p.mimeTypes?(m===0&&u&&p.mimeTypes.push(u),p.mimeTypes.map(b=>{o[m].accept[b]=p.extensions||[]})):u&&(o[m].accept[u]=p.extensions||[])}),r)try{await r.getFile()}catch(p){if(r=null,a)throw p}const h=r||await window.showSaveFilePicker({suggestedName:t[0].fileName,id:t[0].id,startIn:t[0].startIn,types:o,excludeAcceptAllOption:t[0].excludeAcceptAllOption||!1});!r&&s&&s();const f=await h.createWritable();return"stream"in e?(await e.stream().pipeTo(f),h):"body"in e?(await e.body.pipeTo(f),h):(await f.write(await e),await f.close(),h)};const nta=Object.freeze(Object.defineProperty({__proto__:null,default:tta},Symbol.toStringTag,{value:"Module"}));var rta=async(e,t={})=>{Array.isArray(t)&&(t=t[0]);const r=document.createElement("a");let a=e;"body"in e&&(a=await async function(u,h){const f=u.getReader(),p=new ReadableStream({start:_=>async function w(){return f.read().then(({done:S,value:C})=>{if(!S)return _.enqueue(C),w();_.close()})}()}),m=new Response(p),b=await m.blob();return f.releaseLock(),new Blob([b],{type:h})}(e.body,e.headers.get("content-type"))),r.download=t.fileName||"Untitled",r.href=URL.createObjectURL(await a);const s=()=>{typeof o=="function"&&o()},o=t.legacySetup&&t.legacySetup(s,()=>o(reject),r);return r.addEventListener("click",()=>{setTimeout(()=>URL.revokeObjectURL(r.href),3e4),s()}),r.click(),null};const ita=Object.freeze(Object.defineProperty({__proto__:null,default:rta},Symbol.toStringTag,{value:"Module"}));var NQn={exports:{}};/*! pica https://github.com/nodeca/pica */(function(e,t){(function(r){e.exports=r()})(function(){return function(){function r(a,s,o){function u(p,m){if(!s[p]){if(!a[p]){var b=typeof sO=="function"&&sO;if(!m&&b)return b(p,!0);if(h)return h(p,!0);var _=new Error("Cannot find module '"+p+"'");throw _.code="MODULE_NOT_FOUND",_}var w=s[p]={exports:{}};a[p][0].call(w.exports,function(S){var C=a[p][1][S];return u(C||S)},w,w.exports,r,a,s,o)}return s[p].exports}for(var h=typeof sO=="function"&&sO,f=0;f=0,wasm:b.indexOf("wasm")>=0};u.call(this,_),this.features={js:_.js,wasm:_.wasm&&this.has_wasm()},this.use(h),this.use(f)}o(p,u),p.prototype.resizeAndUnsharp=function(b,_){var w=this.resize(b,_);return b.unsharpAmount&&this.unsharp_mask(w,b.toWidth,b.toHeight,b.unsharpAmount,b.unsharpRadius,b.unsharpThreshold),w},a.exports=p},{"./mm_resize":4,"./mm_unsharp_mask":9,inherits:19,multimath:20}],2:[function(r,a,s){function o(f){return f<0?0:f>255?255:f}function u(f,p,m,b,_,w){var S,C,A,k,I,N,L,P,M,F,U,$=0,G=0;for(M=0;M0;L--)U=w[I++],k=k+U*f[P+3]|0,A=A+U*f[P+2]|0,C=C+U*f[P+1]|0,S=S+U*f[P]|0,P=P+4|0;p[G+3]=o(k+8192>>14),p[G+2]=o(A+8192>>14),p[G+1]=o(C+8192>>14),p[G]=o(S+8192>>14),G=G+b*4|0}G=(M+1)*4|0,$=(M+1)*m*4|0}}function h(f,p,m,b,_,w){var S,C,A,k,I,N,L,P,M,F,U,$=0,G=0;for(M=0;M0;L--)U=w[I++],k=k+U*f[P+3]|0,A=A+U*f[P+2]|0,C=C+U*f[P+1]|0,S=S+U*f[P]|0,P=P+4|0;p[G+3]=o(k+8192>>14),p[G+2]=o(A+8192>>14),p[G+1]=o(C+8192>>14),p[G]=o(S+8192>>14),G=G+b*4|0}G=(M+1)*4|0,$=(M+1)*m*4|0}}a.exports={convolveHorizontally:u,convolveVertically:h}},{}],3:[function(r,a,s){a.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAEXA2AAAGAGf39/f39/AGAHf39/f39/fwACDwEDZW52Bm1lbW9yeQIAAAMEAwABAgYGAX8AQQALB1cFEV9fd2FzbV9jYWxsX2N0b3JzAAAIY29udm9sdmUAAQpjb252b2x2ZUhWAAIMX19kc29faGFuZGxlAwAYX193YXNtX2FwcGx5X2RhdGFfcmVsb2NzAAAK7AMDAwABC8YDAQ9/AkAgA0UNACAERQ0AA0AgDCENQQAhE0EAIQcDQCAHQQJqIQYCfyAHQQF0IAVqIgcuAQIiFEUEQEGAwAAhCEGAwAAhCUGAwAAhCkGAwAAhCyAGDAELIBIgBy4BAGohCEEAIQsgFCEHQQAhDiAGIQlBACEPQQAhEANAIAUgCUEBdGouAQAiESAAIAhBAnRqKAIAIgpBGHZsIBBqIRAgCkH/AXEgEWwgC2ohCyAKQRB2Qf8BcSARbCAPaiEPIApBCHZB/wFxIBFsIA5qIQ4gCEEBaiEIIAlBAWohCSAHQQFrIgcNAAsgC0GAQGshCCAOQYBAayEJIA9BgEBrIQogEEGAQGshCyAGIBRqCyEHIAEgDUECdGogCUEOdSIGQf8BIAZB/wFIGyIGQQAgBkEAShtBCHRBgP4DcSAKQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EQdEGAgPwHcSALQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EYdHJyIAhBDnUiBkH/ASAGQf8BSBsiBkEAIAZBAEobcjYCACADIA1qIQ0gE0EBaiITIARHDQALIAxBAWoiDCACbCESIAMgDEcNAAsLCx4AQQAgAiADIAQgBSAAEAEgAkEAIAQgBSAGIAEQAQs="},{}],4:[function(r,a,s){a.exports={name:"resize",fn:r("./resize"),wasm_fn:r("./resize_wasm"),wasm_src:r("./convolve_wasm_base64")}},{"./convolve_wasm_base64":3,"./resize":5,"./resize_wasm":8}],5:[function(r,a,s){var o=r("./resize_filter_gen"),u=r("./convolve").convolveHorizontally,h=r("./convolve").convolveVertically;function f(p,m,b){for(var _=3,w=m*b*4|0;_"u"?3:m.quality,M=m.alpha||!1,F=o(P,_,S,A,I),U=o(P,w,C,k,N),$=new Uint8Array(S*w*4);return u(b,$,_,w,S,F),h($,L,w,S,C,U),M||f(L,S,C),L}},{"./convolve":2,"./resize_filter_gen":6}],6:[function(r,a,s){var o=r("./resize_filter_info"),u=14;function h(f){return Math.round(f*((1<>1]+=h(1-z),W=0;W0&&U[Q]===0;)Q--;if(V=L+W,j=Q-W+1,te[ne++]=V,te[ne++]=j,!se)te.set(U.subarray(W,Q+1),ne),ne+=j;else for(B=W;B<=Q;B++)te[ne++]=U[B]}else te[ne++]=0,te[ne++]=0}return te}},{"./resize_filter_info":7}],7:[function(r,a,s){a.exports=[{win:.5,filter:function(u){return u>=-.5&&u<.5?1:0}},{win:1,filter:function(u){if(u<=-1||u>=1)return 0;if(u>-11920929e-14&&u<11920929e-14)return 1;var h=u*Math.PI;return Math.sin(h)/h*(.54+.46*Math.cos(h/1))}},{win:2,filter:function(u){if(u<=-2||u>=2)return 0;if(u>-11920929e-14&&u<11920929e-14)return 1;var h=u*Math.PI;return Math.sin(h)/h*Math.sin(h/2)/(h/2)}},{win:3,filter:function(u){if(u<=-3||u>=3)return 0;if(u>-11920929e-14&&u<11920929e-14)return 1;var h=u*Math.PI;return Math.sin(h)/h*Math.sin(h/3)/(h/3)}}]},{}],8:[function(r,a,s){var o=r("./resize_filter_gen");function u(m,b,_){for(var w=3,S=b*_*4|0;w>8&255}}a.exports=function(b){var _=b.src,w=b.width,S=b.height,C=b.toWidth,A=b.toHeight,k=b.scaleX||b.toWidth/b.width,I=b.scaleY||b.toHeight/b.height,N=b.offsetX||0,L=b.offsetY||0,P=b.dest||new Uint8Array(C*A*4),M=typeof b.quality>"u"?3:b.quality,F=b.alpha||!1,U=o(M,w,C,k,N),$=o(M,S,A,I,L),G=0,B=this.__align(G+Math.max(_.byteLength,P.byteLength)),Z=this.__align(B+S*C*4),z=this.__align(Z+U.byteLength),Y=z+$.byteLength,W=this.__instance("resize",Y),Q=new Uint8Array(this.__memory.buffer),V=new Uint32Array(this.__memory.buffer),j=new Uint32Array(_.buffer);V.set(j),p(U,Q,Z),p($,Q,z);var ee=W.exports.convolveHV||W.exports._convolveHV;ee(Z,z,B,w,S,C,A);var te=new Uint32Array(P.buffer);return te.set(new Uint32Array(this.__memory.buffer,0,A*C)),F||u(P,C,A),P}},{"./resize_filter_gen":6}],9:[function(r,a,s){a.exports={name:"unsharp_mask",fn:r("./unsharp_mask"),wasm_fn:r("./unsharp_mask_wasm"),wasm_src:r("./unsharp_mask_wasm_base64")}},{"./unsharp_mask":10,"./unsharp_mask_wasm":11,"./unsharp_mask_wasm_base64":12}],10:[function(r,a,s){var o=r("glur/mono16");function u(h,f,p){for(var m=f*p,b=new Uint16Array(m),_,w,S,C,A=0;A=w&&_>=S?_:w>=S&&w>=_?w:S,b[A]=C<<8;return b}a.exports=function(f,p,m,b,_,w){var S,C,A,k,I;if(!(b===0||_<.5)){_>2&&(_=2);var N=u(f,p,m),L=new Uint16Array(N);o(L,p,m,_);for(var P=b/100*4096+.5|0,M=w<<8,F=p*m,U=0;U=M&&(C=S+(P*k+2048>>12),C=C>65280?65280:C,C=C<0?0:C,S=S!==0?S:1,A=(C<<12)/S|0,I=U*4,f[I]=f[I]*A+2048>>12,f[I+1]=f[I+1]*A+2048>>12,f[I+2]=f[I+2]*A+2048>>12)}}},{"glur/mono16":18}],11:[function(r,a,s){a.exports=function(u,h,f,p,m,b){if(!(p===0||m<.5)){m>2&&(m=2);var _=h*f,w=_*4,S=_*2,C=_*2,A=Math.max(h,f)*4,k=8*4,I=0,N=w,L=N+S,P=L+C,M=P+C,F=M+A,U=this.__instance("unsharp_mask",w+S+C*2+A+k,{exp:Math.exp}),$=new Uint32Array(u.buffer),G=new Uint32Array(this.__memory.buffer);G.set($);var B=U.exports.hsv_v16||U.exports._hsv_v16;B(I,N,h,f),B=U.exports.blurMono16||U.exports._blurMono16,B(N,L,P,M,F,h,f,m),B=U.exports.unsharp||U.exports._unsharp,B(I,I,N,L,h,f,p,b),$.set(new Uint32Array(this.__memory.buffer,0,_))}}},{}],12:[function(r,a,s){a.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAE0B2AAAGAEf39/fwBgBn9/f39/fwBgCH9/f39/f39/AGAIf39/f39/f30AYAJ9fwBgAXwBfAIZAgNlbnYDZXhwAAYDZW52Bm1lbW9yeQIAAAMHBgAFAgQBAwYGAX8AQQALB4oBCBFfX3dhc21fY2FsbF9jdG9ycwABFl9fYnVpbGRfZ2F1c3NpYW5fY29lZnMAAg5fX2dhdXNzMTZfbGluZQADCmJsdXJNb25vMTYABAdoc3ZfdjE2AAUHdW5zaGFycAAGDF9fZHNvX2hhbmRsZQMAGF9fd2FzbV9hcHBseV9kYXRhX3JlbG9jcwABCsUMBgMAAQvWAQEHfCABRNuGukOCGvs/IAC7oyICRAAAAAAAAADAohAAIgW2jDgCFCABIAKaEAAiAyADoCIGtjgCECABRAAAAAAAAPA/IAOhIgQgBKIgAyACIAKgokQAAAAAAADwP6AgBaGjIgS2OAIAIAEgBSAEmqIiB7Y4AgwgASADIAJEAAAAAAAA8D+gIASioiIItjgCCCABIAMgAkQAAAAAAADwv6AgBKKiIgK2OAIEIAEgByAIoCAFRAAAAAAAAPA/IAahoCIDo7Y4AhwgASAEIAKgIAOjtjgCGAuGBQMGfwl8An0gAyoCDCEVIAMqAgghFiADKgIUuyERIAMqAhC7IRACQCAEQQFrIghBAEgiCQRAIAIhByAAIQYMAQsgAiAALwEAuCIPIAMqAhi7oiIMIBGiIg0gDCAQoiAPIAMqAgS7IhOiIhQgAyoCALsiEiAPoqCgoCIOtjgCACACQQRqIQcgAEECaiEGIAhFDQAgCEEBIAhBAUgbIgpBf3MhCwJ/IAQgCmtBAXFFBEAgDiENIAgMAQsgAiANIA4gEKIgFCASIAAvAQK4Ig+ioKCgIg22OAIEIAJBCGohByAAQQRqIQYgDiEMIARBAmsLIQIgC0EAIARrRg0AA0AgByAMIBGiIA0gEKIgDyAToiASIAYvAQC4Ig6ioKCgIgy2OAIAIAcgDSARoiAMIBCiIA4gE6IgEiAGLwECuCIPoqCgoCINtjgCBCAHQQhqIQcgBkEEaiEGIAJBAkohACACQQJrIQIgAA0ACwsCQCAJDQAgASAFIAhsQQF0aiIAAn8gBkECay8BACICuCINIBW7IhKiIA0gFrsiE6KgIA0gAyoCHLuiIgwgEKKgIAwgEaKgIg8gB0EEayIHKgIAu6AiDkQAAAAAAADwQWMgDkQAAAAAAAAAAGZxBEAgDqsMAQtBAAs7AQAgCEUNACAGQQRrIQZBACAFa0EBdCEBA0ACfyANIBKiIAJB//8DcbgiDSAToqAgDyIOIBCioCAMIBGioCIPIAdBBGsiByoCALugIgxEAAAAAAAA8EFjIAxEAAAAAAAAAABmcQRAIAyrDAELQQALIQMgBi8BACECIAAgAWoiACADOwEAIAZBAmshBiAIQQFKIQMgDiEMIAhBAWshCCADDQALCwvRAgIBfwd8AkAgB0MAAAAAWw0AIARE24a6Q4Ia+z8gB0MAAAA/l7ujIglEAAAAAAAAAMCiEAAiDLaMOAIUIAQgCZoQACIKIAqgIg22OAIQIAREAAAAAAAA8D8gCqEiCyALoiAKIAkgCaCiRAAAAAAAAPA/oCAMoaMiC7Y4AgAgBCAMIAuaoiIOtjgCDCAEIAogCUQAAAAAAADwP6AgC6KiIg+2OAIIIAQgCiAJRAAAAAAAAPC/oCALoqIiCbY4AgQgBCAOIA+gIAxEAAAAAAAA8D8gDaGgIgqjtjgCHCAEIAsgCaAgCqO2OAIYIAYEQANAIAAgBSAIbEEBdGogAiAIQQF0aiADIAQgBSAGEAMgCEEBaiIIIAZHDQALCyAFRQ0AQQAhCANAIAIgBiAIbEEBdGogASAIQQF0aiADIAQgBiAFEAMgCEEBaiIIIAVHDQALCwtxAQN/IAIgA2wiBQRAA0AgASAAKAIAIgRBEHZB/wFxIgIgAiAEQQh2Qf8BcSIDIAMgBEH/AXEiBEkbIAIgA0sbIgYgBiAEIAIgBEsbIAMgBEsbQQh0OwEAIAFBAmohASAAQQRqIQAgBUEBayIFDQALCwuZAgIDfwF8IAQgBWwhBAJ/IAazQwAAgEWUQwAAyEKVu0QAAAAAAADgP6AiC5lEAAAAAAAA4EFjBEAgC6oMAQtBgICAgHgLIQUgBARAIAdBCHQhCUEAIQYDQCAJIAIgBkEBdCIHai8BACIBIAMgB2ovAQBrIgcgB0EfdSIIaiAIc00EQCAAIAZBAnQiCGoiCiAFIAdsQYAQakEMdSABaiIHQYD+AyAHQYD+A0gbIgdBACAHQQBKG0EMdCABQQEgARtuIgEgCi0AAGxBgBBqQQx2OgAAIAAgCEEBcmoiByABIActAABsQYAQakEMdjoAACAAIAhBAnJqIgcgASAHLQAAbEGAEGpBDHY6AAALIAZBAWoiBiAERw0ACwsL"},{}],13:[function(r,a,s){var o=100;function u(h,f){this.create=h,this.available=[],this.acquired={},this.lastId=1,this.timeoutId=0,this.idle=f||2e3}u.prototype.acquire=function(){var h=this,f;return this.available.length!==0?f=this.available.pop():(f=this.create(),f.id=this.lastId++,f.release=function(){return h.release(f)}),this.acquired[f.id]=f,f},u.prototype.release=function(h){var f=this;delete this.acquired[h.id],h.lastUsed=Date.now(),this.available.push(h),this.timeoutId===0&&(this.timeoutId=setTimeout(function(){return f.gc()},o))},u.prototype.gc=function(){var h=this,f=Date.now();this.available=this.available.filter(function(p){return f-p.lastUsed>h.idle?(p.destroy(),!1):!0}),this.available.length!==0?this.timeoutId=setTimeout(function(){return h.gc()},o):this.timeoutId=0},a.exports=u},{}],14:[function(r,a,s){var o=2;a.exports=function(h,f,p,m,b,_){var w=p/h,S=m/f,C=(2*_+o+1)/b;if(C>.5)return[[p,m]];var A=Math.ceil(Math.log(Math.min(w,S))/Math.log(C));if(A<=1)return[[p,m]];for(var k=[],I=0;I=p.toWidth&&(I=p.toWidth-S),C=k-p.destTileBorder,C<0&&(C=0),N=k+w+p.destTileBorder-C,C+N>=p.toHeight&&(N=p.toHeight-C),P={toX:S,toY:C,toWidth:I,toHeight:N,toInnerX:A,toInnerY:k,toInnerWidth:_,toInnerHeight:w,offsetX:S/m-u(S/m),offsetY:C/b-u(C/b),scaleX:m,scaleY:b,x:u(S/m),y:u(C/b),width:h(I/m),height:h(N/b)},L.push(P);return L}},{}],16:[function(r,a,s){function o(u){return Object.prototype.toString.call(u)}a.exports.isCanvas=function(h){var f=o(h);return f==="[object HTMLCanvasElement]"||f==="[object OffscreenCanvas]"||f==="[object Canvas]"},a.exports.isImage=function(h){return o(h)==="[object HTMLImageElement]"},a.exports.isImageBitmap=function(h){return o(h)==="[object ImageBitmap]"},a.exports.limiter=function(h){var f=0,p=[];function m(){f"u")return!1;var f=h(100,100);return createImageBitmap(f,0,0,100,100,{resizeWidth:10,resizeHeight:10,resizeQuality:"high"}).then(function(p){var m=p.width===10;return p.close(),f=null,m})}).catch(function(){return!1})},a.exports.worker_offscreen_canvas_support=function(){return new Promise(function(h,f){if(typeof OffscreenCanvas>"u"){h(!1);return}function p(_){if(typeof createImageBitmap>"u"){_.postMessage(!1);return}Promise.resolve().then(function(){var w=new OffscreenCanvas(10,10),S=w.getContext("2d");return S.rect(0,0,1,1),createImageBitmap(w,0,0,1,1)}).then(function(){return _.postMessage(!0)},function(){return _.postMessage(!1)})}var m=btoa("(".concat(p.toString(),")(self);")),b=new Worker("data:text/javascript;base64,".concat(m));b.onmessage=function(_){return h(_.data)},b.onerror=f}).then(function(h){return h},function(){return!1})},a.exports.can_use_canvas=function(h){var f=!1;try{var p=h(2,1),m=p.getContext("2d"),b=m.createImageData(2,1);b.data[0]=12,b.data[1]=23,b.data[2]=34,b.data[3]=255,b.data[4]=45,b.data[5]=56,b.data[6]=67,b.data[7]=255,m.putImageData(b,0,0),b=null,b=m.getImageData(0,0,2,1),b.data[0]===12&&b.data[1]===23&&b.data[2]===34&&b.data[3]===255&&b.data[4]===45&&b.data[5]===56&&b.data[6]===67&&b.data[7]===255&&(f=!0)}catch{}return f},a.exports.cib_can_use_region=function(){return new Promise(function(h){if(typeof createImageBitmap>"u"){h(!1);return}var f=new Image;f.src="data:image/jpeg;base64,/9j/4QBiRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAYAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAAAAABIAAAAAQAAAEgAAAAB/9sAQwAEAwMEAwMEBAMEBQQEBQYKBwYGBgYNCQoICg8NEBAPDQ8OERMYFBESFxIODxUcFRcZGRsbGxAUHR8dGh8YGhsa/9sAQwEEBQUGBQYMBwcMGhEPERoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoa/8IAEQgAAQACAwERAAIRAQMRAf/EABQAAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAF/P//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8hf//aAAwDAQACAAMAAAAQH//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Qf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Qf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8Qf//Z",f.onload=function(){createImageBitmap(f,0,0,f.width,f.height).then(function(p){p.width===f.width&&p.height===f.height?h(!0):h(!1)},function(){return h(!1)})},f.onerror=function(){return h(!1)}})}},{}],17:[function(r,a,s){a.exports=function(){var o=r("./mathlib"),u;onmessage=function(f){var p=f.data.opts;if(!p.src&&p.srcBitmap){var m=new OffscreenCanvas(p.width,p.height),b=m.getContext("2d",{alpha:!!p.alpha});b.drawImage(p.srcBitmap,0,0),p.src=b.getImageData(0,0,p.width,p.height).data,m.width=m.height=0,m=null,p.srcBitmap.close(),p.srcBitmap=null}u||(u=new o(f.data.features));var _=u.resizeAndUnsharp(p);postMessage({data:_},[_.buffer])}}},{"./mathlib":1}],18:[function(r,a,s){var o,u,h,f,p,m,b,_;function w(A){A<.5&&(A=.5);var k=Math.exp(.726*.726)/A,I=Math.exp(-k),N=Math.exp(-2*k),L=(1-I)*(1-I)/(1+2*k*I-N);return o=L,u=L*(k-1)*I,h=L*(k+1)*I,f=-L*N,p=2*I,m=-N,b=(o+u)/(1-p-m),_=(h+f)/(1-p-m),new Float32Array([o,u,h,f,p,m,b,_])}function S(A,k,I,N,L,P){var M,F,U,$,G,B,Z,z,Y,W,Q,V,j,ee;for(Y=0;Y=0;W--)U=F*Q+M*V+$*j+G*ee,G=$,$=U,M=F,F=A[B],k[Z]=I[z]+$,B--,z--,Z-=P}}function C(A,k,I,N){if(N){var L=new Uint16Array(A.length),P=new Float32Array(Math.max(k,I)),M=w(N);S(A,L,P,M,k,I),S(L,A,P,M,I,k)}}a.exports=C},{}],19:[function(r,a,s){typeof Object.create=="function"?a.exports=function(u,h){h&&(u.super_=h,u.prototype=Object.create(h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}))}:a.exports=function(u,h){if(h){u.super_=h;var f=function(){};f.prototype=h.prototype,u.prototype=new f,u.prototype.constructor=u}}},{}],20:[function(r,a,s){var o=r("object-assign"),u=r("./lib/base64decode"),h=r("./lib/wa_detect"),f={js:!0,wasm:!0};function p(m){if(!(this instanceof p))return new p(m);var b=o({},f,m||{});if(this.options=b,this.__cache={},this.__init_promise=null,this.__modules=b.modules||{},this.__memory=null,this.__wasm={},this.__isLE=new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0]===1,!this.options.js&&!this.options.wasm)throw new Error('mathlib: at least "js" or "wasm" should be enabled')}p.prototype.has_wasm=h,p.prototype.use=function(m){return this.__modules[m.name]=m,this.options.wasm&&this.has_wasm()&&m.wasm_fn?this[m.name]=m.wasm_fn:this[m.name]=m.fn,this},p.prototype.init=function(){if(this.__init_promise)return this.__init_promise;if(!this.options.js&&this.options.wasm&&!this.has_wasm())return Promise.reject(new Error(`mathlib: only "wasm" was enabled, but it's not supported`));var m=this;return this.__init_promise=Promise.all(Object.keys(m.__modules).map(function(b){var _=m.__modules[b];return!m.options.wasm||!m.has_wasm()||!_.wasm_fn||m.__wasm[b]?null:WebAssembly.compile(m.__base64decode(_.wasm_src)).then(function(w){m.__wasm[b]=w})})).then(function(){return m}),this.__init_promise},p.prototype.__base64decode=u,p.prototype.__reallocate=function(b){if(!this.__memory)return this.__memory=new WebAssembly.Memory({initial:Math.ceil(b/(64*1024))}),this.__memory;var _=this.__memory.buffer.byteLength;return _>2),b=0,_=0,w=0;w>16&255,m[_++]=b>>8&255,m[_++]=b&255),b=b<<6|o.indexOf(f.charAt(w));var S=p%4*6;return S===0?(m[_++]=b>>16&255,m[_++]=b>>8&255,m[_++]=b&255):S===18?(m[_++]=b>>10&255,m[_++]=b>>2&255):S===12&&(m[_++]=b>>4&255),m}},{}],22:[function(r,a,s){var o;a.exports=function(){if(typeof o<"u"||(o=!1,typeof WebAssembly>"u"))return o;try{var h=new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,1,127,1,127,3,2,1,0,5,3,1,0,1,7,8,1,4,116,101,115,116,0,0,10,16,1,14,0,32,0,65,1,54,2,0,32,0,40,2,0,11]),f=new WebAssembly.Module(h),p=new WebAssembly.Instance(f,{});return p.exports.test(4)!==0&&(o=!0),o}catch{}return o}},{}],23:[function(r,a,s){var o=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;function f(m){if(m==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(m)}function p(){try{if(!Object.assign)return!1;var m=new String("abc");if(m[5]="de",Object.getOwnPropertyNames(m)[0]==="5")return!1;for(var b={},_=0;_<10;_++)b["_"+String.fromCharCode(_)]=_;var w=Object.getOwnPropertyNames(b).map(function(C){return b[C]});if(w.join("")!=="0123456789")return!1;var S={};return"abcdefghijklmnopqrst".split("").forEach(function(C){S[C]=C}),Object.keys(Object.assign({},S)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}a.exports=p()?Object.assign:function(m,b){for(var _,w=f(m),S,C=1;CW.length)&&(Q=W.length);for(var V=0,j=new Array(Q);V=0)}catch{}var P=1;typeof navigator<"u"&&(P=Math.min(navigator.hardwareConcurrency||1,4));var M={tile:1024,concurrency:P,features:["js","wasm","ww"],idle:2e3,createCanvas:function(Q,V){var j=document.createElement("canvas");return j.width=Q,j.height=V,j}},F={quality:3,alpha:!1,unsharpAmount:0,unsharpRadius:0,unsharpThreshold:0},U=!1,$=!1,G=!1,B=!1,Z=!1;function z(){return{value:_(A),destroy:function(){if(this.value.terminate(),typeof window<"u"){var Q=window.URL||window.webkitURL||window.mozURL||window.msURL;Q&&Q.revokeObjectURL&&this.value.objectURL&&Q.revokeObjectURL(this.value.objectURL)}}}}function Y(W){if(!(this instanceof Y))return new Y(W);this.options=b({},M,W||{});var Q="lk_".concat(this.options.concurrency);this.__limit=N[Q]||C.limiter(this.options.concurrency),N[Q]||(N[Q]=this.__limit),this.features={js:!1,wasm:!1,cib:!1,ww:!1},this.__workersPool=null,this.__requested_features=[],this.__mathlib=null}Y.prototype.init=function(){var W=this;if(this.__initPromise)return this.__initPromise;if(typeof ImageData<"u"&&typeof Uint8ClampedArray<"u")try{new ImageData(new Uint8ClampedArray(400),10,10),U=!0}catch{}typeof ImageBitmap<"u"&&(ImageBitmap.prototype&&ImageBitmap.prototype.close?$=!0:this.debug("ImageBitmap does not support .close(), disabled"));var Q=this.options.features.slice();if(Q.indexOf("all")>=0&&(Q=["cib","wasm","js","ww"]),this.__requested_features=Q,this.__mathlib=new w(Q),Q.indexOf("ww")>=0&&typeof window<"u"&&"Worker"in window)try{var V=r("webworkify")(function(){});V.terminate(),this.features.ww=!0;var j="wp_".concat(JSON.stringify(this.options));N[j]?this.__workersPool=N[j]:(this.__workersPool=new S(z,this.options.idle),N[j]=this.__workersPool)}catch{}var ee=this.__mathlib.init().then(function(ie){b(W.features,ie.features)}),te;$?te=C.cib_support(this.options.createCanvas).then(function(ie){if(W.features.cib&&Q.indexOf("cib")<0){W.debug("createImageBitmap() resize supported, but disabled by config");return}Q.indexOf("cib")>=0&&(W.features.cib=ie)}):te=Promise.resolve(!1),G=C.can_use_canvas(this.options.createCanvas);var ne;$&&U&&Q.indexOf("ww")!==-1?ne=C.worker_offscreen_canvas_support():ne=Promise.resolve(!1),ne=ne.then(function(ie){B=ie});var se=C.cib_can_use_region().then(function(ie){Z=ie});return this.__initPromise=Promise.all([ee,te,ne,se]).then(function(){return W}),this.__initPromise},Y.prototype.__invokeResize=function(W,Q){var V=this;return Q.__mathCache=Q.__mathCache||{},Promise.resolve().then(function(){return V.features.ww?new Promise(function(j,ee){var te=V.__workersPool.acquire();Q.cancelToken&&Q.cancelToken.catch(function(se){return ee(se)}),te.value.onmessage=function(se){te.release(),se.data.err?ee(se.data.err):j(se.data)};var ne=[];W.src&&ne.push(W.src.buffer),W.srcBitmap&&ne.push(W.srcBitmap),te.value.postMessage({opts:W,features:V.__requested_features,preload:{wasm_nodule:V.__mathlib.__}},ne)}):{data:V.__mathlib.resizeAndUnsharp(W,Q.__mathCache)}})},Y.prototype.__extractTileData=function(W,Q,V,j,ee){if(this.features.ww&&B&&(C.isCanvas(Q)||Z))return this.debug("Create tile for OffscreenCanvas"),createImageBitmap(j.srcImageBitmap||Q,W.x,W.y,W.width,W.height).then(function(se){return ee.srcBitmap=se,ee});if(C.isCanvas(Q))return j.srcCtx||(j.srcCtx=Q.getContext("2d",{alpha:!!V.alpha})),this.debug("Get tile pixel data"),ee.src=j.srcCtx.getImageData(W.x,W.y,W.width,W.height).data,ee;this.debug("Draw tile imageBitmap/image to temporary canvas");var te=this.options.createCanvas(W.width,W.height),ne=te.getContext("2d",{alpha:!!V.alpha});return ne.globalCompositeOperation="copy",ne.drawImage(j.srcImageBitmap||Q,W.x,W.y,W.width,W.height,0,0,W.width,W.height),this.debug("Get tile pixel data"),ee.src=ne.getImageData(0,0,W.width,W.height).data,te.width=te.height=0,ee},Y.prototype.__landTileData=function(W,Q,V){var j;if(this.debug("Convert raw rgba tile result to ImageData"),Q.bitmap)return V.toCtx.drawImage(Q.bitmap,W.toX,W.toY),null;if(U)j=new ImageData(new Uint8ClampedArray(Q.data),W.toWidth,W.toHeight);else if(j=V.toCtx.createImageData(W.toWidth,W.toHeight),j.data.set)j.data.set(Q.data);else for(var ee=j.data.length-1;ee>=0;ee--)j.data[ee]=Q.data[ee];return this.debug("Draw tile"),L?V.toCtx.putImageData(j,W.toX,W.toY,W.toInnerX-W.toX,W.toInnerY-W.toY,W.toInnerWidth+1e-5,W.toInnerHeight+1e-5):V.toCtx.putImageData(j,W.toX,W.toY,W.toInnerX-W.toX,W.toInnerY-W.toY,W.toInnerWidth,W.toInnerHeight),null},Y.prototype.__tileAndResize=function(W,Q,V){var j=this,ee={srcCtx:null,srcImageBitmap:null,isImageBitmapReused:!1,toCtx:null},te=function(se){return j.__limit(function(){if(V.canceled)return V.cancelToken;var ie={width:se.width,height:se.height,toWidth:se.toWidth,toHeight:se.toHeight,scaleX:se.scaleX,scaleY:se.scaleY,offsetX:se.offsetX,offsetY:se.offsetY,quality:V.quality,alpha:V.alpha,unsharpAmount:V.unsharpAmount,unsharpRadius:V.unsharpRadius,unsharpThreshold:V.unsharpThreshold};return j.debug("Invoke resize math"),Promise.resolve(ie).then(function(ge){return j.__extractTileData(se,W,V,ee,ge)}).then(function(ge){return j.debug("Invoke resize math"),j.__invokeResize(ge,V)}).then(function(ge){return V.canceled?V.cancelToken:(ee.srcImageData=null,j.__landTileData(se,ge,ee))})})};return Promise.resolve().then(function(){if(ee.toCtx=Q.getContext("2d",{alpha:!!V.alpha}),C.isCanvas(W))return null;if(C.isImageBitmap(W))return ee.srcImageBitmap=W,ee.isImageBitmapReused=!0,null;if(C.isImage(W))return $?(j.debug("Decode image via createImageBitmap"),createImageBitmap(W).then(function(ne){ee.srcImageBitmap=ne}).catch(function(ne){return null})):null;throw new Error('Pica: ".from" should be Image, Canvas or ImageBitmap')}).then(function(){if(V.canceled)return V.cancelToken;j.debug("Calculate tiles");var ne=I({width:V.width,height:V.height,srcTileSize:j.options.tile,toWidth:V.toWidth,toHeight:V.toHeight,destTileBorder:V.__destTileBorder}),se=ne.map(function(ge){return te(ge)});function ie(ge){ge.srcImageBitmap&&(ge.isImageBitmapReused||ge.srcImageBitmap.close(),ge.srcImageBitmap=null)}return j.debug("Process tiles"),Promise.all(se).then(function(){return j.debug("Finished!"),ie(ee),Q},function(ge){throw ie(ee),ge})})},Y.prototype.__processStages=function(W,Q,V,j){var ee=this;if(j.canceled)return j.cancelToken;var te=W.shift(),ne=o(te,2),se=ne[0],ie=ne[1],ge=W.length===0;j=b({},j,{toWidth:se,toHeight:ie,quality:ge?j.quality:Math.min(1,j.quality)});var ce;return ge||(ce=this.options.createCanvas(se,ie)),this.__tileAndResize(Q,ge?V:ce,j).then(function(){return ge?V:(j.width=se,j.height=ie,ee.__processStages(W,ce,V,j))}).then(function(be){return ce&&(ce.width=ce.height=0),be})},Y.prototype.__resizeViaCreateImageBitmap=function(W,Q,V){var j=this,ee=Q.getContext("2d",{alpha:!!V.alpha});return this.debug("Resize via createImageBitmap()"),createImageBitmap(W,{resizeWidth:V.toWidth,resizeHeight:V.toHeight,resizeQuality:C.cib_quality_name(V.quality)}).then(function(te){if(V.canceled)return V.cancelToken;if(!V.unsharpAmount)return ee.drawImage(te,0,0),te.close(),ee=null,j.debug("Finished!"),Q;j.debug("Unsharp result");var ne=j.options.createCanvas(V.toWidth,V.toHeight),se=ne.getContext("2d",{alpha:!!V.alpha});se.drawImage(te,0,0),te.close();var ie=se.getImageData(0,0,V.toWidth,V.toHeight);return j.__mathlib.unsharp_mask(ie.data,V.toWidth,V.toHeight,V.unsharpAmount,V.unsharpRadius,V.unsharpThreshold),ee.putImageData(ie,0,0),ne.width=ne.height=0,ie=se=ne=ee=null,j.debug("Finished!"),Q})},Y.prototype.resize=function(W,Q,V){var j=this;this.debug("Start resize...");var ee=b({},F);if(isNaN(V)?V&&(ee=b(ee,V)):ee=b(ee,{quality:V}),ee.toWidth=Q.width,ee.toHeight=Q.height,ee.width=W.naturalWidth||W.width,ee.height=W.naturalHeight||W.height,Q.width===0||Q.height===0)return Promise.reject(new Error("Invalid output size: ".concat(Q.width,"x").concat(Q.height)));ee.unsharpRadius>2&&(ee.unsharpRadius=2),ee.canceled=!1,ee.cancelToken&&(ee.cancelToken=ee.cancelToken.then(function(ne){throw ee.canceled=!0,ne},function(ne){throw ee.canceled=!0,ne}));var te=3;return ee.__destTileBorder=Math.ceil(Math.max(te,2.5*ee.unsharpRadius|0)),this.init().then(function(){if(ee.canceled)return ee.cancelToken;if(j.features.cib)return j.__resizeViaCreateImageBitmap(W,Q,ee);if(!G){var ne=new Error("Pica: cannot use getImageData on canvas, make sure fingerprinting protection isn't enabled");throw ne.code="ERR_GET_IMAGE_DATA",ne}var se=k(ee.width,ee.height,ee.toWidth,ee.toHeight,j.options.tile,ee.__destTileBorder);return j.__processStages(se,W,Q,ee)})},Y.prototype.resizeBuffer=function(W){var Q=this,V=b({},F,W);return this.init().then(function(){return Q.__mathlib.resizeAndUnsharp(V)})},Y.prototype.toBlob=function(W,Q,V){return Q=Q||"image/png",new Promise(function(j){if(W.toBlob){W.toBlob(function(ie){return j(ie)},Q,V);return}if(W.convertToBlob){j(W.convertToBlob({type:Q,quality:V}));return}for(var ee=atob(W.toDataURL(Q,V).split(",")[1]),te=ee.length,ne=new Uint8Array(te),se=0;se=0,wasm:b.indexOf("wasm")>=0};u.call(this,_),this.features={js:_.js,wasm:_.wasm&&this.has_wasm()},this.use(h),this.use(f)}o(p,u),p.prototype.resizeAndUnsharp=function(b,_){var w=this.resize(b,_);return b.unsharpAmount&&this.unsharp_mask(w,b.toWidth,b.toHeight,b.unsharpAmount,b.unsharpRadius,b.unsharpThreshold),w},a.exports=p},{"./mm_resize":4,"./mm_unsharp_mask":9,inherits:19,multimath:20}],2:[function(r,a,s){function o(f){return f<0?0:f>255?255:f}function u(f,p,m,b,_,w){var S,C,A,k,I,N,L,P,M,F,U,$=0,G=0;for(M=0;M0;L--)U=w[I++],k=k+U*f[P+3]|0,A=A+U*f[P+2]|0,C=C+U*f[P+1]|0,S=S+U*f[P]|0,P=P+4|0;p[G+3]=o(k+8192>>14),p[G+2]=o(A+8192>>14),p[G+1]=o(C+8192>>14),p[G]=o(S+8192>>14),G=G+b*4|0}G=(M+1)*4|0,$=(M+1)*m*4|0}}function h(f,p,m,b,_,w){var S,C,A,k,I,N,L,P,M,F,U,$=0,G=0;for(M=0;M0;L--)U=w[I++],k=k+U*f[P+3]|0,A=A+U*f[P+2]|0,C=C+U*f[P+1]|0,S=S+U*f[P]|0,P=P+4|0;p[G+3]=o(k+8192>>14),p[G+2]=o(A+8192>>14),p[G+1]=o(C+8192>>14),p[G]=o(S+8192>>14),G=G+b*4|0}G=(M+1)*4|0,$=(M+1)*m*4|0}}a.exports={convolveHorizontally:u,convolveVertically:h}},{}],3:[function(r,a,s){a.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAEXA2AAAGAGf39/f39/AGAHf39/f39/fwACDwEDZW52Bm1lbW9yeQIAAAMEAwABAgYGAX8AQQALB1cFEV9fd2FzbV9jYWxsX2N0b3JzAAAIY29udm9sdmUAAQpjb252b2x2ZUhWAAIMX19kc29faGFuZGxlAwAYX193YXNtX2FwcGx5X2RhdGFfcmVsb2NzAAAK7AMDAwABC8YDAQ9/AkAgA0UNACAERQ0AA0AgDCENQQAhE0EAIQcDQCAHQQJqIQYCfyAHQQF0IAVqIgcuAQIiFEUEQEGAwAAhCEGAwAAhCUGAwAAhCkGAwAAhCyAGDAELIBIgBy4BAGohCEEAIQsgFCEHQQAhDiAGIQlBACEPQQAhEANAIAUgCUEBdGouAQAiESAAIAhBAnRqKAIAIgpBGHZsIBBqIRAgCkH/AXEgEWwgC2ohCyAKQRB2Qf8BcSARbCAPaiEPIApBCHZB/wFxIBFsIA5qIQ4gCEEBaiEIIAlBAWohCSAHQQFrIgcNAAsgC0GAQGshCCAOQYBAayEJIA9BgEBrIQogEEGAQGshCyAGIBRqCyEHIAEgDUECdGogCUEOdSIGQf8BIAZB/wFIGyIGQQAgBkEAShtBCHRBgP4DcSAKQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EQdEGAgPwHcSALQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EYdHJyIAhBDnUiBkH/ASAGQf8BSBsiBkEAIAZBAEobcjYCACADIA1qIQ0gE0EBaiITIARHDQALIAxBAWoiDCACbCESIAMgDEcNAAsLCx4AQQAgAiADIAQgBSAAEAEgAkEAIAQgBSAGIAEQAQs="},{}],4:[function(r,a,s){a.exports={name:"resize",fn:r("./resize"),wasm_fn:r("./resize_wasm"),wasm_src:r("./convolve_wasm_base64")}},{"./convolve_wasm_base64":3,"./resize":5,"./resize_wasm":8}],5:[function(r,a,s){var o=r("./resize_filter_gen"),u=r("./convolve").convolveHorizontally,h=r("./convolve").convolveVertically;function f(p,m,b){for(var _=3,w=m*b*4|0;_"u"?3:m.quality,M=m.alpha||!1,F=o(P,_,S,A,I),U=o(P,w,C,k,N),$=new Uint8Array(S*w*4);return u(b,$,_,w,S,F),h($,L,w,S,C,U),M||f(L,S,C),L}},{"./convolve":2,"./resize_filter_gen":6}],6:[function(r,a,s){var o=r("./resize_filter_info"),u=14;function h(f){return Math.round(f*((1<>1]+=h(1-z),W=0;W0&&U[Q]===0;)Q--;if(V=L+W,j=Q-W+1,te[ne++]=V,te[ne++]=j,!se)te.set(U.subarray(W,Q+1),ne),ne+=j;else for(B=W;B<=Q;B++)te[ne++]=U[B]}else te[ne++]=0,te[ne++]=0}return te}},{"./resize_filter_info":7}],7:[function(r,a,s){a.exports=[{win:.5,filter:function(u){return u>=-.5&&u<.5?1:0}},{win:1,filter:function(u){if(u<=-1||u>=1)return 0;if(u>-11920929e-14&&u<11920929e-14)return 1;var h=u*Math.PI;return Math.sin(h)/h*(.54+.46*Math.cos(h/1))}},{win:2,filter:function(u){if(u<=-2||u>=2)return 0;if(u>-11920929e-14&&u<11920929e-14)return 1;var h=u*Math.PI;return Math.sin(h)/h*Math.sin(h/2)/(h/2)}},{win:3,filter:function(u){if(u<=-3||u>=3)return 0;if(u>-11920929e-14&&u<11920929e-14)return 1;var h=u*Math.PI;return Math.sin(h)/h*Math.sin(h/3)/(h/3)}}]},{}],8:[function(r,a,s){var o=r("./resize_filter_gen");function u(m,b,_){for(var w=3,S=b*_*4|0;w>8&255}}a.exports=function(b){var _=b.src,w=b.width,S=b.height,C=b.toWidth,A=b.toHeight,k=b.scaleX||b.toWidth/b.width,I=b.scaleY||b.toHeight/b.height,N=b.offsetX||0,L=b.offsetY||0,P=b.dest||new Uint8Array(C*A*4),M=typeof b.quality>"u"?3:b.quality,F=b.alpha||!1,U=o(M,w,C,k,N),$=o(M,S,A,I,L),G=0,B=this.__align(G+Math.max(_.byteLength,P.byteLength)),Z=this.__align(B+S*C*4),z=this.__align(Z+U.byteLength),Y=z+$.byteLength,W=this.__instance("resize",Y),Q=new Uint8Array(this.__memory.buffer),V=new Uint32Array(this.__memory.buffer),j=new Uint32Array(_.buffer);V.set(j),p(U,Q,Z),p($,Q,z);var ee=W.exports.convolveHV||W.exports._convolveHV;ee(Z,z,B,w,S,C,A);var te=new Uint32Array(P.buffer);return te.set(new Uint32Array(this.__memory.buffer,0,A*C)),F||u(P,C,A),P}},{"./resize_filter_gen":6}],9:[function(r,a,s){a.exports={name:"unsharp_mask",fn:r("./unsharp_mask"),wasm_fn:r("./unsharp_mask_wasm"),wasm_src:r("./unsharp_mask_wasm_base64")}},{"./unsharp_mask":10,"./unsharp_mask_wasm":11,"./unsharp_mask_wasm_base64":12}],10:[function(r,a,s){var o=r("glur/mono16");function u(h,f,p){for(var m=f*p,b=new Uint16Array(m),_,w,S,C,A=0;A=w&&_>=S?_:w>=S&&w>=_?w:S,b[A]=C<<8;return b}a.exports=function(f,p,m,b,_,w){var S,C,A,k,I;if(!(b===0||_<.5)){_>2&&(_=2);var N=u(f,p,m),L=new Uint16Array(N);o(L,p,m,_);for(var P=b/100*4096+.5|0,M=w<<8,F=p*m,U=0;U=M&&(C=S+(P*k+2048>>12),C=C>65280?65280:C,C=C<0?0:C,S=S!==0?S:1,A=(C<<12)/S|0,I=U*4,f[I]=f[I]*A+2048>>12,f[I+1]=f[I+1]*A+2048>>12,f[I+2]=f[I+2]*A+2048>>12)}}},{"glur/mono16":18}],11:[function(r,a,s){a.exports=function(u,h,f,p,m,b){if(!(p===0||m<.5)){m>2&&(m=2);var _=h*f,w=_*4,S=_*2,C=_*2,A=Math.max(h,f)*4,k=8*4,I=0,N=w,L=N+S,P=L+C,M=P+C,F=M+A,U=this.__instance("unsharp_mask",w+S+C*2+A+k,{exp:Math.exp}),$=new Uint32Array(u.buffer),G=new Uint32Array(this.__memory.buffer);G.set($);var B=U.exports.hsv_v16||U.exports._hsv_v16;B(I,N,h,f),B=U.exports.blurMono16||U.exports._blurMono16,B(N,L,P,M,F,h,f,m),B=U.exports.unsharp||U.exports._unsharp,B(I,I,N,L,h,f,p,b),$.set(new Uint32Array(this.__memory.buffer,0,_))}}},{}],12:[function(r,a,s){a.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAE0B2AAAGAEf39/fwBgBn9/f39/fwBgCH9/f39/f39/AGAIf39/f39/f30AYAJ9fwBgAXwBfAIZAgNlbnYDZXhwAAYDZW52Bm1lbW9yeQIAAAMHBgAFAgQBAwYGAX8AQQALB4oBCBFfX3dhc21fY2FsbF9jdG9ycwABFl9fYnVpbGRfZ2F1c3NpYW5fY29lZnMAAg5fX2dhdXNzMTZfbGluZQADCmJsdXJNb25vMTYABAdoc3ZfdjE2AAUHdW5zaGFycAAGDF9fZHNvX2hhbmRsZQMAGF9fd2FzbV9hcHBseV9kYXRhX3JlbG9jcwABCsUMBgMAAQvWAQEHfCABRNuGukOCGvs/IAC7oyICRAAAAAAAAADAohAAIgW2jDgCFCABIAKaEAAiAyADoCIGtjgCECABRAAAAAAAAPA/IAOhIgQgBKIgAyACIAKgokQAAAAAAADwP6AgBaGjIgS2OAIAIAEgBSAEmqIiB7Y4AgwgASADIAJEAAAAAAAA8D+gIASioiIItjgCCCABIAMgAkQAAAAAAADwv6AgBKKiIgK2OAIEIAEgByAIoCAFRAAAAAAAAPA/IAahoCIDo7Y4AhwgASAEIAKgIAOjtjgCGAuGBQMGfwl8An0gAyoCDCEVIAMqAgghFiADKgIUuyERIAMqAhC7IRACQCAEQQFrIghBAEgiCQRAIAIhByAAIQYMAQsgAiAALwEAuCIPIAMqAhi7oiIMIBGiIg0gDCAQoiAPIAMqAgS7IhOiIhQgAyoCALsiEiAPoqCgoCIOtjgCACACQQRqIQcgAEECaiEGIAhFDQAgCEEBIAhBAUgbIgpBf3MhCwJ/IAQgCmtBAXFFBEAgDiENIAgMAQsgAiANIA4gEKIgFCASIAAvAQK4Ig+ioKCgIg22OAIEIAJBCGohByAAQQRqIQYgDiEMIARBAmsLIQIgC0EAIARrRg0AA0AgByAMIBGiIA0gEKIgDyAToiASIAYvAQC4Ig6ioKCgIgy2OAIAIAcgDSARoiAMIBCiIA4gE6IgEiAGLwECuCIPoqCgoCINtjgCBCAHQQhqIQcgBkEEaiEGIAJBAkohACACQQJrIQIgAA0ACwsCQCAJDQAgASAFIAhsQQF0aiIAAn8gBkECay8BACICuCINIBW7IhKiIA0gFrsiE6KgIA0gAyoCHLuiIgwgEKKgIAwgEaKgIg8gB0EEayIHKgIAu6AiDkQAAAAAAADwQWMgDkQAAAAAAAAAAGZxBEAgDqsMAQtBAAs7AQAgCEUNACAGQQRrIQZBACAFa0EBdCEBA0ACfyANIBKiIAJB//8DcbgiDSAToqAgDyIOIBCioCAMIBGioCIPIAdBBGsiByoCALugIgxEAAAAAAAA8EFjIAxEAAAAAAAAAABmcQRAIAyrDAELQQALIQMgBi8BACECIAAgAWoiACADOwEAIAZBAmshBiAIQQFKIQMgDiEMIAhBAWshCCADDQALCwvRAgIBfwd8AkAgB0MAAAAAWw0AIARE24a6Q4Ia+z8gB0MAAAA/l7ujIglEAAAAAAAAAMCiEAAiDLaMOAIUIAQgCZoQACIKIAqgIg22OAIQIAREAAAAAAAA8D8gCqEiCyALoiAKIAkgCaCiRAAAAAAAAPA/oCAMoaMiC7Y4AgAgBCAMIAuaoiIOtjgCDCAEIAogCUQAAAAAAADwP6AgC6KiIg+2OAIIIAQgCiAJRAAAAAAAAPC/oCALoqIiCbY4AgQgBCAOIA+gIAxEAAAAAAAA8D8gDaGgIgqjtjgCHCAEIAsgCaAgCqO2OAIYIAYEQANAIAAgBSAIbEEBdGogAiAIQQF0aiADIAQgBSAGEAMgCEEBaiIIIAZHDQALCyAFRQ0AQQAhCANAIAIgBiAIbEEBdGogASAIQQF0aiADIAQgBiAFEAMgCEEBaiIIIAVHDQALCwtxAQN/IAIgA2wiBQRAA0AgASAAKAIAIgRBEHZB/wFxIgIgAiAEQQh2Qf8BcSIDIAMgBEH/AXEiBEkbIAIgA0sbIgYgBiAEIAIgBEsbIAMgBEsbQQh0OwEAIAFBAmohASAAQQRqIQAgBUEBayIFDQALCwuZAgIDfwF8IAQgBWwhBAJ/IAazQwAAgEWUQwAAyEKVu0QAAAAAAADgP6AiC5lEAAAAAAAA4EFjBEAgC6oMAQtBgICAgHgLIQUgBARAIAdBCHQhCUEAIQYDQCAJIAIgBkEBdCIHai8BACIBIAMgB2ovAQBrIgcgB0EfdSIIaiAIc00EQCAAIAZBAnQiCGoiCiAFIAdsQYAQakEMdSABaiIHQYD+AyAHQYD+A0gbIgdBACAHQQBKG0EMdCABQQEgARtuIgEgCi0AAGxBgBBqQQx2OgAAIAAgCEEBcmoiByABIActAABsQYAQakEMdjoAACAAIAhBAnJqIgcgASAHLQAAbEGAEGpBDHY6AAALIAZBAWoiBiAERw0ACwsL"},{}],13:[function(r,a,s){var o=100;function u(h,f){this.create=h,this.available=[],this.acquired={},this.lastId=1,this.timeoutId=0,this.idle=f||2e3}u.prototype.acquire=function(){var h=this,f;return this.available.length!==0?f=this.available.pop():(f=this.create(),f.id=this.lastId++,f.release=function(){return h.release(f)}),this.acquired[f.id]=f,f},u.prototype.release=function(h){var f=this;delete this.acquired[h.id],h.lastUsed=Date.now(),this.available.push(h),this.timeoutId===0&&(this.timeoutId=setTimeout(function(){return f.gc()},o))},u.prototype.gc=function(){var h=this,f=Date.now();this.available=this.available.filter(function(p){return f-p.lastUsed>h.idle?(p.destroy(),!1):!0}),this.available.length!==0?this.timeoutId=setTimeout(function(){return h.gc()},o):this.timeoutId=0},a.exports=u},{}],14:[function(r,a,s){var o=2;a.exports=function(h,f,p,m,b,_){var w=p/h,S=m/f,C=(2*_+o+1)/b;if(C>.5)return[[p,m]];var A=Math.ceil(Math.log(Math.min(w,S))/Math.log(C));if(A<=1)return[[p,m]];for(var k=[],I=0;I=p.toWidth&&(I=p.toWidth-S),C=k-p.destTileBorder,C<0&&(C=0),N=k+w+p.destTileBorder-C,C+N>=p.toHeight&&(N=p.toHeight-C),P={toX:S,toY:C,toWidth:I,toHeight:N,toInnerX:A,toInnerY:k,toInnerWidth:_,toInnerHeight:w,offsetX:S/m-u(S/m),offsetY:C/b-u(C/b),scaleX:m,scaleY:b,x:u(S/m),y:u(C/b),width:h(I/m),height:h(N/b)},L.push(P);return L}},{}],16:[function(r,a,s){function o(u){return Object.prototype.toString.call(u)}a.exports.isCanvas=function(h){var f=o(h);return f==="[object HTMLCanvasElement]"||f==="[object OffscreenCanvas]"||f==="[object Canvas]"},a.exports.isImage=function(h){return o(h)==="[object HTMLImageElement]"},a.exports.isImageBitmap=function(h){return o(h)==="[object ImageBitmap]"},a.exports.limiter=function(h){var f=0,p=[];function m(){f"u")return!1;var f=h(100,100);return createImageBitmap(f,0,0,100,100,{resizeWidth:10,resizeHeight:10,resizeQuality:"high"}).then(function(p){var m=p.width===10;return p.close(),f=null,m})}).catch(function(){return!1})},a.exports.worker_offscreen_canvas_support=function(){return new Promise(function(h,f){if(typeof OffscreenCanvas>"u"){h(!1);return}function p(_){if(typeof createImageBitmap>"u"){_.postMessage(!1);return}Promise.resolve().then(function(){var w=new OffscreenCanvas(10,10),S=w.getContext("2d");return S.rect(0,0,1,1),createImageBitmap(w,0,0,1,1)}).then(function(){return _.postMessage(!0)},function(){return _.postMessage(!1)})}var m=btoa("(".concat(p.toString(),")(self);")),b=new Worker("data:text/javascript;base64,".concat(m));b.onmessage=function(_){return h(_.data)},b.onerror=f}).then(function(h){return h},function(){return!1})},a.exports.can_use_canvas=function(h){var f=!1;try{var p=h(2,1),m=p.getContext("2d"),b=m.createImageData(2,1);b.data[0]=12,b.data[1]=23,b.data[2]=34,b.data[3]=255,b.data[4]=45,b.data[5]=56,b.data[6]=67,b.data[7]=255,m.putImageData(b,0,0),b=null,b=m.getImageData(0,0,2,1),b.data[0]===12&&b.data[1]===23&&b.data[2]===34&&b.data[3]===255&&b.data[4]===45&&b.data[5]===56&&b.data[6]===67&&b.data[7]===255&&(f=!0)}catch{}return f},a.exports.cib_can_use_region=function(){return new Promise(function(h){if(typeof createImageBitmap>"u"){h(!1);return}var f=new Image;f.src="data:image/jpeg;base64,/9j/4QBiRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAYAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAAAAABIAAAAAQAAAEgAAAAB/9sAQwAEAwMEAwMEBAMEBQQEBQYKBwYGBgYNCQoICg8NEBAPDQ8OERMYFBESFxIODxUcFRcZGRsbGxAUHR8dGh8YGhsa/9sAQwEEBQUGBQYMBwcMGhEPERoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoa/8IAEQgAAQACAwERAAIRAQMRAf/EABQAAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAF/P//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8hf//aAAwDAQACAAMAAAAQH//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Qf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Qf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8Qf//Z",f.onload=function(){createImageBitmap(f,0,0,f.width,f.height).then(function(p){p.width===f.width&&p.height===f.height?h(!0):h(!1)},function(){return h(!1)})},f.onerror=function(){return h(!1)}})}},{}],17:[function(r,a,s){a.exports=function(){var o=r("./mathlib"),u;onmessage=function(f){var p=f.data.opts,m=!1;if(!p.src&&p.srcBitmap){var b=new OffscreenCanvas(p.width,p.height),_=b.getContext("2d",{alpha:!!p.alpha});_.drawImage(p.srcBitmap,0,0),p.src=_.getImageData(0,0,p.width,p.height).data,b.width=b.height=0,b=null,p.srcBitmap.close(),p.srcBitmap=null,m=!0}u||(u=new o(f.data.features));var w=u.resizeAndUnsharp(p);if(m){var S=new ImageData(new Uint8ClampedArray(w),p.toWidth,p.toHeight),C=new OffscreenCanvas(p.toWidth,p.toHeight),A=C.getContext("2d",{alpha:!!p.alpha});A.putImageData(S,0,0),createImageBitmap(C).then(function(k){postMessage({bitmap:k},[k])})}else postMessage({data:w},[w.buffer])}}},{"./mathlib":1}],18:[function(r,a,s){var o,u,h,f,p,m,b,_;function w(A){A<.5&&(A=.5);var k=Math.exp(.726*.726)/A,I=Math.exp(-k),N=Math.exp(-2*k),L=(1-I)*(1-I)/(1+2*k*I-N);return o=L,u=L*(k-1)*I,h=L*(k+1)*I,f=-L*N,p=2*I,m=-N,b=(o+u)/(1-p-m),_=(h+f)/(1-p-m),new Float32Array([o,u,h,f,p,m,b,_])}function S(A,k,I,N,L,P){var M,F,U,$,G,B,Z,z,Y,W,Q,V,j,ee;for(Y=0;Y=0;W--)U=F*Q+M*V+$*j+G*ee,G=$,$=U,M=F,F=A[B],k[Z]=I[z]+$,B--,z--,Z-=P}}function C(A,k,I,N){if(N){var L=new Uint16Array(A.length),P=new Float32Array(Math.max(k,I)),M=w(N);S(A,L,P,M,k,I),S(L,A,P,M,I,k)}}a.exports=C},{}],19:[function(r,a,s){typeof Object.create=="function"?a.exports=function(u,h){h&&(u.super_=h,u.prototype=Object.create(h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}))}:a.exports=function(u,h){if(h){u.super_=h;var f=function(){};f.prototype=h.prototype,u.prototype=new f,u.prototype.constructor=u}}},{}],20:[function(r,a,s){var o=r("object-assign"),u=r("./lib/base64decode"),h=r("./lib/wa_detect"),f={js:!0,wasm:!0};function p(m){if(!(this instanceof p))return new p(m);var b=o({},f,m||{});if(this.options=b,this.__cache={},this.__init_promise=null,this.__modules=b.modules||{},this.__memory=null,this.__wasm={},this.__isLE=new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0]===1,!this.options.js&&!this.options.wasm)throw new Error('mathlib: at least "js" or "wasm" should be enabled')}p.prototype.has_wasm=h,p.prototype.use=function(m){return this.__modules[m.name]=m,this.options.wasm&&this.has_wasm()&&m.wasm_fn?this[m.name]=m.wasm_fn:this[m.name]=m.fn,this},p.prototype.init=function(){if(this.__init_promise)return this.__init_promise;if(!this.options.js&&this.options.wasm&&!this.has_wasm())return Promise.reject(new Error(`mathlib: only "wasm" was enabled, but it's not supported`));var m=this;return this.__init_promise=Promise.all(Object.keys(m.__modules).map(function(b){var _=m.__modules[b];return!m.options.wasm||!m.has_wasm()||!_.wasm_fn||m.__wasm[b]?null:WebAssembly.compile(m.__base64decode(_.wasm_src)).then(function(w){m.__wasm[b]=w})})).then(function(){return m}),this.__init_promise},p.prototype.__base64decode=u,p.prototype.__reallocate=function(b){if(!this.__memory)return this.__memory=new WebAssembly.Memory({initial:Math.ceil(b/(64*1024))}),this.__memory;var _=this.__memory.buffer.byteLength;return _>2),b=0,_=0,w=0;w>16&255,m[_++]=b>>8&255,m[_++]=b&255),b=b<<6|o.indexOf(f.charAt(w));var S=p%4*6;return S===0?(m[_++]=b>>16&255,m[_++]=b>>8&255,m[_++]=b&255):S===18?(m[_++]=b>>10&255,m[_++]=b>>2&255):S===12&&(m[_++]=b>>4&255),m}},{}],22:[function(r,a,s){var o;a.exports=function(){if(typeof o<"u"||(o=!1,typeof WebAssembly>"u"))return o;try{var h=new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,1,127,1,127,3,2,1,0,5,3,1,0,1,7,8,1,4,116,101,115,116,0,0,10,16,1,14,0,32,0,65,1,54,2,0,32,0,40,2,0,11]),f=new WebAssembly.Module(h),p=new WebAssembly.Instance(f,{});return p.exports.test(4)!==0&&(o=!0),o}catch{}return o}},{}],23:[function(r,a,s){var o=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;function f(m){if(m==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(m)}function p(){try{if(!Object.assign)return!1;var m=new String("abc");if(m[5]="de",Object.getOwnPropertyNames(m)[0]==="5")return!1;for(var b={},_=0;_<10;_++)b["_"+String.fromCharCode(_)]=_;var w=Object.getOwnPropertyNames(b).map(function(C){return b[C]});if(w.join("")!=="0123456789")return!1;var S={};return"abcdefghijklmnopqrst".split("").forEach(function(C){S[C]=C}),Object.keys(Object.assign({},S)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}a.exports=p()?Object.assign:function(m,b){for(var _,w=f(m),S,C=1;CW.length)&&(Q=W.length);for(var V=0,j=new Array(Q);V=0)}catch{}var P=1;typeof navigator<"u"&&(P=Math.min(navigator.hardwareConcurrency||1,4));var M={tile:1024,concurrency:P,features:["js","wasm","ww"],idle:2e3,createCanvas:function(Q,V){var j=document.createElement("canvas");return j.width=Q,j.height=V,j}},F={quality:3,alpha:!1,unsharpAmount:0,unsharpRadius:0,unsharpThreshold:0},U=!1,$=!1,G=!1,B=!1,Z=!1;function z(){return{value:_(A),destroy:function(){if(this.value.terminate(),typeof window<"u"){var Q=window.URL||window.webkitURL||window.mozURL||window.msURL;Q&&Q.revokeObjectURL&&this.value.objectURL&&Q.revokeObjectURL(this.value.objectURL)}}}}function Y(W){if(!(this instanceof Y))return new Y(W);this.options=b({},M,W||{});var Q="lk_".concat(this.options.concurrency);this.__limit=N[Q]||C.limiter(this.options.concurrency),N[Q]||(N[Q]=this.__limit),this.features={js:!1,wasm:!1,cib:!1,ww:!1},this.__workersPool=null,this.__requested_features=[],this.__mathlib=null}Y.prototype.init=function(){var W=this;if(this.__initPromise)return this.__initPromise;if(typeof ImageData<"u"&&typeof Uint8ClampedArray<"u")try{new ImageData(new Uint8ClampedArray(400),10,10),U=!0}catch{}typeof ImageBitmap<"u"&&(ImageBitmap.prototype&&ImageBitmap.prototype.close?$=!0:this.debug("ImageBitmap does not support .close(), disabled"));var Q=this.options.features.slice();if(Q.indexOf("all")>=0&&(Q=["cib","wasm","js","ww"]),this.__requested_features=Q,this.__mathlib=new w(Q),Q.indexOf("ww")>=0&&typeof window<"u"&&"Worker"in window)try{var V=r("webworkify")(function(){});V.terminate(),this.features.ww=!0;var j="wp_".concat(JSON.stringify(this.options));N[j]?this.__workersPool=N[j]:(this.__workersPool=new S(z,this.options.idle),N[j]=this.__workersPool)}catch{}var ee=this.__mathlib.init().then(function(ie){b(W.features,ie.features)}),te;$?te=C.cib_support(this.options.createCanvas).then(function(ie){if(W.features.cib&&Q.indexOf("cib")<0){W.debug("createImageBitmap() resize supported, but disabled by config");return}Q.indexOf("cib")>=0&&(W.features.cib=ie)}):te=Promise.resolve(!1),G=C.can_use_canvas(this.options.createCanvas);var ne;$&&U&&Q.indexOf("ww")!==-1?ne=C.worker_offscreen_canvas_support():ne=Promise.resolve(!1),ne=ne.then(function(ie){B=ie});var se=C.cib_can_use_region().then(function(ie){Z=ie});return this.__initPromise=Promise.all([ee,te,ne,se]).then(function(){return W}),this.__initPromise},Y.prototype.__invokeResize=function(W,Q){var V=this;return Q.__mathCache=Q.__mathCache||{},Promise.resolve().then(function(){return V.features.ww?new Promise(function(j,ee){var te=V.__workersPool.acquire();Q.cancelToken&&Q.cancelToken.catch(function(se){return ee(se)}),te.value.onmessage=function(se){te.release(),se.data.err?ee(se.data.err):j(se.data)};var ne=[];W.src&&ne.push(W.src.buffer),W.srcBitmap&&ne.push(W.srcBitmap),te.value.postMessage({opts:W,features:V.__requested_features,preload:{wasm_nodule:V.__mathlib.__}},ne)}):{data:V.__mathlib.resizeAndUnsharp(W,Q.__mathCache)}})},Y.prototype.__extractTileData=function(W,Q,V,j,ee){if(this.features.ww&&B&&(C.isCanvas(Q)||Z))return this.debug("Create tile for OffscreenCanvas"),createImageBitmap(j.srcImageBitmap||Q,W.x,W.y,W.width,W.height).then(function(se){return ee.srcBitmap=se,ee});if(C.isCanvas(Q))return j.srcCtx||(j.srcCtx=Q.getContext("2d",{alpha:!!V.alpha})),this.debug("Get tile pixel data"),ee.src=j.srcCtx.getImageData(W.x,W.y,W.width,W.height).data,ee;this.debug("Draw tile imageBitmap/image to temporary canvas");var te=this.options.createCanvas(W.width,W.height),ne=te.getContext("2d",{alpha:!!V.alpha});return ne.globalCompositeOperation="copy",ne.drawImage(j.srcImageBitmap||Q,W.x,W.y,W.width,W.height,0,0,W.width,W.height),this.debug("Get tile pixel data"),ee.src=ne.getImageData(0,0,W.width,W.height).data,te.width=te.height=0,ee},Y.prototype.__landTileData=function(W,Q,V){var j;if(this.debug("Convert raw rgba tile result to ImageData"),Q.bitmap)return V.toCtx.drawImage(Q.bitmap,W.toX,W.toY),null;if(U)j=new ImageData(new Uint8ClampedArray(Q.data),W.toWidth,W.toHeight);else if(j=V.toCtx.createImageData(W.toWidth,W.toHeight),j.data.set)j.data.set(Q.data);else for(var ee=j.data.length-1;ee>=0;ee--)j.data[ee]=Q.data[ee];return this.debug("Draw tile"),L?V.toCtx.putImageData(j,W.toX,W.toY,W.toInnerX-W.toX,W.toInnerY-W.toY,W.toInnerWidth+1e-5,W.toInnerHeight+1e-5):V.toCtx.putImageData(j,W.toX,W.toY,W.toInnerX-W.toX,W.toInnerY-W.toY,W.toInnerWidth,W.toInnerHeight),null},Y.prototype.__tileAndResize=function(W,Q,V){var j=this,ee={srcCtx:null,srcImageBitmap:null,isImageBitmapReused:!1,toCtx:null},te=function(se){return j.__limit(function(){if(V.canceled)return V.cancelToken;var ie={width:se.width,height:se.height,toWidth:se.toWidth,toHeight:se.toHeight,scaleX:se.scaleX,scaleY:se.scaleY,offsetX:se.offsetX,offsetY:se.offsetY,quality:V.quality,alpha:V.alpha,unsharpAmount:V.unsharpAmount,unsharpRadius:V.unsharpRadius,unsharpThreshold:V.unsharpThreshold};return j.debug("Invoke resize math"),Promise.resolve(ie).then(function(ge){return j.__extractTileData(se,W,V,ee,ge)}).then(function(ge){return j.debug("Invoke resize math"),j.__invokeResize(ge,V)}).then(function(ge){return V.canceled?V.cancelToken:(ee.srcImageData=null,j.__landTileData(se,ge,ee))})})};return Promise.resolve().then(function(){if(ee.toCtx=Q.getContext("2d",{alpha:!!V.alpha}),C.isCanvas(W))return null;if(C.isImageBitmap(W))return ee.srcImageBitmap=W,ee.isImageBitmapReused=!0,null;if(C.isImage(W))return $?(j.debug("Decode image via createImageBitmap"),createImageBitmap(W).then(function(ne){ee.srcImageBitmap=ne}).catch(function(ne){return null})):null;throw new Error('Pica: ".from" should be Image, Canvas or ImageBitmap')}).then(function(){if(V.canceled)return V.cancelToken;j.debug("Calculate tiles");var ne=I({width:V.width,height:V.height,srcTileSize:j.options.tile,toWidth:V.toWidth,toHeight:V.toHeight,destTileBorder:V.__destTileBorder}),se=ne.map(function(ge){return te(ge)});function ie(ge){ge.srcImageBitmap&&(ge.isImageBitmapReused||ge.srcImageBitmap.close(),ge.srcImageBitmap=null)}return j.debug("Process tiles"),Promise.all(se).then(function(){return j.debug("Finished!"),ie(ee),Q},function(ge){throw ie(ee),ge})})},Y.prototype.__processStages=function(W,Q,V,j){var ee=this;if(j.canceled)return j.cancelToken;var te=W.shift(),ne=o(te,2),se=ne[0],ie=ne[1],ge=W.length===0;j=b({},j,{toWidth:se,toHeight:ie,quality:ge?j.quality:Math.min(1,j.quality)});var ce;return ge||(ce=this.options.createCanvas(se,ie)),this.__tileAndResize(Q,ge?V:ce,j).then(function(){return ge?V:(j.width=se,j.height=ie,ee.__processStages(W,ce,V,j))}).then(function(be){return ce&&(ce.width=ce.height=0),be})},Y.prototype.__resizeViaCreateImageBitmap=function(W,Q,V){var j=this,ee=Q.getContext("2d",{alpha:!!V.alpha});return this.debug("Resize via createImageBitmap()"),createImageBitmap(W,{resizeWidth:V.toWidth,resizeHeight:V.toHeight,resizeQuality:C.cib_quality_name(V.quality)}).then(function(te){if(V.canceled)return V.cancelToken;if(!V.unsharpAmount)return ee.drawImage(te,0,0),te.close(),ee=null,j.debug("Finished!"),Q;j.debug("Unsharp result");var ne=j.options.createCanvas(V.toWidth,V.toHeight),se=ne.getContext("2d",{alpha:!!V.alpha});se.drawImage(te,0,0),te.close();var ie=se.getImageData(0,0,V.toWidth,V.toHeight);return j.__mathlib.unsharp_mask(ie.data,V.toWidth,V.toHeight,V.unsharpAmount,V.unsharpRadius,V.unsharpThreshold),ee.putImageData(ie,0,0),ne.width=ne.height=0,ie=se=ne=ee=null,j.debug("Finished!"),Q})},Y.prototype.resize=function(W,Q,V){var j=this;this.debug("Start resize...");var ee=b({},F);if(isNaN(V)?V&&(ee=b(ee,V)):ee=b(ee,{quality:V}),ee.toWidth=Q.width,ee.toHeight=Q.height,ee.width=W.naturalWidth||W.width,ee.height=W.naturalHeight||W.height,Q.width===0||Q.height===0)return Promise.reject(new Error("Invalid output size: ".concat(Q.width,"x").concat(Q.height)));ee.unsharpRadius>2&&(ee.unsharpRadius=2),ee.canceled=!1,ee.cancelToken&&(ee.cancelToken=ee.cancelToken.then(function(ne){throw ee.canceled=!0,ne},function(ne){throw ee.canceled=!0,ne}));var te=3;return ee.__destTileBorder=Math.ceil(Math.max(te,2.5*ee.unsharpRadius|0)),this.init().then(function(){if(ee.canceled)return ee.cancelToken;if(j.features.cib)return j.__resizeViaCreateImageBitmap(W,Q,ee);if(!G){var ne=new Error("Pica: cannot use getImageData on canvas, make sure fingerprinting protection isn't enabled");throw ne.code="ERR_GET_IMAGE_DATA",ne}var se=k(ee.width,ee.height,ee.toWidth,ee.toHeight,j.options.tile,ee.__destTileBorder);return j.__processStages(se,W,Q,ee)})},Y.prototype.resizeBuffer=function(W){var Q=this,V=b({},F,W);return this.init().then(function(){return Q.__mathlib.resizeAndUnsharp(V)})},Y.prototype.toBlob=function(W,Q,V){return Q=Q||"image/png",new Promise(function(j){if(W.toBlob){W.toBlob(function(ie){return j(ie)},Q,V);return}if(W.convertToBlob){j(W.convertToBlob({type:Q,quality:V}));return}for(var ee=atob(W.toDataURL(Q,V).split(",")[1]),te=ee.length,ne=new Uint8Array(te),se=0;se0;p--)f="0"+f;return"0x"+f}function a(h){try{return unescape(encodeURIComponent(h))}catch{return h}}function s(h){try{return decodeURIComponent(escape(h))}catch{return h}}function o(h){return Object.prototype.toString.call(h)==="[object Uint8Array]"}function u(h,f,p){this.input=h.subarray(f,p),this.start=f;var m=String.fromCharCode.apply(null,this.input.subarray(0,4));if(m!=="II*\0"&&m!=="MM\0*")throw t("invalid TIFF signature","EBADDATA");this.big_endian=m[0]==="M"}u.prototype.each=function(h){this.aborted=!1;var f=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:f}];this.ifds_to_read.length>0&&!this.aborted;){var p=this.ifds_to_read.shift();p.offset&&this.scan_ifd(p.id,p.offset,h)}},u.prototype.filter=function(h){var f={};f.ifd0={id:0,entries:[]},this.each(function(_){h(_)===!1&&!_.is_subifd_link||_.is_subifd_link&&_.count!==1&&_.format!==4||(f["ifd"+_.ifd]||(f["ifd"+_.ifd]={id:_.ifd,entries:[]}),f["ifd"+_.ifd].entries.push(_))}),delete f.ifd1;var p=8;Object.keys(f).forEach(function(_){p+=2,f[_].entries.forEach(function(w){p+=12+(w.data_length>4?Math.ceil(w.data_length/2)*2:0)}),p+=4}),this.output=new Uint8Array(p),this.output[0]=this.output[1]=(this.big_endian?"M":"I").charCodeAt(0),this.write_uint16(2,42);var m=8,b=this;if(this.write_uint32(4,m),Object.keys(f).forEach(function(_){f[_].written_offset=m;var w=m,S=w+2+f[_].entries.length*12+4;m=S,b.write_uint16(w,f[_].entries.length),f[_].entries.sort(function(A,k){return A.tag-k.tag}).forEach(function(A,k){var I=w+2+k*12;b.write_uint16(I,A.tag),b.write_uint16(I+2,A.format),b.write_uint32(I+4,A.count),A.is_subifd_link?f["ifd"+A.tag]&&(f["ifd"+A.tag].link_offset=I+8):A.data_length<=4?b.output.set(b.input.subarray(A.data_offset-b.start,A.data_offset-b.start+4),I+8):(b.write_uint32(I+8,m),b.output.set(b.input.subarray(A.data_offset-b.start,A.data_offset-b.start+A.data_length),m),m+=Math.ceil(A.data_length/2)*2)});var C=f["ifd"+(f[_].id+1)];C&&(C.link_offset=S-4)}),Object.keys(f).forEach(function(_){f[_].written_offset&&f[_].link_offset&&b.write_uint32(f[_].link_offset,f[_].written_offset)}),this.output.length!==m)throw t("internal error: incorrect buffer size allocated");return this.output},u.prototype.read_uint16=function(h){var f=this.input;if(h+2>f.length)throw t("unexpected EOF","EBADDATA");return this.big_endian?f[h]*256+f[h+1]:f[h]+f[h+1]*256},u.prototype.read_uint32=function(h){var f=this.input;if(h+4>f.length)throw t("unexpected EOF","EBADDATA");return this.big_endian?f[h]*16777216+f[h+1]*65536+f[h+2]*256+f[h+3]:f[h]+f[h+1]*256+f[h+2]*65536+f[h+3]*16777216},u.prototype.write_uint16=function(h,f){var p=this.output;this.big_endian?(p[h]=f>>>8&255,p[h+1]=f&255):(p[h]=f&255,p[h+1]=f>>>8&255)},u.prototype.write_uint32=function(h,f){var p=this.output;this.big_endian?(p[h]=f>>>24&255,p[h+1]=f>>>16&255,p[h+2]=f>>>8&255,p[h+3]=f&255):(p[h]=f&255,p[h+1]=f>>>8&255,p[h+2]=f>>>16&255,p[h+3]=f>>>24&255)},u.prototype.is_subifd_link=function(h,f){return h===0&&f===34665||h===0&&f===34853||h===34665&&f===40965},u.prototype.exif_format_length=function(h){switch(h){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},u.prototype.exif_format_read=function(h,f){var p;switch(h){case 1:case 2:return p=this.input[f],p;case 6:return p=this.input[f],p|(p&128)*33554430;case 3:return p=this.read_uint16(f),p;case 8:return p=this.read_uint16(f),p|(p&32768)*131070;case 4:return p=this.read_uint32(f),p;case 9:return p=this.read_uint32(f),p|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}},u.prototype.scan_ifd=function(h,f,p){var m=this.read_uint16(f);f+=2;for(var b=0;bthis.input.length)throw t("unexpected EOF","EBADDATA");for(var N=[],L=k,P=0;P0&&(this.ifds_to_read.push({id:_,offset:N[0]}),I=!0);var F={is_big_endian:this.big_endian,ifd:h,tag:_,format:w,count:S,entry_offset:f+this.start,data_length:A,data_offset:k+this.start,value:N,is_subifd_link:I};if(p(F)===!1){this.aborted=!0;return}f+=12}h===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(f)})},e.exports.is_jpeg=function(h){return h.length>=4&&h[0]===255&&h[1]===216&&h[2]===255},e.exports.jpeg_segments_each=function(h,f){if(!o(h))throw t("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if(typeof f!="function")throw t("Invalid argument (on_segment), Function expected","EINVAL");if(!e.exports.is_jpeg(h))throw t("Unknown file format","ENOTJPEG");for(var p=0,m=h.length,b=!1;;){var _,w;if(p+1>=m)throw t("Unexpected EOF","EBADDATA");var S=h[p],C=h[p+1];if(S===255&&C===255)_=255,w=1;else if(S===255&&C!==0){if(_=C,w=2,!(208<=_&&_<=217||_===1)){if(p+3>=m)throw t("Unexpected EOF","EBADDATA");if(w+=h[p+2]*256+h[p+3],w<2)throw t("Invalid segment length","EBADDATA");if(p+w-1>=m)throw t("Unexpected EOF","EBADDATA")}b&&(_>=208&&_<=215||(b=!1)),_===218&&(b=!0)}else if(b)for(var A=p+1;;A++){if(A>=m)throw t("Unexpected EOF","EBADDATA");if(h[A]===255){if(A+1>=m)throw t("Unexpected EOF","EBADDATA");if(h[A+1]!==0){_=0,w=A-p;break}}}else throw t("Unexpected byte at segment start: "+r(S)+" (offset "+r(p)+")","EBADDATA");if(f({code:_,offset:p,length:w})===!1||_===217)break;p+=w}},e.exports.jpeg_segments_filter=function(h,f){if(!o(h))throw t("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if(typeof f!="function")throw t("Invalid argument (on_segment), Function expected","EINVAL");var p=[],m=0;e.exports.jpeg_segments_each(h,function(w){var S=f(w);if(o(S))p.push({data:S}),m+=S.length;else if(Array.isArray(S))S.filter(o).forEach(function(A){p.push({data:A}),m+=A.length});else if(S!==!1){var C={start:w.offset,end:w.offset+w.length};p.length>0&&p[p.length-1].end===C.start?p[p.length-1].end=C.end:p.push(C),m+=w.length}});var b=new Uint8Array(m),_=0;return p.forEach(function(w){var S=w.data||h.subarray(w.start,w.end);b.set(S,_),_+=S.length}),b},e.exports.jpeg_exif_tags_each=function(h,f){if(!o(h))throw t("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if(typeof f!="function")throw t("Invalid argument (on_exif_entry), Function expected","EINVAL");e.exports.jpeg_segments_each(h,function(p){if(p.code===218)return!1;if(p.code===225&&p.length>=10&&h[p.offset+4]===69&&h[p.offset+5]===120&&h[p.offset+6]===105&&h[p.offset+7]===102&&h[p.offset+8]===0&&h[p.offset+9]===0)return new u(h,p.offset+10,p.offset+p.length).each(f),!1})},e.exports.jpeg_exif_tags_filter=function(h,f){if(!o(h))throw t("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if(typeof f!="function")throw t("Invalid argument (on_exif_entry), Function expected","EINVAL");var p=!1;return e.exports.jpeg_segments_filter(h,function(m){if(!p&&(m.code===218&&(p=!0),m.code===225&&m.length>=10&&h[m.offset+4]===69&&h[m.offset+5]===120&&h[m.offset+6]===105&&h[m.offset+7]===102&&h[m.offset+8]===0&&h[m.offset+9]===0)){var b=new u(h,m.offset+10,m.offset+m.length).filter(f);if(!b)return!1;var _=new Uint8Array(10);return _.set(h.slice(m.offset,m.offset+10)),_[2]=b.length+8>>>8&255,_[3]=b.length+8&255,p=!0,[_,b]}})},e.exports.jpeg_add_comment=function(h,f){var p=!1,m=0;return e.exports.jpeg_segments_filter(h,function(b){if(m++,!(m===1&&b.code===216)&&!(m===2&&b.code===224)&&!p){f=a(f);var _=new Uint8Array(5+f.length),w=0;return _[w++]=255,_[w++]=254,_[w++]=f.length+3>>>8&255,_[w++]=f.length+3&255,f.split("").forEach(function(S){_[w++]=S.charCodeAt(0)&255}),_[w++]=0,p=!0,[_,h.subarray(b.offset,b.offset+b.length)]}})}});function uta(e){return this._getUint8Array(e.blob).then(function(t){if(e.is_jpeg=GTe.is_jpeg(t),!e.is_jpeg)return Promise.resolve(e);e.orig_blob=e.blob;try{var r,a;if(GTe.jpeg_exif_tags_each(t,function(o){if(o.ifd===0&&o.tag===274&&Array.isArray(o.value))return e.orientation=o.value[0]||1,r=o.is_big_endian,a=o.data_offset,!1}),a){var s=r?new Uint8Array([0,1]):new Uint8Array([1,0]);e.blob=new Blob([t.slice(0,a),s,t.slice(a+2)],{type:"image/jpeg"})}}catch{}return e})}function hta(e){if(!e.is_jpeg)return Promise.resolve(e);var t=e.orientation-1;if(!t)return Promise.resolve(e);var r;t&4?r=this.pica.options.createCanvas(e.out_canvas.height,e.out_canvas.width):r=this.pica.options.createCanvas(e.out_canvas.width,e.out_canvas.height);var a=r.getContext("2d");return a.save(),t&1&&a.transform(-1,0,0,1,r.width,0),t&2&&a.transform(-1,0,0,-1,r.width,r.height),t&4&&a.transform(0,1,1,0,0,0),a.drawImage(e.out_canvas,0,0),a.restore(),e.out_canvas.width=e.out_canvas.height=0,e.out_canvas=r,Promise.resolve(e)}function dta(e){return e.is_jpeg?Promise.all([this._getUint8Array(e.blob),this._getUint8Array(e.out_blob)]).then(function(t){var r=t[0],a=t[1];if(!GTe.is_jpeg(r))return Promise.resolve(e);var s=[];return GTe.jpeg_segments_each(r,function(o){if(o.code===218)return!1;s.push(o)}),s=s.filter(function(o){return o.code===226?!1:o.code>=224&&o.code<240||o.code===254}).map(function(o){return r.slice(o.offset,o.offset+o.length)}),e.out_blob=new Blob([a.slice(0,2)].concat(s).concat([a.slice(20)]),{type:"image/jpeg"}),e}):Promise.resolve(e)}function fta(e){e.before("_blob_to_image",uta),e.after("_transform",hta),e.after("_create_blob",dta)}var pta=fta,gta={assign:pta};function Nb(e){if(!(this instanceof Nb))return new Nb(e);e=e||{},this.pica=e.pica||MQn({}),this.initialized=!1,this.utils=pbt}Nb.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Nb.prototype.init=function(){this.use(gta.assign)};Nb.prototype.toBlob=function(e,t){var r=pbt.assign({max:1/0},t),a={blob:e,opts:r};return this.initialized||(this.init(),this.initialized=!0),Promise.resolve(a).then(this._blob_to_image).then(this._calculate_size).then(this._transform).then(this._cleanup).then(this._create_blob).then(function(s){return s.out_canvas.width=s.out_canvas.height=0,s.out_blob})};Nb.prototype.toCanvas=function(e,t){var r=pbt.assign({max:1/0},t),a={blob:e,opts:r};return this.initialized||(this.init(),this.initialized=!0),Promise.resolve(a).then(this._blob_to_image).then(this._calculate_size).then(this._transform).then(this._cleanup).then(function(s){return s.out_canvas})};Nb.prototype.before=function(e,t){if(!this[e])throw new Error('Method "'+e+'" does not exist');if(typeof t!="function")throw new Error('Invalid argument "fn", function expected');var r=this[e],a=this;return this[e]=function(s){return t.call(a,s).then(function(o){return r.call(a,o)})},this};Nb.prototype.after=function(e,t){if(!this[e])throw new Error('Method "'+e+'" does not exist');if(typeof t!="function")throw new Error('Invalid argument "fn", function expected');var r=this[e],a=this;return this[e]=function(s){return r.call(a,s).then(function(o){return t.call(a,o)})},this};Nb.prototype._blob_to_image=function(e){var t=window.URL||window.webkitURL||window.mozURL||window.msURL;return e.image=document.createElement("img"),e.image_url=t.createObjectURL(e.blob),e.image.src=e.image_url,new Promise(function(r,a){e.image.onerror=function(){a(new Error("ImageBlobReduce: failed to create Image() from blob"))},e.image.onload=function(){r(e)}})};Nb.prototype._calculate_size=function(e){var t=e.opts.max/Math.max(e.image.width,e.image.height);return t>1&&(t=1),e.transform_width=Math.max(Math.round(e.image.width*t),1),e.transform_height=Math.max(Math.round(e.image.height*t),1),e.scale_factor=t,Promise.resolve(e)};Nb.prototype._transform=function(e){e.out_canvas=this.pica.options.createCanvas(e.transform_width,e.transform_height),e.transform_width=null,e.transform_height=null;var t={alpha:e.blob.type==="image/png"};return this.utils.assign(t,this.utils.pick_pica_resize_options(e.opts)),this.pica.resize(e.image,e.out_canvas,t).then(function(){return e})};Nb.prototype._cleanup=function(e){e.image.src="",e.image=null;var t=window.URL||window.webkitURL||window.mozURL||window.msURL;return t.revokeObjectURL&&t.revokeObjectURL(e.image_url),e.image_url=null,Promise.resolve(e)};Nb.prototype._create_blob=function(e){return this.pica.toBlob(e.out_canvas,e.blob.type).then(function(t){return e.out_blob=t,e})};Nb.prototype._getUint8Array=function(e){return e.arrayBuffer?e.arrayBuffer().then(function(t){return new Uint8Array(t)}):new Promise(function(t,r){var a=new FileReader;a.readAsArrayBuffer(e),a.onload=function(){t(new Uint8Array(a.result))},a.onerror=function(){r(new Error("ImageBlobReduce: failed to load data from input blob")),a.abort()},a.onabort=function(){r(new Error("ImageBlobReduce: failed to load data from input blob (aborted)"))}})};Nb.pica=MQn;var mta=Nb;const eCa=Object.freeze(Object.defineProperty({__proto__:null,default:mta},Symbol.toStringTag,{value:"Module"}));let tCa=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,r)=>(r&=63,r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r>62?t+="-":t+="_",t),"");/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:PQn,setPrototypeOf:WTn,isFrozen:bta,getPrototypeOf:yta,getOwnPropertyDescriptor:vta}=Object;let{freeze:fv,seal:NS,create:BQn}=Object,{apply:Wut,construct:Kut}=typeof Reflect<"u"&&Reflect;fv||(fv=function(t){return t});NS||(NS=function(t){return t});Wut||(Wut=function(t,r,a){return t.apply(r,a)});Kut||(Kut=function(t,r){return new t(...r)});const bEe=qw(Array.prototype.forEach),KTn=qw(Array.prototype.pop),fie=qw(Array.prototype.push),tSe=qw(String.prototype.toLowerCase),oat=qw(String.prototype.toString),XTn=qw(String.prototype.match),pie=qw(String.prototype.replace),_ta=qw(String.prototype.indexOf),wta=qw(String.prototype.trim),T3=qw(Object.prototype.hasOwnProperty),$y=qw(RegExp.prototype.test),gie=Eta(TypeError);function qw(e){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),s=1;s2&&arguments[2]!==void 0?arguments[2]:tSe;WTn&&WTn(e,null);let a=t.length;for(;a--;){let s=t[a];if(typeof s=="string"){const o=r(s);o!==s&&(bta(t)||(t[a]=o),s=o)}e[s]=!0}return e}function xta(e){for(let t=0;t/gm),kta=NS(/\${[\w\W]*}/gm),Rta=NS(/^data-[\-\w.\u00B7-\uFFFF]/),Ita=NS(/^aria-[\-\w]+$/),FQn=NS(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Nta=NS(/^(?:\w+script|data):/i),Ota=NS(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$Qn=NS(/^html$/i),Lta=NS(/^[a-z][.\w]*(-[.\w]+)+$/i);var t5n=Object.freeze({__proto__:null,MUSTACHE_EXPR:Cta,ERB_EXPR:Ata,TMPLIT_EXPR:kta,DATA_ATTR:Rta,ARIA_ATTR:Ita,IS_ALLOWED_URI:FQn,IS_SCRIPT_OR_DATA:Nta,ATTR_WHITESPACE:Ota,DOCTYPE_NAME:$Qn,CUSTOM_ELEMENT:Lta});const bie={element:1,text:3,progressingInstruction:7,comment:8,document:9},Dta=function(){return typeof window>"u"?null:window},Mta=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let a=null;const s="data-tt-policy-suffix";r&&r.hasAttribute(s)&&(a=r.getAttribute(s));const o="dompurify"+(a?"#"+a:"");try{return t.createPolicy(o,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function UQn(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Dta();const t=Fi=>UQn(Fi);if(t.version="3.1.6",t.removed=[],!e||!e.document||e.document.nodeType!==bie.document)return t.isSupported=!1,t;let{document:r}=e;const a=r,s=a.currentScript,{DocumentFragment:o,HTMLTemplateElement:u,Node:h,Element:f,NodeFilter:p,NamedNodeMap:m=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:b,DOMParser:_,trustedTypes:w}=e,S=f.prototype,C=mie(S,"cloneNode"),A=mie(S,"remove"),k=mie(S,"nextSibling"),I=mie(S,"childNodes"),N=mie(S,"parentNode");if(typeof u=="function"){const Fi=r.createElement("template");Fi.content&&Fi.content.ownerDocument&&(r=Fi.content.ownerDocument)}let L,P="";const{implementation:M,createNodeIterator:F,createDocumentFragment:U,getElementsByTagName:$}=r,{importNode:G}=a;let B={};t.isSupported=typeof PQn=="function"&&typeof N=="function"&&M&&M.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Z,ERB_EXPR:z,TMPLIT_EXPR:Y,DATA_ATTR:W,ARIA_ATTR:Q,IS_SCRIPT_OR_DATA:V,ATTR_WHITESPACE:j,CUSTOM_ELEMENT:ee}=t5n;let{IS_ALLOWED_URI:te}=t5n,ne=null;const se=cc({},[...QTn,...lat,...cat,...uat,...ZTn]);let ie=null;const ge=cc({},[...JTn,...hat,...e5n,...yEe]);let ce=Object.seal(BQn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,ve=null,De=!0,ye=!0,Ee=!1,he=!0,we=!1,Ce=!0,Ie=!1,Le=!1,Fe=!1,Ve=!1,Oe=!1,Dt=!1,ot=!0,sn=!1;const Kt="user-content-";let Ft=!0,Je=!1,ht={},et=null;const qe=cc({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let He=null;const Ge=cc({},["audio","video","img","source","image","track"]);let Ye=null;const Ae=cc({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",fe="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let Ke=Qe,mt=!1,lt=null;const $t=cc({},[Xe,fe,Qe],oat);let Ut=null;const Jt=["application/xhtml+xml","text/html"],wn="text/html";let Vn=null,Wn=null;const Dn=r.createElement("form"),zn=function(Pt){return Pt instanceof RegExp||Pt instanceof Function},vn=function(){let Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Wn&&Wn===Pt)){if((!Pt||typeof Pt!="object")&&(Pt={}),Pt=DB(Pt),Ut=Jt.indexOf(Pt.PARSER_MEDIA_TYPE)===-1?wn:Pt.PARSER_MEDIA_TYPE,Vn=Ut==="application/xhtml+xml"?oat:tSe,ne=T3(Pt,"ALLOWED_TAGS")?cc({},Pt.ALLOWED_TAGS,Vn):se,ie=T3(Pt,"ALLOWED_ATTR")?cc({},Pt.ALLOWED_ATTR,Vn):ge,lt=T3(Pt,"ALLOWED_NAMESPACES")?cc({},Pt.ALLOWED_NAMESPACES,oat):$t,Ye=T3(Pt,"ADD_URI_SAFE_ATTR")?cc(DB(Ae),Pt.ADD_URI_SAFE_ATTR,Vn):Ae,He=T3(Pt,"ADD_DATA_URI_TAGS")?cc(DB(Ge),Pt.ADD_DATA_URI_TAGS,Vn):Ge,et=T3(Pt,"FORBID_CONTENTS")?cc({},Pt.FORBID_CONTENTS,Vn):qe,be=T3(Pt,"FORBID_TAGS")?cc({},Pt.FORBID_TAGS,Vn):{},ve=T3(Pt,"FORBID_ATTR")?cc({},Pt.FORBID_ATTR,Vn):{},ht=T3(Pt,"USE_PROFILES")?Pt.USE_PROFILES:!1,De=Pt.ALLOW_ARIA_ATTR!==!1,ye=Pt.ALLOW_DATA_ATTR!==!1,Ee=Pt.ALLOW_UNKNOWN_PROTOCOLS||!1,he=Pt.ALLOW_SELF_CLOSE_IN_ATTR!==!1,we=Pt.SAFE_FOR_TEMPLATES||!1,Ce=Pt.SAFE_FOR_XML!==!1,Ie=Pt.WHOLE_DOCUMENT||!1,Ve=Pt.RETURN_DOM||!1,Oe=Pt.RETURN_DOM_FRAGMENT||!1,Dt=Pt.RETURN_TRUSTED_TYPE||!1,Fe=Pt.FORCE_BODY||!1,ot=Pt.SANITIZE_DOM!==!1,sn=Pt.SANITIZE_NAMED_PROPS||!1,Ft=Pt.KEEP_CONTENT!==!1,Je=Pt.IN_PLACE||!1,te=Pt.ALLOWED_URI_REGEXP||FQn,Ke=Pt.NAMESPACE||Qe,ce=Pt.CUSTOM_ELEMENT_HANDLING||{},Pt.CUSTOM_ELEMENT_HANDLING&&zn(Pt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ce.tagNameCheck=Pt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Pt.CUSTOM_ELEMENT_HANDLING&&zn(Pt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ce.attributeNameCheck=Pt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Pt.CUSTOM_ELEMENT_HANDLING&&typeof Pt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ce.allowCustomizedBuiltInElements=Pt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),we&&(ye=!1),Oe&&(Ve=!0),ht&&(ne=cc({},ZTn),ie=[],ht.html===!0&&(cc(ne,QTn),cc(ie,JTn)),ht.svg===!0&&(cc(ne,lat),cc(ie,hat),cc(ie,yEe)),ht.svgFilters===!0&&(cc(ne,cat),cc(ie,hat),cc(ie,yEe)),ht.mathMl===!0&&(cc(ne,uat),cc(ie,e5n),cc(ie,yEe))),Pt.ADD_TAGS&&(ne===se&&(ne=DB(ne)),cc(ne,Pt.ADD_TAGS,Vn)),Pt.ADD_ATTR&&(ie===ge&&(ie=DB(ie)),cc(ie,Pt.ADD_ATTR,Vn)),Pt.ADD_URI_SAFE_ATTR&&cc(Ye,Pt.ADD_URI_SAFE_ATTR,Vn),Pt.FORBID_CONTENTS&&(et===qe&&(et=DB(et)),cc(et,Pt.FORBID_CONTENTS,Vn)),Ft&&(ne["#text"]=!0),Ie&&cc(ne,["html","head","body"]),ne.table&&(cc(ne,["tbody"]),delete be.tbody),Pt.TRUSTED_TYPES_POLICY){if(typeof Pt.TRUSTED_TYPES_POLICY.createHTML!="function")throw gie('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Pt.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw gie('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');L=Pt.TRUSTED_TYPES_POLICY,P=L.createHTML("")}else L===void 0&&(L=Mta(w,s)),L!==null&&typeof P=="string"&&(P=L.createHTML(""));fv&&fv(Pt),Wn=Pt}},Cn=cc({},["mi","mo","mn","ms","mtext"]),Ar=cc({},["foreignobject","annotation-xml"]),ur=cc({},["title","style","font","a","script"]),On=cc({},[...lat,...cat,...Sta]),Ir=cc({},[...uat,...Tta]),Ln=function(Pt){let St=N(Pt);(!St||!St.tagName)&&(St={namespaceURI:Ke,tagName:"template"});const Un=tSe(Pt.tagName),Hr=tSe(St.tagName);return lt[Pt.namespaceURI]?Pt.namespaceURI===fe?St.namespaceURI===Qe?Un==="svg":St.namespaceURI===Xe?Un==="svg"&&(Hr==="annotation-xml"||Cn[Hr]):!!On[Un]:Pt.namespaceURI===Xe?St.namespaceURI===Qe?Un==="math":St.namespaceURI===fe?Un==="math"&&Ar[Hr]:!!Ir[Un]:Pt.namespaceURI===Qe?St.namespaceURI===fe&&!Ar[Hr]||St.namespaceURI===Xe&&!Cn[Hr]?!1:!Ir[Un]&&(ur[Un]||!On[Un]):!!(Ut==="application/xhtml+xml"&<[Pt.namespaceURI]):!1},pr=function(Pt){fie(t.removed,{element:Pt});try{N(Pt).removeChild(Pt)}catch{A(Pt)}},Cr=function(Pt,St){try{fie(t.removed,{attribute:St.getAttributeNode(Pt),from:St})}catch{fie(t.removed,{attribute:null,from:St})}if(St.removeAttribute(Pt),Pt==="is"&&!ie[Pt])if(Ve||Oe)try{pr(St)}catch{}else try{St.setAttribute(Pt,"")}catch{}},Zr=function(Pt){let St=null,Un=null;if(Fe)Pt=""+Pt;else{const Rs=XTn(Pt,/^[\r\n\t ]+/);Un=Rs&&Rs[0]}Ut==="application/xhtml+xml"&&Ke===Qe&&(Pt=''+Pt+"");const Hr=L?L.createHTML(Pt):Pt;if(Ke===Qe)try{St=new _().parseFromString(Hr,Ut)}catch{}if(!St||!St.documentElement){St=M.createDocument(Ke,"template",null);try{St.documentElement.innerHTML=mt?P:Hr}catch{}}const za=St.body||St.documentElement;return Pt&&Un&&za.insertBefore(r.createTextNode(Un),za.childNodes[0]||null),Ke===Qe?$.call(St,Ie?"html":"body")[0]:Ie?St.documentElement:za},Pr=function(Pt){return F.call(Pt.ownerDocument||Pt,Pt,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},Ci=function(Pt){return Pt instanceof b&&(typeof Pt.nodeName!="string"||typeof Pt.textContent!="string"||typeof Pt.removeChild!="function"||!(Pt.attributes instanceof m)||typeof Pt.removeAttribute!="function"||typeof Pt.setAttribute!="function"||typeof Pt.namespaceURI!="string"||typeof Pt.insertBefore!="function"||typeof Pt.hasChildNodes!="function")},ds=function(Pt){return typeof h=="function"&&Pt instanceof h},ta=function(Pt,St,Un){B[Pt]&&bEe(B[Pt],Hr=>{Hr.call(t,St,Un,Wn)})},Os=function(Pt){let St=null;if(ta("beforeSanitizeElements",Pt,null),Ci(Pt))return pr(Pt),!0;const Un=Vn(Pt.nodeName);if(ta("uponSanitizeElement",Pt,{tagName:Un,allowedTags:ne}),Pt.hasChildNodes()&&!ds(Pt.firstElementChild)&&$y(/<[/\w]/g,Pt.innerHTML)&&$y(/<[/\w]/g,Pt.textContent)||Pt.nodeType===bie.progressingInstruction||Ce&&Pt.nodeType===bie.comment&&$y(/<[/\w]/g,Pt.data))return pr(Pt),!0;if(!ne[Un]||be[Un]){if(!be[Un]&&Ls(Un)&&(ce.tagNameCheck instanceof RegExp&&$y(ce.tagNameCheck,Un)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(Un)))return!1;if(Ft&&!et[Un]){const Hr=N(Pt)||Pt.parentNode,za=I(Pt)||Pt.childNodes;if(za&&Hr){const Rs=za.length;for(let Vr=Rs-1;Vr>=0;--Vr){const Ii=C(za[Vr],!0);Ii.__removalCount=(Pt.__removalCount||0)+1,Hr.insertBefore(Ii,k(Pt))}}}return pr(Pt),!0}return Pt instanceof f&&!Ln(Pt)||(Un==="noscript"||Un==="noembed"||Un==="noframes")&&$y(/<\/no(script|embed|frames)/i,Pt.innerHTML)?(pr(Pt),!0):(we&&Pt.nodeType===bie.text&&(St=Pt.textContent,bEe([Z,z,Y],Hr=>{St=pie(St,Hr," ")}),Pt.textContent!==St&&(fie(t.removed,{element:Pt.cloneNode()}),Pt.textContent=St)),ta("afterSanitizeElements",Pt,null),!1)},uo=function(Pt,St,Un){if(ot&&(St==="id"||St==="name")&&(Un in r||Un in Dn))return!1;if(!(ye&&!ve[St]&&$y(W,St))){if(!(De&&$y(Q,St))){if(!ie[St]||ve[St]){if(!(Ls(Pt)&&(ce.tagNameCheck instanceof RegExp&&$y(ce.tagNameCheck,Pt)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(Pt))&&(ce.attributeNameCheck instanceof RegExp&&$y(ce.attributeNameCheck,St)||ce.attributeNameCheck instanceof Function&&ce.attributeNameCheck(St))||St==="is"&&ce.allowCustomizedBuiltInElements&&(ce.tagNameCheck instanceof RegExp&&$y(ce.tagNameCheck,Un)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(Un))))return!1}else if(!Ye[St]){if(!$y(te,pie(Un,j,""))){if(!((St==="src"||St==="xlink:href"||St==="href")&&Pt!=="script"&&_ta(Un,"data:")===0&&He[Pt])){if(!(Ee&&!$y(V,pie(Un,j,"")))){if(Un)return!1}}}}}}return!0},Ls=function(Pt){return Pt!=="annotation-xml"&&XTn(Pt,ee)},La=function(Pt){ta("beforeSanitizeAttributes",Pt,null);const{attributes:St}=Pt;if(!St)return;const Un={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ie};let Hr=St.length;for(;Hr--;){const za=St[Hr],{name:Rs,namespaceURI:Vr,value:Ii}=za,Pa=Vn(Rs);let Or=Rs==="value"?Ii:wta(Ii);if(Un.attrName=Pa,Un.attrValue=Or,Un.keepAttr=!0,Un.forceKeepAttr=void 0,ta("uponSanitizeAttribute",Pt,Un),Or=Un.attrValue,Ce&&$y(/((--!?|])>)|<\/(style|title)/i,Or)){Cr(Rs,Pt);continue}if(Un.forceKeepAttr||(Cr(Rs,Pt),!Un.keepAttr))continue;if(!he&&$y(/\/>/i,Or)){Cr(Rs,Pt);continue}we&&bEe([Z,z,Y],dt=>{Or=pie(Or,dt," ")});const no=Vn(Pt.nodeName);if(uo(no,Pa,Or)){if(sn&&(Pa==="id"||Pa==="name")&&(Cr(Rs,Pt),Or=Kt+Or),L&&typeof w=="object"&&typeof w.getAttributeType=="function"&&!Vr)switch(w.getAttributeType(no,Pa)){case"TrustedHTML":{Or=L.createHTML(Or);break}case"TrustedScriptURL":{Or=L.createScriptURL(Or);break}}try{Vr?Pt.setAttributeNS(Vr,Rs,Or):Pt.setAttribute(Rs,Or),Ci(Pt)?pr(Pt):KTn(t.removed)}catch{}}}ta("afterSanitizeAttributes",Pt,null)},to=function Fi(Pt){let St=null;const Un=Pr(Pt);for(ta("beforeSanitizeShadowDOM",Pt,null);St=Un.nextNode();)ta("uponSanitizeShadowNode",St,null),!Os(St)&&(St.content instanceof o&&Fi(St.content),La(St));ta("afterSanitizeShadowDOM",Pt,null)};return t.sanitize=function(Fi){let Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},St=null,Un=null,Hr=null,za=null;if(mt=!Fi,mt&&(Fi=""),typeof Fi!="string"&&!ds(Fi))if(typeof Fi.toString=="function"){if(Fi=Fi.toString(),typeof Fi!="string")throw gie("dirty is not a string, aborting")}else throw gie("toString is not a function");if(!t.isSupported)return Fi;if(Le||vn(Pt),t.removed=[],typeof Fi=="string"&&(Je=!1),Je){if(Fi.nodeName){const Ii=Vn(Fi.nodeName);if(!ne[Ii]||be[Ii])throw gie("root node is forbidden and cannot be sanitized in-place")}}else if(Fi instanceof h)St=Zr(""),Un=St.ownerDocument.importNode(Fi,!0),Un.nodeType===bie.element&&Un.nodeName==="BODY"||Un.nodeName==="HTML"?St=Un:St.appendChild(Un);else{if(!Ve&&!we&&!Ie&&Fi.indexOf("<")===-1)return L&&Dt?L.createHTML(Fi):Fi;if(St=Zr(Fi),!St)return Ve?null:Dt?P:""}St&&Fe&&pr(St.firstChild);const Rs=Pr(Je?Fi:St);for(;Hr=Rs.nextNode();)Os(Hr)||(Hr.content instanceof o&&to(Hr.content),La(Hr));if(Je)return Fi;if(Ve){if(Oe)for(za=U.call(St.ownerDocument);St.firstChild;)za.appendChild(St.firstChild);else za=St;return(ie.shadowroot||ie.shadowrootmode)&&(za=G.call(a,za,!0)),za}let Vr=Ie?St.outerHTML:St.innerHTML;return Ie&&ne["!doctype"]&&St.ownerDocument&&St.ownerDocument.doctype&&St.ownerDocument.doctype.name&&$y($Qn,St.ownerDocument.doctype.name)&&(Vr=" `+Vr),we&&bEe([Z,z,Y],Ii=>{Vr=pie(Vr,Ii," ")}),L&&Dt?L.createHTML(Vr):Vr},t.setConfig=function(){let Fi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vn(Fi),Le=!0},t.clearConfig=function(){Wn=null,Le=!1},t.isValidAttribute=function(Fi,Pt,St){Wn||vn({});const Un=Vn(Fi),Hr=Vn(Pt);return uo(Un,Hr,St)},t.addHook=function(Fi,Pt){typeof Pt=="function"&&(B[Fi]=B[Fi]||[],fie(B[Fi],Pt))},t.removeHook=function(Fi){if(B[Fi])return KTn(B[Fi])},t.removeHooks=function(Fi){B[Fi]&&(B[Fi]=[])},t.removeAllHooks=function(){B={}},t}var rW=UQn();const e7={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},ut={trace:(...e)=>{},debug:(...e)=>{},info:(...e)=>{},warn:(...e)=>{},error:(...e)=>{},fatal:(...e)=>{}},gbt=function(e="fatal"){let t=e7.fatal;typeof e=="string"?(e=e.toLowerCase(),e in e7&&(t=e7[e])):typeof e=="number"&&(t=e),ut.trace=()=>{},ut.debug=()=>{},ut.info=()=>{},ut.warn=()=>{},ut.error=()=>{},ut.fatal=()=>{},t<=e7.fatal&&(ut.fatal=console.error?console.error.bind(console,$x("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",$x("FATAL"))),t<=e7.error&&(ut.error=console.error?console.error.bind(console,$x("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",$x("ERROR"))),t<=e7.warn&&(ut.warn=console.warn?console.warn.bind(console,$x("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",$x("WARN"))),t<=e7.info&&(ut.info=console.info?console.info.bind(console,$x("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",$x("INFO"))),t<=e7.debug&&(ut.debug=console.debug?console.debug.bind(console,$x("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",$x("DEBUG"))),t<=e7.trace&&(ut.trace=console.debug?console.debug.bind(console,$x("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",$x("TRACE")))},$x=e=>`%c${Fc().format("ss.SSS")} : ${e} : `,aK=//gi,Pta=e=>e?GQn(e).replace(/\\n/g,"#br#").split("#br#"):[""],Bta=(()=>{let e=!1;return()=>{e||(Fta(),e=!0)}})();function Fta(){const e="data-temp-href-target";rW.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")||"")}),rW.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)||""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}const zQn=e=>(Bta(),rW.sanitize(e)),n5n=(e,t)=>{var r;if(((r=t.flowchart)==null?void 0:r.htmlLabels)!==!1){const a=t.securityLevel;a==="antiscript"||a==="strict"?e=zQn(e):a!=="loose"&&(e=GQn(e),e=e.replace(//g,">"),e=e.replace(/=/g,"="),e=Gta(e))}return e},J0=(e,t)=>e&&(t.dompurifyConfig?e=rW.sanitize(n5n(e,t),t.dompurifyConfig).toString():e=rW.sanitize(n5n(e,t),{FORBID_TAGS:["style"]}).toString(),e),$ta=(e,t)=>typeof e=="string"?J0(e,t):e.flat().map(r=>J0(r,t)),Uta=e=>aK.test(e),zta=e=>e.split(aK),Gta=e=>e.replace(/#br#/g,"
    "),GQn=e=>e.replace(aK,"#br#"),qta=e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=t.replaceAll(/\(/g,"\\("),t=t.replaceAll(/\)/g,"\\)")),t},Np=e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),Hta=function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},Vta=function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},Nse=function(e){const t=e.split(/(,)/),r=[];for(let a=0;a0&&a+1Math.max(0,e.split(t).length-1),Yta=(e,t)=>{const r=Xut(e,"~"),a=Xut(t,"~");return r===1&&a===1},jta=e=>{const t=Xut(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const a=[...e];let s=a.indexOf("~"),o=a.lastIndexOf("~");for(;s!==-1&&o!==-1&&s!==o;)a[s]="<",a[o]=">",s=a.indexOf("~"),o=a.lastIndexOf("~");return r&&a.unshift("~"),a.join("")},r5n=()=>window.MathMLElement!==void 0,Qut=/\$\$(.*)\$\$/g,OS=e=>{var t;return(((t=e.match(Qut))==null?void 0:t.length)??0)>0},Xce=async(e,t)=>{e=await Z$(e,t);const r=document.createElement("div");r.innerHTML=e,r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const a=document.querySelector("body");a==null||a.insertAdjacentElement("beforeend",r);const s={width:r.clientWidth,height:r.clientHeight};return r.remove(),s},Z$=async(e,t)=>{if(!OS(e))return e;if(!r5n()&&!t.legacyMathML)return e.replace(Qut,"MathML is unsupported in this environment.");const{default:r}=await ea(async()=>{const{default:a}=await Promise.resolve().then(()=>rzr);return{default:a}},void 0);return e.split(aK).map(a=>OS(a)?`
    ${a}
    `:`
    ${a}
    `).join("").replace(Qut,(a,s)=>r.renderToString(s,{throwOnError:!0,displayMode:!0,output:r5n()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(//g,""))},mi={getRows:Pta,sanitizeText:J0,sanitizeTextOrArray:$ta,hasBreaks:Uta,splitBreaks:zta,lineBreakRegex:aK,removeScript:zQn,getUrl:qta,evaluate:Np,getMax:Hta,getMin:Vta},tv=(e,t)=>t?gt(e,{s:-40,l:10}):gt(e,{s:-40,l:-10}),s6e="#ffffff",o6e="#f2f2f2";let Wta=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var t,r,a,s,o,u,h,f,p,m,b;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||gt(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||gt(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||tv(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||tv(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||tv(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||tv(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||ir(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ir(this.tertiaryColor),this.lineColor=this.lineColor||ir(this.background),this.arrowheadColor=this.arrowheadColor||ir(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?qr(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||qr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ir(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Nr(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||gt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||gt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||gt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||gt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||gt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||gt(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||gt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||gt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||gt(this.primaryColor,{h:330}),this.darkMode)for(let w=0;w{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}};const Kta=e=>{const t=new Wta;return t.calculate(e),t};let Xta=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Nr(this.primaryColor,16),this.tertiaryColor=gt(this.primaryColor,{h:-160}),this.primaryBorderColor=ir(this.background),this.secondaryBorderColor=tv(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=tv(this.tertiaryColor,this.darkMode),this.primaryTextColor=ir(this.primaryColor),this.secondaryTextColor=ir(this.secondaryColor),this.tertiaryTextColor=ir(this.tertiaryColor),this.lineColor=ir(this.background),this.textColor=ir(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Nr(ir("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Z2(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=qr("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=qr(this.sectionBkgColor,10),this.taskBorderColor=Z2(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Z2(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var t,r,a,s,o,u,h,f,p,m,b;this.secondBkg=Nr(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Nr(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=Nr(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=gt(this.primaryColor,{h:64}),this.fillType3=gt(this.secondaryColor,{h:64}),this.fillType4=gt(this.primaryColor,{h:-64}),this.fillType5=gt(this.secondaryColor,{h:-64}),this.fillType6=gt(this.primaryColor,{h:128}),this.fillType7=gt(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||gt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||gt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||gt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||gt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||gt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||gt(this.primaryColor,{h:210}),this.cScale9=this.cScale9||gt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||gt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||gt(this.primaryColor,{h:330});for(let _=0;_{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}};const Qta=e=>{const t=new Xta;return t.calculate(e),t};let Zta=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=gt(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=gt(this.primaryColor,{h:-160}),this.primaryBorderColor=tv(this.primaryColor,this.darkMode),this.secondaryBorderColor=tv(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=tv(this.tertiaryColor,this.darkMode),this.primaryTextColor=ir(this.primaryColor),this.secondaryTextColor=ir(this.secondaryColor),this.tertiaryTextColor=ir(this.tertiaryColor),this.lineColor=ir(this.background),this.textColor=ir(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Z2(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var t,r,a,s,o,u,h,f,p,m,b;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||gt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||gt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||gt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||gt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||gt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||gt(this.primaryColor,{h:210}),this.cScale9=this.cScale9||gt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||gt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||gt(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||qr(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||qr(this.tertiaryColor,40);for(let _=0;_{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}};const mbt=e=>{const t=new Zta;return t.calculate(e),t};let Jta=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=Nr("#cde498",10),this.primaryBorderColor=tv(this.primaryColor,this.darkMode),this.secondaryBorderColor=tv(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=tv(this.tertiaryColor,this.darkMode),this.primaryTextColor=ir(this.primaryColor),this.secondaryTextColor=ir(this.secondaryColor),this.tertiaryTextColor=ir(this.primaryColor),this.lineColor=ir(this.background),this.textColor=ir(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,a,s,o,u,h,f,p,m,b;this.actorBorder=qr(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||gt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||gt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||gt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||gt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||gt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||gt(this.primaryColor,{h:210}),this.cScale9=this.cScale9||gt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||gt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||gt(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||qr(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||qr(this.tertiaryColor,40);for(let _=0;_{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}};const ena=e=>{const t=new Jta;return t.calculate(e),t};class tna{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Nr(this.contrast,55),this.background="#ffffff",this.tertiaryColor=gt(this.primaryColor,{h:-160}),this.primaryBorderColor=tv(this.primaryColor,this.darkMode),this.secondaryBorderColor=tv(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=tv(this.tertiaryColor,this.darkMode),this.primaryTextColor=ir(this.primaryColor),this.secondaryTextColor=ir(this.secondaryColor),this.tertiaryTextColor=ir(this.tertiaryColor),this.lineColor=ir(this.background),this.textColor=ir(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,a,s,o,u,h,f,p,m,b;this.secondBkg=Nr(this.contrast,55),this.border2=this.contrast,this.actorBorder=Nr(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let _=0;_{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}}const nna=e=>{const t=new tna;return t.calculate(e),t},V7={base:{getThemeVariables:Kta},dark:{getThemeVariables:Qta},default:{getThemeVariables:mbt},forest:{getThemeVariables:ena},neutral:{getThemeVariables:nna}},t7={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},qQn={...t7,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:V7.default.getThemeVariables(),sequence:{...t7.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...t7.gantt,tickInterval:void 0,useWidth:void 0},c4:{...t7.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...t7.pie,useWidth:984},xyChart:{...t7.xyChart,useWidth:void 0},requirement:{...t7.requirement,useWidth:void 0},gitGraph:{...t7.gitGraph,useMaxWidth:!1},sankey:{...t7.sankey,useMaxWidth:!1}},HQn=(e,t="")=>Object.keys(e).reduce((r,a)=>Array.isArray(e[a])?r:typeof e[a]=="object"&&e[a]!==null?[...r,t+a,...HQn(e[a],"")]:[...r,t+a],[]),rna=new Set(HQn(qQn,"")),fd=qQn,qTe=e=>{if(ut.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>qTe(t));return}for(const t of Object.keys(e)){if(ut.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!rna.has(t)||e[t]==null){ut.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){ut.debug("sanitizing object",t),qTe(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const a of r)t.includes(a)&&(ut.debug("sanitizing css option",t),e[t]=ina(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}ut.debug("After sanitization",e)}},ina=e=>{let t=0,r=0;for(const a of e){if(t{for(const{id:t,detector:r,loader:a}of e)WQn(t,r,a)},WQn=(e,t,r)=>{iW[e]?ut.error(`Detector with key ${e} already exists`):iW[e]={detector:t,loader:r},ut.debug(`Detector with key ${e} added${r?" with loader":""}`)},sna=e=>iW[e].loader,Zut=(e,t,{depth:r=2,clobber:a=!1}={})=>{const s={depth:r,clobber:a};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(o=>Zut(e,o,s)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(o=>{e.includes(o)||e.push(o)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(o=>{typeof t[o]=="object"&&(e[o]===void 0||typeof e[o]=="object")?(e[o]===void 0&&(e[o]=Array.isArray(t[o])?[]:{}),e[o]=Zut(e[o],t[o],{depth:r-1,clobber:a})):(a||typeof e[o]!="object"&&typeof t[o]!="object")&&(e[o]=t[o])}),e)},Tg=Zut,KQn="​",ona={curveBasis:j3,curveBasisClosed:IDn,curveBasisOpen:ODn,curveBumpX:l1t,curveBumpY:c1t,curveBundle:DDn,curveCardinalClosed:MDn,curveCardinalOpen:PDn,curveCardinal:h1t,curveCatmullRomClosed:$Dn,curveCatmullRomOpen:zDn,curveCatmullRom:g1t,curveLinear:Cg,curveLinearClosed:qDn,curveMonotoneX:m1t,curveMonotoneY:b1t,curveNatural:y1t,curveStep:v1t,curveStepAfter:w1t,curveStepBefore:_1t},lna=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,cna=function(e,t){const r=XQn(e,/(?:init\b)|(?:initialize\b)/);let a={};if(Array.isArray(r)){const u=r.map(h=>h.args);qTe(u),a=Tg(a,[...u])}else a=r.args;if(!a)return;let s=l6e(e,t);const o="config";return a[o]!==void 0&&(s==="flowchart-v2"&&(s="flowchart"),a[s]=a[o],delete a[o]),a},XQn=function(e,t=null){try{const r=new RegExp(`[%]{2}(?![{]${lna.source})(?=[}][%]{2}).* `,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),ut.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let a;const s=[];for(;(a=Ose.exec(e))!==null;)if(a.index===Ose.lastIndex&&Ose.lastIndex++,a&&!t||t&&a[1]&&a[1].match(t)||t&&a[2]&&a[2].match(t)){const o=a[1]?a[1]:a[2],u=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;s.push({type:o,args:u})}return s.length===0?{type:e,args:null}:s.length===1?s[0]:s}catch(r){return ut.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},una=function(e){return e.replace(Ose,"")},hna=function(e,t){for(const[r,a]of t.entries())if(a.match(e))return r;return-1};function fS(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return ona[r]??t}function dna(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?U9(r):r}const fna=(e,...t)=>{const r=e.split("."),a=r.length-1,s=r[a];let o=window;for(let u=0;u{r+=QQn(s,t),t=s});const a=r/2;return bbt(e,a)}function gna(e){return e.length===1?e[0]:pna(e)}const i5n=(e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},bbt=(e,t)=>{let r,a=t;for(const s of e){if(r){const o=QQn(s,r);if(o=1)return{x:s.x,y:s.y};if(u>0&&u<1)return{x:i5n((1-u)*r.x+u*s.x,5),y:i5n((1-u)*r.y+u*s.y,5)}}}r=s}throw new Error("Could not find a suitable point for the given distance")},mna=(e,t,r)=>{ut.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const s=bbt(t,25),o=e?10:5,u=Math.atan2(t[0].y-s.y,t[0].x-s.x),h={x:0,y:0};return h.x=Math.sin(u)*o+(t[0].x+s.x)/2,h.y=-Math.cos(u)*o+(t[0].y+s.y)/2,h};function bna(e,t,r){const a=structuredClone(r);ut.info("our points",a),t!=="start_left"&&t!=="start_right"&&a.reverse();const s=25+e,o=bbt(a,s),u=10+e*.5,h=Math.atan2(a[0].y-o.y,a[0].x-o.x),f={x:0,y:0};return t==="start_left"?(f.x=Math.sin(h+Math.PI)*u+(a[0].x+o.x)/2,f.y=-Math.cos(h+Math.PI)*u+(a[0].y+o.y)/2):t==="end_right"?(f.x=Math.sin(h-Math.PI)*u+(a[0].x+o.x)/2-5,f.y=-Math.cos(h-Math.PI)*u+(a[0].y+o.y)/2-5):t==="end_left"?(f.x=Math.sin(h)*u+(a[0].x+o.x)/2-5,f.y=-Math.cos(h)*u+(a[0].y+o.y)/2-5):(f.x=Math.sin(h)*u+(a[0].x+o.x)/2,f.y=-Math.cos(h)*u+(a[0].y+o.y)/2),f}function Hw(e){let t="",r="";for(const a of e)a!==void 0&&(a.startsWith("color:")||a.startsWith("text-align:")?r=r+a+";":t=t+a+";");return{style:t,labelStyle:r}}let a5n=0;const ZQn=()=>(a5n++,"id-"+Math.random().toString(36).substr(2,12)+"-"+a5n);function yna(e){let t="";const r="0123456789abcdef",a=r.length;for(let s=0;syna(e.length),vna=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},_na=function(e,t){const r=t.text.replace(mi.lineBreakRegex," "),[,a]=J$(t.fontSize),s=e.append("text");s.attr("x",t.x),s.attr("y",t.y),s.style("text-anchor",t.anchor),s.style("font-family",t.fontFamily),s.style("font-size",a),s.style("font-weight",t.fontWeight),s.attr("fill",t.fill),t.class!==void 0&&s.attr("class",t.class);const o=s.append("tspan");return o.attr("x",t.x+t.textMargin*2),o.attr("fill",t.fill),o.text(r),s},eZn=_R((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
    "},r),mi.lineBreakRegex.test(e)))return e;const a=e.split(" "),s=[];let o="";return a.forEach((u,h)=>{const f=dA(`${u} `,r),p=dA(o,r);if(f>t){const{hyphenatedStrings:_,remainingWord:w}=wna(u,t,"-",r);s.push(o,..._),o=w}else p+f>=t?(s.push(o),o=u):o=[o,u].filter(Boolean).join(" ");h+1===a.length&&s.push(o)}),s.filter(u=>u!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),wna=_R((e,t,r="-",a)=>{a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},a);const s=[...e],o=[];let u="";return s.forEach((h,f)=>{const p=`${u}${h}`;if(dA(p,a)>=t){const b=f+1,_=s.length===b,w=`${p}${r}`;o.push(_?p:w),u=""}else u=p}),{hyphenatedStrings:o,remainingWord:u}},(e,t,r="-",a)=>`${e}${t}${r}${a.fontSize}${a.fontWeight}${a.fontFamily}`);function Jut(e,t){return ybt(e,t).height}function dA(e,t){return ybt(e,t).width}const ybt=_R((e,t)=>{const{fontSize:r=12,fontFamily:a="Arial",fontWeight:s=400}=t;if(!e)return{width:0,height:0};const[,o]=J$(r),u=["sans-serif",a],h=e.split(mi.lineBreakRegex),f=[],p=gn("body");if(!p.remove)return{width:0,height:0,lineHeight:0};const m=p.append("svg");for(const _ of u){let w=0;const S={width:0,height:0,lineHeight:0};for(const C of h){const A=vna();A.text=C||KQn;const k=_na(m,A).style("font-size",o).style("font-weight",s).style("font-family",_),I=(k._groups||k)[0][0].getBBox();if(I.width===0&&I.height===0)throw new Error("svg element not in render tree");S.width=Math.round(Math.max(S.width,I.width)),w=Math.round(I.height),S.height+=w,S.lineHeight=Math.round(Math.max(S.lineHeight,w))}f.push(S)}m.remove();const b=isNaN(f[1].height)||isNaN(f[1].width)||isNaN(f[1].lineHeight)||f[0].height>f[1].height&&f[0].width>f[1].width&&f[0].lineHeight>f[1].lineHeight?0:1;return f[b]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`);class Ena{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}}let vEe;const xna=function(e){return vEe=vEe||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),vEe.innerHTML=e,unescape(vEe.textContent)};function tZn(e){return"str"in e}const Sna=(e,t,r,a)=>{var s;if(!a)return;const o=(s=e.node())==null?void 0:s.getBBox();o&&e.append("text").text(a).attr("x",o.x+o.width/2).attr("y",-r).attr("class",t)},J$=e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]};function Qce(e,t){return XO({},e,t)}const il={assignWithDepth:Tg,wrapLabel:eZn,calculateTextHeight:Jut,calculateTextWidth:dA,calculateTextDimensions:ybt,cleanAndMerge:Qce,detectInit:cna,detectDirective:XQn,isSubstringInArray:hna,interpolateToCurve:fS,calcLabelPosition:gna,calcCardinalityPosition:mna,calcTerminalLabelPosition:bna,formatUrl:dna,getStylesFromArray:Hw,generateId:ZQn,random:JQn,runFunc:fna,entityDecode:xna,insertTitle:Sna,parseFontSize:J$,InitIDGenerator:Ena},Tna=function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){const a=r.substring(1,r.length-1);return/^\+?\d+$/.test(a)?"fl°°"+a+"¶ß":"fl°"+a+"¶ß"}),t},ple=function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},s5n="10.9.3",aW=Object.freeze(fd);let U2=Tg({},aW),nZn,sW=[],Lse=Tg({},aW);const c6e=(e,t)=>{let r=Tg({},e),a={};for(const s of t)aZn(s),a=Tg(a,s);if(r=Tg(r,a),a.theme&&a.theme in V7){const s=Tg({},nZn),o=Tg(s.themeVariables||{},a.themeVariables);r.theme&&r.theme in V7&&(r.themeVariables=V7[r.theme].getThemeVariables(o))}return Lse=r,sZn(Lse),Lse},Cna=e=>(U2=Tg({},aW),U2=Tg(U2,e),e.theme&&V7[e.theme]&&(U2.themeVariables=V7[e.theme].getThemeVariables(e.themeVariables)),c6e(U2,sW),U2),Ana=e=>{nZn=Tg({},e)},kna=e=>(U2=Tg(U2,e),c6e(U2,sW),U2),rZn=()=>Tg({},U2),iZn=e=>(sZn(e),Tg(Lse,e),Lf()),Lf=()=>Tg({},Lse),aZn=e=>{e&&(["secure",...U2.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(ut.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&aZn(e[t])}))},Rna=e=>{qTe(e),e.fontFamily&&(!e.themeVariables||!e.themeVariables.fontFamily)&&(e.themeVariables={fontFamily:e.fontFamily}),sW.push(e),c6e(U2,sW)},HTe=(e=U2)=>{sW=[],c6e(e,sW)},Ina={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},o5n={},Nna=e=>{o5n[e]||(ut.warn(Ina[e]),o5n[e]=!0)},sZn=e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Nna("LAZY_LOAD_DEPRECATED")},oZn="c4",Ona=e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),Lna=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>xua);return{diagram:t}},void 0);return{id:oZn,diagram:e}},Dna={id:oZn,detector:Ona,loader:Lna},Mna=Dna,lZn="flowchart",Pna=(e,t)=>{var r,a;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((a=t==null?void 0:t.flowchart)==null?void 0:a.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},Bna=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Ppa);return{diagram:t}},void 0);return{id:lZn,diagram:e}},Fna={id:lZn,detector:Pna,loader:Bna},$na=Fna,cZn="flowchart-v2",Una=(e,t)=>{var r,a,s;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"||((a=t==null?void 0:t.flowchart)==null?void 0:a.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)&&((s=t==null?void 0:t.flowchart)==null?void 0:s.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)},zna=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Fpa);return{diagram:t}},void 0);return{id:cZn,diagram:e}},Gna={id:cZn,detector:Una,loader:zna},qna=Gna,uZn="er",Hna=e=>/^\s*erDiagram/.test(e),Vna=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>_ga);return{diagram:t}},void 0);return{id:uZn,diagram:e}},Yna={id:uZn,detector:Hna,loader:Vna},jna=Yna,hZn="gitGraph",Wna=e=>/^\s*gitGraph/.test(e),Kna=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Qga);return{diagram:t}},void 0);return{id:hZn,diagram:e}},Xna={id:hZn,detector:Wna,loader:Kna},Qna=Xna,dZn="gantt",Zna=e=>/^\s*gantt/.test(e),Jna=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>zma);return{diagram:t}},void 0);return{id:dZn,diagram:e}},era={id:dZn,detector:Zna,loader:Jna},tra=era,fZn="info",nra=e=>/^\s*info/.test(e),rra=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Xma);return{diagram:t}},void 0);return{id:fZn,diagram:e}},ira={id:fZn,detector:nra,loader:rra},pZn="pie",ara=e=>/^\s*pie/.test(e),sra=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>pba);return{diagram:t}},void 0);return{id:pZn,diagram:e}},ora={id:pZn,detector:ara,loader:sra},gZn="quadrantChart",lra=e=>/^\s*quadrantChart/.test(e),cra=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Mba);return{diagram:t}},void 0);return{id:gZn,diagram:e}},ura={id:gZn,detector:lra,loader:cra},hra=ura,mZn="xychart",dra=e=>/^\s*xychart-beta/.test(e),fra=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>uya);return{diagram:t}},void 0);return{id:mZn,diagram:e}},pra={id:mZn,detector:dra,loader:fra},gra=pra,bZn="requirement",mra=e=>/^\s*requirement(Diagram)?/.test(e),bra=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Gya);return{diagram:t}},void 0);return{id:bZn,diagram:e}},yra={id:bZn,detector:mra,loader:bra},vra=yra,yZn="sequence",_ra=e=>/^\s*sequenceDiagram/.test(e),wra=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Wva);return{diagram:t}},void 0);return{id:yZn,diagram:e}},Era={id:yZn,detector:_ra,loader:wra},xra=Era,vZn="class",Sra=(e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},Tra=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>R2a);return{diagram:t}},void 0);return{id:vZn,diagram:e}},Cra={id:vZn,detector:Sra,loader:Tra},Ara=Cra,_Zn="classDiagram",kra=(e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},Rra=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>B2a);return{diagram:t}},void 0);return{id:_Zn,diagram:e}},Ira={id:_Zn,detector:kra,loader:Rra},Nra=Ira,wZn="state",Ora=(e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},Lra=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>A_a);return{diagram:t}},void 0);return{id:wZn,diagram:e}},Dra={id:wZn,detector:Ora,loader:Lra},Mra=Dra,EZn="stateDiagram",Pra=(e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},Bra=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>J_a);return{diagram:t}},void 0);return{id:EZn,diagram:e}},Fra={id:EZn,detector:Pra,loader:Bra},$ra=Fra,xZn="journey",Ura=e=>/^\s*journey/.test(e),zra=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Ewa);return{diagram:t}},void 0);return{id:xZn,diagram:e}},Gra={id:xZn,detector:Ura,loader:zra},qra=Gra,Hra=function(e,t){for(let r of t)e.attr(r[0],r[1])},Vra=function(e,t,r){let a=new Map;return r?(a.set("width","100%"),a.set("style",`max-width: ${t}px;`)):(a.set("height",e),a.set("width",t)),a},Db=function(e,t,r,a){const s=Vra(t,r,a);Hra(e,s)},oL=function(e,t,r,a){const s=t.node().getBBox(),o=s.width,u=s.height;ut.info(`SVG bounds: ${o}x${u}`,s);let h=0,f=0;ut.info(`Graph bounds: ${h}x${f}`,e),h=o+r*2,f=u+r*2,ut.info(`Calculated bounds: ${h}x${f}`),Db(t,f,h,a);const p=`${s.x-r} ${s.y-r} ${s.width+2*r} ${s.height+2*r}`;t.attr("viewBox",p)},nSe={},Yra=(e,t,r)=>{let a="";return e in nSe&&nSe[e]?a=nSe[e](r):ut.warn(`No theme found for ${e}`),` & { font-family: ${r.fontFamily}; font-size: ${r.fontSize}; fill: ${r.textColor} } /* Classes common for multiple diagrams */ & .error-icon { fill: ${r.errorBkgColor}; } & .error-text { fill: ${r.errorTextColor}; stroke: ${r.errorTextColor}; } & .edge-thickness-normal { stroke-width: 2px; } & .edge-thickness-thick { stroke-width: 3.5px } & .edge-pattern-solid { stroke-dasharray: 0; } & .edge-pattern-dashed{ stroke-dasharray: 3; } .edge-pattern-dotted { stroke-dasharray: 2; } & .marker { fill: ${r.lineColor}; stroke: ${r.lineColor}; } & .marker.cross { stroke: ${r.lineColor}; } & svg { font-family: ${r.fontFamily}; font-size: ${r.fontSize}; } ${a} ${t} `},jra=(e,t)=>{t!==void 0&&(nSe[e]=t)},Wra=Yra;let vbt="",_bt="",wbt="";const Ebt=e=>J0(e,Lf()),Mb=()=>{vbt="",wbt="",_bt=""},Pb=e=>{vbt=Ebt(e).replace(/^\s+/g,"")},Ev=()=>vbt,xv=e=>{wbt=Ebt(e).replace(/\n\s+/g,` `)},Sv=()=>wbt,Zw=e=>{_bt=Ebt(e)},Tv=()=>_bt,SZn=Object.freeze(Object.defineProperty({__proto__:null,clear:Mb,getAccDescription:Sv,getAccTitle:Ev,getDiagramTitle:Tv,setAccDescription:xv,setAccTitle:Pb,setDiagramTitle:Zw},Symbol.toStringTag,{value:"Module"})),Kra=ut,Xra=gbt,Qt=Lf,Qra=iZn,TZn=aW,Zra=e=>J0(e,Qt()),CZn=oL,Jra=()=>SZn,VTe={},YTe=(e,t,r)=>{var a;if(VTe[e])throw new Error(`Diagram ${e} already registered.`);VTe[e]=t,r&&WQn(e,r),jra(e,t.styles),(a=t.injectUtils)==null||a.call(t,Kra,Xra,Qt,Zra,CZn,Jra(),()=>{})},xbt=e=>{if(e in VTe)return VTe[e];throw new eia(e)};class eia extends Error{constructor(t){super(`Diagram ${t} not found.`)}}const Zce=e=>{var t;const{securityLevel:r}=Qt();let a=gn("body");if(r==="sandbox"){const u=((t=gn(`#i${e}`).node())==null?void 0:t.contentDocument)??document;a=gn(u.body)}return a.select(`#${e}`)},tia=(e,t,r)=>{ut.debug(`rendering svg for syntax error `);const a=Zce(t),s=a.append("g");a.attr("viewBox","0 0 2412 512"),Db(a,100,512,!0),s.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),s.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),s.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),s.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),s.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),s.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),s.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),s.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},AZn={draw:tia},nia=AZn,ria={db:{},renderer:AZn,parser:{parser:{yy:{}},parse:()=>{}}},iia=ria,kZn="flowchart-elk",aia=(e,t)=>{var r;return!!(/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk")},sia=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>zwa);return{diagram:t}},void 0);return{id:kZn,diagram:e}},oia={id:kZn,detector:aia,loader:sia},lia=oia,RZn="timeline",cia=e=>/^\s*timeline/.test(e),uia=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>uEa);return{diagram:t}},void 0);return{id:RZn,diagram:e}},hia={id:RZn,detector:cia,loader:uia},dia=hia,IZn="mindmap",fia=e=>/^\s*mindmap/.test(e),pia=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>HEa);return{diagram:t}},void 0);return{id:IZn,diagram:e}},gia={id:IZn,detector:fia,loader:pia},mia=gia,NZn="sankey",bia=e=>/^\s*sankey-beta/.test(e),yia=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>sxa);return{diagram:t}},void 0);return{id:NZn,diagram:e}},via={id:NZn,detector:bia,loader:yia},_ia=via,OZn="block",wia=e=>/^\s*block-beta/.test(e),Eia=async()=>{const{diagram:e}=await ea(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Hxa);return{diagram:t}},void 0);return{id:OZn,diagram:e}},xia={id:OZn,detector:wia,loader:Eia},Sia=xia;let l5n=!1;const Sbt=()=>{l5n||(l5n=!0,YTe("error",iia,e=>e.toLowerCase().trim()==="error"),YTe("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},e=>e.toLowerCase().trimStart().startsWith("---")),jQn(Mna,Nra,Ara,jna,tra,ira,ora,vra,xra,lia,qna,$na,mia,dia,Qna,$ra,Mra,qra,hra,_ia,gra,Sia))};class LZn{constructor(t,r={}){this.text=t,this.metadata=r,this.type="graph",this.text=Tna(t),this.text+=` `;const a=Lf();try{this.type=l6e(t,a)}catch(o){this.type="error",this.detectError=o}const s=xbt(this.type);ut.debug("Type "+this.type),this.db=s.db,this.renderer=s.renderer,this.parser=s.parser,this.parser.parser.yy=this.db,this.init=s.init,this.parse()}parse(){var t,r,a,s,o;if(this.detectError)throw this.detectError;(r=(t=this.db).clear)==null||r.call(t);const u=Lf();(a=this.init)==null||a.call(this,u),this.metadata.title&&((o=(s=this.db).setDiagramTitle)==null||o.call(s,this.metadata.title)),this.parser.parse(this.text)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}}const Tia=async(e,t={})=>{const r=l6e(e,Lf());try{xbt(r)}catch{const s=sna(r);if(!s)throw new YQn(`Diagram ${r} not found.`);const{id:o,diagram:u}=await s();YTe(o,u)}return new LZn(e,t)};let c5n=[];const Cia=()=>{c5n.forEach(e=>{e()}),c5n=[]},Aia="graphics-document document";function kia(e,t){e.attr("role",Aia),t!==""&&e.attr("aria-roledescription",t)}function Ria(e,t,r,a){if(e.insert!==void 0){if(r){const s=`chart-desc-${a}`;e.attr("aria-describedby",s),e.insert("desc",":first-child").attr("id",s).text(r)}if(t){const s=`chart-title-${a}`;e.attr("aria-labelledby",s),e.insert("title",":first-child").attr("id",s).text(t)}}}const Iia=e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function DZn(e){return typeof e>"u"||e===null}function Nia(e){return typeof e=="object"&&e!==null}function Oia(e){return Array.isArray(e)?e:DZn(e)?[]:[e]}function Lia(e,t){var r,a,s,o;if(t)for(o=Object.keys(t),r=0,a=o.length;rh&&(o=" ... ",t=a-h+o.length),r-a>h&&(u=" ...",r=a+h-u.length),{str:o+e.slice(t,r).replace(/\t/g,"→")+u,pos:a-t+o.length}}function fat(e,t){return Hy.repeat(" ",t-e.length)+e}function Gia(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,a=[0],s=[],o,u=-1;o=r.exec(e.buffer);)s.push(o.index),a.push(o.index+o[0].length),e.position<=o.index&&u<0&&(u=a.length-2);u<0&&(u=a.length-1);var h="",f,p,m=Math.min(e.line+t.linesAfter,s.length).toString().length,b=t.maxLength-(t.indent+m+3);for(f=1;f<=t.linesBefore&&!(u-f<0);f++)p=dat(e.buffer,a[u-f],s[u-f],e.position-(a[u]-a[u-f]),b),h=Hy.repeat(" ",t.indent)+fat((e.line-f+1).toString(),m)+" | "+p.str+` `+h;for(p=dat(e.buffer,a[u],s[u],e.position,b),h+=Hy.repeat(" ",t.indent)+fat((e.line+1).toString(),m)+" | "+p.str+` `,h+=Hy.repeat("-",t.indent+m+3+p.pos)+`^ `,f=1;f<=t.linesAfter&&!(u+f>=s.length);f++)p=dat(e.buffer,a[u+f],s[u+f],e.position-(a[u]-a[u+f]),b),h+=Hy.repeat(" ",t.indent)+fat((e.line+f+1).toString(),m)+" | "+p.str+` `;return h.replace(/\n$/,"")}var qia=Gia,Hia=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Via=["scalar","sequence","mapping"];function Yia(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(a){t[String(a)]=r})}),t}function jia(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Hia.indexOf(r)===-1)throw new _7('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=Yia(t.styleAliases||null),Via.indexOf(this.kind)===-1)throw new _7('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Ab=jia;function u5n(e,t){var r=[];return e[t].forEach(function(a){var s=r.length;r.forEach(function(o,u){o.tag===a.tag&&o.kind===a.kind&&o.multi===a.multi&&(s=u)}),r[s]=a}),r}function Wia(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function a(s){s.multi?(e.multi[s.kind].push(s),e.multi.fallback.push(s)):e[s.kind][s.tag]=e.fallback[s.tag]=s}for(t=0,r=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),gaa=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function maa(e){return!(e===null||!gaa.test(e)||e[e.length-1]==="_")}function baa(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var yaa=/^[-+]?[0-9]+e/;function vaa(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Hy.isNegativeZero(e))return"-0.0";return r=e.toString(10),yaa.test(r)?r.replace("e",".e"):r}function _aa(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Hy.isNegativeZero(e))}var waa=new Ab("tag:yaml.org,2002:float",{kind:"scalar",resolve:maa,construct:baa,predicate:_aa,represent:vaa,defaultStyle:"lowercase"}),PZn=Jia.extend({implicit:[raa,oaa,paa,waa]}),Eaa=PZn,BZn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),FZn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function xaa(e){return e===null?!1:BZn.exec(e)!==null||FZn.exec(e)!==null}function Saa(e){var t,r,a,s,o,u,h,f=0,p=null,m,b,_;if(t=BZn.exec(e),t===null&&(t=FZn.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],a=+t[2]-1,s=+t[3],!t[4])return new Date(Date.UTC(r,a,s));if(o=+t[4],u=+t[5],h=+t[6],t[7]){for(f=t[7].slice(0,3);f.length<3;)f+="0";f=+f}return t[9]&&(m=+t[10],b=+(t[11]||0),p=(m*60+b)*6e4,t[9]==="-"&&(p=-p)),_=new Date(Date.UTC(r,a,s,o,u,h,f)),p&&_.setTime(_.getTime()-p),_}function Taa(e){return e.toISOString()}var Caa=new Ab("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:xaa,construct:Saa,instanceOf:Date,represent:Taa});function Aaa(e){return e==="<<"||e===null}var kaa=new Ab("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Aaa}),Tbt=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`;function Raa(e){if(e===null)return!1;var t,r,a=0,s=e.length,o=Tbt;for(r=0;r64)){if(t<0)return!1;a+=6}return a%8===0}function Iaa(e){var t,r,a=e.replace(/[\r\n=]/g,""),s=a.length,o=Tbt,u=0,h=[];for(t=0;t>16&255),h.push(u>>8&255),h.push(u&255)),u=u<<6|o.indexOf(a.charAt(t));return r=s%4*6,r===0?(h.push(u>>16&255),h.push(u>>8&255),h.push(u&255)):r===18?(h.push(u>>10&255),h.push(u>>2&255)):r===12&&h.push(u>>4&255),new Uint8Array(h)}function Naa(e){var t="",r=0,a,s,o=e.length,u=Tbt;for(a=0;a>18&63],t+=u[r>>12&63],t+=u[r>>6&63],t+=u[r&63]),r=(r<<8)+e[a];return s=o%3,s===0?(t+=u[r>>18&63],t+=u[r>>12&63],t+=u[r>>6&63],t+=u[r&63]):s===2?(t+=u[r>>10&63],t+=u[r>>4&63],t+=u[r<<2&63],t+=u[64]):s===1&&(t+=u[r>>2&63],t+=u[r<<4&63],t+=u[64],t+=u[64]),t}function Oaa(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Laa=new Ab("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Raa,construct:Iaa,predicate:Oaa,represent:Naa}),Daa=Object.prototype.hasOwnProperty,Maa=Object.prototype.toString;function Paa(e){if(e===null)return!0;var t=[],r,a,s,o,u,h=e;for(r=0,a=h.length;r>10)+55296,(e-65536&1023)+56320)}var qZn=new Array(256),HZn=new Array(256);for(var iV=0;iV<256;iV++)qZn[iV]=f5n(iV)?1:0,HZn[iV]=f5n(iV);function nsa(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||jaa,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function VZn(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=qia(r),new _7(t,r)}function Is(e,t){throw VZn(e,t)}function KTe(e,t){e.onWarning&&e.onWarning.call(null,VZn(e,t))}var p5n={YAML:function(t,r,a){var s,o,u;t.version!==null&&Is(t,"duplication of %YAML directive"),a.length!==1&&Is(t,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(a[0]),s===null&&Is(t,"ill-formed argument of the YAML directive"),o=parseInt(s[1],10),u=parseInt(s[2],10),o!==1&&Is(t,"unacceptable YAML version of the document"),t.version=a[0],t.checkLineBreaks=u<2,u!==1&&u!==2&&KTe(t,"unsupported YAML version of the document")},TAG:function(t,r,a){var s,o;a.length!==2&&Is(t,"TAG directive accepts exactly two arguments"),s=a[0],o=a[1],zZn.test(s)||Is(t,"ill-formed tag handle (first argument) of the TAG directive"),v9.call(t.tagMap,s)&&Is(t,'there is a previously declared suffix for "'+s+'" tag handle'),GZn.test(o)||Is(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{Is(t,"tag prefix is malformed: "+o)}t.tagMap[s]=o}};function MO(e,t,r,a){var s,o,u,h;if(t1&&(e.result+=Hy.repeat(` `,t-1))}function rsa(e,t,r){var a,s,o,u,h,f,p,m,b=e.kind,_=e.result,w;if(w=e.input.charCodeAt(e.position),K2(w)||FV(w)||w===35||w===38||w===42||w===33||w===124||w===62||w===39||w===34||w===37||w===64||w===96||(w===63||w===45)&&(s=e.input.charCodeAt(e.position+1),K2(s)||r&&FV(s)))return!1;for(e.kind="scalar",e.result="",o=u=e.position,h=!1;w!==0;){if(w===58){if(s=e.input.charCodeAt(e.position+1),K2(s)||r&&FV(s))break}else if(w===35){if(a=e.input.charCodeAt(e.position-1),K2(a))break}else{if(e.position===e.lineStart&&u6e(e)||r&&FV(w))break;if(fA(w))if(f=e.line,p=e.lineStart,m=e.lineIndent,R1(e,!1,-1),e.lineIndent>=t){h=!0,w=e.input.charCodeAt(e.position);continue}else{e.position=u,e.line=f,e.lineStart=p,e.lineIndent=m;break}}h&&(MO(e,o,u,!1),Abt(e,e.line-f),o=u=e.position,h=!1),pF(w)||(u=e.position+1),w=e.input.charCodeAt(++e.position)}return MO(e,o,u,!1),e.result?!0:(e.kind=b,e.result=_,!1)}function isa(e,t){var r,a,s;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,a=s=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(MO(e,a,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)a=e.position,e.position++,s=e.position;else return!0;else fA(r)?(MO(e,a,s,!0),Abt(e,R1(e,!1,t)),a=s=e.position):e.position===e.lineStart&&u6e(e)?Is(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);Is(e,"unexpected end of the stream within a single quoted scalar")}function asa(e,t){var r,a,s,o,u,h;if(h=e.input.charCodeAt(e.position),h!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(h=e.input.charCodeAt(e.position))!==0;){if(h===34)return MO(e,r,e.position,!0),e.position++,!0;if(h===92){if(MO(e,r,e.position,!0),h=e.input.charCodeAt(++e.position),fA(h))R1(e,!1,t);else if(h<256&&qZn[h])e.result+=HZn[h],e.position++;else if((u=Jaa(h))>0){for(s=u,o=0;s>0;s--)h=e.input.charCodeAt(++e.position),(u=Zaa(h))>=0?o=(o<<4)+u:Is(e,"expected hexadecimal character");e.result+=tsa(o),e.position++}else Is(e,"unknown escape sequence");r=a=e.position}else fA(h)?(MO(e,r,a,!0),Abt(e,R1(e,!1,t)),r=a=e.position):e.position===e.lineStart&&u6e(e)?Is(e,"unexpected end of the document within a double quoted scalar"):(e.position++,a=e.position)}Is(e,"unexpected end of the stream within a double quoted scalar")}function ssa(e,t){var r=!0,a,s,o,u=e.tag,h,f=e.anchor,p,m,b,_,w,S=Object.create(null),C,A,k,I;if(I=e.input.charCodeAt(e.position),I===91)m=93,w=!1,h=[];else if(I===123)m=125,w=!0,h={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),I=e.input.charCodeAt(++e.position);I!==0;){if(R1(e,!0,t),I=e.input.charCodeAt(e.position),I===m)return e.position++,e.tag=u,e.anchor=f,e.kind=w?"mapping":"sequence",e.result=h,!0;r?I===44&&Is(e,"expected the node content, but found ','"):Is(e,"missed comma between flow collection entries"),A=C=k=null,b=_=!1,I===63&&(p=e.input.charCodeAt(e.position+1),K2(p)&&(b=_=!0,e.position++,R1(e,!0,t))),a=e.line,s=e.lineStart,o=e.position,oW(e,t,jTe,!1,!0),A=e.tag,C=e.result,R1(e,!0,t),I=e.input.charCodeAt(e.position),(_||e.line===a)&&I===58&&(b=!0,I=e.input.charCodeAt(++e.position),R1(e,!0,t),oW(e,t,jTe,!1,!0),k=e.result),w?$V(e,h,S,A,C,k,a,s,o):b?h.push($V(e,null,S,A,C,k,a,s,o)):h.push(C),R1(e,!0,t),I=e.input.charCodeAt(e.position),I===44?(r=!0,I=e.input.charCodeAt(++e.position)):r=!1}Is(e,"unexpected end of the stream within a flow collection")}function osa(e,t){var r,a,s=pat,o=!1,u=!1,h=t,f=0,p=!1,m,b;if(b=e.input.charCodeAt(e.position),b===124)a=!1;else if(b===62)a=!0;else return!1;for(e.kind="scalar",e.result="";b!==0;)if(b=e.input.charCodeAt(++e.position),b===43||b===45)pat===s?s=b===43?h5n:Waa:Is(e,"repeat of a chomping mode identifier");else if((m=esa(b))>=0)m===0?Is(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?Is(e,"repeat of an indentation width identifier"):(h=t+m-1,u=!0);else break;if(pF(b)){do b=e.input.charCodeAt(++e.position);while(pF(b));if(b===35)do b=e.input.charCodeAt(++e.position);while(!fA(b)&&b!==0)}for(;b!==0;){for(Cbt(e),e.lineIndent=0,b=e.input.charCodeAt(e.position);(!u||e.lineIndenth&&(h=e.lineIndent),fA(b)){f++;continue}if(e.lineIndentt)&&f!==0)Is(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(A&&(u=e.line,h=e.lineStart,f=e.position),oW(e,t,WTe,!0,s)&&(A?S=e.result:C=e.result),A||($V(e,b,_,w,S,C,u,h,f),w=S=C=null),R1(e,!0,-1),I=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&I!==0)Is(e,"bad indentation of a mapping entry");else if(e.lineIndentt?f=1:e.lineIndent===t?f=0:e.lineIndentt?f=1:e.lineIndent===t?f=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),b=0,_=e.implicitTypes.length;b<_;b+=1)if(S=e.implicitTypes[b],S.resolve(e.result)){e.result=S.construct(e.result),e.tag=S.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(v9.call(e.typeMap[e.kind||"fallback"],e.tag))S=e.typeMap[e.kind||"fallback"][e.tag];else for(S=null,w=e.typeMap.multi[e.kind||"fallback"],b=0,_=w.length;b<_;b+=1)if(e.tag.slice(0,w[b].tag.length)===w[b].tag){S=w[b];break}S||Is(e,"unknown tag !<"+e.tag+">"),e.result!==null&&S.kind!==e.kind&&Is(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+S.kind+'", not "'+e.kind+'"'),S.resolve(e.result,e.tag)?(e.result=S.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Is(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||m}function dsa(e){var t=e.position,r,a,s,o=!1,u;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(u=e.input.charCodeAt(e.position))!==0&&(R1(e,!0,-1),u=e.input.charCodeAt(e.position),!(e.lineIndent>0||u!==37));){for(o=!0,u=e.input.charCodeAt(++e.position),r=e.position;u!==0&&!K2(u);)u=e.input.charCodeAt(++e.position);for(a=e.input.slice(r,e.position),s=[],a.length<1&&Is(e,"directive name must not be less than one character in length");u!==0;){for(;pF(u);)u=e.input.charCodeAt(++e.position);if(u===35){do u=e.input.charCodeAt(++e.position);while(u!==0&&!fA(u));break}if(fA(u))break;for(r=e.position;u!==0&&!K2(u);)u=e.input.charCodeAt(++e.position);s.push(e.input.slice(r,e.position))}u!==0&&Cbt(e),v9.call(p5n,a)?p5n[a](e,a,s):KTe(e,'unknown document directive "'+a+'"')}if(R1(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,R1(e,!0,-1)):o&&Is(e,"directives end mark is expected"),oW(e,e.lineIndent-1,WTe,!1,!0),R1(e,!0,-1),e.checkLineBreaks&&Xaa.test(e.input.slice(t,e.position))&&KTe(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&u6e(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,R1(e,!0,-1));return}if(e.positione.replace(/\r\n?/g,` `).replace(/<(\w+)([^>]*)>/g,(t,r,a)=>"<"+r+a.replace(/="([^"]*)"/g,"='$1'")+">"),wsa=e=>{const{text:t,metadata:r}=vsa(e),{displayMode:a,title:s,config:o={}}=r;return a&&(o.gantt||(o.gantt={}),o.gantt.displayMode=a),{title:s,config:o,text:t}},Esa=e=>{const t=il.detectInit(e)??{},r=il.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:a})=>{}):(r==null?void 0:r.type)==="wrap"&&(t.wrap=!0),{text:una(e),directive:t}};function YZn(e){const t=_sa(e),r=wsa(t),a=Esa(r.text),s=Qce(r.config,a.directive);return e=Iia(a.text),{code:e,title:r.title,config:s}}const xsa=5e4,Ssa="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Tsa="sandbox",Csa="loose",Asa="http://www.w3.org/2000/svg",ksa="http://www.w3.org/1999/xlink",Rsa="http://www.w3.org/1999/xhtml",Isa="100%",Nsa="100%",Osa="border:0;margin:0;",Lsa="margin:0",Dsa="allow-top-navigation-by-user-activation allow-popups",Msa='The "iframe" tag is not supported by your browser.',Psa=["foreignobject"],Bsa=["dominant-baseline"];function jZn(e){const t=YZn(e);return HTe(),Rna(t.config??{}),t}async function Fsa(e,t){Sbt(),e=jZn(e).code;try{await kbt(e)}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}return!0}const b5n=(e,t,r=[])=>` .${e} ${t} { ${r.join(" !important; ")} !important; }`,$sa=(e,t={})=>{var r;let a="";if(e.themeCSS!==void 0&&(a+=` ${e.themeCSS}`),e.fontFamily!==void 0&&(a+=` :root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(a+=` :root { --mermaid-alt-font-family: ${e.altFontFamily}}`),!uA(t)){const h=e.htmlLabels||((r=e.flowchart)==null?void 0:r.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const f in t){const p=t[f];uA(p.styles)||h.forEach(m=>{a+=b5n(p.id,m,p.styles)}),uA(p.textStyles)||(a+=b5n(p.id,"tspan",p.textStyles))}}return a},Usa=(e,t,r,a)=>{const s=$sa(e,r),o=Wra(t,s,e.themeVariables);return Gse(RAn(`${a}{${o}}`),NAn)},zsa=(e="",t,r)=>{let a=e;return!r&&!t&&(a=a.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),a=ple(a),a=a.replace(/
    /g,"
    "),a},Gsa=(e="",t)=>{var r,a;const s=(a=(r=t==null?void 0:t.viewBox)==null?void 0:r.baseVal)!=null&&a.height?t.viewBox.baseVal.height+"px":Nsa,o=btoa(''+e+"");return``},y5n=(e,t,r,a,s)=>{const o=e.append("div");o.attr("id",r),a&&o.attr("style",a);const u=o.append("svg").attr("id",t).attr("width","100%").attr("xmlns",Asa);return s&&u.attr("xmlns:xlink",s),u.append("g"),e};function v5n(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const qsa=(e,t,r,a)=>{var s,o,u;(s=e.getElementById(t))==null||s.remove(),(o=e.getElementById(r))==null||o.remove(),(u=e.getElementById(a))==null||u.remove()},Hsa=async function(e,t,r){var a,s,o,u,h,f;Sbt();const p=jZn(t);t=p.code;const m=Lf();ut.debug(m),t.length>((m==null?void 0:m.maxTextSize)??xsa)&&(t=Ssa);const b="#"+e,_="i"+e,w="#"+_,S="d"+e,C="#"+S;let A=gn("body");const k=m.securityLevel===Tsa,I=m.securityLevel===Csa,N=m.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),k){const ee=v5n(gn(r),_);A=gn(ee.nodes()[0].contentDocument.body),A.node().style.margin=0}else A=gn(r);y5n(A,e,S,`font-family: ${N}`,ksa)}else{if(qsa(document,e,S,_),k){const ee=v5n(gn("body"),_);A=gn(ee.nodes()[0].contentDocument.body),A.node().style.margin=0}else A=gn("body");y5n(A,e,S)}let L,P;try{L=await kbt(t,{title:p.title})}catch(ee){L=new LZn("error"),P=ee}const M=A.select(C).node(),F=L.type,U=M.firstChild,$=U.firstChild,G=(s=(a=L.renderer).getClasses)==null?void 0:s.call(a,t,L),B=Usa(m,F,G,b),Z=document.createElement("style");Z.innerHTML=B,U.insertBefore(Z,$);try{await L.renderer.draw(t,e,s5n,L)}catch(ee){throw nia.draw(t,e,s5n),ee}const z=A.select(`${C} svg`),Y=(u=(o=L.db).getAccTitle)==null?void 0:u.call(o),W=(f=(h=L.db).getAccDescription)==null?void 0:f.call(h);Ysa(F,z,Y,W),A.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",Rsa);let Q=A.select(C).node().innerHTML;if(ut.debug("config.arrowMarkerAbsolute",m.arrowMarkerAbsolute),Q=zsa(Q,k,Np(m.arrowMarkerAbsolute)),k){const ee=A.select(C+" svg").node();Q=Gsa(Q,ee)}else I||(Q=rW.sanitize(Q,{ADD_TAGS:Psa,ADD_ATTR:Bsa}));if(Cia(),P)throw P;const j=gn(k?w:C).node();return j&&"remove"in j&&j.remove(),{svg:Q,bindFunctions:L.db.bindFunctions}};function Vsa(e={}){var t;e!=null&&e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),Ana(e),e!=null&&e.theme&&e.theme in V7?e.themeVariables=V7[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=V7.default.getThemeVariables(e.themeVariables));const r=typeof e=="object"?Cna(e):rZn();gbt(r.logLevel),Sbt()}const kbt=(e,t={})=>{const{code:r}=YZn(e);return Tia(r,t)};function Ysa(e,t,r,a){kia(t,e),Ria(t,r,a,t.attr("id"))}const l$=Object.freeze({render:Hsa,parse:Fsa,getDiagramFromText:kbt,initialize:Vsa,getConfig:Lf,setConfig:iZn,getSiteConfig:rZn,updateSiteConfig:kna,reset:()=>{HTe()},globalReset:()=>{HTe(aW)},defaultConfig:aW});gbt(Lf().logLevel);HTe(Lf());const jsa=async()=>{ut.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(iW).map(async([r,{detector:a,loader:s}])=>{if(s)try{xbt(r)}catch{try{const{diagram:u,id:h}=await s();YTe(h,u,a)}catch(u){throw ut.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete iW[r],u}}}))).filter(r=>r.status==="rejected");if(t.length>0){ut.error(`Failed to load ${t.length} external diagrams`);for(const r of t)ut.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},Wsa=(e,t,r)=>{ut.warn(e),tZn(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},WZn=async function(e={querySelector:".mermaid"}){try{await Ksa(e)}catch(t){if(tZn(t)&&ut.error(t.str),EA.parseError&&EA.parseError(t),!e.suppressErrors)throw ut.error("Use the suppressErrors option to suppress these errors"),t}},Ksa=async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const a=l$.getConfig();ut.debug(`${e?"":"No "}Callback function found`);let s;if(r)s=r;else if(t)s=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");ut.debug(`Found ${s.length} diagrams`),(a==null?void 0:a.startOnLoad)!==void 0&&(ut.debug("Start On Load: "+(a==null?void 0:a.startOnLoad)),l$.updateSiteConfig({startOnLoad:a==null?void 0:a.startOnLoad}));const o=new il.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed);let u;const h=[];for(const f of Array.from(s)){ut.info("Rendering diagram: "+f.id);/*! Check if previously processed */if(f.getAttribute("data-processed"))continue;f.setAttribute("data-processed","true");const p=`mermaid-${o.next()}`;u=f.innerHTML,u=TAe(il.entityDecode(u)).trim().replace(//gi,"
    ");const m=il.detectInit(u);m&&ut.debug("Detected early reinit: ",m);try{const{svg:b,bindFunctions:_}=await ZZn(p,u,f);f.innerHTML=b,e&&await e(p),_&&_(f)}catch(b){Wsa(b,h,EA.parseError)}}if(h.length>0)throw h[0]},KZn=function(e){l$.initialize(e)},Xsa=async function(e,t,r){ut.warn("mermaid.init is deprecated. Please use run instead."),e&&KZn(e);const a={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?a.querySelector=t:t&&(t instanceof HTMLElement?a.nodes=[t]:a.nodes=t),await WZn(a)},Qsa=async(e,{lazyLoad:t=!0}={})=>{jQn(...e),t===!1&&await jsa()},XZn=function(){if(EA.startOnLoad){const{startOnLoad:e}=l$.getConfig();e&&EA.run().catch(t=>ut.error("Mermaid failed to initialize",t))}};if(typeof document<"u"){/*! * Wait for document loaded before starting the execution */window.addEventListener("load",XZn,!1)}const Zsa=function(e){EA.parseError=e},XTe=[];let gat=!1;const QZn=async()=>{if(!gat){for(gat=!0;XTe.length>0;){const e=XTe.shift();if(e)try{await e()}catch(t){ut.error("Error executing queue",t)}}gat=!1}},Jsa=async(e,t)=>new Promise((r,a)=>{const s=()=>new Promise((o,u)=>{l$.parse(e,t).then(h=>{o(h),r(h)},h=>{var f;ut.error("Error parsing",h),(f=EA.parseError)==null||f.call(EA,h),u(h),a(h)})});XTe.push(s),QZn().catch(a)}),ZZn=(e,t,r)=>new Promise((a,s)=>{const o=()=>new Promise((u,h)=>{l$.render(e,t,r).then(f=>{u(f),a(f)},f=>{var p;ut.error("Error parsing",f),(p=EA.parseError)==null||p.call(EA,f),h(f),s(f)})});XTe.push(o),QZn().catch(s)}),EA={startOnLoad:!0,mermaidAPI:l$,parse:Jsa,render:ZZn,init:Xsa,run:WZn,registerExternalDiagrams:Qsa,initialize:KZn,parseError:void 0,contentLoaded:XZn,setParseErrorHandler:Zsa,detectType:l6e};(()=>{var a,s,o;(a=Path2D.prototype).roundRect??(a.roundRect=e),globalThis.CanvasRenderingContext2D&&((s=globalThis.CanvasRenderingContext2D.prototype).roundRect??(s.roundRect=e)),globalThis.OffscreenCanvasRenderingContext2D&&((o=globalThis.OffscreenCanvasRenderingContext2D.prototype).roundRect??(o.roundRect=e));function e(u,h,f,p,m){if(![u,h,f,p].every(M=>Number.isFinite(M)))return;m=I(m);let b,_,w,S;if(m.length===4)b=L(m[0]),_=L(m[1]),w=L(m[2]),S=L(m[3]);else if(m.length===3)b=L(m[0]),_=L(m[1]),S=L(m[1]),w=L(m[2]);else if(m.length===2)b=L(m[0]),w=L(m[0]),_=L(m[1]),S=L(m[1]);else if(m.length===1)b=L(m[0]),_=L(m[0]),w=L(m[0]),S=L(m[0]);else throw new RangeError(`${t(this)} ${m.length} is not a valid size for radii sequence.`);const C=[b,_,w,S],A=C.find(({x:M,y:F})=>M<0||F<0);if((A==null?void 0:A.x)<0?A.x:A==null||A.y,C.some(({x:M,y:F})=>!Number.isFinite(M)||!Number.isFinite(F)))return;if(A)throw new RangeError(`${t(this)} Radius value ${A} is negative.`);P(C),f<0&&p<0?(this.moveTo(u-b.x,h),this.ellipse(u+f+_.x,h-_.y,_.x,_.y,0,-Math.PI*1.5,-Math.PI),this.ellipse(u+f+w.x,h+p+w.y,w.x,w.y,0,-Math.PI,-Math.PI/2),this.ellipse(u-S.x,h+p+S.y,S.x,S.y,0,-Math.PI/2,0),this.ellipse(u-b.x,h-b.y,b.x,b.y,0,0,-Math.PI/2)):f<0?(this.moveTo(u-b.x,h),this.ellipse(u+f+_.x,h+_.y,_.x,_.y,0,-Math.PI/2,-Math.PI,1),this.ellipse(u+f+w.x,h+p-w.y,w.x,w.y,0,-Math.PI,-Math.PI*1.5,1),this.ellipse(u-S.x,h+p-S.y,S.x,S.y,0,Math.PI/2,0,1),this.ellipse(u-b.x,h+b.y,b.x,b.y,0,0,-Math.PI/2,1)):p<0?(this.moveTo(u+b.x,h),this.ellipse(u+f-_.x,h-_.y,_.x,_.y,0,Math.PI/2,0,1),this.ellipse(u+f-w.x,h+p+w.y,w.x,w.y,0,0,-Math.PI/2,1),this.ellipse(u+S.x,h+p+S.y,S.x,S.y,0,-Math.PI/2,-Math.PI,1),this.ellipse(u+b.x,h-b.y,b.x,b.y,0,-Math.PI,-Math.PI*1.5,1)):(this.moveTo(u+b.x,h),this.ellipse(u+f-_.x,h+_.y,_.x,_.y,0,-Math.PI/2,0),this.ellipse(u+f-w.x,h+p-w.y,w.x,w.y,0,0,Math.PI/2),this.ellipse(u+S.x,h+p-S.y,S.x,S.y,0,Math.PI/2,Math.PI),this.ellipse(u+b.x,h+b.y,b.x,b.y,0,Math.PI,Math.PI*1.5)),this.closePath(),this.moveTo(u,h);function k(M){const{x:F,y:U,z:$,w:G}=M;return{x:F,y:U,z:$,w:G}}function I(M){const F=typeof M;return F==="undefined"||M===null?[0]:F==="function"?[NaN]:F==="object"?typeof M[Symbol.iterator]=="function"?[...M].map(U=>{const $=typeof U;return $==="undefined"||U===null?0:$==="function"?NaN:$==="object"?k(U):N(U)}):[k(M)]:[N(M)]}function N(M){return+M}function L(M){const F=N(M);return Number.isFinite(F)?{x:F,y:F}:Object(M)===M?{x:N(M.x??0),y:N(M.y??0)}:{x:NaN,y:NaN}}function P(M){const[F,U,$,G]=M,B=[Math.abs(f)/(F.x+U.x),Math.abs(p)/(U.y+$.y),Math.abs(f)/($.x+G.x),Math.abs(p)/(F.y+G.y)],Z=Math.min(...B);if(Z<=1)for(const z of M)z.x*=Z,z.y*=Z}}function t(u){return`Failed to execute 'roundRect' on '${r(u)}':`}function r(u){return Object(u)===u&&u instanceof Path2D?"Path2D":u instanceof(globalThis==null?void 0:globalThis.CanvasRenderingContext2D)?"CanvasRenderingContext2D":u instanceof(globalThis==null?void 0:globalThis.OffscreenCanvasRenderingContext2D)?"OffscreenCanvasRenderingContext2D":(u==null?void 0:u.constructor.name)||u}})();const sCa=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var na={image:new Map,background:new Map,resource:new Map,defaultStyle:new Map,baseStyle:new Map,computedStyle:new WeakMap,font:new Set,session:{styleMap:new Map,styleCache:new WeakMap,nodeMap:new Map}};function eoa(e="soft"){switch(na.session.__counterEpoch=(na.session.__counterEpoch||0)+1,e){case"auto":{na.session.styleMap=new Map,na.session.nodeMap=new Map;return}case"soft":{na.session.styleMap=new Map,na.session.nodeMap=new Map,na.session.styleCache=new WeakMap;return}case"full":return;case"disabled":{na.session.styleMap=new Map,na.session.nodeMap=new Map,na.session.styleCache=new WeakMap,na.computedStyle=new WeakMap,na.baseStyle=new Map,na.defaultStyle=new Map,na.image=new Map,na.background=new Map,na.resource=new Map,na.font=new Set;return}default:{na.session.styleMap=new Map,na.session.nodeMap=new Map,na.session.styleCache=new WeakMap;return}}}function Rbt(e){let t=e.match(/url\((['"]?)(.*?)(\1)\)/);if(!t)return null;let r=t[2].trim();return r.startsWith("#")?null:r}function toa(e){if(!e||e==="none")return"";let t=e.replace(/translate[XY]?\([^)]*\)/g,"");return t=t.replace(/matrix\(([^)]+)\)/g,(r,a)=>{let s=a.split(",").map(o=>o.trim());return s.length!==6?`matrix(${a})`:(s[4]="0",s[5]="0",`matrix(${s.join(", ")})`)}),t=t.replace(/matrix3d\(([^)]+)\)/g,(r,a)=>{let s=a.split(",").map(o=>o.trim());return s.length!==16?`matrix3d(${a})`:(s[12]="0",s[13]="0",`matrix3d(${s.join(", ")})`)}),t.trim().replace(/\s{2,}/g," ")}function QTe(e){if(/%[0-9A-Fa-f]{2}/.test(e))return e;try{return encodeURI(e)}catch{return e}}function noa(e="[snapDOM]",{ttlMs:t=5*6e4,maxEntries:r=12}={}){let a=new Map,s=0;function o(u,h,f){if(s>=r)return;let p=Date.now();(a.get(h)||0)>p||(a.set(h,p+t),s++,u==="warn"&&console&&console.warn?console.warn(`${e} ${f}`):console&&console.error&&console.error(`${e} ${f}`))}return{warnOnce(u,h){o("warn",u,h)},errorOnce(u,h){o("error",u,h)},reset(){a.clear(),s=0}}}var _5n=noa("[snapDOM]",{ttlMs:3*6e4,maxEntries:10}),mat=new Map,_Ee=new Map;function roa(e){return/^data:|^blob:|^about:blank$/i.test(e)}function ioa(e,t){try{let r=typeof location<"u"&&location.href?location.href:"http://localhost/",a=t.includes("{url}")?t.split("{url}")[0]:t,s=new URL(a||".",r),o=new URL(e,r);if(o.origin===s.origin)return!0;let u=o.searchParams;if(u&&(u.has("url")||u.has("target")))return!0}catch{}return!1}function aoa(e,t){if(!t||roa(e)||ioa(e,t))return!1;try{let r=typeof location<"u"&&location.href?location.href:"http://localhost/",a=new URL(e,r);return typeof location<"u"?a.origin!==location.origin:!0}catch{return!!t}}function soa(e,t){if(!t)return e;if(t.includes("{url}"))return t.replace("{urlRaw}",QTe(e)).replace("{url}",encodeURIComponent(e));if(/[?&]url=?$/.test(t))return`${t}${encodeURIComponent(e)}`;if(t.endsWith("?"))return`${t}url=${encodeURIComponent(e)}`;if(t.endsWith("/"))return`${t}${QTe(e)}`;let r=t.includes("?")?"&":"?";return`${t}${r}url=${encodeURIComponent(e)}`}function w5n(e){return new Promise((t,r)=>{let a=new FileReader;a.onload=()=>t(String(a.result||"")),a.onerror=()=>r(new Error("read_failed")),a.readAsDataURL(e)})}function ooa(e,t){return[t.as||"blob",t.timeout??3e3,t.useProxy||"",t.errorTTL??8e3,e].join("|")}async function pA(e,t={}){let r=t.as??"blob",a=t.timeout??3e3,s=t.useProxy||"",o=t.errorTTL??8e3,u=t.headers||{},h=!!t.silent;if(/^data:/i.test(e))try{if(r==="text")return{ok:!0,data:String(e),status:200,url:e,fromCache:!1};if(r==="dataURL")return{ok:!0,data:String(e),status:200,url:e,fromCache:!1,mime:String(e).slice(5).split(";")[0]||""};let[,A="",k=""]=String(e).match(/^data:([^,]*),(.*)$/)||[],I=/;base64/i.test(A)?atob(k):decodeURIComponent(k),N=new Uint8Array([...I].map(P=>P.charCodeAt(0))),L=new Blob([N],{type:(A||"").split(";")[0]||""});return{ok:!0,data:L,status:200,url:e,fromCache:!1,mime:L.type||""}}catch{return{ok:!1,data:null,status:0,url:e,fromCache:!1,reason:"special_url_error"}}if(/^blob:/i.test(e))try{let A=await fetch(e);if(!A.ok)return{ok:!1,data:null,status:A.status,url:e,fromCache:!1,reason:"http_error"};let k=await A.blob(),I=k.type||A.headers.get("content-type")||"";return r==="dataURL"?{ok:!0,data:await w5n(k),status:A.status,url:e,fromCache:!1,mime:I}:r==="text"?{ok:!0,data:await k.text(),status:A.status,url:e,fromCache:!1,mime:I}:{ok:!0,data:k,status:A.status,url:e,fromCache:!1,mime:I}}catch{return{ok:!1,data:null,status:0,url:e,fromCache:!1,reason:"network"}}if(/^about:blank$/i.test(e))return r==="dataURL"?{ok:!0,data:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==",status:200,url:e,fromCache:!1,mime:"image/png"}:{ok:!0,data:r==="text"?"":new Blob([]),status:200,url:e,fromCache:!1};let f=ooa(e,{as:r,timeout:a,useProxy:s,errorTTL:o}),p=_Ee.get(f);if(p&&p.until>Date.now())return{...p.result,fromCache:!0};p&&_Ee.delete(f);let m=mat.get(f);if(m)return m;let b=aoa(e,s)?soa(e,s):e,_=t.credentials;if(!_)try{let A=typeof location<"u"&&location.href?location.href:"http://localhost/",k=new URL(e,A);_=typeof location<"u"&&k.origin===location.origin?"include":"omit"}catch{_="omit"}let w=new AbortController,S=setTimeout(()=>w.abort("timeout"),a),C=(async()=>{try{let A=await fetch(b,{signal:w.signal,credentials:_,headers:u});if(!A.ok){let N={ok:!1,data:null,status:A.status,url:b,fromCache:!1,reason:"http_error"};if(o>0&&_Ee.set(f,{until:Date.now()+o,result:N}),!h){let L=`${A.status} ${A.statusText||""}`.trim();_5n.warnOnce(`http:${A.status}:${r}:${new URL(e,(location==null?void 0:location.href)??"http://localhost/").origin}`,`HTTP error ${L} while fetching ${r} ${e}`)}return t.onError&&t.onError(N),N}if(r==="text")return{ok:!0,data:await A.text(),status:A.status,url:b,fromCache:!1};let k=await A.blob(),I=k.type||A.headers.get("content-type")||"";return r==="dataURL"?{ok:!0,data:await w5n(k),status:A.status,url:b,fromCache:!1,mime:I}:{ok:!0,data:k,status:A.status,url:b,fromCache:!1,mime:I}}catch(A){let k=A&&typeof A=="object"&&"name"in A&&A.name==="AbortError"?String(A.message||"").includes("timeout")?"timeout":"abort":"network",I={ok:!1,data:null,status:0,url:b,fromCache:!1,reason:k};if(!/^blob:/i.test(e)&&o>0&&_Ee.set(f,{until:Date.now()+o,result:I}),!h){let N=`${k}:${r}:${new URL(e,(location==null?void 0:location.href)??"http://localhost/").origin}`,L=k==="timeout"?`Timeout after ${a}ms. Consider increasing timeout or using a proxy for ${e}`:k==="abort"?`Request aborted while fetching ${r} ${e}`:`Network/CORS issue while fetching ${r} ${e}. A proxy may be required`;_5n.errorOnce(N,L)}return t.onError&&t.onError(I),I}finally{clearTimeout(S),mat.delete(f)}})();return mat.set(f,C),C}async function JZn(e,t={}){if(/^((repeating-)?(linear|radial|conic)-gradient)\(/i.test(e)||e.trim()==="none")return e;let r=Rbt(e);if(!r)return e;let a=QTe(r);if(na.background.has(a)){let s=na.background.get(a);return s?`url("${s}")`:"none"}try{let s=await pA(a,{as:"dataURL",useProxy:t.useProxy});return s.ok?(na.background.set(a,s.data),`url("${s.data}")`):(na.background.set(a,null),"none")}catch{return na.background.set(a,null),"none"}}var loa=new Set(["meta","script","noscript","title","link","template"]),Ibt=new Set(["meta","link","style","title","noscript","script","template","g","defs","use","marker","mask","clipPath","pattern","path","polygon","polyline","line","circle","ellipse","rect","filter","lineargradient","radialgradient","stop"]);function coa(e){if(e=String(e).toLowerCase(),Ibt.has(e)){let o={};return na.defaultStyle.set(e,o),o}if(na.defaultStyle.has(e))return na.defaultStyle.get(e);let t=document.getElementById("snapdom-sandbox");t||(t=document.createElement("div"),t.id="snapdom-sandbox",t.setAttribute("data-snapdom-sandbox","true"),t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.left="-9999px",t.style.top="-9999px",t.style.width="0px",t.style.height="0px",t.style.overflow="hidden",document.body.appendChild(t));let r=document.createElement(e);r.style.all="initial",t.appendChild(r);let a=getComputedStyle(r),s={};for(let o of a){if(eJn(o))continue;let u=a.getPropertyValue(o);s[o]=u}return t.removeChild(r),na.defaultStyle.set(e,s),s}var uoa=/(?:^|-)(animation|transition)(?:-|$)/i,hoa=/^(--|view-timeline|scroll-timeline|animation-trigger|offset-|position-try|app-region|interactivity|overlay|view-transition|-webkit-locale|-webkit-user-(?:drag|modify)|-webkit-tap-highlight-color|-webkit-text-security)$/i,doa=new Set(["cursor","pointer-events","touch-action","user-select","print-color-adjust","speak","reading-flow","reading-order","anchor-name","anchor-scope","container-name","container-type","timeline-scope"]);function eJn(e){let t=String(e).toLowerCase();return!!(doa.has(t)||hoa.test(t)||uoa.test(t))}function tht(e,t){if(t=String(t||"").toLowerCase(),Ibt.has(t))return"";let r=[],a=coa(t);for(let[s,o]of Object.entries(e)){if(eJn(s))continue;let u=a[s];o&&o!==u&&r.push(`${s}:${o}`)}return r.sort(),r.join(";")}function foa(e){let t=new Set;return e.nodeType!==Node.ELEMENT_NODE&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?[]:(e.tagName&&t.add(e.tagName.toLowerCase()),typeof e.querySelectorAll=="function"&&e.querySelectorAll("*").forEach(r=>t.add(r.tagName.toLowerCase())),Array.from(t))}function poa(e){let t=new Map;for(let a of e){let s=na.defaultStyle.get(a);if(!s)continue;let o=Object.entries(s).map(([u,h])=>`${u}:${h};`).sort().join("");o&&(t.has(o)||t.set(o,[]),t.get(o).push(a))}let r="";for(let[a,s]of t.entries())r+=`${s.join(",")} { ${a} } `;return r}function goa(e){let t=Array.from(new Set(e.values())).filter(Boolean).sort(),r=new Map,a=1;for(let s of t)r.set(s,`c${a++}`);return r}function tJn(e,t=null){if(!(e instanceof Element))return window.getComputedStyle(e,t);let r=na.computedStyle.get(e);if(r||(r=new Map,na.computedStyle.set(e,r)),!r.has(t)){let a=window.getComputedStyle(e,t);r.set(t,a)}return r.get(t)}function E5n(e){let t={};for(let r of e)t[r]=e.getPropertyValue(r);return t}function nJn(e){let t=[],r=0,a=0;for(let s=0;su&&u.textContent&&u.textContent.trim());if(a.length===0)return 0;let s=t instanceof Element?Array.from(t.querySelectorAll(r)).filter(u=>u&&u.textContent&&u.textContent.trim()):[],o=0;for(let u=0;ua.endsWith(o)))return!0;let s=(r.pathname+r.search).toLowerCase();if(/\bfont(s)?\b/.test(s)||/\.woff2?(\b|$)/.test(s))return!0;for(let o of t){let u=o.toLowerCase().replace(/\s+/g,"+"),h=o.toLowerCase().replace(/\s+/g,"-");if(s.includes(u)||s.includes(h))return!0}return!1}catch{return!1}}function Ooa(e){var r;let t=new Set;for(let a of e||[]){let s=(r=String(a).split("__")[0])==null?void 0:r.trim();s&&t.add(s)}return t}function S5n(e,t){return e&&e.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/g,(r,a,s)=>{let o=(s||"").trim();if(!o||/^data:|^blob:|^https?:|^file:|^about:/i.test(o))return r;let u=o;try{u=new URL(o,t||location.href).href}catch{}return`url("${u}")`})}var rht=/@import\s+(?:url\(\s*(['"]?)([^)"']+)\1\s*\)|(['"])([^"']+)\3)([^;]*);/g,ZTe=4;async function Loa(e,t,r){if(!e)return e;let a=new Set;function s(h,f){try{return new URL(h,f||location.href).href}catch{return h}}async function o(h,f,p=0){if(p>ZTe)return console.warn(`[snapDOM] @import depth exceeded (${ZTe}) at ${f}`),h;let m="",b=0,_;for(;_=rht.exec(h);){m+=h.slice(b,_.index),b=rht.lastIndex;let w=(_[2]||_[4]||"").trim(),S=s(w,f);if(a.has(S)){console.warn(`[snapDOM] Skipping circular @import: ${S}`);continue}a.add(S);let C="";try{let A=await pA(S,{as:"text",useProxy:r,silent:!0});A.ok&&typeof A.data=="string"&&(C=A.data)}catch{}C?(C=S5n(C,S),C=await o(C,S,p+1),m+=` /* inlined: ${S} */ ${C} `):m+=_[0]}return m+=h.slice(b),m}let u=S5n(e,t||location.href);return u=await o(u,t||location.href,0),u}var rJn=/url\((["']?)([^"')]+)\1\)/g,Doa=/@font-face[^{}]*\{[^}]*\}/g;function iJn(e){if(!e)return[];let t=[],r=e.split(",").map(a=>a.trim()).filter(Boolean);for(let a of r){let s=a.match(/^U\+([0-9A-Fa-f?]+)(?:-([0-9A-Fa-f?]+))?$/);if(!s)continue;let o=s[1],u=s[2],h=f=>{if(!f.includes("?"))return parseInt(f,16);let p=parseInt(f.replace(/\?/g,"0"),16),m=parseInt(f.replace(/\?/g,"F"),16);return[p,m]};if(u){let f=h(o),p=h(u),m=Array.isArray(f)?f[0]:f,b=Array.isArray(p)?p[1]:p;t.push([Math.min(m,b),Math.max(m,b)])}else{let f=h(o);Array.isArray(f)?t.push([f[0],f[1]]):t.push([f,f])}}return t}function aJn(e,t){if(!t.length||!e||e.size===0)return!0;for(let r of e)for(let[a,s]of t)if(r>=a&&r<=s)return!0;return!1}function Nbt(e,t){let r=[];if(!e)return r;for(let a of e.matchAll(rJn)){let s=(a[2]||"").trim();if(!(!s||s.startsWith("data:"))){if(!/^https?:/i.test(s))try{s=new URL(s,t||location.href).href}catch{}r.push(s)}}return r}async function sJn(e,t,r=""){var s,o,u,h,f;let a=e;for(let p of e.matchAll(rJn)){let m=Rbt(p[0]);if(!m)continue;let b=m;if(!b.startsWith("http")&&!b.startsWith("data:"))try{b=new URL(b,t||location.href).href}catch{}if(!y7(b)){if((s=na.resource)!=null&&s.has(b)){(o=na.font)==null||o.add(b),a=a.replace(p[0],`url(${na.resource.get(b)})`);continue}if(!((u=na.font)!=null&&u.has(b)))try{let _=await pA(b,{as:"dataURL",useProxy:r,silent:!0});if(_.ok&&typeof _.data=="string"){let w=_.data;(h=na.resource)==null||h.set(b,w),(f=na.font)==null||f.add(b),a=a.replace(p[0],`url(${w})`)}}catch{console.warn("[snapDOM] Failed to fetch font resource:",b)}}}return a}function Moa(e){if(!e.length)return null;let t=(u,h)=>e.some(([f,p])=>!(ph)),r=t(0,255)||t(305,305),a=t(256,591)||t(7680,7935),s=t(880,1023),o=t(1024,1279);return t(7840,7929)||t(258,259)||t(416,417)||t(431,432)?"vietnamese":o?"cyrillic":s?"greek":a?"latin-ext":r?"latin":null}function T5n(e={}){let t=new Set((e.families||[]).map(s=>String(s).toLowerCase())),r=new Set((e.domains||[]).map(s=>String(s).toLowerCase())),a=new Set((e.subsets||[]).map(s=>String(s).toLowerCase()));return(s,o)=>{if(t.size&&t.has(s.family.toLowerCase()))return!0;if(r.size)for(let u of s.srcUrls)try{if(r.has(new URL(u).host.toLowerCase()))return!0}catch{}if(a.size){let u=Moa(o);if(u&&a.has(u))return!0}return!1}}function Poa(e){var o,u,h,f,p,m;if(!e)return e;let t=/@font-face[^{}]*\{[^}]*\}/gi,r=new Set,a=[];for(let b of e.match(t)||[]){let _=((o=b.match(/font-family:\s*([^;]+);/i))==null?void 0:o[1])||"",w=h6e(_),S=(((u=b.match(/font-weight:\s*([^;]+);/i))==null?void 0:u[1])||"400").trim(),C=(((h=b.match(/font-style:\s*([^;]+);/i))==null?void 0:h[1])||"normal").trim(),A=(((f=b.match(/font-stretch:\s*([^;]+);/i))==null?void 0:f[1])||"100%").trim(),k=(((p=b.match(/unicode-range:\s*([^;]+);/i))==null?void 0:p[1])||"").trim(),I=(((m=b.match(/src\s*:\s*([^;}]+)[;}]/i))==null?void 0:m[1])||"").trim(),N=Nbt(I,location.href),L=N.length?N.map(M=>String(M).toLowerCase()).sort().join("|"):I.toLowerCase(),P=[String(w||"").toLowerCase(),S,C,A,k.toLowerCase(),L].join("|");r.has(P)||(r.add(P),a.push(b))}if(a.length===0)return e;let s=0;return e.replace(t,()=>a[s++]||"")}function Boa(e,t,r,a){let s=Array.from(e||[]).sort().join("|"),o=t?JSON.stringify({families:(t.families||[]).map(h=>String(h).toLowerCase()).sort(),domains:(t.domains||[]).map(h=>String(h).toLowerCase()).sort(),subsets:(t.subsets||[]).map(h=>String(h).toLowerCase()).sort()}):"",u=(r||[]).map(h=>`${(h.family||"").toLowerCase()}::${h.weight||"normal"}::${h.style||"normal"}::${h.src||""}`).sort().join("|");return`fonts-embed-css::req=${s}::ex=${o}::lf=${u}::px=${a||""}`}async function oJn(e,t,r,a){let s;try{s=e.cssRules||[]}catch{return}let o=(u,h)=>{try{return new URL(u,h||location.href).href}catch{return u}};for(let u of s){if(u.type===CSSRule.IMPORT_RULE&&u.styleSheet){let h=u.href?o(u.href,t):t;if(a.depth>=ZTe){console.warn(`[snapDOM] CSSOM import depth exceeded (${ZTe}) at ${h}`);continue}if(h&&a.visitedSheets.has(h)){console.warn(`[snapDOM] Skipping circular CSSOM import: ${h}`);continue}h&&a.visitedSheets.add(h);let f={...a,depth:(a.depth||0)+1};await oJn(u.styleSheet,h,r,f);continue}if(u.type===CSSRule.FONT_FACE_RULE){let h=(u.style.getPropertyValue("font-family")||"").trim(),f=h6e(h);if(!f||y7(f))continue;let p=(u.style.getPropertyValue("font-weight")||"400").trim(),m=(u.style.getPropertyValue("font-style")||"normal").trim(),b=(u.style.getPropertyValue("font-stretch")||"100%").trim(),_=(u.style.getPropertyValue("src")||"").trim(),w=(u.style.getPropertyValue("unicode-range")||"").trim();if(!a.faceMatchesRequired(f,m,p,b))continue;let S=iJn(w);if(!aJn(a.usedCodepoints,S))continue;let C={family:f,weightSpec:p,styleSpec:m,stretchSpec:b,unicodeRange:w,srcRaw:_,srcUrls:Nbt(_,t||location.href),href:t||location.href};if(a.simpleExcluder&&a.simpleExcluder(C,S))continue;if(/url\(/i.test(_)){let A=await sJn(_,t||location.href,a.useProxy);await r(`@font-face{font-family:${f};src:${A};font-style:${m};font-weight:${p};font-stretch:${b};${w?`unicode-range:${w};`:""}}`)}else await r(`@font-face{font-family:${f};src:${_};font-style:${m};font-weight:${p};font-stretch:${b};${w?`unicode-range:${w};`:""}}`)}}}async function Foa({required:e,usedCodepoints:t,exclude:r=void 0,localFonts:a=[],useProxy:s=""}={}){var C,A,k,I,N,L,P,M,F,U,$,G,B,Z,z,Y,W,Q;e instanceof Set||(e=new Set),t instanceof Set||(t=new Set);let o=new Map;for(let V of e){let[j,ee,te,ne]=String(V).split("__");if(!j)continue;let se=o.get(j)||[];se.push({w:parseInt(ee,10),s:te,st:parseInt(ne,10)}),o.set(j,se)}function u(V,j,ee,te){if(!o.has(V))return!1;let ne=o.get(V),se=koa(ee),ie=Roa(j),ge=Ioa(te),ce=se.min!==se.max,be=se.min,ve=ye=>ie.kind==="normal"&&ye==="normal"||ie.kind!=="normal"&&(ye==="italic"||ye==="oblique"),De=!1;for(let ye of ne){let Ee=ce?ye.w>=se.min&&ye.w<=se.max:ye.w===be,he=ve(iSe(ye.s)),we=ye.st>=ge.min&&ye.st<=ge.max;if(Ee&&he&&we){De=!0;break}}if(De)return!0;if(!ce)for(let ye of ne){let Ee=ve(iSe(ye.s)),he=ye.st>=ge.min&&ye.st<=ge.max;if(Math.abs(be-ye.w)<=300&&Ee&&he)return!0}if(!ce&&ie.kind==="normal"&&ne.some(ye=>iSe(ye.s)!=="normal"))for(let ye of ne){let Ee=Math.abs(be-ye.w)<=300,he=ye.st>=ge.min&&ye.st<=ge.max;if(Ee&&he)return!0}return!1}let h=T5n(r),f=Boa(e,r,a,s);if((C=na.resource)!=null&&C.has(f))return na.resource.get(f);let p=Ooa(e),m=[],b=rht;for(let V of document.querySelectorAll("style")){let j=V.textContent||"";for(let ee of j.matchAll(b)){let te=(ee[2]||ee[4]||"").trim();!te||y7(te)||document.querySelector(`link[rel="stylesheet"][href="${te}"]`)||m.push(te)}}m.length&&await Promise.all(m.map(V=>new Promise(j=>{if(document.querySelector(`link[rel="stylesheet"][href="${V}"]`))return j(null);let ee=document.createElement("link");ee.rel="stylesheet",ee.href=V,ee.setAttribute("data-snapdom","injected-import"),ee.onload=()=>j(ee),ee.onerror=()=>j(null),document.head.appendChild(ee)})));let _="",w=Array.from(document.querySelectorAll('link[rel="stylesheet"]')).filter(V=>!!V.href);for(let V of w)try{if(y7(V.href))continue;let j="",ee=!1;try{ee=new URL(V.href,location.href).origin===location.origin}catch{}if(!ee&&!Noa(V.href,p))continue;if(ee){let ne=Array.from(document.styleSheets).find(se=>se.href===V.href);if(ne)try{let se=ne.cssRules||[];j=Array.from(se).map(ie=>ie.cssText).join("")}catch{}}if(!j&&(j=(await pA(V.href,{as:"text",useProxy:s})).data,y7(V.href)))continue;j=await Loa(j,V.href,s);let te="";for(let ne of j.match(Doa)||[]){let se=(((A=ne.match(/font-family:\s*([^;]+);/i))==null?void 0:A[1])||"").trim(),ie=h6e(se);if(!ie||y7(ie))continue;let ge=(((k=ne.match(/font-weight:\s*([^;]+);/i))==null?void 0:k[1])||"400").trim(),ce=(((I=ne.match(/font-style:\s*([^;]+);/i))==null?void 0:I[1])||"normal").trim(),be=(((N=ne.match(/font-stretch:\s*([^;]+);/i))==null?void 0:N[1])||"100%").trim(),ve=(((L=ne.match(/unicode-range:\s*([^;]+);/i))==null?void 0:L[1])||"").trim(),De=(((P=ne.match(/src\s*:\s*([^;}]+)[;}]/i))==null?void 0:P[1])||"").trim(),ye=Nbt(De,V.href);if(!u(ie,ce,ge,be))continue;let Ee=iJn(ve);if(!aJn(t,Ee))continue;let he={family:ie,weightSpec:ge,styleSpec:ce,stretchSpec:be,unicodeRange:ve,srcRaw:De,srcUrls:ye,href:V.href};if(r&&h(he,Ee))continue;let we=/url\(/i.test(De)?await sJn(ne,V.href,s):ne;te+=we}te.trim()&&(_+=te)}catch{console.warn("[snapDOM] Failed to process stylesheet:",V.href)}let S={requiredIndex:o,usedCodepoints:t,faceMatchesRequired:u,simpleExcluder:r?T5n(r):null,useProxy:s,visitedSheets:new Set,depth:0};for(let V of document.styleSheets)if(!(V.href&&w.some(j=>j.href===V.href)))try{let j=V.href||location.href;j&&S.visitedSheets.add(j),await oJn(V,j,async ee=>{_+=ee},S)}catch{}try{for(let V of document.fonts||[]){if(!V||!V.family||V.status!=="loaded"||!V._snapdomSrc)continue;let j=String(V.family).replace(/^['"]+|['"]+$/g,"");if(y7(j)||!o.has(j)||r!=null&&r.families&&r.families.some(te=>String(te).toLowerCase()===j.toLowerCase()))continue;let ee=V._snapdomSrc;if(!String(ee).startsWith("data:")){if((M=na.resource)!=null&&M.has(V._snapdomSrc))ee=na.resource.get(V._snapdomSrc),(F=na.font)==null||F.add(V._snapdomSrc);else if(!((U=na.font)!=null&&U.has(V._snapdomSrc)))try{let te=await pA(V._snapdomSrc,{as:"dataURL",useProxy:s,silent:!0});if(te.ok&&typeof te.data=="string")ee=te.data,($=na.resource)==null||$.set(V._snapdomSrc,ee),(G=na.font)==null||G.add(V._snapdomSrc);else continue}catch{console.warn("[snapDOM] Failed to fetch dynamic font src:",V._snapdomSrc);continue}}_+=`@font-face{font-family:'${j}';src:url(${ee});font-style:${V.style||"normal"};font-weight:${V.weight||"normal"};}`}}catch{}for(let V of a){if(!V||typeof V!="object")continue;let j=String(V.family||"").replace(/^['"]+|['"]+$/g,"");if(!j||y7(j)||!o.has(j)||r!=null&&r.families&&r.families.some(ge=>String(ge).toLowerCase()===j.toLowerCase()))continue;let ee=V.weight!=null?String(V.weight):"normal",te=V.style!=null?String(V.style):"normal",ne=V.stretchPct!=null?`${V.stretchPct}%`:"100%",se=String(V.src||""),ie=se;if(!ie.startsWith("data:")){if((B=na.resource)!=null&&B.has(se))ie=na.resource.get(se),(Z=na.font)==null||Z.add(se);else if(!((z=na.font)!=null&&z.has(se)))try{let ge=await pA(se,{as:"dataURL",useProxy:s,silent:!0});if(ge.ok&&typeof ge.data=="string")ie=ge.data,(Y=na.resource)==null||Y.set(se,ie),(W=na.font)==null||W.add(se);else continue}catch{console.warn("[snapDOM] Failed to fetch localFonts src:",se);continue}}_+=`@font-face{font-family:'${j}';src:url(${ie});font-style:${te};font-weight:${ee};font-stretch:${ne};}`}return _&&(_=Poa(_),(Q=na.resource)==null||Q.set(f,_)),_}function $oa(e){let t=new Set;if(!e)return t;let r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null),a=u=>{let h=h6e(u.fontFamily);if(!h)return;let f=(p,m,b)=>`${h}__${rSe(p)}__${iSe(m)}__${Aoa(b)}`;t.add(f(u.fontWeight,u.fontStyle,u.fontStretch))};a(getComputedStyle(e));let s=getComputedStyle(e,"::before");s&&s.content&&s.content!=="none"&&a(s);let o=getComputedStyle(e,"::after");for(o&&o.content&&o.content!=="none"&&a(o);r.nextNode();){let u=r.currentNode,h=getComputedStyle(u);a(h);let f=getComputedStyle(u,"::before");f&&f.content&&f.content!=="none"&&a(f);let p=getComputedStyle(u,"::after");p&&p.content&&p.content!=="none"&&a(p)}return t}function Uoa(e){var s;let t=new Set,r=o=>{if(o)for(let u of o)t.add(u.codePointAt(0))},a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null);for(;a.nextNode();){let o=a.currentNode;if(o.nodeType===Node.TEXT_NODE)r(o.nodeValue||"");else if(o.nodeType===Node.ELEMENT_NODE){let u=o;for(let h of["::before","::after"]){let f=(s=getComputedStyle(u,h))==null?void 0:s.getPropertyValue("content");if(!(!f||f==="none"))if(/^"/.test(f)||/^'/.test(f))r(f.slice(1,-1));else{let p=f.match(/\\[0-9A-Fa-f]{1,6}/g);if(p)for(let m of p)try{t.add(parseInt(m.slice(1),16))}catch{}}}}}return t}async function zoa(e,t=2){try{await document.fonts.ready}catch{}let r=Array.from(e||[]).filter(Boolean);if(r.length===0)return;let a=()=>{let s=document.createElement("div");s.style.cssText="position:absolute!important;left:-9999px!important;top:0!important;opacity:0!important;pointer-events:none!important;contain:layout size style;";for(let o of r){let u=document.createElement("span");u.textContent="AaBbGg1234ÁÉÍÓÚçñ—∞",u.style.fontFamily=`"${o}"`,u.style.fontWeight="700",u.style.fontStyle="italic",u.style.fontSize="32px",u.style.lineHeight="1",u.style.whiteSpace="nowrap",u.style.margin="0",u.style.padding="0",s.appendChild(u)}document.body.appendChild(s),s.offsetWidth,document.body.removeChild(s)};for(let s=0;srequestAnimationFrame(()=>requestAnimationFrame(o)))}async function Goa(e,t,r,a={}){let s=[[e,t]],o=["background-image","mask","mask-image","-webkit-mask","-webkit-mask-image","mask-source","mask-box-image-source","mask-border-source","-webkit-mask-box-image-source","border-image","border-image-source"],u=["mask-position","mask-size","mask-repeat","-webkit-mask-position","-webkit-mask-size","-webkit-mask-repeat","mask-origin","mask-clip","-webkit-mask-origin","-webkit-mask-clip","-webkit-mask-position-x","-webkit-mask-position-y"],h=["background-position","background-position-x","background-position-y","background-size","background-repeat","background-origin","background-clip","background-attachment","background-blend-mode"],f=["border-image-slice","border-image-width","border-image-outset","border-image-repeat"];for(;s.length;){let[p,m]=s.shift(),b=r.get(p)||tJn(p);r.has(p)||r.set(p,b);let _=(()=>{let C=b.getPropertyValue("border-image"),A=b.getPropertyValue("border-image-source");return C&&C!=="none"||A&&A!=="none"})();for(let C of h){let A=b.getPropertyValue(C);A&&m.style.setProperty(C,A)}for(let C of o){let A=b.getPropertyValue(C);if(!A||A==="none")continue;let k=nJn(A),I=await Promise.all(k.map(N=>JZn(N,a)));I.some(N=>N&&N!=="none"&&!/^url\(undefined/.test(N))&&m.style.setProperty(C,I.join(", "))}for(let C of u){let A=b.getPropertyValue(C);!A||A==="initial"||m.style.setProperty(C,A)}if(_)for(let C of f){let A=b.getPropertyValue(C);!A||A==="initial"||m.style.setProperty(C,A)}let w=Array.from(p.children),S=Array.from(m.children).filter(C=>!(C.dataset&&C.dataset.snapdomPseudo));for(let C=0;C"u")return!1;let e=navigator.userAgent||"",t=e.toLowerCase(),r=t.includes("safari")&&!t.includes("chrome")&&!t.includes("crios")&&!t.includes("fxios")&&!t.includes("android"),a=/applewebkit/i.test(e),s=/mobile/i.test(e),o=!/safari/i.test(e),u=a&&s&&o,h=/(micromessenger|wxwork|wecom|windowswechat|macwechat)/i.test(e),f=/(baiduboxapp|baidubrowser|baidusearch|baiduboxlite)/i.test(t),p=/ipad|iphone|ipod/.test(t)&&a;return r||u||h||f||p}var mle=[];function lJn(e){if(!e)return null;if(Array.isArray(e)){let[t,r]=e;return typeof t=="function"?t(r):t}if(typeof e=="object"&&"plugin"in e){let{plugin:t,options:r}=e;return typeof t=="function"?t(r):t}return typeof e=="function"?e():e}function qoa(...e){let t=e.flat();for(let r of t){let a=lJn(r);a&&(mle.some(s=>s&&s.name&&a.name&&s.name===a.name)||mle.push(a))}}function cJn(e){return(e&&Array.isArray(e.plugins)?e.plugins:mle)||mle}async function iO(e,t,r){let a=r,s=cJn(t);for(let o of s){let u=o&&typeof o[e]=="function"?o[e]:null;if(!u)continue;let h=await u(t,a);typeof h<"u"&&(a=h)}return a}async function Hoa(e,t,r){let a=[],s=cJn(t);for(let o of s){let u=o&&typeof o[e]=="function"?o[e]:null;if(!u)continue;let h=await u(t,r);typeof h<"u"&&a.push(h)}return a}function Voa(e){let t=[];if(Array.isArray(e))for(let r of e){let a=lJn(r);if(!a||!a.name)continue;let s=t.findIndex(o=>o&&o.name===a.name);s>=0&&t.splice(s,1),t.push(a)}for(let r of mle)r&&r.name&&!t.some(a=>a.name===r.name)&&t.push(r);return Object.freeze(t)}function Yoa(e,t,r=!1){return!e||e.plugins&&!r||(e.plugins=Voa(t)),e}var C5n=new WeakMap,iht=new Map,aht=0;function Bae(){aht++}var A5n=!1;function joa(e=document.documentElement){var t,r;if(!A5n){A5n=!0;try{new MutationObserver(()=>Bae()).observe(e,{subtree:!0,childList:!0,characterData:!0,attributes:!0})}catch{}try{new MutationObserver(()=>Bae()).observe(document.head,{subtree:!0,childList:!0,characterData:!0,attributes:!0})}catch{}try{let a=document.fonts;a&&((t=a.addEventListener)==null||t.call(a,"loadingdone",Bae),(r=a.ready)==null||r.then(()=>Bae()).catch(()=>{}))}catch{}}}function Woa(e,t={}){let r={},a=e.getPropertyValue("visibility");for(let o=0;or[0]a[0]?1:0).map(([r,a])=>`${r}:${a}`).join(";"),k5n.set(e,t),t)}function Xoa(e,t=null,r={}){let a=C5n.get(e);if(a&&a.epoch===aht)return a.snapshot;let s=t||getComputedStyle(e),o=Woa(s,r);return nla(e,s,o),C5n.set(e,{epoch:aht,snapshot:o}),o}function Qoa(e,t){return e&&e.session&&e.persist?e:e&&(e.styleMap||e.styleCache||e.nodeMap)?{session:e,persist:{snapshotKeyCache:iht,defaultStyle:na.defaultStyle,baseStyle:na.baseStyle,image:na.image,resource:na.resource,background:na.background,font:na.font},options:t||{}}:{session:na.session,persist:{snapshotKeyCache:iht,defaultStyle:na.defaultStyle,baseStyle:na.baseStyle,image:na.image,resource:na.resource,background:na.background,font:na.font},options:e||t||{}}}async function wV(e,t,r,a){var _,w,S;if(e.tagName==="STYLE")return;let s=Qoa(r,a),o=s.options&&s.options.cache||"auto";if(o!=="disabled"&&joa(document.documentElement),o==="disabled"&&!s.session.__bumpedForDisabled&&(Bae(),iht.clear(),s.session.__bumpedForDisabled=!0),Ibt.has((_=e.tagName)==null?void 0:_.toLowerCase())){let C=(w=e.getAttribute)==null?void 0:w.call(e,"style");C&&t.setAttribute("style",C)}let{session:u,persist:h}=s;u.styleCache.has(e)||u.styleCache.set(e,getComputedStyle(e));let f=u.styleCache.get(e),p=Xoa(e,f,s.options),m=Koa(p),b=h.snapshotKeyCache.get(m);if(!b){let C=((S=e.tagName)==null?void 0:S.toLowerCase())||"div";b=tht(p,C),h.snapshotKeyCache.set(m,b)}u.styleMap.set(t,b)}function Zoa(e){return e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof HTMLIFrameElement||e instanceof SVGElement||e instanceof HTMLObjectElement||e instanceof HTMLEmbedElement}function Joa(e){return e.backgroundImage&&e.backgroundImage!=="none"||e.backgroundColor&&e.backgroundColor!=="rgba(0, 0, 0, 0)"&&e.backgroundColor!=="transparent"||(parseFloat(e.borderTopWidth)||0)>0||(parseFloat(e.borderBottomWidth)||0)>0||(parseFloat(e.paddingTop)||0)>0||(parseFloat(e.paddingBottom)||0)>0?!0:(e.overflowBlock||e.overflowY||"visible")!=="visible"}function ela(e){let t=e.parentElement;if(!t)return!1;let r=getComputedStyle(t).display||"";return r.includes("flex")||r.includes("grid")}function tla(e,t){if(e.textContent&&/\S/.test(e.textContent))return!0;let r=e.firstElementChild,a=e.lastElementChild;if(r&&r.tagName==="BR"||a&&a.tagName==="BR")return!0;let s=e.scrollHeight;if(s===0)return!1;let o=parseFloat(t.paddingTop)||0,u=parseFloat(t.paddingBottom)||0;return s>o+u}function nla(e,t,r){if(e instanceof HTMLElement&&e.style&&e.style.height)return;let a=e.tagName&&e.tagName.toLowerCase();if(!a||a!=="div"&&a!=="section"&&a!=="article"&&a!=="main"&&a!=="aside"&&a!=="header"&&a!=="footer"&&a!=="nav"&&a!=="ol"&&a!=="ul"&&a!=="li")return;let s=t.display||"";if(s.includes("flex")||s.includes("grid")||Zoa(e))return;let o=t.position;if(o==="absolute"||o==="fixed"||o==="sticky"||t.transform!=="none"||Joa(t)||ela(e))return;let u=t.overflowX||t.overflow||"visible",h=t.overflowY||t.overflow||"visible";if(u!=="visible"||h!=="visible")return;let f=t.clip;f&&f!=="auto"&&f!=="rect(auto, auto, auto, auto)"||t.visibility==="hidden"||t.opacity==="0"||tla(e,t)&&(delete r.height,delete r["block-size"])}var uJn=["fill","stroke","color","background-color","stop-color"],R5n=new Map;function rla(e,t){let r=t+"::"+e.toLowerCase(),a=R5n.get(r);if(a)return a;let s=document,o=t==="http://www.w3.org/2000/svg"?s.createElementNS(t,e):s.createElement(e),u=s.createElement("div");u.style.cssText="position:absolute;left:-99999px;top:-99999px;contain:strict;display:block;",u.appendChild(o),s.documentElement.appendChild(u);let h=getComputedStyle(o),f={};for(let p of uJn)f[p]=h.getPropertyValue(p)||"";return u.remove(),R5n.set(r,f),f}function ila(e,t){var o,u,h;if(!(e instanceof Element)||!(t instanceof Element))return;let r=(o=e.getAttribute)==null?void 0:o.call(e,"style"),a=!!(r&&r.includes("var("));if(!a&&((u=e.attributes)!=null&&u.length)){let f=e.attributes;for(let p=0;pnew Promise(s=>{function o(){_V(u=>{!(u&&typeof u.timeRemaining=="function")||u.timeRemaining()>0?t(a,s):o()},{fast:r})}o()})))}function ala(e){return e=e.trim(),!e||/:not\(\s*\[data-sd-slotted\]\s*\)\s*$/.test(e)?e:`${e}:not([data-sd-slotted])`}function sla(e,t,r=!0){return e.split(",").map(a=>a.trim()).filter(Boolean).map(a=>{if(a.startsWith(":where(")||a.startsWith("@"))return a;let s=r?ala(a):a;return`:where(${t} ${s})`}).join(", ")}function ola(e,t){return e?(e=e.replace(/:host\(([^)]+)\)/g,(r,a)=>`:where(${t}:is(${a.trim()}))`),e=e.replace(/:host\b/g,`:where(${t})`),e=e.replace(/:host-context\(([^)]+)\)/g,(r,a)=>`:where(:where(${a.trim()}) ${t})`),e=e.replace(/::slotted\(([^)]+)\)/g,(r,a)=>`:where(${t} ${a.trim()})`),e=e.replace(/(^|})(\s*)([^@}{]+){/g,(r,a,s,o)=>{let u=sla(o,t,!0);return`${a}${s}${u}{`}),e):""}function lla(e){return e.shadowScopeSeq=(e.shadowScopeSeq||0)+1,`s${e.shadowScopeSeq}`}function cla(e){let t="";try{e.querySelectorAll("style").forEach(a=>{t+=(a.textContent||"")+` `});let r=e.adoptedStyleSheets||[];for(let a of r)try{if(a&&a.cssRules)for(let s of a.cssRules)t+=s.cssText+` `}catch{}}catch{}return t}function ula(e,t,r){if(!t)return;let a=document.createElement("style");a.setAttribute("data-sd",r),a.textContent=t,e.insertBefore(a,e.firstChild||null)}function hla(e,t){try{let r=e.currentSrc||e.src||"";if(!r)return;t.setAttribute("src",r),t.removeAttribute("srcset"),t.removeAttribute("sizes"),t.loading="eager",t.decoding="sync"}catch{}}function dla(e){let t=new Set;if(!e)return t;let r=/var\(\s*(--[A-Za-z0-9_-]+)\b/g,a;for(;a=r.exec(e);)t.add(a[1]);return t}function fla(e,t){try{let r=getComputedStyle(e).getPropertyValue(t).trim();if(r)return r}catch{}try{let r=getComputedStyle(document.documentElement).getPropertyValue(t).trim();if(r)return r}catch{}return""}function pla(e,t,r){let a=[];for(let s of t){let o=fla(e,s);o&&a.push(`${s}: ${o};`)}return a.length?`${r}{${a.join("")}} `:""}function gla(e){e&&(e.nodeType===Node.ELEMENT_NODE&&e.setAttribute("data-sd-slotted",""),e.querySelectorAll&&e.querySelectorAll("*").forEach(t=>t.setAttribute("data-sd-slotted","")))}async function mla(e,t=3){let r=()=>{var o;try{return e.contentDocument||((o=e.contentWindow)==null?void 0:o.document)||null}catch{return null}},a=r(),s=0;for(;ssetTimeout(o,0)),a=r(),s++;return a&&(a.body||a.documentElement)?a:null}function bla(e){let t=e.getBoundingClientRect(),r=0,a=0,s=0,o=0;try{let f=getComputedStyle(e);r=parseFloat(f.borderLeftWidth)||0,a=parseFloat(f.borderRightWidth)||0,s=parseFloat(f.borderTopWidth)||0,o=parseFloat(f.borderBottomWidth)||0}catch{}let u=Math.max(0,Math.round(t.width-(r+a))),h=Math.max(0,Math.round(t.height-(s+o)));return{contentWidth:u,contentHeight:h,rect:t}}function yla(e,t,r){let a=e.createElement("style");return a.setAttribute("data-sd-iframe-pin",""),a.textContent=`html, body {margin: 0 !important;padding: 0 !important;width: ${t}px !important;height: ${r}px !important;min-width: ${t}px !important;min-height: ${r}px !important;box-sizing: border-box !important;overflow: hidden !important;background-clip: border-box !important;}`,(e.head||e.documentElement).appendChild(a),()=>{try{a.remove()}catch{}}}async function vla(e,t,r){let a=await mla(e,3);if(!a)throw new Error("iframe document not accessible/ready");let{contentWidth:s,contentHeight:o,rect:u}=bla(e),h=r==null?void 0:r.snap;if(!h||typeof h.toPng!="function")throw new Error("snapdom.toPng not available in iframe or window");let f={...r,scale:1},p=yla(a,s,o),m;try{m=await h.toPng(a.documentElement,f)}finally{p()}m.style.display="block",m.style.width=`${s}px`,m.style.height=`${o}px`;let b=document.createElement("div");return t.nodeMap.set(b,e),wV(e,b,t,r),b.style.overflow="hidden",b.style.display="block",b.style.width||(b.style.width=`${Math.round(u.width)}px`),b.style.height||(b.style.height=`${Math.round(u.height)}px`),b.appendChild(m),b}var yie=new Map;async function Fae(e){var r;if((r=na.resource)!=null&&r.has(e))return na.resource.get(e);if(yie.has(e))return yie.get(e);let t=(async()=>{var s;let a=await pA(e,{as:"dataURL",silent:!0});if(!a.ok||typeof a.data!="string")throw new Error(`[snapDOM] Failed to read blob URL: ${e}`);return(s=na.resource)==null||s.set(e,a.data),a.data})();yie.set(e,t);try{let a=await t;return yie.set(e,a),a}catch(a){throw yie.delete(e),a}}var _la=/\bblob:[^)"'\s]+/g;async function I5n(e){if(!e||e.indexOf("blob:")===-1)return e;let t=Array.from(new Set(e.match(_la)||[]));if(t.length===0)return e;let r=e;for(let a of t)try{let s=await Fae(a);r=r.split(a).join(s)}catch{}return r}function wEe(e){return typeof e=="string"&&e.startsWith("blob:")}function wla(e){return(e||"").split(",").map(t=>t.trim()).filter(Boolean).map(t=>{let r=t.match(/^(\S+)(\s+.+)?$/);return r?{url:r[1],desc:r[2]||""}:null}).filter(Boolean)}function Ela(e){return e.map(t=>t.desc?`${t.url} ${t.desc.trim()}`:t.url).join(", ")}async function xla(e){var u,h;if(!e)return;let t=e.querySelectorAll?e.querySelectorAll("img"):[];for(let f of t)try{let p=f.getAttribute("src")||f.currentSrc||"";if(wEe(p)){let b=await Fae(p);f.setAttribute("src",b)}let m=f.getAttribute("srcset");if(m&&m.includes("blob:")){let b=wla(m),_=!1;for(let w of b)if(wEe(w.url))try{w.url=await Fae(w.url),_=!0}catch{}_&&f.setAttribute("srcset",Ela(b))}}catch{}let r=e.querySelectorAll?e.querySelectorAll("image"):[];for(let f of r)try{let p="http://www.w3.org/1999/xlink",m=f.getAttribute("href")||((u=f.getAttributeNS)==null?void 0:u.call(f,p,"href"));if(wEe(m)){let b=await Fae(m);f.setAttribute("href",b),(h=f.removeAttributeNS)==null||h.call(f,p,"href")}}catch{}let a=e.querySelectorAll?e.querySelectorAll("[style*='blob:']"):[];for(let f of a)try{let p=f.getAttribute("style");if(p&&p.includes("blob:")){let m=await I5n(p);f.setAttribute("style",m)}}catch{}let s=e.querySelectorAll?e.querySelectorAll("style"):[];for(let f of s)try{let p=f.textContent||"";p.includes("blob:")&&(f.textContent=await I5n(p))}catch{}let o=["poster"];for(let f of o){let p=e.querySelectorAll?e.querySelectorAll(`[${f}^='blob:']`):[];for(let m of p)try{let b=m.getAttribute(f);wEe(b)&&m.setAttribute(f,await Fae(b))}catch{}}}async function aSe(e,t,r){var p,m,b,_,w,S;if(!e)throw new Error("Invalid node");let a=new Set,s=null,o=null;if(e.nodeType===Node.ELEMENT_NODE){let C=(e.localName||e.tagName||"").toLowerCase();if(e.id==="snapdom-sandbox"||e.hasAttribute("data-snapdom-sandbox")||loa.has(C))return null}if(e.nodeType===Node.TEXT_NODE||e.nodeType!==Node.ELEMENT_NODE)return e.cloneNode(!0);if(e.getAttribute("data-capture")==="exclude"){if(r.excludeMode==="hide"){let C=document.createElement("div"),A=e.getBoundingClientRect();return C.style.cssText=`display:inline-block;width:${A.width}px;height:${A.height}px;visibility:hidden;`,C}else if(r.excludeMode==="remove")return null}if(r.exclude&&Array.isArray(r.exclude))for(let C of r.exclude)try{if((p=e.matches)!=null&&p.call(e,C)){if(r.excludeMode==="hide"){let A=document.createElement("div"),k=e.getBoundingClientRect();return A.style.cssText=`display:inline-block;width:${k.width}px;height:${k.height}px;visibility:hidden;`,A}else if(r.excludeMode==="remove")return null}}catch(A){console.warn(`Invalid selector in exclude option: ${C}`,A)}if(typeof r.filter=="function")try{if(!r.filter(e)){if(r.filterMode==="hide"){let C=document.createElement("div"),A=e.getBoundingClientRect();return C.style.cssText=`display:inline-block;width:${A.width}px;height:${A.height}px;visibility:hidden;`,C}else if(r.filterMode==="remove")return null}}catch(C){console.warn("Error in filter function:",C)}if(e.tagName==="IFRAME"){let C=!1;try{C=!!(e.contentDocument||(m=e.contentWindow)!=null&&m.document)}catch{C=!1}if(C)try{return await vla(e,t,r)}catch(A){console.warn("[SnapDOM] iframe rasterization failed, fallback:",A)}if(r.placeholders){let A=document.createElement("div");return A.style.cssText=`width:${e.offsetWidth}px;height:${e.offsetHeight}px;background-image:repeating-linear-gradient(45deg,#ddd,#ddd 5px,#f9f9f9 5px,#f9f9f9 10px);display:flex;align-items:center;justify-content:center;font-size:12px;color:#555;border:1px solid #aaa;`,wV(e,A,t,r),A}else{let A=e.getBoundingClientRect(),k=document.createElement("div");return k.style.cssText=`display:inline-block;width:${A.width}px;height:${A.height}px;visibility:hidden;`,wV(e,k,t,r),k}}if(e.getAttribute("data-capture")==="placeholder"){let C=e.cloneNode(!1);t.nodeMap.set(C,e),wV(e,C,t,r);let A=document.createElement("div");return A.textContent=e.getAttribute("data-placeholder-text")||"",A.style.cssText="color:#666;font-size:12px;text-align:center;line-height:1.4;padding:0.5em;box-sizing:border-box;",C.appendChild(A),C}if(e.tagName==="CANVAS"){let C="";try{let k=e.getContext("2d",{willReadFrequently:!0});try{k&&k.getImageData(0,0,1,1)}catch{}if(await new Promise(I=>requestAnimationFrame(I)),C=e.toDataURL("image/png"),!C||C==="data:,"){try{k&&k.getImageData(0,0,1,1)}catch{}if(await new Promise(I=>requestAnimationFrame(I)),C=e.toDataURL("image/png"),!C||C==="data:,"){let I=document.createElement("canvas");I.width=e.width,I.height=e.height;let N=I.getContext("2d");N&&(N.drawImage(e,0,0),C=I.toDataURL("image/png"))}}}catch{}let A=document.createElement("img");try{A.decoding="sync",A.loading="eager"}catch{}C&&(A.src=C),A.width=e.width,A.height=e.height;try{let k=getComputedStyle(e);k.width&&(A.style.width=k.width),k.height&&(A.style.height=k.height)}catch{}return t.nodeMap.set(A,e),wV(e,A,t,r),A}let u;try{if(u=e.cloneNode(!1),ila(e,u),t.nodeMap.set(u,e),e.tagName==="IMG"){hla(e,u);try{let C=e.getBoundingClientRect(),A=Math.round(C.width||0),k=Math.round(C.height||0);if(!A||!k){let I=window.getComputedStyle(e),N=parseFloat(I.width)||0,L=parseFloat(I.height)||0,P=parseInt(e.getAttribute("width")||"",10)||0,M=parseInt(e.getAttribute("height")||"",10)||0,F=e.width||e.naturalWidth||0,U=e.height||e.naturalHeight||0;A=Math.round(A||N||P||F||0),k=Math.round(k||L||M||U||0)}A&&(u.dataset.snapdomWidth=String(A)),k&&(u.dataset.snapdomHeight=String(k))}catch{}try{let C=e.getAttribute("style")||"",A=window.getComputedStyle(e),k=M=>{let F=C.match(new RegExp(`${M}\\s*:\\s*([^;]+)`,"i")),U=F?F[1].trim():A.getPropertyValue(M);return/%|auto/i.test(String(U||""))},I=parseInt(u.dataset.snapdomWidth||"0",10),N=parseInt(u.dataset.snapdomHeight||"0",10),L=k("width")||!I,P=k("height")||!N;L&&I&&(u.style.width=`${I}px`),P&&N&&(u.style.height=`${N}px`),I&&(u.style.minWidth=`${I}px`),N&&(u.style.minHeight=`${N}px`)}catch{}}}catch(C){throw console.error("[Snapdom] Failed to clone node:",e,C),C}if(e instanceof HTMLTextAreaElement){let C=e.getBoundingClientRect();u.style.width=`${C.width}px`,u.style.height=`${C.height}px`}if(e instanceof HTMLInputElement&&(u.value=e.value,u.setAttribute("value",e.value),e.checked!==void 0&&(u.checked=e.checked,e.checked&&u.setAttribute("checked",""),e.indeterminate&&(u.indeterminate=e.indeterminate))),e instanceof HTMLSelectElement&&(s=e.value),e instanceof HTMLTextAreaElement&&(o=e.value),wV(e,u,t,r),e.shadowRoot){let C=function(U,$){if(U.nodeType===Node.ELEMENT_NODE&&U.tagName==="STYLE")return $(null);aSe(U,t,r).then(G=>{$(G||null)}).catch(()=>{$(null)})};try{let U=e.shadowRoot.querySelectorAll("slot");for(let $ of U){let G=[];try{G=((b=$.assignedNodes)==null?void 0:b.call($,{flatten:!0}))||((_=$.assignedNodes)==null?void 0:_.call($))||[]}catch{G=((w=$.assignedNodes)==null?void 0:w.call($))||[]}for(let B of G)a.add(B)}}catch{}let A=lla(t),k=`[data-sd="${A}"]`;try{u.setAttribute("data-sd",A)}catch{}let I=cla(e.shadowRoot),N=ola(I,k),L=dla(I),P=pla(e,L,k);ula(u,P+N,A);let M=document.createDocumentFragment(),F=await bat(Array.from(e.shadowRoot.childNodes),C,r.fast);M.append(...F.filter(U=>!!U)),u.appendChild(M)}if(e.tagName==="SLOT"){let C=function(L,P){aSe(L,t,r).then(M=>{M&&gla(M),P(M||null)}).catch(()=>{P(null)})},A=((S=e.assignedNodes)==null?void 0:S.call(e,{flatten:!0}))||[],k=A.length>0?A:Array.from(e.childNodes),I=document.createDocumentFragment(),N=await bat(Array.from(k),C,r.fast);return I.append(...N.filter(L=>!!L)),I}function h(C,A){if(a.has(C))return A(null);aSe(C,t,r).then(k=>{A(k||null)}).catch(()=>{A(null)})}let f=await bat(Array.from(e.childNodes),h,r.fast);if(u.append(...f.filter(C=>!!C)),s!==null&&u instanceof HTMLSelectElement){u.value=s;for(let C of u.options)C.value===s?C.setAttribute("selected",""):C.removeAttribute("selected")}return o!==null&&u instanceof HTMLTextAreaElement&&(u.textContent=o),u}function Sla(e){return/\bcounter\s*\(|\bcounters\s*\(/.test(e||"")}function Tla(e){return(e||"").replace(/"([^"]*)"/g,"$1")}function N5n(e,t=!1){let r="",a=Math.max(1,e);for(;a>0;)a--,r=String.fromCharCode(97+a%26)+r,a=Math.floor(a/26);return t?r.toUpperCase():r}function O5n(e,t=!0){let r=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]],a=Math.max(1,Math.min(3999,e)),s="";for(let[o,u]of r)for(;a>=o;)s+=u,a-=o;return t?s:s.toLowerCase()}function L5n(e,t){switch((t||"decimal").toLowerCase()){case"decimal":return String(Math.max(0,e));case"decimal-leading-zero":return(e<10?"0":"")+String(Math.max(0,e));case"lower-alpha":return N5n(e,!1);case"upper-alpha":return N5n(e,!0);case"lower-roman":return O5n(e,!1);case"upper-roman":return O5n(e,!0);default:return String(Math.max(0,e))}}function Cla(e){let t=()=>{var _;return((_=na==null?void 0:na.session)==null?void 0:_.__counterEpoch)??0},r=t(),a=new WeakMap,s=e instanceof Document?e.documentElement:e,o=_=>_&&_.tagName==="LI",u=_=>{let w=0,S=_==null?void 0:_.parentElement;if(!S)return 0;for(let C of S.children){if(C===_)break;C.tagName==="LI"&&w++}return w},h=_=>{let w=new Map;for(let[S,C]of _)w.set(S,C.slice());return w},f=(_,w,S)=>{var I,N;let C=h(_),A;try{A=((I=S.style)==null?void 0:I.counterReset)||getComputedStyle(S).counterReset}catch{}if(A&&A!=="none")for(let L of A.split(",")){let P=L.trim().split(/\s+/),M=P[0],F=Number.isFinite(Number(P[1]))?Number(P[1]):0;if(!M)continue;let U=w.get(M);if(U&&U.length){let $=U.slice();$.push(F),C.set(M,$)}else C.set(M,[F])}let k;try{k=((N=S.style)==null?void 0:N.counterIncrement)||getComputedStyle(S).counterIncrement}catch{}if(k&&k!=="none")for(let L of k.split(",")){let P=L.trim().split(/\s+/),M=P[0],F=Number.isFinite(Number(P[1]))?Number(P[1]):1;if(!M)continue;let U=C.get(M)||[];U.length===0&&U.push(0),U[U.length-1]+=F,C.set(M,U)}try{if(getComputedStyle(S).display==="list-item"&&o(S)){let L=S.parentElement,P=1;if(L&&L.tagName==="OL"){let F=L.getAttribute("start"),U=Number.isFinite(Number(F))?Number(F):1,$=u(S),G=S.getAttribute("value");P=Number.isFinite(Number(G))?Number(G):U+$}else P=1+u(S);let M=C.get("list-item")||[];M.length===0&&M.push(0),M[M.length-1]=P,C.set("list-item",M)}}catch{}return C},p=(_,w,S)=>{let C=f(S,w,_);a.set(_,C);let A=C;for(let k of _.children)A=p(k,C,A);return C},m=new Map;p(s,m,m);function b(){let _=t();if(_!==r){r=_;let w=new Map;p(s,w,w)}}return{get(_,w){var C;b();let S=(C=a.get(_))==null?void 0:C.get(w);return S&&S.length?S[S.length-1]:0},getStack(_,w){var C;b();let S=(C=a.get(_))==null?void 0:C.get(w);return S?S.slice():[]}}}function Ala(e,t,r){if(!e||e==="none")return e;try{let a=/\b(counter|counters)\s*\(([^)]+)\)/g,s=e.replace(a,(o,u,h)=>{var p,m,b;let f=String(h).split(",").map(_=>_.trim());if(u==="counter"){let _=(p=f[0])==null?void 0:p.replace(/^["']|["']$/g,""),w=(f[1]||"decimal").toLowerCase(),S=r.get(t,_);return L5n(S,w)}else{let _=(m=f[0])==null?void 0:m.replace(/^["']|["']$/g,""),w=((b=f[1])==null?void 0:b.replace(/^["']|["']$/g,""))??"",S=(f[2]||"decimal").toLowerCase(),C=r.getStack(t,_);return C.length?C.map(A=>L5n(A,S)).join(w):""}});return Tla(s)}catch{return"- "}}var sV=new WeakMap,D5n=300;function kla(e,t){let r=hJn(e);return t?(t.__pseudoPreflightFp!==r&&(t.__pseudoPreflight=P5n(e),t.__pseudoPreflightFp=r),!!t.__pseudoPreflight):P5n(e)}function sht(e){try{return e&&e.cssRules?e.cssRules:null}catch{return null}}function hJn(e){let t=e.querySelectorAll('style,link[rel~="stylesheet"]'),r=`n:${t.length}|`,a=0;for(let o=0;o0;h++){let f=o.cssRules[h],p=f&&f.cssText?f.cssText:"";r.budget--;for(let m of t)if(p.includes(m))return!0}if(r.budget<=0)return!1}return!1}function P5n(e=document){let t=hJn(e),r=sV.get(e);if(r&&r.fingerprint===t)return r.result;let a=["::before","::after","::first-letter",":before",":after",":first-letter","counter(","counters(","counter-increment","counter-reset"],s=e.querySelectorAll("style");for(let u=0;u0;f++){let p=u[f],m=null;if(p.tagName,m=p.sheet||null,m&&M5n(m,a,h))return sV.set(e,{fingerprint:t,result:!0}),!0}}return e.querySelector('[style*="counter("], [style*="counters("]')?(sV.set(e,{fingerprint:t,result:!0}),!0):(sV.set(e,{fingerprint:t,result:!1}),!1)}var EV=new WeakMap,B5n=-1;function Rla(e){return(e||"").replace(/"([^"]*)"/g,"$1")}function Ila(e){if(!e)return"";let t=[],r=/"([^"]*)"/g,a;for(;a=r.exec(e);)t.push(a[1]);return t.length?t.join(""):Rla(e)}function oht(e,t){let r=e.parentElement,a=r?EV.get(r):null;return a?{get(s,o){let u=t.get(s,o),h=a.get(o);return typeof h=="number"?Math.max(u,h):u},getStack(s,o){let u=t.getStack(s,o);if(!u.length)return u;let h=a.get(o);if(typeof h=="number"){let f=u.slice();return f[f.length-1]=Math.max(f[f.length-1],h),f}return u}}:t}function lht(e,t,r){let a=new Map;function s(f){let p=[];if(!f||f==="none")return p;for(let m of String(f).split(",")){let b=m.trim().split(/\s+/),_=b[0],w=Number.isFinite(Number(b[1]))?Number(b[1]):void 0;_&&p.push({name:_,num:w})}return p}let o=s(t==null?void 0:t.counterReset),u=s(t==null?void 0:t.counterIncrement);function h(f){if(a.has(f))return a.get(f).slice();let p=r.getStack(e,f);p=p.length?p.slice():[];let m=o.find(_=>_.name===f);if(m){let _=Number.isFinite(m.num)?m.num:0;p=p.length?[...p,_]:[_]}let b=u.find(_=>_.name===f);if(b){let _=Number.isFinite(b.num)?b.num:1;p.length===0&&(p=[0]),p[p.length-1]+=_}return a.set(f,p.slice()),p}return{get(f,p){let m=h(p);return m.length?m[m.length-1]:0},getStack(f,p){return h(p)},__incs:u}}function Nla(e,t,r){let a;try{a=getComputedStyle(e,t)}catch{}let s=a==null?void 0:a.content;if(!s||s==="none"||s==="normal")return{text:"",incs:[]};let o=oht(e,r),u=lht(e,a,o),h=Sla(s)?Ala(s,e,u):s;return{text:Ila(h),incs:u.__incs||[]}}async function dJn(e,t,r,a){var p,m,b;if(!(e instanceof Element)||!(t instanceof Element))return;let s=e.ownerDocument||document;if(!kla(s,r))return;let o=((p=na==null?void 0:na.session)==null?void 0:p.__counterEpoch)??0;if(B5n!==o&&(EV=new WeakMap,r&&(r.__counterCtx=null),B5n=o),!r.__counterCtx)try{r.__counterCtx=Cla(e.ownerDocument||document)}catch{}let u=r.__counterCtx;for(let _ of["::before","::after","::first-letter"])try{let w=tJn(e,_);if(!w||w.content==="none"&&w.backgroundImage==="none"&&w.backgroundColor==="transparent"&&(w.borderStyle==="none"||parseFloat(w.borderWidth)===0)&&(!w.transform||w.transform==="none")&&w.display==="inline")continue;if(_==="::first-letter"){let ne=getComputedStyle(e);if(!(w.color!==ne.color||w.fontSize!==ne.fontSize||w.fontWeight!==ne.fontWeight))continue;let se=Array.from(t.childNodes).find(Ee=>{var he;return Ee.nodeType===Node.TEXT_NODE&&((he=Ee.textContent)==null?void 0:he.trim().length)>0});if(!se)continue;let ie=se.textContent,ge=(m=ie.match(/^([^\p{L}\p{N}\s]*[\p{L}\p{N}](?:['’])?)/u))==null?void 0:m[0],ce=ie.slice((ge==null?void 0:ge.length)||0);if(!ge||/[\uD800-\uDFFF]/.test(ge))continue;let be=document.createElement("span");be.textContent=ge,be.dataset.snapdomPseudo="::first-letter";let ve=E5n(w),De=tht(ve,"span");r.styleMap.set(be,De);let ye=document.createTextNode(ce);t.replaceChild(ye,se),t.insertBefore(be,ye);continue}let S=w.content??"",C=S===""||S==="none"||S==="normal",{text:A,incs:k}=Nla(e,_,u),I=w.backgroundImage,N=w.backgroundColor,L=w.fontFamily,P=parseInt(w.fontSize)||32,M=parseInt(w.fontWeight)||!1,F=w.color||"#000",U=w.borderStyle,$=parseFloat(w.borderWidth),G=w.transform,B=y7(L),Z=!C&&A!=="",z=I&&I!=="none",Y=N&&N!=="transparent"&&N!=="rgba(0, 0, 0, 0)",W=U&&U!=="none"&&$>0,Q=G&&G!=="none";if(!(Z||z||Y||W||Q)){if(k&&k.length&&e.parentElement){let ne=EV.get(e.parentElement)||new Map;for(let{name:se}of k){if(!se)continue;let ie=oht(e,u),ge=lht(e,getComputedStyle(e,_),ie).get(e,se);ne.set(se,ge)}EV.set(e.parentElement,ne)}continue}let V=document.createElement("span");V.dataset.snapdomPseudo=_,V.style.pointerEvents="none";let j=E5n(w),ee=tht(j,"span");if(r.styleMap.set(V,ee),B&&A&&A.length===1){let{dataUrl:ne,width:se,height:ie}=await Toa(A,L,M,P,F),ge=document.createElement("img");ge.src=ne,ge.style=`height:${P}px;width:${se/ie*P}px;object-fit:contain;`,V.appendChild(ge),t.dataset.snapdomHasIcon="true"}else if(A&&A.startsWith("url(")){let ne=Rbt(A);if(ne!=null&&ne.trim())try{let se=document.createElement("img"),ie=await pA(QTe(ne),{as:"dataURL",useProxy:a.useProxy});se.src=ie.data,se.style=`width:${P}px;height:auto;object-fit:contain;`,V.appendChild(se)}catch(se){console.error(`[snapdom] Error in pseudo ${_} for`,e,se)}}else!B&&Z&&(V.textContent=A);V.style.backgroundImage="none","maskImage"in V.style&&(V.style.maskImage="none"),"webkitMaskImage"in V.style&&(V.style.webkitMaskImage="none");try{V.style.backgroundRepeat=w.backgroundRepeat,V.style.backgroundSize=w.backgroundSize,w.backgroundPositionX&&w.backgroundPositionY?(V.style.backgroundPositionX=w.backgroundPositionX,V.style.backgroundPositionY=w.backgroundPositionY):V.style.backgroundPosition=w.backgroundPosition,V.style.backgroundOrigin=w.backgroundOrigin,V.style.backgroundClip=w.backgroundClip,V.style.backgroundAttachment=w.backgroundAttachment,V.style.backgroundBlendMode=w.backgroundBlendMode}catch{}if(z)try{let ne=nJn(I),se=await Promise.all(ne.map(JZn));V.style.backgroundImage=se.join(", ")}catch(ne){console.warn(`[snapdom] Failed to inline background-image for ${_}`,ne)}Y&&(V.style.backgroundColor=N);let te=V.childNodes.length>0||((b=V.textContent)==null?void 0:b.trim())!==""||z||Y||W||Q;if(k&&k.length&&e.parentElement){let ne=EV.get(e.parentElement)||new Map,se=oht(e,u),ie=lht(e,getComputedStyle(e,_),se);for(let{name:ge}of k){if(!ge)continue;let ce=ie.get(e,ge);ne.set(ge,ce)}EV.set(e.parentElement,ne)}if(!te)continue;_==="::before"?t.insertBefore(V,t.firstChild):t.appendChild(V)}catch(w){console.warn(`[snapdom] Failed to capture ${_} for`,e,w)}let h=Array.from(e.children),f=Array.from(t.children).filter(_=>!_.dataset.snapdomPseudo);for(let _=0;_window.CSS&&CSS.escape?CSS.escape(M):M.replace(/[^a-zA-Z0-9_-]/g,"\\$&"),f="http://www.w3.org/1999/xlink",p=M=>{if(!M||!M.getAttribute)return null;let F=M.getAttribute("href")||M.getAttribute("xlink:href")||(typeof M.getAttributeNS=="function"?M.getAttributeNS(f,"href"):null);if(F)return F;let U=M.attributes;if(!U)return null;for(let $=0;$M.id)),b=new Set,_=!1,w=(M,F=null)=>{if(!M)return;o.lastIndex=0;let U;for(;U=o.exec(M);){_=!0;let $=(U[1]||"").trim();$&&(m.has($)||(b.add($),F&&!F.has($)&&F.add($)))}},S=M=>{let F=M.querySelectorAll("use");for(let $ of F){let G=p($);if(!G||!G.startsWith("#"))continue;_=!0;let B=G.slice(1).trim();B&&!m.has(B)&&b.add(B)}let U=M.querySelectorAll('*[style*="url("],*[fill^="url("], *[stroke^="url("],*[filter^="url("],*[clip-path^="url("],*[mask^="url("],*[marker^="url("],*[marker-start^="url("],*[marker-mid^="url("],*[marker-end^="url("]');for(let $ of U){w($.getAttribute("style")||"");for(let G of u)w($.getAttribute(G))}};for(let M of s)S(M);if(!_)return;let C=e.querySelector("svg.inline-defs-container");C||(C=r.createElementNS("http://www.w3.org/2000/svg","svg"),C.classList.add("inline-defs-container"),C.setAttribute("aria-hidden","true"),C.setAttribute("style","position:absolute;width:0;height:0;overflow:hidden"),e.insertBefore(C,e.firstChild||null));let A=C.querySelector("defs")||null,k=M=>{if(!M||m.has(M))return null;let F=h(M),U=$=>{let G=a.querySelector($);return G&&!e.contains(G)?G:null};return U(`svg defs > *#${F}`)||U(`svg > symbol#${F}`)||U(`*#${F}`)};if(!b.size)return;let I=new Set(b),N=new Set;for(;I.size;){let M=I.values().next().value;if(I.delete(M),!M||m.has(M)||N.has(M))continue;let F=k(M);if(!F){N.add(M);continue}A||(A=r.createElementNS("http://www.w3.org/2000/svg","defs"),C.appendChild(A));let U=F.cloneNode(!0);U.id||U.setAttribute("id",M),A.appendChild(U),N.add(M),m.add(M);let $=[U,...U.querySelectorAll("*")];for(let G of $){let B=p(G);if(B&&B.startsWith("#")){let z=B.slice(1).trim();z&&!m.has(z)&&!N.has(z)&&I.add(z)}let Z=((L=G.getAttribute)==null?void 0:L.call(G,"style"))||"";Z&&w(Z,I);for(let z of u){let Y=(P=G.getAttribute)==null?void 0:P.call(G,z);Y&&w(Y,I)}}}}function Lla(e,t){var h;if(!e||!t)return;let r=e.scrollTop||0;if(!r)return;getComputedStyle(t).position==="static"&&(t.style.position="relative");let a=e.getBoundingClientRect(),s=e.clientHeight,o="data-snap-ph",u=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(;u.nextNode();){let f=u.currentNode,p=getComputedStyle(f),m=p.position;if(m!=="sticky"&&m!=="-webkit-sticky")continue;let b=F5n(p.top),_=F5n(p.bottom);if(b==null&&_==null)continue;let w=Dla(f,e),S=Mla(t,w,o);if(!S)continue;let C=f.getBoundingClientRect(),A=C.width,k=C.height,I=C.left-a.left;if(!(A>0&&k>0)||!Number.isFinite(I))continue;let N=b!=null?b+r:r+(s-k-_);if(!Number.isFinite(N))continue;let L=Number.parseInt(p.zIndex,10),P=Number.isFinite(L),M=P?Math.max(L,1)+1:2,F=P?L-1:0,U=S.cloneNode(!1);U.setAttribute(o,"1"),U.style.position="sticky",U.style.left=`${I}px`,U.style.top=`${N}px`,U.style.width=`${A}px`,U.style.height=`${k}px`,U.style.visibility="hidden",U.style.zIndex=String(F),U.style.overflow="hidden",U.style.background="transparent",U.style.boxShadow="none",U.style.filter="none",(h=S.parentElement)==null||h.insertBefore(U,S),S.style.position="absolute",S.style.left=`${I}px`,S.style.top=`${N}px`,S.style.bottom="auto",S.style.zIndex=String(M),S.style.pointerEvents="none"}}function F5n(e){if(!e||e==="auto")return null;let t=Number.parseFloat(e);return Number.isFinite(t)?t:null}function Dla(e,t){let r=[];for(let a=e;a&&a!==t;){let s=a.parentElement;if(!s)break;r.push(Array.prototype.indexOf.call(s.children,a)),a=s}return r.reverse()}function Mla(e,t,r){let a=e;for(let s=0;s0,h=s==="none"||parseFloat(o)===0;u&&h&&(e.style.border=`${a} solid transparent`)}async function Fla(e,t={}){var f,p;let r={styleMap:na.session.styleMap,styleCache:na.session.styleCache,nodeMap:na.session.nodeMap},a,s="",o="";Bla(e);try{Ola(e)}catch(m){console.warn("inlineExternal defs or symbol failed:",m)}try{a=await aSe(e,r,t,e)}catch(m){throw console.warn("deepClone failed:",m),m}try{await dJn(e,a,r,t)}catch(m){console.warn("inlinePseudoElements failed:",m)}await xla(a);try{let m=a.querySelectorAll("style[data-sd]");for(let b of m)o+=b.textContent||"",b.remove()}catch{}let u=goa(r.styleMap);s=Array.from(u.entries()).map(([m,b])=>`.${b}{${m}}`).join(""),s=o+s;for(let[m,b]of r.styleMap.entries()){if(m.tagName==="STYLE")continue;if(m.getRootNode&&m.getRootNode()instanceof ShadowRoot){m.setAttribute("style",b.replace(/;/g,"; "));continue}let _=u.get(b);_&&m.classList.add(_);let w=(f=m.style)==null?void 0:f.backgroundImage,S=(p=m.dataset)==null?void 0:p.snapdomHasIcon;w&&w!=="none"&&(m.style.backgroundImage=w),S&&(m.style.verticalAlign="middle",m.style.display="inline")}for(let[m,b]of r.nodeMap.entries()){let _=b.scrollLeft,w=b.scrollTop;if((_||w)&&m instanceof HTMLElement){m.style.overflow="hidden",m.style.scrollbarWidth="none",m.style.msOverflowStyle="none";let S=document.createElement("div");for(S.style.transform=`translate(${-_}px, ${-w}px)`,S.style.willChange="transform",S.style.display="inline-block",S.style.width="100%";m.firstChild;)S.appendChild(m.firstChild);m.appendChild(S)}}let h=a instanceof HTMLElement&&a.firstElementChild instanceof HTMLElement?a.firstElementChild:a;if(Lla(e,h),e===r.nodeMap.get(a)){let m=r.styleCache.get(e)||window.getComputedStyle(e);r.styleCache.set(e,m);let b=toa(m.transform);a.style.margin="0",a.style.top="auto",a.style.left="auto",a.style.right="auto",a.style.bottom="auto",a.style.animation="none",a.style.transition="none",a.style.willChange="auto",a.style.float="none",a.style.clear="none",a.style.transform=b||""}for(let[m,b]of r.nodeMap.entries())b.tagName==="PRE"&&(m.style.marginTop="0",m.style.marginBlockStart="0");return{clone:a,classCSS:s,styleCache:r.styleCache}}function $la(e){var p,m,b,_;let t=parseInt(((p=e.dataset)==null?void 0:p.snapdomWidth)||"",10)||0,r=parseInt(((m=e.dataset)==null?void 0:m.snapdomHeight)||"",10)||0,a=parseInt(e.getAttribute("width")||"",10)||0,s=parseInt(e.getAttribute("height")||"",10)||0,o=parseFloat(((b=e.style)==null?void 0:b.width)||"")||0,u=parseFloat(((_=e.style)==null?void 0:_.height)||"")||0,h=t||o||a||e.width||e.naturalWidth||100,f=r||u||s||e.height||e.naturalHeight||100;return{width:h,height:f}}async function Ula(e,t={}){let r=Array.from(e.querySelectorAll("img")),a=async s=>{if(!s.getAttribute("src")){let m=s.currentSrc||s.src||"";m&&s.setAttribute("src",m)}s.removeAttribute("srcset"),s.removeAttribute("sizes");let o=s.src||"";if(!o)return;let u=await pA(o,{as:"dataURL",useProxy:t.useProxy});if(u.ok&&typeof u.data=="string"&&u.data.startsWith("data:")){s.src=u.data,s.width||(s.width=s.naturalWidth||100),s.height||(s.height=s.naturalHeight||100);return}let{width:h,height:f}=$la(s),{fallbackURL:p}=t||{};if(p)try{let m=typeof p=="function"?await p({width:h,height:f,src:o,element:s}):p;if(m){let b=await pA(m,{as:"dataURL",useProxy:t.useProxy});s.src=b.data,s.width||(s.width=h),s.height||(s.height=f);return}}catch{}if(t.placeholders!==!1){let m=document.createElement("div");m.style.cssText=[`width:${h}px`,`height:${f}px`,"background:#ccc","display:inline-block","text-align:center",`line-height:${f}px`,"color:#666","font-size:12px","overflow:hidden"].join(";"),m.textContent="img",s.replaceWith(m)}else{let m=document.createElement("div");m.style.cssText=`display:inline-block;width:${h}px;height:${f}px;visibility:hidden;`,s.replaceWith(m)}};for(let s=0;s{};let t=Gla(e);if(t<=0)return()=>{};if(!Vla(e))return()=>{};let r=getComputedStyle(e),a=Math.round(qla(r)*t+Hla(r)),s=e.textContent??"",o=s;if(e.scrollHeight<=a+.5)return()=>{};let u=0,h=s.length,f=-1;for(;u<=h;){let p=u+h>>1;e.textContent=s.slice(0,p)+"…",e.scrollHeight<=a+.5?(f=p,u=p+1):h=p-1}return e.textContent=(f>=0?s.slice(0,f):"")+"…",()=>{e.textContent=o}}function Gla(e){let t=getComputedStyle(e),r=t.getPropertyValue("-webkit-line-clamp")||t.getPropertyValue("line-clamp");r=(r||"").trim();let a=parseInt(r,10);return Number.isFinite(a)&&a>0?a:0}function qla(e){let t=(e.lineHeight||"").trim(),r=parseFloat(e.fontSize)||16;return!t||t==="normal"?Math.round(r*1.2):t.endsWith("px")?parseFloat(t):/^\d+(\.\d+)?$/.test(t)?Math.round(parseFloat(t)*r):t.endsWith("%")?Math.round(parseFloat(t)/100*r):Math.round(r*1.2)}function Hla(e){return(parseFloat(e.paddingTop)||0)+(parseFloat(e.paddingBottom)||0)}function Vla(e){return e.childElementCount>0?!1:Array.from(e.childNodes).some(t=>t.nodeType===Node.TEXT_NODE)}function Yla(e,t){if(!e||!t||!t.style)return;let r=getComputedStyle(e);try{t.style.boxShadow="none"}catch{}try{t.style.textShadow="none"}catch{}try{t.style.outline="none"}catch{}let a=(r.filter||"").replace(/\bblur\([^()]*\)\s*/gi,"").replace(/\bdrop-shadow\([^()]*\)\s*/gi,"").trim().replace(/\s+/g," ");try{t.style.filter=a.length?a:"none"}catch{}}function jla(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_COMMENT),r=[];for(;t.nextNode();)r.push(t.currentNode);for(let a of r)a.remove()}function Wla(e,t={}){let{stripFrameworkDirectives:r=!0}=t,a=new Set(["xml","xlink"]),s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(;s.nextNode();){let o=s.currentNode;for(let u of Array.from(o.attributes)){let h=u.name;if(h.includes("@")){o.removeAttribute(h);continue}if(h.includes(":")){let f=h.split(":",1)[0];if(!a.has(f)){o.removeAttribute(h);continue}}if(r&&(h.startsWith("x-")||h.startsWith("v-")||h.startsWith(":")||h.startsWith("on:")||h.startsWith("bind:")||h.startsWith("let:")||h.startsWith("class:"))){o.removeAttribute(h);continue}}}}function Kla(e,t={}){e&&(Wla(e,t),jla(e))}function Xla(e){var t;try{let r=((t=e.getAttribute)==null?void 0:t.call(e,"style"))||"";return/\b(height|width|block-size|inline-size)\s*:/.test(r)}catch{return!1}}function Qla(e){return e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof HTMLIFrameElement||e instanceof SVGElement||e instanceof HTMLObjectElement||e instanceof HTMLEmbedElement}function Zla(e,t){if(!(e instanceof Element)||Xla(e)||Qla(e))return!1;let r=t.position;if(r==="absolute"||r==="fixed"||r==="sticky")return!1;let a=t.display||"";return!(a.includes("flex")||a.includes("grid")||a.startsWith("table")||t.transform&&t.transform!=="none")}function Jla(e,t,r=new Map){function a(s,o){if(!(s instanceof Element)||!(o instanceof Element))return;let u=s.childElementCount>o.childElementCount,h=r.get(s)||getComputedStyle(s);if(r.has(s)||r.set(s,h),u&&Zla(s,h)){o.style.height||(o.style.height="auto"),o.style.width||(o.style.width="auto"),o.style.removeProperty("block-size"),o.style.removeProperty("inline-size"),o.style.minHeight||(o.style.minHeight="0"),o.style.minWidth||(o.style.minWidth="0"),o.style.maxHeight||(o.style.maxHeight="none"),o.style.maxWidth||(o.style.maxWidth="none");let m=h.overflowY||h.overflowBlock||"visible",b=h.overflowX||h.overflowInline||"visible";(m!=="visible"||b!=="visible")&&(o.style.overflow="visible")}let f=Array.from(s.children),p=Array.from(o.children);for(let m=0;mo&&(o=A),u=!0)}let f=u?Math.max(0,o-s):0,p=parseFloat(r.borderTopWidth)||0,m=parseFloat(r.borderBottomWidth)||0,b=parseFloat(r.paddingTop)||0,_=parseFloat(r.paddingBottom)||0;return p+m+b+_+f}var Ro=(e,t=3)=>Number.isFinite(e)?Math.round(e*10**t)/10**t:e;function rca(e){var h;let t=e.boxShadow||"";if(!t||t==="none")return{top:0,right:0,bottom:0,left:0};let r=t.split(/\),(?=(?:[^()]*\([^()]*\))*[^()]*$)/).map(f=>f.trim()),a=0,s=0,o=0,u=0;for(let f of r){let p=((h=f.match(/-?\d+(\.\d+)?px/g))==null?void 0:h.map(A=>parseFloat(A)))||[];if(p.length<2)continue;let[m,b,_=0,w=0]=p,S=Math.abs(m)+_+w,C=Math.abs(b)+_+w;s=Math.max(s,S+Math.max(m,0)),u=Math.max(u,S+Math.max(-m,0)),o=Math.max(o,C+Math.max(b,0)),a=Math.max(a,C+Math.max(-b,0))}return{top:Math.ceil(a),right:Math.ceil(s),bottom:Math.ceil(o),left:Math.ceil(u)}}function ica(e){let t=(e.filter||"").match(/blur\(\s*([0-9.]+)px\s*\)/),r=t?Math.ceil(parseFloat(t[1])||0):0;return{top:r,right:r,bottom:r,left:r}}function aca(e){if((e.outlineStyle||"none")==="none")return{top:0,right:0,bottom:0,left:0};let t=Math.ceil(parseFloat(e.outlineWidth||"0")||0);return{top:t,right:t,bottom:t,left:t}}function sca(e){var f;let t=`${e.filter||""} ${e.webkitFilter||""}`.trim();if(!t||t==="none")return{bleed:{top:0,right:0,bottom:0,left:0},has:!1};let r=t.match(/drop-shadow\((?:[^()]|\([^()]*\))*\)/gi)||[],a=0,s=0,o=0,u=0,h=!1;for(let p of r){h=!0;let m=((f=p.match(/-?\d+(?:\.\d+)?px/gi))==null?void 0:f.map(A=>parseFloat(A)))||[],[b=0,_=0,w=0]=m,S=Math.abs(b)+w,C=Math.abs(_)+w;s=Math.max(s,S+Math.max(b,0)),u=Math.max(u,S+Math.max(-b,0)),o=Math.max(o,C+Math.max(_,0)),a=Math.max(a,C+Math.max(-_,0))}return{bleed:{top:Ro(a),right:Ro(s),bottom:Ro(o),left:Ro(u)},has:h}}function oca(e,t){if(!e||!t||!t.style)return null;let r=getComputedStyle(e);try{t.style.transformOrigin="0 0"}catch{}try{"translate"in t.style&&(t.style.translate="none"),"rotate"in t.style&&(t.style.rotate="none")}catch{}let a=r.transform||"none";if(a==="none")try{let o=fJn(e);if(o.a===1&&o.b===0&&o.c===0&&o.d===1)return t.style.transform="none",{a:1,b:0,c:0,d:1}}catch{}let s=a.match(/^matrix\(\s*([^)]+)\)$/i);if(s){let o=s[1].split(",").map(u=>parseFloat(u.trim()));if(o.length===6&&o.every(Number.isFinite)){let[u,h,f,p]=o,m=Math.sqrt(u*u+h*h)||0,b=0,_=0,w=0,S=0,C=0,A=0;m>0&&(b=u/m,_=h/m,w=b*f+_*p,S=f-b*w,C=p-_*w,A=Math.sqrt(S*S+C*C)||0,A>0?w=w/A:w=0);let k=m,I=0,N=w*A,L=A;try{t.style.transform=`matrix(${k}, ${I}, ${N}, ${L}, 0, 0)`}catch{}return{a:k,b:I,c:N,d:L}}}try{let o=String(a).trim();return t.style.transform=o+" translate(0px, 0px) rotate(0deg)",null}catch{return null}}function $5n(e,t,r,a,s){let o=r.a,u=r.b,h=r.c,f=r.d,p=r.e||0,m=r.f||0;function b(k,I){let N=k-a,L=I-s,P=o*N+h*L,M=u*N+f*L;return P+=a+p,M+=s+m,[P,M]}let _=[b(0,0),b(e,0),b(0,t),b(e,t)],w=1/0,S=1/0,C=-1/0,A=-1/0;for(let[k,I]of _)kC&&(C=k),I>A&&(A=I);return{minX:w,minY:S,maxX:C,maxY:A,width:C-w,height:A-S}}function lca(e,t,r){let a=(e.transformOrigin||"0 0").trim().split(/\s+/),[s,o]=[a[0]||"0",a[1]||"0"],u=(h,f)=>{let p=h.toLowerCase();return p==="left"||p==="top"?0:p==="center"?f/2:p==="right"||p==="bottom"?f:p.endsWith("px")?parseFloat(p)||0:p.endsWith("%")?(parseFloat(p)||0)*f/100:/^-?\d+(\.\d+)?$/.test(p)&&parseFloat(p)||0};return{ox:u(s,t),oy:u(o,r)}}function cca(e){var s,o,u,h,f,p,m,b;let t={rotate:"0deg",scale:null,translate:null},r=typeof e.computedStyleMap=="function"?e.computedStyleMap():null;if(r){let _=A=>{try{return typeof r.has=="function"&&!r.has(A)||typeof r.get!="function"?null:r.get(A)}catch{return null}},w=_("rotate");if(w)if(w.angle){let A=w.angle;t.rotate=A.unit==="rad"?A.value*180/Math.PI+"deg":A.value+A.unit}else w.unit?t.rotate=w.unit==="rad"?w.value*180/Math.PI+"deg":w.value+w.unit:t.rotate=String(w);else{let A=getComputedStyle(e);t.rotate=A.rotate&&A.rotate!=="none"?A.rotate:"0deg"}let S=_("scale");if(S){let A="x"in S&&((s=S.x)==null?void 0:s.value)!=null?S.x.value:Array.isArray(S)?(o=S[0])==null?void 0:o.value:Number(S)||1,k="y"in S&&((u=S.y)==null?void 0:u.value)!=null?S.y.value:Array.isArray(S)?(h=S[1])==null?void 0:h.value:A;t.scale=`${A} ${k}`}else{let A=getComputedStyle(e);t.scale=A.scale&&A.scale!=="none"?A.scale:null}let C=_("translate");if(C){let A="x"in C&&"value"in C.x?C.x.value:Array.isArray(C)?(f=C[0])==null?void 0:f.value:0,k="y"in C&&"value"in C.y?C.y.value:Array.isArray(C)?(p=C[1])==null?void 0:p.value:0,I="x"in C&&((m=C.x)!=null&&m.unit)?C.x.unit:"px",N="y"in C&&((b=C.y)!=null&&b.unit)?C.y.unit:"px";t.translate=`${A}${I} ${k}${N}`}else{let A=getComputedStyle(e);t.translate=A.translate&&A.translate!=="none"?A.translate:null}return t}let a=getComputedStyle(e);return t.rotate=a.rotate&&a.rotate!=="none"?a.rotate:"0deg",t.scale=a.scale&&a.scale!=="none"?a.scale:null,t.translate=a.translate&&a.translate!=="none"?a.translate:null,t}var yat=null;function uca(){if(yat)return yat;let e=document.createElement("div");return e.id="snapdom-measure-slot",e.setAttribute("aria-hidden","true"),Object.assign(e.style,{position:"absolute",left:"-99999px",top:"0px",width:"0px",height:"0px",overflow:"hidden",opacity:"0",pointerEvents:"none",contain:"size layout style"}),document.documentElement.appendChild(e),yat=e,e}function hca(e){let t=uca(),r=document.createElement("div");r.style.transformOrigin="0 0",e.baseTransform&&(r.style.transform=e.baseTransform),e.rotate&&(r.style.rotate=e.rotate),e.scale&&(r.style.scale=e.scale),e.translate&&(r.style.translate=e.translate),t.appendChild(r);let a=fJn(r);return t.removeChild(r),a}function dca(e){let t=getComputedStyle(e),r=t.transform||"none";if(r!=="none"&&!/^matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\)$/i.test(r))return!0;let a=t.rotate&&t.rotate!=="none"&&t.rotate!=="0deg",s=t.scale&&t.scale!=="none"&&t.scale!=="1",o=t.translate&&t.translate!=="none"&&t.translate!=="0px 0px";return!!(a||s||o)}function fJn(e){let t=getComputedStyle(e).transform;if(!t||t==="none")return new DOMMatrix;try{return new DOMMatrix(t)}catch{return new WebKitCSSMatrix(t)}}async function pJn(e,t){var I;if(!e)throw new Error("Element cannot be null or undefined");eoa(t.cache);let r=t.fast,a=t.outerTransforms!==!1,s=!!t.outerShadows,o={element:e,options:t,plugins:t.plugins},u,h,f,p="",m="",b,_,w=null;await iO("beforeSnap",o),await iO("beforeClone",o);let S=zla(o.element);try{({clone:u,classCSS:h,styleCache:f}=await Fla(o.element,o.options)),!a&&u&&(w=oca(o.element,u)),!s&&u&&Yla(o.element,u)}finally{S()}if(o={clone:u,classCSS:h,styleCache:f,...o},await iO("afterClone",o),Kla(o.clone),((I=o.options)==null?void 0:I.excludeMode)==="remove")try{Jla(o.element,o.clone,o.styleCache)}catch(N){console.warn("[snapdom] shrink pass failed:",N)}try{await Soa(o.clone,o.element)}catch{}await new Promise(N=>{_V(async()=>{await Ula(o.clone,o.options),N()},{fast:r})}),await new Promise(N=>{_V(async()=>{await Goa(o.element,o.clone,o.styleCache,o.options),N()},{fast:r})}),t.embedFonts&&await new Promise(N=>{_V(async()=>{let L=$oa(o.element),P=Uoa(o.element);if(cF()){let M=new Set(Array.from(L).map(F=>String(F).split("__")[0]).filter(Boolean));await zoa(M,1)}p=await Foa({required:L,usedCodepoints:P,exclude:o.options.excludeFonts,useProxy:o.options.useProxy}),N()},{fast:r})});let C=foa(o.clone).sort(),A=C.join(",");na.baseStyle.has(A)?m=na.baseStyle.get(A):await new Promise(N=>{_V(()=>{m=poa(C),na.baseStyle.set(A,m),N()},{fast:r})}),o={fontsCSS:p,baseCSS:m,...o},await iO("beforeRender",o),await new Promise(N=>{_V(()=>{var ht;let L=getComputedStyle(o.element),P=o.element.getBoundingClientRect(),M=Math.max(1,Ro(o.element.offsetWidth||parseFloat(L.width)||P.width||1)),F=Math.max(1,Ro(o.element.offsetHeight||parseFloat(L.height)||P.height||1));if(((ht=o.options)==null?void 0:ht.excludeMode)==="remove"){let et=nca(o.element,o.options);Number.isFinite(et)&&et>0&&(F=Math.max(1,Math.min(F,Ro(et+1))))}let U=(et,qe=NaN)=>{let He=typeof et=="string"?parseFloat(et):et;return Number.isFinite(He)?He:qe},$=U(o.options.width),G=U(o.options.height),B=M,Z=F,z=Number.isFinite($),Y=Number.isFinite(G),W=F>0?M/F:1;z&&Y?(B=Math.max(1,Ro($)),Z=Math.max(1,Ro(G))):z?(B=Math.max(1,Ro($)),Z=Math.max(1,Ro(B/(W||1)))):Y?(Z=Math.max(1,Ro(G)),B=Math.max(1,Ro(Z*(W||1)))):(B=M,Z=F);let Q=0,V=0,j=M,ee=F;if(!a&&w&&Number.isFinite(w.a)){let et={a:w.a,b:w.b||0,c:w.c||0,d:w.d||1,e:0,f:0},qe=$5n(M,F,et,0,0);Q=Ro(qe.minX),V=Ro(qe.minY),j=Ro(qe.maxX),ee=Ro(qe.maxY)}else if(a&&fca(o.element)){let et=L.transform&&L.transform!=="none"?L.transform:"",qe=cca(o.element),He=hca({baseTransform:et,rotate:qe.rotate||"0deg",scale:qe.scale,translate:qe.translate}),{ox:Ge,oy:Ye}=lca(L,M,F),Ae=He.is2D?He:new DOMMatrix(He.toString()),Xe=$5n(M,F,Ae,Ge,Ye);Q=Ro(Xe.minX),V=Ro(Xe.minY),j=Ro(Xe.maxX),ee=Ro(Xe.maxY)}let te=rca(L),ne=ica(L),se=aca(L),ie=sca(L),ge=s?{top:Ro(te.top+ne.top+se.top+ie.bleed.top),right:Ro(te.right+ne.right+se.right+ie.bleed.right),bottom:Ro(te.bottom+ne.bottom+se.bottom+ie.bleed.bottom),left:Ro(te.left+ne.left+se.left+ie.bleed.left)}:{top:0,right:0,bottom:0,left:0};Q=Ro(Q-ge.left),V=Ro(V-ge.top),j=Ro(j+ge.right),ee=Ro(ee+ge.bottom);let ce=Math.max(1,Ro(j-Q)),be=Math.max(1,Ro(ee-V)),ve=z||Y?Ro(B/M):1,De=Y||z?Ro(Z/F):1,ye=Math.max(1,Ro(ce*ve)),Ee=Math.max(1,Ro(be*De)),he="http://www.w3.org/2000/svg",we=cF()?1:0,Ce=Ro(we+(a?0:1)),Ie=document.createElementNS(he,"foreignObject"),Le=Ro(Q),Fe=Ro(V);Ie.setAttribute("x",String(Ro(-(Le-Ce)))),Ie.setAttribute("y",String(Ro(-(Fe-Ce)))),Ie.setAttribute("width",String(Ro(M+Ce*2))),Ie.setAttribute("height",String(Ro(F+Ce*2))),Ie.style.overflow="visible";let Ve=document.createElement("style");Ve.textContent=o.baseCSS+o.fontsCSS+"svg{overflow:visible;} foreignObject{overflow:visible;}"+o.classCSS,Ie.appendChild(Ve);let Oe=document.createElement("div");Oe.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),Oe.style.width=`${Ro(M)}px`,Oe.style.height=`${Ro(F)}px`,Oe.style.overflow="visible",Oe.appendChild(o.clone),Ie.appendChild(Oe);let Dt=new XMLSerializer().serializeToString(Ie),ot=Ro(ce+Ce*2),sn=Ro(be+Ce*2),Kt=z||Y;t.meta={w0:M,h0:F,vbW:ot,vbH:sn,targetW:B,targetH:Z};let Ft=cF()&&Kt?ot:Ro(ye+Ce*2),Je=cF()&&Kt?sn:Ro(Ee+Ce*2);_=``+Dt+"",b=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(_)}`,o={svgString:_,dataURL:b,...o},N()},{fast:r})}),await iO("afterRender",o);let k=document.getElementById("snapdom-sandbox");return k&&k.style.position==="absolute"&&k.remove(),o.dataURL}function fca(e){return dca(e)}function pca(e){if(typeof e=="string"){let t=e.toLowerCase().trim();if(t==="disabled"||t==="full"||t==="auto"||t==="soft")return t}return"soft"}function gca(e={}){let t=e.format??"png";t==="jpg"&&(t="jpeg");let r=pca(e.cache);return{debug:e.debug??!1,fast:e.fast??!0,scale:e.scale??1,exclude:e.exclude??[],excludeMode:e.excludeMode??"hide",filter:e.filter??null,filterMode:e.filterMode??"hide",placeholders:e.placeholders!==!1,embedFonts:e.embedFonts??!1,iconFonts:Array.isArray(e.iconFonts)?e.iconFonts:e.iconFonts?[e.iconFonts]:[],localFonts:Array.isArray(e.localFonts)?e.localFonts:[],excludeFonts:e.excludeFonts??void 0,fallbackURL:e.fallbackURL??void 0,cache:r,useProxy:typeof e.useProxy=="string"?e.useProxy:"",width:e.width??null,height:e.height??null,format:t,type:e.type??"svg",quality:e.quality??.92,dpr:e.dpr??(window.devicePixelRatio||1),backgroundColor:e.backgroundColor??(["jpeg","webp"].includes(t)?"#ffffff":null),filename:e.filename??"snapDOM",outerTransforms:e.outerTransforms??!0,outerShadows:e.outerShadows??!1}}function gJn(...e){return qoa(...e),Wd}var Wd=Object.assign(mca,{plugins:gJn}),mJn=Symbol("snapdom.internal"),FN=Symbol("snapdom.internal.silent"),cht=!1;async function mca(e,t){if(!e)throw new Error("Element cannot be null or undefined");let r=gca(t);if(Yoa(r,t&&t.plugins),cF()&&(r.embedFonts===!0||yca(e)))for(let a=0;a<3;a++)try{await bca(e,t),cht=!1}catch{}return r.iconFonts&&r.iconFonts.length>0&&boa(r.iconFonts),r.snap||(r.snap={toPng:(a,s)=>Wd.toPng(a,s),toSvg:(a,s)=>Wd.toSvg(a,s)}),Wd.capture(e,r,mJn)}Wd.capture=async(e,t,r)=>{if(r!==mJn)throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");let a=await pJn(e,t),s={img:async(S,C)=>{let{toImg:A}=await ea(()=>Promise.resolve().then(()=>kEe),void 0);return A(a,{...S,...C||{}})},svg:async(S,C)=>{let{toSvg:A}=await ea(()=>Promise.resolve().then(()=>kEe),void 0);return A(a,{...S,...C||{}})},canvas:async(S,C)=>{let{toCanvas:A}=await ea(()=>Promise.resolve().then(()=>fAn),void 0);return A(a,{...S,...C||{}})},blob:async(S,C)=>{let{toBlob:A}=await ea(()=>Promise.resolve().then(()=>pAn),void 0);return A(a,{...S,...C||{}})},png:async(S,C)=>{let{rasterize:A}=await ea(()=>Promise.resolve().then(()=>SB),void 0);return A(a,{...S,...C||{},format:"png"})},jpeg:async(S,C)=>{let{rasterize:A}=await ea(()=>Promise.resolve().then(()=>SB),void 0);return A(a,{...S,...C||{},format:"jpeg"})},webp:async(S,C)=>{let{rasterize:A}=await ea(()=>Promise.resolve().then(()=>SB),void 0);return A(a,{...S,...C||{},format:"webp"})},download:async(S,C)=>{let{download:A}=await ea(()=>Promise.resolve().then(()=>eSa),void 0);return A(a,{...S,...C||{}})}},o={...t,export:{url:a},exports:{svg:async S=>{let{toSvg:C}=await ea(()=>Promise.resolve().then(()=>kEe),void 0);return C(a,{...t,...S||{},[FN]:!0})},canvas:async S=>{let{toCanvas:C}=await ea(()=>Promise.resolve().then(()=>fAn),void 0);return C(a,{...t,...S||{},[FN]:!0})},png:async S=>{let{rasterize:C}=await ea(()=>Promise.resolve().then(()=>SB),void 0);return C(a,{...t,...S||{},format:"png",[FN]:!0})},jpeg:async S=>{let{rasterize:C}=await ea(()=>Promise.resolve().then(()=>SB),void 0);return C(a,{...t,...S||{},format:"jpeg",[FN]:!0})},jpg:async S=>{let{rasterize:C}=await ea(()=>Promise.resolve().then(()=>SB),void 0);return C(a,{...t,...S||{},format:"jpeg",[FN]:!0})},webp:async S=>{let{rasterize:C}=await ea(()=>Promise.resolve().then(()=>SB),void 0);return C(a,{...t,...S||{},format:"webp",[FN]:!0})},blob:async S=>{let{toBlob:C}=await ea(()=>Promise.resolve().then(()=>pAn),void 0);return C(a,{...t,...S||{},[FN]:!0})},img:async S=>{let{toImg:C}=await ea(()=>Promise.resolve().then(()=>kEe),void 0);return C(a,{...t,...S||{},[FN]:!0})}}},u=await Hoa("defineExports",o),h=Object.assign({},...u.filter(S=>S&&typeof S=="object")),f={...s,...h};f.jpeg&&!f.jpg&&(f.jpg=(S,C)=>f.jpeg(S,C));function p(S,C){let A={...t,...C||{}};return(S==="jpeg"||S==="jpg")&&(A.backgroundColor==null||A.backgroundColor==="transparent")&&(A.backgroundColor="#ffffff"),A}let m=!1,b=Promise.resolve();async function _(S,C){let A=async()=>{let k=f[S];if(!k)throw new Error(`[snapdom] Unknown export type: ${S}`);let I=p(S,C),N={...t,export:{type:S,options:I,url:a}};await iO("beforeExport",N);let L=await k(N,I);return await iO("afterExport",N,L),m||(m=!0,await iO("afterSnap",t)),L};return b=b.then(A)}let w={url:a,toRaw:()=>a,to:(S,C)=>_(S,C),toImg:S=>_("img",S),toSvg:S=>_("svg",S),toCanvas:S=>_("canvas",S),toBlob:S=>_("blob",S),toPng:S=>_("png",S),toJpg:S=>_("jpg",S),toWebp:S=>_("webp",S),download:S=>_("download",S)};for(let S of Object.keys(f)){let C="to"+S.charAt(0).toUpperCase()+S.slice(1);w[C]||(w[C]=A=>_(S,A))}return w};Wd.toRaw=(e,t)=>Wd(e,t).then(r=>r.toRaw());Wd.toImg=(e,t)=>Wd(e,t).then(r=>r.toImg());Wd.toSvg=(e,t)=>Wd(e,t).then(r=>r.toSvg());Wd.toCanvas=(e,t)=>Wd(e,t).then(r=>r.toCanvas());Wd.toBlob=(e,t)=>Wd(e,t).then(r=>r.toBlob());Wd.toPng=(e,t)=>Wd(e,{...t,format:"png"}).then(r=>r.toPng());Wd.toJpg=(e,t)=>Wd(e,{...t,format:"jpeg"}).then(r=>r.toJpg());Wd.toWebp=(e,t)=>Wd(e,{...t,format:"webp"}).then(r=>r.toWebp());Wd.download=(e,t)=>Wd(e,t).then(r=>r.download());async function bca(e,t){if(cht)return;let r={...t,fast:!0,embedFonts:!0,scale:.2},a;try{a=await pJn(e,r)}catch{}await new Promise(s=>requestAnimationFrame(()=>requestAnimationFrame(s))),a&&await new Promise(s=>{let o=new Image;try{o.decoding="sync",o.loading="eager"}catch{}o.style.cssText="position:fixed;left:0px;top:0px;width:10px;height:10px;opacity:0.01;pointer-events:none;",o.src=a,document.body.appendChild(o),(async()=>{try{typeof o.decode=="function"&&await o.decode()}catch{}let u=performance.now();for(;!(o.complete&&o.naturalWidth>0)&&performance.now()-u<900;)await new Promise(h=>setTimeout(h,200));await new Promise(h=>requestAnimationFrame(h));try{o.remove()}catch{}s()})()}),e.querySelectorAll("canvas").forEach(s=>{try{let o=s.getContext("2d",{willReadFrequently:!0});o&&o.getImageData(0,0,1,1)}catch{}}),cht=!0}function yca(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(;t.nextNode();){let r=t.currentNode,a=getComputedStyle(r),s=a.backgroundImage&&a.backgroundImage!=="none",o=a.maskImage&&a.maskImage!=="none"||a.webkitMaskImage&&a.webkitMaskImage!=="none";if(s||o||r.tagName==="CANVAS")return!0}return!1}const oCa=Object.freeze(Object.defineProperty({__proto__:null,plugins:gJn,snapdom:Wd},Symbol.toStringTag,{value:"Module"})),vca=Object.freeze(Object.defineProperty({__proto__:null,InfoModule:IWn,createInfoServices:NWn},Symbol.toStringTag,{value:"Module"})),_ca=Object.freeze(Object.defineProperty({__proto__:null,PacketModule:OWn,createPacketServices:LWn},Symbol.toStringTag,{value:"Module"})),wca=Object.freeze(Object.defineProperty({__proto__:null,PieModule:DWn,createPieServices:MWn},Symbol.toStringTag,{value:"Module"})),Eca=Object.freeze(Object.defineProperty({__proto__:null,ArchitectureModule:PWn,createArchitectureServices:BWn},Symbol.toStringTag,{value:"Module"})),xca=Object.freeze(Object.defineProperty({__proto__:null,GitGraphModule:kWn,createGitGraphServices:RWn},Symbol.toStringTag,{value:"Module"})),Sca=Object.freeze(Object.defineProperty({__proto__:null,RadarModule:FWn,createRadarServices:$Wn},Symbol.toStringTag,{value:"Module"})),Tca=Object.freeze(Object.defineProperty({__proto__:null,TreemapModule:zWn,createTreemapServices:GWn},Symbol.toStringTag,{value:"Module"})),d6e=(e,t)=>{const r=e.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.name&&r.attr("name",t.name),t.rx!==void 0&&r.attr("rx",t.rx),t.ry!==void 0&&r.attr("ry",t.ry),t.attrs!==void 0)for(const a in t.attrs)r.attr(a,t.attrs[a]);return t.class!==void 0&&r.attr("class",t.class),r},bJn=(e,t)=>{const r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};d6e(e,r).lower()},Cca=(e,t)=>{const r=t.text.replace(aK," "),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(r),a},Aca=(e,t,r,a)=>{const s=e.append("image");s.attr("x",t),s.attr("y",r);const o=U9(a);s.attr("xlink:href",o)},kca=(e,t,r,a)=>{const s=e.append("use");s.attr("x",t),s.attr("y",r);const o=U9(a);s.attr("xlink:href",`#${o}`)},eU=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),Obt=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});var JTe=function(){var e=function(Ft,Je,ht,et){for(ht=ht||{},et=Ft.length;et--;ht[Ft[et]]=Je);return ht},t=[1,24],r=[1,25],a=[1,26],s=[1,27],o=[1,28],u=[1,63],h=[1,64],f=[1,65],p=[1,66],m=[1,67],b=[1,68],_=[1,69],w=[1,29],S=[1,30],C=[1,31],A=[1,32],k=[1,33],I=[1,34],N=[1,35],L=[1,36],P=[1,37],M=[1,38],F=[1,39],U=[1,40],$=[1,41],G=[1,42],B=[1,43],Z=[1,44],z=[1,45],Y=[1,46],W=[1,47],Q=[1,48],V=[1,50],j=[1,51],ee=[1,52],te=[1,53],ne=[1,54],se=[1,55],ie=[1,56],ge=[1,57],ce=[1,58],be=[1,59],ve=[1,60],De=[14,42],ye=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ee=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],he=[1,82],we=[1,83],Ce=[1,84],Ie=[1,85],Le=[12,14,42],Fe=[12,14,33,42],Ve=[12,14,33,42,76,77,79,80],Oe=[12,33],Dt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ot={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:function(Je,ht,et,qe,He,Ge,Ye){var Ae=Ge.length-1;switch(He){case 3:qe.setDirection("TB");break;case 4:qe.setDirection("BT");break;case 5:qe.setDirection("RL");break;case 6:qe.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:qe.setC4Type(Ge[Ae-3]);break;case 19:qe.setTitle(Ge[Ae].substring(6)),this.$=Ge[Ae].substring(6);break;case 20:qe.setAccDescription(Ge[Ae].substring(15)),this.$=Ge[Ae].substring(15);break;case 21:this.$=Ge[Ae].trim(),qe.setTitle(this.$);break;case 22:case 23:this.$=Ge[Ae].trim(),qe.setAccDescription(this.$);break;case 28:case 29:Ge[Ae].splice(2,0,"ENTERPRISE"),qe.addPersonOrSystemBoundary(...Ge[Ae]),this.$=Ge[Ae];break;case 30:qe.addPersonOrSystemBoundary(...Ge[Ae]),this.$=Ge[Ae];break;case 31:Ge[Ae].splice(2,0,"CONTAINER"),qe.addContainerBoundary(...Ge[Ae]),this.$=Ge[Ae];break;case 32:qe.addDeploymentNode("node",...Ge[Ae]),this.$=Ge[Ae];break;case 33:qe.addDeploymentNode("nodeL",...Ge[Ae]),this.$=Ge[Ae];break;case 34:qe.addDeploymentNode("nodeR",...Ge[Ae]),this.$=Ge[Ae];break;case 35:qe.popBoundaryParseStack();break;case 39:qe.addPersonOrSystem("person",...Ge[Ae]),this.$=Ge[Ae];break;case 40:qe.addPersonOrSystem("external_person",...Ge[Ae]),this.$=Ge[Ae];break;case 41:qe.addPersonOrSystem("system",...Ge[Ae]),this.$=Ge[Ae];break;case 42:qe.addPersonOrSystem("system_db",...Ge[Ae]),this.$=Ge[Ae];break;case 43:qe.addPersonOrSystem("system_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 44:qe.addPersonOrSystem("external_system",...Ge[Ae]),this.$=Ge[Ae];break;case 45:qe.addPersonOrSystem("external_system_db",...Ge[Ae]),this.$=Ge[Ae];break;case 46:qe.addPersonOrSystem("external_system_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 47:qe.addContainer("container",...Ge[Ae]),this.$=Ge[Ae];break;case 48:qe.addContainer("container_db",...Ge[Ae]),this.$=Ge[Ae];break;case 49:qe.addContainer("container_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 50:qe.addContainer("external_container",...Ge[Ae]),this.$=Ge[Ae];break;case 51:qe.addContainer("external_container_db",...Ge[Ae]),this.$=Ge[Ae];break;case 52:qe.addContainer("external_container_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 53:qe.addComponent("component",...Ge[Ae]),this.$=Ge[Ae];break;case 54:qe.addComponent("component_db",...Ge[Ae]),this.$=Ge[Ae];break;case 55:qe.addComponent("component_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 56:qe.addComponent("external_component",...Ge[Ae]),this.$=Ge[Ae];break;case 57:qe.addComponent("external_component_db",...Ge[Ae]),this.$=Ge[Ae];break;case 58:qe.addComponent("external_component_queue",...Ge[Ae]),this.$=Ge[Ae];break;case 60:qe.addRel("rel",...Ge[Ae]),this.$=Ge[Ae];break;case 61:qe.addRel("birel",...Ge[Ae]),this.$=Ge[Ae];break;case 62:qe.addRel("rel_u",...Ge[Ae]),this.$=Ge[Ae];break;case 63:qe.addRel("rel_d",...Ge[Ae]),this.$=Ge[Ae];break;case 64:qe.addRel("rel_l",...Ge[Ae]),this.$=Ge[Ae];break;case 65:qe.addRel("rel_r",...Ge[Ae]),this.$=Ge[Ae];break;case 66:qe.addRel("rel_b",...Ge[Ae]),this.$=Ge[Ae];break;case 67:Ge[Ae].splice(0,1),qe.addRel("rel",...Ge[Ae]),this.$=Ge[Ae];break;case 68:qe.updateElStyle("update_el_style",...Ge[Ae]),this.$=Ge[Ae];break;case 69:qe.updateRelStyle("update_rel_style",...Ge[Ae]),this.$=Ge[Ae];break;case 70:qe.updateLayoutConfig("update_layout_config",...Ge[Ae]),this.$=Ge[Ae];break;case 71:this.$=[Ge[Ae]];break;case 72:Ge[Ae].unshift(Ge[Ae-1]),this.$=Ge[Ae];break;case 73:case 75:this.$=Ge[Ae].trim();break;case 74:let Xe={};Xe[Ge[Ae-1].trim()]=Ge[Ae].trim(),this.$=Xe;break;case 76:this.$="";break}},table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:r,24:a,26:s,28:o,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{13:70,19:20,20:21,21:22,22:t,23:r,24:a,26:s,28:o,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{13:71,19:20,20:21,21:22,22:t,23:r,24:a,26:s,28:o,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{13:72,19:20,20:21,21:22,22:t,23:r,24:a,26:s,28:o,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{13:73,19:20,20:21,21:22,22:t,23:r,24:a,26:s,28:o,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{14:[1,74]},e(De,[2,13],{43:23,29:49,30:61,32:62,20:75,34:u,36:h,37:f,38:p,39:m,40:b,41:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve}),e(De,[2,14]),e(ye,[2,16],{12:[1,76]}),e(De,[2,36],{12:[1,77]}),e(Ee,[2,19]),e(Ee,[2,20]),{25:[1,78]},{27:[1,79]},e(Ee,[2,23]),{35:80,75:81,76:he,77:we,79:Ce,80:Ie},{35:86,75:81,76:he,77:we,79:Ce,80:Ie},{35:87,75:81,76:he,77:we,79:Ce,80:Ie},{35:88,75:81,76:he,77:we,79:Ce,80:Ie},{35:89,75:81,76:he,77:we,79:Ce,80:Ie},{35:90,75:81,76:he,77:we,79:Ce,80:Ie},{35:91,75:81,76:he,77:we,79:Ce,80:Ie},{35:92,75:81,76:he,77:we,79:Ce,80:Ie},{35:93,75:81,76:he,77:we,79:Ce,80:Ie},{35:94,75:81,76:he,77:we,79:Ce,80:Ie},{35:95,75:81,76:he,77:we,79:Ce,80:Ie},{35:96,75:81,76:he,77:we,79:Ce,80:Ie},{35:97,75:81,76:he,77:we,79:Ce,80:Ie},{35:98,75:81,76:he,77:we,79:Ce,80:Ie},{35:99,75:81,76:he,77:we,79:Ce,80:Ie},{35:100,75:81,76:he,77:we,79:Ce,80:Ie},{35:101,75:81,76:he,77:we,79:Ce,80:Ie},{35:102,75:81,76:he,77:we,79:Ce,80:Ie},{35:103,75:81,76:he,77:we,79:Ce,80:Ie},{35:104,75:81,76:he,77:we,79:Ce,80:Ie},e(Le,[2,59]),{35:105,75:81,76:he,77:we,79:Ce,80:Ie},{35:106,75:81,76:he,77:we,79:Ce,80:Ie},{35:107,75:81,76:he,77:we,79:Ce,80:Ie},{35:108,75:81,76:he,77:we,79:Ce,80:Ie},{35:109,75:81,76:he,77:we,79:Ce,80:Ie},{35:110,75:81,76:he,77:we,79:Ce,80:Ie},{35:111,75:81,76:he,77:we,79:Ce,80:Ie},{35:112,75:81,76:he,77:we,79:Ce,80:Ie},{35:113,75:81,76:he,77:we,79:Ce,80:Ie},{35:114,75:81,76:he,77:we,79:Ce,80:Ie},{35:115,75:81,76:he,77:we,79:Ce,80:Ie},{20:116,29:49,30:61,32:62,34:u,36:h,37:f,38:p,39:m,40:b,41:_,43:23,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve},{12:[1,118],33:[1,117]},{35:119,75:81,76:he,77:we,79:Ce,80:Ie},{35:120,75:81,76:he,77:we,79:Ce,80:Ie},{35:121,75:81,76:he,77:we,79:Ce,80:Ie},{35:122,75:81,76:he,77:we,79:Ce,80:Ie},{35:123,75:81,76:he,77:we,79:Ce,80:Ie},{35:124,75:81,76:he,77:we,79:Ce,80:Ie},{35:125,75:81,76:he,77:we,79:Ce,80:Ie},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(De,[2,15]),e(ye,[2,17],{21:22,19:130,22:t,23:r,24:a,26:s,28:o}),e(De,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:r,24:a,26:s,28:o,34:u,36:h,37:f,38:p,39:m,40:b,41:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N,51:L,52:P,53:M,54:F,55:U,56:$,57:G,58:B,59:Z,60:z,61:Y,62:W,63:Q,64:V,65:j,66:ee,67:te,68:ne,69:se,70:ie,71:ge,72:ce,73:be,74:ve}),e(Ee,[2,21]),e(Ee,[2,22]),e(Le,[2,39]),e(Fe,[2,71],{75:81,35:132,76:he,77:we,79:Ce,80:Ie}),e(Ve,[2,73]),{78:[1,133]},e(Ve,[2,75]),e(Ve,[2,76]),e(Le,[2,40]),e(Le,[2,41]),e(Le,[2,42]),e(Le,[2,43]),e(Le,[2,44]),e(Le,[2,45]),e(Le,[2,46]),e(Le,[2,47]),e(Le,[2,48]),e(Le,[2,49]),e(Le,[2,50]),e(Le,[2,51]),e(Le,[2,52]),e(Le,[2,53]),e(Le,[2,54]),e(Le,[2,55]),e(Le,[2,56]),e(Le,[2,57]),e(Le,[2,58]),e(Le,[2,60]),e(Le,[2,61]),e(Le,[2,62]),e(Le,[2,63]),e(Le,[2,64]),e(Le,[2,65]),e(Le,[2,66]),e(Le,[2,67]),e(Le,[2,68]),e(Le,[2,69]),e(Le,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(Oe,[2,28]),e(Oe,[2,29]),e(Oe,[2,30]),e(Oe,[2,31]),e(Oe,[2,32]),e(Oe,[2,33]),e(Oe,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(ye,[2,18]),e(De,[2,38]),e(Fe,[2,72]),e(Ve,[2,74]),e(Le,[2,24]),e(Le,[2,35]),e(Dt,[2,25]),e(Dt,[2,26],{12:[1,138]}),e(Dt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:function(Je,ht){if(ht.recoverable)this.trace(Je);else{var et=new Error(Je);throw et.hash=ht,et}},parse:function(Je){var ht=this,et=[0],qe=[],He=[null],Ge=[],Ye=this.table,Ae="",Xe=0,fe=0,Qe=2,Ke=1,mt=Ge.slice.call(arguments,1),lt=Object.create(this.lexer),$t={yy:{}};for(var Ut in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ut)&&($t.yy[Ut]=this.yy[Ut]);lt.setInput(Je,$t.yy),$t.yy.lexer=lt,$t.yy.parser=this,typeof lt.yylloc>"u"&&(lt.yylloc={});var Jt=lt.yylloc;Ge.push(Jt);var wn=lt.options&<.options.ranges;typeof $t.yy.parseError=="function"?this.parseError=$t.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Vn(){var pr;return pr=qe.pop()||lt.lex()||Ke,typeof pr!="number"&&(pr instanceof Array&&(qe=pr,pr=qe.pop()),pr=ht.symbols_[pr]||pr),pr}for(var Wn,Dn,zn,vn,Cn={},Ar,ur,On,Ir;;){if(Dn=et[et.length-1],this.defaultActions[Dn]?zn=this.defaultActions[Dn]:((Wn===null||typeof Wn>"u")&&(Wn=Vn()),zn=Ye[Dn]&&Ye[Dn][Wn]),typeof zn>"u"||!zn.length||!zn[0]){var Ln="";Ir=[];for(Ar in Ye[Dn])this.terminals_[Ar]&&Ar>Qe&&Ir.push("'"+this.terminals_[Ar]+"'");lt.showPosition?Ln="Parse error on line "+(Xe+1)+`: `+lt.showPosition()+` Expecting `+Ir.join(", ")+", got '"+(this.terminals_[Wn]||Wn)+"'":Ln="Parse error on line "+(Xe+1)+": Unexpected "+(Wn==Ke?"end of input":"'"+(this.terminals_[Wn]||Wn)+"'"),this.parseError(Ln,{text:lt.match,token:this.terminals_[Wn]||Wn,line:lt.yylineno,loc:Jt,expected:Ir})}if(zn[0]instanceof Array&&zn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Dn+", token: "+Wn);switch(zn[0]){case 1:et.push(Wn),He.push(lt.yytext),Ge.push(lt.yylloc),et.push(zn[1]),Wn=null,fe=lt.yyleng,Ae=lt.yytext,Xe=lt.yylineno,Jt=lt.yylloc;break;case 2:if(ur=this.productions_[zn[1]][1],Cn.$=He[He.length-ur],Cn._$={first_line:Ge[Ge.length-(ur||1)].first_line,last_line:Ge[Ge.length-1].last_line,first_column:Ge[Ge.length-(ur||1)].first_column,last_column:Ge[Ge.length-1].last_column},wn&&(Cn._$.range=[Ge[Ge.length-(ur||1)].range[0],Ge[Ge.length-1].range[1]]),vn=this.performAction.apply(Cn,[Ae,fe,Xe,$t.yy,zn[1],He,Ge].concat(mt)),typeof vn<"u")return vn;ur&&(et=et.slice(0,-1*ur*2),He=He.slice(0,-1*ur),Ge=Ge.slice(0,-1*ur)),et.push(this.productions_[zn[1]][0]),He.push(Cn.$),Ge.push(Cn._$),On=Ye[et[et.length-2]][et[et.length-1]],et.push(On);break;case 3:return!0}}return!0}},sn=function(){var Ft={EOF:1,parseError:function(ht,et){if(this.yy.parser)this.yy.parser.parseError(ht,et);else throw new Error(ht)},setInput:function(Je,ht){return this.yy=ht||this.yy||{},this._input=Je,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Je=this._input[0];this.yytext+=Je,this.yyleng++,this.offset++,this.match+=Je,this.matched+=Je;var ht=Je.match(/(?:\r\n?|\n).*/g);return ht?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Je},unput:function(Je){var ht=Je.length,et=Je.split(/(?:\r\n?|\n)/g);this._input=Je+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ht),this.offset-=ht;var qe=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),et.length-1&&(this.yylineno-=et.length-1);var He=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:et?(et.length===qe.length?this.yylloc.first_column:0)+qe[qe.length-et.length].length-et[0].length:this.yylloc.first_column-ht},this.options.ranges&&(this.yylloc.range=[He[0],He[0]+this.yyleng-ht]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Je){this.unput(this.match.slice(Je))},pastInput:function(){var Je=this.matched.substr(0,this.matched.length-this.match.length);return(Je.length>20?"...":"")+Je.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Je=this.match;return Je.length<20&&(Je+=this._input.substr(0,20-Je.length)),(Je.substr(0,20)+(Je.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Je=this.pastInput(),ht=new Array(Je.length+1).join("-");return Je+this.upcomingInput()+` `+ht+"^"},test_match:function(Je,ht){var et,qe,He;if(this.options.backtrack_lexer&&(He={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(He.yylloc.range=this.yylloc.range.slice(0))),qe=Je[0].match(/(?:\r\n?|\n).*/g),qe&&(this.yylineno+=qe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:qe?qe[qe.length-1].length-qe[qe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Je[0].length},this.yytext+=Je[0],this.match+=Je[0],this.matches=Je,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Je[0].length),this.matched+=Je[0],et=this.performAction.call(this,this.yy,this,ht,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),et)return et;if(this._backtrack){for(var Ge in He)this[Ge]=He[Ge];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Je,ht,et,qe;this._more||(this.yytext="",this.match="");for(var He=this._currentRules(),Ge=0;Geht[0].length)){if(ht=et,qe=Ge,this.options.backtrack_lexer){if(Je=this.test_match(et,He[Ge]),Je!==!1)return Je;if(this._backtrack){ht=!1;continue}else return!1}else if(!this.options.flex)break}return ht?(Je=this.test_match(ht,He[qe]),Je!==!1?Je:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ht=this.next();return ht||this.lex()},begin:function(ht){this.conditionStack.push(ht)},popState:function(){var ht=this.conditionStack.length-1;return ht>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ht){return ht=this.conditionStack.length-1-Math.abs(ht||0),ht>=0?this.conditionStack[ht]:"INITIAL"},pushState:function(ht){this.begin(ht)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(ht,et,qe,He){switch(qe){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:return this.begin("node"),39;case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:return this.begin("rel_u"),66;case 53:return this.begin("rel_u"),66;case 54:return this.begin("rel_d"),67;case 55:return this.begin("rel_d"),67;case 56:return this.begin("rel_l"),68;case 57:return this.begin("rel_l"),68;case 58:return this.begin("rel_r"),69;case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return Ft}();ot.lexer=sn;function Kt(){this.yy={}}return Kt.prototype=ot,ot.Parser=Kt,new Kt}();JTe.parser=JTe;const Rca=JTe;let dT=[],PO=[""],iv="global",rT="",xA=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],ble=[],Lbt="",Dbt=!1,e5e=4,t5e=2;var yJn;const Ica=function(){return yJn},Nca=function(e){yJn=J0(e,Qt())},Oca=function(e,t,r,a,s,o,u,h,f){if(e==null||t===void 0||t===null||r===void 0||r===null||a===void 0||a===null)return;let p={};const m=ble.find(b=>b.from===t&&b.to===r);if(m?p=m:ble.push(p),p.type=e,p.from=t,p.to=r,p.label={text:a},s==null)p.techn={text:""};else if(typeof s=="object"){let[b,_]=Object.entries(s)[0];p[b]={text:_}}else p.techn={text:s};if(o==null)p.descr={text:""};else if(typeof o=="object"){let[b,_]=Object.entries(o)[0];p[b]={text:_}}else p.descr={text:o};if(typeof u=="object"){let[b,_]=Object.entries(u)[0];p[b]=_}else p.sprite=u;if(typeof h=="object"){let[b,_]=Object.entries(h)[0];p[b]=_}else p.tags=h;if(typeof f=="object"){let[b,_]=Object.entries(f)[0];p[b]=_}else p.link=f;p.wrap=lL()},Lca=function(e,t,r,a,s,o,u){if(t===null||r===null)return;let h={};const f=dT.find(p=>p.alias===t);if(f&&t===f.alias?h=f:(h.alias=t,dT.push(h)),r==null?h.label={text:""}:h.label={text:r},a==null)h.descr={text:""};else if(typeof a=="object"){let[p,m]=Object.entries(a)[0];h[p]={text:m}}else h.descr={text:a};if(typeof s=="object"){let[p,m]=Object.entries(s)[0];h[p]=m}else h.sprite=s;if(typeof o=="object"){let[p,m]=Object.entries(o)[0];h[p]=m}else h.tags=o;if(typeof u=="object"){let[p,m]=Object.entries(u)[0];h[p]=m}else h.link=u;h.typeC4Shape={text:e},h.parentBoundary=iv,h.wrap=lL()},Dca=function(e,t,r,a,s,o,u,h){if(t===null||r===null)return;let f={};const p=dT.find(m=>m.alias===t);if(p&&t===p.alias?f=p:(f.alias=t,dT.push(f)),r==null?f.label={text:""}:f.label={text:r},a==null)f.techn={text:""};else if(typeof a=="object"){let[m,b]=Object.entries(a)[0];f[m]={text:b}}else f.techn={text:a};if(s==null)f.descr={text:""};else if(typeof s=="object"){let[m,b]=Object.entries(s)[0];f[m]={text:b}}else f.descr={text:s};if(typeof o=="object"){let[m,b]=Object.entries(o)[0];f[m]=b}else f.sprite=o;if(typeof u=="object"){let[m,b]=Object.entries(u)[0];f[m]=b}else f.tags=u;if(typeof h=="object"){let[m,b]=Object.entries(h)[0];f[m]=b}else f.link=h;f.wrap=lL(),f.typeC4Shape={text:e},f.parentBoundary=iv},Mca=function(e,t,r,a,s,o,u,h){if(t===null||r===null)return;let f={};const p=dT.find(m=>m.alias===t);if(p&&t===p.alias?f=p:(f.alias=t,dT.push(f)),r==null?f.label={text:""}:f.label={text:r},a==null)f.techn={text:""};else if(typeof a=="object"){let[m,b]=Object.entries(a)[0];f[m]={text:b}}else f.techn={text:a};if(s==null)f.descr={text:""};else if(typeof s=="object"){let[m,b]=Object.entries(s)[0];f[m]={text:b}}else f.descr={text:s};if(typeof o=="object"){let[m,b]=Object.entries(o)[0];f[m]=b}else f.sprite=o;if(typeof u=="object"){let[m,b]=Object.entries(u)[0];f[m]=b}else f.tags=u;if(typeof h=="object"){let[m,b]=Object.entries(h)[0];f[m]=b}else f.link=h;f.wrap=lL(),f.typeC4Shape={text:e},f.parentBoundary=iv},Pca=function(e,t,r,a,s){if(e===null||t===null)return;let o={};const u=xA.find(h=>h.alias===e);if(u&&e===u.alias?o=u:(o.alias=e,xA.push(o)),t==null?o.label={text:""}:o.label={text:t},r==null)o.type={text:"system"};else if(typeof r=="object"){let[h,f]=Object.entries(r)[0];o[h]={text:f}}else o.type={text:r};if(typeof a=="object"){let[h,f]=Object.entries(a)[0];o[h]=f}else o.tags=a;if(typeof s=="object"){let[h,f]=Object.entries(s)[0];o[h]=f}else o.link=s;o.parentBoundary=iv,o.wrap=lL(),rT=iv,iv=e,PO.push(rT)},Bca=function(e,t,r,a,s){if(e===null||t===null)return;let o={};const u=xA.find(h=>h.alias===e);if(u&&e===u.alias?o=u:(o.alias=e,xA.push(o)),t==null?o.label={text:""}:o.label={text:t},r==null)o.type={text:"container"};else if(typeof r=="object"){let[h,f]=Object.entries(r)[0];o[h]={text:f}}else o.type={text:r};if(typeof a=="object"){let[h,f]=Object.entries(a)[0];o[h]=f}else o.tags=a;if(typeof s=="object"){let[h,f]=Object.entries(s)[0];o[h]=f}else o.link=s;o.parentBoundary=iv,o.wrap=lL(),rT=iv,iv=e,PO.push(rT)},Fca=function(e,t,r,a,s,o,u,h){if(t===null||r===null)return;let f={};const p=xA.find(m=>m.alias===t);if(p&&t===p.alias?f=p:(f.alias=t,xA.push(f)),r==null?f.label={text:""}:f.label={text:r},a==null)f.type={text:"node"};else if(typeof a=="object"){let[m,b]=Object.entries(a)[0];f[m]={text:b}}else f.type={text:a};if(s==null)f.descr={text:""};else if(typeof s=="object"){let[m,b]=Object.entries(s)[0];f[m]={text:b}}else f.descr={text:s};if(typeof u=="object"){let[m,b]=Object.entries(u)[0];f[m]=b}else f.tags=u;if(typeof h=="object"){let[m,b]=Object.entries(h)[0];f[m]=b}else f.link=h;f.nodeType=e,f.parentBoundary=iv,f.wrap=lL(),rT=iv,iv=t,PO.push(rT)},$ca=function(){iv=rT,PO.pop(),rT=PO.pop(),PO.push(rT)},Uca=function(e,t,r,a,s,o,u,h,f,p,m){let b=dT.find(_=>_.alias===t);if(!(b===void 0&&(b=xA.find(_=>_.alias===t),b===void 0))){if(r!=null)if(typeof r=="object"){let[_,w]=Object.entries(r)[0];b[_]=w}else b.bgColor=r;if(a!=null)if(typeof a=="object"){let[_,w]=Object.entries(a)[0];b[_]=w}else b.fontColor=a;if(s!=null)if(typeof s=="object"){let[_,w]=Object.entries(s)[0];b[_]=w}else b.borderColor=s;if(o!=null)if(typeof o=="object"){let[_,w]=Object.entries(o)[0];b[_]=w}else b.shadowing=o;if(u!=null)if(typeof u=="object"){let[_,w]=Object.entries(u)[0];b[_]=w}else b.shape=u;if(h!=null)if(typeof h=="object"){let[_,w]=Object.entries(h)[0];b[_]=w}else b.sprite=h;if(f!=null)if(typeof f=="object"){let[_,w]=Object.entries(f)[0];b[_]=w}else b.techn=f;if(p!=null)if(typeof p=="object"){let[_,w]=Object.entries(p)[0];b[_]=w}else b.legendText=p;if(m!=null)if(typeof m=="object"){let[_,w]=Object.entries(m)[0];b[_]=w}else b.legendSprite=m}},zca=function(e,t,r,a,s,o,u){const h=ble.find(f=>f.from===t&&f.to===r);if(h!==void 0){if(a!=null)if(typeof a=="object"){let[f,p]=Object.entries(a)[0];h[f]=p}else h.textColor=a;if(s!=null)if(typeof s=="object"){let[f,p]=Object.entries(s)[0];h[f]=p}else h.lineColor=s;if(o!=null)if(typeof o=="object"){let[f,p]=Object.entries(o)[0];h[f]=parseInt(p)}else h.offsetX=parseInt(o);if(u!=null)if(typeof u=="object"){let[f,p]=Object.entries(u)[0];h[f]=parseInt(p)}else h.offsetY=parseInt(u)}},Gca=function(e,t,r){let a=e5e,s=t5e;if(typeof t=="object"){const o=Object.values(t)[0];a=parseInt(o)}else a=parseInt(t);if(typeof r=="object"){const o=Object.values(r)[0];s=parseInt(o)}else s=parseInt(r);a>=1&&(e5e=a),s>=1&&(t5e=s)},qca=function(){return e5e},Hca=function(){return t5e},Vca=function(){return iv},Yca=function(){return rT},vJn=function(e){return e==null?dT:dT.filter(t=>t.parentBoundary===e)},jca=function(e){return dT.find(t=>t.alias===e)},Wca=function(e){return Object.keys(vJn(e))},_Jn=function(e){return e==null?xA:xA.filter(t=>t.parentBoundary===e)},Kca=_Jn,Xca=function(){return ble},Qca=function(){return Lbt},Zca=function(e){Dbt=e},lL=function(){return Dbt},Jca=function(){dT=[],xA=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],rT="",iv="global",PO=[""],ble=[],PO=[""],Lbt="",Dbt=!1,e5e=4,t5e=2},eua={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},tua={FILLED:0,OPEN:1},nua={LEFTOF:0,RIGHTOF:1,OVER:2},rua=function(e){Lbt=J0(e,Qt())},uht={addPersonOrSystem:Lca,addPersonOrSystemBoundary:Pca,addContainer:Dca,addContainerBoundary:Bca,addComponent:Mca,addDeploymentNode:Fca,popBoundaryParseStack:$ca,addRel:Oca,updateElStyle:Uca,updateRelStyle:zca,updateLayoutConfig:Gca,autoWrap:lL,setWrap:Zca,getC4ShapeArray:vJn,getC4Shape:jca,getC4ShapeKeys:Wca,getBoundaries:_Jn,getBoundarys:Kca,getCurrentBoundaryParse:Vca,getParentBoundaryParse:Yca,getRels:Xca,getTitle:Qca,getC4Type:Ica,getC4ShapeInRow:qca,getC4BoundaryInRow:Hca,setAccTitle:Pb,getAccTitle:Ev,getAccDescription:Sv,setAccDescription:xv,getConfig:()=>Qt().c4,clear:Jca,LINETYPE:eua,ARROWTYPE:tua,PLACEMENT:nua,setTitle:rua,setC4Type:Nca},Mbt=function(e,t){return d6e(e,t)},wJn=function(e,t,r,a,s,o){const u=e.append("image");u.attr("width",t),u.attr("height",r),u.attr("x",a),u.attr("y",s);let h=o.startsWith("data:image/png;base64")?o:U9(o);u.attr("xlink:href",h)},iua=(e,t,r)=>{const a=e.append("g");let s=0;for(let o of t){let u=o.textColor?o.textColor:"#444444",h=o.lineColor?o.lineColor:"#444444",f=o.offsetX?parseInt(o.offsetX):0,p=o.offsetY?parseInt(o.offsetY):0,m="";if(s===0){let _=a.append("line");_.attr("x1",o.startPoint.x),_.attr("y1",o.startPoint.y),_.attr("x2",o.endPoint.x),_.attr("y2",o.endPoint.y),_.attr("stroke-width","1"),_.attr("stroke",h),_.style("fill","none"),o.type!=="rel_b"&&_.attr("marker-end","url("+m+"#arrowhead)"),(o.type==="birel"||o.type==="rel_b")&&_.attr("marker-start","url("+m+"#arrowend)"),s=-1}else{let _=a.append("path");_.attr("fill","none").attr("stroke-width","1").attr("stroke",h).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",o.startPoint.x).replaceAll("starty",o.startPoint.y).replaceAll("controlx",o.startPoint.x+(o.endPoint.x-o.startPoint.x)/2-(o.endPoint.x-o.startPoint.x)/4).replaceAll("controly",o.startPoint.y+(o.endPoint.y-o.startPoint.y)/2).replaceAll("stopx",o.endPoint.x).replaceAll("stopy",o.endPoint.y)),o.type!=="rel_b"&&_.attr("marker-end","url("+m+"#arrowhead)"),(o.type==="birel"||o.type==="rel_b")&&_.attr("marker-start","url("+m+"#arrowend)")}let b=r.messageFont();N7(r)(o.label.text,a,Math.min(o.startPoint.x,o.endPoint.x)+Math.abs(o.endPoint.x-o.startPoint.x)/2+f,Math.min(o.startPoint.y,o.endPoint.y)+Math.abs(o.endPoint.y-o.startPoint.y)/2+p,o.label.width,o.label.height,{fill:u},b),o.techn&&o.techn.text!==""&&(b=r.messageFont(),N7(r)("["+o.techn.text+"]",a,Math.min(o.startPoint.x,o.endPoint.x)+Math.abs(o.endPoint.x-o.startPoint.x)/2+f,Math.min(o.startPoint.y,o.endPoint.y)+Math.abs(o.endPoint.y-o.startPoint.y)/2+r.messageFontSize+5+p,Math.max(o.label.width,o.techn.width),o.techn.height,{fill:u,"font-style":"italic"},b))}},aua=function(e,t,r){const a=e.append("g");let s=t.bgColor?t.bgColor:"none",o=t.borderColor?t.borderColor:"#444444",u=t.fontColor?t.fontColor:"black",h={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(h={"stroke-width":1});let f={x:t.x,y:t.y,fill:s,stroke:o,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:h};Mbt(a,f);let p=r.boundaryFont();p.fontWeight="bold",p.fontSize=p.fontSize+2,p.fontColor=u,N7(r)(t.label.text,a,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},p),t.type&&t.type.text!==""&&(p=r.boundaryFont(),p.fontColor=u,N7(r)(t.type.text,a,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},p)),t.descr&&t.descr.text!==""&&(p=r.boundaryFont(),p.fontSize=p.fontSize-2,p.fontColor=u,N7(r)(t.descr.text,a,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},p))},sua=function(e,t,r){var a;let s=t.bgColor?t.bgColor:r[t.typeC4Shape.text+"_bg_color"],o=t.borderColor?t.borderColor:r[t.typeC4Shape.text+"_border_color"],u=t.fontColor?t.fontColor:"#FFFFFF",h="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":h="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":h="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}const f=e.append("g");f.attr("class","person-man");const p=eU();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":p.x=t.x,p.y=t.y,p.fill=s,p.width=t.width,p.height=t.height,p.stroke=o,p.rx=2.5,p.ry=2.5,p.attrs={"stroke-width":.5},Mbt(f,p);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":f.append("path").attr("fill",s).attr("stroke-width","0.5").attr("stroke",o).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),f.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",o).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":f.append("path").attr("fill",s).attr("stroke-width","0.5").attr("stroke",o).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),f.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",o).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2));break}let m=gua(r,t.typeC4Shape.text);switch(f.append("text").attr("fill",u).attr("font-family",m.fontFamily).attr("font-size",m.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":wJn(f,48,48,t.x+t.width/2-24,t.y+t.image.Y,h);break}let b=r[t.typeC4Shape.text+"Font"]();return b.fontWeight="bold",b.fontSize=b.fontSize+2,b.fontColor=u,N7(r)(t.label.text,f,t.x,t.y+t.label.Y,t.width,t.height,{fill:u},b),b=r[t.typeC4Shape.text+"Font"](),b.fontColor=u,t.techn&&((a=t.techn)==null?void 0:a.text)!==""?N7(r)(t.techn.text,f,t.x,t.y+t.techn.Y,t.width,t.height,{fill:u,"font-style":"italic"},b):t.type&&t.type.text!==""&&N7(r)(t.type.text,f,t.x,t.y+t.type.Y,t.width,t.height,{fill:u,"font-style":"italic"},b),t.descr&&t.descr.text!==""&&(b=r.personFont(),b.fontColor=u,N7(r)(t.descr.text,f,t.x,t.y+t.descr.Y,t.width,t.height,{fill:u},b)),t.height},oua=function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},lua=function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},cua=function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},uua=function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},hua=function(e){e.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},dua=function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},fua=function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},pua=function(e){const r=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);r.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),r.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},gua=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),N7=function(){function e(s,o,u,h,f,p,m){const b=o.append("text").attr("x",u+f/2).attr("y",h+p/2+5).style("text-anchor","middle").text(s);a(b,m)}function t(s,o,u,h,f,p,m,b){const{fontSize:_,fontFamily:w,fontWeight:S}=b,C=s.split(mi.lineBreakRegex);for(let A=0;A=this.data.widthLimit||a>=this.data.widthLimit||this.nextData.cnt>EJn)&&(r=this.nextData.startx+t.margin+cs.nextLinePaddingX,s=this.nextData.stopy+t.margin*2,this.nextData.stopx=a=r+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=o=s+t.height,this.nextData.cnt=1),t.x=r,t.y=s,this.updateVal(this.data,"startx",r,Math.min),this.updateVal(this.data,"starty",s,Math.min),this.updateVal(this.data,"stopx",a,Math.max),this.updateVal(this.data,"stopy",o,Math.max),this.updateVal(this.nextData,"startx",r,Math.min),this.updateVal(this.nextData,"starty",s,Math.min),this.updateVal(this.nextData,"stopx",a,Math.max),this.updateVal(this.nextData,"stopy",o,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},dht(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}}const dht=function(e){Tg(cs,e),e.fontFamily&&(cs.personFontFamily=cs.systemFontFamily=cs.messageFontFamily=e.fontFamily),e.fontSize&&(cs.personFontSize=cs.systemFontSize=cs.messageFontSize=e.fontSize),e.fontWeight&&(cs.personFontWeight=cs.systemFontWeight=cs.messageFontWeight=e.fontWeight)},vie=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),sSe=e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),mua=e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight});function U3(e,t,r,a,s){if(!t[e].width)if(r)t[e].text=eZn(t[e].text,s,a),t[e].textLines=t[e].text.split(mi.lineBreakRegex).length,t[e].width=s,t[e].height=Jut(t[e].text,a);else{let o=t[e].text.split(mi.lineBreakRegex);t[e].textLines=o.length;let u=0;t[e].height=0,t[e].width=0;for(const h of o)t[e].width=Math.max(dA(h,a),t[e].width),u=Jut(h,a),t[e].height=t[e].height+u}}const SJn=function(e,t,r){t.x=r.data.startx,t.y=r.data.starty,t.width=r.data.stopx-r.data.startx,t.height=r.data.stopy-r.data.starty,t.label.y=cs.c4ShapeMargin-35;let a=t.wrap&&cs.wrap,s=sSe(cs);s.fontSize=s.fontSize+2,s.fontWeight="bold";let o=dA(t.label.text,s);U3("label",t,a,s,o),OC.drawBoundary(e,t,cs)},TJn=function(e,t,r,a){let s=0;for(const o of a){s=0;const u=r[o];let h=vie(cs,u.typeC4Shape.text);switch(h.fontSize=h.fontSize-2,u.typeC4Shape.width=dA("«"+u.typeC4Shape.text+"»",h),u.typeC4Shape.height=h.fontSize+2,u.typeC4Shape.Y=cs.c4ShapePadding,s=u.typeC4Shape.Y+u.typeC4Shape.height-4,u.image={width:0,height:0,Y:0},u.typeC4Shape.text){case"person":case"external_person":u.image.width=48,u.image.height=48,u.image.Y=s,s=u.image.Y+u.image.height;break}u.sprite&&(u.image.width=48,u.image.height=48,u.image.Y=s,s=u.image.Y+u.image.height);let f=u.wrap&&cs.wrap,p=cs.width-cs.c4ShapePadding*2,m=vie(cs,u.typeC4Shape.text);if(m.fontSize=m.fontSize+2,m.fontWeight="bold",U3("label",u,f,m,p),u.label.Y=s+8,s=u.label.Y+u.label.height,u.type&&u.type.text!==""){u.type.text="["+u.type.text+"]";let w=vie(cs,u.typeC4Shape.text);U3("type",u,f,w,p),u.type.Y=s+5,s=u.type.Y+u.type.height}else if(u.techn&&u.techn.text!==""){u.techn.text="["+u.techn.text+"]";let w=vie(cs,u.techn.text);U3("techn",u,f,w,p),u.techn.Y=s+5,s=u.techn.Y+u.techn.height}let b=s,_=u.label.width;if(u.descr&&u.descr.text!==""){let w=vie(cs,u.typeC4Shape.text);U3("descr",u,f,w,p),u.descr.Y=s+20,s=u.descr.Y+u.descr.height,_=Math.max(u.label.width,u.descr.width),b=s-u.descr.textLines*5}_=_+cs.c4ShapePadding,u.width=Math.max(u.width||cs.width,_,cs.width),u.height=Math.max(u.height||cs.height,b,cs.height),u.margin=u.margin||cs.c4ShapeMargin,e.insert(u),OC.drawC4Shape(t,u,cs)}e.bumpLastMargin(cs.c4ShapeMargin)};let Ux=class{constructor(t,r){this.x=t,this.y=r}},U5n=function(e,t){let r=e.x,a=e.y,s=t.x,o=t.y,u=r+e.width/2,h=a+e.height/2,f=Math.abs(r-s),p=Math.abs(a-o),m=p/f,b=e.height/e.width,_=null;return a==o&&rs?_=new Ux(r,h):r==s&&ao&&(_=new Ux(u,a)),r>s&&a=m?_=new Ux(r,h+m*e.width/2):_=new Ux(u-f/p*e.height/2,a+e.height):r=m?_=new Ux(r+e.width,h+m*e.width/2):_=new Ux(u+f/p*e.height/2,a+e.height):ro?b>=m?_=new Ux(r+e.width,h-m*e.width/2):_=new Ux(u+e.height/2*f/p,a):r>s&&a>o&&(b>=m?_=new Ux(r,h-e.width/2*m):_=new Ux(u-e.height/2*f/p,a)),_},bua=function(e,t){let r={x:0,y:0};r.x=t.x+t.width/2,r.y=t.y+t.height/2;let a=U5n(e,r);r.x=e.x+e.width/2,r.y=e.y+e.height/2;let s=U5n(t,r);return{startPoint:a,endPoint:s}};const yua=function(e,t,r,a){let s=0;for(let o of t){s=s+1;let u=o.wrap&&cs.wrap,h=mua(cs);a.db.getC4Type()==="C4Dynamic"&&(o.label.text=s+": "+o.label.text);let p=dA(o.label.text,h);U3("label",o,u,h,p),o.techn&&o.techn.text!==""&&(p=dA(o.techn.text,h),U3("techn",o,u,h,p)),o.descr&&o.descr.text!==""&&(p=dA(o.descr.text,h),U3("descr",o,u,h,p));let m=r(o.from),b=r(o.to),_=bua(m,b);o.startPoint=_.startPoint,o.endPoint=_.endPoint}OC.drawRels(e,t,cs)};function CJn(e,t,r,a,s){let o=new xJn(s);o.data.widthLimit=r.data.widthLimit/Math.min(hht,a.length);for(let[u,h]of a.entries()){let f=0;h.image={width:0,height:0,Y:0},h.sprite&&(h.image.width=48,h.image.height=48,h.image.Y=f,f=h.image.Y+h.image.height);let p=h.wrap&&cs.wrap,m=sSe(cs);if(m.fontSize=m.fontSize+2,m.fontWeight="bold",U3("label",h,p,m,o.data.widthLimit),h.label.Y=f+8,f=h.label.Y+h.label.height,h.type&&h.type.text!==""){h.type.text="["+h.type.text+"]";let S=sSe(cs);U3("type",h,p,S,o.data.widthLimit),h.type.Y=f+5,f=h.type.Y+h.type.height}if(h.descr&&h.descr.text!==""){let S=sSe(cs);S.fontSize=S.fontSize-2,U3("descr",h,p,S,o.data.widthLimit),h.descr.Y=f+20,f=h.descr.Y+h.descr.height}if(u==0||u%hht===0){let S=r.data.startx+cs.diagramMarginX,C=r.data.stopy+cs.diagramMarginY+f;o.setData(S,S,C,C)}else{let S=o.data.stopx!==o.data.startx?o.data.stopx+cs.diagramMarginX:o.data.startx,C=o.data.starty;o.setData(S,S,C,C)}o.name=h.alias;let b=s.db.getC4ShapeArray(h.alias),_=s.db.getC4ShapeKeys(h.alias);_.length>0&&TJn(o,e,b,_),t=h.alias;let w=s.db.getBoundarys(t);w.length>0&&CJn(e,t,o,w,s),h.alias!=="global"&&SJn(e,h,o),r.data.stopy=Math.max(o.data.stopy+cs.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(o.data.stopx+cs.c4ShapeMargin,r.data.stopx),n5e=Math.max(n5e,r.data.stopx),r5e=Math.max(r5e,r.data.stopy)}}const vua=function(e,t,r,a){cs=Qt().c4;const s=Qt().securityLevel;let o;s==="sandbox"&&(o=gn("#i"+t));const u=gn(s==="sandbox"?o.nodes()[0].contentDocument.body:"body");let h=a.db;a.db.setWrap(cs.wrap),EJn=h.getC4ShapeInRow(),hht=h.getC4BoundaryInRow(),ut.debug(`C:${JSON.stringify(cs,null,2)}`);const f=s==="sandbox"?u.select(`[id="${t}"]`):gn(`[id="${t}"]`);OC.insertComputerIcon(f),OC.insertDatabaseIcon(f),OC.insertClockIcon(f);let p=new xJn(a);p.setData(cs.diagramMarginX,cs.diagramMarginX,cs.diagramMarginY,cs.diagramMarginY),p.data.widthLimit=screen.availWidth,n5e=cs.diagramMarginX,r5e=cs.diagramMarginY;const m=a.db.getTitle();let b=a.db.getBoundarys("");CJn(f,"",p,b,a),OC.insertArrowHead(f),OC.insertArrowEnd(f),OC.insertArrowCrossHead(f),OC.insertArrowFilledHead(f),yua(f,a.db.getRels(),a.db.getC4Shape,a),p.data.stopx=n5e,p.data.stopy=r5e;const _=p.data;let S=_.stopy-_.starty+2*cs.diagramMarginY;const A=_.stopx-_.startx+2*cs.diagramMarginX;m&&f.append("text").text(m).attr("x",(_.stopx-_.startx)/2-4*cs.diagramMarginX).attr("y",_.starty+cs.diagramMarginY),Db(f,S,A,cs.useMaxWidth);const k=m?60:0;f.attr("viewBox",_.startx-cs.diagramMarginX+" -"+(cs.diagramMarginY+k)+" "+A+" "+(S+k)),ut.debug("models:",_)},z5n={drawPersonOrSystemArray:TJn,drawBoundary:SJn,setConf:dht,draw:vua},_ua=e=>`.person { stroke: ${e.personBorder}; fill: ${e.personBkg}; } `,wua=_ua,Eua={parser:Rca,db:uht,renderer:z5n,styles:wua,init:({c4:e,wrap:t})=>{z5n.setConf(e),uht.setWrap(t)}},xua=Object.freeze(Object.defineProperty({__proto__:null,diagram:Eua},Symbol.toStringTag,{value:"Module"}));var fht=function(){var e=function(Rs,Vr,Ii,Pa){for(Ii=Ii||{},Pa=Rs.length;Pa--;Ii[Rs[Pa]]=Vr);return Ii},t=[1,4],r=[1,3],a=[1,5],s=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],o=[2,2],u=[1,13],h=[1,14],f=[1,15],p=[1,16],m=[1,23],b=[1,25],_=[1,26],w=[1,27],S=[1,49],C=[1,48],A=[1,29],k=[1,30],I=[1,31],N=[1,32],L=[1,33],P=[1,44],M=[1,46],F=[1,42],U=[1,47],$=[1,43],G=[1,50],B=[1,45],Z=[1,51],z=[1,52],Y=[1,34],W=[1,35],Q=[1,36],V=[1,37],j=[1,57],ee=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],te=[1,61],ne=[1,60],se=[1,62],ie=[8,9,11,73,75],ge=[1,88],ce=[1,93],be=[1,92],ve=[1,89],De=[1,85],ye=[1,91],Ee=[1,87],he=[1,94],we=[1,90],Ce=[1,95],Ie=[1,86],Le=[8,9,10,11,73,75],Fe=[8,9,10,11,44,73,75],Ve=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Oe=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],Dt=[42,58,86,99,102,103,106,108,111,112,113],ot=[1,121],sn=[1,120],Kt=[1,128],Ft=[1,142],Je=[1,143],ht=[1,144],et=[1,145],qe=[1,130],He=[1,132],Ge=[1,136],Ye=[1,137],Ae=[1,138],Xe=[1,139],fe=[1,140],Qe=[1,141],Ke=[1,146],mt=[1,147],lt=[1,126],$t=[1,127],Ut=[1,134],Jt=[1,129],wn=[1,133],Vn=[1,131],Wn=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Dn=[1,149],zn=[8,9,11],vn=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],Cn=[1,169],Ar=[1,165],ur=[1,166],On=[1,170],Ir=[1,167],Ln=[1,168],pr=[75,113,116],Cr=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Zr=[10,103],Pr=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],Ci=[1,235],ds=[1,233],ta=[1,237],Os=[1,231],uo=[1,232],Ls=[1,234],La=[1,236],to=[1,238],Fi=[1,255],Pt=[8,9,11,103],St=[8,9,10,11,58,81,102,103,106,107,108,109],Un={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(Vr,Ii,Pa,Or,no,dt,Wi){var Tt=dt.length-1;switch(no){case 2:this.$=[];break;case 3:(!Array.isArray(dt[Tt])||dt[Tt].length>0)&&dt[Tt-1].push(dt[Tt]),this.$=dt[Tt-1];break;case 4:case 176:this.$=dt[Tt];break;case 11:Or.setDirection("TB"),this.$="TB";break;case 12:Or.setDirection(dt[Tt-1]),this.$=dt[Tt-1];break;case 27:this.$=dt[Tt-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=Or.addSubGraph(dt[Tt-6],dt[Tt-1],dt[Tt-4]);break;case 34:this.$=Or.addSubGraph(dt[Tt-3],dt[Tt-1],dt[Tt-3]);break;case 35:this.$=Or.addSubGraph(void 0,dt[Tt-1],void 0);break;case 37:this.$=dt[Tt].trim(),Or.setAccTitle(this.$);break;case 38:case 39:this.$=dt[Tt].trim(),Or.setAccDescription(this.$);break;case 43:Or.addLink(dt[Tt-2].stmt,dt[Tt],dt[Tt-1]),this.$={stmt:dt[Tt],nodes:dt[Tt].concat(dt[Tt-2].nodes)};break;case 44:Or.addLink(dt[Tt-3].stmt,dt[Tt-1],dt[Tt-2]),this.$={stmt:dt[Tt-1],nodes:dt[Tt-1].concat(dt[Tt-3].nodes)};break;case 45:this.$={stmt:dt[Tt-1],nodes:dt[Tt-1]};break;case 46:this.$={stmt:dt[Tt],nodes:dt[Tt]};break;case 47:this.$=[dt[Tt]];break;case 48:this.$=dt[Tt-4].concat(dt[Tt]);break;case 49:this.$=dt[Tt];break;case 50:this.$=dt[Tt-2],Or.setClass(dt[Tt-2],dt[Tt]);break;case 51:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"square");break;case 52:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"doublecircle");break;case 53:this.$=dt[Tt-5],Or.addVertex(dt[Tt-5],dt[Tt-2],"circle");break;case 54:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"ellipse");break;case 55:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"stadium");break;case 56:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"subroutine");break;case 57:this.$=dt[Tt-7],Or.addVertex(dt[Tt-7],dt[Tt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[dt[Tt-5],dt[Tt-3]]]));break;case 58:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"cylinder");break;case 59:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"round");break;case 60:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"diamond");break;case 61:this.$=dt[Tt-5],Or.addVertex(dt[Tt-5],dt[Tt-2],"hexagon");break;case 62:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"odd");break;case 63:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"trapezoid");break;case 64:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"inv_trapezoid");break;case 65:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"lean_right");break;case 66:this.$=dt[Tt-3],Or.addVertex(dt[Tt-3],dt[Tt-1],"lean_left");break;case 67:this.$=dt[Tt],Or.addVertex(dt[Tt]);break;case 68:dt[Tt-1].text=dt[Tt],this.$=dt[Tt-1];break;case 69:case 70:dt[Tt-2].text=dt[Tt-1],this.$=dt[Tt-2];break;case 71:this.$=dt[Tt];break;case 72:var xr=Or.destructLink(dt[Tt],dt[Tt-2]);this.$={type:xr.type,stroke:xr.stroke,length:xr.length,text:dt[Tt-1]};break;case 73:this.$={text:dt[Tt],type:"text"};break;case 74:this.$={text:dt[Tt-1].text+""+dt[Tt],type:dt[Tt-1].type};break;case 75:this.$={text:dt[Tt],type:"string"};break;case 76:this.$={text:dt[Tt],type:"markdown"};break;case 77:var xr=Or.destructLink(dt[Tt]);this.$={type:xr.type,stroke:xr.stroke,length:xr.length};break;case 78:this.$=dt[Tt-1];break;case 79:this.$={text:dt[Tt],type:"text"};break;case 80:this.$={text:dt[Tt-1].text+""+dt[Tt],type:dt[Tt-1].type};break;case 81:this.$={text:dt[Tt],type:"string"};break;case 82:case 97:this.$={text:dt[Tt],type:"markdown"};break;case 94:this.$={text:dt[Tt],type:"text"};break;case 95:this.$={text:dt[Tt-1].text+""+dt[Tt],type:dt[Tt-1].type};break;case 96:this.$={text:dt[Tt],type:"text"};break;case 98:this.$=dt[Tt-4],Or.addClass(dt[Tt-2],dt[Tt]);break;case 99:this.$=dt[Tt-4],Or.setClass(dt[Tt-2],dt[Tt]);break;case 100:case 108:this.$=dt[Tt-1],Or.setClickEvent(dt[Tt-1],dt[Tt]);break;case 101:case 109:this.$=dt[Tt-3],Or.setClickEvent(dt[Tt-3],dt[Tt-2]),Or.setTooltip(dt[Tt-3],dt[Tt]);break;case 102:this.$=dt[Tt-2],Or.setClickEvent(dt[Tt-2],dt[Tt-1],dt[Tt]);break;case 103:this.$=dt[Tt-4],Or.setClickEvent(dt[Tt-4],dt[Tt-3],dt[Tt-2]),Or.setTooltip(dt[Tt-4],dt[Tt]);break;case 104:this.$=dt[Tt-2],Or.setLink(dt[Tt-2],dt[Tt]);break;case 105:this.$=dt[Tt-4],Or.setLink(dt[Tt-4],dt[Tt-2]),Or.setTooltip(dt[Tt-4],dt[Tt]);break;case 106:this.$=dt[Tt-4],Or.setLink(dt[Tt-4],dt[Tt-2],dt[Tt]);break;case 107:this.$=dt[Tt-6],Or.setLink(dt[Tt-6],dt[Tt-4],dt[Tt]),Or.setTooltip(dt[Tt-6],dt[Tt-2]);break;case 110:this.$=dt[Tt-1],Or.setLink(dt[Tt-1],dt[Tt]);break;case 111:this.$=dt[Tt-3],Or.setLink(dt[Tt-3],dt[Tt-2]),Or.setTooltip(dt[Tt-3],dt[Tt]);break;case 112:this.$=dt[Tt-3],Or.setLink(dt[Tt-3],dt[Tt-2],dt[Tt]);break;case 113:this.$=dt[Tt-5],Or.setLink(dt[Tt-5],dt[Tt-4],dt[Tt]),Or.setTooltip(dt[Tt-5],dt[Tt-2]);break;case 114:this.$=dt[Tt-4],Or.addVertex(dt[Tt-2],void 0,void 0,dt[Tt]);break;case 115:this.$=dt[Tt-4],Or.updateLink([dt[Tt-2]],dt[Tt]);break;case 116:this.$=dt[Tt-4],Or.updateLink(dt[Tt-2],dt[Tt]);break;case 117:this.$=dt[Tt-8],Or.updateLinkInterpolate([dt[Tt-6]],dt[Tt-2]),Or.updateLink([dt[Tt-6]],dt[Tt]);break;case 118:this.$=dt[Tt-8],Or.updateLinkInterpolate(dt[Tt-6],dt[Tt-2]),Or.updateLink(dt[Tt-6],dt[Tt]);break;case 119:this.$=dt[Tt-6],Or.updateLinkInterpolate([dt[Tt-4]],dt[Tt]);break;case 120:this.$=dt[Tt-6],Or.updateLinkInterpolate(dt[Tt-4],dt[Tt]);break;case 121:case 123:this.$=[dt[Tt]];break;case 122:case 124:dt[Tt-2].push(dt[Tt]),this.$=dt[Tt-2];break;case 126:this.$=dt[Tt-1]+dt[Tt];break;case 174:this.$=dt[Tt];break;case 175:this.$=dt[Tt-1]+""+dt[Tt];break;case 177:this.$=dt[Tt-1]+""+dt[Tt];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:t,10:r,12:a},{1:[3]},e(s,o,{5:6}),{4:7,9:t,10:r,12:a},{4:8,9:t,10:r,12:a},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:u,9:h,10:f,11:p,20:17,22:18,23:19,24:20,25:21,26:22,27:m,33:24,34:b,36:_,38:w,40:28,41:38,42:S,43:39,45:40,58:C,81:A,82:k,83:I,84:N,85:L,86:P,99:M,102:F,103:U,106:$,108:G,110:41,111:B,112:Z,113:z,118:Y,119:W,120:Q,121:V},e(s,[2,9]),e(s,[2,10]),e(s,[2,11]),{8:[1,54],9:[1,55],10:j,15:53,18:56},e(ee,[2,3]),e(ee,[2,4]),e(ee,[2,5]),e(ee,[2,6]),e(ee,[2,7]),e(ee,[2,8]),{8:te,9:ne,11:se,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:te,9:ne,11:se,21:66},{8:te,9:ne,11:se,21:67},{8:te,9:ne,11:se,21:68},{8:te,9:ne,11:se,21:69},{8:te,9:ne,11:se,21:70},{8:te,9:ne,10:[1,71],11:se,21:72},e(ee,[2,36]),{35:[1,73]},{37:[1,74]},e(ee,[2,39]),e(ie,[2,46],{18:75,10:j}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:ge,42:ce,58:be,77:[1,83],86:ve,92:[1,80],94:[1,81],98:82,102:De,103:ye,106:Ee,108:he,111:we,112:Ce,113:Ie,117:84},e(ee,[2,178]),e(ee,[2,179]),e(ee,[2,180]),e(ee,[2,181]),e(Le,[2,47]),e(Le,[2,49],{44:[1,96]}),e(Fe,[2,67],{110:109,29:[1,97],42:S,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:C,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:P,99:M,102:F,103:U,106:$,108:G,111:B,112:Z,113:z}),e(Ve,[2,174]),e(Ve,[2,135]),e(Ve,[2,136]),e(Ve,[2,137]),e(Ve,[2,138]),e(Ve,[2,139]),e(Ve,[2,140]),e(Ve,[2,141]),e(Ve,[2,142]),e(Ve,[2,143]),e(Ve,[2,144]),e(Ve,[2,145]),e(s,[2,12]),e(s,[2,18]),e(s,[2,19]),{9:[1,110]},e(Oe,[2,26],{18:111,10:j}),e(ee,[2,27]),{40:112,41:38,42:S,43:39,45:40,58:C,86:P,99:M,102:F,103:U,106:$,108:G,110:41,111:B,112:Z,113:z},e(ee,[2,40]),e(ee,[2,41]),e(ee,[2,42]),e(Dt,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:ot,116:sn},e([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),e(ee,[2,28]),e(ee,[2,29]),e(ee,[2,30]),e(ee,[2,31]),e(ee,[2,32]),{10:Kt,12:Ft,14:Je,27:ht,28:122,32:et,42:qe,58:He,73:Ge,77:[1,124],78:[1,125],80:135,81:Ye,82:Ae,83:Xe,84:fe,85:Qe,86:Ke,87:mt,88:123,102:lt,106:$t,108:Ut,111:Jt,112:wn,113:Vn},e(Wn,o,{5:148}),e(ee,[2,37]),e(ee,[2,38]),e(ie,[2,45],{42:Dn}),{42:S,45:150,58:C,86:P,99:M,102:F,103:U,106:$,108:G,110:41,111:B,112:Z,113:z},{99:[1,151],100:152,102:[1,153]},{42:S,45:154,58:C,86:P,99:M,102:F,103:U,106:$,108:G,110:41,111:B,112:Z,113:z},{42:S,45:155,58:C,86:P,99:M,102:F,103:U,106:$,108:G,110:41,111:B,112:Z,113:z},e(zn,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},e(zn,[2,108],{117:160,10:[1,159],14:ge,42:ce,58:be,86:ve,102:De,103:ye,106:Ee,108:he,111:we,112:Ce,113:Ie}),e(zn,[2,110],{10:[1,161]}),e(vn,[2,176]),e(vn,[2,163]),e(vn,[2,164]),e(vn,[2,165]),e(vn,[2,166]),e(vn,[2,167]),e(vn,[2,168]),e(vn,[2,169]),e(vn,[2,170]),e(vn,[2,171]),e(vn,[2,172]),e(vn,[2,173]),{42:S,45:162,58:C,86:P,99:M,102:F,103:U,106:$,108:G,110:41,111:B,112:Z,113:z},{30:163,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{30:171,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{30:173,48:[1,172],65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{30:174,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{30:175,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{30:176,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{106:[1,177]},{30:178,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{30:179,63:[1,180],65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{30:181,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{30:182,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{30:183,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},e(Ve,[2,175]),e(s,[2,20]),e(Oe,[2,25]),e(ie,[2,43],{18:184,10:j}),e(Dt,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{75:[1,188],76:189,113:ot,116:sn},e(pr,[2,73]),e(pr,[2,75]),e(pr,[2,76]),e(pr,[2,161]),e(pr,[2,162]),{8:te,9:ne,10:Kt,11:se,12:Ft,14:Je,21:191,27:ht,29:[1,190],32:et,42:qe,58:He,73:Ge,80:135,81:Ye,82:Ae,83:Xe,84:fe,85:Qe,86:Ke,87:mt,88:192,102:lt,106:$t,108:Ut,111:Jt,112:wn,113:Vn},e(Cr,[2,94]),e(Cr,[2,96]),e(Cr,[2,97]),e(Cr,[2,150]),e(Cr,[2,151]),e(Cr,[2,152]),e(Cr,[2,153]),e(Cr,[2,154]),e(Cr,[2,155]),e(Cr,[2,156]),e(Cr,[2,157]),e(Cr,[2,158]),e(Cr,[2,159]),e(Cr,[2,160]),e(Cr,[2,83]),e(Cr,[2,84]),e(Cr,[2,85]),e(Cr,[2,86]),e(Cr,[2,87]),e(Cr,[2,88]),e(Cr,[2,89]),e(Cr,[2,90]),e(Cr,[2,91]),e(Cr,[2,92]),e(Cr,[2,93]),{6:11,7:12,8:u,9:h,10:f,11:p,20:17,22:18,23:19,24:20,25:21,26:22,27:m,32:[1,193],33:24,34:b,36:_,38:w,40:28,41:38,42:S,43:39,45:40,58:C,81:A,82:k,83:I,84:N,85:L,86:P,99:M,102:F,103:U,106:$,108:G,110:41,111:B,112:Z,113:z,118:Y,119:W,120:Q,121:V},{10:j,18:194},{10:[1,195],42:S,58:C,86:P,99:M,102:F,103:U,106:$,108:G,110:109,111:B,112:Z,113:z},{10:[1,196]},{10:[1,197],103:[1,198]},e(Zr,[2,121]),{10:[1,199],42:S,58:C,86:P,99:M,102:F,103:U,106:$,108:G,110:109,111:B,112:Z,113:z},{10:[1,200],42:S,58:C,86:P,99:M,102:F,103:U,106:$,108:G,110:109,111:B,112:Z,113:z},{77:[1,201]},e(zn,[2,102],{10:[1,202]}),e(zn,[2,104],{10:[1,203]}),{77:[1,204]},e(vn,[2,177]),{77:[1,205],95:[1,206]},e(Le,[2,50],{110:109,42:S,58:C,86:P,99:M,102:F,103:U,106:$,108:G,111:B,112:Z,113:z}),{31:[1,207],65:Cn,79:208,113:On,114:Ir,115:Ln},e(Pr,[2,79]),e(Pr,[2,81]),e(Pr,[2,82]),e(Pr,[2,146]),e(Pr,[2,147]),e(Pr,[2,148]),e(Pr,[2,149]),{47:[1,209],65:Cn,79:208,113:On,114:Ir,115:Ln},{30:210,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{49:[1,211],65:Cn,79:208,113:On,114:Ir,115:Ln},{51:[1,212],65:Cn,79:208,113:On,114:Ir,115:Ln},{53:[1,213],65:Cn,79:208,113:On,114:Ir,115:Ln},{55:[1,214],65:Cn,79:208,113:On,114:Ir,115:Ln},{58:[1,215]},{62:[1,216],65:Cn,79:208,113:On,114:Ir,115:Ln},{64:[1,217],65:Cn,79:208,113:On,114:Ir,115:Ln},{30:218,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},{31:[1,219],65:Cn,79:208,113:On,114:Ir,115:Ln},{65:Cn,67:[1,220],69:[1,221],79:208,113:On,114:Ir,115:Ln},{65:Cn,67:[1,223],69:[1,222],79:208,113:On,114:Ir,115:Ln},e(ie,[2,44],{42:Dn}),e(Dt,[2,70]),e(Dt,[2,69]),{60:[1,224],65:Cn,79:208,113:On,114:Ir,115:Ln},e(Dt,[2,72]),e(pr,[2,74]),{30:225,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},e(Wn,o,{5:226}),e(Cr,[2,95]),e(ee,[2,35]),{41:227,42:S,43:39,45:40,58:C,86:P,99:M,102:F,103:U,106:$,108:G,110:41,111:B,112:Z,113:z},{10:Ci,58:ds,81:ta,89:228,102:Os,104:229,105:230,106:uo,107:Ls,108:La,109:to},{10:Ci,58:ds,81:ta,89:239,101:[1,240],102:Os,104:229,105:230,106:uo,107:Ls,108:La,109:to},{10:Ci,58:ds,81:ta,89:241,101:[1,242],102:Os,104:229,105:230,106:uo,107:Ls,108:La,109:to},{102:[1,243]},{10:Ci,58:ds,81:ta,89:244,102:Os,104:229,105:230,106:uo,107:Ls,108:La,109:to},{42:S,45:245,58:C,86:P,99:M,102:F,103:U,106:$,108:G,110:41,111:B,112:Z,113:z},e(zn,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},e(zn,[2,109]),e(zn,[2,111],{10:[1,249]}),e(zn,[2,112]),e(Fe,[2,51]),e(Pr,[2,80]),e(Fe,[2,52]),{49:[1,250],65:Cn,79:208,113:On,114:Ir,115:Ln},e(Fe,[2,59]),e(Fe,[2,54]),e(Fe,[2,55]),e(Fe,[2,56]),{106:[1,251]},e(Fe,[2,58]),e(Fe,[2,60]),{64:[1,252],65:Cn,79:208,113:On,114:Ir,115:Ln},e(Fe,[2,62]),e(Fe,[2,63]),e(Fe,[2,65]),e(Fe,[2,64]),e(Fe,[2,66]),e([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:Cn,79:208,113:On,114:Ir,115:Ln},{6:11,7:12,8:u,9:h,10:f,11:p,20:17,22:18,23:19,24:20,25:21,26:22,27:m,32:[1,254],33:24,34:b,36:_,38:w,40:28,41:38,42:S,43:39,45:40,58:C,81:A,82:k,83:I,84:N,85:L,86:P,99:M,102:F,103:U,106:$,108:G,110:41,111:B,112:Z,113:z,118:Y,119:W,120:Q,121:V},e(Le,[2,48]),e(zn,[2,114],{103:Fi}),e(Pt,[2,123],{105:256,10:Ci,58:ds,81:ta,102:Os,106:uo,107:Ls,108:La,109:to}),e(St,[2,125]),e(St,[2,127]),e(St,[2,128]),e(St,[2,129]),e(St,[2,130]),e(St,[2,131]),e(St,[2,132]),e(St,[2,133]),e(St,[2,134]),e(zn,[2,115],{103:Fi}),{10:[1,257]},e(zn,[2,116],{103:Fi}),{10:[1,258]},e(Zr,[2,122]),e(zn,[2,98],{103:Fi}),e(zn,[2,99],{110:109,42:S,58:C,86:P,99:M,102:F,103:U,106:$,108:G,111:B,112:Z,113:z}),e(zn,[2,103]),e(zn,[2,105],{10:[1,259]}),e(zn,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:te,9:ne,11:se,21:264},e(ee,[2,34]),{10:Ci,58:ds,81:ta,102:Os,104:265,105:230,106:uo,107:Ls,108:La,109:to},e(St,[2,126]),{14:ge,42:ce,58:be,86:ve,98:266,102:De,103:ye,106:Ee,108:he,111:we,112:Ce,113:Ie,117:84},{14:ge,42:ce,58:be,86:ve,98:267,102:De,103:ye,106:Ee,108:he,111:we,112:Ce,113:Ie,117:84},{95:[1,268]},e(zn,[2,113]),e(Fe,[2,53]),{30:269,65:Cn,77:Ar,78:ur,79:164,113:On,114:Ir,115:Ln},e(Fe,[2,61]),e(Wn,o,{5:270}),e(Pt,[2,124],{105:256,10:Ci,58:ds,81:ta,102:Os,106:uo,107:Ls,108:La,109:to}),e(zn,[2,119],{117:160,10:[1,271],14:ge,42:ce,58:be,86:ve,102:De,103:ye,106:Ee,108:he,111:we,112:Ce,113:Ie}),e(zn,[2,120],{117:160,10:[1,272],14:ge,42:ce,58:be,86:ve,102:De,103:ye,106:Ee,108:he,111:we,112:Ce,113:Ie}),e(zn,[2,107]),{31:[1,273],65:Cn,79:208,113:On,114:Ir,115:Ln},{6:11,7:12,8:u,9:h,10:f,11:p,20:17,22:18,23:19,24:20,25:21,26:22,27:m,32:[1,274],33:24,34:b,36:_,38:w,40:28,41:38,42:S,43:39,45:40,58:C,81:A,82:k,83:I,84:N,85:L,86:P,99:M,102:F,103:U,106:$,108:G,110:41,111:B,112:Z,113:z,118:Y,119:W,120:Q,121:V},{10:Ci,58:ds,81:ta,89:275,102:Os,104:229,105:230,106:uo,107:Ls,108:La,109:to},{10:Ci,58:ds,81:ta,89:276,102:Os,104:229,105:230,106:uo,107:Ls,108:La,109:to},e(Fe,[2,57]),e(ee,[2,33]),e(zn,[2,117],{103:Fi}),e(zn,[2,118],{103:Fi})],defaultActions:{},parseError:function(Vr,Ii){if(Ii.recoverable)this.trace(Vr);else{var Pa=new Error(Vr);throw Pa.hash=Ii,Pa}},parse:function(Vr){var Ii=this,Pa=[0],Or=[],no=[null],dt=[],Wi=this.table,Tt="",xr=0,qs=0,Rt=2,Bb=1,Gt=dt.slice.call(arguments,1),Ds=Object.create(this.lexer),Lm={yy:{}};for(var BS in this.yy)Object.prototype.hasOwnProperty.call(this.yy,BS)&&(Lm.yy[BS]=this.yy[BS]);Ds.setInput(Vr,Lm.yy),Lm.yy.lexer=Ds,Lm.yy.parser=this,typeof Ds.yylloc>"u"&&(Ds.yylloc={});var eE=Ds.yylloc;dt.push(eE);var uL=Ds.options&&Ds.options.ranges;typeof Lm.yy.parseError=="function"?this.parseError=Lm.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rd(){var Pf;return Pf=Or.pop()||Ds.lex()||Bb,typeof Pf!="number"&&(Pf instanceof Array&&(Or=Pf,Pf=Or.pop()),Pf=Ii.symbols_[Pf]||Pf),Pf}for(var Fh,Fb,e1,wT,d_={},tE,qu,$b,Mf;;){if(Fb=Pa[Pa.length-1],this.defaultActions[Fb]?e1=this.defaultActions[Fb]:((Fh===null||typeof Fh>"u")&&(Fh=rd()),e1=Wi[Fb]&&Wi[Fb][Fh]),typeof e1>"u"||!e1.length||!e1[0]){var nE="";Mf=[];for(tE in Wi[Fb])this.terminals_[tE]&&tE>Rt&&Mf.push("'"+this.terminals_[tE]+"'");Ds.showPosition?nE="Parse error on line "+(xr+1)+`: `+Ds.showPosition()+` Expecting `+Mf.join(", ")+", got '"+(this.terminals_[Fh]||Fh)+"'":nE="Parse error on line "+(xr+1)+": Unexpected "+(Fh==Bb?"end of input":"'"+(this.terminals_[Fh]||Fh)+"'"),this.parseError(nE,{text:Ds.match,token:this.terminals_[Fh]||Fh,line:Ds.yylineno,loc:eE,expected:Mf})}if(e1[0]instanceof Array&&e1.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Fb+", token: "+Fh);switch(e1[0]){case 1:Pa.push(Fh),no.push(Ds.yytext),dt.push(Ds.yylloc),Pa.push(e1[1]),Fh=null,qs=Ds.yyleng,Tt=Ds.yytext,xr=Ds.yylineno,eE=Ds.yylloc;break;case 2:if(qu=this.productions_[e1[1]][1],d_.$=no[no.length-qu],d_._$={first_line:dt[dt.length-(qu||1)].first_line,last_line:dt[dt.length-1].last_line,first_column:dt[dt.length-(qu||1)].first_column,last_column:dt[dt.length-1].last_column},uL&&(d_._$.range=[dt[dt.length-(qu||1)].range[0],dt[dt.length-1].range[1]]),wT=this.performAction.apply(d_,[Tt,qs,xr,Lm.yy,e1[1],no,dt].concat(Gt)),typeof wT<"u")return wT;qu&&(Pa=Pa.slice(0,-1*qu*2),no=no.slice(0,-1*qu),dt=dt.slice(0,-1*qu)),Pa.push(this.productions_[e1[1]][0]),no.push(d_.$),dt.push(d_._$),$b=Wi[Pa[Pa.length-2]][Pa[Pa.length-1]],Pa.push($b);break;case 3:return!0}}return!0}},Hr=function(){var Rs={EOF:1,parseError:function(Ii,Pa){if(this.yy.parser)this.yy.parser.parseError(Ii,Pa);else throw new Error(Ii)},setInput:function(Vr,Ii){return this.yy=Ii||this.yy||{},this._input=Vr,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Vr=this._input[0];this.yytext+=Vr,this.yyleng++,this.offset++,this.match+=Vr,this.matched+=Vr;var Ii=Vr.match(/(?:\r\n?|\n).*/g);return Ii?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Vr},unput:function(Vr){var Ii=Vr.length,Pa=Vr.split(/(?:\r\n?|\n)/g);this._input=Vr+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ii),this.offset-=Ii;var Or=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Pa.length-1&&(this.yylineno-=Pa.length-1);var no=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Pa?(Pa.length===Or.length?this.yylloc.first_column:0)+Or[Or.length-Pa.length].length-Pa[0].length:this.yylloc.first_column-Ii},this.options.ranges&&(this.yylloc.range=[no[0],no[0]+this.yyleng-Ii]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Vr){this.unput(this.match.slice(Vr))},pastInput:function(){var Vr=this.matched.substr(0,this.matched.length-this.match.length);return(Vr.length>20?"...":"")+Vr.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Vr=this.match;return Vr.length<20&&(Vr+=this._input.substr(0,20-Vr.length)),(Vr.substr(0,20)+(Vr.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Vr=this.pastInput(),Ii=new Array(Vr.length+1).join("-");return Vr+this.upcomingInput()+` `+Ii+"^"},test_match:function(Vr,Ii){var Pa,Or,no;if(this.options.backtrack_lexer&&(no={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(no.yylloc.range=this.yylloc.range.slice(0))),Or=Vr[0].match(/(?:\r\n?|\n).*/g),Or&&(this.yylineno+=Or.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Or?Or[Or.length-1].length-Or[Or.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Vr[0].length},this.yytext+=Vr[0],this.match+=Vr[0],this.matches=Vr,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Vr[0].length),this.matched+=Vr[0],Pa=this.performAction.call(this,this.yy,this,Ii,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Pa)return Pa;if(this._backtrack){for(var dt in no)this[dt]=no[dt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Vr,Ii,Pa,Or;this._more||(this.yytext="",this.match="");for(var no=this._currentRules(),dt=0;dtIi[0].length)){if(Ii=Pa,Or=dt,this.options.backtrack_lexer){if(Vr=this.test_match(Pa,no[dt]),Vr!==!1)return Vr;if(this._backtrack){Ii=!1;continue}else return!1}else if(!this.options.flex)break}return Ii?(Vr=this.test_match(Ii,no[Or]),Vr!==!1?Vr:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Ii=this.next();return Ii||this.lex()},begin:function(Ii){this.conditionStack.push(Ii)},popState:function(){var Ii=this.conditionStack.length-1;return Ii>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Ii){return Ii=this.conditionStack.length-1-Math.abs(Ii||0),Ii>=0?this.conditionStack[Ii]:"INITIAL"},pushState:function(Ii){this.begin(Ii)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Ii,Pa,Or,no){switch(Or){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:this.begin("callbackname");break;case 8:this.popState();break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 11:this.popState();break;case 12:return 93;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("md_string");break;case 16:return"STR";case 17:this.popState();break;case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 27:this.popState();break;case 28:return 85;case 29:return Ii.lex.firstGraph()&&this.begin("dir"),12;case 30:return Ii.lex.firstGraph()&&this.begin("dir"),12;case 31:return Ii.lex.firstGraph()&&this.begin("dir"),12;case 32:return 27;case 33:return 32;case 34:return 95;case 35:return 95;case 36:return 95;case 37:return 95;case 38:return this.popState(),13;case 39:return this.popState(),14;case 40:return this.popState(),14;case 41:return this.popState(),14;case 42:return this.popState(),14;case 43:return this.popState(),14;case 44:return this.popState(),14;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:return 108;case 55:return 44;case 56:return 58;case 57:return 42;case 58:return 8;case 59:return 103;case 60:return 112;case 61:return this.popState(),75;case 62:return this.pushState("edgeText"),73;case 63:return 116;case 64:return this.popState(),75;case 65:return this.pushState("thickEdgeText"),73;case 66:return 116;case 67:return this.popState(),75;case 68:return this.pushState("dottedEdgeText"),73;case 69:return 116;case 70:return 75;case 71:return this.popState(),51;case 72:return"TEXT";case 73:return this.pushState("ellipseText"),50;case 74:return this.popState(),53;case 75:return this.pushState("text"),52;case 76:return this.popState(),55;case 77:return this.pushState("text"),54;case 78:return 56;case 79:return this.pushState("text"),65;case 80:return this.popState(),62;case 81:return this.pushState("text"),61;case 82:return this.popState(),47;case 83:return this.pushState("text"),46;case 84:return this.popState(),67;case 85:return this.popState(),69;case 86:return 114;case 87:return this.pushState("trapText"),66;case 88:return this.pushState("trapText"),68;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 94:return 112;case 95:return 108;case 96:return 42;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;case 101:return this.pushState("text"),60;case 102:return this.popState(),49;case 103:return this.pushState("text"),48;case 104:return this.popState(),31;case 105:return this.pushState("text"),29;case 106:return this.popState(),64;case 107:return this.pushState("text"),63;case 108:return"TEXT";case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112:return 11}},rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{callbackargs:{rules:[11,12,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},callbackname:{rules:[8,9,10,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},href:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},click:{rules:[15,18,27,28,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dottedEdgeText:{rules:[15,18,67,69,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},thickEdgeText:{rules:[15,18,64,66,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},edgeText:{rules:[15,18,61,63,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},trapText:{rules:[15,18,70,73,75,77,81,83,84,85,86,87,88,101,103,105,107],inclusive:!1},ellipseText:{rules:[15,18,70,71,72,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},text:{rules:[15,18,70,73,74,75,76,77,80,81,82,83,87,88,100,101,102,103,104,105,106,107,108],inclusive:!1},vertex:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dir:{rules:[15,18,38,39,40,41,42,43,44,45,46,47,48,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr_multiline:{rules:[5,6,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr:{rules:[3,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_title:{rules:[1,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},md_string:{rules:[13,14,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},string:{rules:[15,16,17,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},INITIAL:{rules:[0,2,4,7,15,18,19,20,21,22,23,24,25,26,29,30,31,32,33,34,35,36,37,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,65,67,68,70,73,75,77,78,79,81,83,87,88,89,90,91,92,93,94,95,96,97,98,99,101,103,105,107,109,110,111,112],inclusive:!0}}};return Rs}();Un.lexer=Hr;function za(){this.yy={}}return za.prototype=Un,Un.Parser=za,new za}();fht.parser=fht;const Pbt=fht,Sua="flowchart-";let G5n=0,lW=Qt(),bd={},z3=[],UV={},pR=[],i5e={},a5e={},oSe=0,pht=!0,qx,f6e,p6e=[];const g6e=e=>mi.sanitizeText(e,lW),Jce=function(e){const t=Object.keys(bd);for(const r of t)if(bd[r].id===e)return bd[r].domId;return e},AJn=function(e,t,r,a,s,o,u={}){let h,f=e;f!==void 0&&f.trim().length!==0&&(bd[f]===void 0&&(bd[f]={id:f,labelType:"text",domId:Sua+f+"-"+G5n,styles:[],classes:[]}),G5n++,t!==void 0?(lW=Qt(),h=g6e(t.text.trim()),bd[f].labelType=t.type,h[0]==='"'&&h[h.length-1]==='"'&&(h=h.substring(1,h.length-1)),bd[f].text=h):bd[f].text===void 0&&(bd[f].text=e),r!==void 0&&(bd[f].type=r),a!=null&&a.forEach(function(p){bd[f].styles.push(p)}),s!=null&&s.forEach(function(p){bd[f].classes.push(p)}),o!==void 0&&(bd[f].dir=o),bd[f].props===void 0?bd[f].props=u:u!==void 0&&Object.assign(bd[f].props,u))},kJn=function(e,t,r){const o={start:e,end:t,type:void 0,text:"",labelType:"text"};ut.info("abc78 Got edge...",o);const u=r.text;if(u!==void 0&&(o.text=g6e(u.text.trim()),o.text[0]==='"'&&o.text[o.text.length-1]==='"'&&(o.text=o.text.substring(1,o.text.length-1)),o.labelType=u.type),r!==void 0&&(o.type=r.type,o.stroke=r.stroke,o.length=r.length),(o==null?void 0:o.length)>10&&(o.length=10),z3.length<(lW.maxEdges??500))ut.info("abc78 pushing edge..."),z3.push(o);else throw new Error(`Edge limit exceeded. ${z3.length} edges found, but the limit is ${lW.maxEdges}. Initialize mermaid with maxEdges set to a higher number to allow more edges. You cannot set this config via configuration inside the diagram as it is a secure config. You have to call mermaid.initialize.`)},RJn=function(e,t,r){ut.info("addLink (abc78)",e,t,r);let a,s;for(a=0;a=z3.length)throw new Error(`The index ${r} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${z3.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);r==="default"?z3.defaultStyle=t:(il.isSubstringInArray("fill",t)===-1&&t.push("fill:none"),z3[r].style=t)})},OJn=function(e,t){e.split(",").forEach(function(r){UV[r]===void 0&&(UV[r]={id:r,styles:[],textStyles:[]}),t!=null&&t.forEach(function(a){if(a.match("color")){const s=a.replace("fill","bgFill").replace("color","fill");UV[r].textStyles.push(s)}UV[r].styles.push(a)})})},LJn=function(e){qx=e,qx.match(/.*/)&&(qx="LR"),qx.match(/.*v/)&&(qx="TB"),qx==="TD"&&(qx="TB")},m6e=function(e,t){e.split(",").forEach(function(r){let a=r;bd[a]!==void 0&&bd[a].classes.push(t),i5e[a]!==void 0&&i5e[a].classes.push(t)})},Tua=function(e,t){e.split(",").forEach(function(r){t!==void 0&&(a5e[f6e==="gen-1"?Jce(r):r]=g6e(t))})},Cua=function(e,t,r){let a=Jce(e);if(Qt().securityLevel!=="loose"||t===void 0)return;let s=[];if(typeof r=="string"){s=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o")),s.classed("hover",!0)}).on("mouseout",function(){t.transition().duration(500).style("opacity",0),gn(this).classed("hover",!1)})};p6e.push(GJn);const qJn=function(e="gen-1"){bd={},UV={},z3=[],p6e=[GJn],pR=[],i5e={},oSe=0,a5e={},pht=!0,f6e=e,lW=Qt(),Mb()},HJn=e=>{f6e=e||"gen-2"},VJn=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},YJn=function(e,t,r){let a=e.text.trim(),s=r.text;e===r&&r.text.match(/\s/)&&(a=void 0);function o(m){const b={boolean:{},number:{},string:{}},_=[];let w;return{nodeList:m.filter(function(C){const A=typeof C;return C.stmt&&C.stmt==="dir"?(w=C.value,!1):C.trim()===""?!1:A in b?b[A].hasOwnProperty(C)?!1:b[A][C]=!0:_.includes(C)?!1:_.push(C)}),dir:w}}let u=[];const{nodeList:h,dir:f}=o(u.concat.apply(u,t));if(u=h,f6e==="gen-1")for(let m=0;m2e3)return;if(jJn[$ae]=t,pR[t].id===e)return{result:!0,count:0};let a=0,s=1;for(;a=0){const u=WJn(e,o);if(u.result)return{result:!0,count:s+u.count};s=s+u.count}a=a+1}return{result:!1,count:s}},KJn=function(e){return jJn[e]},XJn=function(){$ae=-1,pR.length>0&&WJn("none",pR.length-1)},QJn=function(){return pR},ZJn=()=>pht?(pht=!1,!0):!1,kua=e=>{let t=e.trim(),r="arrow_open";switch(t[0]){case"<":r="arrow_point",t=t.slice(1);break;case"x":r="arrow_cross",t=t.slice(1);break;case"o":r="arrow_circle",t=t.slice(1);break}let a="normal";return t.includes("=")&&(a="thick"),t.includes(".")&&(a="dotted"),{type:r,stroke:a}},Rua=(e,t)=>{const r=t.length;let a=0;for(let s=0;s{const t=e.trim();let r=t.slice(0,-1),a="arrow_open";switch(t.slice(-1)){case"x":a="arrow_cross",t[0]==="x"&&(a="double_"+a,r=r.slice(1));break;case">":a="arrow_point",t[0]==="<"&&(a="double_"+a,r=r.slice(1));break;case"o":a="arrow_circle",t[0]==="o"&&(a="double_"+a,r=r.slice(1));break}let s="normal",o=r.length-1;r[0]==="="&&(s="thick"),r[0]==="~"&&(s="invisible");let u=Rua(".",r);return u&&(s="dotted",o=u),{type:a,stroke:s,length:o}},JJn=(e,t)=>{const r=Iua(e);let a;if(t){if(a=kua(t),a.stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if(a.type==="arrow_open")a.type=r.type;else{if(a.type!==r.type)return{type:"INVALID",stroke:"INVALID"};a.type="double_"+a.type}return a.type==="double_arrow"&&(a.type="double_arrow_point"),a.length=r.length,a}return r},eer=(e,t)=>{let r=!1;return e.forEach(a=>{a.nodes.indexOf(t)>=0&&(r=!0)}),r},ter=(e,t)=>{const r=[];return e.nodes.forEach((a,s)=>{eer(t,a)||r.push(e.nodes[s])}),{nodes:r}},ner={firstGraph:ZJn},gF={defaultConfig:()=>TZn.flowchart,setAccTitle:Pb,getAccTitle:Ev,getAccDescription:Sv,setAccDescription:xv,addVertex:AJn,lookUpDomId:Jce,addLink:RJn,updateLinkInterpolate:IJn,updateLink:NJn,addClass:OJn,setDirection:LJn,setClass:m6e,setTooltip:Tua,getTooltip:MJn,setClickEvent:PJn,setLink:DJn,bindFunctions:BJn,getDirection:FJn,getVertices:$Jn,getEdges:UJn,getClasses:zJn,clear:qJn,setGen:HJn,defaultStyle:VJn,addSubGraph:YJn,getDepthFirstPos:KJn,indexNodes:XJn,getSubGraphs:QJn,destructLink:JJn,lex:ner,exists:eer,makeUniq:ter,setDiagramTitle:Zw,getDiagramTitle:Tv},Nua=Object.freeze(Object.defineProperty({__proto__:null,addClass:OJn,addLink:RJn,addSingleLink:kJn,addSubGraph:YJn,addVertex:AJn,bindFunctions:BJn,clear:qJn,default:gF,defaultStyle:VJn,destructLink:JJn,firstGraph:ZJn,getClasses:zJn,getDepthFirstPos:KJn,getDirection:FJn,getEdges:UJn,getSubGraphs:QJn,getTooltip:MJn,getVertices:$Jn,indexNodes:XJn,lex:ner,lookUpDomId:Jce,setClass:m6e,setClickEvent:PJn,setDirection:LJn,setGen:HJn,setLink:DJn,updateLink:NJn,updateLinkInterpolate:IJn},Symbol.toStringTag,{value:"Module"}));var Oua="\0",xB="\0",q5n="";class F1{constructor(t={}){this._isDirected=Ho(t,"directed")?t.directed:!0,this._isMultigraph=Ho(t,"multigraph")?t.multigraph:!1,this._isCompound=Ho(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=$3(void 0),this._defaultEdgeLabelFn=$3(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[xB]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return KO(t)||(t=$3(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return Tp(this._nodes)}sources(){var t=this;return Rp(this.nodes(),function(r){return uA(t._in[r])})}sinks(){var t=this;return Rp(this.nodes(),function(r){return uA(t._out[r])})}setNodes(t,r){var a=arguments,s=this;return Zt(t,function(o){a.length>1?s.setNode(o,r):s.setNode(o)}),this}setNode(t,r){return Ho(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=r),this):(this._nodes[t]=arguments.length>1?r:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=xB,this._children[t]={},this._children[xB][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Ho(this._nodes,t)}removeNode(t){var r=this;if(Ho(this._nodes,t)){var a=function(s){r.removeEdge(r._edgeObjs[s])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],Zt(this.children(t),function(s){r.setParent(s)}),delete this._children[t]),Zt(Tp(this._in[t]),a),delete this._in[t],delete this._preds[t],Zt(Tp(this._out[t]),a),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(gl(r))r=xB;else{r+="";for(var a=r;!gl(a);a=this.parent(a))if(a===t)throw new Error("Setting "+r+" as parent of "+t+" would create a cycle");this.setNode(r)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=r,this._children[r][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var r=this._parent[t];if(r!==xB)return r}}children(t){if(gl(t)&&(t=xB),this._isCompound){var r=this._children[t];if(r)return Tp(r)}else{if(t===xB)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var r=this._preds[t];if(r)return Tp(r)}successors(t){var r=this._sucs[t];if(r)return Tp(r)}neighbors(t){var r=this.predecessors(t);if(r)return Dqn(r,this.successors(t))}isLeaf(t){var r;return this.isDirected()?r=this.successors(t):r=this.neighbors(t),r.length===0}filterNodes(t){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var a=this;Zt(this._nodes,function(u,h){t(h)&&r.setNode(h,u)}),Zt(this._edgeObjs,function(u){r.hasNode(u.v)&&r.hasNode(u.w)&&r.setEdge(u,a.edge(u))});var s={};function o(u){var h=a.parent(u);return h===void 0||r.hasNode(h)?(s[u]=h,h):h in s?s[h]:o(h)}return this._isCompound&&Zt(r.nodes(),function(u){r.setParent(u,o(u))}),r}setDefaultEdgeLabel(t){return KO(t)||(t=$3(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return Ag(this._edgeObjs)}setPath(t,r){var a=this,s=arguments;return TS(t,function(o,u){return s.length>1?a.setEdge(o,u,r):a.setEdge(o,u),u}),this}setEdge(){var t,r,a,s,o=!1,u=arguments[0];typeof u=="object"&&u!==null&&"v"in u?(t=u.v,r=u.w,a=u.name,arguments.length===2&&(s=arguments[1],o=!0)):(t=u,r=arguments[1],a=arguments[3],arguments.length>2&&(s=arguments[2],o=!0)),t=""+t,r=""+r,gl(a)||(a=""+a);var h=Uae(this._isDirected,t,r,a);if(Ho(this._edgeLabels,h))return o&&(this._edgeLabels[h]=s),this;if(!gl(a)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(r),this._edgeLabels[h]=o?s:this._defaultEdgeLabelFn(t,r,a);var f=Lua(this._isDirected,t,r,a);return t=f.v,r=f.w,Object.freeze(f),this._edgeObjs[h]=f,H5n(this._preds[r],t),H5n(this._sucs[t],r),this._in[r][h]=f,this._out[t][h]=f,this._edgeCount++,this}edge(t,r,a){var s=arguments.length===1?vat(this._isDirected,arguments[0]):Uae(this._isDirected,t,r,a);return this._edgeLabels[s]}hasEdge(t,r,a){var s=arguments.length===1?vat(this._isDirected,arguments[0]):Uae(this._isDirected,t,r,a);return Ho(this._edgeLabels,s)}removeEdge(t,r,a){var s=arguments.length===1?vat(this._isDirected,arguments[0]):Uae(this._isDirected,t,r,a),o=this._edgeObjs[s];return o&&(t=o.v,r=o.w,delete this._edgeLabels[s],delete this._edgeObjs[s],V5n(this._preds[r],t),V5n(this._sucs[t],r),delete this._in[r][s],delete this._out[t][s],this._edgeCount--),this}inEdges(t,r){var a=this._in[t];if(a){var s=Ag(a);return r?Rp(s,function(o){return o.v===r}):s}}outEdges(t,r){var a=this._out[t];if(a){var s=Ag(a);return r?Rp(s,function(o){return o.w===r}):s}}nodeEdges(t,r){var a=this.inEdges(t,r);if(a)return a.concat(this.outEdges(t,r))}}F1.prototype._nodeCount=0;F1.prototype._edgeCount=0;function H5n(e,t){e[t]?e[t]++:e[t]=1}function V5n(e,t){--e[t]||delete e[t]}function Uae(e,t,r,a){var s=""+t,o=""+r;if(!e&&s>o){var u=s;s=o,o=u}return s+q5n+o+q5n+(gl(a)?Oua:a)}function Lua(e,t,r,a){var s=""+t,o=""+r;if(!e&&s>o){var u=s;s=o,o=u}var h={v:s,w:o};return a&&(h.name=a),h}function vat(e,t){return Uae(e,t.v,t.w,t.name)}class Dua{constructor(){var t={};t._next=t._prev=t,this._sentinel=t}dequeue(){var t=this._sentinel,r=t._prev;if(r!==t)return Y5n(r),r}enqueue(t){var r=this._sentinel;t._prev&&t._next&&Y5n(t),t._next=r._next,r._next._prev=t,r._next=t,t._prev=r}toString(){for(var t=[],r=this._sentinel,a=r._prev;a!==r;)t.push(JSON.stringify(a,Mua)),a=a._prev;return"["+t.join(", ")+"]"}}function Y5n(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Mua(e,t){if(e!=="_next"&&e!=="_prev")return t}var Pua=$3(1);function Bua(e,t){if(e.nodeCount()<=1)return[];var r=$ua(e,t||Pua),a=Fua(r.graph,r.buckets,r.zeroIdx);return MS(wo(a,function(s){return e.outEdges(s.v,s.w)}))}function Fua(e,t,r){for(var a=[],s=t[t.length-1],o=t[0],u;e.nodeCount();){for(;u=o.dequeue();)_at(e,t,r,u);for(;u=s.dequeue();)_at(e,t,r,u);if(e.nodeCount()){for(var h=t.length-2;h>0;--h)if(u=t[h].dequeue(),u){a=a.concat(_at(e,t,r,u,!0));break}}}return a}function _at(e,t,r,a,s){var o=s?[]:void 0;return Zt(e.inEdges(a.v),function(u){var h=e.edge(u),f=e.node(u.v);s&&o.push({v:u.v,w:u.w}),f.out-=h,ght(t,r,f)}),Zt(e.outEdges(a.v),function(u){var h=e.edge(u),f=u.w,p=e.node(f);p.in-=h,ght(t,r,p)}),e.removeNode(a.v),o}function $ua(e,t){var r=new F1,a=0,s=0;Zt(e.nodes(),function(h){r.setNode(h,{v:h,in:0,out:0})}),Zt(e.edges(),function(h){var f=r.edge(h.v,h.w)||0,p=t(h),m=f+p;r.setEdge(h.v,h.w,m),s=Math.max(s,r.node(h.v).out+=p),a=Math.max(a,r.node(h.w).in+=p)});var o=Uw(s+a+3).map(function(){return new Dua}),u=a+1;return Zt(r.nodes(),function(h){ght(o,u,r.node(h))}),{graph:r,buckets:o,zeroIdx:u}}function ght(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function Uua(e){var t=e.graph().acyclicer==="greedy"?Bua(e,r(e)):zua(e);Zt(t,function(a){var s=e.edge(a);e.removeEdge(a),s.forwardName=a.name,s.reversed=!0,e.setEdge(a.w,a.v,s,P$("rev"))});function r(a){return function(s){return a.edge(s).weight}}}function zua(e){var t=[],r={},a={};function s(o){Ho(a,o)||(a[o]=!0,r[o]=!0,Zt(e.outEdges(o),function(u){Ho(r,u.w)?t.push(u):s(u.w)}),delete r[o])}return Zt(e.nodes(),s),t}function Gua(e){Zt(e.edges(),function(t){var r=e.edge(t);if(r.reversed){e.removeEdge(t);var a=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,a)}})}function sK(e,t,r,a){var s;do s=P$(a);while(e.hasNode(s));return r.dummy=t,e.setNode(s,r),s}function qua(e){var t=new F1().setGraph(e.graph());return Zt(e.nodes(),function(r){t.setNode(r,e.node(r))}),Zt(e.edges(),function(r){var a=t.edge(r.v,r.w)||{weight:0,minlen:1},s=e.edge(r);t.setEdge(r.v,r.w,{weight:a.weight+s.weight,minlen:Math.max(a.minlen,s.minlen)})}),t}function rer(e){var t=new F1({multigraph:e.isMultigraph()}).setGraph(e.graph());return Zt(e.nodes(),function(r){e.children(r).length||t.setNode(r,e.node(r))}),Zt(e.edges(),function(r){t.setEdge(r,e.edge(r))}),t}function j5n(e,t){var r=e.x,a=e.y,s=t.x-r,o=t.y-a,u=e.width/2,h=e.height/2;if(!s&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var f,p;return Math.abs(o)*u>Math.abs(s)*h?(o<0&&(h=-h),f=h*s/o,p=h):(s<0&&(u=-u),f=u,p=u*o/s),{x:r+f,y:a+p}}function b6e(e){var t=wo(Uw(ier(e)+1),function(){return[]});return Zt(e.nodes(),function(r){var a=e.node(r),s=a.rank;gl(s)||(t[s][a.order]=r)}),t}function Hua(e){var t=oT(wo(e.nodes(),function(r){return e.node(r).rank}));Zt(e.nodes(),function(r){var a=e.node(r);Ho(a,"rank")&&(a.rank-=t)})}function Vua(e){var t=oT(wo(e.nodes(),function(o){return e.node(o).rank})),r=[];Zt(e.nodes(),function(o){var u=e.node(o).rank-t;r[u]||(r[u]=[]),r[u].push(o)});var a=0,s=e.graph().nodeRankFactor;Zt(r,function(o,u){gl(o)&&u%s!==0?--a:a&&Zt(o,function(h){e.node(h).rank+=a})})}function W5n(e,t,r,a){var s={width:0,height:0};return arguments.length>=4&&(s.rank=r,s.order=a),sK(e,"border",s,t)}function ier(e){return i_(wo(e.nodes(),function(t){var r=e.node(t).rank;if(!gl(r))return r}))}function Yua(e,t){var r={lhs:[],rhs:[]};return Zt(e,function(a){t(a)?r.lhs.push(a):r.rhs.push(a)}),r}function jua(e,t){return t()}function Wua(e){function t(r){var a=e.children(r),s=e.node(r);if(a.length&&Zt(a,t),Ho(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(var o=s.minRank,u=s.maxRank+1;ou.lim&&(h=u,f=!0);var p=Rp(t.edges(),function(m){return f===Q5n(e,e.node(m.v),h)&&f!==Q5n(e,e.node(m.w),h)});return YW(p,function(m){return yle(t,m)})}function fer(e,t,r,a){var s=r.v,o=r.w;e.removeEdge(s,o),e.setEdge(a.v,a.w,{}),$bt(e),Fbt(e,t),cha(e,t)}function cha(e,t){var r=VW(e.nodes(),function(s){return!t.node(s).parent}),a=oha(e,r);a=a.slice(1),Zt(a,function(s){var o=e.node(s).parent,u=t.edge(s,o),h=!1;u||(u=t.edge(o,s),h=!0),t.node(s).rank=t.node(o).rank+(h?u.minlen:-u.minlen)})}function uha(e,t,r){return e.hasEdge(t,r)}function Q5n(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}function hha(e){switch(e.graph().ranker){case"network-simplex":Z5n(e);break;case"tight-tree":fha(e);break;case"longest-path":dha(e);break;default:Z5n(e)}}var dha=Bbt;function fha(e){Bbt(e),ser(e)}function Z5n(e){tU(e)}function pha(e){var t=sK(e,"root",{},"_root"),r=gha(e),a=i_(Ag(r))-1,s=2*a+1;e.graph().nestingRoot=t,Zt(e.edges(),function(u){e.edge(u).minlen*=s});var o=mha(e)+1;Zt(e.children(),function(u){per(e,t,s,o,a,r,u)}),e.graph().nodeRankFactor=s}function per(e,t,r,a,s,o,u){var h=e.children(u);if(!h.length){u!==t&&e.setEdge(t,u,{weight:0,minlen:r});return}var f=W5n(e,"_bt"),p=W5n(e,"_bb"),m=e.node(u);e.setParent(f,u),m.borderTop=f,e.setParent(p,u),m.borderBottom=p,Zt(h,function(b){per(e,t,r,a,s,o,b);var _=e.node(b),w=_.borderTop?_.borderTop:b,S=_.borderBottom?_.borderBottom:b,C=_.borderTop?a:2*a,A=w!==S?1:s-o[u]+1;e.setEdge(f,w,{weight:C,minlen:A,nestingEdge:!0}),e.setEdge(S,p,{weight:C,minlen:A,nestingEdge:!0})}),e.parent(u)||e.setEdge(t,f,{weight:0,minlen:s+o[u]})}function gha(e){var t={};function r(a,s){var o=e.children(a);o&&o.length&&Zt(o,function(u){r(u,s+1)}),t[a]=s}return Zt(e.children(),function(a){r(a,1)}),t}function mha(e){return TS(e.edges(),function(t,r){return t+e.edge(r).weight},0)}function bha(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,Zt(e.edges(),function(r){var a=e.edge(r);a.nestingEdge&&e.removeEdge(r)})}function yha(e,t,r){var a={},s;Zt(r,function(o){for(var u=e.parent(o),h,f;u;){if(h=e.parent(u),h?(f=a[h],a[h]=u):(f=s,s=u),f&&f!==u){t.setEdge(f,u);return}u=h}})}function vha(e,t,r){var a=_ha(e),s=new F1({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(function(o){return e.node(o)});return Zt(e.nodes(),function(o){var u=e.node(o),h=e.parent(o);(u.rank===t||u.minRank<=t&&t<=u.maxRank)&&(s.setNode(o),s.setParent(o,h||a),Zt(e[r](o),function(f){var p=f.v===o?f.w:f.v,m=s.edge(p,o),b=gl(m)?0:m.weight;s.setEdge(p,o,{weight:e.edge(f).weight+b})}),Ho(u,"minRank")&&s.setNode(o,{borderLeft:u.borderLeft[t],borderRight:u.borderRight[t]}))}),s}function _ha(e){for(var t;e.hasNode(t=P$("_root")););return t}function wha(e,t){for(var r=0,a=1;a0;)m%2&&(b+=h[m+1]),m=m-1>>1,h[m]+=p.weight;f+=p.weight*b})),f}function xha(e){var t={},r=Rp(e.nodes(),function(h){return!e.children(h).length}),a=i_(wo(r,function(h){return e.node(h).rank})),s=wo(Uw(a+1),function(){return[]});function o(h){if(!Ho(t,h)){t[h]=!0;var f=e.node(h);s[f.rank].push(h),Zt(e.successors(h),o)}}var u=PA(r,function(h){return e.node(h).rank});return Zt(u,o),s}function Sha(e,t){return wo(t,function(r){var a=e.inEdges(r);if(a.length){var s=TS(a,function(o,u){var h=e.edge(u),f=e.node(u.v);return{sum:o.sum+h.weight*f.order,weight:o.weight+h.weight}},{sum:0,weight:0});return{v:r,barycenter:s.sum/s.weight,weight:s.weight}}else return{v:r}})}function Tha(e,t){var r={};Zt(e,function(s,o){var u=r[s.v]={indegree:0,in:[],out:[],vs:[s.v],i:o};gl(s.barycenter)||(u.barycenter=s.barycenter,u.weight=s.weight)}),Zt(t.edges(),function(s){var o=r[s.v],u=r[s.w];!gl(o)&&!gl(u)&&(u.indegree++,o.out.push(r[s.w]))});var a=Rp(r,function(s){return!s.indegree});return Cha(a)}function Cha(e){var t=[];function r(o){return function(u){u.merged||(gl(u.barycenter)||gl(o.barycenter)||u.barycenter>=o.barycenter)&&Aha(o,u)}}function a(o){return function(u){u.in.push(o),--u.indegree===0&&e.push(u)}}for(;e.length;){var s=e.pop();t.push(s),Zt(s.in.reverse(),r(s)),Zt(s.out,a(s))}return wo(Rp(t,function(o){return!o.merged}),function(o){return lR(o,["vs","i","barycenter","weight"])})}function Aha(e,t){var r=0,a=0;e.weight&&(r+=e.barycenter*e.weight,a+=e.weight),t.weight&&(r+=t.barycenter*t.weight,a+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/a,e.weight=a,e.i=Math.min(t.i,e.i),t.merged=!0}function kha(e,t){var r=Yua(e,function(m){return Ho(m,"barycenter")}),a=r.lhs,s=PA(r.rhs,function(m){return-m.i}),o=[],u=0,h=0,f=0;a.sort(Rha(!!t)),f=J5n(o,s,f),Zt(a,function(m){f+=m.vs.length,o.push(m.vs),u+=m.barycenter*m.weight,h+=m.weight,f=J5n(o,s,f)});var p={vs:MS(o)};return h&&(p.barycenter=u/h,p.weight=h),p}function J5n(e,t,r){for(var a;t.length&&(a=i9(t)).i<=r;)t.pop(),e.push(a.vs),r++;return r}function Rha(e){return function(t,r){return t.barycenterr.barycenter?1:e?r.i-t.i:t.i-r.i}}function ger(e,t,r,a){var s=e.children(t),o=e.node(t),u=o?o.borderLeft:void 0,h=o?o.borderRight:void 0,f={};u&&(s=Rp(s,function(S){return S!==u&&S!==h}));var p=Sha(e,s);Zt(p,function(S){if(e.children(S.v).length){var C=ger(e,S.v,r,a);f[S.v]=C,Ho(C,"barycenter")&&Nha(S,C)}});var m=Tha(p,r);Iha(m,f);var b=kha(m,a);if(u&&(b.vs=MS([u,b.vs,h]),e.predecessors(u).length)){var _=e.node(e.predecessors(u)[0]),w=e.node(e.predecessors(h)[0]);Ho(b,"barycenter")||(b.barycenter=0,b.weight=0),b.barycenter=(b.barycenter*b.weight+_.order+w.order)/(b.weight+2),b.weight+=2}return b}function Iha(e,t){Zt(e,function(r){r.vs=MS(r.vs.map(function(a){return t[a]?t[a].vs:a}))})}function Nha(e,t){gl(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}function Oha(e){var t=ier(e),r=eCn(e,Uw(1,t+1),"inEdges"),a=eCn(e,Uw(t-1,-1,-1),"outEdges"),s=xha(e);tCn(e,s);for(var o=Number.POSITIVE_INFINITY,u,h=0,f=0;f<4;++h,++f){Lha(h%2?r:a,h%4>=2),s=b6e(e);var p=wha(e,s);pu||h>t[f].lim));for(p=f,f=a;(f=e.parent(f))!==p;)o.push(f);return{path:s.concat(o.reverse()),lca:p}}function Pha(e){var t={},r=0;function a(s){var o=r;Zt(e.children(s),a),t[s]={low:o,lim:r++}}return Zt(e.children(),a),t}function Bha(e,t){var r={};function a(s,o){var u=0,h=0,f=s.length,p=i9(o);return Zt(o,function(m,b){var _=$ha(e,m),w=_?e.node(_).order:f;(_||m===p)&&(Zt(o.slice(h,b+1),function(S){Zt(e.predecessors(S),function(C){var A=e.node(C),k=A.order;(kp)&&mer(r,_,m)})})}function s(o,u){var h=-1,f,p=0;return Zt(u,function(m,b){if(e.node(m).dummy==="border"){var _=e.predecessors(m);_.length&&(f=e.node(_[0]).order,a(u,p,b,h,f),p=b,h=f)}a(u,p,u.length,f,o.length)}),u}return TS(t,s),r}function $ha(e,t){if(e.node(t).dummy)return VW(e.predecessors(t),function(r){return e.node(r).dummy})}function mer(e,t,r){if(t>r){var a=t;t=r,r=a}var s=e[t];s||(e[t]=s={}),s[r]=!0}function Uha(e,t,r){if(t>r){var a=t;t=r,r=a}return Ho(e[t],r)}function zha(e,t,r,a){var s={},o={},u={};return Zt(t,function(h){Zt(h,function(f,p){s[f]=f,o[f]=f,u[f]=p})}),Zt(t,function(h){var f=-1;Zt(h,function(p){var m=a(p);if(m.length){m=PA(m,function(C){return u[C]});for(var b=(m.length-1)/2,_=Math.floor(b),w=Math.ceil(b);_<=w;++_){var S=m[_];o[p]===p&&f0}function VA(e,t,r){var a=e.x,s=e.y,o=[],u=Number.POSITIVE_INFINITY,h=Number.POSITIVE_INFINITY;t.forEach(function(S){u=Math.min(u,S.x),h=Math.min(h,S.y)});for(var f=a-e.width/2-u,p=s-e.height/2-h,m=0;m1&&o.sort(function(S,C){var A=S.x-r.x,k=S.y-r.y,I=Math.sqrt(A*A+k*k),N=C.x-r.x,L=C.y-r.y,P=Math.sqrt(N*N+L*L);return IMath.abs(s)*h?(o<0&&(h=-h),f=o===0?0:h*s/o,p=h):(s<0&&(u=-u),f=u,p=s===0?0:u*o/s),{x:r+f,y:a+p}}var wht={rect:Hda,ellipse:Vda,circle:Yda,diamond:jda};function qda(e){wht=e}function Hda(e,t,r){var a=e.insert("rect",":first-child").attr("rx",r.rx).attr("ry",r.ry).attr("x",-t.width/2).attr("y",-t.height/2).attr("width",t.width).attr("height",t.height);return r.intersect=function(s){return Gbt(r,s)},a}function Vda(e,t,r){var a=t.width/2,s=t.height/2,o=e.insert("ellipse",":first-child").attr("x",-t.width/2).attr("y",-t.height/2).attr("rx",a).attr("ry",s);return r.intersect=function(u){return wer(r,a,s,u)},o}function Yda(e,t,r){var a=Math.max(t.width,t.height)/2,s=e.insert("circle",":first-child").attr("x",-t.width/2).attr("y",-t.height/2).attr("r",a);return r.intersect=function(o){return zda(r,a,o)},s}function jda(e,t,r){var a=t.width*Math.SQRT2/2,s=t.height*Math.SQRT2/2,o=[{x:0,y:-s},{x:-a,y:0},{x:0,y:s},{x:a,y:0}],u=e.insert("polygon",":first-child").attr("points",o.map(function(h){return h.x+","+h.y}).join(" "));return r.intersect=function(h){return VA(r,o,h)},u}function Wda(){var e=function(t,r){Qda(r);var a=_ie(t,"output"),s=_ie(a,"clusters"),o=_ie(a,"edgePaths"),u=yht(_ie(a,"edgeLabels"),r),h=_ht(_ie(a,"nodes"),r,wht);oK(r),Uda(h,r),$da(u,r),vht(o,r,mht);var f=bht(s,r);Fda(f,r),Zda(r)};return e.createNodes=function(t){return arguments.length?(Bda(t),e):_ht},e.createClusters=function(t){return arguments.length?(Rda(t),e):bht},e.createEdgeLabels=function(t){return arguments.length?(Ida(t),e):yht},e.createEdgePaths=function(t){return arguments.length?(Nda(t),e):vht},e.shapes=function(t){return arguments.length?(qda(t),e):wht},e.arrows=function(t){return arguments.length?(Eda(t),e):mht},e}var Kda={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},Xda={arrowhead:"normal",curve:Cg};function Qda(e){e.nodes().forEach(function(t){var r=e.node(t);!Ho(r,"label")&&!e.children(t).length&&(r.label=t),Ho(r,"paddingX")&&BB(r,{paddingLeft:r.paddingX,paddingRight:r.paddingX}),Ho(r,"paddingY")&&BB(r,{paddingTop:r.paddingY,paddingBottom:r.paddingY}),Ho(r,"padding")&&BB(r,{paddingLeft:r.padding,paddingRight:r.padding,paddingTop:r.padding,paddingBottom:r.padding}),BB(r,Kda),Zt(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(a){r[a]=Number(r[a])}),Ho(r,"width")&&(r._prevWidth=r.width),Ho(r,"height")&&(r._prevHeight=r.height)}),e.edges().forEach(function(t){var r=e.edge(t);Ho(r,"label")||(r.label=""),BB(r,Xda)})}function Zda(e){Zt(e.nodes(),function(t){var r=e.node(t);Ho(r,"_prevWidth")?r.width=r._prevWidth:delete r.width,Ho(r,"_prevHeight")?r.height=r._prevHeight:delete r.height,delete r._prevWidth,delete r._prevHeight})}function _ie(e,t){var r=e.select("g."+t);return r.empty()&&(r=e.append("g").attr("class",t)),r}function O7(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:Jda(e),edges:efa(e)};return gl(e.graph())||(t.value=ZAe(e.graph())),t}function Jda(e){return wo(e.nodes(),function(t){var r=e.node(t),a=e.parent(t),s={v:t};return gl(r)||(s.value=r),gl(a)||(s.parent=a),s})}function efa(e){return wo(e.edges(),function(t){var r=e.edge(t),a={v:t.v,w:t.w};return gl(t.name)||(a.name=t.name),gl(r)||(a.value=r),a})}const tfa={};function nfa(e,t){const r=tfa,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Eer(e,a,s)}function Eer(e,t,r){if(rfa(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return iCn(e.children,t,r)}return Array.isArray(e)?iCn(e,t,r):""}function iCn(e,t,r){const a=[];let s=-1;for(;++ss?0:s+t:t=t>s?s:t,r=r>0?r:0,a.length<1e4)u=Array.from(a),u.unshift(t,r),e.splice(...u);else for(r&&e.splice(t,r);o0?(SA(e,e.length,0,t),e):t}const aCn={}.hasOwnProperty;function ifa(e){const t={};let r=-1;for(;++ru))return;const F=t.events.length;let U=F,$,G;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){if($){G=t.events[U][1].end;break}$=!0}for(k(a),M=F;MN;){const P=r[L];t.containerState=P[1],P[0].exit.call(t,e)}r.length=N}function I(){s.write([null]),o=void 0,s=void 0,t.containerState._closeFlow=void 0}}function bfa(e,t,r){return Zh(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function oCn(e){if(e===null||t_(e)||dfa(e))return 1;if(hfa(e))return 2}function qbt(e,t,r){const a=[];let s=-1;for(;++s1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const b=Object.assign({},e[a][1].end),_=Object.assign({},e[r][1].start);lCn(b,-f),lCn(_,f),u={type:f>1?"strongSequence":"emphasisSequence",start:b,end:Object.assign({},e[a][1].end)},h={type:f>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:_},o={type:f>1?"strongText":"emphasisText",start:Object.assign({},e[a][1].end),end:Object.assign({},e[r][1].start)},s={type:f>1?"strong":"emphasis",start:Object.assign({},u.start),end:Object.assign({},h.end)},e[a][1].end=Object.assign({},u.start),e[r][1].start=Object.assign({},h.end),p=[],e[a][1].end.offset-e[a][1].start.offset&&(p=eS(p,[["enter",e[a][1],t],["exit",e[a][1],t]])),p=eS(p,[["enter",s,t],["enter",u,t],["exit",u,t],["enter",o,t]]),p=eS(p,qbt(t.parser.constructs.insideSpan.null,e.slice(a+1,r),t)),p=eS(p,[["exit",o,t],["enter",h,t],["exit",h,t],["exit",s,t]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,p=eS(p,[["enter",e[r][1],t],["exit",e[r][1],t]])):m=0,SA(e,a-1,r-a+3,p),r=a+p.length-m-2;break}}for(r=-1;++r0&&xu(M)?Zh(e,I,"linePrefix",o+1)(M):I(M)}function I(M){return M===null||$o(M)?e.check(cCn,C,L)(M):(e.enter("codeFlowValue"),N(M))}function N(M){return M===null||$o(M)?(e.exit("codeFlowValue"),I(M)):(e.consume(M),N)}function L(M){return e.exit("codeFenced"),t(M)}function P(M,F,U){let $=0;return G;function G(W){return M.enter("lineEnding"),M.consume(W),M.exit("lineEnding"),B}function B(W){return M.enter("codeFencedFence"),xu(W)?Zh(M,Z,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):Z(W)}function Z(W){return W===h?(M.enter("codeFencedFenceSequence"),z(W)):U(W)}function z(W){return W===h?($++,M.consume(W),z):$>=u?(M.exit("codeFencedFenceSequence"),xu(W)?Zh(M,Y,"whitespace")(W):Y(W)):U(W)}function Y(W){return W===null||$o(W)?(M.exit("codeFencedFence"),F(W)):U(W)}}}function Rfa(e,t,r){const a=this;return s;function s(u){return u===null?r(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o)}function o(u){return a.parser.lazy[a.now().line]?r(u):t(u)}}const Cat={name:"codeIndented",tokenize:Nfa},Ifa={tokenize:Ofa,partial:!0};function Nfa(e,t,r){const a=this;return s;function s(p){return e.enter("codeIndented"),Zh(e,o,"linePrefix",5)(p)}function o(p){const m=a.events[a.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?u(p):r(p)}function u(p){return p===null?f(p):$o(p)?e.attempt(Ifa,u,f)(p):(e.enter("codeFlowValue"),h(p))}function h(p){return p===null||$o(p)?(e.exit("codeFlowValue"),u(p)):(e.consume(p),h)}function f(p){return e.exit("codeIndented"),t(p)}}function Ofa(e,t,r){const a=this;return s;function s(u){return a.parser.lazy[a.now().line]?r(u):$o(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):Zh(e,o,"linePrefix",5)(u)}function o(u){const h=a.events[a.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?t(u):$o(u)?s(u):r(u)}}const Lfa={name:"codeText",tokenize:Pfa,resolve:Dfa,previous:Mfa};function Dfa(e){let t=e.length-4,r=3,a,s;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=r;++a=4?t(u):e.interrupt(a.parser.constructs.flow,r,t)(u)}}function Aer(e,t,r,a,s,o,u,h,f){const p=f||Number.POSITIVE_INFINITY;let m=0;return b;function b(k){return k===60?(e.enter(a),e.enter(s),e.enter(o),e.consume(k),e.exit(o),_):k===null||k===32||k===41||Eht(k)?r(k):(e.enter(a),e.enter(u),e.enter(h),e.enter("chunkString",{contentType:"string"}),C(k))}function _(k){return k===62?(e.enter(o),e.consume(k),e.exit(o),e.exit(s),e.exit(a),t):(e.enter(h),e.enter("chunkString",{contentType:"string"}),w(k))}function w(k){return k===62?(e.exit("chunkString"),e.exit(h),_(k)):k===null||k===60||$o(k)?r(k):(e.consume(k),k===92?S:w)}function S(k){return k===60||k===62||k===92?(e.consume(k),w):w(k)}function C(k){return!m&&(k===null||k===41||t_(k))?(e.exit("chunkString"),e.exit(h),e.exit(u),e.exit(a),t(k)):m999||w===null||w===91||w===93&&!f||w===94&&!h&&"_hiddenFootnoteSupport"in u.parser.constructs?r(w):w===93?(e.exit(o),e.enter(s),e.consume(w),e.exit(s),e.exit(a),t):$o(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),b(w))}function b(w){return w===null||w===91||w===93||$o(w)||h++>999?(e.exit("chunkString"),m(w)):(e.consume(w),f||(f=!xu(w)),w===92?_:b)}function _(w){return w===91||w===92||w===93?(e.consume(w),h++,b):b(w)}}function Rer(e,t,r,a,s,o){let u;return h;function h(_){return _===34||_===39||_===40?(e.enter(a),e.enter(s),e.consume(_),e.exit(s),u=_===40?41:_,f):r(_)}function f(_){return _===u?(e.enter(s),e.consume(_),e.exit(s),e.exit(a),t):(e.enter(o),p(_))}function p(_){return _===u?(e.exit(o),f(u)):_===null?r(_):$o(_)?(e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),Zh(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(_))}function m(_){return _===u||_===null||$o(_)?(e.exit("chunkString"),p(_)):(e.consume(_),_===92?b:m)}function b(_){return _===u||_===92?(e.consume(_),m):m(_)}}function Dse(e,t){let r;return a;function a(s){return $o(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r=!0,a):xu(s)?Zh(e,a,r?"linePrefix":"lineSuffix")(s):t(s)}}function uY(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const qfa={name:"definition",tokenize:Vfa},Hfa={tokenize:Yfa,partial:!0};function Vfa(e,t,r){const a=this;let s;return o;function o(w){return e.enter("definition"),u(w)}function u(w){return ker.call(a,e,h,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function h(w){return s=uY(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),f):r(w)}function f(w){return t_(w)?Dse(e,p)(w):p(w)}function p(w){return Aer(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function m(w){return e.attempt(Hfa,b,b)(w)}function b(w){return xu(w)?Zh(e,_,"whitespace")(w):_(w)}function _(w){return w===null||$o(w)?(e.exit("definition"),a.parser.defined.push(s),t(w)):r(w)}}function Yfa(e,t,r){return a;function a(h){return t_(h)?Dse(e,s)(h):r(h)}function s(h){return Rer(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(h)}function o(h){return xu(h)?Zh(e,u,"whitespace")(h):u(h)}function u(h){return h===null||$o(h)?t(h):r(h)}}const jfa={name:"hardBreakEscape",tokenize:Wfa};function Wfa(e,t,r){return a;function a(o){return e.enter("hardBreakEscape"),e.consume(o),s}function s(o){return $o(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}const Kfa={name:"headingAtx",tokenize:Qfa,resolve:Xfa};function Xfa(e,t){let r=e.length-2,a=3,s,o;return e[a][1].type==="whitespace"&&(a+=2),r-2>a&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&e[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(s={type:"atxHeadingText",start:e[a][1].start,end:e[r][1].end},o={type:"chunkText",start:e[a][1].start,end:e[r][1].end,contentType:"text"},SA(e,a,r-a+1,[["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t]])),e}function Qfa(e,t,r){let a=0;return s;function s(m){return e.enter("atxHeading"),o(m)}function o(m){return e.enter("atxHeadingSequence"),u(m)}function u(m){return m===35&&a++<6?(e.consume(m),u):m===null||t_(m)?(e.exit("atxHeadingSequence"),h(m)):r(m)}function h(m){return m===35?(e.enter("atxHeadingSequence"),f(m)):m===null||$o(m)?(e.exit("atxHeading"),t(m)):xu(m)?Zh(e,h,"whitespace")(m):(e.enter("atxHeadingText"),p(m))}function f(m){return m===35?(e.consume(m),f):(e.exit("atxHeadingSequence"),h(m))}function p(m){return m===null||m===35||t_(m)?(e.exit("atxHeadingText"),h(m)):(e.consume(m),p)}}const Zfa=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],hCn=["pre","script","style","textarea"],Jfa={name:"htmlFlow",tokenize:r0a,resolveTo:n0a,concrete:!0},e0a={tokenize:a0a,partial:!0},t0a={tokenize:i0a,partial:!0};function n0a(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function r0a(e,t,r){const a=this;let s,o,u,h,f;return p;function p(ie){return m(ie)}function m(ie){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(ie),b}function b(ie){return ie===33?(e.consume(ie),_):ie===47?(e.consume(ie),o=!0,C):ie===63?(e.consume(ie),s=3,a.interrupt?t:te):qC(ie)?(e.consume(ie),u=String.fromCharCode(ie),A):r(ie)}function _(ie){return ie===45?(e.consume(ie),s=2,w):ie===91?(e.consume(ie),s=5,h=0,S):qC(ie)?(e.consume(ie),s=4,a.interrupt?t:te):r(ie)}function w(ie){return ie===45?(e.consume(ie),a.interrupt?t:te):r(ie)}function S(ie){const ge="CDATA[";return ie===ge.charCodeAt(h++)?(e.consume(ie),h===ge.length?a.interrupt?t:Z:S):r(ie)}function C(ie){return qC(ie)?(e.consume(ie),u=String.fromCharCode(ie),A):r(ie)}function A(ie){if(ie===null||ie===47||ie===62||t_(ie)){const ge=ie===47,ce=u.toLowerCase();return!ge&&!o&&hCn.includes(ce)?(s=1,a.interrupt?t(ie):Z(ie)):Zfa.includes(u.toLowerCase())?(s=6,ge?(e.consume(ie),k):a.interrupt?t(ie):Z(ie)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(ie):o?I(ie):N(ie))}return ie===45||G3(ie)?(e.consume(ie),u+=String.fromCharCode(ie),A):r(ie)}function k(ie){return ie===62?(e.consume(ie),a.interrupt?t:Z):r(ie)}function I(ie){return xu(ie)?(e.consume(ie),I):G(ie)}function N(ie){return ie===47?(e.consume(ie),G):ie===58||ie===95||qC(ie)?(e.consume(ie),L):xu(ie)?(e.consume(ie),N):G(ie)}function L(ie){return ie===45||ie===46||ie===58||ie===95||G3(ie)?(e.consume(ie),L):P(ie)}function P(ie){return ie===61?(e.consume(ie),M):xu(ie)?(e.consume(ie),P):N(ie)}function M(ie){return ie===null||ie===60||ie===61||ie===62||ie===96?r(ie):ie===34||ie===39?(e.consume(ie),f=ie,F):xu(ie)?(e.consume(ie),M):U(ie)}function F(ie){return ie===f?(e.consume(ie),f=null,$):ie===null||$o(ie)?r(ie):(e.consume(ie),F)}function U(ie){return ie===null||ie===34||ie===39||ie===47||ie===60||ie===61||ie===62||ie===96||t_(ie)?P(ie):(e.consume(ie),U)}function $(ie){return ie===47||ie===62||xu(ie)?N(ie):r(ie)}function G(ie){return ie===62?(e.consume(ie),B):r(ie)}function B(ie){return ie===null||$o(ie)?Z(ie):xu(ie)?(e.consume(ie),B):r(ie)}function Z(ie){return ie===45&&s===2?(e.consume(ie),Q):ie===60&&s===1?(e.consume(ie),V):ie===62&&s===4?(e.consume(ie),ne):ie===63&&s===3?(e.consume(ie),te):ie===93&&s===5?(e.consume(ie),ee):$o(ie)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(e0a,se,z)(ie)):ie===null||$o(ie)?(e.exit("htmlFlowData"),z(ie)):(e.consume(ie),Z)}function z(ie){return e.check(t0a,Y,se)(ie)}function Y(ie){return e.enter("lineEnding"),e.consume(ie),e.exit("lineEnding"),W}function W(ie){return ie===null||$o(ie)?z(ie):(e.enter("htmlFlowData"),Z(ie))}function Q(ie){return ie===45?(e.consume(ie),te):Z(ie)}function V(ie){return ie===47?(e.consume(ie),u="",j):Z(ie)}function j(ie){if(ie===62){const ge=u.toLowerCase();return hCn.includes(ge)?(e.consume(ie),ne):Z(ie)}return qC(ie)&&u.length<8?(e.consume(ie),u+=String.fromCharCode(ie),j):Z(ie)}function ee(ie){return ie===93?(e.consume(ie),te):Z(ie)}function te(ie){return ie===62?(e.consume(ie),ne):ie===45&&s===2?(e.consume(ie),te):Z(ie)}function ne(ie){return ie===null||$o(ie)?(e.exit("htmlFlowData"),se(ie)):(e.consume(ie),ne)}function se(ie){return e.exit("htmlFlow"),t(ie)}}function i0a(e,t,r){const a=this;return s;function s(u){return $o(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):r(u)}function o(u){return a.parser.lazy[a.now().line]?r(u):t(u)}}function a0a(e,t,r){return a;function a(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(y6e,t,r)}}const s0a={name:"htmlText",tokenize:o0a};function o0a(e,t,r){const a=this;let s,o,u;return h;function h(te){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(te),f}function f(te){return te===33?(e.consume(te),p):te===47?(e.consume(te),P):te===63?(e.consume(te),N):qC(te)?(e.consume(te),U):r(te)}function p(te){return te===45?(e.consume(te),m):te===91?(e.consume(te),o=0,S):qC(te)?(e.consume(te),I):r(te)}function m(te){return te===45?(e.consume(te),w):r(te)}function b(te){return te===null?r(te):te===45?(e.consume(te),_):$o(te)?(u=b,V(te)):(e.consume(te),b)}function _(te){return te===45?(e.consume(te),w):b(te)}function w(te){return te===62?Q(te):te===45?_(te):b(te)}function S(te){const ne="CDATA[";return te===ne.charCodeAt(o++)?(e.consume(te),o===ne.length?C:S):r(te)}function C(te){return te===null?r(te):te===93?(e.consume(te),A):$o(te)?(u=C,V(te)):(e.consume(te),C)}function A(te){return te===93?(e.consume(te),k):C(te)}function k(te){return te===62?Q(te):te===93?(e.consume(te),k):C(te)}function I(te){return te===null||te===62?Q(te):$o(te)?(u=I,V(te)):(e.consume(te),I)}function N(te){return te===null?r(te):te===63?(e.consume(te),L):$o(te)?(u=N,V(te)):(e.consume(te),N)}function L(te){return te===62?Q(te):N(te)}function P(te){return qC(te)?(e.consume(te),M):r(te)}function M(te){return te===45||G3(te)?(e.consume(te),M):F(te)}function F(te){return $o(te)?(u=F,V(te)):xu(te)?(e.consume(te),F):Q(te)}function U(te){return te===45||G3(te)?(e.consume(te),U):te===47||te===62||t_(te)?$(te):r(te)}function $(te){return te===47?(e.consume(te),Q):te===58||te===95||qC(te)?(e.consume(te),G):$o(te)?(u=$,V(te)):xu(te)?(e.consume(te),$):Q(te)}function G(te){return te===45||te===46||te===58||te===95||G3(te)?(e.consume(te),G):B(te)}function B(te){return te===61?(e.consume(te),Z):$o(te)?(u=B,V(te)):xu(te)?(e.consume(te),B):$(te)}function Z(te){return te===null||te===60||te===61||te===62||te===96?r(te):te===34||te===39?(e.consume(te),s=te,z):$o(te)?(u=Z,V(te)):xu(te)?(e.consume(te),Z):(e.consume(te),Y)}function z(te){return te===s?(e.consume(te),s=void 0,W):te===null?r(te):$o(te)?(u=z,V(te)):(e.consume(te),z)}function Y(te){return te===null||te===34||te===39||te===60||te===61||te===96?r(te):te===47||te===62||t_(te)?$(te):(e.consume(te),Y)}function W(te){return te===47||te===62||t_(te)?$(te):r(te)}function Q(te){return te===62?(e.consume(te),e.exit("htmlTextData"),e.exit("htmlText"),t):r(te)}function V(te){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(te),e.exit("lineEnding"),j}function j(te){return xu(te)?Zh(e,ee,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):ee(te)}function ee(te){return e.enter("htmlTextData"),u(te)}}const Hbt={name:"labelEnd",tokenize:f0a,resolveTo:d0a,resolveAll:h0a},l0a={tokenize:p0a},c0a={tokenize:g0a},u0a={tokenize:m0a};function h0a(e){let t=-1;for(;++t=3&&(p===null||$o(p))?(e.exit("thematicBreak"),t(p)):r(p)}function f(p){return p===s?(e.consume(p),a++,f):(e.exit("thematicBreakSequence"),xu(p)?Zh(e,h,"whitespace")(p):h(p))}}const I2={name:"list",tokenize:T0a,continuation:{tokenize:C0a},exit:k0a},x0a={tokenize:R0a,partial:!0},S0a={tokenize:A0a,partial:!0};function T0a(e,t,r){const a=this,s=a.events[a.events.length-1];let o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,u=0;return h;function h(w){const S=a.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!a.containerState.marker||w===a.containerState.marker:xht(w)){if(a.containerState.type||(a.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(lSe,r,p)(w):p(w);if(!a.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(w)}return r(w)}function f(w){return xht(w)&&++u<10?(e.consume(w),f):(!a.interrupt||u<2)&&(a.containerState.marker?w===a.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),p(w)):r(w)}function p(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||w,e.check(y6e,a.interrupt?r:m,e.attempt(x0a,_,b))}function m(w){return a.containerState.initialBlankLine=!0,o++,_(w)}function b(w){return xu(w)?(e.enter("listItemPrefixWhitespace"),e.consume(w),e.exit("listItemPrefixWhitespace"),_):r(w)}function _(w){return a.containerState.size=o+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(w)}}function C0a(e,t,r){const a=this;return a.containerState._closeFlow=void 0,e.check(y6e,s,o);function s(h){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Zh(e,t,"listItemIndent",a.containerState.size+1)(h)}function o(h){return a.containerState.furtherBlankLines||!xu(h)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,u(h)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(S0a,t,u)(h))}function u(h){return a.containerState._closeFlow=!0,a.interrupt=void 0,Zh(e,e.attempt(I2,t,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h)}}function A0a(e,t,r){const a=this;return Zh(e,s,"listItemIndent",a.containerState.size+1);function s(o){const u=a.events[a.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===a.containerState.size?t(o):r(o)}}function k0a(e){e.exit(this.containerState.type)}function R0a(e,t,r){const a=this;return Zh(e,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(o){const u=a.events[a.events.length-1];return!xu(o)&&u&&u[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}const dCn={name:"setextUnderline",tokenize:N0a,resolveTo:I0a};function I0a(e,t){let r=e.length,a,s,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){a=r;break}e[r][1].type==="paragraph"&&(s=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);const u={type:"setextHeading",start:Object.assign({},e[s][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[s][1].type="setextHeadingText",o?(e.splice(s,0,["enter",u,t]),e.splice(o+1,0,["exit",e[a][1],t]),e[a][1].end=Object.assign({},e[o][1].end)):e[a][1]=u,e.push(["exit",u,t]),e}function N0a(e,t,r){const a=this;let s;return o;function o(p){let m=a.events.length,b;for(;m--;)if(a.events[m][1].type!=="lineEnding"&&a.events[m][1].type!=="linePrefix"&&a.events[m][1].type!=="content"){b=a.events[m][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||b)?(e.enter("setextHeadingLine"),s=p,u(p)):r(p)}function u(p){return e.enter("setextHeadingLineSequence"),h(p)}function h(p){return p===s?(e.consume(p),h):(e.exit("setextHeadingLineSequence"),xu(p)?Zh(e,f,"lineSuffix")(p):f(p))}function f(p){return p===null||$o(p)?(e.exit("setextHeadingLine"),t(p)):r(p)}}const O0a={tokenize:L0a};function L0a(e){const t=this,r=e.attempt(y6e,a,e.attempt(this.parser.constructs.flowInitial,s,Zh(e,e.attempt(this.parser.constructs.flow,s,e.attempt(Ffa,s)),"linePrefix")));return r;function a(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function s(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const D0a={resolveAll:Ner()},M0a=Ier("string"),P0a=Ier("text");function Ier(e){return{tokenize:t,resolveAll:Ner(e==="text"?B0a:void 0)};function t(r){const a=this,s=this.parser.constructs[e],o=r.attempt(s,u,h);return u;function u(m){return p(m)?o(m):h(m)}function h(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),f}function f(m){return p(m)?(r.exit("data"),o(m)):(r.consume(m),f)}function p(m){if(m===null)return!0;const b=s[m];let _=-1;if(b)for(;++_-1){const h=u[0];typeof h=="string"?u[0]=h.slice(a):u.shift()}o>0&&u.push(e[s].slice(0,o))}return u}function U0a(e,t){let r=-1;const a=[];let s;for(;++r13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}const e1a=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function t1a(e){return e.replace(e1a,n1a)}function n1a(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),o=s===120||s===88;return Oer(r.slice(o?2:1),o?16:10)}return _ft(r)||e}function cSe(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?pCn(e.position):"start"in e||"end"in e?pCn(e):"line"in e||"column"in e?Tht(e):""}function Tht(e){return gCn(e&&e.line)+":"+gCn(e&&e.column)}function pCn(e){return Tht(e&&e.start)+"-"+Tht(e&&e.end)}function gCn(e){return e&&typeof e=="number"?e:1}const Ler={}.hasOwnProperty,Der=function(e,t,r){return typeof t!="string"&&(r=t,t=void 0),r1a(r)(J0a(Q0a(r).document().write(Z0a()(e,t,!0))))};function r1a(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:h(ot),autolinkProtocol:B,autolinkEmail:B,atxHeading:h(Fe),blockQuote:h(he),characterEscape:B,characterReference:B,codeFenced:h(we),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:h(we,f),codeText:h(Ce,f),codeTextData:B,data:B,codeFlowValue:B,definition:h(Ie),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:h(Le),hardBreakEscape:h(Ve),hardBreakTrailing:h(Ve),htmlFlow:h(Oe,f),htmlFlowData:B,htmlText:h(Oe,f),htmlTextData:B,image:h(Dt),label:f,link:h(ot),listItem:h(Kt),listItemValue:S,listOrdered:h(sn,w),listUnordered:h(sn),paragraph:h(Ft),reference:ce,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:h(Fe),strong:h(Je),thematicBreak:h(et)},exit:{atxHeading:m(),atxHeadingSequence:F,autolink:m(),autolinkEmail:Ee,autolinkProtocol:ye,blockQuote:m(),characterEscapeValue:Z,characterReferenceMarkerHexadecimal:ve,characterReferenceMarkerNumeric:ve,characterReferenceValue:De,codeFenced:m(I),codeFencedFence:k,codeFencedFenceInfo:C,codeFencedFenceMeta:A,codeFlowValue:Z,codeIndented:m(N),codeText:m(V),codeTextData:Z,data:Z,definition:m(),definitionDestinationString:M,definitionLabelString:L,definitionTitleString:P,emphasis:m(),hardBreakEscape:m(Y),hardBreakTrailing:m(Y),htmlFlow:m(W),htmlFlowData:Z,htmlText:m(Q),htmlTextData:Z,image:m(ee),label:ne,labelText:te,lineEnding:z,link:m(j),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:be,resourceDestinationString:se,resourceTitleString:ie,resource:ge,setextHeading:m(G),setextHeadingLineSequence:$,setextHeadingText:U,strong:m(),thematicBreak:m()}};Mer(t,(e||{}).mdastExtensions||[]);const r={};return a;function a(qe){let He={type:"root",children:[]};const Ge={stack:[He],tokenStack:[],config:t,enter:p,exit:b,buffer:f,resume:_,setData:o,getData:u},Ye=[];let Ae=-1;for(;++Ae0){const Xe=Ge.tokenStack[Ge.tokenStack.length-1];(Xe[1]||mCn).call(Ge,void 0,Xe[0])}for(He.position={start:$N(qe.length>0?qe[0][1].start:{line:1,column:1,offset:0}),end:$N(qe.length>0?qe[qe.length-2][1].end:{line:1,column:1,offset:0})},Ae=-1;++Ae{m!==0&&(s++,a.push([])),p.split(" ").forEach(b=>{b&&a[s].push({content:b,type:h})})}):(u.type==="strong"||u.type==="emphasis")&&u.children.forEach(f=>{o(f,u.type)})}return r.forEach(u=>{u.type==="paragraph"&&u.children.forEach(h=>{o(h)})}),a}function o1a(e){const{children:t}=Der(e);function r(a){return a.type==="text"?a.value.replace(/\n/g,"
    "):a.type==="strong"?`${a.children.map(r).join("")}`:a.type==="emphasis"?`${a.children.map(r).join("")}`:a.type==="paragraph"?`

    ${a.children.map(r).join("")}

    `:`Unsupported markdown: ${a.type}`}return t.map(r).join("")}function l1a(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}function c1a(e,t){const r=l1a(t.content);return Per(e,[],r,t.type)}function Per(e,t,r,a){if(r.length===0)return[{content:t.join(""),type:a},{content:"",type:a}];const[s,...o]=r,u=[...t,s];return e([{content:u.join(""),type:a}])?Per(e,u,o,a):(t.length===0&&s&&(t.push(s),r.shift()),[{content:t.join(""),type:a},{content:r.join(""),type:a}])}function u1a(e,t){if(e.some(({content:r})=>r.includes(` `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Cht(e,t)}function Cht(e,t,r=[],a=[]){if(e.length===0)return a.length>0&&r.push(a),r.length>0?r:[];let s="";e[0].content===" "&&(s=" ",e.shift());const o=e.shift()??{content:" ",type:"normal"},u=[...a];if(s!==""&&u.push({content:s,type:"normal"}),u.push(o),t(u))return Cht(e,t,r,u);if(a.length>0)r.push(a),e.unshift(o);else if(o.content){const[h,f]=c1a(t,o);r.push([h]),f.content&&e.unshift(f)}return Cht(e,t,r)}function h1a(e,t){t&&e.attr("style",t)}function d1a(e,t,r,a,s=!1){const o=e.append("foreignObject"),u=o.append("xhtml:div"),h=t.label,f=t.isNode?"nodeLabel":"edgeLabel";u.html(` "+h+""),h1a(u,t.labelStyle),u.style("display","table-cell"),u.style("white-space","nowrap"),u.style("max-width",r+"px"),u.attr("xmlns","http://www.w3.org/1999/xhtml"),s&&u.attr("class","labelBkg");let p=u.node().getBoundingClientRect();return p.width===r&&(u.style("display","table"),u.style("white-space","break-spaces"),u.style("width",r+"px"),p=u.node().getBoundingClientRect()),o.style("width",p.width),o.style("height",p.height),o.node()}function Vbt(e,t,r){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em")}function f1a(e,t,r){const a=e.append("text"),s=Vbt(a,1,t);Ybt(s,r);const o=s.node().getComputedTextLength();return a.remove(),o}function p1a(e,t,r){var a;const s=e.append("text"),o=Vbt(s,1,t);Ybt(o,[{content:r,type:"normal"}]);const u=(a=o.node())==null?void 0:a.getBoundingClientRect();return u&&s.remove(),u}function g1a(e,t,r,a=!1){const o=t.append("g"),u=o.insert("rect").attr("class","background"),h=o.append("text").attr("y","-10.1");let f=0;for(const p of r){const m=_=>f1a(o,1.1,_)<=e,b=m(p)?[p]:u1a(p,m);for(const _ of b){const w=Vbt(h,f,1.1);Ybt(w,_),f++}}if(a){const p=h.node().getBBox(),m=2;return u.attr("x",-m).attr("y",-m).attr("width",p.width+2*m).attr("height",p.height+2*m),o.node()}else return h.node()}function Ybt(e,t){e.text(""),t.forEach((r,a)=>{const s=e.append("tspan").attr("font-style",r.type==="emphasis"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");a===0?s.text(r.content):s.text(" "+r.content)})}const v6e=(e,t="",{style:r="",isTitle:a=!1,classes:s="",useHtmlLabels:o=!0,isNode:u=!0,width:h=200,addSvgBackground:f=!1}={})=>{if(ut.info("createText",t,r,a,s,o,u,f),o){const p=o1a(t),m={isNode:u,label:ple(p).replace(/fa[blrs]?:fa-[\w-]+/g,_=>``),labelStyle:r.replace("fill:","color:")};return d1a(e,m,h,s,f)}else{const p=s1a(t);return g1a(h,e,p,f)}},m1a=(e,t,r,a)=>{t.forEach(s=>{C1a[s](e,r,a)})},b1a=(e,t,r)=>{ut.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},y1a=(e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},v1a=(e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},_1a=(e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},w1a=(e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},E1a=(e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},x1a=(e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},S1a=(e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},T1a=(e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},C1a={extension:b1a,composition:y1a,aggregation:v1a,dependency:_1a,lollipop:w1a,point:E1a,circle:x1a,cross:S1a,barb:T1a},jbt=m1a;function A1a(e,t){t&&e.attr("style",t)}function k1a(e){const t=gn(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div"),a=e.label,s=e.isNode?"nodeLabel":"edgeLabel";return r.html('"+a+""),A1a(r,e.labelStyle),r.style("display","inline-block"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const R1a=(e,t,r,a)=>{let s=e||"";if(typeof s=="object"&&(s=s[0]),Np(Qt().flowchart.htmlLabels)){s=s.replace(/\\n|\n/g,"
    "),ut.debug("vertexText"+s);const o={isNode:a,label:ple(s).replace(/fa[blrs]?:fa-[\w-]+/g,h=>``),labelStyle:t.replace("fill:","color:")};return k1a(o)}else{const o=document.createElementNS("http://www.w3.org/2000/svg","text");o.setAttribute("style",t.replace("color:","fill:"));let u=[];typeof s=="string"?u=s.split(/\\n|\n|/gi):Array.isArray(s)?u=s:u=[];for(const h of u){const f=document.createElementNS("http://www.w3.org/2000/svg","tspan");f.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),f.setAttribute("dy","1em"),f.setAttribute("x","0"),r?f.setAttribute("class","title-row"):f.setAttribute("class","row"),f.textContent=h.trim(),o.appendChild(f)}return o}},q2=R1a,Up=async(e,t,r,a)=>{let s;const o=t.useHtmlLabels||Np(Qt().flowchart.htmlLabels);r?s=r:s="node default";const u=e.insert("g").attr("class",s).attr("id",t.domId||t.id),h=u.insert("g").attr("class","label").attr("style",t.labelStyle);let f;t.labelText===void 0?f="":f=typeof t.labelText=="string"?t.labelText:t.labelText[0];const p=h.node();let m;t.labelType==="markdown"?m=v6e(h,J0(ple(f),Qt()),{useHtmlLabels:o,width:t.width||Qt().flowchart.wrappingWidth,classes:"markdown-node-label"}):m=p.appendChild(q2(J0(ple(f),Qt()),t.labelStyle,!1,a));let b=m.getBBox();const _=t.padding/2;if(Np(Qt().flowchart.htmlLabels)){const w=m.children[0],S=gn(m),C=w.getElementsByTagName("img");if(C){const A=f.replace(/]*>/g,"").trim()==="";await Promise.all([...C].map(k=>new Promise(I=>{function N(){if(k.style.display="flex",k.style.flexDirection="column",A){const L=Qt().fontSize?Qt().fontSize:window.getComputedStyle(document.body).fontSize,M=parseInt(L,10)*5+"px";k.style.minWidth=M,k.style.maxWidth=M}else k.style.width="100%";I(k)}setTimeout(()=>{k.complete&&N()}),k.addEventListener("error",N),k.addEventListener("load",N)})))}b=w.getBoundingClientRect(),S.attr("width",b.width),S.attr("height",b.height)}return o?h.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"):h.attr("transform","translate(0, "+-b.height/2+")"),t.centerLabel&&h.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),h.insert("rect",":first-child"),{shapeSvg:u,bbox:b,halfPadding:_,label:h}},Df=(e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height};function YA(e,t,r,a){return e.insert("polygon",":first-child").attr("points",a.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}function I1a(e,t){return e.intersect(t)}function Ber(e,t,r,a){var s=e.x,o=e.y,u=s-a.x,h=o-a.y,f=Math.sqrt(t*t*h*h+r*r*u*u),p=Math.abs(t*r*u/f);a.x0}function L1a(e,t,r){var a=e.x,s=e.y,o=[],u=Number.POSITIVE_INFINITY,h=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(S){u=Math.min(u,S.x),h=Math.min(h,S.y)}):(u=Math.min(u,t.x),h=Math.min(h,t.y));for(var f=a-e.width/2-u,p=s-e.height/2-h,m=0;m1&&o.sort(function(S,C){var A=S.x-r.x,k=S.y-r.y,I=Math.sqrt(A*A+k*k),N=C.x-r.x,L=C.y-r.y,P=Math.sqrt(N*N+L*L);return I{var r=e.x,a=e.y,s=t.x-r,o=t.y-a,u=e.width/2,h=e.height/2,f,p;return Math.abs(o)*u>Math.abs(s)*h?(o<0&&(h=-h),f=o===0?0:h*s/o,p=h):(s<0&&(u=-u),f=u,p=s===0?0:u*o/s),{x:r+f,y:a+p}},eue=D1a,Zd={node:I1a,circle:N1a,ellipse:Ber,polygon:L1a,rect:eue},M1a=async(e,t)=>{t.useHtmlLabels||Qt().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:a,bbox:s,halfPadding:o}=await Up(e,t,"node "+t.classes,!0);ut.info("Classes = ",t.classes);const u=a.insert("rect",":first-child");return u.attr("rx",t.rx).attr("ry",t.ry).attr("x",-s.width/2-o).attr("y",-s.height/2-o).attr("width",s.width+t.padding).attr("height",s.height+t.padding),Df(t,u),t.intersect=function(h){return Zd.rect(t,h)},a},P1a=M1a,B1a=e=>{const t=new Set;for(const r of e)switch(r){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(r);break}return t},F1a=(e,t,r)=>{const a=B1a(e),s=2,o=t.height+2*r.padding,u=o/s,h=t.width+2*u+r.padding,f=r.padding/2;return a.has("right")&&a.has("left")&&a.has("up")&&a.has("down")?[{x:0,y:0},{x:u,y:0},{x:h/2,y:2*f},{x:h-u,y:0},{x:h,y:0},{x:h,y:-o/3},{x:h+2*f,y:-o/2},{x:h,y:-2*o/3},{x:h,y:-o},{x:h-u,y:-o},{x:h/2,y:-o-2*f},{x:u,y:-o},{x:0,y:-o},{x:0,y:-2*o/3},{x:-2*f,y:-o/2},{x:0,y:-o/3}]:a.has("right")&&a.has("left")&&a.has("up")?[{x:u,y:0},{x:h-u,y:0},{x:h,y:-o/2},{x:h-u,y:-o},{x:u,y:-o},{x:0,y:-o/2}]:a.has("right")&&a.has("left")&&a.has("down")?[{x:0,y:0},{x:u,y:-o},{x:h-u,y:-o},{x:h,y:0}]:a.has("right")&&a.has("up")&&a.has("down")?[{x:0,y:0},{x:h,y:-u},{x:h,y:-o+u},{x:0,y:-o}]:a.has("left")&&a.has("up")&&a.has("down")?[{x:h,y:0},{x:0,y:-u},{x:0,y:-o+u},{x:h,y:-o}]:a.has("right")&&a.has("left")?[{x:u,y:0},{x:u,y:-f},{x:h-u,y:-f},{x:h-u,y:0},{x:h,y:-o/2},{x:h-u,y:-o},{x:h-u,y:-o+f},{x:u,y:-o+f},{x:u,y:-o},{x:0,y:-o/2}]:a.has("up")&&a.has("down")?[{x:h/2,y:0},{x:0,y:-f},{x:u,y:-f},{x:u,y:-o+f},{x:0,y:-o+f},{x:h/2,y:-o},{x:h,y:-o+f},{x:h-u,y:-o+f},{x:h-u,y:-f},{x:h,y:-f}]:a.has("right")&&a.has("up")?[{x:0,y:0},{x:h,y:-u},{x:0,y:-o}]:a.has("right")&&a.has("down")?[{x:0,y:0},{x:h,y:0},{x:0,y:-o}]:a.has("left")&&a.has("up")?[{x:h,y:0},{x:0,y:-u},{x:h,y:-o}]:a.has("left")&&a.has("down")?[{x:h,y:0},{x:0,y:0},{x:h,y:-o}]:a.has("right")?[{x:u,y:-f},{x:u,y:-f},{x:h-u,y:-f},{x:h-u,y:0},{x:h,y:-o/2},{x:h-u,y:-o},{x:h-u,y:-o+f},{x:u,y:-o+f},{x:u,y:-o+f}]:a.has("left")?[{x:u,y:0},{x:u,y:-f},{x:h-u,y:-f},{x:h-u,y:-o+f},{x:u,y:-o+f},{x:u,y:-o},{x:0,y:-o/2}]:a.has("up")?[{x:u,y:-f},{x:u,y:-o+f},{x:0,y:-o+f},{x:h/2,y:-o},{x:h,y:-o+f},{x:h-u,y:-o+f},{x:h-u,y:-f}]:a.has("down")?[{x:h/2,y:0},{x:0,y:-f},{x:u,y:-f},{x:u,y:-o+f},{x:h-u,y:-o+f},{x:h-u,y:-f},{x:h,y:-f}]:[{x:0,y:0}]},yCn=e=>e?" "+e:"",Jw=(e,t)=>`node default${yCn(e.classes)} ${yCn(e.class)}`,vCn=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,Jw(t),!0),s=a.width+t.padding,o=a.height+t.padding,u=s+o,h=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}];ut.info("Question main (Circle)");const f=YA(r,u,u,h);return f.attr("style",t.style),Df(t,f),t.intersect=function(p){return ut.warn("Intersect called"),Zd.polygon(t,h,p)},r},$1a=(e,t)=>{const r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),a=28,s=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}];return r.insert("polygon",":first-child").attr("points",s.map(function(u){return u.x+","+u.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(u){return Zd.circle(t,14,u)},r},U1a=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,Jw(t),!0),s=4,o=a.height+t.padding,u=o/s,h=a.width+2*u+t.padding,f=[{x:u,y:0},{x:h-u,y:0},{x:h,y:-o/2},{x:h-u,y:-o},{x:u,y:-o},{x:0,y:-o/2}],p=YA(r,h,o,f);return p.attr("style",t.style),Df(t,p),t.intersect=function(m){return Zd.polygon(t,f,m)},r},z1a=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,void 0,!0),s=2,o=a.height+2*t.padding,u=o/s,h=a.width+2*u+t.padding,f=F1a(t.directions,a,t),p=YA(r,h,o,f);return p.attr("style",t.style),Df(t,p),t.intersect=function(m){return Zd.polygon(t,f,m)},r},G1a=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,Jw(t),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:-o/2,y:0},{x:s,y:0},{x:s,y:-o},{x:-o/2,y:-o},{x:0,y:-o/2}];return YA(r,s,o,u).attr("style",t.style),t.width=s+o,t.height=o,t.intersect=function(f){return Zd.polygon(t,u,f)},r},q1a=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,Jw(t),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:-2*o/6,y:0},{x:s-o/6,y:0},{x:s+2*o/6,y:-o},{x:o/6,y:-o}],h=YA(r,s,o,u);return h.attr("style",t.style),Df(t,h),t.intersect=function(f){return Zd.polygon(t,u,f)},r},H1a=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,Jw(t),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:2*o/6,y:0},{x:s+o/6,y:0},{x:s-2*o/6,y:-o},{x:-o/6,y:-o}],h=YA(r,s,o,u);return h.attr("style",t.style),Df(t,h),t.intersect=function(f){return Zd.polygon(t,u,f)},r},V1a=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,Jw(t),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:-2*o/6,y:0},{x:s+2*o/6,y:0},{x:s-o/6,y:-o},{x:o/6,y:-o}],h=YA(r,s,o,u);return h.attr("style",t.style),Df(t,h),t.intersect=function(f){return Zd.polygon(t,u,f)},r},Y1a=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,Jw(t),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:o/6,y:0},{x:s-o/6,y:0},{x:s+2*o/6,y:-o},{x:-2*o/6,y:-o}],h=YA(r,s,o,u);return h.attr("style",t.style),Df(t,h),t.intersect=function(f){return Zd.polygon(t,u,f)},r},j1a=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,Jw(t),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:0,y:0},{x:s+o/2,y:0},{x:s,y:-o/2},{x:s+o/2,y:-o},{x:0,y:-o}],h=YA(r,s,o,u);return h.attr("style",t.style),Df(t,h),t.intersect=function(f){return Zd.polygon(t,u,f)},r},W1a=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,Jw(t),!0),s=a.width+t.padding,o=s/2,u=o/(2.5+s/50),h=a.height+u+t.padding,f="M 0,"+u+" a "+o+","+u+" 0,0,0 "+s+" 0 a "+o+","+u+" 0,0,0 "+-s+" 0 l 0,"+h+" a "+o+","+u+" 0,0,0 "+s+" 0 l 0,"+-h,p=r.attr("label-offset-y",u).insert("path",":first-child").attr("style",t.style).attr("d",f).attr("transform","translate("+-s/2+","+-(h/2+u)+")");return Df(t,p),t.intersect=function(m){const b=Zd.rect(t,m),_=b.x-t.x;if(o!=0&&(Math.abs(_)t.height/2-u)){let w=u*u*(1-_*_/(o*o));w!=0&&(w=Math.sqrt(w)),w=u-w,m.y-t.y>0&&(w=-w),b.y+=w}return b},r},K1a=async(e,t)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Up(e,t,"node "+t.classes+" "+t.class,!0),o=r.insert("rect",":first-child"),u=t.positioned?t.width:a.width+t.padding,h=t.positioned?t.height:a.height+t.padding,f=t.positioned?-u/2:-a.width/2-s,p=t.positioned?-h/2:-a.height/2-s;if(o.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",f).attr("y",p).attr("width",u).attr("height",h),t.props){const m=new Set(Object.keys(t.props));t.props.borders&&(Wbt(o,t.props.borders,u,h),m.delete("borders")),m.forEach(b=>{ut.warn(`Unknown node property ${b}`)})}return Df(t,o),t.intersect=function(m){return Zd.rect(t,m)},r},X1a=async(e,t)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Up(e,t,"node "+t.classes,!0),o=r.insert("rect",":first-child"),u=t.positioned?t.width:a.width+t.padding,h=t.positioned?t.height:a.height+t.padding,f=t.positioned?-u/2:-a.width/2-s,p=t.positioned?-h/2:-a.height/2-s;if(o.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",f).attr("y",p).attr("width",u).attr("height",h),t.props){const m=new Set(Object.keys(t.props));t.props.borders&&(Wbt(o,t.props.borders,u,h),m.delete("borders")),m.forEach(b=>{ut.warn(`Unknown node property ${b}`)})}return Df(t,o),t.intersect=function(m){return Zd.rect(t,m)},r},Q1a=async(e,t)=>{const{shapeSvg:r}=await Up(e,t,"label",!0);ut.trace("Classes = ",t.class);const a=r.insert("rect",":first-child"),s=0,o=0;if(a.attr("width",s).attr("height",o),r.attr("class","label edgeLabel"),t.props){const u=new Set(Object.keys(t.props));t.props.borders&&(Wbt(a,t.props.borders,s,o),u.delete("borders")),u.forEach(h=>{ut.warn(`Unknown node property ${h}`)})}return Df(t,a),t.intersect=function(u){return Zd.rect(t,u)},r};function Wbt(e,t,r,a){const s=[],o=h=>{s.push(h,0)},u=h=>{s.push(0,h)};t.includes("t")?(ut.debug("add top border"),o(r)):u(r),t.includes("r")?(ut.debug("add right border"),o(a)):u(a),t.includes("b")?(ut.debug("add bottom border"),o(r)):u(r),t.includes("l")?(ut.debug("add left border"),o(a)):u(a),e.attr("stroke-dasharray",s.join(" "))}const Z1a=(e,t)=>{let r;t.classes?r="node "+t.classes:r="node default";const a=e.insert("g").attr("class",r).attr("id",t.domId||t.id),s=a.insert("rect",":first-child"),o=a.insert("line"),u=a.insert("g").attr("class","label"),h=t.labelText.flat?t.labelText.flat():t.labelText;let f="";typeof h=="object"?f=h[0]:f=h,ut.info("Label text abc79",f,h,typeof h=="object");const p=u.node().appendChild(q2(f,t.labelStyle,!0,!0));let m={width:0,height:0};if(Np(Qt().flowchart.htmlLabels)){const C=p.children[0],A=gn(p);m=C.getBoundingClientRect(),A.attr("width",m.width),A.attr("height",m.height)}ut.info("Text 2",h);const b=h.slice(1,h.length);let _=p.getBBox();const w=u.node().appendChild(q2(b.join?b.join("
    "):b,t.labelStyle,!0,!0));if(Np(Qt().flowchart.htmlLabels)){const C=w.children[0],A=gn(w);m=C.getBoundingClientRect(),A.attr("width",m.width),A.attr("height",m.height)}const S=t.padding/2;return gn(w).attr("transform","translate( "+(m.width>_.width?0:(_.width-m.width)/2)+", "+(_.height+S+5)+")"),gn(p).attr("transform","translate( "+(m.width<_.width?0:-(_.width-m.width)/2)+", 0)"),m=u.node().getBBox(),u.attr("transform","translate("+-m.width/2+", "+(-m.height/2-S+3)+")"),s.attr("class","outer title-state").attr("x",-m.width/2-S).attr("y",-m.height/2-S).attr("width",m.width+t.padding).attr("height",m.height+t.padding),o.attr("class","divider").attr("x1",-m.width/2-S).attr("x2",m.width/2+S).attr("y1",-m.height/2-S+_.height+S).attr("y2",-m.height/2-S+_.height+S),Df(t,s),t.intersect=function(C){return Zd.rect(t,C)},a},J1a=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,Jw(t),!0),s=a.height+t.padding,o=a.width+s/4+t.padding,u=r.insert("rect",":first-child").attr("style",t.style).attr("rx",s/2).attr("ry",s/2).attr("x",-o/2).attr("y",-s/2).attr("width",o).attr("height",s);return Df(t,u),t.intersect=function(h){return Zd.rect(t,h)},r},epa=async(e,t)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Up(e,t,Jw(t),!0),o=r.insert("circle",":first-child");return o.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",a.width/2+s).attr("width",a.width+t.padding).attr("height",a.height+t.padding),ut.info("Circle main"),Df(t,o),t.intersect=function(u){return ut.info("Circle intersect",t,a.width/2+s,u),Zd.circle(t,a.width/2+s,u)},r},tpa=async(e,t)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Up(e,t,Jw(t),!0),o=5,u=r.insert("g",":first-child"),h=u.insert("circle"),f=u.insert("circle");return u.attr("class",t.class),h.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",a.width/2+s+o).attr("width",a.width+t.padding+o*2).attr("height",a.height+t.padding+o*2),f.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",a.width/2+s).attr("width",a.width+t.padding).attr("height",a.height+t.padding),ut.info("DoubleCircle main"),Df(t,h),t.intersect=function(p){return ut.info("DoubleCircle intersect",t,a.width/2+s+o,p),Zd.circle(t,a.width/2+s+o,p)},r},npa=async(e,t)=>{const{shapeSvg:r,bbox:a}=await Up(e,t,Jw(t),!0),s=a.width+t.padding,o=a.height+t.padding,u=[{x:0,y:0},{x:s,y:0},{x:s,y:-o},{x:0,y:-o},{x:0,y:0},{x:-8,y:0},{x:s+8,y:0},{x:s+8,y:-o},{x:-8,y:-o},{x:-8,y:0}],h=YA(r,s,o,u);return h.attr("style",t.style),Df(t,h),t.intersect=function(f){return Zd.polygon(t,u,f)},r},rpa=(e,t)=>{const r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),a=r.insert("circle",":first-child");return a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),Df(t,a),t.intersect=function(s){return Zd.circle(t,7,s)},r},_Cn=(e,t,r)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let s=70,o=10;r==="LR"&&(s=10,o=70);const u=a.append("rect").attr("x",-1*s/2).attr("y",-1*o/2).attr("width",s).attr("height",o).attr("class","fork-join");return Df(t,u),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(h){return Zd.rect(t,h)},a},ipa=(e,t)=>{const r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),a=r.insert("circle",":first-child"),s=r.insert("circle",":first-child");return s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),a.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),Df(t,s),t.intersect=function(o){return Zd.circle(t,7,o)},r},apa=(e,t)=>{const r=t.padding/2,a=4,s=8;let o;t.classes?o="node "+t.classes:o="node default";const u=e.insert("g").attr("class",o).attr("id",t.domId||t.id),h=u.insert("rect",":first-child"),f=u.insert("line"),p=u.insert("line");let m=0,b=a;const _=u.insert("g").attr("class","label");let w=0;const S=t.classData.annotations&&t.classData.annotations[0],C=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",A=_.node().appendChild(q2(C,t.labelStyle,!0,!0));let k=A.getBBox();if(Np(Qt().flowchart.htmlLabels)){const U=A.children[0],$=gn(A);k=U.getBoundingClientRect(),$.attr("width",k.width),$.attr("height",k.height)}t.classData.annotations[0]&&(b+=k.height+a,m+=k.width);let I=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(Qt().flowchart.htmlLabels?I+="<"+t.classData.type+">":I+="<"+t.classData.type+">");const N=_.node().appendChild(q2(I,t.labelStyle,!0,!0));gn(N).attr("class","classTitle");let L=N.getBBox();if(Np(Qt().flowchart.htmlLabels)){const U=N.children[0],$=gn(N);L=U.getBoundingClientRect(),$.attr("width",L.width),$.attr("height",L.height)}b+=L.height+a,L.width>m&&(m=L.width);const P=[];t.classData.members.forEach(U=>{const $=U.getDisplayDetails();let G=$.displayText;Qt().flowchart.htmlLabels&&(G=G.replace(//g,">"));const B=_.node().appendChild(q2(G,$.cssStyle?$.cssStyle:t.labelStyle,!0,!0));let Z=B.getBBox();if(Np(Qt().flowchart.htmlLabels)){const z=B.children[0],Y=gn(B);Z=z.getBoundingClientRect(),Y.attr("width",Z.width),Y.attr("height",Z.height)}Z.width>m&&(m=Z.width),b+=Z.height+a,P.push(B)}),b+=s;const M=[];if(t.classData.methods.forEach(U=>{const $=U.getDisplayDetails();let G=$.displayText;Qt().flowchart.htmlLabels&&(G=G.replace(//g,">"));const B=_.node().appendChild(q2(G,$.cssStyle?$.cssStyle:t.labelStyle,!0,!0));let Z=B.getBBox();if(Np(Qt().flowchart.htmlLabels)){const z=B.children[0],Y=gn(B);Z=z.getBoundingClientRect(),Y.attr("width",Z.width),Y.attr("height",Z.height)}Z.width>m&&(m=Z.width),b+=Z.height+a,M.push(B)}),b+=s,S){let U=(m-k.width)/2;gn(A).attr("transform","translate( "+(-1*m/2+U)+", "+-1*b/2+")"),w=k.height+a}let F=(m-L.width)/2;return gn(N).attr("transform","translate( "+(-1*m/2+F)+", "+(-1*b/2+w)+")"),w+=L.height+a,f.attr("class","divider").attr("x1",-m/2-r).attr("x2",m/2+r).attr("y1",-b/2-r+s+w).attr("y2",-b/2-r+s+w),w+=s,P.forEach(U=>{gn(U).attr("transform","translate( "+-m/2+", "+(-1*b/2+w+s/2)+")");const $=U==null?void 0:U.getBBox();w+=(($==null?void 0:$.height)??0)+a}),w+=s,p.attr("class","divider").attr("x1",-m/2-r).attr("x2",m/2+r).attr("y1",-b/2-r+s+w).attr("y2",-b/2-r+s+w),w+=s,M.forEach(U=>{gn(U).attr("transform","translate( "+-m/2+", "+(-1*b/2+w)+")");const $=U==null?void 0:U.getBBox();w+=(($==null?void 0:$.height)??0)+a}),h.attr("style",t.style).attr("class","outer title-state").attr("x",-m/2-r).attr("y",-(b/2)-r).attr("width",m+t.padding).attr("height",b+t.padding),Df(t,h),t.intersect=function(U){return Zd.rect(t,U)},u},wCn={rhombus:vCn,composite:X1a,question:vCn,rect:K1a,labelRect:Q1a,rectWithTitle:Z1a,choice:$1a,circle:epa,doublecircle:tpa,stadium:J1a,hexagon:U1a,block_arrow:z1a,rect_left_inv_arrow:G1a,lean_right:q1a,lean_left:H1a,trapezoid:V1a,inv_trapezoid:Y1a,rect_right_inv_arrow:j1a,cylinder:W1a,start:rpa,end:ipa,note:P1a,subroutine:npa,fork:_Cn,join:_Cn,class_box:apa};let hY={};const _6e=async(e,t,r)=>{let a,s;if(t.link){let o;Qt().securityLevel==="sandbox"?o="_top":t.linkTarget&&(o=t.linkTarget||"_blank"),a=e.insert("svg:a").attr("xlink:href",t.link).attr("target",o),s=await wCn[t.shape](a,t,r)}else s=await wCn[t.shape](e,t,r),a=s;return t.tooltip&&s.attr("title",t.tooltip),t.class&&s.attr("class","node default "+t.class),a.attr("data-node","true"),a.attr("data-id",t.id),hY[t.id]=a,t.haveCallback&&hY[t.id].attr("class",hY[t.id].attr("class")+" clickable"),a},spa=(e,t)=>{hY[t.id]=e},opa=()=>{hY={}},Aht=e=>{const t=hY[e.id];ut.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,a=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+a-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),a},w6e=({flowchart:e})=>{var t,r;const a=((t=e==null?void 0:e.subGraphTitleMargin)==null?void 0:t.top)??0,s=((r=e==null?void 0:e.subGraphTitleMargin)==null?void 0:r.bottom)??0,o=a+s;return{subGraphTitleTopMargin:a,subGraphTitleBottomMargin:s,subGraphTitleTotalMargin:o}},UN={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function EEe(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=s5e(e),t=s5e(t);const[r,a]=[e.x,e.y],[s,o]=[t.x,t.y],u=s-r,h=o-a;return{angle:Math.atan(h/u),deltaX:u,deltaY:h}}const s5e=e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,Fer=e=>({x:function(t,r,a){let s=0;if(r===0&&Object.hasOwn(UN,e.arrowTypeStart)){const{angle:o,deltaX:u}=EEe(a[0],a[1]);s=UN[e.arrowTypeStart]*Math.cos(o)*(u>=0?1:-1)}else if(r===a.length-1&&Object.hasOwn(UN,e.arrowTypeEnd)){const{angle:o,deltaX:u}=EEe(a[a.length-1],a[a.length-2]);s=UN[e.arrowTypeEnd]*Math.cos(o)*(u>=0?1:-1)}return s5e(t).x+s},y:function(t,r,a){let s=0;if(r===0&&Object.hasOwn(UN,e.arrowTypeStart)){const{angle:o,deltaY:u}=EEe(a[0],a[1]);s=UN[e.arrowTypeStart]*Math.abs(Math.sin(o))*(u>=0?1:-1)}else if(r===a.length-1&&Object.hasOwn(UN,e.arrowTypeEnd)){const{angle:o,deltaY:u}=EEe(a[a.length-1],a[a.length-2]);s=UN[e.arrowTypeEnd]*Math.abs(Math.sin(o))*(u>=0?1:-1)}return s5e(t).y+s}}),$er=(e,t,r,a,s)=>{t.arrowTypeStart&&ECn(e,"start",t.arrowTypeStart,r,a,s),t.arrowTypeEnd&&ECn(e,"end",t.arrowTypeEnd,r,a,s)},lpa={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},ECn=(e,t,r,a,s,o)=>{const u=lpa[r];if(!u){ut.warn(`Unknown arrow type: ${r}`);return}const h=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${a}#${s}_${o}-${u}${h})`)};let o5e={},mm={};const cpa=()=>{o5e={},mm={}},Kbt=(e,t)=>{const r=Np(Qt().flowchart.htmlLabels),a=t.labelType==="markdown"?v6e(e,t.label,{style:t.labelStyle,useHtmlLabels:r,addSvgBackground:!0}):q2(t.label,t.labelStyle),s=e.insert("g").attr("class","edgeLabel"),o=s.insert("g").attr("class","label");o.node().appendChild(a);let u=a.getBBox();if(r){const f=a.children[0],p=gn(a);u=f.getBoundingClientRect(),p.attr("width",u.width),p.attr("height",u.height)}o.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),o5e[t.id]=s,t.width=u.width,t.height=u.height;let h;if(t.startLabelLeft){const f=q2(t.startLabelLeft,t.labelStyle),p=e.insert("g").attr("class","edgeTerminals"),m=p.insert("g").attr("class","inner");h=m.node().appendChild(f);const b=f.getBBox();m.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),mm[t.id]||(mm[t.id]={}),mm[t.id].startLeft=p,xEe(h,t.startLabelLeft)}if(t.startLabelRight){const f=q2(t.startLabelRight,t.labelStyle),p=e.insert("g").attr("class","edgeTerminals"),m=p.insert("g").attr("class","inner");h=p.node().appendChild(f),m.node().appendChild(f);const b=f.getBBox();m.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),mm[t.id]||(mm[t.id]={}),mm[t.id].startRight=p,xEe(h,t.startLabelRight)}if(t.endLabelLeft){const f=q2(t.endLabelLeft,t.labelStyle),p=e.insert("g").attr("class","edgeTerminals"),m=p.insert("g").attr("class","inner");h=m.node().appendChild(f);const b=f.getBBox();m.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),p.node().appendChild(f),mm[t.id]||(mm[t.id]={}),mm[t.id].endLeft=p,xEe(h,t.endLabelLeft)}if(t.endLabelRight){const f=q2(t.endLabelRight,t.labelStyle),p=e.insert("g").attr("class","edgeTerminals"),m=p.insert("g").attr("class","inner");h=m.node().appendChild(f);const b=f.getBBox();m.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),p.node().appendChild(f),mm[t.id]||(mm[t.id]={}),mm[t.id].endRight=p,xEe(h,t.endLabelRight)}return a};function xEe(e,t){Qt().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}const Uer=(e,t)=>{ut.debug("Moving label abc88 ",e.id,e.label,o5e[e.id],t);let r=t.updatedPath?t.updatedPath:t.originalPath;const a=Qt(),{subGraphTitleTotalMargin:s}=w6e(a);if(e.label){const o=o5e[e.id];let u=e.x,h=e.y;if(r){const f=il.calcLabelPosition(r);ut.debug("Moving label "+e.label+" from (",u,",",h,") to (",f.x,",",f.y,") abc88"),t.updatedPath&&(u=f.x,h=f.y)}o.attr("transform",`translate(${u}, ${h+s/2})`)}if(e.startLabelLeft){const o=mm[e.id].startLeft;let u=e.x,h=e.y;if(r){const f=il.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}if(e.startLabelRight){const o=mm[e.id].startRight;let u=e.x,h=e.y;if(r){const f=il.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}if(e.endLabelLeft){const o=mm[e.id].endLeft;let u=e.x,h=e.y;if(r){const f=il.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}if(e.endLabelRight){const o=mm[e.id].endRight;let u=e.x,h=e.y;if(r){const f=il.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);u=f.x,h=f.y}o.attr("transform",`translate(${u}, ${h})`)}},upa=(e,t)=>{const r=e.x,a=e.y,s=Math.abs(t.x-r),o=Math.abs(t.y-a),u=e.width/2,h=e.height/2;return s>=u||o>=h},hpa=(e,t,r)=>{ut.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(t)} insidePoint : ${JSON.stringify(r)} node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const a=e.x,s=e.y,o=Math.abs(a-r.x),u=e.width/2;let h=r.xMath.abs(a-t.x)*f){let b=r.y{ut.debug("abc88 cutPathAtIntersect",e,t);let r=[],a=e[0],s=!1;return e.forEach(o=>{if(!upa(t,o)&&!s){const u=hpa(t,a,o);let h=!1;r.forEach(f=>{h=h||f.x===u.x&&f.y===u.y}),r.some(f=>f.x===u.x&&f.y===u.y)||r.push(u),s=!0}else a=o,s||r.push(o)}),r},zer=function(e,t,r,a,s,o,u){let h=r.points;ut.debug("abc88 InsertEdge: edge=",r,"e=",t);let f=!1;const p=o.node(t.v);var m=o.node(t.w);m!=null&&m.intersect&&(p!=null&&p.intersect)&&(h=h.slice(1,r.points.length-1),h.unshift(p.intersect(h[0])),h.push(m.intersect(h[h.length-1]))),r.toCluster&&(ut.debug("to cluster abc88",a[r.toCluster]),h=xCn(r.points,a[r.toCluster].node),f=!0),r.fromCluster&&(ut.debug("from cluster abc88",a[r.fromCluster]),h=xCn(h.reverse(),a[r.fromCluster].node).reverse(),f=!0);const b=h.filter(L=>!Number.isNaN(L.y));let _=j3;r.curve&&(s==="graph"||s==="flowchart")&&(_=r.curve);const{x:w,y:S}=Fer(r),C=r_().x(w).y(S).curve(_);let A;switch(r.thickness){case"normal":A="edge-thickness-normal";break;case"thick":A="edge-thickness-thick";break;case"invisible":A="edge-thickness-thick";break;default:A=""}switch(r.pattern){case"solid":A+=" edge-pattern-solid";break;case"dotted":A+=" edge-pattern-dotted";break;case"dashed":A+=" edge-pattern-dashed";break}const k=e.append("path").attr("d",C(b)).attr("id",r.id).attr("class"," "+A+(r.classes?" "+r.classes:"")).attr("style",r.style);let I="";(Qt().flowchart.arrowMarkerAbsolute||Qt().state.arrowMarkerAbsolute)&&(I=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,I=I.replace(/\(/g,"\\("),I=I.replace(/\)/g,"\\)")),$er(k,r,I,u,s);let N={};return f&&(N.updatedPath=h),N.originalPath=r.points,N};let rl={},q3={},Ger={};const dpa=()=>{q3={},Ger={},rl={}},l5e=(e,t)=>(ut.trace("In isDescendant",t," ",e," = ",q3[t].includes(e)),!!q3[t].includes(e)),fpa=(e,t)=>(ut.info("Descendants of ",t," is ",q3[t]),ut.info("Edge is ",e),e.v===t||e.w===t?!1:q3[t]?q3[t].includes(e.v)||l5e(e.v,t)||l5e(e.w,t)||q3[t].includes(e.w):(ut.debug("Tilt, ",t,",not in descendants"),!1)),qer=(e,t,r,a)=>{ut.warn("Copying children of ",e,"root",a,"data",t.node(e),a);const s=t.children(e)||[];e!==a&&s.push(e),ut.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(o=>{if(t.children(o).length>0)qer(o,t,r,a);else{const u=t.node(o);ut.info("cp ",o," to ",a," with parent ",e),r.setNode(o,u),a!==t.parent(o)&&(ut.warn("Setting parent",o,t.parent(o)),r.setParent(o,t.parent(o))),e!==a&&o!==e?(ut.debug("Setting parent",o,e),r.setParent(o,e)):(ut.info("In copy ",e,"root",a,"data",t.node(e),a),ut.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==a,"node!==clusterId",o!==e));const h=t.edges(o);ut.debug("Copying Edges",h),h.forEach(f=>{ut.info("Edge",f);const p=t.edge(f.v,f.w,f.name);ut.info("Edge data",p,a);try{fpa(f,a)?(ut.info("Copying as ",f.v,f.w,p,f.name),r.setEdge(f.v,f.w,p,f.name),ut.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):ut.info("Skipping copy of edge ",f.v,"-->",f.w," rootId: ",a," clusterId:",e)}catch(m){ut.error(m)}})}ut.debug("Removing node",o),t.removeNode(o)})},Her=(e,t)=>{const r=t.children(e);let a=[...r];for(const s of r)Ger[s]=e,a=[...a,...Her(s,t)];return a},vle=(e,t)=>{ut.trace("Searching",e);const r=t.children(e);if(ut.trace("Searching children of id ",e,r),r.length<1)return ut.trace("This is a valid node",e),e;for(const a of r){const s=vle(a,t);if(s)return ut.trace("Found replacement for",e," => ",s),s}},SEe=e=>!rl[e]||!rl[e].externalConnections?e:rl[e]?rl[e].id:e,ppa=(e,t)=>{if(!e||t>10){ut.debug("Opting out, no graph ");return}else ut.debug("Opting in, graph ");e.nodes().forEach(function(r){e.children(r).length>0&&(ut.warn("Cluster identified",r," Replacement id in edges: ",vle(r,e)),q3[r]=Her(r,e),rl[r]={id:vle(r,e),clusterData:e.node(r)})}),e.nodes().forEach(function(r){const a=e.children(r),s=e.edges();a.length>0?(ut.debug("Cluster identified",r,q3),s.forEach(o=>{if(o.v!==r&&o.w!==r){const u=l5e(o.v,r),h=l5e(o.w,r);u^h&&(ut.warn("Edge: ",o," leaves cluster ",r),ut.warn("Descendants of XXX ",r,": ",q3[r]),rl[r].externalConnections=!0)}})):ut.debug("Not a cluster ",r,q3)});for(let r of Object.keys(rl)){const a=rl[r].id,s=e.parent(a);s!==r&&rl[s]&&!rl[s].externalConnections&&(rl[r].id=s)}e.edges().forEach(function(r){const a=e.edge(r);ut.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),ut.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(e.edge(r)));let s=r.v,o=r.w;if(ut.warn("Fix XXX",rl,"ids:",r.v,r.w,"Translating: ",rl[r.v]," --- ",rl[r.w]),rl[r.v]&&rl[r.w]&&rl[r.v]===rl[r.w]){ut.warn("Fixing and trixing link to self - removing XXX",r.v,r.w,r.name),ut.warn("Fixing and trixing - removing XXX",r.v,r.w,r.name),s=SEe(r.v),o=SEe(r.w),e.removeEdge(r.v,r.w,r.name);const u=r.w+"---"+r.v;e.setNode(u,{domId:u,id:u,labelStyle:"",labelText:a.label,padding:0,shape:"labelRect",style:""});const h=structuredClone(a),f=structuredClone(a);h.label="",h.arrowTypeEnd="none",f.label="",h.fromCluster=r.v,f.toCluster=r.v,e.setEdge(s,u,h,r.name+"-cyclic-special"),e.setEdge(u,o,f,r.name+"-cyclic-special")}else if(rl[r.v]||rl[r.w]){if(ut.warn("Fixing and trixing - removing XXX",r.v,r.w,r.name),s=SEe(r.v),o=SEe(r.w),e.removeEdge(r.v,r.w,r.name),s!==r.v){const u=e.parent(s);rl[u].externalConnections=!0,a.fromCluster=r.v}if(o!==r.w){const u=e.parent(o);rl[u].externalConnections=!0,a.toCluster=r.w}ut.warn("Fix Replacing with XXX",s,o,r.name),e.setEdge(s,o,a,r.name)}}),ut.warn("Adjusted Graph",O7(e)),Ver(e,0),ut.trace(rl)},Ver=(e,t)=>{if(ut.warn("extractor - ",t,O7(e),e.children("D")),t>10){ut.error("Bailing out");return}let r=e.nodes(),a=!1;for(const s of r){const o=e.children(s);a=a||o.length>0}if(!a){ut.debug("Done, no node has children",e.nodes());return}ut.debug("Nodes = ",r,t);for(const s of r)if(ut.debug("Extracting node",s,rl,rl[s]&&!rl[s].externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!rl[s])ut.debug("Not a cluster",s,t);else if(!rl[s].externalConnections&&e.children(s)&&e.children(s).length>0){ut.warn("Cluster without external connections, without a parent and with children",s,t);let u=e.graph().rankdir==="TB"?"LR":"TB";rl[s]&&rl[s].clusterData&&rl[s].clusterData.dir&&(u=rl[s].clusterData.dir,ut.warn("Fixing dir",rl[s].clusterData.dir,u));const h=new F1({multigraph:!0,compound:!0}).setGraph({rankdir:u,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});ut.warn("Old graph before copy",O7(e)),qer(s,e,h,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:rl[s].clusterData,labelText:rl[s].labelText,graph:h}),ut.warn("New graph after copy node: (",s,")",O7(h)),ut.debug("Old graph after copy",O7(e))}else ut.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!rl[s].externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),t),ut.debug(rl);r=e.nodes(),ut.warn("New list of nodes",r);for(const s of r){const o=e.node(s);ut.warn(" Now next level",s,o),o.clusterNode&&Ver(o.graph,t+1)}},Yer=(e,t)=>{if(t.length===0)return[];let r=Object.assign(t);return t.forEach(a=>{const s=e.children(a),o=Yer(e,s);r=[...r,...o]}),r},gpa=e=>Yer(e,e.children()),mpa=(e,t)=>{ut.info("Creating subgraph rect for ",t.id,t);const r=Qt(),a=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),s=a.insert("rect",":first-child"),o=Np(r.flowchart.htmlLabels),u=a.insert("g").attr("class","cluster-label"),h=t.labelType==="markdown"?v6e(u,t.labelText,{style:t.labelStyle,useHtmlLabels:o}):u.node().appendChild(q2(t.labelText,t.labelStyle,void 0,!0));let f=h.getBBox();if(Np(r.flowchart.htmlLabels)){const S=h.children[0],C=gn(h);f=S.getBoundingClientRect(),C.attr("width",f.width),C.attr("height",f.height)}const p=0*t.padding,m=p/2,b=t.width<=f.width+p?f.width+p:t.width;t.width<=f.width+p?t.diff=(f.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,ut.trace("Data ",t,JSON.stringify(t)),s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-b/2).attr("y",t.y-t.height/2-m).attr("width",b).attr("height",t.height+p);const{subGraphTitleTopMargin:_}=w6e(r);o?u.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2+_})`):u.attr("transform",`translate(${t.x}, ${t.y-t.height/2+_})`);const w=s.node().getBBox();return t.width=w.width,t.height=w.height,t.intersect=function(S){return eue(t,S)},a},bpa=(e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.id),a=r.insert("rect",":first-child"),s=0*t.padding,o=s/2;a.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2-o).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const u=a.node().getBBox();return t.width=u.width,t.height=u.height,t.intersect=function(h){return eue(t,h)},r},ypa=(e,t)=>{const r=Qt(),a=e.insert("g").attr("class",t.classes).attr("id",t.id),s=a.insert("rect",":first-child"),o=a.insert("g").attr("class","cluster-label"),u=a.append("rect"),h=o.node().appendChild(q2(t.labelText,t.labelStyle,void 0,!0));let f=h.getBBox();if(Np(r.flowchart.htmlLabels)){const S=h.children[0],C=gn(h);f=S.getBoundingClientRect(),C.attr("width",f.width),C.attr("height",f.height)}f=h.getBBox();const p=0*t.padding,m=p/2,b=t.width<=f.width+t.padding?f.width+t.padding:t.width;t.width<=f.width+t.padding?t.diff=(f.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,s.attr("class","outer").attr("x",t.x-b/2-m).attr("y",t.y-t.height/2-m).attr("width",b+p).attr("height",t.height+p),u.attr("class","inner").attr("x",t.x-b/2-m).attr("y",t.y-t.height/2-m+f.height-1).attr("width",b+p).attr("height",t.height+p-f.height-3);const{subGraphTitleTopMargin:_}=w6e(r);o.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2-t.padding/3+(Np(r.flowchart.htmlLabels)?5:3)+_})`);const w=s.node().getBBox();return t.height=w.height,t.intersect=function(S){return eue(t,S)},a},vpa=(e,t)=>{const r=e.insert("g").attr("class",t.classes).attr("id",t.id),a=r.insert("rect",":first-child"),s=0*t.padding,o=s/2;a.attr("class","divider").attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2).attr("width",t.width+s).attr("height",t.height+s);const u=a.node().getBBox();return t.width=u.width,t.height=u.height,t.diff=-t.padding/2,t.intersect=function(h){return eue(t,h)},r},_pa={rect:mpa,roundedWithTitle:ypa,noteGroup:bpa,divider:vpa};let jer={};const wpa=(e,t)=>{ut.trace("Inserting cluster");const r=t.shape||"rect";jer[t.id]=_pa[r](e,t)},Epa=()=>{jer={}},Wer=async(e,t,r,a,s,o)=>{ut.info("Graph in recursive render: XXX",O7(t),s);const u=t.graph().rankdir;ut.trace("Dir in recursive render - dir:",u);const h=e.insert("g").attr("class","root");t.nodes()?ut.info("Recursive render XXX",t.nodes()):ut.info("No nodes found for",t),t.edges().length>0&&ut.trace("Recursive edges",t.edge(t.edges()[0]));const f=h.insert("g").attr("class","clusters"),p=h.insert("g").attr("class","edgePaths"),m=h.insert("g").attr("class","edgeLabels"),b=h.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(S){const C=t.node(S);if(s!==void 0){const A=JSON.parse(JSON.stringify(s.clusterData));ut.info("Setting data for cluster XXX (",S,") ",A,s),t.setNode(s.id,A),t.parent(S)||(ut.trace("Setting parent",S,s.id),t.setParent(S,s.id,A))}if(ut.info("(Insert) Node XXX"+S+": "+JSON.stringify(t.node(S))),C&&C.clusterNode){ut.info("Cluster identified",S,C.width,t.node(S));const A=await Wer(b,C.graph,r,a,t.node(S),o),k=A.elem;Df(C,k),C.diff=A.diff||0,ut.info("Node bounds (abc123)",S,C,C.width,C.x,C.y),spa(k,C),ut.warn("Recursive render complete ",k,C)}else t.children(S).length>0?(ut.info("Cluster - the non recursive path XXX",S,C.id,C,t),ut.info(vle(C.id,t)),rl[C.id]={id:vle(C.id,t),node:C}):(ut.info("Node - the non recursive path",S,C.id,C),await _6e(b,t.node(S),u))})),t.edges().forEach(function(S){const C=t.edge(S.v,S.w,S.name);ut.info("Edge "+S.v+" -> "+S.w+": "+JSON.stringify(S)),ut.info("Edge "+S.v+" -> "+S.w+": ",S," ",JSON.stringify(t.edge(S))),ut.info("Fix",rl,"ids:",S.v,S.w,"Translating: ",rl[S.v],rl[S.w]),Kbt(m,C)}),t.edges().forEach(function(S){ut.info("Edge "+S.v+" -> "+S.w+": "+JSON.stringify(S))}),ut.info("#############################################"),ut.info("### Layout ###"),ut.info("#############################################"),ut.info(t),oK(t),ut.info("Graph after layout:",O7(t));let _=0;const{subGraphTitleTotalMargin:w}=w6e(o);return gpa(t).forEach(function(S){const C=t.node(S);ut.info("Position "+S+": "+JSON.stringify(t.node(S))),ut.info("Position "+S+": ("+C.x,","+C.y,") width: ",C.width," height: ",C.height),C&&C.clusterNode?(C.y+=w,Aht(C)):t.children(S).length>0?(C.height+=w,wpa(f,C),rl[C.id].node=C):(C.y+=w/2,Aht(C))}),t.edges().forEach(function(S){const C=t.edge(S);ut.info("Edge "+S.v+" -> "+S.w+": "+JSON.stringify(C),C),C.points.forEach(k=>k.y+=w/2);const A=zer(p,S,C,rl,r,t,a);Uer(C,A)}),t.nodes().forEach(function(S){const C=t.node(S);ut.info(S,C.type,C.diff),C.type==="group"&&(_=C.diff)}),{elem:h,diff:_}},Xbt=async(e,t,r,a,s)=>{jbt(e,r,a,s),opa(),cpa(),Epa(),dpa(),ut.warn("Graph at first:",JSON.stringify(O7(t))),ppa(t),ut.warn("Graph after:",JSON.stringify(O7(t)));const o=Qt();await Wer(e,t,a,s,void 0,o)},Ker={},xpa=function(e){const t=Object.keys(e);for(const r of t)Ker[r]=e[r]},Xer=async function(e,t,r,a,s,o){const u=a.select(`[id="${r}"]`),h=Object.keys(e);for(const f of h){const p=e[f];let m="default";p.classes.length>0&&(m=p.classes.join(" ")),m=m+" flowchart-label";const b=Hw(p.styles);let _=p.text!==void 0?p.text:p.id,w;if(ut.info("vertex",p,p.labelType),p.labelType==="markdown")ut.info("vertex",p,p.labelType);else if(Np(Qt().flowchart.htmlLabels))w=Ubt(u,{label:_}).node(),w.parentNode.removeChild(w);else{const k=s.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",b.labelStyle.replace("color:","fill:"));const I=_.split(mi.lineBreakRegex);for(const N of I){const L=s.createElementNS("http://www.w3.org/2000/svg","tspan");L.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),L.setAttribute("dy","1em"),L.setAttribute("x","1"),L.textContent=N,k.appendChild(L)}w=k}let S=0,C="";switch(p.type){case"round":S=5,C="rect";break;case"square":C="rect";break;case"diamond":C="question";break;case"hexagon":C="hexagon";break;case"odd":C="rect_left_inv_arrow";break;case"lean_right":C="lean_right";break;case"lean_left":C="lean_left";break;case"trapezoid":C="trapezoid";break;case"inv_trapezoid":C="inv_trapezoid";break;case"odd_right":C="rect_left_inv_arrow";break;case"circle":C="circle";break;case"ellipse":C="ellipse";break;case"stadium":C="stadium";break;case"subroutine":C="subroutine";break;case"cylinder":C="cylinder";break;case"group":C="rect";break;case"doublecircle":C="doublecircle";break;default:C="rect"}const A=await Z$(_,Qt());t.setNode(p.id,{labelStyle:b.labelStyle,shape:C,labelText:A,labelType:p.labelType,rx:S,ry:S,class:m,style:b.style,id:p.id,link:p.link,linkTarget:p.linkTarget,tooltip:o.db.getTooltip(p.id)||"",domId:o.db.lookUpDomId(p.id),haveCallback:p.haveCallback,width:p.type==="group"?500:void 0,dir:p.dir,type:p.type,props:p.props,padding:Qt().flowchart.padding}),ut.info("setNode",{labelStyle:b.labelStyle,labelType:p.labelType,shape:C,labelText:A,rx:S,ry:S,class:m,style:b.style,id:p.id,domId:o.db.lookUpDomId(p.id),width:p.type==="group"?500:void 0,type:p.type,dir:p.dir,props:p.props,padding:Qt().flowchart.padding})}},Qer=async function(e,t,r){ut.info("abc78 edges = ",e);let a=0,s={},o,u;if(e.defaultStyle!==void 0){const h=Hw(e.defaultStyle);o=h.style,u=h.labelStyle}for(const h of e){a++;const f="L-"+h.start+"-"+h.end;s[f]===void 0?(s[f]=0,ut.info("abc78 new entry",f,s[f])):(s[f]++,ut.info("abc78 new entry",f,s[f]));let p=f+"-"+s[f];ut.info("abc78 new link id to be used is",f,p,s[f]);const m="LS-"+h.start,b="LE-"+h.end,_={style:"",labelStyle:""};switch(_.minlen=h.length||1,h.type==="arrow_open"?_.arrowhead="none":_.arrowhead="normal",_.arrowTypeStart="arrow_open",_.arrowTypeEnd="arrow_open",h.type){case"double_arrow_cross":_.arrowTypeStart="arrow_cross";case"arrow_cross":_.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":_.arrowTypeStart="arrow_point";case"arrow_point":_.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":_.arrowTypeStart="arrow_circle";case"arrow_circle":_.arrowTypeEnd="arrow_circle";break}let w="",S="";switch(h.stroke){case"normal":w="fill:none;",o!==void 0&&(w=o),u!==void 0&&(S=u),_.thickness="normal",_.pattern="solid";break;case"dotted":_.thickness="normal",_.pattern="dotted",_.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":_.thickness="thick",_.pattern="solid",_.style="stroke-width: 3.5px;fill:none;";break;case"invisible":_.thickness="invisible",_.pattern="solid",_.style="stroke-width: 0;fill:none;";break}if(h.style!==void 0){const C=Hw(h.style);w=C.style,S=C.labelStyle}_.style=_.style+=w,_.labelStyle=_.labelStyle+=S,h.interpolate!==void 0?_.curve=fS(h.interpolate,Cg):e.defaultInterpolate!==void 0?_.curve=fS(e.defaultInterpolate,Cg):_.curve=fS(Ker.curve,Cg),h.text===void 0?h.style!==void 0&&(_.arrowheadStyle="fill: #333"):(_.arrowheadStyle="fill: #333",_.labelpos="c"),_.labelType=h.labelType,_.label=await Z$(h.text.replace(mi.lineBreakRegex,` `),Qt()),h.style===void 0&&(_.style=_.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),_.labelStyle=_.labelStyle.replace("color:","fill:"),_.id=p,_.classes="flowchart-link "+m+" "+b,t.setEdge(h.start,h.end,_,a)}},Spa=function(e,t){return t.db.getClasses()},Tpa=async function(e,t,r,a){ut.info("Drawing flowchart");let s=a.db.getDirection();s===void 0&&(s="TD");const{securityLevel:o,flowchart:u}=Qt(),h=u.nodeSpacing||50,f=u.rankSpacing||50;let p;o==="sandbox"&&(p=gn("#i"+t));const m=gn(o==="sandbox"?p.nodes()[0].contentDocument.body:"body"),b=o==="sandbox"?p.nodes()[0].contentDocument:document,_=new F1({multigraph:!0,compound:!0}).setGraph({rankdir:s,nodesep:h,ranksep:f,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let w;const S=a.db.getSubGraphs();ut.info("Subgraphs - ",S);for(let P=S.length-1;P>=0;P--)w=S[P],ut.info("Subgraph - ",w),a.db.addVertex(w.id,{text:w.title,type:w.labelType},"group",void 0,w.classes,w.dir);const C=a.db.getVertices(),A=a.db.getEdges();ut.info("Edges",A);let k=0;for(k=S.length-1;k>=0;k--){w=S[k],HLn("cluster").append("text");for(let P=0;P{const r=ece,a=r(e,"r"),s=r(e,"g"),o=r(e,"b");return Z2(a,s,o,t)},Apa=e=>`.label { font-family: ${e.fontFamily}; color: ${e.nodeTextColor||e.textColor}; } .cluster-label text { fill: ${e.titleColor}; } .cluster-label span,p { color: ${e.titleColor}; } .label text,span,p { fill: ${e.nodeTextColor||e.textColor}; color: ${e.nodeTextColor||e.textColor}; } .node rect, .node circle, .node ellipse, .node polygon, .node path { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: 1px; } .flowchart-label text { text-anchor: middle; } // .flowchart-label .text-outer-tspan { // text-anchor: middle; // } // .flowchart-label .text-inner-tspan { // text-anchor: start; // } .node .katex path { fill: #000; stroke: #000; stroke-width: 1px; } .node .label { text-align: center; } .node.clickable { cursor: pointer; } .arrowheadPath { fill: ${e.arrowheadColor}; } .edgePath .path { stroke: ${e.lineColor}; stroke-width: 2.0px; } .flowchart-link { stroke: ${e.lineColor}; fill: none; } .edgeLabel { background-color: ${e.edgeLabelBackground}; rect { opacity: 0.5; background-color: ${e.edgeLabelBackground}; fill: ${e.edgeLabelBackground}; } text-align: center; } /* For html labels only */ .labelBkg { background-color: ${Cpa(e.edgeLabelBackground,.5)}; // background-color: } .cluster rect { fill: ${e.clusterBkg}; stroke: ${e.clusterBorder}; stroke-width: 1px; } .cluster text { fill: ${e.titleColor}; } .cluster span,p { color: ${e.titleColor}; } /* .cluster div { color: ${e.titleColor}; } */ div.mermaidTooltip { position: absolute; text-align: center; max-width: 200px; padding: 2px; font-family: ${e.fontFamily}; font-size: 12px; background: ${e.tertiaryColor}; border: 1px solid ${e.border2}; border-radius: 2px; pointer-events: none; z-index: 100; } .flowchartTitleText { text-anchor: middle; font-size: 18px; fill: ${e.textColor}; } `,Zer=Apa;function Jer(e,t,r){const a=t.width,s=t.height,o=(a+s)*.9,u=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}],h=IR(e,o,o,u);return r.intersect=function(f){return VA(r,u,f)},h}function etr(e,t,r){const s=t.height,o=s/4,u=t.width+2*o,h=[{x:o,y:0},{x:u-o,y:0},{x:u,y:-s/2},{x:u-o,y:-s},{x:o,y:-s},{x:0,y:-s/2}],f=IR(e,u,s,h);return r.intersect=function(p){return VA(r,h,p)},f}function ttr(e,t,r){const a=t.width,s=t.height,o=[{x:-s/2,y:0},{x:a,y:0},{x:a,y:-s},{x:-s/2,y:-s},{x:0,y:-s/2}],u=IR(e,a,s,o);return r.intersect=function(h){return VA(r,o,h)},u}function ntr(e,t,r){const a=t.width,s=t.height,o=[{x:-2*s/6,y:0},{x:a-s/6,y:0},{x:a+2*s/6,y:-s},{x:s/6,y:-s}],u=IR(e,a,s,o);return r.intersect=function(h){return VA(r,o,h)},u}function rtr(e,t,r){const a=t.width,s=t.height,o=[{x:2*s/6,y:0},{x:a+s/6,y:0},{x:a-2*s/6,y:-s},{x:-s/6,y:-s}],u=IR(e,a,s,o);return r.intersect=function(h){return VA(r,o,h)},u}function itr(e,t,r){const a=t.width,s=t.height,o=[{x:-2*s/6,y:0},{x:a+2*s/6,y:0},{x:a-s/6,y:-s},{x:s/6,y:-s}],u=IR(e,a,s,o);return r.intersect=function(h){return VA(r,o,h)},u}function atr(e,t,r){const a=t.width,s=t.height,o=[{x:s/6,y:0},{x:a-s/6,y:0},{x:a+2*s/6,y:-s},{x:-2*s/6,y:-s}],u=IR(e,a,s,o);return r.intersect=function(h){return VA(r,o,h)},u}function str(e,t,r){const a=t.width,s=t.height,o=[{x:0,y:0},{x:a+s/2,y:0},{x:a,y:-s/2},{x:a+s/2,y:-s},{x:0,y:-s}],u=IR(e,a,s,o);return r.intersect=function(h){return VA(r,o,h)},u}function otr(e,t,r){const a=t.height,s=t.width+a/4,o=e.insert("rect",":first-child").attr("rx",a/2).attr("ry",a/2).attr("x",-s/2).attr("y",-a/2).attr("width",s).attr("height",a);return r.intersect=function(u){return Gbt(r,u)},o}function ltr(e,t,r){const a=t.width,s=t.height,o=[{x:0,y:0},{x:a,y:0},{x:a,y:-s},{x:0,y:-s},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-s},{x:-8,y:-s},{x:-8,y:0}],u=IR(e,a,s,o);return r.intersect=function(h){return VA(r,o,h)},u}function ctr(e,t,r){const a=t.width,s=a/2,o=s/(2.5+a/50),u=t.height+o,h="M 0,"+o+" a "+s+","+o+" 0,0,0 "+a+" 0 a "+s+","+o+" 0,0,0 "+-a+" 0 l 0,"+u+" a "+s+","+o+" 0,0,0 "+a+" 0 l 0,"+-u,f=e.attr("label-offset-y",o).insert("path",":first-child").attr("d",h).attr("transform","translate("+-a/2+","+-(u/2+o)+")");return r.intersect=function(p){const m=Gbt(r,p),b=m.x-r.x;if(s!=0&&(Math.abs(b)r.height/2-o)){let _=o*o*(1-b*b/(s*s));_!=0&&(_=Math.sqrt(_)),_=o-_,p.y-r.y>0&&(_=-_),m.y+=_}return m},f}function kpa(e){e.shapes().question=Jer,e.shapes().hexagon=etr,e.shapes().stadium=otr,e.shapes().subroutine=ltr,e.shapes().cylinder=ctr,e.shapes().rect_left_inv_arrow=ttr,e.shapes().lean_right=ntr,e.shapes().lean_left=rtr,e.shapes().trapezoid=itr,e.shapes().inv_trapezoid=atr,e.shapes().rect_right_inv_arrow=str}function Rpa(e){e({question:Jer}),e({hexagon:etr}),e({stadium:otr}),e({subroutine:ltr}),e({cylinder:ctr}),e({rect_left_inv_arrow:ttr}),e({lean_right:ntr}),e({lean_left:rtr}),e({trapezoid:itr}),e({inv_trapezoid:atr}),e({rect_right_inv_arrow:str})}function IR(e,t,r,a){return e.insert("polygon",":first-child").attr("points",a.map(function(s){return s.x+","+s.y}).join(" ")).attr("transform","translate("+-t/2+","+r/2+")")}const Ipa={addToRender:kpa,addToRenderV2:Rpa},utr={},Npa=function(e){const t=Object.keys(e);for(const r of t)utr[r]=e[r]},htr=async function(e,t,r,a,s,o){const u=a?a.select(`[id="${r}"]`):gn(`[id="${r}"]`),h=s||document,f=Object.keys(e);for(const p of f){const m=e[p];let b="default";m.classes.length>0&&(b=m.classes.join(" "));const _=Hw(m.styles);let w=m.text!==void 0?m.text:m.id,S;if(Np(Qt().flowchart.htmlLabels)){const k={label:await Z$(w.replace(/fa[blrs]?:fa-[\w-]+/g,I=>``),Qt())};S=Ubt(u,k).node(),S.parentNode.removeChild(S)}else{const k=h.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",_.labelStyle.replace("color:","fill:"));const I=w.split(mi.lineBreakRegex);for(const N of I){const L=h.createElementNS("http://www.w3.org/2000/svg","tspan");L.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),L.setAttribute("dy","1em"),L.setAttribute("x","1"),L.textContent=N,k.appendChild(L)}S=k}let C=0,A="";switch(m.type){case"round":C=5,A="rect";break;case"square":A="rect";break;case"diamond":A="question";break;case"hexagon":A="hexagon";break;case"odd":A="rect_left_inv_arrow";break;case"lean_right":A="lean_right";break;case"lean_left":A="lean_left";break;case"trapezoid":A="trapezoid";break;case"inv_trapezoid":A="inv_trapezoid";break;case"odd_right":A="rect_left_inv_arrow";break;case"circle":A="circle";break;case"ellipse":A="ellipse";break;case"stadium":A="stadium";break;case"subroutine":A="subroutine";break;case"cylinder":A="cylinder";break;case"group":A="rect";break;default:A="rect"}ut.warn("Adding node",m.id,m.domId),t.setNode(o.db.lookUpDomId(m.id),{labelType:"svg",labelStyle:_.labelStyle,shape:A,label:S,rx:C,ry:C,class:b,style:_.style,id:o.db.lookUpDomId(m.id)})}},dtr=async function(e,t,r){let a=0,s,o;if(e.defaultStyle!==void 0){const u=Hw(e.defaultStyle);s=u.style,o=u.labelStyle}for(const u of e){a++;const h="L-"+u.start+"-"+u.end,f="LS-"+u.start,p="LE-"+u.end,m={};u.type==="arrow_open"?m.arrowhead="none":m.arrowhead="normal";let b="",_="";if(u.style!==void 0){const w=Hw(u.style);b=w.style,_=w.labelStyle}else switch(u.stroke){case"normal":b="fill:none",s!==void 0&&(b=s),o!==void 0&&(_=o);break;case"dotted":b="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":b=" stroke-width: 3.5px;fill:none";break}m.style=b,m.labelStyle=_,u.interpolate!==void 0?m.curve=fS(u.interpolate,Cg):e.defaultInterpolate!==void 0?m.curve=fS(e.defaultInterpolate,Cg):m.curve=fS(utr.curve,Cg),u.text===void 0?u.style!==void 0&&(m.arrowheadStyle="fill: #333"):(m.arrowheadStyle="fill: #333",m.labelpos="c",Np(Qt().flowchart.htmlLabels)?(m.labelType="html",m.label=`${await Z$(u.text.replace(/fa[blrs]?:fa-[\w-]+/g,w=>``),Qt())}`):(m.labelType="text",m.label=u.text.replace(mi.lineBreakRegex,` `),u.style===void 0&&(m.style=m.style||"stroke: #333; stroke-width: 1.5px;fill:none"),m.labelStyle=m.labelStyle.replace("color:","fill:"))),m.id=h,m.class=f+" "+p,m.minlen=u.length||1,t.setEdge(r.db.lookUpDomId(u.start),r.db.lookUpDomId(u.end),m,a)}},Opa=function(e,t){return ut.info("Extracting classes"),t.db.getClasses()},Lpa=async function(e,t,r,a){ut.info("Drawing flowchart");const{securityLevel:s,flowchart:o}=Qt();let u;s==="sandbox"&&(u=gn("#i"+t));const h=gn(s==="sandbox"?u.nodes()[0].contentDocument.body:"body"),f=s==="sandbox"?u.nodes()[0].contentDocument:document;let p=a.db.getDirection();p===void 0&&(p="TD");const m=o.nodeSpacing||50,b=o.rankSpacing||50,_=new F1({multigraph:!0,compound:!0}).setGraph({rankdir:p,nodesep:m,ranksep:b,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let w;const S=a.db.getSubGraphs();for(let M=S.length-1;M>=0;M--)w=S[M],a.db.addVertex(w.id,w.title,"group",void 0,w.classes);const C=a.db.getVertices();ut.warn("Get vertices",C);const A=a.db.getEdges();let k=0;for(k=S.length-1;k>=0;k--){w=S[k],HLn("cluster").append("text");for(let M=0;M{e.flowchart||(e.flowchart={}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,Dpa.setConf(e.flowchart),gF.clear(),gF.setGen("gen-1")}},Ppa=Object.freeze(Object.defineProperty({__proto__:null,diagram:Mpa},Symbol.toStringTag,{value:"Module"})),Bpa={parser:Pbt,db:gF,renderer:kht,styles:Zer,init:e=>{e.flowchart||(e.flowchart={}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,Qra({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}}),kht.setConf(e.flowchart),gF.clear(),gF.setGen("gen-2")}},Fpa=Object.freeze(Object.defineProperty({__proto__:null,diagram:Bpa},Symbol.toStringTag,{value:"Module"})),$pa=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Upa(e){return typeof e=="string"&&$pa.test(e)}const dm=[];for(let e=0;e<256;++e)dm.push((e+256).toString(16).slice(1));function zpa(e,t=0){return dm[e[t+0]]+dm[e[t+1]]+dm[e[t+2]]+dm[e[t+3]]+"-"+dm[e[t+4]]+dm[e[t+5]]+"-"+dm[e[t+6]]+dm[e[t+7]]+"-"+dm[e[t+8]]+dm[e[t+9]]+"-"+dm[e[t+10]]+dm[e[t+11]]+dm[e[t+12]]+dm[e[t+13]]+dm[e[t+14]]+dm[e[t+15]]}function Gpa(e){if(!Upa(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}function qpa(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r>>32-t}function Wpa(e){const t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){const u=unescape(encodeURIComponent(e));e=[];for(let h=0;h>>0;_=b,b=m,m=kat(p,30)>>>0,p=f,f=C}r[0]=r[0]+f>>>0,r[1]=r[1]+p>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+b>>>0,r[4]=r[4]+_>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}const Kpa=Ypa("v5",80,Wpa);var Rht=function(){var e=function(U,$,G,B){for(G=G||{},B=U.length;B--;G[U[B]]=$);return G},t=[6,8,10,20,22,24,26,27,28],r=[1,10],a=[1,11],s=[1,12],o=[1,13],u=[1,14],h=[1,15],f=[1,21],p=[1,22],m=[1,23],b=[1,24],_=[1,25],w=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],S=[1,34],C=[27,28,46,47],A=[41,42,43,44,45],k=[17,34],I=[1,54],N=[1,53],L=[17,34,36,38],P={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function($,G,B,Z,z,Y,W){var Q=Y.length-1;switch(z){case 1:break;case 2:this.$=[];break;case 3:Y[Q-1].push(Y[Q]),this.$=Y[Q-1];break;case 4:case 5:this.$=Y[Q];break;case 6:case 7:this.$=[];break;case 8:Z.addEntity(Y[Q-4]),Z.addEntity(Y[Q-2]),Z.addRelationship(Y[Q-4],Y[Q],Y[Q-2],Y[Q-3]);break;case 9:Z.addEntity(Y[Q-3]),Z.addAttributes(Y[Q-3],Y[Q-1]);break;case 10:Z.addEntity(Y[Q-2]);break;case 11:Z.addEntity(Y[Q]);break;case 12:Z.addEntity(Y[Q-6],Y[Q-4]),Z.addAttributes(Y[Q-6],Y[Q-1]);break;case 13:Z.addEntity(Y[Q-5],Y[Q-3]);break;case 14:Z.addEntity(Y[Q-3],Y[Q-1]);break;case 15:case 16:this.$=Y[Q].trim(),Z.setAccTitle(this.$);break;case 17:case 18:this.$=Y[Q].trim(),Z.setAccDescription(this.$);break;case 19:case 43:this.$=Y[Q];break;case 20:case 41:case 42:this.$=Y[Q].replace(/"/g,"");break;case 21:case 29:this.$=[Y[Q]];break;case 22:Y[Q].push(Y[Q-1]),this.$=Y[Q];break;case 23:this.$={attributeType:Y[Q-1],attributeName:Y[Q]};break;case 24:this.$={attributeType:Y[Q-2],attributeName:Y[Q-1],attributeKeyTypeList:Y[Q]};break;case 25:this.$={attributeType:Y[Q-2],attributeName:Y[Q-1],attributeComment:Y[Q]};break;case 26:this.$={attributeType:Y[Q-3],attributeName:Y[Q-2],attributeKeyTypeList:Y[Q-1],attributeComment:Y[Q]};break;case 27:case 28:case 31:this.$=Y[Q];break;case 30:Y[Q-2].push(Y[Q]),this.$=Y[Q-2];break;case 32:this.$=Y[Q].replace(/"/g,"");break;case 33:this.$={cardA:Y[Q],relType:Y[Q-1],cardB:Y[Q-2]};break;case 34:this.$=Z.Cardinality.ZERO_OR_ONE;break;case 35:this.$=Z.Cardinality.ZERO_OR_MORE;break;case 36:this.$=Z.Cardinality.ONE_OR_MORE;break;case 37:this.$=Z.Cardinality.ONLY_ONE;break;case 38:this.$=Z.Cardinality.MD_PARENT;break;case 39:this.$=Z.Identification.NON_IDENTIFYING;break;case 40:this.$=Z.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:a,24:s,26:o,27:u,28:h},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:16,11:9,20:r,22:a,24:s,26:o,27:u,28:h},e(t,[2,5]),e(t,[2,6]),e(t,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:f,42:p,43:m,44:b,45:_}),{21:[1,26]},{23:[1,27]},{25:[1,28]},e(t,[2,18]),e(w,[2,19]),e(w,[2,20]),e(t,[2,4]),{11:29,27:u,28:h},{16:30,17:[1,31],29:32,30:33,34:S},{11:35,27:u,28:h},{40:36,46:[1,37],47:[1,38]},e(C,[2,34]),e(C,[2,35]),e(C,[2,36]),e(C,[2,37]),e(C,[2,38]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),{13:[1,39]},{17:[1,40]},e(t,[2,10]),{16:41,17:[2,21],29:32,30:33,34:S},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:f,42:p,43:m,44:b,45:_},e(A,[2,39]),e(A,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},e(t,[2,9]),{17:[2,22]},e(k,[2,23],{32:50,33:51,35:52,37:I,38:N}),e([17,34,37,38],[2,28]),e(t,[2,14],{15:[1,55]}),e([27,28],[2,33]),e(t,[2,8]),e(t,[2,41]),e(t,[2,42]),e(t,[2,43]),e(k,[2,24],{33:56,36:[1,57],38:N}),e(k,[2,25]),e(L,[2,29]),e(k,[2,32]),e(L,[2,31]),{16:58,17:[1,59],29:32,30:33,34:S},e(k,[2,26]),{35:60,37:I},{17:[1,61]},e(t,[2,13]),e(L,[2,30]),e(t,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function($,G){if(G.recoverable)this.trace($);else{var B=new Error($);throw B.hash=G,B}},parse:function($){var G=this,B=[0],Z=[],z=[null],Y=[],W=this.table,Q="",V=0,j=0,ee=2,te=1,ne=Y.slice.call(arguments,1),se=Object.create(this.lexer),ie={yy:{}};for(var ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ge)&&(ie.yy[ge]=this.yy[ge]);se.setInput($,ie.yy),ie.yy.lexer=se,ie.yy.parser=this,typeof se.yylloc>"u"&&(se.yylloc={});var ce=se.yylloc;Y.push(ce);var be=se.options&&se.options.ranges;typeof ie.yy.parseError=="function"?this.parseError=ie.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ve(){var Oe;return Oe=Z.pop()||se.lex()||te,typeof Oe!="number"&&(Oe instanceof Array&&(Z=Oe,Oe=Z.pop()),Oe=G.symbols_[Oe]||Oe),Oe}for(var De,ye,Ee,he,we={},Ce,Ie,Le,Fe;;){if(ye=B[B.length-1],this.defaultActions[ye]?Ee=this.defaultActions[ye]:((De===null||typeof De>"u")&&(De=ve()),Ee=W[ye]&&W[ye][De]),typeof Ee>"u"||!Ee.length||!Ee[0]){var Ve="";Fe=[];for(Ce in W[ye])this.terminals_[Ce]&&Ce>ee&&Fe.push("'"+this.terminals_[Ce]+"'");se.showPosition?Ve="Parse error on line "+(V+1)+`: `+se.showPosition()+` Expecting `+Fe.join(", ")+", got '"+(this.terminals_[De]||De)+"'":Ve="Parse error on line "+(V+1)+": Unexpected "+(De==te?"end of input":"'"+(this.terminals_[De]||De)+"'"),this.parseError(Ve,{text:se.match,token:this.terminals_[De]||De,line:se.yylineno,loc:ce,expected:Fe})}if(Ee[0]instanceof Array&&Ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ye+", token: "+De);switch(Ee[0]){case 1:B.push(De),z.push(se.yytext),Y.push(se.yylloc),B.push(Ee[1]),De=null,j=se.yyleng,Q=se.yytext,V=se.yylineno,ce=se.yylloc;break;case 2:if(Ie=this.productions_[Ee[1]][1],we.$=z[z.length-Ie],we._$={first_line:Y[Y.length-(Ie||1)].first_line,last_line:Y[Y.length-1].last_line,first_column:Y[Y.length-(Ie||1)].first_column,last_column:Y[Y.length-1].last_column},be&&(we._$.range=[Y[Y.length-(Ie||1)].range[0],Y[Y.length-1].range[1]]),he=this.performAction.apply(we,[Q,j,V,ie.yy,Ee[1],z,Y].concat(ne)),typeof he<"u")return he;Ie&&(B=B.slice(0,-1*Ie*2),z=z.slice(0,-1*Ie),Y=Y.slice(0,-1*Ie)),B.push(this.productions_[Ee[1]][0]),z.push(we.$),Y.push(we._$),Le=W[B[B.length-2]][B[B.length-1]],B.push(Le);break;case 3:return!0}}return!0}},M=function(){var U={EOF:1,parseError:function(G,B){if(this.yy.parser)this.yy.parser.parseError(G,B);else throw new Error(G)},setInput:function($,G){return this.yy=G||this.yy||{},this._input=$,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var $=this._input[0];this.yytext+=$,this.yyleng++,this.offset++,this.match+=$,this.matched+=$;var G=$.match(/(?:\r\n?|\n).*/g);return G?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),$},unput:function($){var G=$.length,B=$.split(/(?:\r\n?|\n)/g);this._input=$+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-G),this.offset-=G;var Z=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),B.length-1&&(this.yylineno-=B.length-1);var z=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:B?(B.length===Z.length?this.yylloc.first_column:0)+Z[Z.length-B.length].length-B[0].length:this.yylloc.first_column-G},this.options.ranges&&(this.yylloc.range=[z[0],z[0]+this.yyleng-G]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function($){this.unput(this.match.slice($))},pastInput:function(){var $=this.matched.substr(0,this.matched.length-this.match.length);return($.length>20?"...":"")+$.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var $=this.match;return $.length<20&&($+=this._input.substr(0,20-$.length)),($.substr(0,20)+($.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var $=this.pastInput(),G=new Array($.length+1).join("-");return $+this.upcomingInput()+` `+G+"^"},test_match:function($,G){var B,Z,z;if(this.options.backtrack_lexer&&(z={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(z.yylloc.range=this.yylloc.range.slice(0))),Z=$[0].match(/(?:\r\n?|\n).*/g),Z&&(this.yylineno+=Z.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Z?Z[Z.length-1].length-Z[Z.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+$[0].length},this.yytext+=$[0],this.match+=$[0],this.matches=$,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice($[0].length),this.matched+=$[0],B=this.performAction.call(this,this.yy,this,G,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),B)return B;if(this._backtrack){for(var Y in z)this[Y]=z[Y];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var $,G,B,Z;this._more||(this.yytext="",this.match="");for(var z=this._currentRules(),Y=0;YG[0].length)){if(G=B,Z=Y,this.options.backtrack_lexer){if($=this.test_match(B,z[Y]),$!==!1)return $;if(this._backtrack){G=!1;continue}else return!1}else if(!this.options.flex)break}return G?($=this.test_match(G,z[Z]),$!==!1?$:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var G=this.next();return G||this.lex()},begin:function(G){this.conditionStack.push(G)},popState:function(){var G=this.conditionStack.length-1;return G>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(G){return G=this.conditionStack.length-1-Math.abs(G||0),G>=0?this.conditionStack[G]:"INITIAL"},pushState:function(G){this.begin(G)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(G,B,Z,z){switch(Z){case 0:return this.begin("acc_title"),22;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),24;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 10;case 8:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;case 14:return 36;case 15:break;case 16:return 37;case 17:return 34;case 18:return 34;case 19:return 38;case 20:break;case 21:return this.popState(),17;case 22:return B.yytext[0];case 23:return 18;case 24:return 19;case 25:return 41;case 26:return 43;case 27:return 43;case 28:return 43;case 29:return 41;case 30:return 41;case 31:return 42;case 32:return 42;case 33:return 42;case 34:return 42;case 35:return 42;case 36:return 43;case 37:return 42;case 38:return 43;case 39:return 44;case 40:return 44;case 41:return 44;case 42:return 44;case 43:return 41;case 44:return 42;case 45:return 43;case 46:return 45;case 47:return 46;case 48:return 47;case 49:return 47;case 50:return 46;case 51:return 46;case 52:return 46;case 53:return 27;case 54:return B.yytext[0];case 55:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}};return U}();P.lexer=M;function F(){this.yy={}}return F.prototype=P,P.Parser=F,new F}();Rht.parser=Rht;const Xpa=Rht;let ZN={},Qbt=[];const Qpa={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},Zpa={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},ftr=function(e,t=void 0){return ZN[e]===void 0?(ZN[e]={attributes:[],alias:t},ut.info("Added new entity :",e)):ZN[e]&&!ZN[e].alias&&t&&(ZN[e].alias=t,ut.info(`Add alias '${t}' to entity '${e}'`)),ZN[e]},Jpa=()=>ZN,ega=function(e,t){let r=ftr(e),a;for(a=t.length-1;a>=0;a--)r.attributes.push(t[a]),ut.debug("Added attribute ",t[a].attributeName)},tga=function(e,t,r,a){let s={entityA:e,roleA:t,entityB:r,relSpec:a};Qbt.push(s),ut.debug("Added new relationship :",s)},nga=()=>Qbt,rga=function(){ZN={},Qbt=[],Mb()},iga={Cardinality:Qpa,Identification:Zpa,getConfig:()=>Qt().er,addEntity:ftr,addAttributes:ega,getEntities:Jpa,addRelationship:tga,getRelationships:nga,clear:rga,setAccTitle:Pb,getAccTitle:Ev,setAccDescription:xv,getAccDescription:Sv,setDiagramTitle:Zw,getDiagramTitle:Tv},v3={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},aga=function(e,t){let r;e.append("defs").append("marker").attr("id",v3.MD_PARENT_START).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",v3.MD_PARENT_END).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",v3.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",v3.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),r=e.append("defs").append("marker").attr("id",v3.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M9,0 L9,18"),r=e.append("defs").append("marker").attr("id",v3.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M21,0 L21,18"),e.append("defs").append("marker").attr("id",v3.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",v3.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),r=e.append("defs").append("marker").attr("id",v3.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),r=e.append("defs").append("marker").attr("id",v3.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},_3={ERMarkers:v3,insertMarkers:aga},sga=/[^\dA-Za-z](\W)*/g;let xp={},_le=new Map;const oga=function(e){const t=Object.keys(e);for(const r of t)xp[r]=e[r]},lga=(e,t,r)=>{const a=xp.entityPadding/3,s=xp.entityPadding/3,o=xp.fontSize*.85,u=t.node().getBBox(),h=[];let f=!1,p=!1,m=0,b=0,_=0,w=0,S=u.height+a*2,C=1;r.forEach(N=>{N.attributeKeyTypeList!==void 0&&N.attributeKeyTypeList.length>0&&(f=!0),N.attributeComment!==void 0&&(p=!0)}),r.forEach(N=>{const L=`${t.node().id}-attr-${C}`;let P=0;const M=Nse(N.attributeType),F=e.append("text").classed("er entityLabel",!0).attr("id",`${L}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Qt().fontFamily).style("font-size",o+"px").text(M),U=e.append("text").classed("er entityLabel",!0).attr("id",`${L}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Qt().fontFamily).style("font-size",o+"px").text(N.attributeName),$={};$.tn=F,$.nn=U;const G=F.node().getBBox(),B=U.node().getBBox();if(m=Math.max(m,G.width),b=Math.max(b,B.width),P=Math.max(G.height,B.height),f){const Z=N.attributeKeyTypeList!==void 0?N.attributeKeyTypeList.join(","):"",z=e.append("text").classed("er entityLabel",!0).attr("id",`${L}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Qt().fontFamily).style("font-size",o+"px").text(Z);$.kn=z;const Y=z.node().getBBox();_=Math.max(_,Y.width),P=Math.max(P,Y.height)}if(p){const Z=e.append("text").classed("er entityLabel",!0).attr("id",`${L}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Qt().fontFamily).style("font-size",o+"px").text(N.attributeComment||"");$.cn=Z;const z=Z.node().getBBox();w=Math.max(w,z.width),P=Math.max(P,z.height)}$.height=P,h.push($),S+=P+a*2,C+=1});let A=4;f&&(A+=2),p&&(A+=2);const k=m+b+_+w,I={width:Math.max(xp.minEntityWidth,Math.max(u.width+xp.entityPadding*2,k+s*A)),height:r.length>0?S:Math.max(xp.minEntityHeight,u.height+xp.entityPadding*2)};if(r.length>0){const N=Math.max(0,(I.width-k-s*A)/(A/2));t.attr("transform","translate("+I.width/2+","+(a+u.height/2)+")");let L=u.height+a*2,P="attributeBoxOdd";h.forEach(M=>{const F=L+a+M.height/2;M.tn.attr("transform","translate("+s+","+F+")");const U=e.insert("rect","#"+M.tn.node().id).classed(`er ${P}`,!0).attr("x",0).attr("y",L).attr("width",m+s*2+N).attr("height",M.height+a*2),$=parseFloat(U.attr("x"))+parseFloat(U.attr("width"));M.nn.attr("transform","translate("+($+s)+","+F+")");const G=e.insert("rect","#"+M.nn.node().id).classed(`er ${P}`,!0).attr("x",$).attr("y",L).attr("width",b+s*2+N).attr("height",M.height+a*2);let B=parseFloat(G.attr("x"))+parseFloat(G.attr("width"));if(f){M.kn.attr("transform","translate("+(B+s)+","+F+")");const Z=e.insert("rect","#"+M.kn.node().id).classed(`er ${P}`,!0).attr("x",B).attr("y",L).attr("width",_+s*2+N).attr("height",M.height+a*2);B=parseFloat(Z.attr("x"))+parseFloat(Z.attr("width"))}p&&(M.cn.attr("transform","translate("+(B+s)+","+F+")"),e.insert("rect","#"+M.cn.node().id).classed(`er ${P}`,"true").attr("x",B).attr("y",L).attr("width",w+s*2+N).attr("height",M.height+a*2)),L+=M.height+a*2,P=P==="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else I.height=Math.max(xp.minEntityHeight,S),t.attr("transform","translate("+I.width/2+","+I.height/2+")");return I},cga=function(e,t,r){const a=Object.keys(t);let s;return a.forEach(function(o){const u=gga(o,"entity");_le.set(o,u);const h=e.append("g").attr("id",u);s=s===void 0?u:s;const f="text-"+u,p=h.append("text").classed("er entityLabel",!0).attr("id",f).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",Qt().fontFamily).style("font-size",xp.fontSize+"px").text(t[o].alias??o),{width:m,height:b}=lga(h,p,t[o].attributes),w=h.insert("rect","#"+f).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",m).attr("height",b).node().getBBox();r.setNode(u,{width:w.width,height:w.height,shape:"rect",id:u})}),s},uga=function(e,t){t.nodes().forEach(function(r){r!==void 0&&t.node(r)!==void 0&&e.select("#"+r).attr("transform","translate("+(t.node(r).x-t.node(r).width/2)+","+(t.node(r).y-t.node(r).height/2)+" )")})},ptr=function(e){return(e.entityA+e.roleA+e.entityB).replace(/\s/g,"")},hga=function(e,t){return e.forEach(function(r){t.setEdge(_le.get(r.entityA),_le.get(r.entityB),{relationship:r},ptr(r))}),e};let SCn=0;const dga=function(e,t,r,a,s){SCn++;const o=r.edge(_le.get(t.entityA),_le.get(t.entityB),ptr(t)),u=r_().x(function(S){return S.x}).y(function(S){return S.y}).curve(j3),h=e.insert("path","#"+a).classed("er relationshipLine",!0).attr("d",u(o.points)).style("stroke",xp.stroke).style("fill","none");t.relSpec.relType===s.db.Identification.NON_IDENTIFYING&&h.attr("stroke-dasharray","8,8");let f="";switch(xp.arrowMarkerAbsolute&&(f=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,f=f.replace(/\(/g,"\\("),f=f.replace(/\)/g,"\\)")),t.relSpec.cardA){case s.db.Cardinality.ZERO_OR_ONE:h.attr("marker-end","url("+f+"#"+_3.ERMarkers.ZERO_OR_ONE_END+")");break;case s.db.Cardinality.ZERO_OR_MORE:h.attr("marker-end","url("+f+"#"+_3.ERMarkers.ZERO_OR_MORE_END+")");break;case s.db.Cardinality.ONE_OR_MORE:h.attr("marker-end","url("+f+"#"+_3.ERMarkers.ONE_OR_MORE_END+")");break;case s.db.Cardinality.ONLY_ONE:h.attr("marker-end","url("+f+"#"+_3.ERMarkers.ONLY_ONE_END+")");break;case s.db.Cardinality.MD_PARENT:h.attr("marker-end","url("+f+"#"+_3.ERMarkers.MD_PARENT_END+")");break}switch(t.relSpec.cardB){case s.db.Cardinality.ZERO_OR_ONE:h.attr("marker-start","url("+f+"#"+_3.ERMarkers.ZERO_OR_ONE_START+")");break;case s.db.Cardinality.ZERO_OR_MORE:h.attr("marker-start","url("+f+"#"+_3.ERMarkers.ZERO_OR_MORE_START+")");break;case s.db.Cardinality.ONE_OR_MORE:h.attr("marker-start","url("+f+"#"+_3.ERMarkers.ONE_OR_MORE_START+")");break;case s.db.Cardinality.ONLY_ONE:h.attr("marker-start","url("+f+"#"+_3.ERMarkers.ONLY_ONE_START+")");break;case s.db.Cardinality.MD_PARENT:h.attr("marker-start","url("+f+"#"+_3.ERMarkers.MD_PARENT_START+")");break}const p=h.node().getTotalLength(),m=h.node().getPointAtLength(p*.5),b="rel"+SCn,w=e.append("text").classed("er relationshipLabel",!0).attr("id",b).attr("x",m.x).attr("y",m.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",Qt().fontFamily).style("font-size",xp.fontSize+"px").text(t.roleA).node().getBBox();e.insert("rect","#"+b).classed("er relationshipLabelBox",!0).attr("x",m.x-w.width/2).attr("y",m.y-w.height/2).attr("width",w.width).attr("height",w.height)},fga=function(e,t,r,a){xp=Qt().er,ut.info("Drawing ER diagram");const s=Qt().securityLevel;let o;s==="sandbox"&&(o=gn("#i"+t));const h=gn(s==="sandbox"?o.nodes()[0].contentDocument.body:"body").select(`[id='${t}']`);_3.insertMarkers(h,xp);let f;f=new F1({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:xp.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});const p=cga(h,a.db.getEntities(),f),m=hga(a.db.getRelationships(),f);oK(f),uga(h,f),m.forEach(function(C){dga(h,C,f,p,a)});const b=xp.diagramPadding;il.insertTitle(h,"entityTitleText",xp.titleTopMargin,a.db.getDiagramTitle());const _=h.node().getBBox(),w=_.width+b*2,S=_.height+b*2;Db(h,S,w,xp.useMaxWidth),h.attr("viewBox",`${_.x-b} ${_.y-b} ${w} ${S}`)},pga="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function gga(e="",t=""){const r=e.replace(sga,"");return`${TCn(t)}${TCn(r)}${Kpa(e,pga)}`}function TCn(e=""){return e.length>0?`${e}-`:""}const mga={setConf:oga,draw:fga},bga=e=>` .entityBox { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; } .attributeBoxOdd { fill: ${e.attributeBackgroundColorOdd}; stroke: ${e.nodeBorder}; } .attributeBoxEven { fill: ${e.attributeBackgroundColorEven}; stroke: ${e.nodeBorder}; } .relationshipLabelBox { fill: ${e.tertiaryColor}; opacity: 0.7; background-color: ${e.tertiaryColor}; rect { opacity: 0.5; } } .relationshipLine { stroke: ${e.lineColor}; } .entityTitleText { text-anchor: middle; font-size: 18px; fill: ${e.textColor}; } #MD_PARENT_START { fill: #f5f5f5 !important; stroke: ${e.lineColor} !important; stroke-width: 1; } #MD_PARENT_END { fill: #f5f5f5 !important; stroke: ${e.lineColor} !important; stroke-width: 1; } `,yga=bga,vga={parser:Xpa,db:iga,renderer:mga,styles:yga},_ga=Object.freeze(Object.defineProperty({__proto__:null,diagram:vga},Symbol.toStringTag,{value:"Module"}));var Iht=function(){var e=function(P,M,F,U){for(F=F||{},U=P.length;U--;F[P[U]]=M);return F},t=[1,3],r=[1,6],a=[1,4],s=[1,5],o=[2,5],u=[1,12],h=[5,7,13,19,21,23,24,26,28,31,37,40,47],f=[7,13,19,21,23,24,26,28,31,37,40],p=[7,12,13,19,21,23,24,26,28,31,37,40],m=[7,13,47],b=[1,42],_=[1,41],w=[7,13,29,32,35,38,47],S=[1,55],C=[1,56],A=[1,57],k=[7,13,32,35,42,47],I={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(M,F,U,$,G,B,Z){var z=B.length-1;switch(G){case 2:return B[z];case 3:return B[z-1];case 4:return $.setDirection(B[z-3]),B[z-1];case 6:$.setOptions(B[z-1]),this.$=B[z];break;case 7:B[z-1]+=B[z],this.$=B[z-1];break;case 9:this.$=[];break;case 10:B[z-1].push(B[z]),this.$=B[z-1];break;case 11:this.$=B[z-1];break;case 16:this.$=B[z].trim(),$.setAccTitle(this.$);break;case 17:case 18:this.$=B[z].trim(),$.setAccDescription(this.$);break;case 19:$.addSection(B[z].substr(8)),this.$=B[z].substr(8);break;case 21:$.checkout(B[z]);break;case 22:$.branch(B[z]);break;case 23:$.branch(B[z-2],B[z]);break;case 24:$.cherryPick(B[z],"",void 0);break;case 25:$.cherryPick(B[z-2],"",void 0,B[z]);break;case 26:$.cherryPick(B[z-2],"",B[z]);break;case 27:$.cherryPick(B[z-4],"",B[z],B[z-2]);break;case 28:$.cherryPick(B[z-4],"",B[z-2],B[z]);break;case 29:$.cherryPick(B[z],"",B[z-2]);break;case 30:$.cherryPick(B[z],"","");break;case 31:$.cherryPick(B[z-2],"","");break;case 32:$.cherryPick(B[z-4],"","",B[z-2]);break;case 33:$.cherryPick(B[z-4],"","",B[z]);break;case 34:$.cherryPick(B[z-2],"",B[z-4],B[z]);break;case 35:$.cherryPick(B[z-2],"","",B[z]);break;case 36:$.merge(B[z],"","","");break;case 37:$.merge(B[z-2],B[z],"","");break;case 38:$.merge(B[z-2],"",B[z],"");break;case 39:$.merge(B[z-2],"","",B[z]);break;case 40:$.merge(B[z-4],B[z],"",B[z-2]);break;case 41:$.merge(B[z-4],"",B[z],B[z-2]);break;case 42:$.merge(B[z-4],"",B[z-2],B[z]);break;case 43:$.merge(B[z-4],B[z-2],B[z],"");break;case 44:$.merge(B[z-4],B[z-2],"",B[z]);break;case 45:$.merge(B[z-4],B[z],B[z-2],"");break;case 46:$.merge(B[z-6],B[z-4],B[z-2],B[z]);break;case 47:$.merge(B[z-6],B[z],B[z-4],B[z-2]);break;case 48:$.merge(B[z-6],B[z-4],B[z],B[z-2]);break;case 49:$.merge(B[z-6],B[z-2],B[z-4],B[z]);break;case 50:$.merge(B[z-6],B[z],B[z-2],B[z-4]);break;case 51:$.merge(B[z-6],B[z-2],B[z],B[z-4]);break;case 52:$.commit(B[z]);break;case 53:$.commit("","",$.commitType.NORMAL,B[z]);break;case 54:$.commit("","",B[z],"");break;case 55:$.commit("","",B[z],B[z-2]);break;case 56:$.commit("","",B[z-2],B[z]);break;case 57:$.commit("",B[z],$.commitType.NORMAL,"");break;case 58:$.commit("",B[z-2],$.commitType.NORMAL,B[z]);break;case 59:$.commit("",B[z],$.commitType.NORMAL,B[z-2]);break;case 60:$.commit("",B[z-2],B[z],"");break;case 61:$.commit("",B[z],B[z-2],"");break;case 62:$.commit("",B[z-4],B[z-2],B[z]);break;case 63:$.commit("",B[z-4],B[z],B[z-2]);break;case 64:$.commit("",B[z-2],B[z-4],B[z]);break;case 65:$.commit("",B[z],B[z-4],B[z-2]);break;case 66:$.commit("",B[z],B[z-2],B[z-4]);break;case 67:$.commit("",B[z-2],B[z],B[z-4]);break;case 68:$.commit(B[z],"",$.commitType.NORMAL,"");break;case 69:$.commit(B[z],"",$.commitType.NORMAL,B[z-2]);break;case 70:$.commit(B[z-2],"",$.commitType.NORMAL,B[z]);break;case 71:$.commit(B[z-2],"",B[z],"");break;case 72:$.commit(B[z],"",B[z-2],"");break;case 73:$.commit(B[z],B[z-2],$.commitType.NORMAL,"");break;case 74:$.commit(B[z-2],B[z],$.commitType.NORMAL,"");break;case 75:$.commit(B[z-4],"",B[z-2],B[z]);break;case 76:$.commit(B[z-4],"",B[z],B[z-2]);break;case 77:$.commit(B[z-2],"",B[z-4],B[z]);break;case 78:$.commit(B[z],"",B[z-4],B[z-2]);break;case 79:$.commit(B[z],"",B[z-2],B[z-4]);break;case 80:$.commit(B[z-2],"",B[z],B[z-4]);break;case 81:$.commit(B[z-4],B[z],B[z-2],"");break;case 82:$.commit(B[z-4],B[z-2],B[z],"");break;case 83:$.commit(B[z-2],B[z],B[z-4],"");break;case 84:$.commit(B[z],B[z-2],B[z-4],"");break;case 85:$.commit(B[z],B[z-4],B[z-2],"");break;case 86:$.commit(B[z-2],B[z-4],B[z],"");break;case 87:$.commit(B[z-4],B[z],$.commitType.NORMAL,B[z-2]);break;case 88:$.commit(B[z-4],B[z-2],$.commitType.NORMAL,B[z]);break;case 89:$.commit(B[z-2],B[z],$.commitType.NORMAL,B[z-4]);break;case 90:$.commit(B[z],B[z-2],$.commitType.NORMAL,B[z-4]);break;case 91:$.commit(B[z],B[z-4],$.commitType.NORMAL,B[z-2]);break;case 92:$.commit(B[z-2],B[z-4],$.commitType.NORMAL,B[z]);break;case 93:$.commit(B[z-6],B[z-4],B[z-2],B[z]);break;case 94:$.commit(B[z-6],B[z-4],B[z],B[z-2]);break;case 95:$.commit(B[z-6],B[z-2],B[z-4],B[z]);break;case 96:$.commit(B[z-6],B[z],B[z-4],B[z-2]);break;case 97:$.commit(B[z-6],B[z-2],B[z],B[z-4]);break;case 98:$.commit(B[z-6],B[z],B[z-2],B[z-4]);break;case 99:$.commit(B[z-4],B[z-6],B[z-2],B[z]);break;case 100:$.commit(B[z-4],B[z-6],B[z],B[z-2]);break;case 101:$.commit(B[z-2],B[z-6],B[z-4],B[z]);break;case 102:$.commit(B[z],B[z-6],B[z-4],B[z-2]);break;case 103:$.commit(B[z-2],B[z-6],B[z],B[z-4]);break;case 104:$.commit(B[z],B[z-6],B[z-2],B[z-4]);break;case 105:$.commit(B[z],B[z-4],B[z-2],B[z-6]);break;case 106:$.commit(B[z-2],B[z-4],B[z],B[z-6]);break;case 107:$.commit(B[z],B[z-2],B[z-4],B[z-6]);break;case 108:$.commit(B[z-2],B[z],B[z-4],B[z-6]);break;case 109:$.commit(B[z-4],B[z-2],B[z],B[z-6]);break;case 110:$.commit(B[z-4],B[z],B[z-2],B[z-6]);break;case 111:$.commit(B[z-2],B[z-4],B[z-6],B[z]);break;case 112:$.commit(B[z],B[z-4],B[z-6],B[z-2]);break;case 113:$.commit(B[z-2],B[z],B[z-6],B[z-4]);break;case 114:$.commit(B[z],B[z-2],B[z-6],B[z-4]);break;case 115:$.commit(B[z-4],B[z-2],B[z-6],B[z]);break;case 116:$.commit(B[z-4],B[z],B[z-6],B[z-2]);break;case 117:this.$="";break;case 118:this.$=B[z];break;case 119:this.$=$.commitType.NORMAL;break;case 120:this.$=$.commitType.REVERSE;break;case 121:this.$=$.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:t,7:r,13:a,47:s},{1:[3]},{3:7,4:2,5:t,7:r,13:a,47:s},{6:8,7:o,8:[1,9],9:[1,10],10:11,13:u},e(h,[2,124]),e(h,[2,125]),e(h,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:o,10:11,13:u},{8:[1,15]},e(f,[2,9],{11:16,12:[1,17]}),e(p,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:o,10:11,13:u},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},e(p,[2,7]),{1:[2,3]},{7:[1,36]},e(f,[2,10]),{4:37,7:r,13:a,47:s},e(f,[2,12]),e(m,[2,13]),e(m,[2,14]),e(m,[2,15]),{20:[1,38]},{22:[1,39]},e(m,[2,18]),e(m,[2,19]),e(m,[2,20]),{27:40,33:b,46:_},e(m,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:b,46:_},{32:[1,50],35:[1,51]},{27:52,33:b,46:_},{1:[2,4]},e(f,[2,11]),e(m,[2,16]),e(m,[2,17]),e(m,[2,21]),e(w,[2,122]),e(w,[2,123]),e(m,[2,52]),{33:[1,53]},{39:54,43:S,44:C,45:A},{33:[1,58]},{33:[1,59]},e(m,[2,118]),e(m,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},e(m,[2,22],{29:[1,66]}),e(m,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),e(m,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),e(k,[2,119]),e(k,[2,120]),e(k,[2,121]),e(m,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),e(m,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:S,44:C,45:A},{33:[1,81]},e(m,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:S,44:C,45:A},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:S,44:C,45:A},{33:[1,95]},{33:[1,96]},{39:97,43:S,44:C,45:A},{33:[1,98]},e(m,[2,37],{35:[1,100],38:[1,99]}),e(m,[2,38],{32:[1,102],35:[1,101]}),e(m,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},e(m,[2,23]),e(m,[2,55],{32:[1,110],42:[1,111]}),e(m,[2,59],{38:[1,112],42:[1,113]}),e(m,[2,69],{32:[1,115],38:[1,114]}),e(m,[2,56],{32:[1,116],42:[1,117]}),e(m,[2,61],{35:[1,118],42:[1,119]}),e(m,[2,72],{32:[1,121],35:[1,120]}),e(m,[2,58],{38:[1,122],42:[1,123]}),e(m,[2,60],{35:[1,124],42:[1,125]}),e(m,[2,73],{35:[1,127],38:[1,126]}),e(m,[2,70],{32:[1,129],38:[1,128]}),e(m,[2,71],{32:[1,131],35:[1,130]}),e(m,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:S,44:C,45:A},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:S,44:C,45:A},e(m,[2,25],{35:[1,140]}),e(m,[2,26],{34:[1,141]}),e(m,[2,31],{34:[1,142]}),e(m,[2,29],{34:[1,143]}),e(m,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:S,44:C,45:A},{33:[1,148]},{39:149,43:S,44:C,45:A},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:S,44:C,45:A},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:S,44:C,45:A},{33:[1,162]},{39:163,43:S,44:C,45:A},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:S,44:C,45:A},{33:[1,168]},e(m,[2,43],{35:[1,169]}),e(m,[2,44],{38:[1,170]}),e(m,[2,42],{32:[1,171]}),e(m,[2,45],{35:[1,172]}),e(m,[2,40],{38:[1,173]}),e(m,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},e(m,[2,66],{42:[1,181]}),e(m,[2,79],{32:[1,182]}),e(m,[2,67],{42:[1,183]}),e(m,[2,90],{38:[1,184]}),e(m,[2,80],{32:[1,185]}),e(m,[2,89],{38:[1,186]}),e(m,[2,65],{42:[1,187]}),e(m,[2,78],{32:[1,188]}),e(m,[2,64],{42:[1,189]}),e(m,[2,84],{35:[1,190]}),e(m,[2,77],{32:[1,191]}),e(m,[2,83],{35:[1,192]}),e(m,[2,63],{42:[1,193]}),e(m,[2,91],{38:[1,194]}),e(m,[2,62],{42:[1,195]}),e(m,[2,85],{35:[1,196]}),e(m,[2,86],{35:[1,197]}),e(m,[2,92],{38:[1,198]}),e(m,[2,76],{32:[1,199]}),e(m,[2,87],{38:[1,200]}),e(m,[2,75],{32:[1,201]}),e(m,[2,81],{35:[1,202]}),e(m,[2,82],{35:[1,203]}),e(m,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:S,44:C,45:A},{33:[1,207]},{33:[1,208]},{39:209,43:S,44:C,45:A},{33:[1,210]},e(m,[2,27]),e(m,[2,32]),e(m,[2,28]),e(m,[2,33]),e(m,[2,34]),e(m,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:S,44:C,45:A},{33:[1,215]},{39:216,43:S,44:C,45:A},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:S,44:C,45:A},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:S,44:C,45:A},{33:[1,229]},{39:230,43:S,44:C,45:A},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:S,44:C,45:A},e(m,[2,46]),e(m,[2,48]),e(m,[2,47]),e(m,[2,49]),e(m,[2,51]),e(m,[2,50]),e(m,[2,107]),e(m,[2,108]),e(m,[2,105]),e(m,[2,106]),e(m,[2,110]),e(m,[2,109]),e(m,[2,114]),e(m,[2,113]),e(m,[2,112]),e(m,[2,111]),e(m,[2,116]),e(m,[2,115]),e(m,[2,104]),e(m,[2,103]),e(m,[2,102]),e(m,[2,101]),e(m,[2,99]),e(m,[2,100]),e(m,[2,98]),e(m,[2,97]),e(m,[2,96]),e(m,[2,95]),e(m,[2,93]),e(m,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(M,F){if(F.recoverable)this.trace(M);else{var U=new Error(M);throw U.hash=F,U}},parse:function(M){var F=this,U=[0],$=[],G=[null],B=[],Z=this.table,z="",Y=0,W=0,Q=2,V=1,j=B.slice.call(arguments,1),ee=Object.create(this.lexer),te={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(te.yy[ne]=this.yy[ne]);ee.setInput(M,te.yy),te.yy.lexer=ee,te.yy.parser=this,typeof ee.yylloc>"u"&&(ee.yylloc={});var se=ee.yylloc;B.push(se);var ie=ee.options&&ee.options.ranges;typeof te.yy.parseError=="function"?this.parseError=te.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ge(){var Le;return Le=$.pop()||ee.lex()||V,typeof Le!="number"&&(Le instanceof Array&&($=Le,Le=$.pop()),Le=F.symbols_[Le]||Le),Le}for(var ce,be,ve,De,ye={},Ee,he,we,Ce;;){if(be=U[U.length-1],this.defaultActions[be]?ve=this.defaultActions[be]:((ce===null||typeof ce>"u")&&(ce=ge()),ve=Z[be]&&Z[be][ce]),typeof ve>"u"||!ve.length||!ve[0]){var Ie="";Ce=[];for(Ee in Z[be])this.terminals_[Ee]&&Ee>Q&&Ce.push("'"+this.terminals_[Ee]+"'");ee.showPosition?Ie="Parse error on line "+(Y+1)+`: `+ee.showPosition()+` Expecting `+Ce.join(", ")+", got '"+(this.terminals_[ce]||ce)+"'":Ie="Parse error on line "+(Y+1)+": Unexpected "+(ce==V?"end of input":"'"+(this.terminals_[ce]||ce)+"'"),this.parseError(Ie,{text:ee.match,token:this.terminals_[ce]||ce,line:ee.yylineno,loc:se,expected:Ce})}if(ve[0]instanceof Array&&ve.length>1)throw new Error("Parse Error: multiple actions possible at state: "+be+", token: "+ce);switch(ve[0]){case 1:U.push(ce),G.push(ee.yytext),B.push(ee.yylloc),U.push(ve[1]),ce=null,W=ee.yyleng,z=ee.yytext,Y=ee.yylineno,se=ee.yylloc;break;case 2:if(he=this.productions_[ve[1]][1],ye.$=G[G.length-he],ye._$={first_line:B[B.length-(he||1)].first_line,last_line:B[B.length-1].last_line,first_column:B[B.length-(he||1)].first_column,last_column:B[B.length-1].last_column},ie&&(ye._$.range=[B[B.length-(he||1)].range[0],B[B.length-1].range[1]]),De=this.performAction.apply(ye,[z,W,Y,te.yy,ve[1],G,B].concat(j)),typeof De<"u")return De;he&&(U=U.slice(0,-1*he*2),G=G.slice(0,-1*he),B=B.slice(0,-1*he)),U.push(this.productions_[ve[1]][0]),G.push(ye.$),B.push(ye._$),we=Z[U[U.length-2]][U[U.length-1]],U.push(we);break;case 3:return!0}}return!0}},N=function(){var P={EOF:1,parseError:function(F,U){if(this.yy.parser)this.yy.parser.parseError(F,U);else throw new Error(F)},setInput:function(M,F){return this.yy=F||this.yy||{},this._input=M,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var M=this._input[0];this.yytext+=M,this.yyleng++,this.offset++,this.match+=M,this.matched+=M;var F=M.match(/(?:\r\n?|\n).*/g);return F?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),M},unput:function(M){var F=M.length,U=M.split(/(?:\r\n?|\n)/g);this._input=M+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-F),this.offset-=F;var $=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),U.length-1&&(this.yylineno-=U.length-1);var G=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:U?(U.length===$.length?this.yylloc.first_column:0)+$[$.length-U.length].length-U[0].length:this.yylloc.first_column-F},this.options.ranges&&(this.yylloc.range=[G[0],G[0]+this.yyleng-F]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(M){this.unput(this.match.slice(M))},pastInput:function(){var M=this.matched.substr(0,this.matched.length-this.match.length);return(M.length>20?"...":"")+M.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var M=this.match;return M.length<20&&(M+=this._input.substr(0,20-M.length)),(M.substr(0,20)+(M.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var M=this.pastInput(),F=new Array(M.length+1).join("-");return M+this.upcomingInput()+` `+F+"^"},test_match:function(M,F){var U,$,G;if(this.options.backtrack_lexer&&(G={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(G.yylloc.range=this.yylloc.range.slice(0))),$=M[0].match(/(?:\r\n?|\n).*/g),$&&(this.yylineno+=$.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:$?$[$.length-1].length-$[$.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+M[0].length},this.yytext+=M[0],this.match+=M[0],this.matches=M,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(M[0].length),this.matched+=M[0],U=this.performAction.call(this,this.yy,this,F,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),U)return U;if(this._backtrack){for(var B in G)this[B]=G[B];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var M,F,U,$;this._more||(this.yytext="",this.match="");for(var G=this._currentRules(),B=0;BF[0].length)){if(F=U,$=B,this.options.backtrack_lexer){if(M=this.test_match(U,G[B]),M!==!1)return M;if(this._backtrack){F=!1;continue}else return!1}else if(!this.options.flex)break}return F?(M=this.test_match(F,G[$]),M!==!1?M:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var F=this.next();return F||this.lex()},begin:function(F){this.conditionStack.push(F)},popState:function(){var F=this.conditionStack.length-1;return F>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(F){return F=this.conditionStack.length-1-Math.abs(F||0),F>=0?this.conditionStack[F]:"INITIAL"},pushState:function(F){this.begin(F)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(F,U,$,G){switch($){case 0:return this.begin("acc_title"),19;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),21;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 13;case 8:break;case 9:break;case 10:return 5;case 11:return 40;case 12:return 32;case 13:return 38;case 14:return 42;case 15:return 43;case 16:return 44;case 17:return 45;case 18:return 35;case 19:return 28;case 20:return 29;case 21:return 37;case 22:return 31;case 23:return 34;case 24:return 26;case 25:return 9;case 26:return 9;case 27:return 8;case 28:return"CARET";case 29:this.begin("options");break;case 30:this.popState();break;case 31:return 12;case 32:return 36;case 33:this.begin("string");break;case 34:this.popState();break;case 35:return 33;case 36:return 30;case 37:return 46;case 38:return 7}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:parent:)/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:TB\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},options:{rules:[30,31],inclusive:!1},string:{rules:[34,35],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,36,37,38,39],inclusive:!0}}};return P}();I.lexer=N;function L(){this.yy={}}return L.prototype=I,I.Parser=L,new L}();Iht.parser=Iht;const wga=Iht;let c5e=Qt().gitGraph.mainBranchName,Ega=Qt().gitGraph.mainBranchOrder,kp={},av=null,wle={};wle[c5e]={name:c5e,order:Ega};let k1={};k1[c5e]=av;let Sg=c5e,gtr="LR",c$=0;function Zbt(){return JQn({length:7})}function xga(e,t){const r=Object.create(null);return e.reduce((a,s)=>{const o=t(s);return r[o]||(r[o]=!0,a.push(s)),a},[])}const Sga=function(e){gtr=e};let mtr={};const Tga=function(e){ut.debug("options str",e),e=e&&e.trim(),e=e||"{}";try{mtr=JSON.parse(e)}catch(t){ut.error("error while parsing gitGraph options",t.message)}},Cga=function(){return mtr},Aga=function(e,t,r,a){ut.debug("Entering commit:",e,t,r,a),t=mi.sanitizeText(t,Qt()),e=mi.sanitizeText(e,Qt()),a=mi.sanitizeText(a,Qt());const s={id:t||c$+"-"+Zbt(),message:e,seq:c$++,type:r||dY.NORMAL,tag:a||"",parents:av==null?[]:[av.id],branch:Sg};av=s,kp[s.id]=s,k1[Sg]=s.id,ut.debug("in pushCommit "+s.id)},kga=function(e,t){if(e=mi.sanitizeText(e,Qt()),k1[e]===void 0)k1[e]=av!=null?av.id:null,wle[e]={name:e,order:t?parseInt(t,10):null},btr(e),ut.debug("in createBranch");else{let r=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+e+'")');throw r.hash={text:"branch "+e,token:"branch "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+e+'"']},r}},Rga=function(e,t,r,a){e=mi.sanitizeText(e,Qt()),t=mi.sanitizeText(t,Qt());const s=kp[k1[Sg]],o=kp[k1[e]];if(Sg===e){let h=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw h.hash={text:"merge "+e,token:"merge "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},h}else if(s===void 0||!s){let h=new Error('Incorrect usage of "merge". Current branch ('+Sg+")has no commits");throw h.hash={text:"merge "+e,token:"merge "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},h}else if(k1[e]===void 0){let h=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw h.hash={text:"merge "+e,token:"merge "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+e]},h}else if(o===void 0||!o){let h=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw h.hash={text:"merge "+e,token:"merge "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},h}else if(s===o){let h=new Error('Incorrect usage of "merge". Both branches have same head');throw h.hash={text:"merge "+e,token:"merge "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},h}else if(t&&kp[t]!==void 0){let h=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom Id");throw h.hash={text:"merge "+e+t+r+a,token:"merge "+e+t+r+a,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+e+" "+t+"_UNIQUE "+r+" "+a]},h}const u={id:t||c$+"-"+Zbt(),message:"merged branch "+e+" into "+Sg,seq:c$++,parents:[av==null?null:av.id,k1[e]],branch:Sg,type:dY.MERGE,customType:r,customId:!!t,tag:a||""};av=u,kp[u.id]=u,k1[Sg]=u.id,ut.debug(k1),ut.debug("in mergeBranch")},Iga=function(e,t,r,a){if(ut.debug("Entering cherryPick:",e,t,r),e=mi.sanitizeText(e,Qt()),t=mi.sanitizeText(t,Qt()),r=mi.sanitizeText(r,Qt()),a=mi.sanitizeText(a,Qt()),!e||kp[e]===void 0){let u=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw u.hash={text:"cherryPick "+e+" "+t,token:"cherryPick "+e+" "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},u}let s=kp[e],o=s.branch;if(a&&!(Array.isArray(s.parents)&&s.parents.includes(a)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");if(s.type===dY.MERGE&&!a)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||kp[t]===void 0){if(o===Sg){let f=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:"cherryPick "+e+" "+t,token:"cherryPick "+e+" "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},f}const u=kp[k1[Sg]];if(u===void 0||!u){let f=new Error('Incorrect usage of "cherry-pick". Current branch ('+Sg+")has no commits");throw f.hash={text:"cherryPick "+e+" "+t,token:"cherryPick "+e+" "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},f}const h={id:c$+"-"+Zbt(),message:"cherry-picked "+s+" into "+Sg,seq:c$++,parents:[av==null?null:av.id,s.id],branch:Sg,type:dY.CHERRY_PICK,tag:r??`cherry-pick:${s.id}${s.type===dY.MERGE?`|parent:${a}`:""}`};av=h,kp[h.id]=h,k1[Sg]=h.id,ut.debug(k1),ut.debug("in cherryPick")}},btr=function(e){if(e=mi.sanitizeText(e,Qt()),k1[e]===void 0){let t=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+e+'")');throw t.hash={text:"checkout "+e,token:"checkout "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+e+'"']},t}else{Sg=e;const t=k1[Sg];av=kp[t]}};function CCn(e,t,r){const a=e.indexOf(t);a===-1?e.push(r):e.splice(a,1,r)}function ytr(e){const t=e.reduce((s,o)=>s.seq>o.seq?s:o,e[0]);let r="";e.forEach(function(s){s===t?r+=" *":r+=" |"});const a=[r,t.id,t.seq];for(let s in k1)k1[s]===t.id&&a.push(s);if(ut.debug(a.join(" ")),t.parents&&t.parents.length==2){const s=kp[t.parents[0]];CCn(e,t,s),e.push(kp[t.parents[1]])}else{if(t.parents.length==0)return;{const s=kp[t.parents];CCn(e,t,s)}}e=xga(e,s=>s.id),ytr(e)}const Nga=function(){ut.debug(kp);const e=vtr()[0];ytr([e])},Oga=function(){kp={},av=null;let e=Qt().gitGraph.mainBranchName,t=Qt().gitGraph.mainBranchOrder;k1={},k1[e]=null,wle={},wle[e]={name:e,order:t},Sg=e,c$=0,Mb()},Lga=function(){return Object.values(wle).map((t,r)=>t.order!==null?t:{...t,order:parseFloat(`0.${r}`,10)}).sort((t,r)=>t.order-r.order).map(({name:t})=>({name:t}))},Dga=function(){return k1},Mga=function(){return kp},vtr=function(){const e=Object.keys(kp).map(function(t){return kp[t]});return e.forEach(function(t){ut.debug(t.id)}),e.sort((t,r)=>t.seq-r.seq),e},Pga=function(){return Sg},Bga=function(){return gtr},Fga=function(){return av},dY={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},$ga={getConfig:()=>Qt().gitGraph,setDirection:Sga,setOptions:Tga,getOptions:Cga,commit:Aga,branch:kga,merge:Rga,cherryPick:Iga,checkout:btr,prettyPrint:Nga,clear:Oga,getBranchesAsObjArray:Lga,getBranches:Dga,getCommits:Mga,getCommitsArray:vtr,getCurrentBranch:Pga,getDirection:Bga,getHead:Fga,setAccTitle:Pb,getAccTitle:Ev,getAccDescription:Sv,setAccDescription:xv,setDiagramTitle:Zw,getDiagramTitle:Tv,commitType:dY};let zae={};const vg={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},qB=8;let M2={},L7={},u5e=[],Ele=0,x1="LR";const Uga=()=>{M2={},L7={},zae={},Ele=0,u5e=[],x1="LR"},_tr=e=>{const t=document.createElementNS("http://www.w3.org/2000/svg","text");let r=[];typeof e=="string"?r=e.split(/\\n|\n|/gi):Array.isArray(e)?r=e:r=[];for(const a of r){const s=document.createElementNS("http://www.w3.org/2000/svg","tspan");s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),s.setAttribute("dy","1em"),s.setAttribute("x","0"),s.setAttribute("class","row"),s.textContent=a.trim(),t.appendChild(s)}return t},zga=e=>{let t="",r=0;return e.forEach(a=>{const s=x1==="TB"?L7[a].y:L7[a].x;s>=r&&(t=a,r=s)}),t||void 0},ACn=(e,t,r)=>{const a=Qt().gitGraph,s=e.append("g").attr("class","commit-bullets"),o=e.append("g").attr("class","commit-labels");let u=0;x1==="TB"&&(u=30);const f=Object.keys(t).sort((_,w)=>t[_].seq-t[w].seq),p=a.parallelCommits,m=10,b=40;f.forEach(_=>{const w=t[_];if(p)if(w.parents.length){const k=zga(w.parents);u=x1==="TB"?L7[k].y+b:L7[k].x+b}else u=0,x1==="TB"&&(u=30);const S=u+m,C=x1==="TB"?S:M2[w.branch].pos,A=x1==="TB"?M2[w.branch].pos:S;if(r){let k,I=w.customType!==void 0&&w.customType!==""?w.customType:w.type;switch(I){case vg.NORMAL:k="commit-normal";break;case vg.REVERSE:k="commit-reverse";break;case vg.HIGHLIGHT:k="commit-highlight";break;case vg.MERGE:k="commit-merge";break;case vg.CHERRY_PICK:k="commit-cherry-pick";break;default:k="commit-normal"}if(I===vg.HIGHLIGHT){const N=s.append("rect");N.attr("x",A-10),N.attr("y",C-10),N.attr("height",20),N.attr("width",20),N.attr("class",`commit ${w.id} commit-highlight${M2[w.branch].index%qB} ${k}-outer`),s.append("rect").attr("x",A-6).attr("y",C-6).attr("height",12).attr("width",12).attr("class",`commit ${w.id} commit${M2[w.branch].index%qB} ${k}-inner`)}else if(I===vg.CHERRY_PICK)s.append("circle").attr("cx",A).attr("cy",C).attr("r",10).attr("class",`commit ${w.id} ${k}`),s.append("circle").attr("cx",A-3).attr("cy",C+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${w.id} ${k}`),s.append("circle").attr("cx",A+3).attr("cy",C+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${w.id} ${k}`),s.append("line").attr("x1",A+3).attr("y1",C+1).attr("x2",A).attr("y2",C-5).attr("stroke","#fff").attr("class",`commit ${w.id} ${k}`),s.append("line").attr("x1",A-3).attr("y1",C+1).attr("x2",A).attr("y2",C-5).attr("stroke","#fff").attr("class",`commit ${w.id} ${k}`);else{const N=s.append("circle");if(N.attr("cx",A),N.attr("cy",C),N.attr("r",w.type===vg.MERGE?9:10),N.attr("class",`commit ${w.id} commit${M2[w.branch].index%qB}`),I===vg.MERGE){const L=s.append("circle");L.attr("cx",A),L.attr("cy",C),L.attr("r",6),L.attr("class",`commit ${k} ${w.id} commit${M2[w.branch].index%qB}`)}I===vg.REVERSE&&s.append("path").attr("d",`M ${A-5},${C-5}L${A+5},${C+5}M${A-5},${C+5}L${A+5},${C-5}`).attr("class",`commit ${k} ${w.id} commit${M2[w.branch].index%qB}`)}}if(x1==="TB"?L7[w.id]={x:A,y:S}:L7[w.id]={x:S,y:C},r){if(w.type!==vg.CHERRY_PICK&&(w.customId&&w.type===vg.MERGE||w.type!==vg.MERGE)&&a.showCommitLabel){const N=o.append("g"),L=N.insert("rect").attr("class","commit-label-bkg"),P=N.append("text").attr("x",u).attr("y",C+25).attr("class","commit-label").text(w.id);let M=P.node().getBBox();if(L.attr("x",S-M.width/2-2).attr("y",C+13.5).attr("width",M.width+2*2).attr("height",M.height+2*2),x1==="TB"&&(L.attr("x",A-(M.width+4*4+5)).attr("y",C-12),P.attr("x",A-(M.width+4*4)).attr("y",C+M.height-12)),x1!=="TB"&&P.attr("x",S-M.width/2),a.rotateCommitLabel)if(x1==="TB")P.attr("transform","rotate(-45, "+A+", "+C+")"),L.attr("transform","rotate(-45, "+A+", "+C+")");else{let F=-7.5-(M.width+10)/25*9.5,U=10+M.width/25*8.5;N.attr("transform","translate("+F+", "+U+") rotate(-45, "+u+", "+C+")")}}if(w.tag){const N=o.insert("polygon"),L=o.append("circle"),P=o.append("text").attr("y",C-16).attr("class","tag-label").text(w.tag);let M=P.node().getBBox();P.attr("x",S-M.width/2);const F=M.height/2,U=C-19.2;N.attr("class","tag-label-bkg").attr("points",` ${u-M.width/2-4/2},${U+2} ${u-M.width/2-4/2},${U-2} ${S-M.width/2-4},${U-F-2} ${S+M.width/2+4},${U-F-2} ${S+M.width/2+4},${U+F+2} ${S-M.width/2-4},${U+F+2}`),L.attr("cx",u-M.width/2+4/2).attr("cy",U).attr("r",1.5).attr("class","tag-hole"),x1==="TB"&&(N.attr("class","tag-label-bkg").attr("points",` ${A},${u+2} ${A},${u-2} ${A+m},${u-F-2} ${A+m+M.width+4},${u-F-2} ${A+m+M.width+4},${u+F+2} ${A+m},${u+F+2}`).attr("transform","translate(12,12) rotate(45, "+A+","+u+")"),L.attr("cx",A+4/2).attr("cy",u).attr("transform","translate(12,12) rotate(45, "+A+","+u+")"),P.attr("x",A+5).attr("y",u+3).attr("transform","translate(14,14) rotate(45, "+A+","+u+")"))}}u+=b+m,u>Ele&&(Ele=u)})},Gga=(e,t,r,a,s)=>{const u=(x1==="TB"?r.xp.branch===u,f=p=>p.seq>e.seq&&p.seqf(p)&&h(p))},Gae=(e,t,r=0)=>{const a=e+Math.abs(e-t)/2;if(r>5)return a;if(u5e.every(u=>Math.abs(u-a)>=10))return u5e.push(a),a;const o=Math.abs(e-t);return Gae(e,t-o/5,r+1)},qga=(e,t,r,a)=>{const s=L7[t.id],o=L7[r.id],u=Gga(t,r,s,o,a);let h="",f="",p=0,m=0,b=M2[r.branch].index;r.type===vg.MERGE&&t.id!==r.parents[0]&&(b=M2[t.branch].index);let _;if(u){h="A 10 10, 0, 0, 0,",f="A 10 10, 0, 0, 1,",p=10,m=10;const w=s.yo.x&&(h="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",p=20,m=20,r.type===vg.MERGE&&t.id!==r.parents[0]?_=`M ${s.x} ${s.y} L ${s.x} ${o.y-p} ${f} ${s.x-m} ${o.y} L ${o.x} ${o.y}`:_=`M ${s.x} ${s.y} L ${o.x+p} ${s.y} ${h} ${o.x} ${s.y+m} L ${o.x} ${o.y}`),s.x===o.x&&(_=`M ${s.x} ${s.y} L ${o.x} ${o.y}`)):(s.yo.y&&(r.type===vg.MERGE&&t.id!==r.parents[0]?_=`M ${s.x} ${s.y} L ${o.x-p} ${s.y} ${h} ${o.x} ${s.y-m} L ${o.x} ${o.y}`:_=`M ${s.x} ${s.y} L ${s.x} ${o.y+p} ${f} ${s.x+m} ${o.y} L ${o.x} ${o.y}`),s.y===o.y&&(_=`M ${s.x} ${s.y} L ${o.x} ${o.y}`));e.append("path").attr("d",_).attr("class","arrow arrow"+b%qB)},Hga=(e,t)=>{const r=e.append("g").attr("class","commit-arrows");Object.keys(t).forEach(a=>{const s=t[a];s.parents&&s.parents.length>0&&s.parents.forEach(o=>{qga(r,t[o],s,t)})})},Vga=(e,t)=>{const r=Qt().gitGraph,a=e.append("g");t.forEach((s,o)=>{const u=o%qB,h=M2[s.name].pos,f=a.append("line");f.attr("x1",0),f.attr("y1",h),f.attr("x2",Ele),f.attr("y2",h),f.attr("class","branch branch"+u),x1==="TB"&&(f.attr("y1",30),f.attr("x1",h),f.attr("y2",Ele),f.attr("x2",h)),u5e.push(h);let p=s.name;const m=_tr(p),b=a.insert("rect"),w=a.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+u);w.node().appendChild(m);let S=m.getBBox();b.attr("class","branchLabelBkg label"+u).attr("rx",4).attr("ry",4).attr("x",-S.width-4-(r.rotateCommitLabel===!0?30:0)).attr("y",-S.height/2+8).attr("width",S.width+18).attr("height",S.height+4),w.attr("transform","translate("+(-S.width-14-(r.rotateCommitLabel===!0?30:0))+", "+(h-S.height/2-1)+")"),x1==="TB"&&(b.attr("x",h-S.width/2-10).attr("y",0),w.attr("transform","translate("+(h-S.width/2-5)+", 0)")),x1!=="TB"&&b.attr("transform","translate(-19, "+(h-S.height/2)+")")})},Yga=function(e,t,r,a){Uga();const s=Qt(),o=s.gitGraph;ut.debug("in gitgraph renderer",e+` `,"id:",t,r),zae=a.db.getCommits();const u=a.db.getBranchesAsObjArray();x1=a.db.getDirection();const h=gn(`[id="${t}"]`);let f=0;u.forEach((p,m)=>{const b=_tr(p.name),_=h.append("g"),w=_.insert("g").attr("class","branchLabel"),S=w.insert("g").attr("class","label branch-label");S.node().appendChild(b);let C=b.getBBox();M2[p.name]={pos:f,index:m},f+=50+(o.rotateCommitLabel?40:0)+(x1==="TB"?C.width/2:0),S.remove(),w.remove(),_.remove()}),ACn(h,zae,!1),o.showBranches&&Vga(h,u),Hga(h,zae),ACn(h,zae,!0),il.insertTitle(h,"gitTitleText",o.titleTopMargin,a.db.getDiagramTitle()),CZn(void 0,h,o.diagramPadding,o.useMaxWidth??s.useMaxWidth)},jga={draw:Yga},Wga=e=>` .commit-id, .commit-msg, .branch-label { fill: lightgrey; color: lightgrey; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-family: var(--mermaid-font-family); } ${[0,1,2,3,4,5,6,7].map(t=>` .branch-label${t} { fill: ${e["gitBranchLabel"+t]}; } .commit${t} { stroke: ${e["git"+t]}; fill: ${e["git"+t]}; } .commit-highlight${t} { stroke: ${e["gitInv"+t]}; fill: ${e["gitInv"+t]}; } .label${t} { fill: ${e["git"+t]}; } .arrow${t} { stroke: ${e["git"+t]}; } `).join(` `)} .branch { stroke-width: 1; stroke: ${e.lineColor}; stroke-dasharray: 2; } .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelColor};} .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelBackground}; opacity: 0.5; } .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};} .tag-label-bkg { fill: ${e.tagLabelBackground}; stroke: ${e.tagLabelBorder}; } .tag-hole { fill: ${e.textColor}; } .commit-merge { stroke: ${e.primaryColor}; fill: ${e.primaryColor}; } .commit-reverse { stroke: ${e.primaryColor}; fill: ${e.primaryColor}; stroke-width: 3; } .commit-highlight-outer { } .commit-highlight-inner { stroke: ${e.primaryColor}; fill: ${e.primaryColor}; } .arrow { stroke-width: 8; stroke-linecap: round; fill: none} .gitTitleText { text-anchor: middle; font-size: 18px; fill: ${e.textColor}; } `,Kga=Wga,Xga={parser:wga,db:$ga,renderer:jga,styles:Kga},Qga=Object.freeze(Object.defineProperty({__proto__:null,diagram:Xga},Symbol.toStringTag,{value:"Module"}));var Nht=function(){var e=function(B,Z,z,Y){for(z=z||{},Y=B.length;Y--;z[B[Y]]=Z);return z},t=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],r=[1,25],a=[1,26],s=[1,27],o=[1,28],u=[1,29],h=[1,30],f=[1,31],p=[1,9],m=[1,10],b=[1,11],_=[1,12],w=[1,13],S=[1,14],C=[1,15],A=[1,16],k=[1,18],I=[1,19],N=[1,20],L=[1,21],P=[1,22],M=[1,24],F=[1,32],U={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(Z,z,Y,W,Q,V,j){var ee=V.length-1;switch(Q){case 1:return V[ee-1];case 2:this.$=[];break;case 3:V[ee-1].push(V[ee]),this.$=V[ee-1];break;case 4:case 5:this.$=V[ee];break;case 6:case 7:this.$=[];break;case 8:W.setWeekday("monday");break;case 9:W.setWeekday("tuesday");break;case 10:W.setWeekday("wednesday");break;case 11:W.setWeekday("thursday");break;case 12:W.setWeekday("friday");break;case 13:W.setWeekday("saturday");break;case 14:W.setWeekday("sunday");break;case 15:W.setDateFormat(V[ee].substr(11)),this.$=V[ee].substr(11);break;case 16:W.enableInclusiveEndDates(),this.$=V[ee].substr(18);break;case 17:W.TopAxis(),this.$=V[ee].substr(8);break;case 18:W.setAxisFormat(V[ee].substr(11)),this.$=V[ee].substr(11);break;case 19:W.setTickInterval(V[ee].substr(13)),this.$=V[ee].substr(13);break;case 20:W.setExcludes(V[ee].substr(9)),this.$=V[ee].substr(9);break;case 21:W.setIncludes(V[ee].substr(9)),this.$=V[ee].substr(9);break;case 22:W.setTodayMarker(V[ee].substr(12)),this.$=V[ee].substr(12);break;case 24:W.setDiagramTitle(V[ee].substr(6)),this.$=V[ee].substr(6);break;case 25:this.$=V[ee].trim(),W.setAccTitle(this.$);break;case 26:case 27:this.$=V[ee].trim(),W.setAccDescription(this.$);break;case 28:W.addSection(V[ee].substr(8)),this.$=V[ee].substr(8);break;case 30:W.addTask(V[ee-1],V[ee]),this.$="task";break;case 31:this.$=V[ee-1],W.setClickEvent(V[ee-1],V[ee],null);break;case 32:this.$=V[ee-2],W.setClickEvent(V[ee-2],V[ee-1],V[ee]);break;case 33:this.$=V[ee-2],W.setClickEvent(V[ee-2],V[ee-1],null),W.setLink(V[ee-2],V[ee]);break;case 34:this.$=V[ee-3],W.setClickEvent(V[ee-3],V[ee-2],V[ee-1]),W.setLink(V[ee-3],V[ee]);break;case 35:this.$=V[ee-2],W.setClickEvent(V[ee-2],V[ee],null),W.setLink(V[ee-2],V[ee-1]);break;case 36:this.$=V[ee-3],W.setClickEvent(V[ee-3],V[ee-1],V[ee]),W.setLink(V[ee-3],V[ee-2]);break;case 37:this.$=V[ee-1],W.setLink(V[ee-1],V[ee]);break;case 38:case 44:this.$=V[ee-1]+" "+V[ee];break;case 39:case 40:case 42:this.$=V[ee-2]+" "+V[ee-1]+" "+V[ee];break;case 41:case 43:this.$=V[ee-3]+" "+V[ee-2]+" "+V[ee-1]+" "+V[ee];break}},table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:a,14:s,15:o,16:u,17:h,18:f,19:p,20:m,21:b,22:_,23:w,24:S,25:C,26:A,27:k,28:I,30:N,32:L,33:P,34:23,35:M,37:F},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:33,11:17,12:r,13:a,14:s,15:o,16:u,17:h,18:f,19:p,20:m,21:b,22:_,23:w,24:S,25:C,26:A,27:k,28:I,30:N,32:L,33:P,34:23,35:M,37:F},e(t,[2,5]),e(t,[2,6]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),{29:[1,34]},{31:[1,35]},e(t,[2,27]),e(t,[2,28]),e(t,[2,29]),{36:[1,36]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),{38:[1,37],40:[1,38]},e(t,[2,4]),e(t,[2,25]),e(t,[2,26]),e(t,[2,30]),e(t,[2,31],{39:[1,39],40:[1,40]}),e(t,[2,37],{38:[1,41]}),e(t,[2,32],{40:[1,42]}),e(t,[2,33]),e(t,[2,35],{39:[1,43]}),e(t,[2,34]),e(t,[2,36])],defaultActions:{},parseError:function(Z,z){if(z.recoverable)this.trace(Z);else{var Y=new Error(Z);throw Y.hash=z,Y}},parse:function(Z){var z=this,Y=[0],W=[],Q=[null],V=[],j=this.table,ee="",te=0,ne=0,se=2,ie=1,ge=V.slice.call(arguments,1),ce=Object.create(this.lexer),be={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(be.yy[ve]=this.yy[ve]);ce.setInput(Z,be.yy),be.yy.lexer=ce,be.yy.parser=this,typeof ce.yylloc>"u"&&(ce.yylloc={});var De=ce.yylloc;V.push(De);var ye=ce.options&&ce.options.ranges;typeof be.yy.parseError=="function"?this.parseError=be.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ee(){var sn;return sn=W.pop()||ce.lex()||ie,typeof sn!="number"&&(sn instanceof Array&&(W=sn,sn=W.pop()),sn=z.symbols_[sn]||sn),sn}for(var he,we,Ce,Ie,Le={},Fe,Ve,Oe,Dt;;){if(we=Y[Y.length-1],this.defaultActions[we]?Ce=this.defaultActions[we]:((he===null||typeof he>"u")&&(he=Ee()),Ce=j[we]&&j[we][he]),typeof Ce>"u"||!Ce.length||!Ce[0]){var ot="";Dt=[];for(Fe in j[we])this.terminals_[Fe]&&Fe>se&&Dt.push("'"+this.terminals_[Fe]+"'");ce.showPosition?ot="Parse error on line "+(te+1)+`: `+ce.showPosition()+` Expecting `+Dt.join(", ")+", got '"+(this.terminals_[he]||he)+"'":ot="Parse error on line "+(te+1)+": Unexpected "+(he==ie?"end of input":"'"+(this.terminals_[he]||he)+"'"),this.parseError(ot,{text:ce.match,token:this.terminals_[he]||he,line:ce.yylineno,loc:De,expected:Dt})}if(Ce[0]instanceof Array&&Ce.length>1)throw new Error("Parse Error: multiple actions possible at state: "+we+", token: "+he);switch(Ce[0]){case 1:Y.push(he),Q.push(ce.yytext),V.push(ce.yylloc),Y.push(Ce[1]),he=null,ne=ce.yyleng,ee=ce.yytext,te=ce.yylineno,De=ce.yylloc;break;case 2:if(Ve=this.productions_[Ce[1]][1],Le.$=Q[Q.length-Ve],Le._$={first_line:V[V.length-(Ve||1)].first_line,last_line:V[V.length-1].last_line,first_column:V[V.length-(Ve||1)].first_column,last_column:V[V.length-1].last_column},ye&&(Le._$.range=[V[V.length-(Ve||1)].range[0],V[V.length-1].range[1]]),Ie=this.performAction.apply(Le,[ee,ne,te,be.yy,Ce[1],Q,V].concat(ge)),typeof Ie<"u")return Ie;Ve&&(Y=Y.slice(0,-1*Ve*2),Q=Q.slice(0,-1*Ve),V=V.slice(0,-1*Ve)),Y.push(this.productions_[Ce[1]][0]),Q.push(Le.$),V.push(Le._$),Oe=j[Y[Y.length-2]][Y[Y.length-1]],Y.push(Oe);break;case 3:return!0}}return!0}},$=function(){var B={EOF:1,parseError:function(z,Y){if(this.yy.parser)this.yy.parser.parseError(z,Y);else throw new Error(z)},setInput:function(Z,z){return this.yy=z||this.yy||{},this._input=Z,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Z=this._input[0];this.yytext+=Z,this.yyleng++,this.offset++,this.match+=Z,this.matched+=Z;var z=Z.match(/(?:\r\n?|\n).*/g);return z?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Z},unput:function(Z){var z=Z.length,Y=Z.split(/(?:\r\n?|\n)/g);this._input=Z+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-z),this.offset-=z;var W=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Y.length-1&&(this.yylineno-=Y.length-1);var Q=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Y?(Y.length===W.length?this.yylloc.first_column:0)+W[W.length-Y.length].length-Y[0].length:this.yylloc.first_column-z},this.options.ranges&&(this.yylloc.range=[Q[0],Q[0]+this.yyleng-z]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Z){this.unput(this.match.slice(Z))},pastInput:function(){var Z=this.matched.substr(0,this.matched.length-this.match.length);return(Z.length>20?"...":"")+Z.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Z=this.match;return Z.length<20&&(Z+=this._input.substr(0,20-Z.length)),(Z.substr(0,20)+(Z.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Z=this.pastInput(),z=new Array(Z.length+1).join("-");return Z+this.upcomingInput()+` `+z+"^"},test_match:function(Z,z){var Y,W,Q;if(this.options.backtrack_lexer&&(Q={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Q.yylloc.range=this.yylloc.range.slice(0))),W=Z[0].match(/(?:\r\n?|\n).*/g),W&&(this.yylineno+=W.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:W?W[W.length-1].length-W[W.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Z[0].length},this.yytext+=Z[0],this.match+=Z[0],this.matches=Z,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Z[0].length),this.matched+=Z[0],Y=this.performAction.call(this,this.yy,this,z,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Y)return Y;if(this._backtrack){for(var V in Q)this[V]=Q[V];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Z,z,Y,W;this._more||(this.yytext="",this.match="");for(var Q=this._currentRules(),V=0;Vz[0].length)){if(z=Y,W=V,this.options.backtrack_lexer){if(Z=this.test_match(Y,Q[V]),Z!==!1)return Z;if(this._backtrack){z=!1;continue}else return!1}else if(!this.options.flex)break}return z?(Z=this.test_match(z,Q[W]),Z!==!1?Z:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var z=this.next();return z||this.lex()},begin:function(z){this.conditionStack.push(z)},popState:function(){var z=this.conditionStack.length-1;return z>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(z){return z=this.conditionStack.length-1-Math.abs(z||0),z>=0?this.conditionStack[z]:"INITIAL"},pushState:function(z){this.begin(z)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(z,Y,W,Q){switch(W){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 40;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 21:this.popState();break;case 22:return 39;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],inclusive:!0}}};return B}();U.lexer=$;function G(){this.yy={}}return G.prototype=U,U.Parser=G,new G}();Nht.parser=Nht;const Zga=Nht;Fc.extend(XWn);Fc.extend(FAn);Fc.extend(PAn);let nA="",Jbt="",eyt,tyt="",tue=[],nue=[],nyt={},ryt=[],h5e=[],cW="",iyt="";const wtr=["active","done","crit","milestone"];let ayt=[],rue=!1,syt=!1,oyt="sunday",Oht=0;const Jga=function(){ryt=[],h5e=[],cW="",ayt=[],uSe=0,Dht=void 0,hSe=void 0,bp=[],nA="",Jbt="",iyt="",eyt=void 0,tyt="",tue=[],nue=[],rue=!1,syt=!1,Oht=0,nyt={},Mb(),oyt="sunday"},ema=function(e){Jbt=e},tma=function(){return Jbt},nma=function(e){eyt=e},rma=function(){return eyt},ima=function(e){tyt=e},ama=function(){return tyt},sma=function(e){nA=e},oma=function(){rue=!0},lma=function(){return rue},cma=function(){syt=!0},uma=function(){return syt},hma=function(e){iyt=e},dma=function(){return iyt},fma=function(){return nA},pma=function(e){tue=e.toLowerCase().split(/[\s,]+/)},gma=function(){return tue},mma=function(e){nue=e.toLowerCase().split(/[\s,]+/)},bma=function(){return nue},yma=function(){return nyt},vma=function(e){cW=e,ryt.push(e)},_ma=function(){return ryt},wma=function(){let e=kCn();const t=10;let r=0;for(;!e&&r=6&&r.includes("weekends")||r.includes(e.format("dddd").toLowerCase())?!0:r.includes(e.format(t.trim()))},Ema=function(e){oyt=e},xma=function(){return oyt},xtr=function(e,t,r,a){if(!r.length||e.manualEndTime)return;let s;e.startTime instanceof Date?s=Fc(e.startTime):s=Fc(e.startTime,t,!0),s=s.add(1,"d");let o;e.endTime instanceof Date?o=Fc(e.endTime):o=Fc(e.endTime,t,!0);const[u,h]=Sma(s,o,t,r,a);e.endTime=u.toDate(),e.renderEndTime=h},Sma=function(e,t,r,a,s){let o=!1,u=null;for(;e<=t;)o||(u=t.toDate()),o=Etr(e,r,a,s),o&&(t=t.add(1,"d")),e=e.add(1,"d");return[t,u]},Lht=function(e,t,r){r=r.trim();const s=/^after\s+(?[\d\w- ]+)/.exec(r);if(s!==null){let u=null;for(const f of s.groups.ids.split(" ")){let p=nU(f);p!==void 0&&(!u||p.endTime>u.endTime)&&(u=p)}if(u)return u.endTime;const h=new Date;return h.setHours(0,0,0,0),h}let o=Fc(r,t.trim(),!0);if(o.isValid())return o.toDate();{ut.debug("Invalid date:"+r),ut.debug("With date format:"+t.trim());const u=new Date(r);if(u===void 0||isNaN(u.getTime())||u.getFullYear()<-1e4||u.getFullYear()>1e4)throw new Error("Invalid date:"+r);return u}},Str=function(e){const t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t!==null?[Number.parseFloat(t[1]),t[2]]:[NaN,"ms"]},Ttr=function(e,t,r,a=!1){r=r.trim();const o=/^until\s+(?[\d\w- ]+)/.exec(r);if(o!==null){let m=null;for(const _ of o.groups.ids.split(" ")){let w=nU(_);w!==void 0&&(!m||w.startTime{window.open(r,"_self")}),nyt[a]=r)}),Atr(e,"clickable")},Atr=function(e,t){e.split(",").forEach(function(r){let a=nU(r);a!==void 0&&a.classes.push(t)})},Ima=function(e,t,r){if(Qt().securityLevel!=="loose"||t===void 0)return;let a=[];if(typeof r=="string"){a=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o{il.runFunc(t,...a)})},ktr=function(e,t){ayt.push(function(){const r=document.querySelector(`[id="${e}"]`);r!==null&&r.addEventListener("click",function(){t()})},function(){const r=document.querySelector(`[id="${e}-text"]`);r!==null&&r.addEventListener("click",function(){t()})})},Nma=function(e,t,r){e.split(",").forEach(function(a){Ima(a,t,r)}),Atr(e,"clickable")},Oma=function(e){ayt.forEach(function(t){t(e)})},Lma={getConfig:()=>Qt().gantt,clear:Jga,setDateFormat:sma,getDateFormat:fma,enableInclusiveEndDates:oma,endDatesAreInclusive:lma,enableTopAxis:cma,topAxisEnabled:uma,setAxisFormat:ema,getAxisFormat:tma,setTickInterval:nma,getTickInterval:rma,setTodayMarker:ima,getTodayMarker:ama,setAccTitle:Pb,getAccTitle:Ev,setDiagramTitle:Zw,getDiagramTitle:Tv,setDisplayMode:hma,getDisplayMode:dma,setAccDescription:xv,getAccDescription:Sv,addSection:vma,getSections:_ma,getTasks:wma,addTask:Ama,findTaskById:nU,addTaskOrg:kma,setIncludes:pma,getIncludes:gma,setExcludes:mma,getExcludes:bma,setClickEvent:Nma,setLink:Rma,getLinks:yma,bindFunctions:Oma,parseDuration:Str,isInvalidDate:Etr,setWeekday:Ema,getWeekday:xma};function Rtr(e,t,r){let a=!0;for(;a;)a=!1,r.forEach(function(s){const o="^\\s*"+s+"\\s*$",u=new RegExp(o);e[0].match(u)&&(t[s]=!0,e.shift(1),a=!0)})}const Dma=function(){ut.debug("Something is calling, setConf, remove the call")},RCn={monday:Rj,tuesday:r1t,wednesday:i1t,thursday:YO,friday:a1t,saturday:s1t,sunday:MW},Mma=(e,t)=>{let r=[...e].map(()=>-1/0),a=[...e].sort((o,u)=>o.startTime-u.startTime||o.order-u.order),s=0;for(const o of a)for(let u=0;u=r[u]){r[u]=o.endTime,o.order=u+t,u>s&&(s=u);break}return s};let n7;const Pma=function(e,t,r,a){const s=Qt().gantt,o=Qt().securityLevel;let u;o==="sandbox"&&(u=gn("#i"+t));const h=gn(o==="sandbox"?u.nodes()[0].contentDocument.body:"body"),f=o==="sandbox"?u.nodes()[0].contentDocument:document,p=f.getElementById(t);n7=p.parentElement.offsetWidth,n7===void 0&&(n7=1200),s.useWidth!==void 0&&(n7=s.useWidth);const m=a.db.getTasks();let b=[];for(const U of m)b.push(U.type);b=F(b);const _={};let w=2*s.topPadding;if(a.db.getDisplayMode()==="compact"||s.displayMode==="compact"){const U={};for(const G of m)U[G.section]===void 0?U[G.section]=[G]:U[G.section].push(G);let $=0;for(const G of Object.keys(U)){const B=Mma(U[G],$)+1;$+=B,w+=B*(s.barHeight+s.barGap),_[G]=B}}else{w+=m.length*(s.barHeight+s.barGap);for(const U of b)_[U]=m.filter($=>$.type===U).length}p.setAttribute("viewBox","0 0 "+n7+" "+w);const S=h.select(`[id="${t}"]`),C=xDn().domain([ALn(m,function(U){return U.startTime}),CLn(m,function(U){return U.endTime})]).rangeRound([0,n7-s.leftPadding-s.rightPadding]);function A(U,$){const G=U.startTime,B=$.startTime;let Z=0;return G>B?Z=1:Gte.order))].map(te=>U.find(ne=>ne.order===te));S.append("g").selectAll("rect").data(Q).enter().append("rect").attr("x",0).attr("y",function(te,ne){return ne=te.order,ne*$+G-2}).attr("width",function(){return Y-s.rightPadding/2}).attr("height",$).attr("class",function(te){for(const[ne,se]of b.entries())if(te.type===se)return"section section"+ne%s.numberSectionStyles;return"section section0"});const V=S.append("g").selectAll("rect").data(U).enter(),j=a.db.getLinks();if(V.append("rect").attr("id",function(te){return te.id}).attr("rx",3).attr("ry",3).attr("x",function(te){return te.milestone?C(te.startTime)+B+.5*(C(te.endTime)-C(te.startTime))-.5*Z:C(te.startTime)+B}).attr("y",function(te,ne){return ne=te.order,ne*$+G}).attr("width",function(te){return te.milestone?Z:C(te.renderEndTime||te.endTime)-C(te.startTime)}).attr("height",Z).attr("transform-origin",function(te,ne){return ne=te.order,(C(te.startTime)+B+.5*(C(te.endTime)-C(te.startTime))).toString()+"px "+(ne*$+G+.5*Z).toString()+"px"}).attr("class",function(te){const ne="task";let se="";te.classes.length>0&&(se=te.classes.join(" "));let ie=0;for(const[ce,be]of b.entries())te.type===be&&(ie=ce%s.numberSectionStyles);let ge="";return te.active?te.crit?ge+=" activeCrit":ge=" active":te.done?te.crit?ge=" doneCrit":ge=" done":te.crit&&(ge+=" crit"),ge.length===0&&(ge=" task"),te.milestone&&(ge=" milestone "+ge),ge+=ie,ge+=" "+se,ne+ge}),V.append("text").attr("id",function(te){return te.id+"-text"}).text(function(te){return te.task}).attr("font-size",s.fontSize).attr("x",function(te){let ne=C(te.startTime),se=C(te.renderEndTime||te.endTime);te.milestone&&(ne+=.5*(C(te.endTime)-C(te.startTime))-.5*Z),te.milestone&&(se=ne+Z);const ie=this.getBBox().width;return ie>se-ne?se+ie+1.5*s.leftPadding>Y?ne+B-5:se+B+5:(se-ne)/2+ne+B}).attr("y",function(te,ne){return ne=te.order,ne*$+s.barHeight/2+(s.fontSize/2-2)+G}).attr("text-height",Z).attr("class",function(te){const ne=C(te.startTime);let se=C(te.endTime);te.milestone&&(se=ne+Z);const ie=this.getBBox().width;let ge="";te.classes.length>0&&(ge=te.classes.join(" "));let ce=0;for(const[ve,De]of b.entries())te.type===De&&(ce=ve%s.numberSectionStyles);let be="";return te.active&&(te.crit?be="activeCritText"+ce:be="activeText"+ce),te.done?te.crit?be=be+" doneCritText"+ce:be=be+" doneText"+ce:te.crit&&(be=be+" critText"+ce),te.milestone&&(be+=" milestoneText"),ie>se-ne?se+ie+1.5*s.leftPadding>Y?ge+" taskTextOutsideLeft taskTextOutside"+ce+" "+be:ge+" taskTextOutsideRight taskTextOutside"+ce+" "+be+" width-"+ie:ge+" taskText taskText"+ce+" "+be+" width-"+ie}),Qt().securityLevel==="sandbox"){let te;te=gn("#i"+t);const ne=te.nodes()[0].contentDocument;V.filter(function(se){return j[se.id]!==void 0}).each(function(se){var ie=ne.querySelector("#"+se.id),ge=ne.querySelector("#"+se.id+"-text");const ce=ie.parentNode;var be=ne.createElement("a");be.setAttribute("xlink:href",j[se.id]),be.setAttribute("target","_top"),ce.appendChild(be),be.appendChild(ie),be.appendChild(ge)})}}function N(U,$,G,B,Z,z,Y,W){if(Y.length===0&&W.length===0)return;let Q,V;for(const{startTime:ie,endTime:ge}of z)(Q===void 0||ieV)&&(V=ge);if(!Q||!V)return;if(Fc(V).diff(Fc(Q),"year")>5){ut.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const j=a.db.getDateFormat(),ee=[];let te=null,ne=Fc(Q);for(;ne.valueOf()<=V;)a.db.isInvalidDate(ne,j,Y,W)?te?te.end=ne:te={start:ne,end:ne}:te&&(ee.push(te),te=null),ne=ne.add(1,"d");S.append("g").selectAll("rect").data(ee).enter().append("rect").attr("id",function(ie){return"exclude-"+ie.start.format("YYYY-MM-DD")}).attr("x",function(ie){return C(ie.start)+G}).attr("y",s.gridLineStartPadding).attr("width",function(ie){const ge=ie.end.add(1,"day");return C(ge)-C(ie.start)}).attr("height",Z-$-s.gridLineStartPadding).attr("transform-origin",function(ie,ge){return(C(ie.start)+G+.5*(C(ie.end)-C(ie.start))).toString()+"px "+(ge*U+.5*Z).toString()+"px"}).attr("class","exclude-range")}function L(U,$,G,B){let Z=ILn(C).tickSize(-B+$+s.gridLineStartPadding).tickFormat(Nj(a.db.getAxisFormat()||s.axisFormat||"%Y-%m-%d"));const Y=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(a.db.getTickInterval()||s.tickInterval);if(Y!==null){const W=Y[1],Q=Y[2],V=a.db.getWeekday()||s.weekday;switch(Q){case"millisecond":Z.ticks(VO.every(W));break;case"second":Z.ticks(WC.every(W));break;case"minute":Z.ticks(DF.every(W));break;case"hour":Z.ticks(MF.every(W));break;case"day":Z.ticks(tR.every(W));break;case"week":Z.ticks(RCn[V].every(W));break;case"month":Z.ticks(PF.every(W));break}}if(S.append("g").attr("class","grid").attr("transform","translate("+U+", "+(B-50)+")").call(Z).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),a.db.topAxisEnabled()||s.topAxis){let W=RLn(C).tickSize(-B+$+s.gridLineStartPadding).tickFormat(Nj(a.db.getAxisFormat()||s.axisFormat||"%Y-%m-%d"));if(Y!==null){const Q=Y[1],V=Y[2],j=a.db.getWeekday()||s.weekday;switch(V){case"millisecond":W.ticks(VO.every(Q));break;case"second":W.ticks(WC.every(Q));break;case"minute":W.ticks(DF.every(Q));break;case"hour":W.ticks(MF.every(Q));break;case"day":W.ticks(tR.every(Q));break;case"week":W.ticks(RCn[j].every(Q));break;case"month":W.ticks(PF.every(Q));break}}S.append("g").attr("class","grid").attr("transform","translate("+U+", "+$+")").call(W).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function P(U,$){let G=0;const B=Object.keys(_).map(Z=>[Z,_[Z]]);S.append("g").selectAll("text").data(B).enter().append(function(Z){const z=Z[0].split(mi.lineBreakRegex),Y=-(z.length-1)/2,W=f.createElementNS("http://www.w3.org/2000/svg","text");W.setAttribute("dy",Y+"em");for(const[Q,V]of z.entries()){const j=f.createElementNS("http://www.w3.org/2000/svg","tspan");j.setAttribute("alignment-baseline","central"),j.setAttribute("x","10"),Q>0&&j.setAttribute("dy","1em"),j.textContent=V,W.appendChild(j)}return W}).attr("x",10).attr("y",function(Z,z){if(z>0)for(let Y=0;Y` .mermaid-main-font { font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } .exclude-range { fill: ${e.excludeBkgColor}; } .section { stroke: none; opacity: 0.2; } .section0 { fill: ${e.sectionBkgColor}; } .section2 { fill: ${e.sectionBkgColor2}; } .section1, .section3 { fill: ${e.altSectionBkgColor}; opacity: 0.2; } .sectionTitle0 { fill: ${e.titleColor}; } .sectionTitle1 { fill: ${e.titleColor}; } .sectionTitle2 { fill: ${e.titleColor}; } .sectionTitle3 { fill: ${e.titleColor}; } .sectionTitle { text-anchor: start; font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } /* Grid and axis */ .grid .tick { stroke: ${e.gridColor}; opacity: 0.8; shape-rendering: crispEdges; } .grid .tick text { font-family: ${e.fontFamily}; fill: ${e.textColor}; } .grid path { stroke-width: 0; } /* Today line */ .today { fill: none; stroke: ${e.todayLineColor}; stroke-width: 2px; } /* Task styling */ /* Default task */ .task { stroke-width: 2; } .taskText { text-anchor: middle; font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } .taskTextOutsideRight { fill: ${e.taskTextDarkColor}; text-anchor: start; font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } .taskTextOutsideLeft { fill: ${e.taskTextDarkColor}; text-anchor: end; } /* Special case clickable */ .task.clickable { cursor: pointer; } .taskText.clickable { cursor: pointer; fill: ${e.taskTextClickableColor} !important; font-weight: bold; } .taskTextOutsideLeft.clickable { cursor: pointer; fill: ${e.taskTextClickableColor} !important; font-weight: bold; } .taskTextOutsideRight.clickable { cursor: pointer; fill: ${e.taskTextClickableColor} !important; font-weight: bold; } /* Specific task settings for the sections*/ .taskText0, .taskText1, .taskText2, .taskText3 { fill: ${e.taskTextColor}; } .task0, .task1, .task2, .task3 { fill: ${e.taskBkgColor}; stroke: ${e.taskBorderColor}; } .taskTextOutside0, .taskTextOutside2 { fill: ${e.taskTextOutsideColor}; } .taskTextOutside1, .taskTextOutside3 { fill: ${e.taskTextOutsideColor}; } /* Active task */ .active0, .active1, .active2, .active3 { fill: ${e.activeTaskBkgColor}; stroke: ${e.activeTaskBorderColor}; } .activeText0, .activeText1, .activeText2, .activeText3 { fill: ${e.taskTextDarkColor} !important; } /* Completed task */ .done0, .done1, .done2, .done3 { stroke: ${e.doneTaskBorderColor}; fill: ${e.doneTaskBkgColor}; stroke-width: 2; } .doneText0, .doneText1, .doneText2, .doneText3 { fill: ${e.taskTextDarkColor} !important; } /* Tasks on the critical line */ .crit0, .crit1, .crit2, .crit3 { stroke: ${e.critBorderColor}; fill: ${e.critBkgColor}; stroke-width: 2; } .activeCrit0, .activeCrit1, .activeCrit2, .activeCrit3 { stroke: ${e.critBorderColor}; fill: ${e.activeTaskBkgColor}; stroke-width: 2; } .doneCrit0, .doneCrit1, .doneCrit2, .doneCrit3 { stroke: ${e.critBorderColor}; fill: ${e.doneTaskBkgColor}; stroke-width: 2; cursor: pointer; shape-rendering: crispEdges; } .milestone { transform: rotate(45deg) scale(0.8,0.8); } .milestoneText { font-style: italic; } .doneCritText0, .doneCritText1, .doneCritText2, .doneCritText3 { fill: ${e.taskTextDarkColor} !important; } .activeCritText0, .activeCritText1, .activeCritText2, .activeCritText3 { fill: ${e.taskTextDarkColor} !important; } .titleText { text-anchor: middle; font-size: 18px; fill: ${e.titleColor||e.textColor}; font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } `,$ma=Fma,Uma={parser:Zga,db:Lma,renderer:Bma,styles:$ma},zma=Object.freeze(Object.defineProperty({__proto__:null,diagram:Uma},Symbol.toStringTag,{value:"Module"}));var Mht=function(){var e=function(o,u,h,f){for(h=h||{},f=o.length;f--;h[o[f]]=u);return h},t=[6,9,10],r={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(u,h,f,p,m,b,_){switch(b.length-1,m){case 1:return p;case 4:break;case 6:p.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},e(t,[2,3]),e(t,[2,4]),e(t,[2,5]),e(t,[2,6])],defaultActions:{4:[2,1]},parseError:function(u,h){if(h.recoverable)this.trace(u);else{var f=new Error(u);throw f.hash=h,f}},parse:function(u){var h=this,f=[0],p=[],m=[null],b=[],_=this.table,w="",S=0,C=0,A=2,k=1,I=b.slice.call(arguments,1),N=Object.create(this.lexer),L={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(L.yy[P]=this.yy[P]);N.setInput(u,L.yy),L.yy.lexer=N,L.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var M=N.yylloc;b.push(M);var F=N.options&&N.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var ee;return ee=p.pop()||N.lex()||k,typeof ee!="number"&&(ee instanceof Array&&(p=ee,ee=p.pop()),ee=h.symbols_[ee]||ee),ee}for(var $,G,B,Z,z={},Y,W,Q,V;;){if(G=f[f.length-1],this.defaultActions[G]?B=this.defaultActions[G]:(($===null||typeof $>"u")&&($=U()),B=_[G]&&_[G][$]),typeof B>"u"||!B.length||!B[0]){var j="";V=[];for(Y in _[G])this.terminals_[Y]&&Y>A&&V.push("'"+this.terminals_[Y]+"'");N.showPosition?j="Parse error on line "+(S+1)+`: `+N.showPosition()+` Expecting `+V.join(", ")+", got '"+(this.terminals_[$]||$)+"'":j="Parse error on line "+(S+1)+": Unexpected "+($==k?"end of input":"'"+(this.terminals_[$]||$)+"'"),this.parseError(j,{text:N.match,token:this.terminals_[$]||$,line:N.yylineno,loc:M,expected:V})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+$);switch(B[0]){case 1:f.push($),m.push(N.yytext),b.push(N.yylloc),f.push(B[1]),$=null,C=N.yyleng,w=N.yytext,S=N.yylineno,M=N.yylloc;break;case 2:if(W=this.productions_[B[1]][1],z.$=m[m.length-W],z._$={first_line:b[b.length-(W||1)].first_line,last_line:b[b.length-1].last_line,first_column:b[b.length-(W||1)].first_column,last_column:b[b.length-1].last_column},F&&(z._$.range=[b[b.length-(W||1)].range[0],b[b.length-1].range[1]]),Z=this.performAction.apply(z,[w,C,S,L.yy,B[1],m,b].concat(I)),typeof Z<"u")return Z;W&&(f=f.slice(0,-1*W*2),m=m.slice(0,-1*W),b=b.slice(0,-1*W)),f.push(this.productions_[B[1]][0]),m.push(z.$),b.push(z._$),Q=_[f[f.length-2]][f[f.length-1]],f.push(Q);break;case 3:return!0}}return!0}},a=function(){var o={EOF:1,parseError:function(h,f){if(this.yy.parser)this.yy.parser.parseError(h,f);else throw new Error(h)},setInput:function(u,h){return this.yy=h||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var h=u.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var h=u.length,f=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var p=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var m=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===p.length?this.yylloc.first_column:0)+p[p.length-f.length].length-f[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),h=new Array(u.length+1).join("-");return u+this.upcomingInput()+` `+h+"^"},test_match:function(u,h){var f,p,m;if(this.options.backtrack_lexer&&(m={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(m.yylloc.range=this.yylloc.range.slice(0))),p=u[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(u[0].length),this.matched+=u[0],f=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var b in m)this[b]=m[b];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,h,f,p;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),b=0;bh[0].length)){if(h=f,p=b,this.options.backtrack_lexer){if(u=this.test_match(f,m[b]),u!==!1)return u;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(u=this.test_match(h,m[p]),u!==!1?u:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var h=this.next();return h||this.lex()},begin:function(h){this.conditionStack.push(h)},popState:function(){var h=this.conditionStack.length-1;return h>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},pushState:function(h){this.begin(h)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(h,f,p,m){switch(p){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};return o}();r.lexer=a;function s(){this.yy={}}return s.prototype=r,r.Parser=s,new s}();Mht.parser=Mht;const Gma=Mht,Itr={info:!1};let lyt=Itr.info;const qma=e=>{lyt=e},Hma=()=>lyt,Vma=()=>{lyt=Itr.info},Yma={clear:Vma,setInfo:qma,getInfo:Hma},jma=(e,t,r)=>{ut.debug(`rendering info diagram `+e);const a=Zce(t);Db(a,100,400,!0),a.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${r}`)},Wma={draw:jma},Kma={parser:Gma,db:Yma,renderer:Wma},Xma=Object.freeze(Object.defineProperty({__proto__:null,diagram:Kma},Symbol.toStringTag,{value:"Module"}));var Pht=function(){var e=function(N,L,P,M){for(P=P||{},M=N.length;M--;P[N[M]]=L);return P},t=[1,3],r=[1,4],a=[1,5],s=[1,6],o=[1,10,12,14,16,18,19,20,21,22],u=[2,4],h=[1,5,10,12,14,16,18,19,20,21,22],f=[20,21,22],p=[2,7],m=[1,12],b=[1,13],_=[1,14],w=[1,15],S=[1,16],C=[1,17],A={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(L,P,M,F,U,$,G){var B=$.length-1;switch(U){case 3:F.setShowData(!0);break;case 6:this.$=$[B-1];break;case 8:F.addSection($[B-1],F.cleanupValue($[B]));break;case 9:this.$=$[B].trim(),F.setDiagramTitle(this.$);break;case 10:this.$=$[B].trim(),F.setAccTitle(this.$);break;case 11:case 12:this.$=$[B].trim(),F.setAccDescription(this.$);break;case 13:F.addSection($[B].substr(8)),this.$=$[B].substr(8);break}},table:[{3:1,4:2,5:t,20:r,21:a,22:s},{1:[3]},{3:7,4:2,5:t,20:r,21:a,22:s},e(o,u,{6:8,7:[1,9]}),e(h,[2,14]),e(h,[2,15]),e(h,[2,16]),{1:[2,1]},e(f,p,{8:10,9:11,1:[2,2],10:m,12:b,14:_,16:w,18:S,19:C}),e(o,u,{6:18}),e(o,[2,5]),{4:19,20:r,21:a,22:s},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(f,[2,12]),e(f,[2,13]),e(f,p,{8:10,9:11,1:[2,3],10:m,12:b,14:_,16:w,18:S,19:C}),e(o,[2,6]),e(f,[2,8]),e(f,[2,9]),e(f,[2,10]),e(f,[2,11])],defaultActions:{7:[2,1]},parseError:function(L,P){if(P.recoverable)this.trace(L);else{var M=new Error(L);throw M.hash=P,M}},parse:function(L){var P=this,M=[0],F=[],U=[null],$=[],G=this.table,B="",Z=0,z=0,Y=2,W=1,Q=$.slice.call(arguments,1),V=Object.create(this.lexer),j={yy:{}};for(var ee in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ee)&&(j.yy[ee]=this.yy[ee]);V.setInput(L,j.yy),j.yy.lexer=V,j.yy.parser=this,typeof V.yylloc>"u"&&(V.yylloc={});var te=V.yylloc;$.push(te);var ne=V.options&&V.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function se(){var Ce;return Ce=F.pop()||V.lex()||W,typeof Ce!="number"&&(Ce instanceof Array&&(F=Ce,Ce=F.pop()),Ce=P.symbols_[Ce]||Ce),Ce}for(var ie,ge,ce,be,ve={},De,ye,Ee,he;;){if(ge=M[M.length-1],this.defaultActions[ge]?ce=this.defaultActions[ge]:((ie===null||typeof ie>"u")&&(ie=se()),ce=G[ge]&&G[ge][ie]),typeof ce>"u"||!ce.length||!ce[0]){var we="";he=[];for(De in G[ge])this.terminals_[De]&&De>Y&&he.push("'"+this.terminals_[De]+"'");V.showPosition?we="Parse error on line "+(Z+1)+`: `+V.showPosition()+` Expecting `+he.join(", ")+", got '"+(this.terminals_[ie]||ie)+"'":we="Parse error on line "+(Z+1)+": Unexpected "+(ie==W?"end of input":"'"+(this.terminals_[ie]||ie)+"'"),this.parseError(we,{text:V.match,token:this.terminals_[ie]||ie,line:V.yylineno,loc:te,expected:he})}if(ce[0]instanceof Array&&ce.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ge+", token: "+ie);switch(ce[0]){case 1:M.push(ie),U.push(V.yytext),$.push(V.yylloc),M.push(ce[1]),ie=null,z=V.yyleng,B=V.yytext,Z=V.yylineno,te=V.yylloc;break;case 2:if(ye=this.productions_[ce[1]][1],ve.$=U[U.length-ye],ve._$={first_line:$[$.length-(ye||1)].first_line,last_line:$[$.length-1].last_line,first_column:$[$.length-(ye||1)].first_column,last_column:$[$.length-1].last_column},ne&&(ve._$.range=[$[$.length-(ye||1)].range[0],$[$.length-1].range[1]]),be=this.performAction.apply(ve,[B,z,Z,j.yy,ce[1],U,$].concat(Q)),typeof be<"u")return be;ye&&(M=M.slice(0,-1*ye*2),U=U.slice(0,-1*ye),$=$.slice(0,-1*ye)),M.push(this.productions_[ce[1]][0]),U.push(ve.$),$.push(ve._$),Ee=G[M[M.length-2]][M[M.length-1]],M.push(Ee);break;case 3:return!0}}return!0}},k=function(){var N={EOF:1,parseError:function(P,M){if(this.yy.parser)this.yy.parser.parseError(P,M);else throw new Error(P)},setInput:function(L,P){return this.yy=P||this.yy||{},this._input=L,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var L=this._input[0];this.yytext+=L,this.yyleng++,this.offset++,this.match+=L,this.matched+=L;var P=L.match(/(?:\r\n?|\n).*/g);return P?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),L},unput:function(L){var P=L.length,M=L.split(/(?:\r\n?|\n)/g);this._input=L+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-P),this.offset-=P;var F=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),M.length-1&&(this.yylineno-=M.length-1);var U=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:M?(M.length===F.length?this.yylloc.first_column:0)+F[F.length-M.length].length-M[0].length:this.yylloc.first_column-P},this.options.ranges&&(this.yylloc.range=[U[0],U[0]+this.yyleng-P]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(L){this.unput(this.match.slice(L))},pastInput:function(){var L=this.matched.substr(0,this.matched.length-this.match.length);return(L.length>20?"...":"")+L.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var L=this.match;return L.length<20&&(L+=this._input.substr(0,20-L.length)),(L.substr(0,20)+(L.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var L=this.pastInput(),P=new Array(L.length+1).join("-");return L+this.upcomingInput()+` `+P+"^"},test_match:function(L,P){var M,F,U;if(this.options.backtrack_lexer&&(U={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(U.yylloc.range=this.yylloc.range.slice(0))),F=L[0].match(/(?:\r\n?|\n).*/g),F&&(this.yylineno+=F.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:F?F[F.length-1].length-F[F.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+L[0].length},this.yytext+=L[0],this.match+=L[0],this.matches=L,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(L[0].length),this.matched+=L[0],M=this.performAction.call(this,this.yy,this,P,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),M)return M;if(this._backtrack){for(var $ in U)this[$]=U[$];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var L,P,M,F;this._more||(this.yytext="",this.match="");for(var U=this._currentRules(),$=0;$P[0].length)){if(P=M,F=$,this.options.backtrack_lexer){if(L=this.test_match(M,U[$]),L!==!1)return L;if(this._backtrack){P=!1;continue}else return!1}else if(!this.options.flex)break}return P?(L=this.test_match(P,U[F]),L!==!1?L:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var P=this.next();return P||this.lex()},begin:function(P){this.conditionStack.push(P)},popState:function(){var P=this.conditionStack.length-1;return P>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(P){return P=this.conditionStack.length-1-Math.abs(P||0),P>=0?this.conditionStack[P]:"INITIAL"},pushState:function(P){this.begin(P)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(P,M,F,U){switch(F){case 0:break;case 1:break;case 2:return 20;case 3:break;case 4:break;case 5:return this.begin("title"),12;case 6:return this.popState(),"title_value";case 7:return this.begin("acc_title"),14;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),16;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 15:this.popState();break;case 16:return"txt";case 17:return 5;case 18:return 7;case 19:return"value";case 20:return 22}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[6],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,7,9,11,14,17,18,19,20],inclusive:!0}}};return N}();A.lexer=k;function I(){this.yy={}}return I.prototype=A,A.Parser=I,new I}();Pht.parser=Pht;const Qma=Pht,Zma=fd.pie,d5e={sections:{},showData:!1};let f5e=d5e.sections,cyt=d5e.showData;const Jma=structuredClone(Zma),eba=()=>structuredClone(Jma),tba=()=>{f5e=structuredClone(d5e.sections),cyt=d5e.showData,Mb()},nba=(e,t)=>{e=J0(e,Qt()),f5e[e]===void 0&&(f5e[e]=t,ut.debug(`added new section: ${e}, with value: ${t}`))},rba=()=>f5e,iba=e=>(e.substring(0,1)===":"&&(e=e.substring(1).trim()),Number(e.trim())),aba=e=>{cyt=e},sba=()=>cyt,oba={getConfig:eba,clear:tba,setDiagramTitle:Zw,getDiagramTitle:Tv,setAccTitle:Pb,getAccTitle:Ev,setAccDescription:xv,getAccDescription:Sv,addSection:nba,getSections:rba,cleanupValue:iba,setShowData:aba,getShowData:sba},lba=e=>` .pieCircle{ stroke: ${e.pieStrokeColor}; stroke-width : ${e.pieStrokeWidth}; opacity : ${e.pieOpacity}; } .pieOuterCircle{ stroke: ${e.pieOuterStrokeColor}; stroke-width: ${e.pieOuterStrokeWidth}; fill: none; } .pieTitleText { text-anchor: middle; font-size: ${e.pieTitleTextSize}; fill: ${e.pieTitleTextColor}; font-family: ${e.fontFamily}; } .slice { font-family: ${e.fontFamily}; fill: ${e.pieSectionTextColor}; font-size:${e.pieSectionTextSize}; // fill: white; } .legend text { fill: ${e.pieLegendTextColor}; font-family: ${e.fontFamily}; font-size: ${e.pieLegendTextSize}; } `,cba=lba,uba=e=>{const t=Object.entries(e).map(a=>({label:a[0],value:a[1]})).sort((a,s)=>s.value-a.value);return ADn().value(a=>a.value)(t)},hba=(e,t,r,a)=>{ut.debug(`rendering pie chart `+e);const s=a.db,o=Qt(),u=Qce(s.getConfig(),o.pie),h=40,f=18,p=4,m=450,b=m,_=Zce(t),w=_.append("g"),S=s.getSections();w.attr("transform","translate("+b/2+","+m/2+")");const{themeVariables:C}=o;let[A]=J$(C.pieOuterStrokeWidth);A??(A=2);const k=u.textPosition,I=Math.min(b,m)/2-h,N=_S().innerRadius(0).outerRadius(I),L=_S().innerRadius(I*k).outerRadius(I*k);w.append("circle").attr("cx",0).attr("cy",0).attr("r",I+A/2).attr("class","pieOuterCircle");const P=uba(S),M=[C.pie1,C.pie2,C.pie3,C.pie4,C.pie5,C.pie6,C.pie7,C.pie8,C.pie9,C.pie10,C.pie11,C.pie12],F=cA(M);w.selectAll("mySlices").data(P).enter().append("path").attr("d",N).attr("fill",Z=>F(Z.data.label)).attr("class","pieCircle");let U=0;Object.keys(S).forEach(Z=>{U+=S[Z]}),w.selectAll("mySlices").data(P).enter().append("text").text(Z=>(Z.data.value/U*100).toFixed(0)+"%").attr("transform",Z=>"translate("+L.centroid(Z)+")").style("text-anchor","middle").attr("class","slice"),w.append("text").text(s.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText");const $=w.selectAll(".legend").data(F.domain()).enter().append("g").attr("class","legend").attr("transform",(Z,z)=>{const Y=f+p,W=Y*F.domain().length/2,Q=12*f,V=z*Y-W;return"translate("+Q+","+V+")"});$.append("rect").attr("width",f).attr("height",f).style("fill",F).style("stroke",F),$.data(P).append("text").attr("x",f+p).attr("y",f-p).text(Z=>{const{label:z,value:Y}=Z.data;return s.getShowData()?`${z} [${Y}]`:z});const G=Math.max(...$.selectAll("text").nodes().map(Z=>(Z==null?void 0:Z.getBoundingClientRect().width)??0)),B=b+h+f+p+G;_.attr("viewBox",`0 0 ${B} ${m}`),Db(_,m,B,u.useMaxWidth)},dba={draw:hba},fba={parser:Qma,db:oba,renderer:dba,styles:cba},pba=Object.freeze(Object.defineProperty({__proto__:null,diagram:fba},Symbol.toStringTag,{value:"Module"}));var Bht=function(){var e=function(ce,be,ve,De){for(ve=ve||{},De=ce.length;De--;ve[ce[De]]=be);return ve},t=[1,3],r=[1,4],a=[1,5],s=[1,6],o=[1,7],u=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],h=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],f=[32,33,34],p=[2,7],m=[1,13],b=[1,17],_=[1,18],w=[1,19],S=[1,20],C=[1,21],A=[1,22],k=[1,23],I=[1,24],N=[1,25],L=[1,26],P=[1,27],M=[1,30],F=[1,31],U=[1,32],$=[1,33],G=[1,34],B=[1,35],Z=[1,36],z=[1,37],Y=[1,38],W=[1,39],Q=[1,40],V=[1,41],j=[1,42],ee=[1,57],te=[1,58],ne=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],se={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(be,ve,De,ye,Ee,he,we){var Ce=he.length-1;switch(Ee){case 12:this.$=he[Ce].trim(),ye.setDiagramTitle(this.$);break;case 13:this.$=he[Ce].trim(),ye.setAccTitle(this.$);break;case 14:case 15:this.$=he[Ce].trim(),ye.setAccDescription(this.$);break;case 16:ye.addSection(he[Ce].substr(8)),this.$=he[Ce].substr(8);break;case 17:ye.addPoint(he[Ce-3],he[Ce-1],he[Ce]);break;case 18:ye.setXAxisLeftText(he[Ce-2]),ye.setXAxisRightText(he[Ce]);break;case 19:he[Ce-1].text+=" ⟶ ",ye.setXAxisLeftText(he[Ce-1]);break;case 20:ye.setXAxisLeftText(he[Ce]);break;case 21:ye.setYAxisBottomText(he[Ce-2]),ye.setYAxisTopText(he[Ce]);break;case 22:he[Ce-1].text+=" ⟶ ",ye.setYAxisBottomText(he[Ce-1]);break;case 23:ye.setYAxisBottomText(he[Ce]);break;case 24:ye.setQuadrant1Text(he[Ce]);break;case 25:ye.setQuadrant2Text(he[Ce]);break;case 26:ye.setQuadrant3Text(he[Ce]);break;case 27:ye.setQuadrant4Text(he[Ce]);break;case 31:this.$={text:he[Ce],type:"text"};break;case 32:this.$={text:he[Ce-1].text+""+he[Ce],type:he[Ce-1].type};break;case 33:this.$={text:he[Ce],type:"text"};break;case 34:this.$={text:he[Ce],type:"markdown"};break;case 35:this.$=he[Ce];break;case 36:this.$=he[Ce-1]+""+he[Ce];break}},table:[{3:1,4:2,5:t,6:r,32:a,33:s,34:o},{1:[3]},{3:8,4:2,5:t,6:r,32:a,33:s,34:o},{3:9,4:2,5:t,6:r,32:a,33:s,34:o},e(u,[2,4],{7:10}),e(h,[2,28]),e(h,[2,29]),e(h,[2,30]),{1:[2,1]},{1:[2,2]},e(f,p,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:m,13:b,15:_,17:w,19:S,20:C,25:A,27:k,28:I,29:N,30:L,31:P,37:M,38:F,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j}),e(u,[2,5]),{4:43,32:a,33:s,34:o},e(f,p,{10:14,11:15,12:16,21:28,35:29,9:44,5:m,13:b,15:_,17:w,19:S,20:C,25:A,27:k,28:I,29:N,30:L,31:P,37:M,38:F,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j}),e(f,[2,9]),e(f,[2,10]),e(f,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(f,[2,15]),e(f,[2,16]),{21:48,35:29,37:M,38:F,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j},{21:49,35:29,37:M,38:F,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j},{21:50,35:29,37:M,38:F,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j},{21:51,35:29,37:M,38:F,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j},{21:52,35:29,37:M,38:F,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j},{21:53,35:29,37:M,38:F,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j},{5:ee,22:[1,54],35:56,36:55,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j,51:te},e(ne,[2,31]),e(ne,[2,33]),e(ne,[2,34]),e(ne,[2,37]),e(ne,[2,38]),e(ne,[2,39]),e(ne,[2,40]),e(ne,[2,41]),e(ne,[2,42]),e(ne,[2,43]),e(ne,[2,44]),e(ne,[2,45]),e(ne,[2,46]),e(ne,[2,47]),e(u,[2,6]),e(f,[2,8]),e(f,[2,12]),e(f,[2,13]),e(f,[2,14]),e(f,[2,20],{36:55,35:56,5:ee,26:[1,59],40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j,51:te}),e(f,[2,23],{36:55,35:56,5:ee,26:[1,60],40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j,51:te}),e(f,[2,24],{36:55,35:56,5:ee,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j,51:te}),e(f,[2,25],{36:55,35:56,5:ee,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j,51:te}),e(f,[2,26],{36:55,35:56,5:ee,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j,51:te}),e(f,[2,27],{36:55,35:56,5:ee,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j,51:te}),{23:[1,61]},e(ne,[2,32]),e(ne,[2,48]),e(ne,[2,49]),e(ne,[2,50]),e(f,[2,19],{35:29,21:62,37:M,38:F,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j}),e(f,[2,22],{35:29,21:63,37:M,38:F,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j}),{24:[1,64]},e(f,[2,18],{36:55,35:56,5:ee,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j,51:te}),e(f,[2,21],{36:55,35:56,5:ee,40:U,41:$,42:G,43:B,44:Z,45:z,46:Y,47:W,48:Q,49:V,50:j,51:te}),e(f,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(be,ve){if(ve.recoverable)this.trace(be);else{var De=new Error(be);throw De.hash=ve,De}},parse:function(be){var ve=this,De=[0],ye=[],Ee=[null],he=[],we=this.table,Ce="",Ie=0,Le=0,Fe=2,Ve=1,Oe=he.slice.call(arguments,1),Dt=Object.create(this.lexer),ot={yy:{}};for(var sn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,sn)&&(ot.yy[sn]=this.yy[sn]);Dt.setInput(be,ot.yy),ot.yy.lexer=Dt,ot.yy.parser=this,typeof Dt.yylloc>"u"&&(Dt.yylloc={});var Kt=Dt.yylloc;he.push(Kt);var Ft=Dt.options&&Dt.options.ranges;typeof ot.yy.parseError=="function"?this.parseError=ot.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Je(){var Ke;return Ke=ye.pop()||Dt.lex()||Ve,typeof Ke!="number"&&(Ke instanceof Array&&(ye=Ke,Ke=ye.pop()),Ke=ve.symbols_[Ke]||Ke),Ke}for(var ht,et,qe,He,Ge={},Ye,Ae,Xe,fe;;){if(et=De[De.length-1],this.defaultActions[et]?qe=this.defaultActions[et]:((ht===null||typeof ht>"u")&&(ht=Je()),qe=we[et]&&we[et][ht]),typeof qe>"u"||!qe.length||!qe[0]){var Qe="";fe=[];for(Ye in we[et])this.terminals_[Ye]&&Ye>Fe&&fe.push("'"+this.terminals_[Ye]+"'");Dt.showPosition?Qe="Parse error on line "+(Ie+1)+`: `+Dt.showPosition()+` Expecting `+fe.join(", ")+", got '"+(this.terminals_[ht]||ht)+"'":Qe="Parse error on line "+(Ie+1)+": Unexpected "+(ht==Ve?"end of input":"'"+(this.terminals_[ht]||ht)+"'"),this.parseError(Qe,{text:Dt.match,token:this.terminals_[ht]||ht,line:Dt.yylineno,loc:Kt,expected:fe})}if(qe[0]instanceof Array&&qe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+et+", token: "+ht);switch(qe[0]){case 1:De.push(ht),Ee.push(Dt.yytext),he.push(Dt.yylloc),De.push(qe[1]),ht=null,Le=Dt.yyleng,Ce=Dt.yytext,Ie=Dt.yylineno,Kt=Dt.yylloc;break;case 2:if(Ae=this.productions_[qe[1]][1],Ge.$=Ee[Ee.length-Ae],Ge._$={first_line:he[he.length-(Ae||1)].first_line,last_line:he[he.length-1].last_line,first_column:he[he.length-(Ae||1)].first_column,last_column:he[he.length-1].last_column},Ft&&(Ge._$.range=[he[he.length-(Ae||1)].range[0],he[he.length-1].range[1]]),He=this.performAction.apply(Ge,[Ce,Le,Ie,ot.yy,qe[1],Ee,he].concat(Oe)),typeof He<"u")return He;Ae&&(De=De.slice(0,-1*Ae*2),Ee=Ee.slice(0,-1*Ae),he=he.slice(0,-1*Ae)),De.push(this.productions_[qe[1]][0]),Ee.push(Ge.$),he.push(Ge._$),Xe=we[De[De.length-2]][De[De.length-1]],De.push(Xe);break;case 3:return!0}}return!0}},ie=function(){var ce={EOF:1,parseError:function(ve,De){if(this.yy.parser)this.yy.parser.parseError(ve,De);else throw new Error(ve)},setInput:function(be,ve){return this.yy=ve||this.yy||{},this._input=be,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var be=this._input[0];this.yytext+=be,this.yyleng++,this.offset++,this.match+=be,this.matched+=be;var ve=be.match(/(?:\r\n?|\n).*/g);return ve?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),be},unput:function(be){var ve=be.length,De=be.split(/(?:\r\n?|\n)/g);this._input=be+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ve),this.offset-=ve;var ye=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),De.length-1&&(this.yylineno-=De.length-1);var Ee=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:De?(De.length===ye.length?this.yylloc.first_column:0)+ye[ye.length-De.length].length-De[0].length:this.yylloc.first_column-ve},this.options.ranges&&(this.yylloc.range=[Ee[0],Ee[0]+this.yyleng-ve]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(be){this.unput(this.match.slice(be))},pastInput:function(){var be=this.matched.substr(0,this.matched.length-this.match.length);return(be.length>20?"...":"")+be.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var be=this.match;return be.length<20&&(be+=this._input.substr(0,20-be.length)),(be.substr(0,20)+(be.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var be=this.pastInput(),ve=new Array(be.length+1).join("-");return be+this.upcomingInput()+` `+ve+"^"},test_match:function(be,ve){var De,ye,Ee;if(this.options.backtrack_lexer&&(Ee={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Ee.yylloc.range=this.yylloc.range.slice(0))),ye=be[0].match(/(?:\r\n?|\n).*/g),ye&&(this.yylineno+=ye.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ye?ye[ye.length-1].length-ye[ye.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+be[0].length},this.yytext+=be[0],this.match+=be[0],this.matches=be,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(be[0].length),this.matched+=be[0],De=this.performAction.call(this,this.yy,this,ve,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),De)return De;if(this._backtrack){for(var he in Ee)this[he]=Ee[he];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var be,ve,De,ye;this._more||(this.yytext="",this.match="");for(var Ee=this._currentRules(),he=0;heve[0].length)){if(ve=De,ye=he,this.options.backtrack_lexer){if(be=this.test_match(De,Ee[he]),be!==!1)return be;if(this._backtrack){ve=!1;continue}else return!1}else if(!this.options.flex)break}return ve?(be=this.test_match(ve,Ee[ye]),be!==!1?be:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ve=this.next();return ve||this.lex()},begin:function(ve){this.conditionStack.push(ve)},popState:function(){var ve=this.conditionStack.length-1;return ve>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ve){return ve=this.conditionStack.length-1-Math.abs(ve||0),ve>=0?this.conditionStack[ve]:"INITIAL"},pushState:function(ve){this.begin(ve)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ve,De,ye,Ee){switch(ye){case 0:break;case 1:break;case 2:return 32;case 3:break;case 4:return this.begin("title"),13;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),15;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),17;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 25;case 14:return 27;case 15:return 26;case 16:return 28;case 17:return 29;case 18:return 30;case 19:return 31;case 20:this.begin("md_string");break;case 21:return"MD_STR";case 22:this.popState();break;case 23:this.begin("string");break;case 24:this.popState();break;case 25:return"STR";case 26:return this.begin("point_start"),22;case 27:return this.begin("point_x"),23;case 28:this.popState();break;case 29:this.popState(),this.begin("point_y");break;case 30:return this.popState(),24;case 31:return 6;case 32:return 43;case 33:return"COLON";case 34:return 45;case 35:return 44;case 36:return 46;case 37:return 46;case 38:return 47;case 39:return 49;case 40:return 50;case 41:return 48;case 42:return 41;case 43:return 51;case 44:return 42;case 45:return 5;case 46:return 33;case 47:return 40;case 48:return 34}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[30],inclusive:!1},point_x:{rules:[29],inclusive:!1},point_start:{rules:[27,28],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[21,22],inclusive:!1},string:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,23,26,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return ce}();se.lexer=ie;function ge(){this.yy={}}return ge.prototype=se,se.Parser=ge,new ge}();Bht.parser=Bht;const gba=Bht,Uy=mbt();class mba{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var t,r,a,s,o,u,h,f,p,m,b,_,w,S,C,A,k,I;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((t=fd.quadrantChart)==null?void 0:t.chartWidth)||500,chartWidth:((r=fd.quadrantChart)==null?void 0:r.chartHeight)||500,titlePadding:((a=fd.quadrantChart)==null?void 0:a.titlePadding)||10,titleFontSize:((s=fd.quadrantChart)==null?void 0:s.titleFontSize)||20,quadrantPadding:((o=fd.quadrantChart)==null?void 0:o.quadrantPadding)||5,xAxisLabelPadding:((u=fd.quadrantChart)==null?void 0:u.xAxisLabelPadding)||5,yAxisLabelPadding:((h=fd.quadrantChart)==null?void 0:h.yAxisLabelPadding)||5,xAxisLabelFontSize:((f=fd.quadrantChart)==null?void 0:f.xAxisLabelFontSize)||16,yAxisLabelFontSize:((p=fd.quadrantChart)==null?void 0:p.yAxisLabelFontSize)||16,quadrantLabelFontSize:((m=fd.quadrantChart)==null?void 0:m.quadrantLabelFontSize)||16,quadrantTextTopPadding:((b=fd.quadrantChart)==null?void 0:b.quadrantTextTopPadding)||5,pointTextPadding:((_=fd.quadrantChart)==null?void 0:_.pointTextPadding)||5,pointLabelFontSize:((w=fd.quadrantChart)==null?void 0:w.pointLabelFontSize)||12,pointRadius:((S=fd.quadrantChart)==null?void 0:S.pointRadius)||5,xAxisPosition:((C=fd.quadrantChart)==null?void 0:C.xAxisPosition)||"top",yAxisPosition:((A=fd.quadrantChart)==null?void 0:A.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((k=fd.quadrantChart)==null?void 0:k.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((I=fd.quadrantChart)==null?void 0:I.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:Uy.quadrant1Fill,quadrant2Fill:Uy.quadrant2Fill,quadrant3Fill:Uy.quadrant3Fill,quadrant4Fill:Uy.quadrant4Fill,quadrant1TextFill:Uy.quadrant1TextFill,quadrant2TextFill:Uy.quadrant2TextFill,quadrant3TextFill:Uy.quadrant3TextFill,quadrant4TextFill:Uy.quadrant4TextFill,quadrantPointFill:Uy.quadrantPointFill,quadrantPointTextFill:Uy.quadrantPointTextFill,quadrantXAxisTextFill:Uy.quadrantXAxisTextFill,quadrantYAxisTextFill:Uy.quadrantYAxisTextFill,quadrantTitleFill:Uy.quadrantTitleFill,quadrantInternalBorderStrokeFill:Uy.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:Uy.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),ut.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}setConfig(t){ut.trace("setConfig called with: ",t),this.config={...this.config,...t}}setThemeConfig(t){ut.trace("setThemeConfig called with: ",t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,r,a,s){const o=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,u={top:t==="top"&&r?o:0,bottom:t==="bottom"&&r?o:0},h=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,f={left:this.config.yAxisPosition==="left"&&a?h:0,right:this.config.yAxisPosition==="right"&&a?h:0},p=this.config.titleFontSize+this.config.titlePadding*2,m={top:s?p:0},b=this.config.quadrantPadding+f.left,_=this.config.quadrantPadding+u.top+m.top,w=this.config.chartWidth-this.config.quadrantPadding*2-f.left-f.right,S=this.config.chartHeight-this.config.quadrantPadding*2-u.top-u.bottom-m.top,C=w/2,A=S/2;return{xAxisSpace:u,yAxisSpace:f,titleSpace:m,quadrantSpace:{quadrantLeft:b,quadrantTop:_,quadrantWidth:w,quadrantHalfWidth:C,quadrantHeight:S,quadrantHalfHeight:A}}}getAxisLabels(t,r,a,s){const{quadrantSpace:o,titleSpace:u}=s,{quadrantHalfHeight:h,quadrantHeight:f,quadrantLeft:p,quadrantHalfWidth:m,quadrantTop:b,quadrantWidth:_}=o,w=!!this.data.xAxisRightText,S=!!this.data.yAxisTopText,C=[];return this.data.xAxisLeftText&&r&&C.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:p+(w?m/2:0),y:t==="top"?this.config.xAxisLabelPadding+u.top:this.config.xAxisLabelPadding+b+f+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:w?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&r&&C.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:p+m+(w?m/2:0),y:t==="top"?this.config.xAxisLabelPadding+u.top:this.config.xAxisLabelPadding+b+f+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:w?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&a&&C.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+p+_+this.config.quadrantPadding,y:b+f-(S?h/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:S?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&a&&C.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+p+_+this.config.quadrantPadding,y:b+h-(S?h/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:S?"center":"left",horizontalPos:"top",rotation:-90}),C}getQuadrants(t){const{quadrantSpace:r}=t,{quadrantHalfHeight:a,quadrantLeft:s,quadrantHalfWidth:o,quadrantTop:u}=r,h=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:s+o,y:u,width:o,height:a,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:s,y:u,width:o,height:a,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:s,y:u+a,width:o,height:a,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:s+o,y:u+a,width:o,height:a,fill:this.themeConfig.quadrant4Fill}];for(const f of h)f.text.x=f.x+f.width/2,this.data.points.length===0?(f.text.y=f.y+f.height/2,f.text.horizontalPos="middle"):(f.text.y=f.y+this.config.quadrantTextTopPadding,f.text.horizontalPos="top");return h}getQuadrantPoints(t){const{quadrantSpace:r}=t,{quadrantHeight:a,quadrantLeft:s,quadrantTop:o,quadrantWidth:u}=r,h=sT().domain([0,1]).range([s,u+s]),f=sT().domain([0,1]).range([a+o,o]);return this.data.points.map(m=>({x:h(m.x),y:f(m.y),fill:this.themeConfig.quadrantPointFill,radius:this.config.pointRadius,text:{text:m.text,fill:this.themeConfig.quadrantPointTextFill,x:h(m.x),y:f(m.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0}}))}getBorders(t){const r=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:a}=t,{quadrantHalfHeight:s,quadrantHeight:o,quadrantLeft:u,quadrantHalfWidth:h,quadrantTop:f,quadrantWidth:p}=a;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:u-r,y1:f,x2:u+p+r,y2:f},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:u+p,y1:f+r,x2:u+p,y2:f+o-r},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:u-r,y1:f+o,x2:u+p+r,y2:f+o},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:u,y1:f+r,x2:u,y2:f+o-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:u+h,y1:f+r,x2:u+h,y2:f+o-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:u+r,y1:f+s,x2:u+p-r,y2:f+s}]}getTitle(t){if(t)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const t=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),r=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),a=this.config.showTitle&&!!this.data.titleText,s=this.data.points.length>0?"bottom":this.config.xAxisPosition,o=this.calculateSpace(s,t,r,a);return{points:this.getQuadrantPoints(o),quadrants:this.getQuadrants(o),axisLabels:this.getAxisLabels(s,t,r,o),borderLines:this.getBorders(o),title:this.getTitle(a)}}}const bba=Qt();function NR(e){return J0(e.trim(),bba)}const xb=new mba;function yba(e){xb.setData({quadrant1Text:NR(e.text)})}function vba(e){xb.setData({quadrant2Text:NR(e.text)})}function _ba(e){xb.setData({quadrant3Text:NR(e.text)})}function wba(e){xb.setData({quadrant4Text:NR(e.text)})}function Eba(e){xb.setData({xAxisLeftText:NR(e.text)})}function xba(e){xb.setData({xAxisRightText:NR(e.text)})}function Sba(e){xb.setData({yAxisTopText:NR(e.text)})}function Tba(e){xb.setData({yAxisBottomText:NR(e.text)})}function Cba(e,t,r){xb.addPoints([{x:t,y:r,text:NR(e.text)}])}function Aba(e){xb.setConfig({chartWidth:e})}function kba(e){xb.setConfig({chartHeight:e})}function Rba(){const e=Qt(),{themeVariables:t,quadrantChart:r}=e;return r&&xb.setConfig(r),xb.setThemeConfig({quadrant1Fill:t.quadrant1Fill,quadrant2Fill:t.quadrant2Fill,quadrant3Fill:t.quadrant3Fill,quadrant4Fill:t.quadrant4Fill,quadrant1TextFill:t.quadrant1TextFill,quadrant2TextFill:t.quadrant2TextFill,quadrant3TextFill:t.quadrant3TextFill,quadrant4TextFill:t.quadrant4TextFill,quadrantPointFill:t.quadrantPointFill,quadrantPointTextFill:t.quadrantPointTextFill,quadrantXAxisTextFill:t.quadrantXAxisTextFill,quadrantYAxisTextFill:t.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:t.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:t.quadrantInternalBorderStrokeFill,quadrantTitleFill:t.quadrantTitleFill}),xb.setData({titleText:Tv()}),xb.build()}const Iba=function(){xb.clear(),Mb()},Nba={setWidth:Aba,setHeight:kba,setQuadrant1Text:yba,setQuadrant2Text:vba,setQuadrant3Text:_ba,setQuadrant4Text:wba,setXAxisLeftText:Eba,setXAxisRightText:xba,setYAxisTopText:Sba,setYAxisBottomText:Tba,addPoint:Cba,getQuadrantData:Rba,clear:Iba,setAccTitle:Pb,getAccTitle:Ev,setDiagramTitle:Zw,getDiagramTitle:Tv,getAccDescription:Sv,setAccDescription:xv},Oba=(e,t,r,a)=>{var s,o,u;function h(B){return B==="top"?"hanging":"middle"}function f(B){return B==="left"?"start":"middle"}function p(B){return`translate(${B.x}, ${B.y}) rotate(${B.rotation||0})`}const m=Qt();ut.debug(`Rendering quadrant chart `+e);const b=m.securityLevel;let _;b==="sandbox"&&(_=gn("#i"+t));const S=gn(b==="sandbox"?_.nodes()[0].contentDocument.body:"body").select(`[id="${t}"]`),C=S.append("g").attr("class","main"),A=((s=m.quadrantChart)==null?void 0:s.chartWidth)||500,k=((o=m.quadrantChart)==null?void 0:o.chartHeight)||500;Db(S,k,A,((u=m.quadrantChart)==null?void 0:u.useMaxWidth)||!0),S.attr("viewBox","0 0 "+A+" "+k),a.db.setHeight(k),a.db.setWidth(A);const I=a.db.getQuadrantData(),N=C.append("g").attr("class","quadrants"),L=C.append("g").attr("class","border"),P=C.append("g").attr("class","data-points"),M=C.append("g").attr("class","labels"),F=C.append("g").attr("class","title");I.title&&F.append("text").attr("x",0).attr("y",0).attr("fill",I.title.fill).attr("font-size",I.title.fontSize).attr("dominant-baseline",h(I.title.horizontalPos)).attr("text-anchor",f(I.title.verticalPos)).attr("transform",p(I.title)).text(I.title.text),I.borderLines&&L.selectAll("line").data(I.borderLines).enter().append("line").attr("x1",B=>B.x1).attr("y1",B=>B.y1).attr("x2",B=>B.x2).attr("y2",B=>B.y2).style("stroke",B=>B.strokeFill).style("stroke-width",B=>B.strokeWidth);const U=N.selectAll("g.quadrant").data(I.quadrants).enter().append("g").attr("class","quadrant");U.append("rect").attr("x",B=>B.x).attr("y",B=>B.y).attr("width",B=>B.width).attr("height",B=>B.height).attr("fill",B=>B.fill),U.append("text").attr("x",0).attr("y",0).attr("fill",B=>B.text.fill).attr("font-size",B=>B.text.fontSize).attr("dominant-baseline",B=>h(B.text.horizontalPos)).attr("text-anchor",B=>f(B.text.verticalPos)).attr("transform",B=>p(B.text)).text(B=>B.text.text),M.selectAll("g.label").data(I.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(B=>B.text).attr("fill",B=>B.fill).attr("font-size",B=>B.fontSize).attr("dominant-baseline",B=>h(B.horizontalPos)).attr("text-anchor",B=>f(B.verticalPos)).attr("transform",B=>p(B));const G=P.selectAll("g.data-point").data(I.points).enter().append("g").attr("class","data-point");G.append("circle").attr("cx",B=>B.x).attr("cy",B=>B.y).attr("r",B=>B.radius).attr("fill",B=>B.fill),G.append("text").attr("x",0).attr("y",0).text(B=>B.text.text).attr("fill",B=>B.text.fill).attr("font-size",B=>B.text.fontSize).attr("dominant-baseline",B=>h(B.text.horizontalPos)).attr("text-anchor",B=>f(B.text.verticalPos)).attr("transform",B=>p(B.text))},Lba={draw:Oba},Dba={parser:gba,db:Nba,renderer:Lba,styles:()=>""},Mba=Object.freeze(Object.defineProperty({__proto__:null,diagram:Dba},Symbol.toStringTag,{value:"Module"}));var Fht=function(){var e=function(W,Q,V,j){for(V=V||{},j=W.length;j--;V[W[j]]=Q);return V},t=[1,10,12,14,16,18,19,21,23],r=[2,6],a=[1,3],s=[1,5],o=[1,6],u=[1,7],h=[1,5,10,12,14,16,18,19,21,23,34,35,36],f=[1,25],p=[1,26],m=[1,28],b=[1,29],_=[1,30],w=[1,31],S=[1,32],C=[1,33],A=[1,34],k=[1,35],I=[1,36],N=[1,37],L=[1,43],P=[1,42],M=[1,47],F=[1,50],U=[1,10,12,14,16,18,19,21,23,34,35,36],$=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],G=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],B=[1,64],Z={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:function(Q,V,j,ee,te,ne,se){var ie=ne.length-1;switch(te){case 5:ee.setOrientation(ne[ie]);break;case 9:ee.setDiagramTitle(ne[ie].text.trim());break;case 12:ee.setLineData({text:"",type:"text"},ne[ie]);break;case 13:ee.setLineData(ne[ie-1],ne[ie]);break;case 14:ee.setBarData({text:"",type:"text"},ne[ie]);break;case 15:ee.setBarData(ne[ie-1],ne[ie]);break;case 16:this.$=ne[ie].trim(),ee.setAccTitle(this.$);break;case 17:case 18:this.$=ne[ie].trim(),ee.setAccDescription(this.$);break;case 19:this.$=ne[ie-1];break;case 20:this.$=[Number(ne[ie-2]),...ne[ie]];break;case 21:this.$=[Number(ne[ie])];break;case 22:ee.setXAxisTitle(ne[ie]);break;case 23:ee.setXAxisTitle(ne[ie-1]);break;case 24:ee.setXAxisTitle({type:"text",text:""});break;case 25:ee.setXAxisBand(ne[ie]);break;case 26:ee.setXAxisRangeData(Number(ne[ie-2]),Number(ne[ie]));break;case 27:this.$=ne[ie-1];break;case 28:this.$=[ne[ie-2],...ne[ie]];break;case 29:this.$=[ne[ie]];break;case 30:ee.setYAxisTitle(ne[ie]);break;case 31:ee.setYAxisTitle(ne[ie-1]);break;case 32:ee.setYAxisTitle({type:"text",text:""});break;case 33:ee.setYAxisRangeData(Number(ne[ie-2]),Number(ne[ie]));break;case 37:this.$={text:ne[ie],type:"text"};break;case 38:this.$={text:ne[ie],type:"text"};break;case 39:this.$={text:ne[ie],type:"markdown"};break;case 40:this.$=ne[ie];break;case 41:this.$=ne[ie-1]+""+ne[ie];break}},table:[e(t,r,{3:1,4:2,7:4,5:a,34:s,35:o,36:u}),{1:[3]},e(t,r,{4:2,7:4,3:8,5:a,34:s,35:o,36:u}),e(t,r,{4:2,7:4,6:9,3:10,5:a,8:[1,11],34:s,35:o,36:u}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(h,[2,34]),e(h,[2,35]),e(h,[2,36]),{1:[2,1]},e(t,r,{4:2,7:4,3:21,5:a,34:s,35:o,36:u}),{1:[2,3]},e(h,[2,5]),e(t,[2,7],{4:22,34:s,35:o,36:u}),{11:23,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},{11:39,13:38,24:L,27:P,29:40,30:41,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},{11:45,15:44,27:M,33:46,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},{11:49,17:48,24:F,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},{11:52,17:51,24:F,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},{20:[1,53]},{22:[1,54]},e(U,[2,18]),{1:[2,2]},e(U,[2,8]),e(U,[2,9]),e($,[2,37],{40:55,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N}),e($,[2,38]),e($,[2,39]),e(G,[2,40]),e(G,[2,42]),e(G,[2,43]),e(G,[2,44]),e(G,[2,45]),e(G,[2,46]),e(G,[2,47]),e(G,[2,48]),e(G,[2,49]),e(G,[2,50]),e(G,[2,51]),e(U,[2,10]),e(U,[2,22],{30:41,29:56,24:L,27:P}),e(U,[2,24]),e(U,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},e(U,[2,11]),e(U,[2,30],{33:60,27:M}),e(U,[2,32]),{31:[1,61]},e(U,[2,12]),{17:62,24:F},{25:63,27:B},e(U,[2,14]),{17:65,24:F},e(U,[2,16]),e(U,[2,17]),e(G,[2,41]),e(U,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(U,[2,31]),{27:[1,69]},e(U,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(U,[2,15]),e(U,[2,26]),e(U,[2,27]),{11:59,32:72,37:24,38:f,39:p,40:27,41:m,42:b,43:_,44:w,45:S,46:C,47:A,48:k,49:I,50:N},e(U,[2,33]),e(U,[2,19]),{25:73,27:B},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:function(Q,V){if(V.recoverable)this.trace(Q);else{var j=new Error(Q);throw j.hash=V,j}},parse:function(Q){var V=this,j=[0],ee=[],te=[null],ne=[],se=this.table,ie="",ge=0,ce=0,be=2,ve=1,De=ne.slice.call(arguments,1),ye=Object.create(this.lexer),Ee={yy:{}};for(var he in this.yy)Object.prototype.hasOwnProperty.call(this.yy,he)&&(Ee.yy[he]=this.yy[he]);ye.setInput(Q,Ee.yy),Ee.yy.lexer=ye,Ee.yy.parser=this,typeof ye.yylloc>"u"&&(ye.yylloc={});var we=ye.yylloc;ne.push(we);var Ce=ye.options&&ye.options.ranges;typeof Ee.yy.parseError=="function"?this.parseError=Ee.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ie(){var ht;return ht=ee.pop()||ye.lex()||ve,typeof ht!="number"&&(ht instanceof Array&&(ee=ht,ht=ee.pop()),ht=V.symbols_[ht]||ht),ht}for(var Le,Fe,Ve,Oe,Dt={},ot,sn,Kt,Ft;;){if(Fe=j[j.length-1],this.defaultActions[Fe]?Ve=this.defaultActions[Fe]:((Le===null||typeof Le>"u")&&(Le=Ie()),Ve=se[Fe]&&se[Fe][Le]),typeof Ve>"u"||!Ve.length||!Ve[0]){var Je="";Ft=[];for(ot in se[Fe])this.terminals_[ot]&&ot>be&&Ft.push("'"+this.terminals_[ot]+"'");ye.showPosition?Je="Parse error on line "+(ge+1)+`: `+ye.showPosition()+` Expecting `+Ft.join(", ")+", got '"+(this.terminals_[Le]||Le)+"'":Je="Parse error on line "+(ge+1)+": Unexpected "+(Le==ve?"end of input":"'"+(this.terminals_[Le]||Le)+"'"),this.parseError(Je,{text:ye.match,token:this.terminals_[Le]||Le,line:ye.yylineno,loc:we,expected:Ft})}if(Ve[0]instanceof Array&&Ve.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Fe+", token: "+Le);switch(Ve[0]){case 1:j.push(Le),te.push(ye.yytext),ne.push(ye.yylloc),j.push(Ve[1]),Le=null,ce=ye.yyleng,ie=ye.yytext,ge=ye.yylineno,we=ye.yylloc;break;case 2:if(sn=this.productions_[Ve[1]][1],Dt.$=te[te.length-sn],Dt._$={first_line:ne[ne.length-(sn||1)].first_line,last_line:ne[ne.length-1].last_line,first_column:ne[ne.length-(sn||1)].first_column,last_column:ne[ne.length-1].last_column},Ce&&(Dt._$.range=[ne[ne.length-(sn||1)].range[0],ne[ne.length-1].range[1]]),Oe=this.performAction.apply(Dt,[ie,ce,ge,Ee.yy,Ve[1],te,ne].concat(De)),typeof Oe<"u")return Oe;sn&&(j=j.slice(0,-1*sn*2),te=te.slice(0,-1*sn),ne=ne.slice(0,-1*sn)),j.push(this.productions_[Ve[1]][0]),te.push(Dt.$),ne.push(Dt._$),Kt=se[j[j.length-2]][j[j.length-1]],j.push(Kt);break;case 3:return!0}}return!0}},z=function(){var W={EOF:1,parseError:function(V,j){if(this.yy.parser)this.yy.parser.parseError(V,j);else throw new Error(V)},setInput:function(Q,V){return this.yy=V||this.yy||{},this._input=Q,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Q=this._input[0];this.yytext+=Q,this.yyleng++,this.offset++,this.match+=Q,this.matched+=Q;var V=Q.match(/(?:\r\n?|\n).*/g);return V?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Q},unput:function(Q){var V=Q.length,j=Q.split(/(?:\r\n?|\n)/g);this._input=Q+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-V),this.offset-=V;var ee=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),j.length-1&&(this.yylineno-=j.length-1);var te=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:j?(j.length===ee.length?this.yylloc.first_column:0)+ee[ee.length-j.length].length-j[0].length:this.yylloc.first_column-V},this.options.ranges&&(this.yylloc.range=[te[0],te[0]+this.yyleng-V]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Q){this.unput(this.match.slice(Q))},pastInput:function(){var Q=this.matched.substr(0,this.matched.length-this.match.length);return(Q.length>20?"...":"")+Q.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Q=this.match;return Q.length<20&&(Q+=this._input.substr(0,20-Q.length)),(Q.substr(0,20)+(Q.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Q=this.pastInput(),V=new Array(Q.length+1).join("-");return Q+this.upcomingInput()+` `+V+"^"},test_match:function(Q,V){var j,ee,te;if(this.options.backtrack_lexer&&(te={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(te.yylloc.range=this.yylloc.range.slice(0))),ee=Q[0].match(/(?:\r\n?|\n).*/g),ee&&(this.yylineno+=ee.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ee?ee[ee.length-1].length-ee[ee.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Q[0].length},this.yytext+=Q[0],this.match+=Q[0],this.matches=Q,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Q[0].length),this.matched+=Q[0],j=this.performAction.call(this,this.yy,this,V,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),j)return j;if(this._backtrack){for(var ne in te)this[ne]=te[ne];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Q,V,j,ee;this._more||(this.yytext="",this.match="");for(var te=this._currentRules(),ne=0;neV[0].length)){if(V=j,ee=ne,this.options.backtrack_lexer){if(Q=this.test_match(j,te[ne]),Q!==!1)return Q;if(this._backtrack){V=!1;continue}else return!1}else if(!this.options.flex)break}return V?(Q=this.test_match(V,te[ee]),Q!==!1?Q:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var V=this.next();return V||this.lex()},begin:function(V){this.conditionStack.push(V)},popState:function(){var V=this.conditionStack.length-1;return V>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(V){return V=this.conditionStack.length-1-Math.abs(V||0),V>=0?this.conditionStack[V]:"INITIAL"},pushState:function(V){this.begin(V)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(V,j,ee,te){switch(ee){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 8;case 16:return this.pushState("axis_data"),"X_AXIS";case 17:return this.pushState("axis_data"),"Y_AXIS";case 18:return this.pushState("axis_band_data"),24;case 19:return 31;case 20:return this.pushState("data"),16;case 21:return this.pushState("data"),18;case 22:return this.pushState("data_inner"),24;case 23:return 27;case 24:return this.popState(),26;case 25:this.popState();break;case 26:this.pushState("string");break;case 27:this.popState();break;case 28:return"STR";case 29:return 24;case 30:return 26;case 31:return 43;case 32:return"COLON";case 33:return 44;case 34:return 28;case 35:return 45;case 36:return 46;case 37:return 48;case 38:return 50;case 39:return 47;case 40:return 41;case 41:return 49;case 42:return 42;case 43:break;case 44:return 35;case 45:return 36}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,23,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,20,21,22,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,23,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[27,28],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0}}};return W}();Z.lexer=z;function Y(){this.yy={}}return Y.prototype=Z,Z.Parser=Y,new Y}();Fht.parser=Fht;const Pba=Fht;function ICn(e){return e.type==="bar"}function Ntr(e){return e.type==="band"}function Mse(e){return e.type==="linear"}class Otr{constructor(t){this.parentGroup=t}getMaxDimension(t,r){if(!this.parentGroup)return{width:t.reduce((o,u)=>Math.max(u.length,o),0)*r,height:r};const a={width:0,height:0},s=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",r);for(const o of t){const u=p1a(s,1,o),h=u?u.width:o.length*r,f=u?u.height:r;a.width=Math.max(a.width,h),a.height=Math.max(a.height,f)}return s.remove(),a}}const NCn=.7,OCn=.2;class Ltr{constructor(t,r,a,s){this.axisConfig=t,this.title=r,this.textDimensionCalculator=a,this.axisThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){NCn*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(NCn*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let r=t.height;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth&&(r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const a=this.getLabelDimension(),s=OCn*t.width;this.outerPadding=Math.min(a.width/2,s);const o=a.height+this.axisConfig.labelPadding*2;this.labelTextHeight=a.height,o<=r&&(r-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength&&(this.showTick=!0,r-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const a=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),s=a.height+this.axisConfig.titlePadding*2;this.titleTextHeight=a.height,s<=r&&(r-=s,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-r}calculateSpaceIfDrawnVertical(t){let r=t.width;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth&&(r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const a=this.getLabelDimension(),s=OCn*t.height;this.outerPadding=Math.min(a.height/2,s);const o=a.width+this.axisConfig.labelPadding*2;o<=r&&(r-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength&&(this.showTick=!0,r-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const a=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),s=a.height+this.axisConfig.titlePadding*2;this.titleTextHeight=a.height,s<=r&&(r-=s,this.showTitle=!0)}this.boundingRect.width=t.width-r,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const r=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${r},${this.boundingRect.y} L ${r},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(r),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const r=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(a=>({path:`M ${r},${this.getScaleValue(a)} L ${r-this.axisConfig.tickLength},${this.getScaleValue(a)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const r=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const r=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(a=>({path:`M ${this.getScaleValue(a)},${r} L ${this.getScaleValue(a)},${r+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const r=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const r=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(a=>({path:`M ${this.getScaleValue(a)},${r+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(a)},${r+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}}class Bba extends Ltr{constructor(t,r,a,s,o){super(t,s,o,r),this.categories=a,this.scale=goe().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=goe().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),ut.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)||this.getRange()[0]}}class Fba extends Ltr{constructor(t,r,a,s,o){super(t,s,o,r),this.domain=a,this.scale=sT().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=sT().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}}function LCn(e,t,r,a){const s=new Otr(a);return Ntr(e)?new Bba(t,r,e.categories,e.title,s):new Fba(t,r,[e.min,e.max],e.title,s)}class $ba{constructor(t,r,a,s){this.textDimensionCalculator=t,this.chartConfig=r,this.chartData=a,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const r=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),a=Math.max(r.width,t.width),s=r.height+2*this.chartConfig.titlePadding;return r.width<=a&&r.height<=s&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=a,this.boundingRect.height=s,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}}function Uba(e,t,r,a){const s=new Otr(a);return new $ba(s,e,t,r)}class zba{constructor(t,r,a,s,o){this.plotData=t,this.xAxis=r,this.yAxis=a,this.orientation=s,this.plotIndex=o}getDrawableElement(){const t=this.plotData.data.map(a=>[this.xAxis.getScaleValue(a[0]),this.yAxis.getScaleValue(a[1])]);let r;return this.orientation==="horizontal"?r=r_().y(a=>a[0]).x(a=>a[1])(t):r=r_().x(a=>a[0]).y(a=>a[1])(t),r?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:r,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}}class Gba{constructor(t,r,a,s,o,u){this.barData=t,this.boundingRect=r,this.xAxis=a,this.yAxis=s,this.orientation=o,this.plotIndex=u}getDrawableElement(){const t=this.barData.data.map(o=>[this.xAxis.getScaleValue(o[0]),this.yAxis.getScaleValue(o[1])]),a=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),s=a/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:this.boundingRect.x,y:o[0]-s,height:a,width:o[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:o[0]-s,y:o[1],width:a,height:this.boundingRect.y+this.boundingRect.height-o[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}}class qba{constructor(t,r,a){this.chartConfig=t,this.chartData=r,this.chartThemeConfig=a,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,r){this.xAxis=t,this.yAxis=r}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const t=[];for(const[r,a]of this.chartData.plots.entries())switch(a.type){case"line":{const s=new zba(a,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);t.push(...s.getDrawableElement())}break;case"bar":{const s=new Gba(a,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);t.push(...s.getDrawableElement())}break}return t}}function Hba(e,t,r){return new qba(e,t,r)}class Vba{constructor(t,r,a,s){this.chartConfig=t,this.chartData=r,this.componentStore={title:Uba(t,r,a,s),plot:Hba(t,r,a),xAxis:LCn(r.xAxis,t.xAxis,{titleColor:a.xAxisTitleColor,labelColor:a.xAxisLabelColor,tickColor:a.xAxisTickColor,axisLineColor:a.xAxisLineColor},s),yAxis:LCn(r.yAxis,t.yAxis,{titleColor:a.yAxisTitleColor,labelColor:a.yAxisLabelColor,tickColor:a.yAxisTickColor,axisLineColor:a.yAxisLineColor},s)}}calculateVerticalSpace(){let t=this.chartConfig.width,r=this.chartConfig.height,a=0,s=0,o=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),u=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),h=this.componentStore.plot.calculateSpace({width:o,height:u});t-=h.width,r-=h.height,h=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),s=h.height,r-=h.height,this.componentStore.xAxis.setAxisPosition("bottom"),h=this.componentStore.xAxis.calculateSpace({width:t,height:r}),r-=h.height,this.componentStore.yAxis.setAxisPosition("left"),h=this.componentStore.yAxis.calculateSpace({width:t,height:r}),a=h.width,t-=h.width,t>0&&(o+=t,t=0),r>0&&(u+=r,r=0),this.componentStore.plot.calculateSpace({width:o,height:u}),this.componentStore.plot.setBoundingBoxXY({x:a,y:s}),this.componentStore.xAxis.setRange([a,a+o]),this.componentStore.xAxis.setBoundingBoxXY({x:a,y:s+u}),this.componentStore.yAxis.setRange([s,s+u]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:s}),this.chartData.plots.some(f=>ICn(f))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,r=this.chartConfig.height,a=0,s=0,o=0,u=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),h=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),f=this.componentStore.plot.calculateSpace({width:u,height:h});t-=f.width,r-=f.height,f=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),a=f.height,r-=f.height,this.componentStore.xAxis.setAxisPosition("left"),f=this.componentStore.xAxis.calculateSpace({width:t,height:r}),t-=f.width,s=f.width,this.componentStore.yAxis.setAxisPosition("top"),f=this.componentStore.yAxis.calculateSpace({width:t,height:r}),r-=f.height,o=a+f.height,t>0&&(u+=t,t=0),r>0&&(h+=r,r=0),this.componentStore.plot.calculateSpace({width:u,height:h}),this.componentStore.plot.setBoundingBoxXY({x:s,y:o}),this.componentStore.yAxis.setRange([s,s+u]),this.componentStore.yAxis.setBoundingBoxXY({x:s,y:a}),this.componentStore.xAxis.setRange([o,o+h]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:o}),this.chartData.plots.some(p=>ICn(p))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const r of Object.values(this.componentStore))t.push(...r.getDrawableElements());return t}}class Yba{static build(t,r,a,s){return new Vba(t,r,a,s).getDrawableElement()}}let xle=0,Dtr,Sle=Ptr(),Tle=Mtr(),eh=Btr(),$ht=Tle.plotColorPalette.split(",").map(e=>e.trim()),E6e=!1,uyt=!1;function Mtr(){const e=mbt(),t=Lf();return Qce(e.xyChart,t.themeVariables.xyChart)}function Ptr(){const e=Lf();return Qce(fd.xyChart,e.xyChart)}function Btr(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function hyt(e){const t=Lf();return J0(e.trim(),t)}function jba(e){Dtr=e}function Wba(e){e==="horizontal"?Sle.chartOrientation="horizontal":Sle.chartOrientation="vertical"}function Kba(e){eh.xAxis.title=hyt(e.text)}function Ftr(e,t){eh.xAxis={type:"linear",title:eh.xAxis.title,min:e,max:t},E6e=!0}function Xba(e){eh.xAxis={type:"band",title:eh.xAxis.title,categories:e.map(t=>hyt(t.text))},E6e=!0}function Qba(e){eh.yAxis.title=hyt(e.text)}function Zba(e,t){eh.yAxis={type:"linear",title:eh.yAxis.title,min:e,max:t},uyt=!0}function Jba(e){const t=Math.min(...e),r=Math.max(...e),a=Mse(eh.yAxis)?eh.yAxis.min:1/0,s=Mse(eh.yAxis)?eh.yAxis.max:-1/0;eh.yAxis={type:"linear",title:eh.yAxis.title,min:Math.min(a,t),max:Math.max(s,r)}}function $tr(e){let t=[];if(e.length===0)return t;if(!E6e){const r=Mse(eh.xAxis)?eh.xAxis.min:1/0,a=Mse(eh.xAxis)?eh.xAxis.max:-1/0;Ftr(Math.min(r,1),Math.max(a,e.length))}if(uyt||Jba(e),Ntr(eh.xAxis)&&(t=eh.xAxis.categories.map((r,a)=>[r,e[a]])),Mse(eh.xAxis)){const r=eh.xAxis.min,a=eh.xAxis.max,s=(a-r+1)/e.length,o=[];for(let u=r;u<=a;u+=s)o.push(`${u}`);t=o.map((u,h)=>[u,e[h]])}return t}function Utr(e){return $ht[e===0?0:e%$ht.length]}function eya(e,t){const r=$tr(t);eh.plots.push({type:"line",strokeFill:Utr(xle),strokeWidth:2,data:r}),xle++}function tya(e,t){const r=$tr(t);eh.plots.push({type:"bar",fill:Utr(xle),data:r}),xle++}function nya(){if(eh.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return eh.title=Tv(),Yba.build(Sle,eh,Tle,Dtr)}function rya(){return Tle}function iya(){return Sle}const aya=function(){Mb(),xle=0,Sle=Ptr(),eh=Btr(),Tle=Mtr(),$ht=Tle.plotColorPalette.split(",").map(e=>e.trim()),E6e=!1,uyt=!1},sya={getDrawableElem:nya,clear:aya,setAccTitle:Pb,getAccTitle:Ev,setDiagramTitle:Zw,getDiagramTitle:Tv,getAccDescription:Sv,setAccDescription:xv,setOrientation:Wba,setXAxisTitle:Kba,setXAxisRangeData:Ftr,setXAxisBand:Xba,setYAxisTitle:Qba,setYAxisRangeData:Zba,setLineData:eya,setBarData:tya,setTmpSVGG:jba,getChartThemeConfig:rya,getChartConfig:iya},oya=(e,t,r,a)=>{const s=a.db,o=s.getChartThemeConfig(),u=s.getChartConfig();function h(A){return A==="top"?"text-before-edge":"middle"}function f(A){return A==="left"?"start":A==="right"?"end":"middle"}function p(A){return`translate(${A.x}, ${A.y}) rotate(${A.rotation||0})`}ut.debug(`Rendering xychart chart `+e);const m=Zce(t),b=m.append("g").attr("class","main"),_=b.append("rect").attr("width",u.width).attr("height",u.height).attr("class","background");Db(m,u.height,u.width,!0),m.attr("viewBox",`0 0 ${u.width} ${u.height}`),_.attr("fill",o.backgroundColor),s.setTmpSVGG(m.append("g").attr("class","mermaid-tmp-group"));const w=s.getDrawableElem(),S={};function C(A){let k=b,I="";for(const[N]of A.entries()){let L=b;N>0&&S[I]&&(L=S[I]),I+=A[N],k=S[I],k||(k=S[I]=L.append("g").attr("class",A[N]))}return k}for(const A of w){if(A.data.length===0)continue;const k=C(A.groupTexts);switch(A.type){case"rect":k.selectAll("rect").data(A.data).enter().append("rect").attr("x",I=>I.x).attr("y",I=>I.y).attr("width",I=>I.width).attr("height",I=>I.height).attr("fill",I=>I.fill).attr("stroke",I=>I.strokeFill).attr("stroke-width",I=>I.strokeWidth);break;case"text":k.selectAll("text").data(A.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",I=>I.fill).attr("font-size",I=>I.fontSize).attr("dominant-baseline",I=>h(I.verticalPos)).attr("text-anchor",I=>f(I.horizontalPos)).attr("transform",I=>p(I)).text(I=>I.text);break;case"path":k.selectAll("path").data(A.data).enter().append("path").attr("d",I=>I.path).attr("fill",I=>I.fill?I.fill:"none").attr("stroke",I=>I.strokeFill).attr("stroke-width",I=>I.strokeWidth);break}}},lya={draw:oya},cya={parser:Pba,db:sya,renderer:lya},uya=Object.freeze(Object.defineProperty({__proto__:null,diagram:cya},Symbol.toStringTag,{value:"Module"}));var Uht=function(){var e=function(ce,be,ve,De){for(ve=ve||{},De=ce.length;De--;ve[ce[De]]=be);return ve},t=[1,3],r=[1,4],a=[1,5],s=[1,6],o=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],u=[1,18],h=[2,7],f=[1,22],p=[1,23],m=[1,24],b=[1,25],_=[1,26],w=[1,27],S=[1,20],C=[1,28],A=[1,29],k=[62,63],I=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],N=[1,47],L=[1,48],P=[1,49],M=[1,50],F=[1,51],U=[1,52],$=[1,53],G=[53,54],B=[1,64],Z=[1,60],z=[1,61],Y=[1,62],W=[1,63],Q=[1,65],V=[1,69],j=[1,70],ee=[1,67],te=[1,68],ne=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],se={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(be,ve,De,ye,Ee,he,we){var Ce=he.length-1;switch(Ee){case 4:this.$=he[Ce].trim(),ye.setAccTitle(this.$);break;case 5:case 6:this.$=he[Ce].trim(),ye.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:ye.addRequirement(he[Ce-3],he[Ce-4]);break;case 14:ye.setNewReqId(he[Ce-2]);break;case 15:ye.setNewReqText(he[Ce-2]);break;case 16:ye.setNewReqRisk(he[Ce-2]);break;case 17:ye.setNewReqVerifyMethod(he[Ce-2]);break;case 20:this.$=ye.RequirementType.REQUIREMENT;break;case 21:this.$=ye.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=ye.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=ye.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=ye.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=ye.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=ye.RiskLevel.LOW_RISK;break;case 27:this.$=ye.RiskLevel.MED_RISK;break;case 28:this.$=ye.RiskLevel.HIGH_RISK;break;case 29:this.$=ye.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=ye.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=ye.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=ye.VerifyType.VERIFY_TEST;break;case 33:ye.addElement(he[Ce-3]);break;case 34:ye.setNewElementType(he[Ce-2]);break;case 35:ye.setNewElementDocRef(he[Ce-2]);break;case 38:ye.addRelationship(he[Ce-2],he[Ce],he[Ce-4]);break;case 39:ye.addRelationship(he[Ce-2],he[Ce-4],he[Ce]);break;case 40:this.$=ye.Relationships.CONTAINS;break;case 41:this.$=ye.Relationships.COPIES;break;case 42:this.$=ye.Relationships.DERIVES;break;case 43:this.$=ye.Relationships.SATISFIES;break;case 44:this.$=ye.Relationships.VERIFIES;break;case 45:this.$=ye.Relationships.REFINES;break;case 46:this.$=ye.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:r,11:a,13:s},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:r,11:a,13:s},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(o,[2,6]),{3:12,4:2,6:t,9:r,11:a,13:s},{1:[2,2]},{4:17,5:u,7:13,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:19,23:21,31:f,32:p,33:m,34:b,35:_,36:w,44:S,62:C,63:A},e(o,[2,4]),e(o,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:u,7:31,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:19,23:21,31:f,32:p,33:m,34:b,35:_,36:w,44:S,62:C,63:A},{4:17,5:u,7:32,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:19,23:21,31:f,32:p,33:m,34:b,35:_,36:w,44:S,62:C,63:A},{4:17,5:u,7:33,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:19,23:21,31:f,32:p,33:m,34:b,35:_,36:w,44:S,62:C,63:A},{4:17,5:u,7:34,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:19,23:21,31:f,32:p,33:m,34:b,35:_,36:w,44:S,62:C,63:A},{4:17,5:u,7:35,8:h,9:r,11:a,13:s,14:14,15:15,16:16,17:19,23:21,31:f,32:p,33:m,34:b,35:_,36:w,44:S,62:C,63:A},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(k,[2,20]),e(k,[2,21]),e(k,[2,22]),e(k,[2,23]),e(k,[2,24]),e(k,[2,25]),e(I,[2,49]),e(I,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:N,56:L,57:P,58:M,59:F,60:U,61:$},{52:54,55:N,56:L,57:P,58:M,59:F,60:U,61:$},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(G,[2,40]),e(G,[2,41]),e(G,[2,42]),e(G,[2,43]),e(G,[2,44]),e(G,[2,45]),e(G,[2,46]),{54:[1,58]},{5:B,20:59,21:Z,24:z,26:Y,28:W,30:Q},{5:V,30:j,46:66,47:ee,49:te},{23:71,62:C,63:A},{23:72,62:C,63:A},e(ne,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:B,20:77,21:Z,24:z,26:Y,28:W,30:Q},e(ne,[2,19]),e(ne,[2,33]),{22:[1,78]},{22:[1,79]},{5:V,30:j,46:80,47:ee,49:te},e(ne,[2,37]),e(ne,[2,38]),e(ne,[2,39]),{23:81,62:C,63:A},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(ne,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(ne,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:B,20:106,21:Z,24:z,26:Y,28:W,30:Q},{5:B,20:107,21:Z,24:z,26:Y,28:W,30:Q},{5:B,20:108,21:Z,24:z,26:Y,28:W,30:Q},{5:B,20:109,21:Z,24:z,26:Y,28:W,30:Q},{5:V,30:j,46:110,47:ee,49:te},{5:V,30:j,46:111,47:ee,49:te},e(ne,[2,14]),e(ne,[2,15]),e(ne,[2,16]),e(ne,[2,17]),e(ne,[2,34]),e(ne,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(be,ve){if(ve.recoverable)this.trace(be);else{var De=new Error(be);throw De.hash=ve,De}},parse:function(be){var ve=this,De=[0],ye=[],Ee=[null],he=[],we=this.table,Ce="",Ie=0,Le=0,Fe=2,Ve=1,Oe=he.slice.call(arguments,1),Dt=Object.create(this.lexer),ot={yy:{}};for(var sn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,sn)&&(ot.yy[sn]=this.yy[sn]);Dt.setInput(be,ot.yy),ot.yy.lexer=Dt,ot.yy.parser=this,typeof Dt.yylloc>"u"&&(Dt.yylloc={});var Kt=Dt.yylloc;he.push(Kt);var Ft=Dt.options&&Dt.options.ranges;typeof ot.yy.parseError=="function"?this.parseError=ot.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Je(){var Ke;return Ke=ye.pop()||Dt.lex()||Ve,typeof Ke!="number"&&(Ke instanceof Array&&(ye=Ke,Ke=ye.pop()),Ke=ve.symbols_[Ke]||Ke),Ke}for(var ht,et,qe,He,Ge={},Ye,Ae,Xe,fe;;){if(et=De[De.length-1],this.defaultActions[et]?qe=this.defaultActions[et]:((ht===null||typeof ht>"u")&&(ht=Je()),qe=we[et]&&we[et][ht]),typeof qe>"u"||!qe.length||!qe[0]){var Qe="";fe=[];for(Ye in we[et])this.terminals_[Ye]&&Ye>Fe&&fe.push("'"+this.terminals_[Ye]+"'");Dt.showPosition?Qe="Parse error on line "+(Ie+1)+`: `+Dt.showPosition()+` Expecting `+fe.join(", ")+", got '"+(this.terminals_[ht]||ht)+"'":Qe="Parse error on line "+(Ie+1)+": Unexpected "+(ht==Ve?"end of input":"'"+(this.terminals_[ht]||ht)+"'"),this.parseError(Qe,{text:Dt.match,token:this.terminals_[ht]||ht,line:Dt.yylineno,loc:Kt,expected:fe})}if(qe[0]instanceof Array&&qe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+et+", token: "+ht);switch(qe[0]){case 1:De.push(ht),Ee.push(Dt.yytext),he.push(Dt.yylloc),De.push(qe[1]),ht=null,Le=Dt.yyleng,Ce=Dt.yytext,Ie=Dt.yylineno,Kt=Dt.yylloc;break;case 2:if(Ae=this.productions_[qe[1]][1],Ge.$=Ee[Ee.length-Ae],Ge._$={first_line:he[he.length-(Ae||1)].first_line,last_line:he[he.length-1].last_line,first_column:he[he.length-(Ae||1)].first_column,last_column:he[he.length-1].last_column},Ft&&(Ge._$.range=[he[he.length-(Ae||1)].range[0],he[he.length-1].range[1]]),He=this.performAction.apply(Ge,[Ce,Le,Ie,ot.yy,qe[1],Ee,he].concat(Oe)),typeof He<"u")return He;Ae&&(De=De.slice(0,-1*Ae*2),Ee=Ee.slice(0,-1*Ae),he=he.slice(0,-1*Ae)),De.push(this.productions_[qe[1]][0]),Ee.push(Ge.$),he.push(Ge._$),Xe=we[De[De.length-2]][De[De.length-1]],De.push(Xe);break;case 3:return!0}}return!0}},ie=function(){var ce={EOF:1,parseError:function(ve,De){if(this.yy.parser)this.yy.parser.parseError(ve,De);else throw new Error(ve)},setInput:function(be,ve){return this.yy=ve||this.yy||{},this._input=be,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var be=this._input[0];this.yytext+=be,this.yyleng++,this.offset++,this.match+=be,this.matched+=be;var ve=be.match(/(?:\r\n?|\n).*/g);return ve?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),be},unput:function(be){var ve=be.length,De=be.split(/(?:\r\n?|\n)/g);this._input=be+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ve),this.offset-=ve;var ye=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),De.length-1&&(this.yylineno-=De.length-1);var Ee=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:De?(De.length===ye.length?this.yylloc.first_column:0)+ye[ye.length-De.length].length-De[0].length:this.yylloc.first_column-ve},this.options.ranges&&(this.yylloc.range=[Ee[0],Ee[0]+this.yyleng-ve]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(be){this.unput(this.match.slice(be))},pastInput:function(){var be=this.matched.substr(0,this.matched.length-this.match.length);return(be.length>20?"...":"")+be.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var be=this.match;return be.length<20&&(be+=this._input.substr(0,20-be.length)),(be.substr(0,20)+(be.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var be=this.pastInput(),ve=new Array(be.length+1).join("-");return be+this.upcomingInput()+` `+ve+"^"},test_match:function(be,ve){var De,ye,Ee;if(this.options.backtrack_lexer&&(Ee={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Ee.yylloc.range=this.yylloc.range.slice(0))),ye=be[0].match(/(?:\r\n?|\n).*/g),ye&&(this.yylineno+=ye.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ye?ye[ye.length-1].length-ye[ye.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+be[0].length},this.yytext+=be[0],this.match+=be[0],this.matches=be,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(be[0].length),this.matched+=be[0],De=this.performAction.call(this,this.yy,this,ve,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),De)return De;if(this._backtrack){for(var he in Ee)this[he]=Ee[he];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var be,ve,De,ye;this._more||(this.yytext="",this.match="");for(var Ee=this._currentRules(),he=0;heve[0].length)){if(ve=De,ye=he,this.options.backtrack_lexer){if(be=this.test_match(De,Ee[he]),be!==!1)return be;if(this._backtrack){ve=!1;continue}else return!1}else if(!this.options.flex)break}return ve?(be=this.test_match(ve,Ee[ye]),be!==!1?be:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ve=this.next();return ve||this.lex()},begin:function(ve){this.conditionStack.push(ve)},popState:function(){var ve=this.conditionStack.length-1;return ve>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ve){return ve=this.conditionStack.length-1-Math.abs(ve||0),ve>=0?this.conditionStack[ve]:"INITIAL"},pushState:function(ve){this.begin(ve)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ve,De,ye,Ee){switch(ye){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 48:this.popState();break;case 49:return"qString";case 50:return De.yytext=De.yytext.trim(),62}},rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[48,49],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,50],inclusive:!0}}};return ce}();se.lexer=ie;function ge(){this.yy={}}return ge.prototype=se,se.Parser=ge,new ge}();Uht.parser=Uht;const hya=Uht;let dyt=[],H2={},Pse={},BO={},Bse={};const dya={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},fya={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},pya={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},gya={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},mya=(e,t)=>(Pse[e]===void 0&&(Pse[e]={name:e,type:t,id:H2.id,text:H2.text,risk:H2.risk,verifyMethod:H2.verifyMethod}),H2={},Pse[e]),bya=()=>Pse,yya=e=>{H2!==void 0&&(H2.id=e)},vya=e=>{H2!==void 0&&(H2.text=e)},_ya=e=>{H2!==void 0&&(H2.risk=e)},wya=e=>{H2!==void 0&&(H2.verifyMethod=e)},Eya=e=>(Bse[e]===void 0&&(Bse[e]={name:e,type:BO.type,docRef:BO.docRef},ut.info("Added new requirement: ",e)),BO={},Bse[e]),xya=()=>Bse,Sya=e=>{BO!==void 0&&(BO.type=e)},Tya=e=>{BO!==void 0&&(BO.docRef=e)},Cya=(e,t,r)=>{dyt.push({type:e,src:t,dst:r})},Aya=()=>dyt,kya=()=>{dyt=[],H2={},Pse={},BO={},Bse={},Mb()},Rya={RequirementType:dya,RiskLevel:fya,VerifyType:pya,Relationships:gya,getConfig:()=>Qt().req,addRequirement:mya,getRequirements:bya,setNewReqId:yya,setNewReqText:vya,setNewReqRisk:_ya,setNewReqVerifyMethod:wya,setAccTitle:Pb,getAccTitle:Ev,setAccDescription:xv,getAccDescription:Sv,addElement:Eya,getElements:xya,setNewElementType:Sya,setNewElementDocRef:Tya,addRelationship:Cya,getRelationships:Aya,clear:kya},Iya=e=>` marker { fill: ${e.relationColor}; stroke: ${e.relationColor}; } marker.cross { stroke: ${e.lineColor}; } svg { font-family: ${e.fontFamily}; font-size: ${e.fontSize}; } .reqBox { fill: ${e.requirementBackground}; fill-opacity: 1.0; stroke: ${e.requirementBorderColor}; stroke-width: ${e.requirementBorderSize}; } .reqTitle, .reqLabel{ fill: ${e.requirementTextColor}; } .reqLabelBox { fill: ${e.relationLabelBackground}; fill-opacity: 1.0; } .req-title-line { stroke: ${e.requirementBorderColor}; stroke-width: ${e.requirementBorderSize}; } .relationshipLine { stroke: ${e.relationColor}; stroke-width: 1; } .relationshipLabel { fill: ${e.relationLabelColor}; } `,Nya=Iya,zht={CONTAINS:"contains",ARROW:"arrow"},Oya=(e,t)=>{let r=e.append("defs").append("marker").attr("id",zht.CONTAINS+"_line_ending").attr("refX",0).attr("refY",t.line_height/2).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("g");r.append("circle").attr("cx",t.line_height/2).attr("cy",t.line_height/2).attr("r",t.line_height/2).attr("fill","none"),r.append("line").attr("x1",0).attr("x2",t.line_height).attr("y1",t.line_height/2).attr("y2",t.line_height/2).attr("stroke-width",1),r.append("line").attr("y1",0).attr("y2",t.line_height).attr("x1",t.line_height/2).attr("x2",t.line_height/2).attr("stroke-width",1),e.append("defs").append("marker").attr("id",zht.ARROW+"_line_ending").attr("refX",t.line_height).attr("refY",.5*t.line_height).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("path").attr("d",`M0,0 L${t.line_height},${t.line_height/2} M${t.line_height},${t.line_height/2} L0,${t.line_height}`).attr("stroke-width",1)},ztr={ReqMarkers:zht,insertLineEndings:Oya};let o0={},DCn=0;const Gtr=(e,t)=>e.insert("rect","#"+t).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",o0.rect_min_width+"px").attr("height",o0.rect_min_height+"px"),qtr=(e,t,r)=>{let a=o0.rect_min_width/2,s=e.append("text").attr("class","req reqLabel reqTitle").attr("id",t).attr("x",a).attr("y",o0.rect_padding).attr("dominant-baseline","hanging"),o=0;r.forEach(p=>{o==0?s.append("tspan").attr("text-anchor","middle").attr("x",o0.rect_min_width/2).attr("dy",0).text(p):s.append("tspan").attr("text-anchor","middle").attr("x",o0.rect_min_width/2).attr("dy",o0.line_height*.75).text(p),o++});let u=1.5*o0.rect_padding,h=o*o0.line_height*.75,f=u+h;return e.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",o0.rect_min_width).attr("y1",f).attr("y2",f),{titleNode:s,y:f}},Htr=(e,t,r,a)=>{let s=e.append("text").attr("class","req reqLabel").attr("id",t).attr("x",o0.rect_padding).attr("y",a).attr("dominant-baseline","hanging"),o=0;const u=30;let h=[];return r.forEach(f=>{let p=f.length;for(;p>u&&o<3;){let m=f.substring(0,u);f=f.substring(u,f.length),p=f.length,h[h.length]=m,o++}if(o==3){let m=h[h.length-1];h[h.length-1]=m.substring(0,m.length-4)+"..."}else h[h.length]=f;o=0}),h.forEach(f=>{s.append("tspan").attr("x",o0.rect_padding).attr("dy",o0.line_height).text(f)}),s},Lya=(e,t,r,a)=>{const s=t.node().getTotalLength(),o=t.node().getPointAtLength(s*.5),u="rel"+DCn;DCn++;const f=e.append("text").attr("class","req relationshipLabel").attr("id",u).attr("x",o.x).attr("y",o.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(a).node().getBBox();e.insert("rect","#"+u).attr("class","req reqLabelBox").attr("x",o.x-f.width/2).attr("y",o.y-f.height/2).attr("width",f.width).attr("height",f.height).attr("fill","white").attr("fill-opacity","85%")},Dya=function(e,t,r,a,s){const o=r.edge(uW(t.src),uW(t.dst)),u=r_().x(function(f){return f.x}).y(function(f){return f.y}),h=e.insert("path","#"+a).attr("class","er relationshipLine").attr("d",u(o.points)).attr("fill","none");t.type==s.db.Relationships.CONTAINS?h.attr("marker-start","url("+mi.getUrl(o0.arrowMarkerAbsolute)+"#"+t.type+"_line_ending)"):(h.attr("stroke-dasharray","10,7"),h.attr("marker-end","url("+mi.getUrl(o0.arrowMarkerAbsolute)+"#"+ztr.ReqMarkers.ARROW+"_line_ending)")),Lya(e,h,o0,`<<${t.type}>>`)},Mya=(e,t,r)=>{Object.keys(e).forEach(a=>{let s=e[a];a=uW(a),ut.info("Added new requirement: ",a);const o=r.append("g").attr("id",a),u="req-"+a,h=Gtr(o,u);let f=qtr(o,a+"_title",[`<<${s.type}>>`,`${s.name}`]);Htr(o,a+"_body",[`Id: ${s.id}`,`Text: ${s.text}`,`Risk: ${s.risk}`,`Verification: ${s.verifyMethod}`],f.y);const p=h.node().getBBox();t.setNode(a,{width:p.width,height:p.height,shape:"rect",id:a})})},Pya=(e,t,r)=>{Object.keys(e).forEach(a=>{let s=e[a];const o=uW(a),u=r.append("g").attr("id",o),h="element-"+o,f=Gtr(u,h);let p=qtr(u,h+"_title",["<>",`${a}`]);Htr(u,h+"_body",[`Type: ${s.type||"Not Specified"}`,`Doc Ref: ${s.docRef||"None"}`],p.y);const m=f.node().getBBox();t.setNode(o,{width:m.width,height:m.height,shape:"rect",id:o})})},Bya=(e,t)=>(e.forEach(function(r){let a=uW(r.src),s=uW(r.dst);t.setEdge(a,s,{relationship:r})}),e),Fya=function(e,t){t.nodes().forEach(function(r){r!==void 0&&t.node(r)!==void 0&&(e.select("#"+r),e.select("#"+r).attr("transform","translate("+(t.node(r).x-t.node(r).width/2)+","+(t.node(r).y-t.node(r).height/2)+" )"))})},uW=e=>e.replace(/\s/g,"").replace(/\./g,"_"),$ya=(e,t,r,a)=>{o0=Qt().requirement;const s=o0.securityLevel;let o;s==="sandbox"&&(o=gn("#i"+t));const h=gn(s==="sandbox"?o.nodes()[0].contentDocument.body:"body").select(`[id='${t}']`);ztr.insertLineEndings(h,o0);const f=new F1({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:o0.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let p=a.db.getRequirements(),m=a.db.getElements(),b=a.db.getRelationships();Mya(p,f,h),Pya(m,f,h),Bya(b,f),oK(f),Fya(h,f),b.forEach(function(A){Dya(h,A,f,t,a)});const _=o0.rect_padding,w=h.node().getBBox(),S=w.width+_*2,C=w.height+_*2;Db(h,C,S,o0.useMaxWidth),h.attr("viewBox",`${w.x-_} ${w.y-_} ${S} ${C}`)},Uya={draw:$ya},zya={parser:hya,db:Rya,renderer:Uya,styles:Nya},Gya=Object.freeze(Object.defineProperty({__proto__:null,diagram:zya},Symbol.toStringTag,{value:"Module"}));var Ght=function(){var e=function(ye,Ee,he,we){for(he=he||{},we=ye.length;we--;he[ye[we]]=Ee);return he},t=[1,2],r=[1,3],a=[1,4],s=[2,4],o=[1,9],u=[1,11],h=[1,13],f=[1,14],p=[1,16],m=[1,17],b=[1,18],_=[1,24],w=[1,25],S=[1,26],C=[1,27],A=[1,28],k=[1,29],I=[1,30],N=[1,31],L=[1,32],P=[1,33],M=[1,34],F=[1,35],U=[1,36],$=[1,37],G=[1,38],B=[1,39],Z=[1,41],z=[1,42],Y=[1,43],W=[1,44],Q=[1,45],V=[1,46],j=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],ee=[4,5,16,50,52,53],te=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],ne=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],se=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],ie=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ge=[68,69,70],ce=[1,120],be={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(Ee,he,we,Ce,Ie,Le,Fe){var Ve=Le.length-1;switch(Ie){case 3:return Ce.apply(Le[Ve]),Le[Ve];case 4:case 9:this.$=[];break;case 5:case 10:Le[Ve-1].push(Le[Ve]),this.$=Le[Ve-1];break;case 6:case 7:case 11:case 12:this.$=Le[Ve];break;case 8:case 13:this.$=[];break;case 15:Le[Ve].type="createParticipant",this.$=Le[Ve];break;case 16:Le[Ve-1].unshift({type:"boxStart",boxData:Ce.parseBoxData(Le[Ve-2])}),Le[Ve-1].push({type:"boxEnd",boxText:Le[Ve-2]}),this.$=Le[Ve-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(Le[Ve-2]),sequenceIndexStep:Number(Le[Ve-1]),sequenceVisible:!0,signalType:Ce.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(Le[Ve-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:Ce.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:Ce.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:Ce.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:Ce.LINETYPE.ACTIVE_START,actor:Le[Ve-1]};break;case 23:this.$={type:"activeEnd",signalType:Ce.LINETYPE.ACTIVE_END,actor:Le[Ve-1]};break;case 29:Ce.setDiagramTitle(Le[Ve].substring(6)),this.$=Le[Ve].substring(6);break;case 30:Ce.setDiagramTitle(Le[Ve].substring(7)),this.$=Le[Ve].substring(7);break;case 31:this.$=Le[Ve].trim(),Ce.setAccTitle(this.$);break;case 32:case 33:this.$=Le[Ve].trim(),Ce.setAccDescription(this.$);break;case 34:Le[Ve-1].unshift({type:"loopStart",loopText:Ce.parseMessage(Le[Ve-2]),signalType:Ce.LINETYPE.LOOP_START}),Le[Ve-1].push({type:"loopEnd",loopText:Le[Ve-2],signalType:Ce.LINETYPE.LOOP_END}),this.$=Le[Ve-1];break;case 35:Le[Ve-1].unshift({type:"rectStart",color:Ce.parseMessage(Le[Ve-2]),signalType:Ce.LINETYPE.RECT_START}),Le[Ve-1].push({type:"rectEnd",color:Ce.parseMessage(Le[Ve-2]),signalType:Ce.LINETYPE.RECT_END}),this.$=Le[Ve-1];break;case 36:Le[Ve-1].unshift({type:"optStart",optText:Ce.parseMessage(Le[Ve-2]),signalType:Ce.LINETYPE.OPT_START}),Le[Ve-1].push({type:"optEnd",optText:Ce.parseMessage(Le[Ve-2]),signalType:Ce.LINETYPE.OPT_END}),this.$=Le[Ve-1];break;case 37:Le[Ve-1].unshift({type:"altStart",altText:Ce.parseMessage(Le[Ve-2]),signalType:Ce.LINETYPE.ALT_START}),Le[Ve-1].push({type:"altEnd",signalType:Ce.LINETYPE.ALT_END}),this.$=Le[Ve-1];break;case 38:Le[Ve-1].unshift({type:"parStart",parText:Ce.parseMessage(Le[Ve-2]),signalType:Ce.LINETYPE.PAR_START}),Le[Ve-1].push({type:"parEnd",signalType:Ce.LINETYPE.PAR_END}),this.$=Le[Ve-1];break;case 39:Le[Ve-1].unshift({type:"parStart",parText:Ce.parseMessage(Le[Ve-2]),signalType:Ce.LINETYPE.PAR_OVER_START}),Le[Ve-1].push({type:"parEnd",signalType:Ce.LINETYPE.PAR_END}),this.$=Le[Ve-1];break;case 40:Le[Ve-1].unshift({type:"criticalStart",criticalText:Ce.parseMessage(Le[Ve-2]),signalType:Ce.LINETYPE.CRITICAL_START}),Le[Ve-1].push({type:"criticalEnd",signalType:Ce.LINETYPE.CRITICAL_END}),this.$=Le[Ve-1];break;case 41:Le[Ve-1].unshift({type:"breakStart",breakText:Ce.parseMessage(Le[Ve-2]),signalType:Ce.LINETYPE.BREAK_START}),Le[Ve-1].push({type:"breakEnd",optText:Ce.parseMessage(Le[Ve-2]),signalType:Ce.LINETYPE.BREAK_END}),this.$=Le[Ve-1];break;case 43:this.$=Le[Ve-3].concat([{type:"option",optionText:Ce.parseMessage(Le[Ve-1]),signalType:Ce.LINETYPE.CRITICAL_OPTION},Le[Ve]]);break;case 45:this.$=Le[Ve-3].concat([{type:"and",parText:Ce.parseMessage(Le[Ve-1]),signalType:Ce.LINETYPE.PAR_AND},Le[Ve]]);break;case 47:this.$=Le[Ve-3].concat([{type:"else",altText:Ce.parseMessage(Le[Ve-1]),signalType:Ce.LINETYPE.ALT_ELSE},Le[Ve]]);break;case 48:Le[Ve-3].draw="participant",Le[Ve-3].type="addParticipant",Le[Ve-3].description=Ce.parseMessage(Le[Ve-1]),this.$=Le[Ve-3];break;case 49:Le[Ve-1].draw="participant",Le[Ve-1].type="addParticipant",this.$=Le[Ve-1];break;case 50:Le[Ve-3].draw="actor",Le[Ve-3].type="addParticipant",Le[Ve-3].description=Ce.parseMessage(Le[Ve-1]),this.$=Le[Ve-3];break;case 51:Le[Ve-1].draw="actor",Le[Ve-1].type="addParticipant",this.$=Le[Ve-1];break;case 52:Le[Ve-1].type="destroyParticipant",this.$=Le[Ve-1];break;case 53:this.$=[Le[Ve-1],{type:"addNote",placement:Le[Ve-2],actor:Le[Ve-1].actor,text:Le[Ve]}];break;case 54:Le[Ve-2]=[].concat(Le[Ve-1],Le[Ve-1]).slice(0,2),Le[Ve-2][0]=Le[Ve-2][0].actor,Le[Ve-2][1]=Le[Ve-2][1].actor,this.$=[Le[Ve-1],{type:"addNote",placement:Ce.PLACEMENT.OVER,actor:Le[Ve-2].slice(0,2),text:Le[Ve]}];break;case 55:this.$=[Le[Ve-1],{type:"addLinks",actor:Le[Ve-1].actor,text:Le[Ve]}];break;case 56:this.$=[Le[Ve-1],{type:"addALink",actor:Le[Ve-1].actor,text:Le[Ve]}];break;case 57:this.$=[Le[Ve-1],{type:"addProperties",actor:Le[Ve-1].actor,text:Le[Ve]}];break;case 58:this.$=[Le[Ve-1],{type:"addDetails",actor:Le[Ve-1].actor,text:Le[Ve]}];break;case 61:this.$=[Le[Ve-2],Le[Ve]];break;case 62:this.$=Le[Ve];break;case 63:this.$=Ce.PLACEMENT.LEFTOF;break;case 64:this.$=Ce.PLACEMENT.RIGHTOF;break;case 65:this.$=[Le[Ve-4],Le[Ve-1],{type:"addMessage",from:Le[Ve-4].actor,to:Le[Ve-1].actor,signalType:Le[Ve-3],msg:Le[Ve],activate:!0},{type:"activeStart",signalType:Ce.LINETYPE.ACTIVE_START,actor:Le[Ve-1]}];break;case 66:this.$=[Le[Ve-4],Le[Ve-1],{type:"addMessage",from:Le[Ve-4].actor,to:Le[Ve-1].actor,signalType:Le[Ve-3],msg:Le[Ve]},{type:"activeEnd",signalType:Ce.LINETYPE.ACTIVE_END,actor:Le[Ve-4]}];break;case 67:this.$=[Le[Ve-3],Le[Ve-1],{type:"addMessage",from:Le[Ve-3].actor,to:Le[Ve-1].actor,signalType:Le[Ve-2],msg:Le[Ve]}];break;case 68:this.$={type:"addParticipant",actor:Le[Ve]};break;case 69:this.$=Ce.LINETYPE.SOLID_OPEN;break;case 70:this.$=Ce.LINETYPE.DOTTED_OPEN;break;case 71:this.$=Ce.LINETYPE.SOLID;break;case 72:this.$=Ce.LINETYPE.DOTTED;break;case 73:this.$=Ce.LINETYPE.SOLID_CROSS;break;case 74:this.$=Ce.LINETYPE.DOTTED_CROSS;break;case 75:this.$=Ce.LINETYPE.SOLID_POINT;break;case 76:this.$=Ce.LINETYPE.DOTTED_POINT;break;case 77:this.$=Ce.parseMessage(Le[Ve].trim().substring(1));break}},table:[{3:1,4:t,5:r,6:a},{1:[3]},{3:5,4:t,5:r,6:a},{3:6,4:t,5:r,6:a},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:u,8:8,9:10,12:12,13:h,14:f,17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,54:Z,59:z,60:Y,61:W,62:Q,70:V},e(j,[2,5]),{9:47,12:12,13:h,14:f,17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,54:Z,59:z,60:Y,61:W,62:Q,70:V},e(j,[2,7]),e(j,[2,8]),e(j,[2,14]),{12:48,50:$,52:G,53:B},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:V},{22:55,70:V},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(j,[2,29]),e(j,[2,30]),{32:[1,61]},{34:[1,62]},e(j,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:V},{22:72,70:V},{22:73,70:V},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:V},{22:88,70:V},{22:89,70:V},{22:90,70:V},e([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),e(j,[2,6]),e(j,[2,15]),e(ee,[2,9],{10:91}),e(j,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},e(j,[2,21]),{5:[1,95]},{5:[1,96]},e(j,[2,24]),e(j,[2,25]),e(j,[2,26]),e(j,[2,27]),e(j,[2,28]),e(j,[2,31]),e(j,[2,32]),e(te,s,{7:97}),e(te,s,{7:98}),e(te,s,{7:99}),e(ne,s,{40:100,7:101}),e(se,s,{42:102,7:103}),e(se,s,{7:103,42:104}),e(ie,s,{45:105,7:106}),e(te,s,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:V},e(ge,[2,69]),e(ge,[2,70]),e(ge,[2,71]),e(ge,[2,72]),e(ge,[2,73]),e(ge,[2,74]),e(ge,[2,75]),e(ge,[2,76]),{22:116,70:V},{22:118,58:117,70:V},{70:[2,63]},{70:[2,64]},{56:119,79:ce},{56:121,79:ce},{56:122,79:ce},{56:123,79:ce},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:$,52:G,53:B},{5:[1,129]},e(j,[2,19]),e(j,[2,20]),e(j,[2,22]),e(j,[2,23]),{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[1,130],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,54:Z,59:z,60:Y,61:W,62:Q,70:V},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[1,131],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,54:Z,59:z,60:Y,61:W,62:Q,70:V},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[1,132],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,54:Z,59:z,60:Y,61:W,62:Q,70:V},{16:[1,133]},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[2,46],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,49:[1,134],50:$,52:G,53:B,54:Z,59:z,60:Y,61:W,62:Q,70:V},{16:[1,135]},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[2,44],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,48:[1,136],50:$,52:G,53:B,54:Z,59:z,60:Y,61:W,62:Q,70:V},{16:[1,137]},{16:[1,138]},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[2,42],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,47:[1,139],50:$,52:G,53:B,54:Z,59:z,60:Y,61:W,62:Q,70:V},{4:o,5:u,8:8,9:10,12:12,13:h,14:f,16:[1,140],17:15,18:p,21:m,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:_,30:w,31:S,33:C,35:A,36:k,37:I,38:N,39:L,41:P,43:M,44:F,46:U,50:$,52:G,53:B,54:Z,59:z,60:Y,61:W,62:Q,70:V},{15:[1,141]},e(j,[2,49]),{15:[1,142]},e(j,[2,51]),e(j,[2,52]),{22:143,70:V},{22:144,70:V},{56:145,79:ce},{56:146,79:ce},{56:147,79:ce},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},e(j,[2,16]),e(ee,[2,10]),{12:149,50:$,52:G,53:B},e(ee,[2,12]),e(ee,[2,13]),e(j,[2,18]),e(j,[2,34]),e(j,[2,35]),e(j,[2,36]),e(j,[2,37]),{15:[1,150]},e(j,[2,38]),{15:[1,151]},e(j,[2,39]),e(j,[2,40]),{15:[1,152]},e(j,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ce},{56:156,79:ce},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:V},e(ee,[2,11]),e(ne,s,{7:101,40:158}),e(se,s,{7:103,42:159}),e(ie,s,{7:106,45:160}),e(j,[2,48]),e(j,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(Ee,he){if(he.recoverable)this.trace(Ee);else{var we=new Error(Ee);throw we.hash=he,we}},parse:function(Ee){var he=this,we=[0],Ce=[],Ie=[null],Le=[],Fe=this.table,Ve="",Oe=0,Dt=0,ot=2,sn=1,Kt=Le.slice.call(arguments,1),Ft=Object.create(this.lexer),Je={yy:{}};for(var ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ht)&&(Je.yy[ht]=this.yy[ht]);Ft.setInput(Ee,Je.yy),Je.yy.lexer=Ft,Je.yy.parser=this,typeof Ft.yylloc>"u"&&(Ft.yylloc={});var et=Ft.yylloc;Le.push(et);var qe=Ft.options&&Ft.options.ranges;typeof Je.yy.parseError=="function"?this.parseError=Je.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function He(){var Ut;return Ut=Ce.pop()||Ft.lex()||sn,typeof Ut!="number"&&(Ut instanceof Array&&(Ce=Ut,Ut=Ce.pop()),Ut=he.symbols_[Ut]||Ut),Ut}for(var Ge,Ye,Ae,Xe,fe={},Qe,Ke,mt,lt;;){if(Ye=we[we.length-1],this.defaultActions[Ye]?Ae=this.defaultActions[Ye]:((Ge===null||typeof Ge>"u")&&(Ge=He()),Ae=Fe[Ye]&&Fe[Ye][Ge]),typeof Ae>"u"||!Ae.length||!Ae[0]){var $t="";lt=[];for(Qe in Fe[Ye])this.terminals_[Qe]&&Qe>ot&<.push("'"+this.terminals_[Qe]+"'");Ft.showPosition?$t="Parse error on line "+(Oe+1)+`: `+Ft.showPosition()+` Expecting `+lt.join(", ")+", got '"+(this.terminals_[Ge]||Ge)+"'":$t="Parse error on line "+(Oe+1)+": Unexpected "+(Ge==sn?"end of input":"'"+(this.terminals_[Ge]||Ge)+"'"),this.parseError($t,{text:Ft.match,token:this.terminals_[Ge]||Ge,line:Ft.yylineno,loc:et,expected:lt})}if(Ae[0]instanceof Array&&Ae.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ye+", token: "+Ge);switch(Ae[0]){case 1:we.push(Ge),Ie.push(Ft.yytext),Le.push(Ft.yylloc),we.push(Ae[1]),Ge=null,Dt=Ft.yyleng,Ve=Ft.yytext,Oe=Ft.yylineno,et=Ft.yylloc;break;case 2:if(Ke=this.productions_[Ae[1]][1],fe.$=Ie[Ie.length-Ke],fe._$={first_line:Le[Le.length-(Ke||1)].first_line,last_line:Le[Le.length-1].last_line,first_column:Le[Le.length-(Ke||1)].first_column,last_column:Le[Le.length-1].last_column},qe&&(fe._$.range=[Le[Le.length-(Ke||1)].range[0],Le[Le.length-1].range[1]]),Xe=this.performAction.apply(fe,[Ve,Dt,Oe,Je.yy,Ae[1],Ie,Le].concat(Kt)),typeof Xe<"u")return Xe;Ke&&(we=we.slice(0,-1*Ke*2),Ie=Ie.slice(0,-1*Ke),Le=Le.slice(0,-1*Ke)),we.push(this.productions_[Ae[1]][0]),Ie.push(fe.$),Le.push(fe._$),mt=Fe[we[we.length-2]][we[we.length-1]],we.push(mt);break;case 3:return!0}}return!0}},ve=function(){var ye={EOF:1,parseError:function(he,we){if(this.yy.parser)this.yy.parser.parseError(he,we);else throw new Error(he)},setInput:function(Ee,he){return this.yy=he||this.yy||{},this._input=Ee,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Ee=this._input[0];this.yytext+=Ee,this.yyleng++,this.offset++,this.match+=Ee,this.matched+=Ee;var he=Ee.match(/(?:\r\n?|\n).*/g);return he?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ee},unput:function(Ee){var he=Ee.length,we=Ee.split(/(?:\r\n?|\n)/g);this._input=Ee+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-he),this.offset-=he;var Ce=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),we.length-1&&(this.yylineno-=we.length-1);var Ie=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:we?(we.length===Ce.length?this.yylloc.first_column:0)+Ce[Ce.length-we.length].length-we[0].length:this.yylloc.first_column-he},this.options.ranges&&(this.yylloc.range=[Ie[0],Ie[0]+this.yyleng-he]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Ee){this.unput(this.match.slice(Ee))},pastInput:function(){var Ee=this.matched.substr(0,this.matched.length-this.match.length);return(Ee.length>20?"...":"")+Ee.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ee=this.match;return Ee.length<20&&(Ee+=this._input.substr(0,20-Ee.length)),(Ee.substr(0,20)+(Ee.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ee=this.pastInput(),he=new Array(Ee.length+1).join("-");return Ee+this.upcomingInput()+` `+he+"^"},test_match:function(Ee,he){var we,Ce,Ie;if(this.options.backtrack_lexer&&(Ie={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Ie.yylloc.range=this.yylloc.range.slice(0))),Ce=Ee[0].match(/(?:\r\n?|\n).*/g),Ce&&(this.yylineno+=Ce.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ce?Ce[Ce.length-1].length-Ce[Ce.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ee[0].length},this.yytext+=Ee[0],this.match+=Ee[0],this.matches=Ee,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Ee[0].length),this.matched+=Ee[0],we=this.performAction.call(this,this.yy,this,he,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),we)return we;if(this._backtrack){for(var Le in Ie)this[Le]=Ie[Le];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ee,he,we,Ce;this._more||(this.yytext="",this.match="");for(var Ie=this._currentRules(),Le=0;Lehe[0].length)){if(he=we,Ce=Le,this.options.backtrack_lexer){if(Ee=this.test_match(we,Ie[Le]),Ee!==!1)return Ee;if(this._backtrack){he=!1;continue}else return!1}else if(!this.options.flex)break}return he?(Ee=this.test_match(he,Ie[Ce]),Ee!==!1?Ee:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var he=this.next();return he||this.lex()},begin:function(he){this.conditionStack.push(he)},popState:function(){var he=this.conditionStack.length-1;return he>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(he){return he=this.conditionStack.length-1-Math.abs(he||0),he>=0?this.conditionStack[he]:"INITIAL"},pushState:function(he){this.begin(he)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(he,we,Ce,Ie){switch(Ce){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 19;case 7:return this.begin("LINE"),14;case 8:return this.begin("ID"),50;case 9:return this.begin("ID"),52;case 10:return 13;case 11:return this.begin("ID"),53;case 12:return we.yytext=we.yytext.trim(),this.begin("ALIAS"),70;case 13:return this.popState(),this.popState(),this.begin("LINE"),51;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),36;case 16:return this.begin("LINE"),37;case 17:return this.begin("LINE"),38;case 18:return this.begin("LINE"),39;case 19:return this.begin("LINE"),49;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),43;case 22:return this.begin("LINE"),48;case 23:return this.begin("LINE"),44;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),46;case 26:return this.popState(),15;case 27:return 16;case 28:return 65;case 29:return 66;case 30:return 59;case 31:return 60;case 32:return 61;case 33:return 62;case 34:return 57;case 35:return 54;case 36:return this.begin("ID"),21;case 37:return this.begin("ID"),23;case 38:return 29;case 39:return 30;case 40:return this.begin("acc_title"),31;case 41:return this.popState(),"acc_title_value";case 42:return this.begin("acc_descr"),33;case 43:return this.popState(),"acc_descr_value";case 44:this.begin("acc_descr_multiline");break;case 45:this.popState();break;case 46:return"acc_descr_multiline_value";case 47:return 6;case 48:return 18;case 49:return 20;case 50:return 64;case 51:return 5;case 52:return we.yytext=we.yytext.trim(),70;case 53:return 73;case 54:return 74;case 55:return 71;case 56:return 72;case 57:return 75;case 58:return 76;case 59:return 77;case 60:return 78;case 61:return 79;case 62:return 68;case 63:return 69;case 64:return 5;case 65:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[45,46],inclusive:!1},acc_descr:{rules:[43],inclusive:!1},acc_title:{rules:[41],inclusive:!1},ID:{rules:[2,3,12],inclusive:!1},ALIAS:{rules:[2,3,13,14],inclusive:!1},LINE:{rules:[2,3,26],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,7,8,9,10,11,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,44,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65],inclusive:!0}}};return ye}();be.lexer=ve;function De(){this.yy={}}return De.prototype=be,be.Parser=De,new De}();Ght.parser=Ght;const qya=Ght;class Hya{constructor(t){this.init=t,this.records=this.init()}reset(){this.records=this.init()}}const as=new Hya(()=>({prevActor:void 0,actors:{},createdActors:{},destroyedActors:{},boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),Vya=function(e){as.records.boxes.push({name:e.text,wrap:e.wrap===void 0&&u$()||!!e.wrap,fill:e.color,actorKeys:[]}),as.records.currentBox=as.records.boxes.slice(-1)[0]},qht=function(e,t,r,a){let s=as.records.currentBox;const o=as.records.actors[e];if(o){if(as.records.currentBox&&o.box&&as.records.currentBox!==o.box)throw new Error("A same participant should only be defined in one Box: "+o.name+" can't be in '"+o.box.name+"' and in '"+as.records.currentBox.name+"' at the same time.");if(s=o.box?o.box:as.records.currentBox,o.box=s,o&&t===o.name&&r==null)return}(r==null||r.text==null)&&(r={text:t,wrap:null,type:a}),(a==null||r.text==null)&&(r={text:t,wrap:null,type:a}),as.records.actors[e]={box:s,name:t,description:r.text,wrap:r.wrap===void 0&&u$()||!!r.wrap,prevActor:as.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:a||"participant"},as.records.prevActor&&as.records.actors[as.records.prevActor]&&(as.records.actors[as.records.prevActor].nextActor=e),as.records.currentBox&&as.records.currentBox.actorKeys.push(e),as.records.prevActor=e},Yya=e=>{let t,r=0;for(t=0;t>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},u}return as.records.messages.push({from:e,to:t,message:r.text,wrap:r.wrap===void 0&&u$()||!!r.wrap,type:a,activate:s}),!0},Wya=function(){return as.records.boxes.length>0},Kya=function(){return as.records.boxes.some(e=>e.name)},Xya=function(){return as.records.messages},Qya=function(){return as.records.boxes},Zya=function(){return as.records.actors},Jya=function(){return as.records.createdActors},eva=function(){return as.records.destroyedActors},iue=function(e){return as.records.actors[e]},tva=function(){return Object.keys(as.records.actors)},nva=function(){as.records.sequenceNumbersEnabled=!0},rva=function(){as.records.sequenceNumbersEnabled=!1},iva=()=>as.records.sequenceNumbersEnabled,ava=function(e){as.records.wrapEnabled=e},u$=()=>as.records.wrapEnabled!==void 0?as.records.wrapEnabled:Qt().sequence.wrap,sva=function(){as.reset(),Mb()},ova=function(e){const t=e.trim(),r={text:t.replace(/^:?(?:no)?wrap:/,"").trim(),wrap:t.match(/^:?wrap:/)!==null?!0:t.match(/^:?nowrap:/)!==null?!1:void 0};return ut.debug("parseMessage:",r),r},lva=function(e){const t=e.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/);let r=t!=null&&t[1]?t[1].trim():"transparent",a=t!=null&&t[2]?t[2].trim():void 0;if(window&&window.CSS)window.CSS.supports("color",r)||(r="transparent",a=e.trim());else{const s=new Option().style;s.color=r,s.color!==r&&(r="transparent",a=e.trim())}return{color:r,text:a!==void 0?J0(a.replace(/^:?(?:no)?wrap:/,""),Qt()):void 0,wrap:a!==void 0?a.match(/^:?wrap:/)!==null?!0:a.match(/^:?nowrap:/)!==null?!1:void 0:void 0}},Cle={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32},cva={FILLED:0,OPEN:1},uva={LEFTOF:0,RIGHTOF:1,OVER:2},Vtr=function(e,t,r){const a={actor:e,placement:t,message:r.text,wrap:r.wrap===void 0&&u$()||!!r.wrap},s=[].concat(e,e);as.records.notes.push(a),as.records.messages.push({from:s[0],to:s[1],message:r.text,wrap:r.wrap===void 0&&u$()||!!r.wrap,type:Cle.NOTE,placement:t})},Ytr=function(e,t){const r=iue(e);try{let a=J0(t.text,Qt());a=a.replace(/&/g,"&"),a=a.replace(/=/g,"=");const s=JSON.parse(a);fyt(r,s)}catch(a){ut.error("error while parsing actor link text",a)}},hva=function(e,t){const r=iue(e);try{const u={};let h=J0(t.text,Qt());var a=h.indexOf("@");h=h.replace(/&/g,"&"),h=h.replace(/=/g,"=");var s=h.slice(0,a-1).trim(),o=h.slice(a+1).trim();u[s]=o,fyt(r,u)}catch(u){ut.error("error while parsing actor link text",u)}};function fyt(e,t){if(e.links==null)e.links=t;else for(let r in t)e.links[r]=t[r]}const jtr=function(e,t){const r=iue(e);try{let a=J0(t.text,Qt());const s=JSON.parse(a);Wtr(r,s)}catch(a){ut.error("error while parsing actor properties text",a)}};function Wtr(e,t){if(e.properties==null)e.properties=t;else for(let r in t)e.properties[r]=t[r]}function dva(){as.records.currentBox=void 0}const Ktr=function(e,t){const r=iue(e),a=document.getElementById(t.text);try{const s=a.innerHTML,o=JSON.parse(s);o.properties&&Wtr(r,o.properties),o.links&&fyt(r,o.links)}catch(s){ut.error("error while parsing actor details text",s)}},fva=function(e,t){if(e!==void 0&&e.properties!==void 0)return e.properties[t]},Xtr=function(e){if(Array.isArray(e))e.forEach(function(t){Xtr(t)});else switch(e.type){case"sequenceIndex":as.records.messages.push({from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case"addParticipant":qht(e.actor,e.actor,e.description,e.draw);break;case"createParticipant":if(as.records.actors[e.actor])throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");as.records.lastCreated=e.actor,qht(e.actor,e.actor,e.description,e.draw),as.records.createdActors[e.actor]=as.records.messages.length;break;case"destroyParticipant":as.records.lastDestroyed=e.actor,as.records.destroyedActors[e.actor]=as.records.messages.length;break;case"activeStart":G0(e.actor,void 0,void 0,e.signalType);break;case"activeEnd":G0(e.actor,void 0,void 0,e.signalType);break;case"addNote":Vtr(e.actor,e.placement,e.text);break;case"addLinks":Ytr(e.actor,e.text);break;case"addALink":hva(e.actor,e.text);break;case"addProperties":jtr(e.actor,e.text);break;case"addDetails":Ktr(e.actor,e.text);break;case"addMessage":if(as.records.lastCreated){if(e.to!==as.records.lastCreated)throw new Error("The created participant "+as.records.lastCreated+" does not have an associated creating message after its declaration. Please check the sequence diagram.");as.records.lastCreated=void 0}else if(as.records.lastDestroyed){if(e.to!==as.records.lastDestroyed&&e.from!==as.records.lastDestroyed)throw new Error("The destroyed participant "+as.records.lastDestroyed+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");as.records.lastDestroyed=void 0}G0(e.from,e.to,e.msg,e.signalType,e.activate);break;case"boxStart":Vya(e.boxData);break;case"boxEnd":dva();break;case"loopStart":G0(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":G0(void 0,void 0,void 0,e.signalType);break;case"rectStart":G0(void 0,void 0,e.color,e.signalType);break;case"rectEnd":G0(void 0,void 0,void 0,e.signalType);break;case"optStart":G0(void 0,void 0,e.optText,e.signalType);break;case"optEnd":G0(void 0,void 0,void 0,e.signalType);break;case"altStart":G0(void 0,void 0,e.altText,e.signalType);break;case"else":G0(void 0,void 0,e.altText,e.signalType);break;case"altEnd":G0(void 0,void 0,void 0,e.signalType);break;case"setAccTitle":Pb(e.text);break;case"parStart":G0(void 0,void 0,e.parText,e.signalType);break;case"and":G0(void 0,void 0,e.parText,e.signalType);break;case"parEnd":G0(void 0,void 0,void 0,e.signalType);break;case"criticalStart":G0(void 0,void 0,e.criticalText,e.signalType);break;case"option":G0(void 0,void 0,e.optionText,e.signalType);break;case"criticalEnd":G0(void 0,void 0,void 0,e.signalType);break;case"breakStart":G0(void 0,void 0,e.breakText,e.signalType);break;case"breakEnd":G0(void 0,void 0,void 0,e.signalType);break}},MCn={addActor:qht,addMessage:jya,addSignal:G0,addLinks:Ytr,addDetails:Ktr,addProperties:jtr,autoWrap:u$,setWrap:ava,enableSequenceNumbers:nva,disableSequenceNumbers:rva,showSequenceNumbers:iva,getMessages:Xya,getActors:Zya,getCreatedActors:Jya,getDestroyedActors:eva,getActor:iue,getActorKeys:tva,getActorProperty:fva,getAccTitle:Ev,getBoxes:Qya,getDiagramTitle:Tv,setDiagramTitle:Zw,getConfig:()=>Qt().sequence,clear:sva,parseMessage:ova,parseBoxData:lva,LINETYPE:Cle,ARROWTYPE:cva,PLACEMENT:uva,addNote:Vtr,setAccTitle:Pb,apply:Xtr,setAccDescription:xv,getAccDescription:Sv,hasAtLeastOneBox:Wya,hasAtLeastOneBoxWithTitle:Kya},pva=e=>`.actor { stroke: ${e.actorBorder}; fill: ${e.actorBkg}; } text.actor > tspan { fill: ${e.actorTextColor}; stroke: none; } .actor-line { stroke: ${e.actorLineColor}; } .messageLine0 { stroke-width: 1.5; stroke-dasharray: none; stroke: ${e.signalColor}; } .messageLine1 { stroke-width: 1.5; stroke-dasharray: 2, 2; stroke: ${e.signalColor}; } #arrowhead path { fill: ${e.signalColor}; stroke: ${e.signalColor}; } .sequenceNumber { fill: ${e.sequenceNumberColor}; } #sequencenumber { fill: ${e.signalColor}; } #crosshead path { fill: ${e.signalColor}; stroke: ${e.signalColor}; } .messageText { fill: ${e.signalTextColor}; stroke: none; } .labelBox { stroke: ${e.labelBoxBorderColor}; fill: ${e.labelBoxBkgColor}; } .labelText, .labelText > tspan { fill: ${e.labelTextColor}; stroke: none; } .loopText, .loopText > tspan { fill: ${e.loopTextColor}; stroke: none; } .loopLine { stroke-width: 2px; stroke-dasharray: 2, 2; stroke: ${e.labelBoxBorderColor}; fill: ${e.labelBoxBorderColor}; } .note { //stroke: #decc93; stroke: ${e.noteBorderColor}; fill: ${e.noteBkgColor}; } .noteText, .noteText > tspan { fill: ${e.noteTextColor}; stroke: none; } .activation0 { fill: ${e.activationBkgColor}; stroke: ${e.activationBorderColor}; } .activation1 { fill: ${e.activationBkgColor}; stroke: ${e.activationBorderColor}; } .activation2 { fill: ${e.activationBkgColor}; stroke: ${e.activationBorderColor}; } .actorPopupMenu { position: absolute; } .actorPopupMenuPanel { position: absolute; fill: ${e.actorBkg}; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4)); } .actor-man line { stroke: ${e.actorBorder}; fill: ${e.actorBkg}; } .actor-man circle, line { stroke: ${e.actorBorder}; fill: ${e.actorBkg}; stroke-width: 2px; } `,gva=pva,uF=18*2,Qtr="actor-top",Ztr="actor-bottom",pyt=function(e,t){return d6e(e,t)},mva=function(e,t,r,a,s){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};const o=t.links,u=t.actorCnt,h=t.rectData;var f="none";s&&(f="block !important");const p=e.append("g");p.attr("id","actor"+u+"_popup"),p.attr("class","actorPopupMenu"),p.attr("display",f);var m="";h.class!==void 0&&(m=" "+h.class);let b=h.width>r?h.width:r;const _=p.append("rect");if(_.attr("class","actorPopupMenuPanel"+m),_.attr("x",h.x),_.attr("y",h.height),_.attr("fill",h.fill),_.attr("stroke",h.stroke),_.attr("width",b),_.attr("height",h.height),_.attr("rx",h.rx),_.attr("ry",h.ry),o!=null){var w=20;for(let A in o){var S=p.append("a"),C=U9(o[A]);S.attr("xlink:href",C),S.attr("target","_blank"),Lva(a)(A,S,h.x+10,h.height+w,b,20,{class:"actor"},a),w+=30}}return _.attr("height",w),{height:h.height+w,width:b}},bva=function(e){return"var pu = document.getElementById('"+e+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},p5e=async function(e,t,r=null){let a=e.append("foreignObject");const s=await Z$(t.text,Lf()),u=a.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(s).node().getBoundingClientRect();if(a.attr("height",Math.round(u.height)).attr("width",Math.round(u.width)),t.class==="noteText"){const h=e.node().firstChild;h.setAttribute("height",u.height+2*t.textMargin);const f=h.getBBox();a.attr("x",Math.round(f.x+f.width/2-u.width/2)).attr("y",Math.round(f.y+f.height/2-u.height/2))}else if(r){let{startx:h,stopx:f,starty:p}=r;if(h>f){const m=h;h=f,f=m}a.attr("x",Math.round(h+Math.abs(h-f)/2-u.width/2)),t.class==="loopText"?a.attr("y",Math.round(p)):a.attr("y",Math.round(p-u.height))}return[a]},hW=function(e,t){let r=0,a=0;const s=t.text.split(mi.lineBreakRegex),[o,u]=J$(t.fontSize);let h=[],f=0,p=()=>t.y;if(t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0)switch(t.valign){case"top":case"start":p=()=>Math.round(t.y+t.textMargin);break;case"middle":case"center":p=()=>Math.round(t.y+(r+a+t.textMargin)/2);break;case"bottom":case"end":p=()=>Math.round(t.y+(r+a+2*t.textMargin)-t.textMargin);break}if(t.anchor!==void 0&&t.textMargin!==void 0&&t.width!==void 0)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"middle":case"center":t.x=Math.round(t.x+t.width/2),t.anchor="middle",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"right":case"end":t.x=Math.round(t.x+t.width-t.textMargin),t.anchor="end",t.dominantBaseline="middle",t.alignmentBaseline="middle";break}for(let[m,b]of s.entries()){t.textMargin!==void 0&&t.textMargin===0&&o!==void 0&&(f=m*o);const _=e.append("text");_.attr("x",t.x),_.attr("y",p()),t.anchor!==void 0&&_.attr("text-anchor",t.anchor).attr("dominant-baseline",t.dominantBaseline).attr("alignment-baseline",t.alignmentBaseline),t.fontFamily!==void 0&&_.style("font-family",t.fontFamily),u!==void 0&&_.style("font-size",u),t.fontWeight!==void 0&&_.style("font-weight",t.fontWeight),t.fill!==void 0&&_.attr("fill",t.fill),t.class!==void 0&&_.attr("class",t.class),t.dy!==void 0?_.attr("dy",t.dy):f!==0&&_.attr("dy",f);const w=b||KQn;if(t.tspan){const S=_.append("tspan");S.attr("x",t.x),t.fill!==void 0&&S.attr("fill",t.fill),S.text(w)}else _.text(w);t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0&&(a+=(_._groups||_)[0][0].getBBox().height,r=a),h.push(_)}return h},Jtr=function(e,t){function r(s,o,u,h,f){return s+","+o+" "+(s+u)+","+o+" "+(s+u)+","+(o+h-f)+" "+(s+u-f*1.2)+","+(o+h)+" "+s+","+(o+h)}const a=e.append("polygon");return a.attr("points",r(t.x,t.y,t.width,t.height,7)),a.attr("class","labelBox"),t.y=t.y+t.height/2,hW(e,t),a};let HC=-1;const enr=(e,t,r,a)=>{e.select&&r.forEach(s=>{const o=t[s],u=e.select("#actor"+o.actorCnt);!a.mirrorActors&&o.stopy?u.attr("y2",o.stopy+o.height/2):a.mirrorActors&&u.attr("y2",o.stopy)})},yva=async function(e,t,r,a){const s=a?t.stopy:t.starty,o=t.x+t.width/2,u=s+5,h=e.append("g").lower();var f=h;a||(HC++,Object.keys(t.links||{}).length&&!r.forceMenus&&f.attr("onclick",bva(`actor${HC}_popup`)).attr("cursor","pointer"),f.append("line").attr("id","actor"+HC).attr("x1",o).attr("y1",u).attr("x2",o).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),f=h.append("g"),t.actorCnt=HC,t.links!=null&&f.attr("id","root-"+HC));const p=eU();var m="actor";t.properties!=null&&t.properties.class?m=t.properties.class:p.fill="#eaeaea",a?m+=` ${Ztr}`:m+=` ${Qtr}`,p.x=t.x,p.y=s,p.width=t.width,p.height=t.height,p.class=m,p.rx=3,p.ry=3,p.name=t.name;const b=pyt(f,p);if(t.rectData=p,t.properties!=null&&t.properties.icon){const w=t.properties.icon.trim();w.charAt(0)==="@"?kca(f,p.x+p.width-20,p.y+10,w.substr(1)):Aca(f,p.x+p.width-20,p.y+10,w)}await gyt(r,OS(t.description))(t.description,f,p.x,p.y,p.width,p.height,{class:"actor"},r);let _=t.height;if(b.node){const w=b.node().getBBox();t.height=w.height,_=w.height}return _},vva=async function(e,t,r,a){const s=a?t.stopy:t.starty,o=t.x+t.width/2,u=s+80;e.lower(),a||(HC++,e.append("line").attr("id","actor"+HC).attr("x1",o).attr("y1",u).attr("x2",o).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),t.actorCnt=HC);const h=e.append("g");let f="actor-man";a?f+=` ${Ztr}`:f+=` ${Qtr}`,h.attr("class",f),h.attr("name",t.name);const p=eU();p.x=t.x,p.y=s,p.fill="#eaeaea",p.width=t.width,p.height=t.height,p.class="actor",p.rx=3,p.ry=3,h.append("line").attr("id","actor-man-torso"+HC).attr("x1",o).attr("y1",s+25).attr("x2",o).attr("y2",s+45),h.append("line").attr("id","actor-man-arms"+HC).attr("x1",o-uF/2).attr("y1",s+33).attr("x2",o+uF/2).attr("y2",s+33),h.append("line").attr("x1",o-uF/2).attr("y1",s+60).attr("x2",o).attr("y2",s+45),h.append("line").attr("x1",o).attr("y1",s+45).attr("x2",o+uF/2-2).attr("y2",s+60);const m=h.append("circle");m.attr("cx",t.x+t.width/2),m.attr("cy",s+10),m.attr("r",15),m.attr("width",t.width),m.attr("height",t.height);const b=h.node().getBBox();return t.height=b.height,await gyt(r,OS(t.description))(t.description,h,p.x,p.y+35,p.width,p.height,{class:"actor"},r),t.height},_va=async function(e,t,r,a){switch(t.type){case"actor":return await vva(e,t,r,a);case"participant":return await yva(e,t,r,a)}},wva=async function(e,t,r){const s=e.append("g");tnr(s,t),t.name&&await gyt(r)(t.name,s,t.x,t.y+(t.textMaxHeight||0)/2,t.width,0,{class:"text"},r),s.lower()},Eva=function(e){return e.append("g")},xva=function(e,t,r,a,s){const o=eU(),u=t.anchored;o.x=t.startx,o.y=t.starty,o.class="activation"+s%3,o.width=t.stopx-t.startx,o.height=r-t.starty,pyt(u,o)},Sva=async function(e,t,r,a){const{boxMargin:s,boxTextMargin:o,labelBoxHeight:u,labelBoxWidth:h,messageFontFamily:f,messageFontSize:p,messageFontWeight:m}=a,b=e.append("g"),_=function(C,A,k,I){return b.append("line").attr("x1",C).attr("y1",A).attr("x2",k).attr("y2",I).attr("class","loopLine")};_(t.startx,t.starty,t.stopx,t.starty),_(t.stopx,t.starty,t.stopx,t.stopy),_(t.startx,t.stopy,t.stopx,t.stopy),_(t.startx,t.starty,t.startx,t.stopy),t.sections!==void 0&&t.sections.forEach(function(C){_(t.startx,C.y,t.stopx,C.y).style("stroke-dasharray","3, 3")});let w=Obt();w.text=r,w.x=t.startx,w.y=t.starty,w.fontFamily=f,w.fontSize=p,w.fontWeight=m,w.anchor="middle",w.valign="middle",w.tspan=!1,w.width=h||50,w.height=u||20,w.textMargin=o,w.class="labelText",Jtr(b,w),w=nnr(),w.text=t.title,w.x=t.startx+h/2+(t.stopx-t.startx)/2,w.y=t.starty+s+o,w.anchor="middle",w.valign="middle",w.textMargin=o,w.class="loopText",w.fontFamily=f,w.fontSize=p,w.fontWeight=m,w.wrap=!0;let S=OS(w.text)?await p5e(b,w,t):hW(b,w);if(t.sectionTitles!==void 0){for(const[C,A]of Object.entries(t.sectionTitles))if(A.message){w.text=A.message,w.x=t.startx+(t.stopx-t.startx)/2,w.y=t.sections[C].y+s+o,w.class="loopText",w.anchor="middle",w.valign="middle",w.tspan=!1,w.fontFamily=f,w.fontSize=p,w.fontWeight=m,w.wrap=t.wrap,OS(w.text)?(t.starty=t.sections[C].y,await p5e(b,w,t)):hW(b,w);let k=Math.round(S.map(I=>(I._groups||I)[0][0].getBBox().height).reduce((I,N)=>I+N));t.sections[C].height+=k-(s+o)}}return t.height=Math.round(t.stopy-t.starty),b},tnr=function(e,t){bJn(e,t)},Tva=function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},Cva=function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},Ava=function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},kva=function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},Rva=function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},Iva=function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},Nva=function(e){e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},nnr=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},Ova=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},gyt=function(){function e(o,u,h,f,p,m,b){const _=u.append("text").attr("x",h+p/2).attr("y",f+m/2+5).style("text-anchor","middle").text(o);s(_,b)}function t(o,u,h,f,p,m,b,_){const{actorFontSize:w,actorFontFamily:S,actorFontWeight:C}=_,[A,k]=J$(w),I=o.split(mi.lineBreakRegex);for(let N=0;Ne.height||0))+(this.loops.length===0?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.messages.length===0?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.notes.length===0?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},clear:function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},addBox:function(e){this.boxes.push(e)},addActor:function(e){this.actors.push(e)},addLoop:function(e){this.loops.push(e)},addMessage:function(e){this.messages.push(e)},addNote:function(e){this.notes.push(e)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],boxes:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,inr(Qt())},updateVal:function(e,t,r,a){e[t]===void 0?e[t]=r:e[t]=a(r,e[t])},updateBounds:function(e,t,r,a){const s=this;let o=0;function u(h){return function(p){o++;const m=s.sequenceItems.length-o+1;s.updateVal(p,"starty",t-m*Bn.boxMargin,Math.min),s.updateVal(p,"stopy",a+m*Bn.boxMargin,Math.max),s.updateVal(ci.data,"startx",e-m*Bn.boxMargin,Math.min),s.updateVal(ci.data,"stopx",r+m*Bn.boxMargin,Math.max),h!=="activation"&&(s.updateVal(p,"startx",e-m*Bn.boxMargin,Math.min),s.updateVal(p,"stopx",r+m*Bn.boxMargin,Math.max),s.updateVal(ci.data,"starty",t-m*Bn.boxMargin,Math.min),s.updateVal(ci.data,"stopy",a+m*Bn.boxMargin,Math.max))}}this.sequenceItems.forEach(u()),this.activations.forEach(u("activation"))},insert:function(e,t,r,a){const s=mi.getMin(e,r),o=mi.getMax(e,r),u=mi.getMin(t,a),h=mi.getMax(t,a);this.updateVal(ci.data,"startx",s,Math.min),this.updateVal(ci.data,"starty",u,Math.min),this.updateVal(ci.data,"stopx",o,Math.max),this.updateVal(ci.data,"stopy",h,Math.max),this.updateBounds(s,u,o,h)},newActivation:function(e,t,r){const a=r[e.from.actor],s=x6e(e.from.actor).length||0,o=a.x+a.width/2+(s-1)*Bn.activationWidth/2;this.activations.push({startx:o,starty:this.verticalPos+2,stopx:o+Bn.activationWidth,stopy:void 0,actor:e.from.actor,anchored:H0.anchorElement(t)})},endActivation:function(e){const t=this.activations.map(function(r){return r.actor}).lastIndexOf(e.from.actor);return this.activations.splice(t,1)[0]},createLoop:function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},newLoop:function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},endLoop:function(){return this.sequenceItems.pop()},isLoopOverlap:function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},addSectionToLoop:function(e){const t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:ci.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},saveVerticalPos:function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},resetVerticalPos:function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},bumpVerticalPos:function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=mi.getMax(this.data.stopy,this.verticalPos)},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},Dva=async function(e,t){ci.bumpVerticalPos(Bn.boxMargin),t.height=Bn.boxMargin,t.starty=ci.getVerticalPos();const r=eU();r.x=t.startx,r.y=t.starty,r.width=t.width||Bn.width,r.class="note";const a=e.append("g"),s=H0.drawRect(a,r),o=Obt();o.x=t.startx,o.y=t.starty,o.width=r.width,o.dy="1em",o.text=t.message,o.class="noteText",o.fontFamily=Bn.noteFontFamily,o.fontSize=Bn.noteFontSize,o.fontWeight=Bn.noteFontWeight,o.anchor=Bn.noteAlign,o.textMargin=Bn.noteMargin,o.valign="center";const u=OS(o.text)?await p5e(a,o):hW(a,o),h=Math.round(u.map(f=>(f._groups||f)[0][0].getBBox().height).reduce((f,p)=>f+p));s.attr("height",h+2*Bn.noteMargin),t.height+=h+2*Bn.noteMargin,ci.bumpVerticalPos(h+2*Bn.noteMargin),t.stopy=t.starty+h+2*Bn.noteMargin,t.stopx=t.startx+r.width,ci.insert(t.startx,t.starty,t.stopx,t.stopy),ci.models.addNote(t)},h$=e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),xV=e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),Hht=e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight});async function Mva(e,t){ci.bumpVerticalPos(10);const{startx:r,stopx:a,message:s}=t,o=mi.splitBreaks(s).length,u=OS(s),h=u?await Xce(s,Qt()):il.calculateTextDimensions(s,h$(Bn));if(!u){const b=h.height/o;t.height+=b,ci.bumpVerticalPos(b)}let f,p=h.height-10;const m=h.width;if(r===a){f=ci.getVerticalPos()+p,Bn.rightAngles||(p+=Bn.boxMargin,f=ci.getVerticalPos()+p),p+=30;const b=mi.getMax(m/2,Bn.width/2);ci.insert(r-b,ci.getVerticalPos()-10+p,a+b,ci.getVerticalPos()+30+p)}else p+=Bn.boxMargin,f=ci.getVerticalPos()+p,ci.insert(r,f-10,a,f);return ci.bumpVerticalPos(p),t.height+=p,t.stopy=t.starty+t.height,ci.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),f}const Pva=async function(e,t,r,a){const{startx:s,stopx:o,starty:u,message:h,type:f,sequenceIndex:p,sequenceVisible:m}=t,b=il.calculateTextDimensions(h,h$(Bn)),_=Obt();_.x=s,_.y=u+10,_.width=o-s,_.class="messageText",_.dy="1em",_.text=h,_.fontFamily=Bn.messageFontFamily,_.fontSize=Bn.messageFontSize,_.fontWeight=Bn.messageFontWeight,_.anchor=Bn.messageAlign,_.valign="center",_.textMargin=Bn.wrapPadding,_.tspan=!1,OS(_.text)?await p5e(e,_,{startx:s,stopx:o,starty:r}):hW(e,_);const w=b.width;let S;s===o?Bn.rightAngles?S=e.append("path").attr("d",`M ${s},${r} H ${s+mi.getMax(Bn.width/2,w/2)} V ${r+25} H ${s}`):S=e.append("path").attr("d","M "+s+","+r+" C "+(s+60)+","+(r-10)+" "+(s+60)+","+(r+30)+" "+s+","+(r+20)):(S=e.append("line"),S.attr("x1",s),S.attr("y1",r),S.attr("x2",o),S.attr("y2",r)),f===a.db.LINETYPE.DOTTED||f===a.db.LINETYPE.DOTTED_CROSS||f===a.db.LINETYPE.DOTTED_POINT||f===a.db.LINETYPE.DOTTED_OPEN?(S.style("stroke-dasharray","3, 3"),S.attr("class","messageLine1")):S.attr("class","messageLine0");let C="";Bn.arrowMarkerAbsolute&&(C=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,C=C.replace(/\(/g,"\\("),C=C.replace(/\)/g,"\\)")),S.attr("stroke-width",2),S.attr("stroke","none"),S.style("fill","none"),(f===a.db.LINETYPE.SOLID||f===a.db.LINETYPE.DOTTED)&&S.attr("marker-end","url("+C+"#arrowhead)"),(f===a.db.LINETYPE.SOLID_POINT||f===a.db.LINETYPE.DOTTED_POINT)&&S.attr("marker-end","url("+C+"#filled-head)"),(f===a.db.LINETYPE.SOLID_CROSS||f===a.db.LINETYPE.DOTTED_CROSS)&&S.attr("marker-end","url("+C+"#crosshead)"),(m||Bn.showSequenceNumbers)&&(S.attr("marker-start","url("+C+"#sequencenumber)"),e.append("text").attr("x",s).attr("y",r+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(p))},Bva=async function(e,t,r,a,s,o,u){let h=0,f=0,p,m=0;for(const b of a){const _=t[b],w=_.box;p&&p!=w&&(ci.models.addBox(p),f+=Bn.boxMargin+p.margin),w&&w!=p&&(w.x=h+f,w.y=s,f+=w.margin),_.width=_.width||Bn.width,_.height=mi.getMax(_.height||Bn.height,Bn.height),_.margin=_.margin||Bn.actorMargin,m=mi.getMax(m,_.height),r[_.name]&&(f+=_.width/2),_.x=h+f,_.starty=ci.getVerticalPos(),ci.insert(_.x,s,_.x+_.width,_.height),h+=_.width+f,_.box&&(_.box.width=h+w.margin-_.box.x),f=_.margin,p=_.box,ci.models.addActor(_)}p&&ci.models.addBox(p),ci.bumpVerticalPos(m)},Vht=async function(e,t,r,a){if(a){let s=0;ci.bumpVerticalPos(Bn.boxMargin*2);for(const o of r){const u=t[o];u.stopy||(u.stopy=ci.getVerticalPos());const h=await H0.drawActor(e,u,Bn,!0);s=mi.getMax(s,h)}ci.bumpVerticalPos(s+Bn.boxMargin)}else for(const s of r){const o=t[s];await H0.drawActor(e,o,Bn,!1)}},rnr=function(e,t,r,a){let s=0,o=0;for(const u of r){const h=t[u],f=zva(h),p=H0.drawPopup(e,h,f,Bn,Bn.forceMenus,a);p.height>s&&(s=p.height),p.width+h.x>o&&(o=p.width+h.x)}return{maxHeight:s,maxWidth:o}},inr=function(e){Tg(Bn,e),e.fontFamily&&(Bn.actorFontFamily=Bn.noteFontFamily=Bn.messageFontFamily=e.fontFamily),e.fontSize&&(Bn.actorFontSize=Bn.noteFontSize=Bn.messageFontSize=e.fontSize),e.fontWeight&&(Bn.actorFontWeight=Bn.noteFontWeight=Bn.messageFontWeight=e.fontWeight)},x6e=function(e){return ci.activations.filter(function(t){return t.actor===e})},PCn=function(e,t){const r=t[e],a=x6e(e),s=a.reduce(function(u,h){return mi.getMin(u,h.startx)},r.x+r.width/2-1),o=a.reduce(function(u,h){return mi.getMax(u,h.stopx)},r.x+r.width/2+1);return[s,o]};function yC(e,t,r,a,s){ci.bumpVerticalPos(r);let o=a;if(t.id&&t.message&&e[t.id]){const u=e[t.id].width,h=h$(Bn);t.message=il.wrapLabel(`[${t.message}]`,u-2*Bn.wrapPadding,h),t.width=u,t.wrap=!0;const f=il.calculateTextDimensions(t.message,h),p=mi.getMax(f.height,Bn.labelBoxHeight);o=a+p,ut.debug(`${p} - ${t.message}`)}s(t),ci.bumpVerticalPos(o)}function Fva(e,t,r,a,s,o,u){function h(p,m){p.x{j.add(ee.from),j.add(ee.to)}),S=S.filter(ee=>j.has(ee))}await Bva(p,m,b,S,0);const L=await Vva(C,m,N,a);H0.insertArrowHead(p),H0.insertArrowCrossHead(p),H0.insertArrowFilledHead(p),H0.insertSequenceNumber(p);function P(j,ee){const te=ci.endActivation(j);te.starty+18>ee&&(te.starty=ee-6,ee+=12),H0.drawActivation(p,te,ee,Bn,x6e(j.from.actor).length),ci.insert(te.startx,ee-10,te.stopx,ee)}let M=1,F=1;const U=[],$=[];let G=0;for(const j of C){let ee,te,ne;switch(j.type){case a.db.LINETYPE.NOTE:ci.resetVerticalPos(),te=j.noteModel,await Dva(p,te);break;case a.db.LINETYPE.ACTIVE_START:ci.newActivation(j,p,m);break;case a.db.LINETYPE.ACTIVE_END:P(j,ci.getVerticalPos());break;case a.db.LINETYPE.LOOP_START:yC(L,j,Bn.boxMargin,Bn.boxMargin+Bn.boxTextMargin,se=>ci.newLoop(se));break;case a.db.LINETYPE.LOOP_END:ee=ci.endLoop(),await H0.drawLoop(p,ee,"loop",Bn),ci.bumpVerticalPos(ee.stopy-ci.getVerticalPos()),ci.models.addLoop(ee);break;case a.db.LINETYPE.RECT_START:yC(L,j,Bn.boxMargin,Bn.boxMargin,se=>ci.newLoop(void 0,se.message));break;case a.db.LINETYPE.RECT_END:ee=ci.endLoop(),$.push(ee),ci.models.addLoop(ee),ci.bumpVerticalPos(ee.stopy-ci.getVerticalPos());break;case a.db.LINETYPE.OPT_START:yC(L,j,Bn.boxMargin,Bn.boxMargin+Bn.boxTextMargin,se=>ci.newLoop(se));break;case a.db.LINETYPE.OPT_END:ee=ci.endLoop(),await H0.drawLoop(p,ee,"opt",Bn),ci.bumpVerticalPos(ee.stopy-ci.getVerticalPos()),ci.models.addLoop(ee);break;case a.db.LINETYPE.ALT_START:yC(L,j,Bn.boxMargin,Bn.boxMargin+Bn.boxTextMargin,se=>ci.newLoop(se));break;case a.db.LINETYPE.ALT_ELSE:yC(L,j,Bn.boxMargin+Bn.boxTextMargin,Bn.boxMargin,se=>ci.addSectionToLoop(se));break;case a.db.LINETYPE.ALT_END:ee=ci.endLoop(),await H0.drawLoop(p,ee,"alt",Bn),ci.bumpVerticalPos(ee.stopy-ci.getVerticalPos()),ci.models.addLoop(ee);break;case a.db.LINETYPE.PAR_START:case a.db.LINETYPE.PAR_OVER_START:yC(L,j,Bn.boxMargin,Bn.boxMargin+Bn.boxTextMargin,se=>ci.newLoop(se)),ci.saveVerticalPos();break;case a.db.LINETYPE.PAR_AND:yC(L,j,Bn.boxMargin+Bn.boxTextMargin,Bn.boxMargin,se=>ci.addSectionToLoop(se));break;case a.db.LINETYPE.PAR_END:ee=ci.endLoop(),await H0.drawLoop(p,ee,"par",Bn),ci.bumpVerticalPos(ee.stopy-ci.getVerticalPos()),ci.models.addLoop(ee);break;case a.db.LINETYPE.AUTONUMBER:M=j.message.start||M,F=j.message.step||F,j.message.visible?a.db.enableSequenceNumbers():a.db.disableSequenceNumbers();break;case a.db.LINETYPE.CRITICAL_START:yC(L,j,Bn.boxMargin,Bn.boxMargin+Bn.boxTextMargin,se=>ci.newLoop(se));break;case a.db.LINETYPE.CRITICAL_OPTION:yC(L,j,Bn.boxMargin+Bn.boxTextMargin,Bn.boxMargin,se=>ci.addSectionToLoop(se));break;case a.db.LINETYPE.CRITICAL_END:ee=ci.endLoop(),await H0.drawLoop(p,ee,"critical",Bn),ci.bumpVerticalPos(ee.stopy-ci.getVerticalPos()),ci.models.addLoop(ee);break;case a.db.LINETYPE.BREAK_START:yC(L,j,Bn.boxMargin,Bn.boxMargin+Bn.boxTextMargin,se=>ci.newLoop(se));break;case a.db.LINETYPE.BREAK_END:ee=ci.endLoop(),await H0.drawLoop(p,ee,"break",Bn),ci.bumpVerticalPos(ee.stopy-ci.getVerticalPos()),ci.models.addLoop(ee);break;default:try{ne=j.msgModel,ne.starty=ci.getVerticalPos(),ne.sequenceIndex=M,ne.sequenceVisible=a.db.showSequenceNumbers();const se=await Mva(p,ne);Fva(j,ne,se,G,m,b,_),U.push({messageModel:ne,lineStartY:se}),ci.models.addMessage(ne)}catch(se){ut.error("error while drawing message",se)}}[a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.SOLID,a.db.LINETYPE.DOTTED,a.db.LINETYPE.SOLID_CROSS,a.db.LINETYPE.DOTTED_CROSS,a.db.LINETYPE.SOLID_POINT,a.db.LINETYPE.DOTTED_POINT].includes(j.type)&&(M=M+F),G++}ut.debug("createdActors",b),ut.debug("destroyedActors",_),await Vht(p,m,S,!1);for(const j of U)await Pva(p,j.messageModel,j.lineStartY,a);Bn.mirrorActors&&await Vht(p,m,S,!0),$.forEach(j=>H0.drawBackgroundRect(p,j)),enr(p,m,S,Bn);for(const j of ci.models.boxes)j.height=ci.getVerticalPos()-j.y,ci.insert(j.x,j.y,j.x+j.width,j.height),j.startx=j.x,j.starty=j.y,j.stopx=j.startx+j.width,j.stopy=j.starty+j.height,j.stroke="rgb(0,0,0, 0.5)",await H0.drawBox(p,j,Bn);k&&ci.bumpVerticalPos(Bn.boxMargin);const B=rnr(p,m,S,f),{bounds:Z}=ci.getBounds();let z=Z.stopy-Z.starty;z{const u=h$(Bn);let h=o.actorKeys.reduce((m,b)=>m+=e[b].width+(e[b].margin||0),0);h-=2*Bn.boxTextMargin,o.wrap&&(o.name=il.wrapLabel(o.name,h-2*Bn.wrapPadding,u));const f=il.calculateTextDimensions(o.name,u);s=mi.getMax(f.height,s);const p=mi.getMax(h,f.width+2*Bn.wrapPadding);if(o.margin=Bn.boxTextMargin,ho.textMaxHeight=s),mi.getMax(a,Bn.height)}const qva=async function(e,t,r){const a=t[e.from].x,s=t[e.to].x,o=e.wrap&&e.message;let u=OS(e.message)?await Xce(e.message,Qt()):il.calculateTextDimensions(o?il.wrapLabel(e.message,Bn.width,xV(Bn)):e.message,xV(Bn));const h={width:o?Bn.width:mi.getMax(Bn.width,u.width+2*Bn.noteMargin),height:0,startx:t[e.from].x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===r.db.PLACEMENT.RIGHTOF?(h.width=o?mi.getMax(Bn.width,u.width):mi.getMax(t[e.from].width/2+t[e.to].width/2,u.width+2*Bn.noteMargin),h.startx=a+(t[e.from].width+Bn.actorMargin)/2):e.placement===r.db.PLACEMENT.LEFTOF?(h.width=o?mi.getMax(Bn.width,u.width+2*Bn.noteMargin):mi.getMax(t[e.from].width/2+t[e.to].width/2,u.width+2*Bn.noteMargin),h.startx=a-h.width+(t[e.from].width-Bn.actorMargin)/2):e.to===e.from?(u=il.calculateTextDimensions(o?il.wrapLabel(e.message,mi.getMax(Bn.width,t[e.from].width),xV(Bn)):e.message,xV(Bn)),h.width=o?mi.getMax(Bn.width,t[e.from].width):mi.getMax(t[e.from].width,Bn.width,u.width+2*Bn.noteMargin),h.startx=a+(t[e.from].width-h.width)/2):(h.width=Math.abs(a+t[e.from].width/2-(s+t[e.to].width/2))+Bn.actorMargin,h.startx=a2,b=C=>h?-C:C;e.from===e.to?p=f:(e.activate&&!m&&(p+=b(Bn.activationWidth/2-1)),[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN].includes(e.type)||(p+=b(3)));const _=[a,s,o,u],w=Math.abs(f-p);e.wrap&&e.message&&(e.message=il.wrapLabel(e.message,mi.getMax(w+2*Bn.wrapPadding,Bn.width),h$(Bn)));const S=il.calculateTextDimensions(e.message,h$(Bn));return{width:mi.getMax(e.wrap?0:S.width+2*Bn.wrapPadding,w+2*Bn.wrapPadding,Bn.width),height:0,startx:f,stopx:p,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,_),toBounds:Math.max.apply(null,_)}},Vva=async function(e,t,r,a){const s={},o=[];let u,h,f;for(const p of e){switch(p.id=il.random({length:10}),p.type){case a.db.LINETYPE.LOOP_START:case a.db.LINETYPE.ALT_START:case a.db.LINETYPE.OPT_START:case a.db.LINETYPE.PAR_START:case a.db.LINETYPE.PAR_OVER_START:case a.db.LINETYPE.CRITICAL_START:case a.db.LINETYPE.BREAK_START:o.push({id:p.id,msg:p.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case a.db.LINETYPE.ALT_ELSE:case a.db.LINETYPE.PAR_AND:case a.db.LINETYPE.CRITICAL_OPTION:p.message&&(u=o.pop(),s[u.id]=u,s[p.id]=u,o.push(u));break;case a.db.LINETYPE.LOOP_END:case a.db.LINETYPE.ALT_END:case a.db.LINETYPE.OPT_END:case a.db.LINETYPE.PAR_END:case a.db.LINETYPE.CRITICAL_END:case a.db.LINETYPE.BREAK_END:u=o.pop(),s[u.id]=u;break;case a.db.LINETYPE.ACTIVE_START:{const b=t[p.from?p.from.actor:p.to.actor],_=x6e(p.from?p.from.actor:p.to.actor).length,w=b.x+b.width/2+(_-1)*Bn.activationWidth/2,S={startx:w,stopx:w+Bn.activationWidth,actor:p.from.actor,enabled:!0};ci.activations.push(S)}break;case a.db.LINETYPE.ACTIVE_END:{const b=ci.activations.map(_=>_.actor).lastIndexOf(p.from.actor);delete ci.activations.splice(b,1)[0]}break}p.placement!==void 0?(h=await qva(p,t,a),p.noteModel=h,o.forEach(b=>{u=b,u.from=mi.getMin(u.from,h.startx),u.to=mi.getMax(u.to,h.startx+h.width),u.width=mi.getMax(u.width,Math.abs(u.from-u.to))-Bn.labelBoxWidth})):(f=Hva(p,t,a),p.msgModel=f,f.startx&&f.stopx&&o.length>0&&o.forEach(b=>{if(u=b,f.startx===f.stopx){const _=t[p.from],w=t[p.to];u.from=mi.getMin(_.x-f.width/2,_.x-_.width/2,u.from),u.to=mi.getMax(w.x+f.width/2,w.x+_.width/2,u.to),u.width=mi.getMax(u.width,Math.abs(u.to-u.from))-Bn.labelBoxWidth}else u.from=mi.getMin(f.startx,u.from),u.to=mi.getMax(f.stopx,u.to),u.width=mi.getMax(u.width,f.width)-Bn.labelBoxWidth}))}return ci.activations=[],ut.debug("Loop type widths:",s),s},Yva={bounds:ci,drawActors:Vht,drawActorsPopup:rnr,setConf:inr,draw:$va},jva={parser:qya,db:MCn,renderer:Yva,styles:gva,init:({wrap:e})=>{MCn.setWrap(e)}},Wva=Object.freeze(Object.defineProperty({__proto__:null,diagram:jva},Symbol.toStringTag,{value:"Module"}));var Yht=function(){var e=function(Kt,Ft,Je,ht){for(Je=Je||{},ht=Kt.length;ht--;Je[Kt[ht]]=Ft);return Je},t=[1,17],r=[1,18],a=[1,19],s=[1,39],o=[1,40],u=[1,25],h=[1,23],f=[1,24],p=[1,31],m=[1,32],b=[1,33],_=[1,34],w=[1,35],S=[1,36],C=[1,26],A=[1,27],k=[1,28],I=[1,29],N=[1,43],L=[1,30],P=[1,42],M=[1,44],F=[1,41],U=[1,45],$=[1,9],G=[1,8,9],B=[1,56],Z=[1,57],z=[1,58],Y=[1,59],W=[1,60],Q=[1,61],V=[1,62],j=[1,8,9,39],ee=[1,74],te=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],ne=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],se=[13,74,80,95,97,98],ie=[13,64,65,74,80,95,97,98],ge=[13,59,60,61,62,63,74,80,95,97,98],ce=[1,93],be=[1,110],ve=[1,108],De=[1,102],ye=[1,103],Ee=[1,104],he=[1,105],we=[1,106],Ce=[1,107],Ie=[1,109],Le=[1,8,9,37,39,42],Fe=[1,8,9,21],Ve=[1,8,9,78],Oe=[1,8,9,21,73,74,78,80,81,82,83,84,85],Dt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(Ft,Je,ht,et,qe,He,Ge){var Ye=He.length-1;switch(qe){case 8:this.$=He[Ye-1];break;case 9:case 11:case 12:this.$=He[Ye];break;case 10:case 13:this.$=He[Ye-1]+He[Ye];break;case 14:case 15:this.$=He[Ye-1]+"~"+He[Ye]+"~";break;case 16:et.addRelation(He[Ye]);break;case 17:He[Ye-1].title=et.cleanupLabel(He[Ye]),et.addRelation(He[Ye-1]);break;case 27:this.$=He[Ye].trim(),et.setAccTitle(this.$);break;case 28:case 29:this.$=He[Ye].trim(),et.setAccDescription(this.$);break;case 30:et.addClassesToNamespace(He[Ye-3],He[Ye-1]);break;case 31:et.addClassesToNamespace(He[Ye-4],He[Ye-1]);break;case 32:this.$=He[Ye],et.addNamespace(He[Ye]);break;case 33:this.$=[He[Ye]];break;case 34:this.$=[He[Ye-1]];break;case 35:He[Ye].unshift(He[Ye-2]),this.$=He[Ye];break;case 37:et.setCssClass(He[Ye-2],He[Ye]);break;case 38:et.addMembers(He[Ye-3],He[Ye-1]);break;case 39:et.setCssClass(He[Ye-5],He[Ye-3]),et.addMembers(He[Ye-5],He[Ye-1]);break;case 40:this.$=He[Ye],et.addClass(He[Ye]);break;case 41:this.$=He[Ye-1],et.addClass(He[Ye-1]),et.setClassLabel(He[Ye-1],He[Ye]);break;case 42:et.addAnnotation(He[Ye],He[Ye-2]);break;case 43:this.$=[He[Ye]];break;case 44:He[Ye].push(He[Ye-1]),this.$=He[Ye];break;case 45:break;case 46:et.addMember(He[Ye-1],et.cleanupLabel(He[Ye]));break;case 47:break;case 48:break;case 49:this.$={id1:He[Ye-2],id2:He[Ye],relation:He[Ye-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:He[Ye-3],id2:He[Ye],relation:He[Ye-1],relationTitle1:He[Ye-2],relationTitle2:"none"};break;case 51:this.$={id1:He[Ye-3],id2:He[Ye],relation:He[Ye-2],relationTitle1:"none",relationTitle2:He[Ye-1]};break;case 52:this.$={id1:He[Ye-4],id2:He[Ye],relation:He[Ye-2],relationTitle1:He[Ye-3],relationTitle2:He[Ye-1]};break;case 53:et.addNote(He[Ye],He[Ye-1]);break;case 54:et.addNote(He[Ye]);break;case 55:et.setDirection("TB");break;case 56:et.setDirection("BT");break;case 57:et.setDirection("RL");break;case 58:et.setDirection("LR");break;case 59:this.$={type1:He[Ye-2],type2:He[Ye],lineType:He[Ye-1]};break;case 60:this.$={type1:"none",type2:He[Ye],lineType:He[Ye-1]};break;case 61:this.$={type1:He[Ye-1],type2:"none",lineType:He[Ye]};break;case 62:this.$={type1:"none",type2:"none",lineType:He[Ye]};break;case 63:this.$=et.relationType.AGGREGATION;break;case 64:this.$=et.relationType.EXTENSION;break;case 65:this.$=et.relationType.COMPOSITION;break;case 66:this.$=et.relationType.DEPENDENCY;break;case 67:this.$=et.relationType.LOLLIPOP;break;case 68:this.$=et.lineType.LINE;break;case 69:this.$=et.lineType.DOTTED_LINE;break;case 70:case 76:this.$=He[Ye-2],et.setClickEvent(He[Ye-1],He[Ye]);break;case 71:case 77:this.$=He[Ye-3],et.setClickEvent(He[Ye-2],He[Ye-1]),et.setTooltip(He[Ye-2],He[Ye]);break;case 72:this.$=He[Ye-2],et.setLink(He[Ye-1],He[Ye]);break;case 73:this.$=He[Ye-3],et.setLink(He[Ye-2],He[Ye-1],He[Ye]);break;case 74:this.$=He[Ye-3],et.setLink(He[Ye-2],He[Ye-1]),et.setTooltip(He[Ye-2],He[Ye]);break;case 75:this.$=He[Ye-4],et.setLink(He[Ye-3],He[Ye-2],He[Ye]),et.setTooltip(He[Ye-3],He[Ye-1]);break;case 78:this.$=He[Ye-3],et.setClickEvent(He[Ye-2],He[Ye-1],He[Ye]);break;case 79:this.$=He[Ye-4],et.setClickEvent(He[Ye-3],He[Ye-2],He[Ye-1]),et.setTooltip(He[Ye-3],He[Ye]);break;case 80:this.$=He[Ye-3],et.setLink(He[Ye-2],He[Ye]);break;case 81:this.$=He[Ye-4],et.setLink(He[Ye-3],He[Ye-1],He[Ye]);break;case 82:this.$=He[Ye-4],et.setLink(He[Ye-3],He[Ye-1]),et.setTooltip(He[Ye-3],He[Ye]);break;case 83:this.$=He[Ye-5],et.setLink(He[Ye-4],He[Ye-2],He[Ye]),et.setTooltip(He[Ye-4],He[Ye-1]);break;case 84:this.$=He[Ye-2],et.setCssStyle(He[Ye-1],He[Ye]);break;case 85:et.setCssClass(He[Ye-1],He[Ye]);break;case 86:this.$=[He[Ye]];break;case 87:He[Ye-2].push(He[Ye]),this.$=He[Ye-2];break;case 89:this.$=He[Ye-1]+He[Ye];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:t,33:r,35:a,36:21,40:s,41:22,44:o,45:u,47:h,48:f,50:p,52:m,53:b,54:_,55:w,56:S,66:C,67:A,69:k,73:I,74:N,76:L,80:P,95:M,97:F,98:U},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e($,[2,5],{8:[1,46]}),{8:[1,47]},e(G,[2,16],{21:[1,48]}),e(G,[2,18]),e(G,[2,19]),e(G,[2,20]),e(G,[2,21]),e(G,[2,22]),e(G,[2,23]),e(G,[2,24]),e(G,[2,25]),e(G,[2,26]),{32:[1,49]},{34:[1,50]},e(G,[2,29]),e(G,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:B,60:Z,61:z,62:Y,63:W,64:Q,65:V}),{37:[1,63]},e(j,[2,36],{37:[1,65],42:[1,64]}),e(G,[2,47]),e(G,[2,48]),{16:66,74:N,80:P,95:M,97:F},{16:37,17:67,18:38,74:N,80:P,95:M,97:F,98:U},{16:37,17:68,18:38,74:N,80:P,95:M,97:F,98:U},{16:37,17:69,18:38,74:N,80:P,95:M,97:F,98:U},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:N,80:P,95:M,97:F,98:U},{13:ee,51:73},e(G,[2,55]),e(G,[2,56]),e(G,[2,57]),e(G,[2,58]),e(te,[2,11],{16:37,18:38,17:75,19:[1,76],74:N,80:P,95:M,97:F,98:U}),e(te,[2,12],{19:[1,77]}),{15:78,16:79,74:N,80:P,95:M,97:F},{16:37,17:80,18:38,74:N,80:P,95:M,97:F,98:U},e(ne,[2,112]),e(ne,[2,113]),e(ne,[2,114]),e(ne,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e($,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:t,33:r,35:a,40:s,44:o,45:u,47:h,48:f,50:p,52:m,53:b,54:_,55:w,56:S,66:C,67:A,69:k,73:I,74:N,76:L,80:P,95:M,97:F,98:U}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:t,33:r,35:a,36:21,40:s,41:22,44:o,45:u,47:h,48:f,50:p,52:m,53:b,54:_,55:w,56:S,66:C,67:A,69:k,73:I,74:N,76:L,80:P,95:M,97:F,98:U},e(G,[2,17]),e(G,[2,27]),e(G,[2,28]),{13:[1,84],16:37,17:83,18:38,74:N,80:P,95:M,97:F,98:U},{49:85,57:54,58:55,59:B,60:Z,61:z,62:Y,63:W,64:Q,65:V},e(G,[2,46]),{58:86,64:Q,65:V},e(se,[2,62],{57:87,59:B,60:Z,61:z,62:Y,63:W}),e(ie,[2,63]),e(ie,[2,64]),e(ie,[2,65]),e(ie,[2,66]),e(ie,[2,67]),e(ge,[2,68]),e(ge,[2,69]),{8:[1,89],23:90,38:88,41:22,44:o},{16:91,74:N,80:P,95:M,97:F},{43:92,47:ce},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:be,73:ve,74:De,75:99,77:100,79:101,80:ye,81:Ee,82:he,83:we,84:Ce,85:Ie},{74:[1,111]},{13:ee,51:112},e(G,[2,54]),e(G,[2,117]),e(te,[2,13]),e(te,[2,14]),e(te,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:N,80:P,95:M,97:F},e(Le,[2,40],{11:114,12:[1,115]}),e($,[2,7]),{9:[1,116]},e(Fe,[2,49]),{16:37,17:117,18:38,74:N,80:P,95:M,97:F,98:U},{13:[1,119],16:37,17:118,18:38,74:N,80:P,95:M,97:F,98:U},e(se,[2,61],{57:120,59:B,60:Z,61:z,62:Y,63:W}),e(se,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:o},{8:[1,123],39:[2,33]},e(j,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:ce},{16:37,17:127,18:38,74:N,80:P,95:M,97:F,98:U},e(G,[2,70],{13:[1,128]}),e(G,[2,72],{13:[1,130],68:[1,129]}),e(G,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(G,[2,84],{78:[1,134]}),e(Ve,[2,86],{79:135,21:be,73:ve,74:De,80:ye,81:Ee,82:he,83:we,84:Ce,85:Ie}),e(Oe,[2,88]),e(Oe,[2,90]),e(Oe,[2,91]),e(Oe,[2,92]),e(Oe,[2,93]),e(Oe,[2,94]),e(Oe,[2,95]),e(Oe,[2,96]),e(Oe,[2,97]),e(Oe,[2,98]),e(G,[2,85]),e(G,[2,53]),{37:[2,10]},e(Le,[2,41]),{13:[1,136]},{1:[2,4]},e(Fe,[2,51]),e(Fe,[2,50]),{16:37,17:137,18:38,74:N,80:P,95:M,97:F,98:U},e(se,[2,59]),e(G,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:o},{43:140,47:ce},e(j,[2,38]),{39:[2,44]},e(G,[2,42]),e(G,[2,71]),e(G,[2,73]),e(G,[2,74],{68:[1,141]}),e(G,[2,77]),e(G,[2,78],{13:[1,142]}),e(G,[2,80],{13:[1,144],68:[1,143]}),{21:be,73:ve,74:De,77:145,79:101,80:ye,81:Ee,82:he,83:we,84:Ce,85:Ie},e(Oe,[2,89]),{14:[1,146]},e(Fe,[2,52]),e(G,[2,31]),{39:[2,35]},{39:[1,147]},e(G,[2,75]),e(G,[2,79]),e(G,[2,81]),e(G,[2,82],{68:[1,148]}),e(Ve,[2,87],{79:135,21:be,73:ve,74:De,80:ye,81:Ee,82:he,83:we,84:Ce,85:Ie}),e(Le,[2,8]),e(j,[2,39]),e(G,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(Ft,Je){if(Je.recoverable)this.trace(Ft);else{var ht=new Error(Ft);throw ht.hash=Je,ht}},parse:function(Ft){var Je=this,ht=[0],et=[],qe=[null],He=[],Ge=this.table,Ye="",Ae=0,Xe=0,fe=2,Qe=1,Ke=He.slice.call(arguments,1),mt=Object.create(this.lexer),lt={yy:{}};for(var $t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$t)&&(lt.yy[$t]=this.yy[$t]);mt.setInput(Ft,lt.yy),lt.yy.lexer=mt,lt.yy.parser=this,typeof mt.yylloc>"u"&&(mt.yylloc={});var Ut=mt.yylloc;He.push(Ut);var Jt=mt.options&&mt.options.ranges;typeof lt.yy.parseError=="function"?this.parseError=lt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function wn(){var Ln;return Ln=et.pop()||mt.lex()||Qe,typeof Ln!="number"&&(Ln instanceof Array&&(et=Ln,Ln=et.pop()),Ln=Je.symbols_[Ln]||Ln),Ln}for(var Vn,Wn,Dn,zn,vn={},Cn,Ar,ur,On;;){if(Wn=ht[ht.length-1],this.defaultActions[Wn]?Dn=this.defaultActions[Wn]:((Vn===null||typeof Vn>"u")&&(Vn=wn()),Dn=Ge[Wn]&&Ge[Wn][Vn]),typeof Dn>"u"||!Dn.length||!Dn[0]){var Ir="";On=[];for(Cn in Ge[Wn])this.terminals_[Cn]&&Cn>fe&&On.push("'"+this.terminals_[Cn]+"'");mt.showPosition?Ir="Parse error on line "+(Ae+1)+`: `+mt.showPosition()+` Expecting `+On.join(", ")+", got '"+(this.terminals_[Vn]||Vn)+"'":Ir="Parse error on line "+(Ae+1)+": Unexpected "+(Vn==Qe?"end of input":"'"+(this.terminals_[Vn]||Vn)+"'"),this.parseError(Ir,{text:mt.match,token:this.terminals_[Vn]||Vn,line:mt.yylineno,loc:Ut,expected:On})}if(Dn[0]instanceof Array&&Dn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Wn+", token: "+Vn);switch(Dn[0]){case 1:ht.push(Vn),qe.push(mt.yytext),He.push(mt.yylloc),ht.push(Dn[1]),Vn=null,Xe=mt.yyleng,Ye=mt.yytext,Ae=mt.yylineno,Ut=mt.yylloc;break;case 2:if(Ar=this.productions_[Dn[1]][1],vn.$=qe[qe.length-Ar],vn._$={first_line:He[He.length-(Ar||1)].first_line,last_line:He[He.length-1].last_line,first_column:He[He.length-(Ar||1)].first_column,last_column:He[He.length-1].last_column},Jt&&(vn._$.range=[He[He.length-(Ar||1)].range[0],He[He.length-1].range[1]]),zn=this.performAction.apply(vn,[Ye,Xe,Ae,lt.yy,Dn[1],qe,He].concat(Ke)),typeof zn<"u")return zn;Ar&&(ht=ht.slice(0,-1*Ar*2),qe=qe.slice(0,-1*Ar),He=He.slice(0,-1*Ar)),ht.push(this.productions_[Dn[1]][0]),qe.push(vn.$),He.push(vn._$),ur=Ge[ht[ht.length-2]][ht[ht.length-1]],ht.push(ur);break;case 3:return!0}}return!0}},ot=function(){var Kt={EOF:1,parseError:function(Je,ht){if(this.yy.parser)this.yy.parser.parseError(Je,ht);else throw new Error(Je)},setInput:function(Ft,Je){return this.yy=Je||this.yy||{},this._input=Ft,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Ft=this._input[0];this.yytext+=Ft,this.yyleng++,this.offset++,this.match+=Ft,this.matched+=Ft;var Je=Ft.match(/(?:\r\n?|\n).*/g);return Je?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ft},unput:function(Ft){var Je=Ft.length,ht=Ft.split(/(?:\r\n?|\n)/g);this._input=Ft+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Je),this.offset-=Je;var et=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ht.length-1&&(this.yylineno-=ht.length-1);var qe=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ht?(ht.length===et.length?this.yylloc.first_column:0)+et[et.length-ht.length].length-ht[0].length:this.yylloc.first_column-Je},this.options.ranges&&(this.yylloc.range=[qe[0],qe[0]+this.yyleng-Je]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Ft){this.unput(this.match.slice(Ft))},pastInput:function(){var Ft=this.matched.substr(0,this.matched.length-this.match.length);return(Ft.length>20?"...":"")+Ft.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ft=this.match;return Ft.length<20&&(Ft+=this._input.substr(0,20-Ft.length)),(Ft.substr(0,20)+(Ft.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ft=this.pastInput(),Je=new Array(Ft.length+1).join("-");return Ft+this.upcomingInput()+` `+Je+"^"},test_match:function(Ft,Je){var ht,et,qe;if(this.options.backtrack_lexer&&(qe={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(qe.yylloc.range=this.yylloc.range.slice(0))),et=Ft[0].match(/(?:\r\n?|\n).*/g),et&&(this.yylineno+=et.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:et?et[et.length-1].length-et[et.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ft[0].length},this.yytext+=Ft[0],this.match+=Ft[0],this.matches=Ft,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Ft[0].length),this.matched+=Ft[0],ht=this.performAction.call(this,this.yy,this,Je,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ht)return ht;if(this._backtrack){for(var He in qe)this[He]=qe[He];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ft,Je,ht,et;this._more||(this.yytext="",this.match="");for(var qe=this._currentRules(),He=0;HeJe[0].length)){if(Je=ht,et=He,this.options.backtrack_lexer){if(Ft=this.test_match(ht,qe[He]),Ft!==!1)return Ft;if(this._backtrack){Je=!1;continue}else return!1}else if(!this.options.flex)break}return Je?(Ft=this.test_match(Je,qe[et]),Ft!==!1?Ft:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Je=this.next();return Je||this.lex()},begin:function(Je){this.conditionStack.push(Je)},popState:function(){var Je=this.conditionStack.length-1;return Je>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Je){return Je=this.conditionStack.length-1-Math.abs(Je||0),Je>=0?this.conditionStack[Je]:"INITIAL"},pushState:function(Je){this.begin(Je)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Je,ht,et,qe){switch(et){case 0:return 53;case 1:return 54;case 2:return 55;case 3:return 56;case 4:break;case 5:break;case 6:return this.begin("acc_title"),31;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),33;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 70;case 22:this.popState();break;case 23:return 71;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 73;case 28:return this.begin("namespace"),40;case 29:return this.popState(),8;case 30:break;case 31:return this.begin("namespace-body"),37;case 32:return this.popState(),39;case 33:return"EOF_IN_STRUCT";case 34:return 8;case 35:break;case 36:return"EDGE_STATE";case 37:return this.begin("class"),44;case 38:return this.popState(),8;case 39:break;case 40:return this.popState(),this.popState(),39;case 41:return this.begin("class-body"),37;case 42:return this.popState(),39;case 43:return"EOF_IN_STRUCT";case 44:return"EDGE_STATE";case 45:return"OPEN_IN_STRUCT";case 46:break;case 47:return"MEMBER";case 48:return 76;case 49:return 66;case 50:return 67;case 51:return 69;case 52:return 50;case 53:return 52;case 54:return 45;case 55:return 46;case 56:return 72;case 57:this.popState();break;case 58:return"GENERICTYPE";case 59:this.begin("generic");break;case 60:this.popState();break;case 61:return"BQUOTE_STR";case 62:this.begin("bqstring");break;case 63:return 68;case 64:return 68;case 65:return 68;case 66:return 68;case 67:return 60;case 68:return 60;case 69:return 62;case 70:return 62;case 71:return 61;case 72:return 59;case 73:return 63;case 74:return 64;case 75:return 65;case 76:return 21;case 77:return 42;case 78:return 95;case 79:return"DOT";case 80:return"PLUS";case 81:return 81;case 82:return 78;case 83:return 84;case 84:return 84;case 85:return 85;case 86:return"EQUALS";case 87:return"EQUALS";case 88:return 74;case 89:return 12;case 90:return 14;case 91:return"PUNCTUATION";case 92:return 80;case 93:return 97;case 94:return 83;case 95:return 83;case 96:return 9}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,32,33,34,35,36,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},namespace:{rules:[26,28,29,30,31,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},"class-body":{rules:[26,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},class:{rules:[26,38,39,40,41,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr:{rules:[9,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_title:{rules:[7,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_args:{rules:[22,23,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_name:{rules:[19,20,21,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},href:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},struct:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},generic:{rules:[26,48,49,50,51,52,53,54,55,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},bqstring:{rules:[26,48,49,50,51,52,53,54,55,56,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},string:{rules:[24,25,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96],inclusive:!0}}};return Kt}();Dt.lexer=ot;function sn(){this.yy={}}return sn.prototype=Dt,Dt.Parser=sn,new sn}();Yht.parser=Yht;const anr=Yht,BCn=["#","+","~","-",""];class FCn{constructor(t,r){this.memberType=r,this.visibility="",this.classifier="";const a=J0(t,Qt());this.parseMember(a)}getDisplayDetails(){let t=this.visibility+Nse(this.id);this.memberType==="method"&&(t+=`(${Nse(this.parameters.trim())})`,this.returnType&&(t+=" : "+Nse(this.returnType))),t=t.trim();const r=this.parseClassifier();return{displayText:t,cssStyle:r}}parseMember(t){let r="";if(this.memberType==="method"){const a=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/,s=t.match(a);if(s){const o=s[1]?s[1].trim():"";if(BCn.includes(o)&&(this.visibility=o),this.id=s[2].trim(),this.parameters=s[3]?s[3].trim():"",r=s[4]?s[4].trim():"",this.returnType=s[5]?s[5].trim():"",r===""){const u=this.returnType.substring(this.returnType.length-1);u.match(/[$*]/)&&(r=u,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const a=t.length,s=t.substring(0,1),o=t.substring(a-1);BCn.includes(s)&&(this.visibility=s),o.match(/[$*]/)&&(r=o),this.id=t.substring(this.visibility===""?0:1,r===""?a:a-1)}this.classifier=r}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}const S6e="classId-";let myt=[],Yd={},g5e=[],$Cn=0,_9={},jht=0,Ale=[];const d$=e=>mi.sanitizeText(e,Qt()),f$=function(e){const t=mi.sanitizeText(e,Qt());let r="",a=t;if(t.indexOf("~")>0){const s=t.split("~");a=d$(s[0]),r=d$(s[1])}return{className:a,type:r}},Kva=function(e,t){const r=mi.sanitizeText(e,Qt());t&&(t=d$(t));const{className:a}=f$(r);Yd[a].label=t},m5e=function(e){const t=mi.sanitizeText(e,Qt()),{className:r,type:a}=f$(t);if(Object.hasOwn(Yd,r))return;const s=mi.sanitizeText(r,Qt());Yd[s]={id:s,type:a,label:s,cssClasses:[],methods:[],members:[],annotations:[],styles:[],domId:S6e+s+"-"+$Cn},$Cn++},snr=function(e){const t=mi.sanitizeText(e,Qt());if(t in Yd)return Yd[t].domId;throw new Error("Class not found: "+t)},Xva=function(){myt=[],Yd={},g5e=[],Ale=[],Ale.push(lnr),_9={},jht=0,Mb()},Qva=function(e){return Yd[e]},Zva=function(){return Yd},Jva=function(){return myt},e2a=function(){return g5e},t2a=function(e){ut.debug("Adding relation: "+JSON.stringify(e)),m5e(e.id1),m5e(e.id2),e.id1=f$(e.id1).className,e.id2=f$(e.id2).className,e.relationTitle1=mi.sanitizeText(e.relationTitle1.trim(),Qt()),e.relationTitle2=mi.sanitizeText(e.relationTitle2.trim(),Qt()),myt.push(e)},n2a=function(e,t){const r=f$(e).className;Yd[r].annotations.push(t)},onr=function(e,t){m5e(e);const r=f$(e).className,a=Yd[r];if(typeof t=="string"){const s=t.trim();s.startsWith("<<")&&s.endsWith(">>")?a.annotations.push(d$(s.substring(2,s.length-2))):s.indexOf(")")>0?a.methods.push(new FCn(s,"method")):s&&a.members.push(new FCn(s,"attribute"))}},r2a=function(e,t){Array.isArray(t)&&(t.reverse(),t.forEach(r=>onr(e,r)))},i2a=function(e,t){const r={id:`note${g5e.length}`,class:t,text:e};g5e.push(r)},a2a=function(e){return e.startsWith(":")&&(e=e.substring(1)),d$(e.trim())},byt=function(e,t){e.split(",").forEach(function(r){let a=r;r[0].match(/\d/)&&(a=S6e+a),Yd[a]!==void 0&&Yd[a].cssClasses.push(t)})},s2a=function(e,t){e.split(",").forEach(function(r){t!==void 0&&(Yd[r].tooltip=d$(t))})},o2a=function(e,t){return t?_9[t].classes[e].tooltip:Yd[e].tooltip},l2a=function(e,t,r){const a=Qt();e.split(",").forEach(function(s){let o=s;s[0].match(/\d/)&&(o=S6e+o),Yd[o]!==void 0&&(Yd[o].link=il.formatUrl(t,a),a.securityLevel==="sandbox"?Yd[o].linkTarget="_top":typeof r=="string"?Yd[o].linkTarget=d$(r):Yd[o].linkTarget="_blank")}),byt(e,"clickable")},c2a=function(e,t,r){e.split(",").forEach(function(a){u2a(a,t,r),Yd[a].haveCallback=!0}),byt(e,"clickable")},u2a=function(e,t,r){const a=mi.sanitizeText(e,Qt());if(Qt().securityLevel!=="loose"||t===void 0)return;const o=a;if(Yd[o]!==void 0){const u=snr(o);let h=[];if(typeof r=="string"){h=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let f=0;f")),s.classed("hover",!0)}).on("mouseout",function(){t.transition().duration(500).style("opacity",0),gn(this).classed("hover",!1)})};Ale.push(lnr);let cnr="TB";const p2a=()=>cnr,g2a=e=>{cnr=e},m2a=function(e){_9[e]===void 0&&(_9[e]={id:e,classes:{},children:{},domId:S6e+e+"-"+jht},jht++)},b2a=function(e){return _9[e]},y2a=function(){return _9},v2a=function(e,t){if(_9[e]!==void 0)for(const r of t){const{className:a}=f$(r);Yd[a].parent=e,_9[e].classes[a]=Yd[a]}},_2a=function(e,t){const r=Yd[e];if(!(!t||!r))for(const a of t)a.includes(",")?r.styles.push(...a.split(",")):r.styles.push(a)},b5e={setAccTitle:Pb,getAccTitle:Ev,getAccDescription:Sv,setAccDescription:xv,getConfig:()=>Qt().class,addClass:m5e,bindFunctions:h2a,clear:Xva,getClass:Qva,getClasses:Zva,getNotes:e2a,addAnnotation:n2a,addNote:i2a,getRelations:Jva,addRelation:t2a,getDirection:p2a,setDirection:g2a,addMember:onr,addMembers:r2a,cleanupLabel:a2a,lineType:d2a,relationType:f2a,setClickEvent:c2a,setCssClass:byt,setLink:l2a,getTooltip:o2a,setTooltip:s2a,lookUpDomId:snr,setDiagramTitle:Zw,getDiagramTitle:Tv,setClassLabel:Kva,addNamespace:m2a,addClassesToNamespace:v2a,getNamespace:b2a,getNamespaces:y2a,setCssStyle:_2a},w2a=e=>`g.classGroup text { fill: ${e.nodeBorder||e.classText}; stroke: none; font-family: ${e.fontFamily}; font-size: 10px; .title { font-weight: bolder; } } .nodeLabel, .edgeLabel { color: ${e.classText}; } .edgeLabel .label rect { fill: ${e.mainBkg}; } .label text { fill: ${e.classText}; } .edgeLabel .label span { background: ${e.mainBkg}; } .classTitle { font-weight: bolder; } .node rect, .node circle, .node ellipse, .node polygon, .node path { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: 1px; } .divider { stroke: ${e.nodeBorder}; stroke-width: 1; } g.clickable { cursor: pointer; } g.classGroup rect { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; } g.classGroup line { stroke: ${e.nodeBorder}; stroke-width: 1; } .classLabel .box { stroke: none; stroke-width: 0; fill: ${e.mainBkg}; opacity: 0.5; } .classLabel .label { fill: ${e.nodeBorder}; font-size: 10px; } .relation { stroke: ${e.lineColor}; stroke-width: 1; fill: none; } .dashed-line{ stroke-dasharray: 3; } .dotted-line{ stroke-dasharray: 1 2; } #compositionStart, .composition { fill: ${e.lineColor} !important; stroke: ${e.lineColor} !important; stroke-width: 1; } #compositionEnd, .composition { fill: ${e.lineColor} !important; stroke: ${e.lineColor} !important; stroke-width: 1; } #dependencyStart, .dependency { fill: ${e.lineColor} !important; stroke: ${e.lineColor} !important; stroke-width: 1; } #dependencyStart, .dependency { fill: ${e.lineColor} !important; stroke: ${e.lineColor} !important; stroke-width: 1; } #extensionStart, .extension { fill: transparent !important; stroke: ${e.lineColor} !important; stroke-width: 1; } #extensionEnd, .extension { fill: transparent !important; stroke: ${e.lineColor} !important; stroke-width: 1; } #aggregationStart, .aggregation { fill: transparent !important; stroke: ${e.lineColor} !important; stroke-width: 1; } #aggregationEnd, .aggregation { fill: transparent !important; stroke: ${e.lineColor} !important; stroke-width: 1; } #lollipopStart, .lollipop { fill: ${e.mainBkg} !important; stroke: ${e.lineColor} !important; stroke-width: 1; } #lollipopEnd, .lollipop { fill: ${e.mainBkg} !important; stroke: ${e.lineColor} !important; stroke-width: 1; } .edgeTerminals { font-size: 11px; line-height: initial; } .classTitleText { text-anchor: middle; font-size: 18px; fill: ${e.textColor}; } `,unr=w2a;let UCn=0;const E2a=function(e,t,r,a,s){const o=function(I){switch(I){case s.db.relationType.AGGREGATION:return"aggregation";case s.db.relationType.EXTENSION:return"extension";case s.db.relationType.COMPOSITION:return"composition";case s.db.relationType.DEPENDENCY:return"dependency";case s.db.relationType.LOLLIPOP:return"lollipop"}};t.points=t.points.filter(I=>!Number.isNaN(I.y));const u=t.points,h=r_().x(function(I){return I.x}).y(function(I){return I.y}).curve(j3),f=e.append("path").attr("d",h(u)).attr("id","edge"+UCn).attr("class","relation");let p="";a.arrowMarkerAbsolute&&(p=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,p=p.replace(/\(/g,"\\("),p=p.replace(/\)/g,"\\)")),r.relation.lineType==1&&f.attr("class","relation dashed-line"),r.relation.lineType==10&&f.attr("class","relation dotted-line"),r.relation.type1!=="none"&&f.attr("marker-start","url("+p+"#"+o(r.relation.type1)+"Start)"),r.relation.type2!=="none"&&f.attr("marker-end","url("+p+"#"+o(r.relation.type2)+"End)");let m,b;const _=t.points.length;let w=il.calcLabelPosition(t.points);m=w.x,b=w.y;let S,C,A,k;if(_%2!==0&&_>1){let I=il.calcCardinalityPosition(r.relation.type1!=="none",t.points,t.points[0]),N=il.calcCardinalityPosition(r.relation.type2!=="none",t.points,t.points[_-1]);ut.debug("cardinality_1_point "+JSON.stringify(I)),ut.debug("cardinality_2_point "+JSON.stringify(N)),S=I.x,C=I.y,A=N.x,k=N.y}if(r.title!==void 0){const I=e.append("g").attr("class","classLabel"),N=I.append("text").attr("class","label").attr("x",m).attr("y",b).attr("fill","red").attr("text-anchor","middle").text(r.title);window.label=N;const L=N.node().getBBox();I.insert("rect",":first-child").attr("class","box").attr("x",L.x-a.padding/2).attr("y",L.y-a.padding/2).attr("width",L.width+a.padding).attr("height",L.height+a.padding)}ut.info("Rendering relation "+JSON.stringify(r)),r.relationTitle1!==void 0&&r.relationTitle1!=="none"&&e.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",S).attr("y",C).attr("fill","black").attr("font-size","6").text(r.relationTitle1),r.relationTitle2!==void 0&&r.relationTitle2!=="none"&&e.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",A).attr("y",k).attr("fill","black").attr("font-size","6").text(r.relationTitle2),UCn++},x2a=function(e,t,r,a){ut.debug("Rendering class ",t,r);const s=t.id,o={id:s,label:t.id,width:0,height:0},u=e.append("g").attr("id",a.db.lookUpDomId(s)).attr("class","classGroup");let h;t.link?h=u.append("svg:a").attr("xlink:href",t.link).attr("target",t.linkTarget).append("text").attr("y",r.textHeight+r.padding).attr("x",0):h=u.append("text").attr("y",r.textHeight+r.padding).attr("x",0);let f=!0;t.annotations.forEach(function(N){const L=h.append("tspan").text("«"+N+"»");f||L.attr("dy",r.textHeight),f=!1});let p=hnr(t);const m=h.append("tspan").text(p).attr("class","title");f||m.attr("dy",r.textHeight);const b=h.node().getBBox().height;let _,w,S;if(t.members.length>0){_=u.append("line").attr("x1",0).attr("y1",r.padding+b+r.dividerMargin/2).attr("y2",r.padding+b+r.dividerMargin/2);const N=u.append("text").attr("x",r.padding).attr("y",b+r.dividerMargin+r.textHeight).attr("fill","white").attr("class","classText");f=!0,t.members.forEach(function(L){zCn(N,L,f,r),f=!1}),w=N.node().getBBox()}if(t.methods.length>0){S=u.append("line").attr("x1",0).attr("y1",r.padding+b+r.dividerMargin+w.height).attr("y2",r.padding+b+r.dividerMargin+w.height);const N=u.append("text").attr("x",r.padding).attr("y",b+2*r.dividerMargin+w.height+r.textHeight).attr("fill","white").attr("class","classText");f=!0,t.methods.forEach(function(L){zCn(N,L,f,r),f=!1})}const C=u.node().getBBox();var A=" ";t.cssClasses.length>0&&(A=A+t.cssClasses.join(" "));const I=u.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",C.width+2*r.padding).attr("height",C.height+r.padding+.5*r.dividerMargin).attr("class",A).node().getBBox().width;return h.node().childNodes.forEach(function(N){N.setAttribute("x",(I-N.getBBox().width)/2)}),t.tooltip&&h.insert("title").text(t.tooltip),_&&_.attr("x2",I),S&&S.attr("x2",I),o.width=I,o.height=C.height+r.padding+.5*r.dividerMargin,o},hnr=function(e){let t=e.id;return e.type&&(t+="<"+Nse(e.type)+">"),t},S2a=function(e,t,r,a){ut.debug("Rendering note ",t,r);const s=t.id,o={id:s,text:t.text,width:0,height:0},u=e.append("g").attr("id",s).attr("class","classGroup");let h=u.append("text").attr("y",r.textHeight+r.padding).attr("x",0);const f=JSON.parse(`"${t.text}"`).split(` `);f.forEach(function(_){ut.debug(`Adding line: ${_}`),h.append("tspan").text(_).attr("class","title").attr("dy",r.textHeight)});const p=u.node().getBBox(),b=u.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",p.width+2*r.padding).attr("height",p.height+f.length*r.textHeight+r.padding+.5*r.dividerMargin).node().getBBox().width;return h.node().childNodes.forEach(function(_){_.setAttribute("x",(b-_.getBBox().width)/2)}),o.width=b,o.height=p.height+f.length*r.textHeight+r.padding+.5*r.dividerMargin,o},zCn=function(e,t,r,a){const{displayText:s,cssStyle:o}=t.getDisplayDetails(),u=e.append("tspan").attr("x",a.padding).text(s);o!==""&&u.attr("style",t.cssStyle),r||u.attr("dy",a.textHeight)},Rat={getClassTitleString:hnr,drawClass:x2a,drawEdge:E2a,drawNote:S2a};let dSe={};const TEe=20,wie=function(e){const t=Object.entries(dSe).find(r=>r[1].label===e);if(t)return t[0]},T2a=function(e){e.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},C2a=function(e,t,r,a){const s=Qt().class;dSe={},ut.info("Rendering diagram "+e);const o=Qt().securityLevel;let u;o==="sandbox"&&(u=gn("#i"+t));const h=gn(o==="sandbox"?u.nodes()[0].contentDocument.body:"body"),f=h.select(`[id='${t}']`);T2a(f);const p=new F1({multigraph:!0});p.setGraph({isMultiGraph:!0}),p.setDefaultEdgeLabel(function(){return{}});const m=a.db.getClasses(),b=Object.keys(m);for(const I of b){const N=m[I],L=Rat.drawClass(f,N,s,a);dSe[L.id]=L,p.setNode(L.id,L),ut.info("Org height: "+L.height)}a.db.getRelations().forEach(function(I){ut.info("tjoho"+wie(I.id1)+wie(I.id2)+JSON.stringify(I)),p.setEdge(wie(I.id1),wie(I.id2),{relation:I},I.title||"DEFAULT")}),a.db.getNotes().forEach(function(I){ut.debug(`Adding note: ${JSON.stringify(I)}`);const N=Rat.drawNote(f,I,s,a);dSe[N.id]=N,p.setNode(N.id,N),I.class&&I.class in m&&p.setEdge(I.id,wie(I.class),{relation:{id1:I.id,id2:I.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),oK(p),p.nodes().forEach(function(I){I!==void 0&&p.node(I)!==void 0&&(ut.debug("Node "+I+": "+JSON.stringify(p.node(I))),h.select("#"+(a.db.lookUpDomId(I)||I)).attr("transform","translate("+(p.node(I).x-p.node(I).width/2)+","+(p.node(I).y-p.node(I).height/2)+" )"))}),p.edges().forEach(function(I){I!==void 0&&p.edge(I)!==void 0&&(ut.debug("Edge "+I.v+" -> "+I.w+": "+JSON.stringify(p.edge(I))),Rat.drawEdge(f,p.edge(I),p.edge(I).relation,s,a))});const S=f.node().getBBox(),C=S.width+TEe*2,A=S.height+TEe*2;Db(f,A,C,s.useMaxWidth);const k=`${S.x-TEe} ${S.y-TEe} ${C} ${A}`;ut.debug(`viewBox ${k}`),f.attr("viewBox",k)},A2a={draw:C2a},k2a={parser:anr,db:b5e,renderer:A2a,styles:unr,init:e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute,b5e.clear()}},R2a=Object.freeze(Object.defineProperty({__proto__:null,diagram:k2a},Symbol.toStringTag,{value:"Module"})),yyt=e=>mi.sanitizeText(e,Qt());let Wht={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const I2a=function(e,t,r,a){const s=Object.keys(e);ut.info("keys:",s),ut.info(e),s.forEach(function(o){var u,h;const f=e[o],m={shape:"rect",id:f.id,domId:f.domId,labelText:yyt(f.id),labelStyle:"",style:"fill: none; stroke: black",padding:((u=Qt().flowchart)==null?void 0:u.padding)??((h=Qt().class)==null?void 0:h.padding)};t.setNode(f.id,m),dnr(f.classes,t,r,a,f.id),ut.info("setNode",m)})},dnr=function(e,t,r,a,s){const o=Object.keys(e);ut.info("keys:",o),ut.info(e),o.filter(u=>e[u].parent==s).forEach(function(u){var h,f;const p=e[u],m=p.cssClasses.join(" "),b=Hw(p.styles),_=p.label??p.id,w=0,C={labelStyle:b.labelStyle,shape:"class_box",labelText:yyt(_),classData:p,rx:w,ry:w,class:m,style:b.style,id:p.id,domId:p.domId,tooltip:a.db.getTooltip(p.id,s)||"",haveCallback:p.haveCallback,link:p.link,width:p.type==="group"?500:void 0,type:p.type,padding:((h=Qt().flowchart)==null?void 0:h.padding)??((f=Qt().class)==null?void 0:f.padding)};t.setNode(p.id,C),s&&t.setParent(p.id,s),ut.info("setNode",C)})},N2a=function(e,t,r,a){ut.info(e),e.forEach(function(s,o){var u,h;const f=s,p="",m={labelStyle:"",style:""},b=f.text,_=0,S={labelStyle:m.labelStyle,shape:"note",labelText:yyt(b),noteData:f,rx:_,ry:_,class:p,style:m.style,id:f.id,domId:f.id,tooltip:"",type:"note",padding:((u=Qt().flowchart)==null?void 0:u.padding)??((h=Qt().class)==null?void 0:h.padding)};if(t.setNode(f.id,S),ut.info("setNode",S),!f.class||!(f.class in a))return;const C=r+o,A={id:`edgeNote${C}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:fS(Wht.curve,Cg)};t.setEdge(f.id,f.class,A,C)})},O2a=function(e,t){const r=Qt().flowchart;let a=0;e.forEach(function(s){var o;a++;const u={classes:"relation",pattern:s.relation.lineType==1?"dashed":"solid",id:`id_${s.id1}_${s.id2}_${a}`,arrowhead:s.type==="arrow_open"?"none":"normal",startLabelRight:s.relationTitle1==="none"?"":s.relationTitle1,endLabelLeft:s.relationTitle2==="none"?"":s.relationTitle2,arrowTypeStart:GCn(s.relation.type1),arrowTypeEnd:GCn(s.relation.type2),style:"fill:none",labelStyle:"",curve:fS(r==null?void 0:r.curve,Cg)};if(ut.info(u,s),s.style!==void 0){const h=Hw(s.style);u.style=h.style,u.labelStyle=h.labelStyle}s.text=s.title,s.text===void 0?s.style!==void 0&&(u.arrowheadStyle="fill: #333"):(u.arrowheadStyle="fill: #333",u.labelpos="c",((o=Qt().flowchart)==null?void 0:o.htmlLabels)??Qt().htmlLabels?(u.labelType="html",u.label=''+s.text+""):(u.labelType="text",u.label=s.text.replace(mi.lineBreakRegex,` `),s.style===void 0&&(u.style=u.style||"stroke: #333; stroke-width: 1.5px;fill:none"),u.labelStyle=u.labelStyle.replace("color:","fill:"))),t.setEdge(s.id1,s.id2,u,a)})},L2a=function(e){Wht={...Wht,...e}},D2a=async function(e,t,r,a){ut.info("Drawing class - ",t);const s=Qt().flowchart??Qt().class,o=Qt().securityLevel;ut.info("config:",s);const u=(s==null?void 0:s.nodeSpacing)??50,h=(s==null?void 0:s.rankSpacing)??50,f=new F1({multigraph:!0,compound:!0}).setGraph({rankdir:a.db.getDirection(),nodesep:u,ranksep:h,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),p=a.db.getNamespaces(),m=a.db.getClasses(),b=a.db.getRelations(),_=a.db.getNotes();ut.info(b),I2a(p,f,t,a),dnr(m,f,t,a),O2a(b,f),N2a(_,f,b.length+1,m);let w;o==="sandbox"&&(w=gn("#i"+t));const S=gn(o==="sandbox"?w.nodes()[0].contentDocument.body:"body"),C=S.select(`[id="${t}"]`),A=S.select("#"+t+" g");if(await Xbt(A,f,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",t),il.insertTitle(C,"classTitleText",(s==null?void 0:s.titleTopMargin)??5,a.db.getDiagramTitle()),oL(f,C,s==null?void 0:s.diagramPadding,s==null?void 0:s.useMaxWidth),!(s!=null&&s.htmlLabels)){const k=o==="sandbox"?w.nodes()[0].contentDocument:document,I=k.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const N of I){const L=N.getBBox(),P=k.createElementNS("http://www.w3.org/2000/svg","rect");P.setAttribute("rx",0),P.setAttribute("ry",0),P.setAttribute("width",L.width),P.setAttribute("height",L.height),N.insertBefore(P,N.firstChild)}}};function GCn(e){let t;switch(e){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;case 4:t="lollipop";break;default:t="none"}return t}const M2a={setConf:L2a,draw:D2a},P2a={parser:anr,db:b5e,renderer:M2a,styles:unr,init:e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute,b5e.clear()}},B2a=Object.freeze(Object.defineProperty({__proto__:null,diagram:P2a},Symbol.toStringTag,{value:"Module"}));var Kht=function(){var e=function(V,j,ee,te){for(ee=ee||{},te=V.length;te--;ee[V[te]]=j);return ee},t=[1,2],r=[1,3],a=[1,4],s=[2,4],o=[1,9],u=[1,11],h=[1,15],f=[1,16],p=[1,17],m=[1,18],b=[1,30],_=[1,19],w=[1,20],S=[1,21],C=[1,22],A=[1,23],k=[1,25],I=[1,26],N=[1,27],L=[1,28],P=[1,29],M=[1,32],F=[1,33],U=[1,34],$=[1,35],G=[1,31],B=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Z=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],z=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Y={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(j,ee,te,ne,se,ie,ge){var ce=ie.length-1;switch(se){case 3:return ne.setRootDoc(ie[ce]),ie[ce];case 4:this.$=[];break;case 5:ie[ce]!="nl"&&(ie[ce-1].push(ie[ce]),this.$=ie[ce-1]);break;case 6:case 7:this.$=ie[ce];break;case 8:this.$="nl";break;case 11:this.$=ie[ce];break;case 12:const ye=ie[ce-1];ye.description=ne.trimColon(ie[ce]),this.$=ye;break;case 13:this.$={stmt:"relation",state1:ie[ce-2],state2:ie[ce]};break;case 14:const Ee=ne.trimColon(ie[ce]);this.$={stmt:"relation",state1:ie[ce-3],state2:ie[ce-1],description:Ee};break;case 18:this.$={stmt:"state",id:ie[ce-3],type:"default",description:"",doc:ie[ce-1]};break;case 19:var be=ie[ce],ve=ie[ce-2].trim();if(ie[ce].match(":")){var De=ie[ce].split(":");be=De[0],ve=[ve,De[1]]}this.$={stmt:"state",id:be,type:"default",description:ve};break;case 20:this.$={stmt:"state",id:ie[ce-3],type:"default",description:ie[ce-5],doc:ie[ce-1]};break;case 21:this.$={stmt:"state",id:ie[ce],type:"fork"};break;case 22:this.$={stmt:"state",id:ie[ce],type:"join"};break;case 23:this.$={stmt:"state",id:ie[ce],type:"choice"};break;case 24:this.$={stmt:"state",id:ne.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:ie[ce-1].trim(),note:{position:ie[ce-2].trim(),text:ie[ce].trim()}};break;case 28:this.$=ie[ce].trim(),ne.setAccTitle(this.$);break;case 29:case 30:this.$=ie[ce].trim(),ne.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:ie[ce-1].trim(),classes:ie[ce].trim()};break;case 33:this.$={stmt:"applyClass",id:ie[ce-1].trim(),styleClass:ie[ce].trim()};break;case 34:ne.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:ne.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:ne.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:ne.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:ie[ce].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:ie[ce-2].trim(),classes:[ie[ce].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:ie[ce-2].trim(),classes:[ie[ce].trim()],type:"default",description:""};break}},table:[{3:1,4:t,5:r,6:a},{1:[3]},{3:5,4:t,5:r,6:a},{3:6,4:t,5:r,6:a},e([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:u,8:8,9:10,10:12,11:13,12:14,15:h,16:f,18:p,21:m,23:b,24:_,25:w,26:S,27:C,28:A,31:24,32:k,34:I,36:N,37:L,41:P,44:M,45:F,46:U,47:$,50:G},e(B,[2,5]),{9:36,10:12,11:13,12:14,15:h,16:f,18:p,21:m,23:b,24:_,25:w,26:S,27:C,28:A,31:24,32:k,34:I,36:N,37:L,41:P,44:M,45:F,46:U,47:$,50:G},e(B,[2,7]),e(B,[2,8]),e(B,[2,9]),e(B,[2,10]),e(B,[2,11],{13:[1,37],14:[1,38]}),e(B,[2,15]),{17:[1,39]},e(B,[2,17],{19:[1,40]}),{22:[1,41]},e(B,[2,21]),e(B,[2,22]),e(B,[2,23]),e(B,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},e(B,[2,27]),{33:[1,46]},{35:[1,47]},e(B,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},e(Z,[2,40],{51:[1,51]}),e(Z,[2,41],{51:[1,52]}),e(B,[2,34]),e(B,[2,35]),e(B,[2,36]),e(B,[2,37]),e(B,[2,6]),e(B,[2,12]),{12:53,23:b,50:G},e(B,[2,16]),e(z,s,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},e(B,[2,28]),e(B,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},e(B,[2,13],{13:[1,63]}),{4:o,5:u,8:8,9:10,10:12,11:13,12:14,15:h,16:f,18:p,20:[1,64],21:m,23:b,24:_,25:w,26:S,27:C,28:A,31:24,32:k,34:I,36:N,37:L,41:P,44:M,45:F,46:U,47:$,50:G},e(B,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},e(B,[2,31]),e(B,[2,32]),e(B,[2,33]),e(Z,[2,42]),e(Z,[2,43]),e(B,[2,14]),e(B,[2,18]),e(z,s,{7:68}),e(B,[2,25]),e(B,[2,26]),{4:o,5:u,8:8,9:10,10:12,11:13,12:14,15:h,16:f,18:p,20:[1,69],21:m,23:b,24:_,25:w,26:S,27:C,28:A,31:24,32:k,34:I,36:N,37:L,41:P,44:M,45:F,46:U,47:$,50:G},e(B,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(j,ee){if(ee.recoverable)this.trace(j);else{var te=new Error(j);throw te.hash=ee,te}},parse:function(j){var ee=this,te=[0],ne=[],se=[null],ie=[],ge=this.table,ce="",be=0,ve=0,De=2,ye=1,Ee=ie.slice.call(arguments,1),he=Object.create(this.lexer),we={yy:{}};for(var Ce in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ce)&&(we.yy[Ce]=this.yy[Ce]);he.setInput(j,we.yy),we.yy.lexer=he,we.yy.parser=this,typeof he.yylloc>"u"&&(he.yylloc={});var Ie=he.yylloc;ie.push(Ie);var Le=he.options&&he.options.ranges;typeof we.yy.parseError=="function"?this.parseError=we.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Fe(){var qe;return qe=ne.pop()||he.lex()||ye,typeof qe!="number"&&(qe instanceof Array&&(ne=qe,qe=ne.pop()),qe=ee.symbols_[qe]||qe),qe}for(var Ve,Oe,Dt,ot,sn={},Kt,Ft,Je,ht;;){if(Oe=te[te.length-1],this.defaultActions[Oe]?Dt=this.defaultActions[Oe]:((Ve===null||typeof Ve>"u")&&(Ve=Fe()),Dt=ge[Oe]&&ge[Oe][Ve]),typeof Dt>"u"||!Dt.length||!Dt[0]){var et="";ht=[];for(Kt in ge[Oe])this.terminals_[Kt]&&Kt>De&&ht.push("'"+this.terminals_[Kt]+"'");he.showPosition?et="Parse error on line "+(be+1)+`: `+he.showPosition()+` Expecting `+ht.join(", ")+", got '"+(this.terminals_[Ve]||Ve)+"'":et="Parse error on line "+(be+1)+": Unexpected "+(Ve==ye?"end of input":"'"+(this.terminals_[Ve]||Ve)+"'"),this.parseError(et,{text:he.match,token:this.terminals_[Ve]||Ve,line:he.yylineno,loc:Ie,expected:ht})}if(Dt[0]instanceof Array&&Dt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Oe+", token: "+Ve);switch(Dt[0]){case 1:te.push(Ve),se.push(he.yytext),ie.push(he.yylloc),te.push(Dt[1]),Ve=null,ve=he.yyleng,ce=he.yytext,be=he.yylineno,Ie=he.yylloc;break;case 2:if(Ft=this.productions_[Dt[1]][1],sn.$=se[se.length-Ft],sn._$={first_line:ie[ie.length-(Ft||1)].first_line,last_line:ie[ie.length-1].last_line,first_column:ie[ie.length-(Ft||1)].first_column,last_column:ie[ie.length-1].last_column},Le&&(sn._$.range=[ie[ie.length-(Ft||1)].range[0],ie[ie.length-1].range[1]]),ot=this.performAction.apply(sn,[ce,ve,be,we.yy,Dt[1],se,ie].concat(Ee)),typeof ot<"u")return ot;Ft&&(te=te.slice(0,-1*Ft*2),se=se.slice(0,-1*Ft),ie=ie.slice(0,-1*Ft)),te.push(this.productions_[Dt[1]][0]),se.push(sn.$),ie.push(sn._$),Je=ge[te[te.length-2]][te[te.length-1]],te.push(Je);break;case 3:return!0}}return!0}},W=function(){var V={EOF:1,parseError:function(ee,te){if(this.yy.parser)this.yy.parser.parseError(ee,te);else throw new Error(ee)},setInput:function(j,ee){return this.yy=ee||this.yy||{},this._input=j,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var j=this._input[0];this.yytext+=j,this.yyleng++,this.offset++,this.match+=j,this.matched+=j;var ee=j.match(/(?:\r\n?|\n).*/g);return ee?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),j},unput:function(j){var ee=j.length,te=j.split(/(?:\r\n?|\n)/g);this._input=j+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ee),this.offset-=ee;var ne=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),te.length-1&&(this.yylineno-=te.length-1);var se=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:te?(te.length===ne.length?this.yylloc.first_column:0)+ne[ne.length-te.length].length-te[0].length:this.yylloc.first_column-ee},this.options.ranges&&(this.yylloc.range=[se[0],se[0]+this.yyleng-ee]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(j){this.unput(this.match.slice(j))},pastInput:function(){var j=this.matched.substr(0,this.matched.length-this.match.length);return(j.length>20?"...":"")+j.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var j=this.match;return j.length<20&&(j+=this._input.substr(0,20-j.length)),(j.substr(0,20)+(j.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var j=this.pastInput(),ee=new Array(j.length+1).join("-");return j+this.upcomingInput()+` `+ee+"^"},test_match:function(j,ee){var te,ne,se;if(this.options.backtrack_lexer&&(se={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(se.yylloc.range=this.yylloc.range.slice(0))),ne=j[0].match(/(?:\r\n?|\n).*/g),ne&&(this.yylineno+=ne.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ne?ne[ne.length-1].length-ne[ne.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+j[0].length},this.yytext+=j[0],this.match+=j[0],this.matches=j,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(j[0].length),this.matched+=j[0],te=this.performAction.call(this,this.yy,this,ee,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),te)return te;if(this._backtrack){for(var ie in se)this[ie]=se[ie];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var j,ee,te,ne;this._more||(this.yytext="",this.match="");for(var se=this._currentRules(),ie=0;ieee[0].length)){if(ee=te,ne=ie,this.options.backtrack_lexer){if(j=this.test_match(te,se[ie]),j!==!1)return j;if(this._backtrack){ee=!1;continue}else return!1}else if(!this.options.flex)break}return ee?(j=this.test_match(ee,se[ne]),j!==!1?j:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ee=this.next();return ee||this.lex()},begin:function(ee){this.conditionStack.push(ee)},popState:function(){var ee=this.conditionStack.length-1;return ee>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ee){return ee=this.conditionStack.length-1-Math.abs(ee||0),ee>=0?this.conditionStack[ee]:"INITIAL"},pushState:function(ee){this.begin(ee)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ee,te,ne,se){switch(ne){case 0:return 40;case 1:return 44;case 2:return 45;case 3:return 46;case 4:return 47;case 5:break;case 6:break;case 7:return 5;case 8:break;case 9:break;case 10:break;case 11:break;case 12:return this.pushState("SCALE"),16;case 13:return 17;case 14:this.popState();break;case 15:return this.begin("acc_title"),32;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),34;case 18:return this.popState(),"acc_descr_value";case 19:this.begin("acc_descr_multiline");break;case 20:this.popState();break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),37;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),38;case 25:return this.popState(),39;case 26:return this.pushState("CLASS"),41;case 27:return this.popState(),this.pushState("CLASS_STYLE"),42;case 28:return this.popState(),43;case 29:return this.pushState("SCALE"),16;case 30:return 17;case 31:this.popState();break;case 32:this.pushState("STATE");break;case 33:return this.popState(),te.yytext=te.yytext.slice(0,-8).trim(),24;case 34:return this.popState(),te.yytext=te.yytext.slice(0,-8).trim(),25;case 35:return this.popState(),te.yytext=te.yytext.slice(0,-10).trim(),26;case 36:return this.popState(),te.yytext=te.yytext.slice(0,-8).trim(),24;case 37:return this.popState(),te.yytext=te.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),te.yytext=te.yytext.slice(0,-10).trim(),26;case 39:return 44;case 40:return 45;case 41:return 46;case 42:return 47;case 43:this.pushState("STATE_STRING");break;case 44:return this.pushState("STATE_ID"),"AS";case 45:return this.popState(),"ID";case 46:this.popState();break;case 47:return"STATE_DESCR";case 48:return 18;case 49:this.popState();break;case 50:return this.popState(),this.pushState("struct"),19;case 51:break;case 52:return this.popState(),20;case 53:break;case 54:return this.begin("NOTE"),28;case 55:return this.popState(),this.pushState("NOTE_ID"),52;case 56:return this.popState(),this.pushState("NOTE_ID"),53;case 57:this.popState(),this.pushState("FLOATING_NOTE");break;case 58:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 59:break;case 60:return"NOTE_TEXT";case 61:return this.popState(),"ID";case 62:return this.popState(),this.pushState("NOTE_TEXT"),23;case 63:return this.popState(),te.yytext=te.yytext.substr(2).trim(),30;case 64:return this.popState(),te.yytext=te.yytext.slice(0,-8).trim(),30;case 65:return 6;case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return te.yytext=te.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 74:return 5;case 75:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},struct:{rules:[9,10,22,26,32,39,40,41,42,51,52,53,54,68,69,70,71,72],inclusive:!1},FLOATING_NOTE_ID:{rules:[61],inclusive:!1},FLOATING_NOTE:{rules:[58,59,60],inclusive:!1},NOTE_TEXT:{rules:[63,64],inclusive:!1},NOTE_ID:{rules:[62],inclusive:!1},NOTE:{rules:[55,56,57],inclusive:!1},CLASS_STYLE:{rules:[28],inclusive:!1},CLASS:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[25],inclusive:!1},CLASSDEF:{rules:[23,24],inclusive:!1},acc_descr_multiline:{rules:[20,21],inclusive:!1},acc_descr:{rules:[18],inclusive:!1},acc_title:{rules:[16],inclusive:!1},SCALE:{rules:[13,14,30,31],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[45],inclusive:!1},STATE_STRING:{rules:[46,47],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,33,34,35,36,37,38,43,44,48,49,50],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,50,54,65,66,67,68,69,70,71,73,74,75],inclusive:!0}}};return V}();Y.lexer=W;function Q(){this.yy={}}return Q.prototype=Y,Y.Parser=Q,new Q}();Kht.parser=Kht;const fnr=Kht,F2a="LR",$2a="TB",y5e="state",vyt="relation",U2a="classDef",z2a="applyClass",aue="default",pnr="divider",_yt="[*]",gnr="start",mnr=_yt,bnr="end",qCn="color",HCn="fill",G2a="bgFill",q2a=",";function ynr(){return{}}let vnr=F2a,v5e=[],Fse=ynr();const _nr=()=>({relations:[],states:{},documents:{}});let _5e={root:_nr()},vb=_5e.root,kle=0,VCn=0;const H2a={LINE:0,DOTTED_LINE:1},V2a={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},CEe=e=>JSON.parse(JSON.stringify(e)),Y2a=e=>{ut.info("Setting root doc",e),v5e=e},j2a=()=>v5e,fSe=(e,t,r)=>{if(t.stmt===vyt)fSe(e,t.state1,!0),fSe(e,t.state2,!1);else if(t.stmt===y5e&&(t.id==="[*]"?(t.id=r?e.id+"_start":e.id+"_end",t.start=r):t.id=t.id.trim()),t.doc){const a=[];let s=[],o;for(o=0;o0&&s.length>0){const u={stmt:y5e,id:ZQn(),type:"divider",doc:CEe(s)};a.push(CEe(u)),t.doc=a}t.doc.forEach(u=>fSe(t,u,!0))}},W2a=()=>(fSe({id:"root"},{id:"root",doc:v5e},!0),{id:"root",doc:v5e}),K2a=e=>{let t;e.doc?t=e.doc:t=e,ut.info(t),wnr(!0),ut.info("Extract",t),t.forEach(r=>{switch(r.stmt){case y5e:p$(r.id.trim(),r.type,r.doc,r.description,r.note,r.classes,r.styles,r.textStyles);break;case vyt:Enr(r.state1,r.state2,r.description);break;case U2a:xnr(r.id.trim(),r.classes);break;case z2a:wyt(r.id.trim(),r.styleClass);break}})},p$=function(e,t=aue,r=null,a=null,s=null,o=null,u=null,h=null){const f=e==null?void 0:e.trim();vb.states[f]===void 0?(ut.info("Adding state ",f,a),vb.states[f]={id:f,descriptions:[],type:t,doc:r,note:s,classes:[],styles:[],textStyles:[]}):(vb.states[f].doc||(vb.states[f].doc=r),vb.states[f].type||(vb.states[f].type=t)),a&&(ut.info("Setting state description",f,a),typeof a=="string"&&Zht(f,a.trim()),typeof a=="object"&&a.forEach(p=>Zht(f,p.trim()))),s&&(vb.states[f].note=s,vb.states[f].note.text=mi.sanitizeText(vb.states[f].note.text,Qt())),o&&(ut.info("Setting state classes",f,o),(typeof o=="string"?[o]:o).forEach(m=>wyt(f,m.trim()))),u&&(ut.info("Setting state styles",f,u),(typeof u=="string"?[u]:u).forEach(m=>a_a(f,m.trim()))),h&&(ut.info("Setting state styles",f,u),(typeof h=="string"?[h]:h).forEach(m=>s_a(f,m.trim())))},wnr=function(e){_5e={root:_nr()},vb=_5e.root,kle=0,Fse=ynr(),e||Mb()},Rle=function(e){return vb.states[e]},X2a=function(){return vb.states},Q2a=function(){ut.info("Documents = ",_5e)},Z2a=function(){return vb.relations};function Xht(e=""){let t=e;return e===_yt&&(kle++,t=`${gnr}${kle}`),t}function Qht(e="",t=aue){return e===_yt?gnr:t}function J2a(e=""){let t=e;return e===mnr&&(kle++,t=`${bnr}${kle}`),t}function e_a(e="",t=aue){return e===mnr?bnr:t}function t_a(e,t,r){let a=Xht(e.id.trim()),s=Qht(e.id.trim(),e.type),o=Xht(t.id.trim()),u=Qht(t.id.trim(),t.type);p$(a,s,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),p$(o,u,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),vb.relations.push({id1:a,id2:o,relationTitle:mi.sanitizeText(r,Qt())})}const Enr=function(e,t,r){if(typeof e=="object")t_a(e,t,r);else{const a=Xht(e.trim()),s=Qht(e),o=J2a(t.trim()),u=e_a(t);p$(a,s),p$(o,u),vb.relations.push({id1:a,id2:o,title:mi.sanitizeText(r,Qt())})}},Zht=function(e,t){const r=vb.states[e],a=t.startsWith(":")?t.replace(":","").trim():t;r.descriptions.push(mi.sanitizeText(a,Qt()))},n_a=function(e){return e.substring(0,1)===":"?e.substr(2).trim():e.trim()},r_a=()=>(VCn++,"divider-id-"+VCn),xnr=function(e,t=""){Fse[e]===void 0&&(Fse[e]={id:e,styles:[],textStyles:[]});const r=Fse[e];t!=null&&t.split(q2a).forEach(a=>{const s=a.replace(/([^;]*);/,"$1").trim();if(a.match(qCn)){const u=s.replace(HCn,G2a).replace(qCn,HCn);r.textStyles.push(u)}r.styles.push(s)})},i_a=function(){return Fse},wyt=function(e,t){e.split(",").forEach(function(r){let a=Rle(r);if(a===void 0){const s=r.trim();p$(s),a=Rle(s)}a.classes.push(t)})},a_a=function(e,t){const r=Rle(e);r!==void 0&&r.textStyles.push(t)},s_a=function(e,t){const r=Rle(e);r!==void 0&&r.textStyles.push(t)},o_a=()=>vnr,l_a=e=>{vnr=e},c_a=e=>e&&e[0]===":"?e.substr(1).trim():e.trim(),w7={getConfig:()=>Qt().state,addState:p$,clear:wnr,getState:Rle,getStates:X2a,getRelations:Z2a,getClasses:i_a,getDirection:o_a,addRelation:Enr,getDividerId:r_a,setDirection:l_a,cleanupLabel:n_a,lineType:H2a,relationType:V2a,logDocuments:Q2a,getRootDoc:j2a,setRootDoc:Y2a,getRootDocV2:W2a,extract:K2a,trimColon:c_a,getAccTitle:Ev,setAccTitle:Pb,getAccDescription:Sv,setAccDescription:xv,addStyleClass:xnr,setCssClass:wyt,addDescription:Zht,setDiagramTitle:Zw,getDiagramTitle:Tv},u_a=e=>` defs #statediagram-barbEnd { fill: ${e.transitionColor}; stroke: ${e.transitionColor}; } g.stateGroup text { fill: ${e.nodeBorder}; stroke: none; font-size: 10px; } g.stateGroup text { fill: ${e.textColor}; stroke: none; font-size: 10px; } g.stateGroup .state-title { font-weight: bolder; fill: ${e.stateLabelColor}; } g.stateGroup rect { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; } g.stateGroup line { stroke: ${e.lineColor}; stroke-width: 1; } .transition { stroke: ${e.transitionColor}; stroke-width: 1; fill: none; } .stateGroup .composit { fill: ${e.background}; border-bottom: 1px } .stateGroup .alt-composit { fill: #e0e0e0; border-bottom: 1px } .state-note { stroke: ${e.noteBorderColor}; fill: ${e.noteBkgColor}; text { fill: ${e.noteTextColor}; stroke: none; font-size: 10px; } } .stateLabel .box { stroke: none; stroke-width: 0; fill: ${e.mainBkg}; opacity: 0.5; } .edgeLabel .label rect { fill: ${e.labelBackgroundColor}; opacity: 0.5; } .edgeLabel .label text { fill: ${e.transitionLabelColor||e.tertiaryTextColor}; } .label div .edgeLabel { color: ${e.transitionLabelColor||e.tertiaryTextColor}; } .stateLabel text { fill: ${e.stateLabelColor}; font-size: 10px; font-weight: bold; } .node circle.state-start { fill: ${e.specialStateColor}; stroke: ${e.specialStateColor}; } .node .fork-join { fill: ${e.specialStateColor}; stroke: ${e.specialStateColor}; } .node circle.state-end { fill: ${e.innerEndBackground}; stroke: ${e.background}; stroke-width: 1.5 } .end-state-inner { fill: ${e.compositeBackground||e.background}; // stroke: ${e.background}; stroke-width: 1.5 } .node rect { fill: ${e.stateBkg||e.mainBkg}; stroke: ${e.stateBorder||e.nodeBorder}; stroke-width: 1px; } .node polygon { fill: ${e.mainBkg}; stroke: ${e.stateBorder||e.nodeBorder};; stroke-width: 1px; } #statediagram-barbEnd { fill: ${e.lineColor}; } .statediagram-cluster rect { fill: ${e.compositeTitleBackground}; stroke: ${e.stateBorder||e.nodeBorder}; stroke-width: 1px; } .cluster-label, .nodeLabel { color: ${e.stateLabelColor}; } .statediagram-cluster rect.outer { rx: 5px; ry: 5px; } .statediagram-state .divider { stroke: ${e.stateBorder||e.nodeBorder}; } .statediagram-state .title-state { rx: 5px; ry: 5px; } .statediagram-cluster.statediagram-cluster .inner { fill: ${e.compositeBackground||e.background}; } .statediagram-cluster.statediagram-cluster-alt .inner { fill: ${e.altBackground?e.altBackground:"#efefef"}; } .statediagram-cluster .inner { rx:0; ry:0; } .statediagram-state rect.basic { rx: 5px; ry: 5px; } .statediagram-state rect.divider { stroke-dasharray: 10,10; fill: ${e.altBackground?e.altBackground:"#efefef"}; } .note-edge { stroke-dasharray: 5; } .statediagram-note rect { fill: ${e.noteBkgColor}; stroke: ${e.noteBorderColor}; stroke-width: 1px; rx: 0; ry: 0; } .statediagram-note rect { fill: ${e.noteBkgColor}; stroke: ${e.noteBorderColor}; stroke-width: 1px; rx: 0; ry: 0; } .statediagram-note text { fill: ${e.noteTextColor}; } .statediagram-note .nodeLabel { color: ${e.noteTextColor}; } .statediagram .edgeLabel { color: red; // ${e.noteTextColor}; } #dependencyStart, #dependencyEnd { fill: ${e.lineColor}; stroke: ${e.lineColor}; stroke-width: 1; } .statediagramTitleText { text-anchor: middle; font-size: 18px; fill: ${e.textColor}; } `,Snr=u_a,h_a=e=>e.append("circle").attr("class","start-state").attr("r",Qt().state.sizeUnit).attr("cx",Qt().state.padding+Qt().state.sizeUnit).attr("cy",Qt().state.padding+Qt().state.sizeUnit),d_a=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Qt().state.textHeight).attr("class","divider").attr("x2",Qt().state.textHeight*2).attr("y1",0).attr("y2",0),f_a=(e,t)=>{const r=e.append("text").attr("x",2*Qt().state.padding).attr("y",Qt().state.textHeight+2*Qt().state.padding).attr("font-size",Qt().state.fontSize).attr("class","state-title").text(t.id),a=r.node().getBBox();return e.insert("rect",":first-child").attr("x",Qt().state.padding).attr("y",Qt().state.padding).attr("width",a.width+2*Qt().state.padding).attr("height",a.height+2*Qt().state.padding).attr("rx",Qt().state.radius),r},p_a=(e,t)=>{const r=function(_,w,S){const C=_.append("tspan").attr("x",2*Qt().state.padding).text(w);S||C.attr("dy",Qt().state.textHeight)},s=e.append("text").attr("x",2*Qt().state.padding).attr("y",Qt().state.textHeight+1.3*Qt().state.padding).attr("font-size",Qt().state.fontSize).attr("class","state-title").text(t.descriptions[0]).node().getBBox(),o=s.height,u=e.append("text").attr("x",Qt().state.padding).attr("y",o+Qt().state.padding*.4+Qt().state.dividerMargin+Qt().state.textHeight).attr("class","state-description");let h=!0,f=!0;t.descriptions.forEach(function(_){h||(r(u,_,f),f=!1),h=!1});const p=e.append("line").attr("x1",Qt().state.padding).attr("y1",Qt().state.padding+o+Qt().state.dividerMargin/2).attr("y2",Qt().state.padding+o+Qt().state.dividerMargin/2).attr("class","descr-divider"),m=u.node().getBBox(),b=Math.max(m.width,s.width);return p.attr("x2",b+3*Qt().state.padding),e.insert("rect",":first-child").attr("x",Qt().state.padding).attr("y",Qt().state.padding).attr("width",b+2*Qt().state.padding).attr("height",m.height+o+2*Qt().state.padding).attr("rx",Qt().state.radius),e},g_a=(e,t,r)=>{const a=Qt().state.padding,s=2*Qt().state.padding,o=e.node().getBBox(),u=o.width,h=o.x,f=e.append("text").attr("x",0).attr("y",Qt().state.titleShift).attr("font-size",Qt().state.fontSize).attr("class","state-title").text(t.id),m=f.node().getBBox().width+s;let b=Math.max(m,u);b===u&&(b=b+s);let _;const w=e.node().getBBox();t.doc,_=h-a,m>u&&(_=(u-b)/2+a),Math.abs(h-w.x)u&&(_=h-(m-u)/2);const S=1-Qt().state.textHeight;return e.insert("rect",":first-child").attr("x",_).attr("y",S).attr("class",r?"alt-composit":"composit").attr("width",b).attr("height",w.height+Qt().state.textHeight+Qt().state.titleShift+1).attr("rx","0"),f.attr("x",_+a),m<=u&&f.attr("x",h+(b-s)/2-m/2+a),e.insert("rect",":first-child").attr("x",_).attr("y",Qt().state.titleShift-Qt().state.textHeight-Qt().state.padding).attr("width",b).attr("height",Qt().state.textHeight*3).attr("rx",Qt().state.radius),e.insert("rect",":first-child").attr("x",_).attr("y",Qt().state.titleShift-Qt().state.textHeight-Qt().state.padding).attr("width",b).attr("height",w.height+3+2*Qt().state.textHeight).attr("rx",Qt().state.radius),e},m_a=e=>(e.append("circle").attr("class","end-state-outer").attr("r",Qt().state.sizeUnit+Qt().state.miniPadding).attr("cx",Qt().state.padding+Qt().state.sizeUnit+Qt().state.miniPadding).attr("cy",Qt().state.padding+Qt().state.sizeUnit+Qt().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",Qt().state.sizeUnit).attr("cx",Qt().state.padding+Qt().state.sizeUnit+2).attr("cy",Qt().state.padding+Qt().state.sizeUnit+2)),b_a=(e,t)=>{let r=Qt().state.forkWidth,a=Qt().state.forkHeight;if(t.parentId){let s=r;r=a,a=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",a).attr("x",Qt().state.padding).attr("y",Qt().state.padding)},y_a=(e,t,r,a)=>{let s=0;const o=a.append("text");o.style("text-anchor","start"),o.attr("class","noteText");let u=e.replace(/\r\n/g,"
    ");u=u.replace(/\n/g,"
    ");const h=u.split(mi.lineBreakRegex);let f=1.25*Qt().state.noteMargin;for(const p of h){const m=p.trim();if(m.length>0){const b=o.append("tspan");if(b.text(m),f===0){const _=b.node().getBBox();f+=_.height}s+=f,b.attr("x",t+Qt().state.noteMargin),b.attr("y",r+s+1.25*Qt().state.noteMargin)}}return{textWidth:o.node().getBBox().width,textHeight:s}},v_a=(e,t)=>{t.attr("class","state-note");const r=t.append("rect").attr("x",0).attr("y",Qt().state.padding),a=t.append("g"),{textWidth:s,textHeight:o}=y_a(e,0,0,a);return r.attr("height",o+2*Qt().state.noteMargin),r.attr("width",s+Qt().state.noteMargin*2),r},YCn=function(e,t){const r=t.id,a={id:r,label:t.id,width:0,height:0},s=e.append("g").attr("id",r).attr("class","stateGroup");t.type==="start"&&h_a(s),t.type==="end"&&m_a(s),(t.type==="fork"||t.type==="join")&&b_a(s,t),t.type==="note"&&v_a(t.note.text,s),t.type==="divider"&&d_a(s),t.type==="default"&&t.descriptions.length===0&&f_a(s,t),t.type==="default"&&t.descriptions.length>0&&p_a(s,t);const o=s.node().getBBox();return a.width=o.width+2*Qt().state.padding,a.height=o.height+2*Qt().state.padding,a};let jCn=0;const __a=function(e,t,r){const a=function(f){switch(f){case w7.relationType.AGGREGATION:return"aggregation";case w7.relationType.EXTENSION:return"extension";case w7.relationType.COMPOSITION:return"composition";case w7.relationType.DEPENDENCY:return"dependency"}};t.points=t.points.filter(f=>!Number.isNaN(f.y));const s=t.points,o=r_().x(function(f){return f.x}).y(function(f){return f.y}).curve(j3),u=e.append("path").attr("d",o(s)).attr("id","edge"+jCn).attr("class","transition");let h="";if(Qt().state.arrowMarkerAbsolute&&(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,h=h.replace(/\(/g,"\\("),h=h.replace(/\)/g,"\\)")),u.attr("marker-end","url("+h+"#"+a(w7.relationType.DEPENDENCY)+"End)"),r.title!==void 0){const f=e.append("g").attr("class","stateLabel"),{x:p,y:m}=il.calcLabelPosition(t.points),b=mi.getRows(r.title);let _=0;const w=[];let S=0,C=0;for(let I=0;I<=b.length;I++){const N=f.append("text").attr("text-anchor","middle").text(b[I]).attr("x",p).attr("y",m+_),L=N.node().getBBox();S=Math.max(S,L.width),C=Math.min(C,L.x),ut.info(L.x,p,m+_),_===0&&(_=N.node().getBBox().height,ut.info("Title height",_,m)),w.push(N)}let A=_*b.length;if(b.length>1){const I=(b.length-1)*_*.5;w.forEach((N,L)=>N.attr("y",m+L*_-I)),A=_*b.length}const k=f.node().getBBox();f.insert("rect",":first-child").attr("class","box").attr("x",p-S/2-Qt().state.padding/2).attr("y",m-A/2-Qt().state.padding/2-3.5).attr("width",S+Qt().state.padding).attr("height",A+Qt().state.padding),ut.info(k)}jCn++};let kw;const Iat={},w_a=function(){},E_a=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},x_a=function(e,t,r,a){kw=Qt().state;const s=Qt().securityLevel;let o;s==="sandbox"&&(o=gn("#i"+t));const u=gn(s==="sandbox"?o.nodes()[0].contentDocument.body:"body"),h=s==="sandbox"?o.nodes()[0].contentDocument:document;ut.debug("Rendering diagram "+e);const f=u.select(`[id='${t}']`);E_a(f);const p=a.db.getRootDoc();Tnr(p,f,void 0,!1,u,h,a);const m=kw.padding,b=f.node().getBBox(),_=b.width+m*2,w=b.height+m*2,S=_*1.75;Db(f,w,S,kw.useMaxWidth),f.attr("viewBox",`${b.x-kw.padding} ${b.y-kw.padding} `+_+" "+w)},S_a=e=>e?e.length*kw.fontSizeFactor:1,Tnr=(e,t,r,a,s,o,u)=>{const h=new F1({compound:!0,multigraph:!0});let f,p=!0;for(f=0;f{const L=N.parentElement;let P=0,M=0;L&&(L.parentElement&&(P=L.parentElement.getBBox().width),M=parseInt(L.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),N.setAttribute("x1",0-M+8),N.setAttribute("x2",P-M-8)})):ut.debug("No Node "+k+": "+JSON.stringify(h.node(k)))});let C=S.getBBox();h.edges().forEach(function(k){k!==void 0&&h.edge(k)!==void 0&&(ut.debug("Edge "+k.v+" -> "+k.w+": "+JSON.stringify(h.edge(k))),__a(t,h.edge(k),h.edge(k).relation))}),C=S.getBBox();const A={id:r||"root",label:r||"root",width:0,height:0};return A.width=C.width+2*kw.padding,A.height=C.height+2*kw.padding,ut.debug("Doc rendered",A,h),A},T_a={setConf:w_a,draw:x_a},C_a={parser:fnr,db:w7,renderer:T_a,styles:Snr,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,w7.clear()}},A_a=Object.freeze(Object.defineProperty({__proto__:null,diagram:C_a},Symbol.toStringTag,{value:"Module"})),pSe="rect",Nat="rectWithTitle",k_a="start",R_a="end",I_a="divider",N_a="roundedWithTitle",O_a="note",L_a="noteGroup",dW="statediagram",D_a="state",M_a=`${dW}-${D_a}`,Cnr="transition",P_a="note",B_a="note-edge",F_a=`${Cnr} ${B_a}`,$_a=`${dW}-${P_a}`,U_a="cluster",z_a=`${dW}-${U_a}`,G_a="cluster-alt",q_a=`${dW}-${G_a}`,Anr="parent",knr="note",H_a="state",Eyt="----",V_a=`${Eyt}${knr}`,WCn=`${Eyt}${Anr}`,Rnr="fill:none",Inr="fill: #333",Nnr="c",Onr="text",Lnr="normal";let gSe={},aO=0;const Y_a=function(e){const t=Object.keys(e);for(const r of t)e[r]},j_a=function(e,t){return t.db.extract(t.db.getRootDocV2()),t.db.getClasses()};function W_a(e){return e==null?"":e.classes?e.classes.join(" "):""}function Oat(e="",t=0,r="",a=Eyt){const s=r!==null&&r.length>0?`${a}${r}`:"";return`${H_a}-${e}${s}-${t}`}const qae=(e,t,r,a,s,o)=>{const u=r.id,h=W_a(a[u]);if(u!=="root"){let f=pSe;r.start===!0&&(f=k_a),r.start===!1&&(f=R_a),r.type!==aue&&(f=r.type),gSe[u]||(gSe[u]={id:u,shape:f,description:mi.sanitizeText(u,Qt()),classes:`${h} ${M_a}`});const p=gSe[u];r.description&&(Array.isArray(p.description)?(p.shape=Nat,p.description.push(r.description)):p.description.length>0?(p.shape=Nat,p.description===u?p.description=[r.description]:p.description=[p.description,r.description]):(p.shape=pSe,p.description=r.description),p.description=mi.sanitizeTextOrArray(p.description,Qt())),p.description.length===1&&p.shape===Nat&&(p.shape=pSe),!p.type&&r.doc&&(ut.info("Setting cluster for ",u,Jht(r)),p.type="group",p.dir=Jht(r),p.shape=r.type===pnr?I_a:N_a,p.classes=p.classes+" "+z_a+" "+(o?q_a:""));const m={labelStyle:"",shape:p.shape,labelText:p.description,classes:p.classes,style:"",id:u,dir:p.dir,domId:Oat(u,aO),type:p.type,padding:15};if(m.centerLabel=!0,r.note){const b={labelStyle:"",shape:O_a,labelText:r.note.text,classes:$_a,style:"",id:u+V_a+"-"+aO,domId:Oat(u,aO,knr),type:p.type,padding:15},_={labelStyle:"",shape:L_a,labelText:r.note.text,classes:p.classes,style:"",id:u+WCn,domId:Oat(u,aO,Anr),type:"group",padding:0};aO++;const w=u+WCn;e.setNode(w,_),e.setNode(b.id,b),e.setNode(u,m),e.setParent(u,w),e.setParent(b.id,w);let S=u,C=b.id;r.note.position==="left of"&&(S=b.id,C=u),e.setEdge(S,C,{arrowhead:"none",arrowType:"",style:Rnr,labelStyle:"",classes:F_a,arrowheadStyle:Inr,labelpos:Nnr,labelType:Onr,thickness:Lnr})}else e.setNode(u,m)}t&&t.id!=="root"&&(ut.trace("Setting node ",u," to be child of its parent ",t.id),e.setParent(u,t.id)),r.doc&&(ut.trace("Adding nodes children "),K_a(e,r,r.doc,a,s,!o))},K_a=(e,t,r,a,s,o)=>{ut.trace("items",r),r.forEach(u=>{switch(u.stmt){case y5e:qae(e,t,u,a,s,o);break;case aue:qae(e,t,u,a,s,o);break;case vyt:{qae(e,t,u.state1,a,s,o),qae(e,t,u.state2,a,s,o);const h={id:"edge"+aO,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:Rnr,labelStyle:"",label:mi.sanitizeText(u.description,Qt()),arrowheadStyle:Inr,labelpos:Nnr,labelType:Onr,thickness:Lnr,classes:Cnr};e.setEdge(u.state1.id,u.state2.id,h,aO),aO++}break}})},Jht=(e,t=$2a)=>{let r=t;if(e.doc)for(let a=0;a{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,w7.clear()}},J_a=Object.freeze(Object.defineProperty({__proto__:null,diagram:Z_a},Symbol.toStringTag,{value:"Module"}));var edt=function(){var e=function(b,_,w,S){for(w=w||{},S=b.length;S--;w[b[S]]=_);return w},t=[6,8,10,11,12,14,16,17,18],r=[1,9],a=[1,10],s=[1,11],o=[1,12],u=[1,13],h=[1,14],f={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(_,w,S,C,A,k,I){var N=k.length-1;switch(A){case 1:return k[N-1];case 2:this.$=[];break;case 3:k[N-1].push(k[N]),this.$=k[N-1];break;case 4:case 5:this.$=k[N];break;case 6:case 7:this.$=[];break;case 8:C.setDiagramTitle(k[N].substr(6)),this.$=k[N].substr(6);break;case 9:this.$=k[N].trim(),C.setAccTitle(this.$);break;case 10:case 11:this.$=k[N].trim(),C.setAccDescription(this.$);break;case 12:C.addSection(k[N].substr(8)),this.$=k[N].substr(8);break;case 13:C.addTask(k[N-1],k[N]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:a,14:s,16:o,17:u,18:h},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:15,11:r,12:a,14:s,16:o,17:u,18:h},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,16]},{15:[1,17]},e(t,[2,11]),e(t,[2,12]),{19:[1,18]},e(t,[2,4]),e(t,[2,9]),e(t,[2,10]),e(t,[2,13])],defaultActions:{},parseError:function(_,w){if(w.recoverable)this.trace(_);else{var S=new Error(_);throw S.hash=w,S}},parse:function(_){var w=this,S=[0],C=[],A=[null],k=[],I=this.table,N="",L=0,P=0,M=2,F=1,U=k.slice.call(arguments,1),$=Object.create(this.lexer),G={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(G.yy[B]=this.yy[B]);$.setInput(_,G.yy),G.yy.lexer=$,G.yy.parser=this,typeof $.yylloc>"u"&&($.yylloc={});var Z=$.yylloc;k.push(Z);var z=$.options&&$.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(){var ce;return ce=C.pop()||$.lex()||F,typeof ce!="number"&&(ce instanceof Array&&(C=ce,ce=C.pop()),ce=w.symbols_[ce]||ce),ce}for(var W,Q,V,j,ee={},te,ne,se,ie;;){if(Q=S[S.length-1],this.defaultActions[Q]?V=this.defaultActions[Q]:((W===null||typeof W>"u")&&(W=Y()),V=I[Q]&&I[Q][W]),typeof V>"u"||!V.length||!V[0]){var ge="";ie=[];for(te in I[Q])this.terminals_[te]&&te>M&&ie.push("'"+this.terminals_[te]+"'");$.showPosition?ge="Parse error on line "+(L+1)+`: `+$.showPosition()+` Expecting `+ie.join(", ")+", got '"+(this.terminals_[W]||W)+"'":ge="Parse error on line "+(L+1)+": Unexpected "+(W==F?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(ge,{text:$.match,token:this.terminals_[W]||W,line:$.yylineno,loc:Z,expected:ie})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+W);switch(V[0]){case 1:S.push(W),A.push($.yytext),k.push($.yylloc),S.push(V[1]),W=null,P=$.yyleng,N=$.yytext,L=$.yylineno,Z=$.yylloc;break;case 2:if(ne=this.productions_[V[1]][1],ee.$=A[A.length-ne],ee._$={first_line:k[k.length-(ne||1)].first_line,last_line:k[k.length-1].last_line,first_column:k[k.length-(ne||1)].first_column,last_column:k[k.length-1].last_column},z&&(ee._$.range=[k[k.length-(ne||1)].range[0],k[k.length-1].range[1]]),j=this.performAction.apply(ee,[N,P,L,G.yy,V[1],A,k].concat(U)),typeof j<"u")return j;ne&&(S=S.slice(0,-1*ne*2),A=A.slice(0,-1*ne),k=k.slice(0,-1*ne)),S.push(this.productions_[V[1]][0]),A.push(ee.$),k.push(ee._$),se=I[S[S.length-2]][S[S.length-1]],S.push(se);break;case 3:return!0}}return!0}},p=function(){var b={EOF:1,parseError:function(w,S){if(this.yy.parser)this.yy.parser.parseError(w,S);else throw new Error(w)},setInput:function(_,w){return this.yy=w||this.yy||{},this._input=_,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var w=_.match(/(?:\r\n?|\n).*/g);return w?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},unput:function(_){var w=_.length,S=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-w),this.offset-=w;var C=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),S.length-1&&(this.yylineno-=S.length-1);var A=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:S?(S.length===C.length?this.yylloc.first_column:0)+C[C.length-S.length].length-S[0].length:this.yylloc.first_column-w},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-w]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(_){this.unput(this.match.slice(_))},pastInput:function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _=this.pastInput(),w=new Array(_.length+1).join("-");return _+this.upcomingInput()+` `+w+"^"},test_match:function(_,w){var S,C,A;if(this.options.backtrack_lexer&&(A={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(A.yylloc.range=this.yylloc.range.slice(0))),C=_[0].match(/(?:\r\n?|\n).*/g),C&&(this.yylineno+=C.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:C?C[C.length-1].length-C[C.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_[0].length},this.yytext+=_[0],this.match+=_[0],this.matches=_,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(_[0].length),this.matched+=_[0],S=this.performAction.call(this,this.yy,this,w,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),S)return S;if(this._backtrack){for(var k in A)this[k]=A[k];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _,w,S,C;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),k=0;kw[0].length)){if(w=S,C=k,this.options.backtrack_lexer){if(_=this.test_match(S,A[k]),_!==!1)return _;if(this._backtrack){w=!1;continue}else return!1}else if(!this.options.flex)break}return w?(_=this.test_match(w,A[C]),_!==!1?_:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var w=this.next();return w||this.lex()},begin:function(w){this.conditionStack.push(w)},popState:function(){var w=this.conditionStack.length-1;return w>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(w){return w=this.conditionStack.length-1-Math.abs(w||0),w>=0?this.conditionStack[w]:"INITIAL"},pushState:function(w){this.begin(w)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(w,S,C,A){switch(C){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return b}();f.lexer=p;function m(){this.yy={}}return m.prototype=f,f.Parser=m,new m}();edt.parser=edt;const ewa=edt;let fW="";const xyt=[],Ile=[],Nle=[],twa=function(){xyt.length=0,Ile.length=0,fW="",Nle.length=0,Mb()},nwa=function(e){fW=e,xyt.push(e)},rwa=function(){return xyt},iwa=function(){let e=KCn();const t=100;let r=0;for(;!e&&r{r.people&&e.push(...r.people)}),[...new Set(e)].sort()},swa=function(e,t){const r=t.substr(1).split(":");let a=0,s=[];r.length===1?(a=Number(r[0]),s=[]):(a=Number(r[0]),s=r[1].split(","));const o=s.map(h=>h.trim()),u={section:fW,type:fW,people:o,task:e,score:a};Nle.push(u)},owa=function(e){const t={section:fW,type:fW,description:e,task:e,classes:[]};Ile.push(t)},KCn=function(){const e=function(r){return Nle[r].processed};let t=!0;for(const[r,a]of Nle.entries())e(r),t=t&&a.processed;return t},lwa=function(){return awa()},XCn={getConfig:()=>Qt().journey,clear:twa,setDiagramTitle:Zw,getDiagramTitle:Tv,setAccTitle:Pb,getAccTitle:Ev,setAccDescription:xv,getAccDescription:Sv,addSection:nwa,getSections:rwa,getTasks:iwa,addTask:swa,addTaskOrg:owa,getActors:lwa},cwa=e=>`.label { font-family: 'trebuchet ms', verdana, arial, sans-serif; font-family: var(--mermaid-font-family); color: ${e.textColor}; } .mouth { stroke: #666; } line { stroke: ${e.textColor} } .legend { fill: ${e.textColor}; } .label text { fill: #333; } .label { color: ${e.textColor} } .face { ${e.faceColor?`fill: ${e.faceColor}`:"fill: #FFF8DC"}; stroke: #999; } .node rect, .node circle, .node ellipse, .node polygon, .node path { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: 1px; } .node .label { text-align: center; } .node.clickable { cursor: pointer; } .arrowheadPath { fill: ${e.arrowheadColor}; } .edgePath .path { stroke: ${e.lineColor}; stroke-width: 1.5px; } .flowchart-link { stroke: ${e.lineColor}; fill: none; } .edgeLabel { background-color: ${e.edgeLabelBackground}; rect { opacity: 0.5; } text-align: center; } .cluster rect { } .cluster text { fill: ${e.titleColor}; } div.mermaidTooltip { position: absolute; text-align: center; max-width: 200px; padding: 2px; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-family: var(--mermaid-font-family); font-size: 12px; background: ${e.tertiaryColor}; border: 1px solid ${e.border2}; border-radius: 2px; pointer-events: none; z-index: 100; } .task-type-0, .section-type-0 { ${e.fillType0?`fill: ${e.fillType0}`:""}; } .task-type-1, .section-type-1 { ${e.fillType0?`fill: ${e.fillType1}`:""}; } .task-type-2, .section-type-2 { ${e.fillType0?`fill: ${e.fillType2}`:""}; } .task-type-3, .section-type-3 { ${e.fillType0?`fill: ${e.fillType3}`:""}; } .task-type-4, .section-type-4 { ${e.fillType0?`fill: ${e.fillType4}`:""}; } .task-type-5, .section-type-5 { ${e.fillType0?`fill: ${e.fillType5}`:""}; } .task-type-6, .section-type-6 { ${e.fillType0?`fill: ${e.fillType6}`:""}; } .task-type-7, .section-type-7 { ${e.fillType0?`fill: ${e.fillType7}`:""}; } .actor-0 { ${e.actor0?`fill: ${e.actor0}`:""}; } .actor-1 { ${e.actor1?`fill: ${e.actor1}`:""}; } .actor-2 { ${e.actor2?`fill: ${e.actor2}`:""}; } .actor-3 { ${e.actor3?`fill: ${e.actor3}`:""}; } .actor-4 { ${e.actor4?`fill: ${e.actor4}`:""}; } .actor-5 { ${e.actor5?`fill: ${e.actor5}`:""}; } `,uwa=cwa,Syt=function(e,t){return d6e(e,t)},hwa=function(e,t){const a=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=e.append("g");s.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function o(f){const p=_S().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}function u(f){const p=_S().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}function h(f){f.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return t.score>3?o(s):t.score<3?u(s):h(s),a},Dnr=function(e,t){const r=e.append("circle");return r.attr("cx",t.cx),r.attr("cy",t.cy),r.attr("class","actor-"+t.pos),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("r",t.r),r.class!==void 0&&r.attr("class",r.class),t.title!==void 0&&r.append("title").text(t.title),r},Mnr=function(e,t){return Cca(e,t)},dwa=function(e,t){function r(s,o,u,h,f){return s+","+o+" "+(s+u)+","+o+" "+(s+u)+","+(o+h-f)+" "+(s+u-f*1.2)+","+(o+h)+" "+s+","+(o+h)}const a=e.append("polygon");a.attr("points",r(t.x,t.y,50,20,7)),a.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,Mnr(e,t)},fwa=function(e,t,r){const a=e.append("g"),s=eU();s.x=t.x,s.y=t.y,s.fill=t.fill,s.width=r.width*t.taskCount+r.diagramMarginX*(t.taskCount-1),s.height=r.height,s.class="journey-section section-type-"+t.num,s.rx=3,s.ry=3,Syt(a,s),Pnr(r)(t.text,a,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+t.num},r,t.colour)};let QCn=-1;const pwa=function(e,t,r){const a=t.x+r.width/2,s=e.append("g");QCn++;const o=300+5*30;s.append("line").attr("id","task"+QCn).attr("x1",a).attr("y1",t.y).attr("x2",a).attr("y2",o).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),hwa(s,{cx:a,cy:300+(5-t.score)*30,score:t.score});const u=eU();u.x=t.x,u.y=t.y,u.fill=t.fill,u.width=r.width,u.height=r.height,u.class="task task-type-"+t.num,u.rx=3,u.ry=3,Syt(s,u);let h=t.x+14;t.people.forEach(f=>{const p=t.actors[f].color,m={cx:h,cy:t.y,r:7,fill:p,stroke:"#000",title:f,pos:t.actors[f].position};Dnr(s,m),h+=10}),Pnr(r)(t.task,s,u.x,u.y,u.width,u.height,{class:"task"},r,t.colour)},gwa=function(e,t){bJn(e,t)},Pnr=function(){function e(s,o,u,h,f,p,m,b){const _=o.append("text").attr("x",u+f/2).attr("y",h+p/2+5).style("font-color",b).style("text-anchor","middle").text(s);a(_,m)}function t(s,o,u,h,f,p,m,b,_){const{taskFontSize:w,taskFontFamily:S}=b,C=s.split(//gi);for(let A=0;A{const s=D7[a].color,o={cx:20,cy:r,r:7,fill:s,stroke:"#000",pos:D7[a].position};Ole.drawCircle(e,o);const u={x:40,y:r+7,fill:"#666",text:a,textMargin:t.boxTextMargin|5};Ole.drawText(e,u),r+=20})}const T6e=Qt().journey,HB=T6e.leftMargin,vwa=function(e,t,r,a){const s=Qt().journey,o=Qt().securityLevel;let u;o==="sandbox"&&(u=gn("#i"+t));const h=gn(o==="sandbox"?u.nodes()[0].contentDocument.body:"body");Wx.init();const f=h.select("#"+t);Ole.initGraphics(f);const p=a.db.getTasks(),m=a.db.getDiagramTitle(),b=a.db.getActors();for(const k in D7)delete D7[k];let _=0;b.forEach(k=>{D7[k]={color:s.actorColours[_%s.actorColours.length],position:_},_++}),ywa(f),Wx.insert(0,0,HB,Object.keys(D7).length*50),_wa(f,p,0);const w=Wx.getBounds();m&&f.append("text").text(m).attr("x",HB).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const S=w.stopy-w.starty+2*s.diagramMarginY,C=HB+w.stopx+2*s.diagramMarginX;Db(f,S,C,s.useMaxWidth),f.append("line").attr("x1",HB).attr("y1",s.height*4).attr("x2",C-HB-4).attr("y2",s.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const A=m?70:0;f.attr("viewBox",`${w.startx} -25 ${C} ${S+A}`),f.attr("preserveAspectRatio","xMinYMin meet"),f.attr("height",S+A+25)},Wx={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(e,t,r,a){e[t]===void 0?e[t]=r:e[t]=a(r,e[t])},updateBounds:function(e,t,r,a){const s=Qt().journey,o=this;let u=0;function h(f){return function(m){u++;const b=o.sequenceItems.length-u+1;o.updateVal(m,"starty",t-b*s.boxMargin,Math.min),o.updateVal(m,"stopy",a+b*s.boxMargin,Math.max),o.updateVal(Wx.data,"startx",e-b*s.boxMargin,Math.min),o.updateVal(Wx.data,"stopx",r+b*s.boxMargin,Math.max),o.updateVal(m,"startx",e-b*s.boxMargin,Math.min),o.updateVal(m,"stopx",r+b*s.boxMargin,Math.max),o.updateVal(Wx.data,"starty",t-b*s.boxMargin,Math.min),o.updateVal(Wx.data,"stopy",a+b*s.boxMargin,Math.max)}}this.sequenceItems.forEach(h())},insert:function(e,t,r,a){const s=Math.min(e,r),o=Math.max(e,r),u=Math.min(t,a),h=Math.max(t,a);this.updateVal(Wx.data,"startx",s,Math.min),this.updateVal(Wx.data,"starty",u,Math.min),this.updateVal(Wx.data,"stopx",o,Math.max),this.updateVal(Wx.data,"stopy",h,Math.max),this.updateBounds(s,u,o,h)},bumpVerticalPos:function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},Lat=T6e.sectionFills,ZCn=T6e.sectionColours,_wa=function(e,t,r){const a=Qt().journey;let s="";const o=a.height*2+a.diagramMarginY,u=r+o;let h=0,f="#CCC",p="black",m=0;for(const[b,_]of t.entries()){if(s!==_.section){f=Lat[h%Lat.length],m=h%Lat.length,p=ZCn[h%ZCn.length];let S=0;const C=_.section;for(let k=b;k(D7[C]&&(S[C]=D7[C]),S),{});_.x=b*a.taskMargin+b*a.width+HB,_.y=u,_.width=a.diagramMarginX,_.height=a.diagramMarginY,_.colour=p,_.fill=f,_.num=m,_.actors=w,Ole.drawTask(e,_,a),Wx.insert(_.x,_.y,_.x+_.width+a.taskMargin,300+5*30)}},JCn={setConf:bwa,draw:vwa},wwa={parser:ewa,db:XCn,renderer:JCn,styles:uwa,init:e=>{JCn.setConf(e.journey),XCn.clear()}},Ewa=Object.freeze(Object.defineProperty({__proto__:null,diagram:wwa},Symbol.toStringTag,{value:"Module"}));var Bnr={exports:{}};(function(e,t){(function(r){e.exports=r()})(function(){return function(){function r(a,s,o){function u(p,m){if(!s[p]){if(!a[p]){var b=typeof sO=="function"&&sO;if(!m&&b)return b(p,!0);if(h)return h(p,!0);var _=new Error("Cannot find module '"+p+"'");throw _.code="MODULE_NOT_FOUND",_}var w=s[p]={exports:{}};a[p][0].call(w.exports,function(S){var C=a[p][1][S];return u(C||S)},w,w.exports,r,a,s,o)}return s[p].exports}for(var h=typeof sO=="function"&&sO,f=0;f0&&arguments[0]!==void 0?arguments[0]:{},_=b.defaultLayoutOptions,w=_===void 0?{}:_,S=b.algorithms,C=S===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:S,A=b.workerFactory,k=b.workerUrl;if(u(this,p),this.defaultLayoutOptions=w,this.initialized=!1,typeof k>"u"&&typeof A>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var I=A;typeof k<"u"&&typeof A>"u"&&(I=function(P){return new Worker(P)});var N=I(k);if(typeof N.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new f(N),this.worker.postMessage({cmd:"register",algorithms:C}).then(function(L){return m.initialized=!0}).catch(console.err)}return o(p,[{key:"layout",value:function(b){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=_.layoutOptions,S=w===void 0?this.defaultLayoutOptions:w,C=_.logging,A=C===void 0?!1:C,k=_.measureExecutionTime,I=k===void 0?!1:k;return b?this.worker.postMessage({cmd:"layout",graph:b,layoutOptions:S,options:{logging:A,measureExecutionTime:I}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker&&this.worker.terminate()}}]),p}();s.default=h;var f=function(){function p(m){var b=this;if(u(this,p),m===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=m,this.worker.onmessage=function(_){setTimeout(function(){b.receive(b,_)},0)}}return o(p,[{key:"postMessage",value:function(b){var _=this.id||0;this.id=_+1,b.id=_;var w=this;return new Promise(function(S,C){w.resolvers[_]=function(A,k){A?(w.convertGwtStyleError(A),C(A)):S(k)},w.worker.postMessage(b)})}},{key:"receive",value:function(b,_){var w=_.data,S=b.resolvers[w.id];S&&(delete b.resolvers[w.id],w.error?S(w.error):S(null,w.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(b){if(b){var _=b.__java$exception;_&&(_.cause&&_.cause.backingJsObject&&(b.cause=_.cause.backingJsObject,this.convertGwtStyleError(b.cause)),delete b.__java$exception)}}}]),p}()},{}],2:[function(r,a,s){(function(o){(function(){var u;typeof window<"u"?u=window:typeof o<"u"?u=o:typeof self<"u"&&(u=self);var h;function f(){}function p(){}function m(){}function b(){}function _(){}function w(){}function S(){}function C(){}function A(){}function k(){}function I(){}function N(){}function L(){}function P(){}function M(){}function F(){}function U(){}function $(){}function G(){}function B(){}function Z(){}function z(){}function Y(){}function W(){}function Q(){}function V(){}function j(){}function ee(){}function te(){}function ne(){}function se(){}function ie(){}function ge(){}function ce(){}function be(){}function ve(){}function De(){}function ye(){}function Ee(){}function he(){}function we(){}function Ce(){}function Ie(){}function Le(){}function Fe(){}function Ve(){}function Oe(){}function Dt(){}function ot(){}function sn(){}function Kt(){}function Ft(){}function Je(){}function ht(){}function et(){}function qe(){}function He(){}function Ge(){}function Ye(){}function Ae(){}function Xe(){}function fe(){}function Qe(){}function Ke(){}function mt(){}function lt(){}function $t(){}function Ut(){}function Jt(){}function wn(){}function Vn(){}function Wn(){}function Dn(){}function zn(){}function vn(){}function Cn(){}function Ar(){}function ur(){}function On(){}function Ir(){}function Ln(){}function pr(){}function Cr(){}function Zr(){}function Pr(){}function Ci(){}function ds(){}function ta(){}function Os(){}function uo(){}function Ls(){}function La(){}function to(){}function Fi(){}function Pt(){}function St(){}function Un(){}function Hr(){}function za(){}function Rs(){}function Vr(){}function Ii(){}function Pa(){}function Or(){}function no(){}function dt(){}function Wi(){}function Tt(){}function xr(){}function qs(){}function Rt(){}function Bb(){}function Gt(){}function Ds(){}function Lm(){}function BS(){}function eE(){}function uL(){}function rd(){}function Fh(){}function Fb(){}function e1(){}function wT(){}function d_(){}function tE(){}function qu(){}function $b(){}function Mf(){}function nE(){}function Pf(){}function ET(){}function Ub(){}function jA(){}function WA(){}function KA(){}function f0(){}function rU(){}function lK(){}function cK(){}function uK(){}function I6e(){}function N6e(){}function O6e(){}function L6e(){}function Nyt(){}function Oyt(){}function Lyt(){}function Dyt(){}function Myt(){}function Pyt(){}function Byt(){}function Fyt(){}function $yt(){}function Uyt(){}function zyt(){}function Gyt(){}function qyt(){}function Hyt(){}function Vyt(){}function Yyt(){}function jyt(){}function Wyt(){}function Kyt(){}function Xyt(){}function Qyt(){}function Zyt(){}function Jyt(){}function evt(){}function tvt(){}function nvt(){}function rvt(){}function ivt(){}function avt(){}function svt(){}function ovt(){}function lvt(){}function cvt(){}function uvt(){}function hvt(){}function dvt(){}function fvt(){}function pvt(){}function gvt(){}function mvt(){}function bvt(){}function yvt(){}function vvt(){}function _vt(){}function wvt(){}function Evt(){}function xvt(){}function Svt(){}function Tvt(){}function Cvt(){}function Avt(){}function kvt(){}function Rvt(){}function Ivt(){}function Nvt(){}function Ovt(){}function Lvt(){}function Dvt(){}function Mvt(){}function Pvt(){}function Bvt(){}function Fvt(){}function $vt(){}function Uvt(){}function zvt(){}function Gvt(){}function qvt(){}function Hvt(){}function Vvt(){}function Yvt(){}function jvt(){}function Wvt(){}function Kvt(){}function Xvt(){}function Qvt(){}function Zvt(){}function Jvt(){}function e2t(){}function t2t(){}function n2t(){}function r2t(){}function i2t(){}function a2t(){}function s2t(){}function o2t(){}function l2t(){}function c2t(){}function u2t(){}function h2t(){}function d2t(){}function f2t(){}function p2t(){}function g2t(){}function m2t(){}function b2t(){}function y2t(){}function v2t(){}function _2t(){}function w2t(){}function E2t(){}function D6e(){}function x2t(){}function S2t(){}function T2t(){}function C2t(){}function A2t(){}function k2t(){}function R2t(){}function I2t(){}function N2t(){}function O2t(){}function L2t(){}function D2t(){}function M2t(){}function P2t(){}function B2t(){}function F2t(){}function $2t(){}function U2t(){}function z2t(){}function G2t(){}function q2t(){}function H2t(){}function V2t(){}function Y2t(){}function j2t(){}function W2t(){}function K2t(){}function X2t(){}function Q2t(){}function Z2t(){}function J2t(){}function e_t(){}function t_t(){}function n_t(){}function r_t(){}function i_t(){}function a_t(){}function s_t(){}function o_t(){}function l_t(){}function c_t(){}function u_t(){}function h_t(){}function d_t(){}function f_t(){}function p_t(){}function g_t(){}function m_t(){}function b_t(){}function y_t(){}function v_t(){}function __t(){}function w_t(){}function E_t(){}function x_t(){}function S_t(){}function T_t(){}function C_t(){}function A_t(){}function k_t(){}function R_t(){}function I_t(){}function N_t(){}function O_t(){}function L_t(){}function D_t(){}function M_t(){}function P_t(){}function B_t(){}function F_t(){}function $_t(){}function U_t(){}function z_t(){}function M6e(){}function G_t(){}function q_t(){}function H_t(){}function V_t(){}function Y_t(){}function j_t(){}function W_t(){}function K_t(){}function X_t(){}function Q_t(){}function P6e(){}function Z_t(){}function J_t(){}function ewt(){}function twt(){}function nwt(){}function rwt(){}function B6e(){}function F6e(){}function iwt(){}function $6e(){}function U6e(){}function awt(){}function swt(){}function owt(){}function lwt(){}function cwt(){}function uwt(){}function hwt(){}function dwt(){}function fwt(){}function pwt(){}function gwt(){}function z6e(){}function mwt(){}function bwt(){}function ywt(){}function vwt(){}function _wt(){}function wwt(){}function Ewt(){}function xwt(){}function Swt(){}function Twt(){}function Cwt(){}function Awt(){}function kwt(){}function Rwt(){}function Iwt(){}function Nwt(){}function Owt(){}function Lwt(){}function Dwt(){}function Mwt(){}function Pwt(){}function Bwt(){}function Fwt(){}function $wt(){}function Uwt(){}function zwt(){}function Gwt(){}function qwt(){}function Hwt(){}function Vwt(){}function Ywt(){}function jwt(){}function Wwt(){}function Kwt(){}function Xwt(){}function Qwt(){}function Zwt(){}function Jwt(){}function eEt(){}function tEt(){}function nEt(){}function rEt(){}function iEt(){}function aEt(){}function sEt(){}function oEt(){}function lEt(){}function cEt(){}function uEt(){}function hEt(){}function dEt(){}function fEt(){}function pEt(){}function gEt(){}function mEt(){}function bEt(){}function yEt(){}function vEt(){}function _Et(){}function wEt(){}function EEt(){}function xEt(){}function SEt(){}function TEt(){}function CEt(){}function AEt(){}function kEt(){}function REt(){}function IEt(){}function NEt(){}function OEt(){}function LEt(){}function DEt(){}function MEt(){}function PEt(){}function BEt(){}function FEt(){}function $Et(){}function UEt(){}function zEt(){}function GEt(){}function qEt(){}function HEt(){}function VEt(){}function YEt(){}function jEt(){}function urr(){}function WEt(){}function KEt(){}function XEt(){}function QEt(){}function ZEt(){}function JEt(){}function ext(){}function txt(){}function nxt(){}function rxt(){}function ixt(){}function axt(){}function sxt(){}function oxt(){}function lxt(){}function cxt(){}function uxt(){}function hxt(){}function dxt(){}function fxt(){}function pxt(){}function gxt(){}function mxt(){}function bxt(){}function yxt(){}function vxt(){}function _xt(){}function sue(){}function oue(){}function wxt(){}function lue(){}function Ext(){}function xxt(){}function Sxt(){}function Txt(){}function Cxt(){}function Axt(){}function kxt(){}function Rxt(){}function Ixt(){}function Nxt(){}function G6e(){}function Oxt(){}function Lxt(){}function Dxt(){}function hrr(){}function Mxt(){}function Pxt(){}function Bxt(){}function Fxt(){}function $xt(){}function Uxt(){}function zxt(){}function f_(){}function Gxt(){}function XA(){}function q6e(){}function qxt(){}function Hxt(){}function Vxt(){}function Yxt(){}function jxt(){}function Wxt(){}function Kxt(){}function Xxt(){}function Qxt(){}function Zxt(){}function Jxt(){}function eSt(){}function tSt(){}function nSt(){}function rSt(){}function iSt(){}function aSt(){}function sSt(){}function oSt(){}function rn(){}function lSt(){}function cSt(){}function uSt(){}function hSt(){}function dSt(){}function fSt(){}function pSt(){}function gSt(){}function mSt(){}function bSt(){}function ySt(){}function vSt(){}function _St(){}function cue(){}function wSt(){}function ESt(){}function xSt(){}function hK(){}function SSt(){}function uue(){}function dK(){}function TSt(){}function H6e(){}function CSt(){}function ASt(){}function kSt(){}function RSt(){}function ISt(){}function NSt(){}function fK(){}function OSt(){}function LSt(){}function pK(){}function DSt(){}function gK(){}function MSt(){}function V6e(){}function PSt(){}function hue(){}function Y6e(){}function BSt(){}function FSt(){}function $St(){}function USt(){}function drr(){}function zSt(){}function GSt(){}function qSt(){}function HSt(){}function VSt(){}function YSt(){}function jSt(){}function WSt(){}function KSt(){}function XSt(){}function OR(){}function due(){}function QSt(){}function ZSt(){}function JSt(){}function e4t(){}function t4t(){}function n4t(){}function r4t(){}function i4t(){}function a4t(){}function s4t(){}function o4t(){}function l4t(){}function c4t(){}function u4t(){}function h4t(){}function d4t(){}function f4t(){}function p4t(){}function g4t(){}function m4t(){}function b4t(){}function y4t(){}function v4t(){}function _4t(){}function w4t(){}function E4t(){}function x4t(){}function S4t(){}function T4t(){}function C4t(){}function A4t(){}function k4t(){}function R4t(){}function I4t(){}function N4t(){}function O4t(){}function L4t(){}function D4t(){}function M4t(){}function P4t(){}function B4t(){}function F4t(){}function $4t(){}function U4t(){}function z4t(){}function G4t(){}function q4t(){}function H4t(){}function V4t(){}function Y4t(){}function j4t(){}function W4t(){}function K4t(){}function X4t(){}function Q4t(){}function Z4t(){}function J4t(){}function e3t(){}function t3t(){}function n3t(){}function r3t(){}function i3t(){}function a3t(){}function s3t(){}function o3t(){}function l3t(){}function c3t(){}function u3t(){}function h3t(){}function d3t(){}function f3t(){}function p3t(){}function g3t(){}function m3t(){}function b3t(){}function y3t(){}function v3t(){}function _3t(){}function w3t(){}function E3t(){}function x3t(){}function S3t(){}function T3t(){}function C3t(){}function A3t(){}function k3t(){}function R3t(){}function I3t(){}function N3t(){}function O3t(){}function L3t(){}function D3t(){}function M3t(){}function P3t(){}function B3t(){}function F3t(){}function $3t(){}function U3t(){}function z3t(){}function G3t(){}function q3t(){}function j6e(){}function H3t(){}function V3t(){}function fue(){yL()}function Y3t(){yU()}function j3t(){nJ()}function W3t(){v0e()}function K3t(){qD()}function X3t(){tMe()}function Q3t(){A0()}function Z3t(){hDe()}function J3t(){iG()}function eTt(){vU()}function tTt(){jU()}function nTt(){kRt()}function rTt(){Bk()}function iTt(){nBt()}function aTt(){u9e()}function sTt(){HDt()}function oTt(){h9e()}function lTt(){LBt()}function cTt(){qDt()}function uTt(){G8()}function hTt(){m$t()}function dTt(){g$t()}function fTt(){$Mt()}function pTt(){b$t()}function gTt(){Kv()}function mTt(){qK()}function bTt(){eBe()}function yTt(){qt()}function vTt(){y$t()}function _Tt(){V$t()}function wTt(){VDt()}function ETt(){mqt()}function xTt(){YDt()}function STt(){Ijt()}function TTt(){OMe()}function CTt(){jm()}function ATt(){Nzt()}function kTt(){pc()}function RTt(){tMt()}function ITt(){Pk()}function NTt(){pPe()}function OTt(){Xv()}function LTt(){gPe()}function DTt(){Z1()}function MTt(){cG()}function PTt(){V1e()}function BTt(){e1e()}function t1(){NOt()}function FTt(){GQ()}function $Tt(){lJ()}function W6e(){Ei()}function UTt(){SZ()}function zTt(){zLe()}function K6e(){e0e()}function X6e(){IJ()}function GTt(){CPe()}function Q6e(n){hr(n)}function qTt(n){this.a=n}function mK(n){this.a=n}function HTt(n){this.a=n}function VTt(n){this.a=n}function YTt(n){this.a=n}function jTt(n){this.a=n}function WTt(n){this.a=n}function KTt(n){this.a=n}function Z6e(n){this.a=n}function J6e(n){this.a=n}function XTt(n){this.a=n}function QTt(n){this.a=n}function pue(n){this.a=n}function ZTt(n){this.a=n}function JTt(n){this.a=n}function gue(n){this.a=n}function mue(n){this.a=n}function e5t(n){this.a=n}function bue(n){this.a=n}function t5t(n){this.a=n}function n5t(n){this.a=n}function r5t(n){this.a=n}function e7e(n){this.b=n}function i5t(n){this.c=n}function a5t(n){this.a=n}function s5t(n){this.a=n}function o5t(n){this.a=n}function l5t(n){this.a=n}function c5t(n){this.a=n}function u5t(n){this.a=n}function h5t(n){this.a=n}function d5t(n){this.a=n}function f5t(n){this.a=n}function p5t(n){this.a=n}function g5t(n){this.a=n}function m5t(n){this.a=n}function b5t(n){this.a=n}function t7e(n){this.a=n}function n7e(n){this.a=n}function bK(n){this.a=n}function iU(n){this.a=n}function p_(){this.a=[]}function y5t(n,i){n.a=i}function frr(n,i){n.a=i}function prr(n,i){n.b=i}function grr(n,i){n.b=i}function mrr(n,i){n.b=i}function r7e(n,i){n.j=i}function brr(n,i){n.g=i}function yrr(n,i){n.i=i}function vrr(n,i){n.c=i}function _rr(n,i){n.c=i}function wrr(n,i){n.d=i}function Err(n,i){n.d=i}function g_(n,i){n.k=i}function xrr(n,i){n.c=i}function i7e(n,i){n.c=i}function a7e(n,i){n.a=i}function Srr(n,i){n.a=i}function Trr(n,i){n.f=i}function Crr(n,i){n.a=i}function Arr(n,i){n.b=i}function yue(n,i){n.d=i}function yK(n,i){n.i=i}function s7e(n,i){n.o=i}function krr(n,i){n.r=i}function Rrr(n,i){n.a=i}function Irr(n,i){n.b=i}function v5t(n,i){n.e=i}function Nrr(n,i){n.f=i}function o7e(n,i){n.g=i}function Orr(n,i){n.e=i}function Lrr(n,i){n.f=i}function Drr(n,i){n.f=i}function vue(n,i){n.a=i}function _ue(n,i){n.b=i}function Mrr(n,i){n.n=i}function Prr(n,i){n.a=i}function Brr(n,i){n.c=i}function Frr(n,i){n.c=i}function $rr(n,i){n.c=i}function Urr(n,i){n.a=i}function zrr(n,i){n.a=i}function Grr(n,i){n.d=i}function qrr(n,i){n.d=i}function Hrr(n,i){n.e=i}function Vrr(n,i){n.e=i}function Yrr(n,i){n.g=i}function jrr(n,i){n.f=i}function Wrr(n,i){n.j=i}function Krr(n,i){n.a=i}function Xrr(n,i){n.a=i}function Qrr(n,i){n.b=i}function _5t(n){n.b=n.a}function w5t(n){n.c=n.d.d}function l7e(n){this.a=n}function c7e(n){this.a=n}function u7e(n){this.a=n}function m_(n){this.a=n}function b_(n){this.a=n}function aU(n){this.a=n}function E5t(n){this.a=n}function h7e(n){this.a=n}function sU(n){this.a=n}function vK(n){this.a=n}function Dm(n){this.a=n}function FS(n){this.a=n}function x5t(n){this.a=n}function S5t(n){this.a=n}function wue(n){this.b=n}function LR(n){this.b=n}function DR(n){this.b=n}function Eue(n){this.a=n}function T5t(n){this.a=n}function xue(n){this.c=n}function me(n){this.c=n}function C5t(n){this.c=n}function hL(n){this.d=n}function d7e(n){this.a=n}function ei(n){this.a=n}function A5t(n){this.a=n}function f7e(n){this.a=n}function p7e(n){this.a=n}function g7e(n){this.a=n}function m7e(n){this.a=n}function b7e(n){this.a=n}function y7e(n){this.a=n}function MR(n){this.a=n}function k5t(n){this.a=n}function R5t(n){this.a=n}function PR(n){this.a=n}function I5t(n){this.a=n}function N5t(n){this.a=n}function O5t(n){this.a=n}function L5t(n){this.a=n}function D5t(n){this.a=n}function M5t(n){this.a=n}function P5t(n){this.a=n}function B5t(n){this.a=n}function F5t(n){this.a=n}function $5t(n){this.a=n}function U5t(n){this.a=n}function z5t(n){this.a=n}function G5t(n){this.a=n}function q5t(n){this.a=n}function H5t(n){this.a=n}function dL(n){this.a=n}function V5t(n){this.a=n}function Y5t(n){this.a=n}function j5t(n){this.a=n}function W5t(n){this.a=n}function _K(n){this.a=n}function K5t(n){this.a=n}function X5t(n){this.a=n}function BR(n){this.a=n}function v7e(n){this.a=n}function Q5t(n){this.a=n}function Z5t(n){this.a=n}function J5t(n){this.a=n}function eCt(n){this.a=n}function tCt(n){this.a=n}function nCt(n){this.a=n}function _7e(n){this.a=n}function w7e(n){this.a=n}function E7e(n){this.a=n}function fL(n){this.a=n}function wK(n){this.e=n}function FR(n){this.a=n}function rCt(n){this.a=n}function QA(n){this.a=n}function x7e(n){this.a=n}function iCt(n){this.a=n}function aCt(n){this.a=n}function sCt(n){this.a=n}function oCt(n){this.a=n}function lCt(n){this.a=n}function cCt(n){this.a=n}function uCt(n){this.a=n}function hCt(n){this.a=n}function dCt(n){this.a=n}function fCt(n){this.a=n}function pCt(n){this.a=n}function S7e(n){this.a=n}function gCt(n){this.a=n}function mCt(n){this.a=n}function bCt(n){this.a=n}function yCt(n){this.a=n}function vCt(n){this.a=n}function _Ct(n){this.a=n}function wCt(n){this.a=n}function ECt(n){this.a=n}function xCt(n){this.a=n}function SCt(n){this.a=n}function TCt(n){this.a=n}function CCt(n){this.a=n}function ACt(n){this.a=n}function kCt(n){this.a=n}function RCt(n){this.a=n}function ICt(n){this.a=n}function NCt(n){this.a=n}function OCt(n){this.a=n}function LCt(n){this.a=n}function DCt(n){this.a=n}function MCt(n){this.a=n}function PCt(n){this.a=n}function BCt(n){this.a=n}function FCt(n){this.a=n}function $Ct(n){this.a=n}function UCt(n){this.a=n}function zCt(n){this.a=n}function GCt(n){this.a=n}function qCt(n){this.a=n}function HCt(n){this.a=n}function VCt(n){this.a=n}function YCt(n){this.a=n}function jCt(n){this.a=n}function WCt(n){this.a=n}function KCt(n){this.a=n}function XCt(n){this.a=n}function QCt(n){this.a=n}function ZCt(n){this.a=n}function JCt(n){this.c=n}function eAt(n){this.b=n}function tAt(n){this.a=n}function nAt(n){this.a=n}function rAt(n){this.a=n}function iAt(n){this.a=n}function aAt(n){this.a=n}function sAt(n){this.a=n}function oAt(n){this.a=n}function lAt(n){this.a=n}function cAt(n){this.a=n}function uAt(n){this.a=n}function hAt(n){this.a=n}function dAt(n){this.a=n}function fAt(n){this.a=n}function pAt(n){this.a=n}function gAt(n){this.a=n}function mAt(n){this.a=n}function bAt(n){this.a=n}function yAt(n){this.a=n}function vAt(n){this.a=n}function _At(n){this.a=n}function wAt(n){this.a=n}function EAt(n){this.a=n}function xAt(n){this.a=n}function SAt(n){this.a=n}function TAt(n){this.a=n}function CAt(n){this.a=n}function AAt(n){this.a=n}function Mm(n){this.a=n}function xT(n){this.a=n}function kAt(n){this.a=n}function RAt(n){this.a=n}function IAt(n){this.a=n}function NAt(n){this.a=n}function OAt(n){this.a=n}function LAt(n){this.a=n}function DAt(n){this.a=n}function MAt(n){this.a=n}function PAt(n){this.a=n}function BAt(n){this.a=n}function FAt(n){this.a=n}function $At(n){this.a=n}function UAt(n){this.a=n}function zAt(n){this.a=n}function GAt(n){this.a=n}function qAt(n){this.a=n}function HAt(n){this.a=n}function VAt(n){this.a=n}function YAt(n){this.a=n}function jAt(n){this.a=n}function WAt(n){this.a=n}function KAt(n){this.a=n}function XAt(n){this.a=n}function QAt(n){this.a=n}function ZAt(n){this.a=n}function JAt(n){this.a=n}function EK(n){this.a=n}function ekt(n){this.f=n}function tkt(n){this.a=n}function nkt(n){this.a=n}function rkt(n){this.a=n}function ikt(n){this.a=n}function akt(n){this.a=n}function skt(n){this.a=n}function okt(n){this.a=n}function lkt(n){this.a=n}function ckt(n){this.a=n}function ukt(n){this.a=n}function hkt(n){this.a=n}function dkt(n){this.a=n}function fkt(n){this.a=n}function pkt(n){this.a=n}function gkt(n){this.a=n}function mkt(n){this.a=n}function bkt(n){this.a=n}function ykt(n){this.a=n}function vkt(n){this.a=n}function _kt(n){this.a=n}function wkt(n){this.a=n}function Ekt(n){this.a=n}function xkt(n){this.a=n}function Skt(n){this.a=n}function Tkt(n){this.a=n}function Ckt(n){this.a=n}function Akt(n){this.a=n}function kkt(n){this.a=n}function Sue(n){this.a=n}function T7e(n){this.a=n}function la(n){this.b=n}function Rkt(n){this.a=n}function Ikt(n){this.a=n}function Nkt(n){this.a=n}function Okt(n){this.a=n}function Lkt(n){this.a=n}function Dkt(n){this.a=n}function Mkt(n){this.a=n}function Pkt(n){this.b=n}function Bkt(n){this.a=n}function oU(n){this.a=n}function Fkt(n){this.a=n}function $kt(n){this.a=n}function C7e(n){this.c=n}function xK(n){this.e=n}function SK(n){this.a=n}function TK(n){this.a=n}function Tue(n){this.a=n}function Ukt(n){this.d=n}function zkt(n){this.a=n}function A7e(n){this.a=n}function k7e(n){this.a=n}function rE(n){this.e=n}function Zrr(){this.a=0}function Br(){xh(this)}function Ot(){$he(this)}function Cue(){SLt(this)}function Gkt(){}function iE(){this.c=DKe}function qkt(n,i){n.b+=i}function Jrr(n,i){i.Wb(n)}function eir(n){return n.a}function tir(n){return n.a}function nir(n){return n.a}function rir(n){return n.a}function iir(n){return n.a}function _e(n){return n.e}function air(){return null}function sir(){return null}function oir(){fRe(),GRr()}function lir(n){n.b.Of(n.e)}function Hkt(n){n.b=new Yue}function pL(n,i){n.b=i-n.b}function gL(n,i){n.a=i-n.a}function jn(n,i){n.push(i)}function Vkt(n,i){n.sort(i)}function Ykt(n,i){i.jd(n.a)}function cir(n,i){Bs(i,n)}function uir(n,i,l){n.Yd(l,i)}function lU(n,i){n.e=i,i.b=n}function R7e(n){jp(),this.a=n}function jkt(n){jp(),this.a=n}function Wkt(n){jp(),this.a=n}function Aue(n){CE(),this.a=n}function Kkt(n){p8(),mbe.le(n)}function I7e(){I7e=z,new Br}function y_(){pNt.call(this)}function N7e(){pNt.call(this)}function O7e(){y_.call(this)}function kue(){y_.call(this)}function Xkt(){y_.call(this)}function cU(){y_.call(this)}function ih(){y_.call(this)}function ZA(){y_.call(this)}function ri(){y_.call(this)}function Jd(){y_.call(this)}function Qkt(){y_.call(this)}function ec(){y_.call(this)}function Zkt(){y_.call(this)}function Jkt(){this.a=this}function CK(){this.Bb|=256}function e6t(){this.b=new oIt}function $S(n,i){n.length=i}function AK(n,i){Lt(n.a,i)}function hir(n,i){rMe(n.c,i)}function dir(n,i){Es(n.b,i)}function fir(n,i){XZ(n.a,i)}function pir(n,i){A0e(n.a,i)}function $R(n,i){Vi(n.e,i)}function JA(n){dJ(n.c,n.b)}function gir(n,i){n.kc().Nb(i)}function L7e(n){this.a=cvr(n)}function fs(){this.a=new Br}function t6t(){this.a=new Br}function D7e(){this.a=new _Rt}function kK(){this.a=new Ot}function Rue(){this.a=new Ot}function M7e(){this.a=new Ot}function Bf(){this.a=new wn}function v_(){this.a=new XPt}function P7e(){this.a=new BS}function B7e(){this.a=new GDt}function F7e(){this.a=new eOt}function n6t(){this.a=new Ot}function r6t(){this.a=new Ot}function i6t(){this.a=new Ot}function $7e(){this.a=new Ot}function a6t(){this.d=new Ot}function s6t(){this.a=new lMt}function o6t(){this.a=new fs}function l6t(){this.a=new Br}function c6t(){this.b=new Br}function u6t(){this.b=new Ot}function U7e(){this.e=new Ot}function h6t(){this.a=new gTt}function d6t(){this.d=new Ot}function f6t(){fDt.call(this)}function p6t(){fDt.call(this)}function g6t(){Ot.call(this)}function z7e(){O7e.call(this)}function G7e(){kK.call(this)}function m6t(){LX.call(this)}function b6t(){$7e.call(this)}function mL(){Gkt.call(this)}function Iue(){mL.call(this)}function ek(){Gkt.call(this)}function q7e(){ek.call(this)}function y6t(){j7e.call(this)}function v6t(){j7e.call(this)}function _6t(){j7e.call(this)}function w6t(){W7e.call(this)}function bL(){SSt.call(this)}function H7e(){SSt.call(this)}function ah(){Ea.call(this)}function E6t(){B6t.call(this)}function x6t(){B6t.call(this)}function S6t(){Br.call(this)}function T6t(){Br.call(this)}function C6t(){Br.call(this)}function Nue(){w$t.call(this)}function A6t(){fs.call(this)}function k6t(){CK.call(this)}function Oue(){A8e.call(this)}function V7e(){Br.call(this)}function Lue(){A8e.call(this)}function Due(){Br.call(this)}function R6t(){Br.call(this)}function Y7e(){gK.call(this)}function I6t(){Y7e.call(this)}function N6t(){gK.call(this)}function O6t(){j6e.call(this)}function j7e(){this.a=new fs}function L6t(){this.a=new Br}function D6t(){this.a=new Ot}function W7e(){this.a=new Br}function tk(){this.a=new Ea}function M6t(){this.j=new Ot}function P6t(){this.a=new D7t}function B6t(){this.a=new DSt}function K7e(){this.a=new gxt}function yL(){yL=z,lbe=new p}function Mue(){Mue=z,cbe=new $6t}function Pue(){Pue=z,ube=new F6t}function F6t(){gue.call(this,"")}function $6t(){gue.call(this,"")}function U6t(n){HFt.call(this,n)}function z6t(n){HFt.call(this,n)}function X7e(n){Z6e.call(this,n)}function Q7e(n){cRt.call(this,n)}function mir(n){cRt.call(this,n)}function bir(n){Q7e.call(this,n)}function yir(n){Q7e.call(this,n)}function vir(n){Q7e.call(this,n)}function G6t(n){pfe.call(this,n)}function q6t(n){pfe.call(this,n)}function H6t(n){EOt.call(this,n)}function V6t(n){_Re.call(this,n)}function vL(n){$K.call(this,n)}function Z7e(n){$K.call(this,n)}function Y6t(n){$K.call(this,n)}function J7e(n){qxr.call(this,n)}function eRe(n){J7e.call(this,n)}function tc(n){q9t.call(this,n)}function j6t(n){tc.call(this,n)}function nk(){iU.call(this,{})}function W6t(){W6t=z,Ren=new B}function RK(){RK=z,fbe=new HIt}function K6t(){K6t=z,XUe=new f}function tRe(){tRe=z,QUe=new P}function IK(){IK=z,jM=new U}function Bue(n){QR(),this.a=n}function Fue(n){k9e(),this.a=n}function aE(n){Ede(),this.f=n}function $ue(n){Ede(),this.f=n}function X6t(n){IOt(),this.a=n}function Q6t(n){n.b=null,n.c=0}function _ir(n,i){n.e=i,IYt(n,i)}function wir(n,i){n.a=i,ISr(n)}function Uue(n,i,l){n.a[i.g]=l}function Eir(n,i,l){Vwr(l,n,i)}function xir(n,i){_lr(i.i,n.n)}function Z6t(n,i){Hbr(n).Cd(i)}function Sir(n,i){n.a.ec().Mc(i)}function J6t(n,i){return n.g-i.g}function Tir(n,i){return n*n/i}function Vt(n){return hr(n),n}function We(n){return hr(n),n}function uU(n){return hr(n),n}function Cir(n){return new bK(n)}function Air(n){return new JS(n)}function nRe(n){return hr(n),n}function kir(n){return hr(n),n}function NK(n){tc.call(this,n)}function Sl(n){tc.call(this,n)}function e7t(n){tc.call(this,n)}function zue(n){q9t.call(this,n)}function UR(n){tc.call(this,n)}function ar(n){tc.call(this,n)}function Tl(n){tc.call(this,n)}function t7t(n){tc.call(this,n)}function rk(n){tc.call(this,n)}function zb(n){tc.call(this,n)}function Gb(n){tc.call(this,n)}function ik(n){tc.call(this,n)}function zp(n){tc.call(this,n)}function Gue(n){tc.call(this,n)}function oi(n){tc.call(this,n)}function wh(n){hr(n),this.a=n}function rRe(n){return $_(n),n}function _L(n){gNe(n,n.length)}function wL(n){return n.b==n.c}function US(n){return!!n&&n.b}function Rir(n){return!!n&&n.k}function Iir(n){return!!n&&n.j}function Nir(n,i,l){n.c.Ef(i,l)}function n7t(n,i){n.be(i),i.ae(n)}function ak(n){jp(),this.a=ni(n)}function que(){this.a=ai(ni(Xo))}function r7t(){throw _e(new ri)}function Oir(){throw _e(new ri)}function iRe(){throw _e(new ri)}function i7t(){throw _e(new ri)}function Lir(){throw _e(new ri)}function Dir(){throw _e(new ri)}function OK(){OK=z,p8()}function qb(){aU.call(this,"")}function EL(){aU.call(this,"")}function Cv(){aU.call(this,"")}function sk(){aU.call(this,"")}function aRe(n){Sl.call(this,n)}function sRe(n){Sl.call(this,n)}function Gp(n){ar.call(this,n)}function zR(n){DR.call(this,n)}function a7t(n){zR.call(this,n)}function Hue(n){kX.call(this,n)}function Vue(n){$8e.call(this,n,0)}function Yue(){QNe.call(this,12,3)}function xe(n,i){return PDt(n,i)}function LK(n,i){return Rfe(n,i)}function Mir(n,i){return n.a-i.a}function Pir(n,i){return n.a-i.a}function Bir(n,i){return n.a-i.a}function Fir(n,i){return i in n.a}function s7t(n){return n.a?n.b:0}function $ir(n){return n.a?n.b:0}function Uir(n,i,l){i.Cd(n.a[l])}function zir(n,i,l){i.Pe(n.a[l])}function Gir(n,i){n.b=new Wo(i)}function qir(n,i){return n.b=i,n}function o7t(n,i){return n.c=i,n}function l7t(n,i){return n.f=i,n}function Hir(n,i){return n.g=i,n}function oRe(n,i){return n.a=i,n}function lRe(n,i){return n.f=i,n}function Vir(n,i){return n.k=i,n}function cRe(n,i){return n.a=i,n}function Yir(n,i){return n.e=i,n}function uRe(n,i){return n.e=i,n}function jir(n,i){return n.f=i,n}function Wir(n,i){n.b=!0,n.d=i}function Kir(n,i){return n.b-i.b}function Xir(n,i){return n.g-i.g}function Qir(n,i){return n?0:i-1}function c7t(n,i){return n?0:i-1}function Zir(n,i){return n?i-1:0}function Jir(n,i){return n.s-i.s}function ear(n,i){return i.rg(n)}function sE(n,i){return n.b=i,n}function DK(n,i){return n.a=i,n}function oE(n,i){return n.c=i,n}function lE(n,i){return n.d=i,n}function cE(n,i){return n.e=i,n}function hRe(n,i){return n.f=i,n}function xL(n,i){return n.a=i,n}function GR(n,i){return n.b=i,n}function qR(n,i){return n.c=i,n}function on(n,i){return n.c=i,n}function kn(n,i){return n.b=i,n}function ln(n,i){return n.d=i,n}function cn(n,i){return n.e=i,n}function tar(n,i){return n.f=i,n}function un(n,i){return n.g=i,n}function hn(n,i){return n.a=i,n}function dn(n,i){return n.i=i,n}function fn(n,i){return n.j=i,n}function nar(n,i){Kv(),rc(i,n)}function rar(n,i,l){whr(n.a,i,l)}function MK(n){rde.call(this,n)}function u7t(n){Svr.call(this,n)}function h7t(n){HLt.call(this,n)}function dRe(n){HLt.call(this,n)}function Av(n){PE.call(this,n)}function d7t(n){Yde.call(this,n)}function f7t(n){Yde.call(this,n)}function p7t(){w8e.call(this,"")}function ho(){this.a=0,this.b=0}function g7t(){this.b=0,this.a=0}function m7t(n,i){n.b=0,c4(n,i)}function b7t(n,i){return n.k=i,n}function iar(n,i){return n.j=i,n}function aar(n,i){n.c=i,n.b=!0}function y7t(){y7t=z,Gen=yEr()}function kv(){kv=z,Mun=Rwr()}function v7t(){v7t=z,Ks=zEr()}function fRe(){fRe=z,w2=R8()}function HR(){HR=z,LKe=Iwr()}function _7t(){_7t=z,vhn=Nwr()}function pRe(){pRe=z,Tc=ASr()}function n1(n){return n.e&&n.e()}function w7t(n){return n.l|n.m<<22}function E7t(n,i){return n.c._b(i)}function x7t(n,i){return _zt(n.b,i)}function jue(n){return n?n.d:null}function sar(n){return n?n.g:null}function oar(n){return n?n.i:null}function __(n){return Fm(n),n.o}function ST(n,i){return n.a+=i,n}function Wue(n,i){return n.a+=i,n}function Hb(n,i){return n.a+=i,n}function uE(n,i){return n.a+=i,n}function gRe(n,i){for(;n.Bd(i););}function PK(n){this.a=new ok(n)}function S7t(){throw _e(new ri)}function T7t(){throw _e(new ri)}function C7t(){throw _e(new ri)}function A7t(){throw _e(new ri)}function k7t(){throw _e(new ri)}function R7t(){throw _e(new ri)}function Vb(n){this.a=new Tde(n)}function I7t(){this.a=new iM(kYe)}function N7t(){this.b=new iM(jVe)}function O7t(){this.a=new iM(ZYe)}function L7t(){this.b=new iM(a2e)}function D7t(){this.b=new iM(a2e)}function BK(n){this.a=0,this.b=n}function mRe(n){lKt(),t8r(this,n)}function VR(n){return Pv(n),n.a}function hU(n){return n.b!=n.d.c}function bRe(n,i){return n.d[i.p]}function M7t(n,i){return y5r(n,i)}function yRe(n,i,l){n.splice(i,l)}function TT(n,i){for(;n.Re(i););}function P7t(n){n.c?WYt(n):KYt(n)}function B7t(){throw _e(new ri)}function F7t(){throw _e(new ri)}function $7t(){throw _e(new ri)}function U7t(){throw _e(new ri)}function z7t(){throw _e(new ri)}function G7t(){throw _e(new ri)}function q7t(){throw _e(new ri)}function H7t(){throw _e(new ri)}function V7t(){throw _e(new ri)}function Y7t(){throw _e(new ri)}function lar(){throw _e(new ec)}function car(){throw _e(new ec)}function dU(n){this.a=new j7t(n)}function j7t(n){gmr(this,n,jxr())}function fU(n){return!n||xLt(n)}function pU(n){return fp[n]!=-1}function uar(){Kee!=0&&(Kee=0),Xee=-1}function W7t(){obe==null&&(obe=[])}function gU(n,i){$T.call(this,n,i)}function YR(n,i){gU.call(this,n,i)}function K7t(n,i){this.a=n,this.b=i}function X7t(n,i){this.a=n,this.b=i}function Q7t(n,i){this.a=n,this.b=i}function Z7t(n,i){this.a=n,this.b=i}function J7t(n,i){this.a=n,this.b=i}function eRt(n,i){this.a=n,this.b=i}function tRt(n,i){this.a=n,this.b=i}function jR(n,i){this.e=n,this.d=i}function vRe(n,i){this.b=n,this.c=i}function nRt(n,i){this.b=n,this.a=i}function rRt(n,i){this.b=n,this.a=i}function iRt(n,i){this.b=n,this.a=i}function aRt(n,i){this.b=n,this.a=i}function sRt(n,i){this.a=n,this.b=i}function Kue(n,i){this.a=n,this.b=i}function oRt(n,i){this.a=n,this.f=i}function hE(n,i){this.g=n,this.i=i}function Kr(n,i){this.f=n,this.g=i}function lRt(n,i){this.b=n,this.c=i}function cRt(n){R8e(n.dc()),this.c=n}function har(n,i){this.a=n,this.b=i}function uRt(n,i){this.a=n,this.b=i}function hRt(n){this.a=v(ni(n),15)}function _Re(n){this.a=v(ni(n),15)}function dRt(n){this.a=v(ni(n),85)}function FK(n){this.b=v(ni(n),85)}function $K(n){this.b=v(ni(n),51)}function UK(){this.q=new u.Date}function Xue(n,i){this.a=n,this.b=i}function fRt(n,i){return Tu(n.b,i)}function mU(n,i){return n.b.Hc(i)}function pRt(n,i){return n.b.Ic(i)}function gRt(n,i){return n.b.Qc(i)}function mRt(n,i){return n.b.Hc(i)}function bRt(n,i){return n.c.uc(i)}function yRt(n,i){return Yi(n.c,i)}function r1(n,i){return n.a._b(i)}function vRt(n,i){return n>i&&i0}function nhe(n,i){return Oc(n,i)<0}function MRt(n,i){return yde(n.a,i)}function Nar(n,i){BDt.call(this,n,i)}function ARe(n){Bde(),EOt.call(this,n)}function kRe(n,i){I9t(n,n.length,i)}function _U(n,i){iLt(n,n.length,i)}function NL(n,i){return n.a.get(i)}function PRt(n,i){return Tu(n.e,i)}function RRe(n){return hr(n),!1}function IRe(n){this.a=v(ni(n),229)}function KK(n){Nn.call(this,n,21)}function XK(n,i){Kr.call(this,n,i)}function rhe(n,i){Kr.call(this,n,i)}function BRt(n,i){this.b=n,this.a=i}function QK(n,i){this.d=n,this.e=i}function FRt(n,i){this.a=n,this.b=i}function $Rt(n,i){this.a=n,this.b=i}function URt(n,i){this.a=n,this.b=i}function zRt(n,i){this.a=n,this.b=i}function ck(n,i){this.a=n,this.b=i}function GRt(n,i){this.b=n,this.a=i}function NRe(n,i){this.b=n,this.a=i}function ORe(n,i){Kr.call(this,n,i)}function LRe(n,i){Kr.call(this,n,i)}function CT(n,i){Kr.call(this,n,i)}function ihe(n,i){Kr.call(this,n,i)}function ahe(n,i){Kr.call(this,n,i)}function she(n,i){Kr.call(this,n,i)}function ZK(n,i){Kr.call(this,n,i)}function DRe(n,i){this.b=n,this.a=i}function JK(n,i){Kr.call(this,n,i)}function MRe(n,i){this.b=n,this.a=i}function eX(n,i){Kr.call(this,n,i)}function qRt(n,i){this.b=n,this.a=i}function PRe(n,i){Kr.call(this,n,i)}function ohe(n,i){Kr.call(this,n,i)}function wU(n,i){Kr.call(this,n,i)}function OL(n,i,l){n.splice(i,0,l)}function Oar(n,i,l){n.Mb(l)&&i.Cd(l)}function Lar(n,i,l){i.Pe(n.a.Ye(l))}function Dar(n,i,l){i.Dd(n.a.Ze(l))}function Mar(n,i,l){i.Cd(n.a.Kb(l))}function Par(n,i){return oh(n.c,i)}function Bar(n,i){return oh(n.e,i)}function tX(n,i){Kr.call(this,n,i)}function nX(n,i){Kr.call(this,n,i)}function LL(n,i){Kr.call(this,n,i)}function BRe(n,i){Kr.call(this,n,i)}function ps(n,i){Kr.call(this,n,i)}function rX(n,i){Kr.call(this,n,i)}function HRt(n,i){this.a=n,this.b=i}function VRt(n,i){this.a=n,this.b=i}function YRt(n,i){this.a=n,this.b=i}function jRt(n,i){this.a=n,this.b=i}function WRt(n,i){this.a=n,this.b=i}function KRt(n,i){this.a=n,this.b=i}function XRt(n,i){this.b=n,this.a=i}function QRt(n,i){this.b=n,this.a=i}function FRe(n,i){this.b=n,this.a=i}function XR(n,i){this.c=n,this.d=i}function ZRt(n,i){this.e=n,this.d=i}function JRt(n,i){this.a=n,this.b=i}function e8t(n,i){this.a=n,this.b=i}function t8t(n,i){this.a=n,this.b=i}function n8t(n,i){this.b=n,this.a=i}function r8t(n,i){this.b=i,this.c=n}function iX(n,i){Kr.call(this,n,i)}function EU(n,i){Kr.call(this,n,i)}function lhe(n,i){Kr.call(this,n,i)}function $Re(n,i){Kr.call(this,n,i)}function DL(n,i){Kr.call(this,n,i)}function che(n,i){Kr.call(this,n,i)}function uhe(n,i){Kr.call(this,n,i)}function xU(n,i){Kr.call(this,n,i)}function URe(n,i){Kr.call(this,n,i)}function hhe(n,i){Kr.call(this,n,i)}function ML(n,i){Kr.call(this,n,i)}function zRe(n,i){Kr.call(this,n,i)}function PL(n,i){Kr.call(this,n,i)}function BL(n,i){Kr.call(this,n,i)}function GS(n,i){Kr.call(this,n,i)}function dhe(n,i){Kr.call(this,n,i)}function fhe(n,i){Kr.call(this,n,i)}function GRe(n,i){Kr.call(this,n,i)}function SU(n,i){Kr.call(this,n,i)}function AT(n,i){Kr.call(this,n,i)}function phe(n,i){Kr.call(this,n,i)}function aX(n,i){Kr.call(this,n,i)}function TU(n,i){Kr.call(this,n,i)}function qS(n,i){Kr.call(this,n,i)}function sX(n,i){Kr.call(this,n,i)}function qRe(n,i){Kr.call(this,n,i)}function ghe(n,i){Kr.call(this,n,i)}function mhe(n,i){Kr.call(this,n,i)}function bhe(n,i){Kr.call(this,n,i)}function yhe(n,i){Kr.call(this,n,i)}function vhe(n,i){Kr.call(this,n,i)}function _he(n,i){Kr.call(this,n,i)}function whe(n,i){Kr.call(this,n,i)}function i8t(n,i){this.b=n,this.a=i}function HRe(n,i){Kr.call(this,n,i)}function a8t(n,i){this.a=n,this.b=i}function s8t(n,i){this.a=n,this.b=i}function o8t(n,i){this.a=n,this.b=i}function VRe(n,i){Kr.call(this,n,i)}function YRe(n,i){Kr.call(this,n,i)}function l8t(n,i){this.a=n,this.b=i}function Far(n,i){return r8(),i!=n}function CU(n){return Tr(n.a),n.b}function Ehe(n){return Y4r(n,n.c),n}function c8t(){return y7t(),new Gen}function u8t(){FX(),this.a=new cIe}function h8t(){wJ(),this.a=new fs}function d8t(){nfe(),this.b=new fs}function f8t(n,i){this.b=n,this.d=i}function p8t(n,i){this.a=n,this.b=i}function g8t(n,i){this.a=n,this.b=i}function m8t(n,i){this.a=n,this.b=i}function b8t(n,i){this.b=n,this.a=i}function jRe(n,i){Kr.call(this,n,i)}function WRe(n,i){Kr.call(this,n,i)}function oX(n,i){Kr.call(this,n,i)}function pE(n,i){Kr.call(this,n,i)}function xhe(n,i){Kr.call(this,n,i)}function lX(n,i){Kr.call(this,n,i)}function KRe(n,i){Kr.call(this,n,i)}function XRe(n,i){Kr.call(this,n,i)}function AU(n,i){Kr.call(this,n,i)}function QRe(n,i){Kr.call(this,n,i)}function She(n,i){Kr.call(this,n,i)}function cX(n,i){Kr.call(this,n,i)}function The(n,i){Kr.call(this,n,i)}function Che(n,i){Kr.call(this,n,i)}function Ahe(n,i){Kr.call(this,n,i)}function khe(n,i){Kr.call(this,n,i)}function ZRe(n,i){Kr.call(this,n,i)}function Rhe(n,i){Kr.call(this,n,i)}function JRe(n,i){Kr.call(this,n,i)}function kU(n,i){Kr.call(this,n,i)}function Ihe(n,i){Kr.call(this,n,i)}function e8e(n,i){Kr.call(this,n,i)}function RU(n,i){Kr.call(this,n,i)}function t8e(n,i){Kr.call(this,n,i)}function y8t(n,i){this.b=n,this.a=i}function v8t(n,i){this.b=n,this.a=i}function _8t(n,i){this.b=n,this.a=i}function w8t(n,i){this.b=n,this.a=i}function n8e(n,i){this.a=n,this.b=i}function E8t(n,i){this.a=n,this.b=i}function x8t(n,i){this.a=n,this.b=i}function Ct(n,i){this.a=n,this.b=i}function FL(n,i){Kr.call(this,n,i)}function IU(n,i){Kr.call(this,n,i)}function uk(n,i){Kr.call(this,n,i)}function $L(n,i){Kr.call(this,n,i)}function NU(n,i){Kr.call(this,n,i)}function Nhe(n,i){Kr.call(this,n,i)}function uX(n,i){Kr.call(this,n,i)}function UL(n,i){Kr.call(this,n,i)}function Ohe(n,i){Kr.call(this,n,i)}function hX(n,i){Kr.call(this,n,i)}function kT(n,i){Kr.call(this,n,i)}function OU(n,i){Kr.call(this,n,i)}function zL(n,i){Kr.call(this,n,i)}function GL(n,i){Kr.call(this,n,i)}function LU(n,i){Kr.call(this,n,i)}function dX(n,i){Kr.call(this,n,i)}function RT(n,i){Kr.call(this,n,i)}function Lhe(n,i){Kr.call(this,n,i)}function S8t(n,i){Kr.call(this,n,i)}function fX(n,i){Kr.call(this,n,i)}function T8t(n,i){this.a=n,this.b=i}function C8t(n,i){this.a=n,this.b=i}function A8t(n,i){this.a=n,this.b=i}function k8t(n,i){this.a=n,this.b=i}function R8t(n,i){this.a=n,this.b=i}function I8t(n,i){this.a=n,this.b=i}function Ms(n,i){this.a=n,this.b=i}function N8t(n,i){this.a=n,this.b=i}function O8t(n,i){this.a=n,this.b=i}function L8t(n,i){this.a=n,this.b=i}function D8t(n,i){this.a=n,this.b=i}function M8t(n,i){this.a=n,this.b=i}function P8t(n,i){this.a=n,this.b=i}function B8t(n,i){this.b=n,this.a=i}function F8t(n,i){this.b=n,this.a=i}function $8t(n,i){this.b=n,this.a=i}function U8t(n,i){this.b=n,this.a=i}function z8t(n,i){this.a=n,this.b=i}function G8t(n,i){this.a=n,this.b=i}function pX(n,i){Kr.call(this,n,i)}function q8t(n,i){this.a=n,this.b=i}function H8t(n,i){this.a=n,this.b=i}function hk(n,i){Kr.call(this,n,i)}function V8t(n,i){this.f=n,this.c=i}function r8e(n,i){return oh(n.g,i)}function $ar(n,i){return oh(i.b,n)}function Y8t(n,i){return B0e(n.a,i)}function Uar(n,i){return-n.b.af(i)}function zar(n,i){n&&Ni(EH,n,i)}function i8e(n,i){n.i=null,uZ(n,i)}function Gar(n,i,l){Bqt(i,R1e(n,l))}function qar(n,i,l){Bqt(i,R1e(n,l))}function Har(n,i){vTr(n.a,v(i,58))}function j8t(n,i){ggr(n.a,v(i,12))}function gX(n,i){this.a=n,this.b=i}function W8t(n,i){this.a=n,this.b=i}function K8t(n,i){this.a=n,this.b=i}function X8t(n,i){this.a=n,this.b=i}function Q8t(n,i){this.a=n,this.b=i}function Z8t(n,i){this.d=n,this.b=i}function J8t(n,i){this.e=n,this.a=i}function DU(n,i){this.b=n,this.c=i}function a8e(n,i){this.i=n,this.g=i}function s8e(n,i){this.d=n,this.e=i}function Var(n,i){Igr(new mr(n),i)}function mX(n){return Qz(n.c,n.b)}function Pl(n){return n?n.md():null}function Ze(n){return n??null}function ro(n){return typeof n===Epe}function HS(n){return typeof n===Zk}function VS(n){return typeof n===nBe}function gE(n,i){return Oc(n,i)==0}function bX(n,i){return Oc(n,i)>=0}function qL(n,i){return Oc(n,i)!=0}function yX(n,i){return jmr(n.Kc(),i)}function Nv(n,i){return n.Rd().Xb(i)}function eIt(n){return zh(n),n.d.gc()}function vX(n){return tD(n==null),n}function HL(n,i){return n.a+=""+i,n}function bl(n,i){return n.a+=""+i,n}function VL(n,i){return n.a+=""+i,n}function Kc(n,i){return n.a+=""+i,n}function bi(n,i){return n.a+=""+i,n}function o8e(n,i){return n.a+=""+i,n}function Yar(n){return""+(hr(n),n)}function tIt(n){xh(this),AD(this,n)}function nIt(){XNe(),nNe.call(this)}function rIt(n,i){oNe.call(this,n,i)}function iIt(n,i){oNe.call(this,n,i)}function _X(n,i){oNe.call(this,n,i)}function jo(n,i){qa(n,i,n.c.b,n.c)}function IT(n,i){qa(n,i,n.a,n.a.a)}function l8e(n){return $n(n,0),null}function aIt(){this.b=0,this.a=!1}function sIt(){this.b=0,this.a=!1}function oIt(){this.b=new ok(o4(12))}function lIt(){lIt=z,Ptn=Qr(H0e())}function cIt(){cIt=z,irn=Qr(vYt())}function uIt(){uIt=z,Aon=Qr(Z$t())}function c8e(){c8e=z,I7e(),ZUe=new Br}function i1(n){return n.a=0,n.b=0,n}function hIt(n,i){return n.a=i.g+1,n}function Dhe(n,i){XS.call(this,n,i)}function En(n,i){Ba.call(this,n,i)}function NT(n,i){a8e.call(this,n,i)}function dIt(n,i){FU.call(this,n,i)}function Mhe(n,i){M8.call(this,n,i)}function Ai(n,i){jK(),Ni(hre,n,i)}function fIt(n,i){n.q.setTime(N_(i))}function jar(n){u.clearTimeout(n)}function War(n){return ni(n),new YL(n)}function pIt(n,i){return Ze(n)===Ze(i)}function gIt(n,i){return n.a.a.a.cc(i)}function Phe(n,i){return af(n.a,0,i)}function u8e(n){return Zhr(v(n,74))}function dk(n){return Ps((hr(n),n))}function Kar(n){return Ps((hr(n),n))}function mIt(n){return Su(n.l,n.m,n.h)}function h8e(n,i){return Nc(n.a,i.a)}function Xar(n,i){return nLt(n.a,i.a)}function Qar(n,i){return ha(n.a,i.a)}function qp(n,i){return n.indexOf(i)}function Zar(n,i){return n.j[i.p]==2}function mE(n,i){return n==i?0:n?1:-1}function wX(n){return n<10?"0"+n:""+n}function jl(n){return typeof n===nBe}function Jar(n){return n==dx||n==U4}function esr(n){return n==dx||n==$4}function bIt(n,i){return Nc(n.g,i.g)}function d8e(n){return $l(n.b.b,n,0)}function yIt(){WX.call(this,0,0,0,0)}function Hp(){f7e.call(this,new Zb)}function f8e(n,i){_8(n,0,n.length,i)}function tsr(n,i){return Lt(n.a,i),i}function nsr(n,i){return _0(),i.a+=n}function rsr(n,i){return _0(),i.a+=n}function isr(n,i){return _0(),i.c+=n}function asr(n,i){return Lt(n.c,i),n}function p8e(n,i){return Rd(n.a,i),n}function vIt(n){this.a=c8t(),this.b=n}function _It(n){this.a=c8t(),this.b=n}function Wo(n){this.a=n.a,this.b=n.b}function YL(n){this.a=n,fue.call(this)}function wIt(n){this.a=n,fue.call(this)}function fk(){rf.call(this,0,0,0,0)}function EX(n){return Rd(new ms,n)}function EIt(n){return dQ(v(n,123))}function id(n){return n.vh()&&n.wh()}function OT(n){return n!=up&&n!=y2}function Bm(n){return n==Ol||n==ql}function LT(n){return n==Ef||n==lp}function xIt(n){return n==q5||n==G5}function ssr(n,i){return Nc(n.g,i.g)}function SIt(n,i){return new M8(i,n)}function osr(n,i){return new M8(i,n)}function g8e(n){return Rur(n.b.Kc(),n.a)}function Bhe(n,i){q8(n,i),k8(n,n.D)}function Fhe(n,i,l){nZ(n,i),tZ(n,l)}function DT(n,i,l){FE(n,i),BE(n,l)}function ef(n,i,l){Au(n,i),ku(n,l)}function MU(n,i,l){S8(n,i),C8(n,l)}function PU(n,i,l){T8(n,i),A8(n,l)}function TIt(n,i,l){Q8e.call(this,n,i,l)}function m8e(n){V8t.call(this,n,!0)}function CIt(){XK.call(this,"Tail",3)}function AIt(){XK.call(this,"Head",1)}function Ov(n){eg(),qmr.call(this,n)}function bE(n){WX.call(this,n,n,n,n)}function $he(n){n.c=st(zs,Yn,1,0,5,1)}function b8e(n){return n.b&&ipe(n),n.a}function y8e(n){return n.b&&ipe(n),n.c}function lsr(n,i){rp||(n.b=i)}function csr(n,i){return n[n.length]=i}function usr(n,i){return n[n.length]=i}function hsr(n,i){return l4(i,z1(n))}function dsr(n,i){return l4(i,z1(n))}function fsr(n,i){return oZ(Mde(n.d),i)}function psr(n,i){return oZ(Mde(n.g),i)}function gsr(n,i){return oZ(Mde(n.j),i)}function fo(n,i){Ba.call(this,n.b,i)}function msr(n,i){Yr(Uc(n.a),WDt(i))}function bsr(n,i){Yr(Uh(n.a),KDt(i))}function ysr(n,i,l){ef(l,l.i+n,l.j+i)}function kIt(n,i,l){Ga(n.c[i.g],i.g,l)}function vsr(n,i,l){v(n.c,71).Gi(i,l)}function Uhe(n,i,l){return Ga(n,i,l),l}function RIt(n){Cu(n.Sf(),new W5t(n))}function MT(n){return n!=null?ma(n):0}function _sr(n){return n==null?0:ma(n)}function jL(n){zi(),rE.call(this,n)}function IIt(n){this.a=n,OIe.call(this,n)}function $1(){$1=z,u.Math.log(2)}function tf(){tf=z,lm=(LRt(),zun)}function NIt(){NIt=z,_ve=new UD(D2e)}function ii(){ii=z,new OIt,new Ot}function OIt(){new Br,new Br,new Br}function wsr(){throw _e(new zb(fen))}function Esr(){throw _e(new zb(fen))}function xsr(){throw _e(new zb(pen))}function Ssr(){throw _e(new zb(pen))}function zhe(n){this.a=n,FK.call(this,n)}function Ghe(n){this.a=n,FK.call(this,n)}function LIt(n,i){CE(),this.a=n,this.b=i}function Tsr(n,i){ni(i),zT(n).Jc(new k)}function us(n,i){vde(n.c,n.c.length,i)}function nc(n){return n.ai?1:0}function _8e(n,i){return Oc(n,i)>0?n:i}function Su(n,i,l){return{l:n,m:i,h:l}}function Csr(n,i){n.a!=null&&j8t(i,n.a)}function Asr(n){Uo(n,null),lo(n,null)}function ksr(n,i,l){return Ni(n.g,l,i)}function PT(n,i,l){return qLe(i,l,n.c)}function Rsr(n,i,l){return Ni(n.k,l,i)}function Isr(n,i,l){return m7r(n,i,l),l}function Nsr(n,i){return Sd(),i.n.b+=n}function MIt(n){qNe.call(this),this.b=n}function w8e(n){lIe.call(this),this.a=n}function PIt(){XK.call(this,"Range",2)}function xX(n){this.b=n,this.a=new Ot}function BIt(n){this.b=new no,this.a=n}function FIt(n){n.a=new ce,n.c=new ce}function $It(n){n.a=new Br,n.d=new Br}function UIt(n){rfe(n,null),ife(n,null)}function zIt(n,i){return y7r(n.a,i,null)}function Osr(n,i){return Ni(n.a,i.a,i)}function Eo(n){return new Ct(n.a,n.b)}function E8e(n){return new Ct(n.c,n.d)}function Lsr(n){return new Ct(n.c,n.d)}function WL(n,i){return I6r(n.c,n.b,i)}function $e(n,i){return n!=null&&W0e(n,i)}function qhe(n,i){return xbr(n.Kc(),i)!=-1}function SX(n){return n.Ob()?n.Pb():null}function Dsr(n){this.b=(Fn(),new xue(n))}function x8e(n){this.a=n,Br.call(this)}function GIt(){FU.call(this,null,null)}function qIt(){NX.call(this,null,null)}function HIt(){Kr.call(this,"INSTANCE",0)}function VIt(){EDe(),this.a=new iM(vGe)}function YIt(n){return Qp(n,0,n.length)}function Msr(n,i){return new uNt(n.Kc(),i)}function S8e(n,i){return n.a.Bc(i)!=null}function jIt(n,i){Gr(n),n.Gc(v(i,15))}function Psr(n,i,l){n.c.bd(i,v(l,136))}function Bsr(n,i,l){n.c.Ui(i,v(l,136))}function WIt(n,i){n.c&&(VIe(i),_Dt(i))}function Fsr(n,i){n.q.setHours(i),cM(n,i)}function $sr(n,i){_E(i,n.a.a.a,n.a.a.b)}function Usr(n,i,l,d){Ga(n.a[i.g],l.g,d)}function Hhe(n,i,l){return n.a[i.g][l.g]}function zsr(n,i){return n.e[i.c.p][i.p]}function Gsr(n,i){return n.c[i.c.p][i.p]}function U1(n,i){return n.a[i.c.p][i.p]}function qsr(n,i){return n.j[i.p]=tTr(i)}function Vhe(n,i){return n.a.Bc(i)!=null}function Hsr(n,i){return We(at(i.a))<=n}function Vsr(n,i){return We(at(i.a))>=n}function Ysr(n,i){return kOe(n.f,i.Pg())}function pk(n,i){return n.a*i.a+n.b*i.b}function jsr(n,i){return n.a0?i/(n*n):i*100}function vor(n,i){return n>0?i*i/n:i*i*100}function YS(n,i){return v(j1(n.a,i),34)}function _or(n,i){return Kv(),Rn(n,i.e,i)}function wor(n,i,l){return HK(),l.Mg(n,i)}function Eor(n){return jm(),n.e.a+n.f.a/2}function xor(n,i,l){return jm(),l.e.a-n*i}function Sor(n){return jm(),n.e.b+n.f.b/2}function Tor(n,i,l){return jm(),l.e.b-n*i}function SNt(n){n.d=new wNt(n),n.e=new Br}function TNt(){this.a=new OE,this.b=new OE}function CNt(n){this.c=n,this.a=1,this.b=1}function ANt(n){_pe(),Hkt(this),this.Ff(n)}function Cor(n,i,l){GQ(),n.pf(i)&&l.Cd(n)}function Aor(n,i,l){return Lt(i,Fzt(n,l))}function _E(n,i,l){return n.a+=i,n.b+=l,n}function kor(n,i,l){return n.a*=i,n.b*=l,n}function G8e(n,i){return n.a=i.a,n.b=i.b,n}function OX(n){return n.a=-n.a,n.b=-n.b,n}function ZL(n,i,l){return n.a-=i,n.b-=l,n}function kNt(n){Ea.call(this),xD(this,n)}function RNt(){Kr.call(this,"GROW_TREE",0)}function INt(){Kr.call(this,"POLYOMINO",0)}function sd(n,i,l){uh.call(this,n,i,l,2)}function Ror(n,i,l){FD(Uc(n.a),i,WDt(l))}function NNt(n,i){IL(),FU.call(this,n,i)}function q8e(n,i){Yb(),NX.call(this,n,i)}function ONt(n,i){Yb(),q8e.call(this,n,i)}function LNt(n,i){Yb(),NX.call(this,n,i)}function Ior(n,i){return n.c.Fc(v(i,136))}function Nor(n,i,l){FD(Uh(n.a),i,KDt(l))}function DNt(n){this.c=n,Au(n,0),ku(n,0)}function Qhe(n,i){tf(),QX.call(this,n,i)}function MNt(n,i){tf(),Qhe.call(this,n,i)}function H8e(n,i){tf(),Qhe.call(this,n,i)}function V8e(n,i){tf(),QX.call(this,n,i)}function PNt(n,i){tf(),H8e.call(this,n,i)}function BNt(n,i){tf(),V8e.call(this,n,i)}function FNt(n,i){tf(),QX.call(this,n,i)}function Oor(n,i,l){return i.zl(n.e,n.c,l)}function Lor(n,i,l){return i.Al(n.e,n.c,l)}function Y8e(n,i,l){return LJ(Sz(n,i),l)}function Zhe(n,i){return Hv(n.e,v(i,54))}function Dor(n){return n==null?null:aRr(n)}function Mor(n){return n==null?null:Zxr(n)}function Por(n){return n==null?null:Kl(n)}function Bor(n){return n==null?null:Kl(n)}function Ht(n){return tD(n==null||HS(n)),n}function at(n){return tD(n==null||VS(n)),n}function ai(n){return tD(n==null||ro(n)),n}function Fm(n){n.o==null&&I3r(n)}function j8e(n){if(!n)throw _e(new cU)}function For(n){if(!n)throw _e(new kue)}function Tr(n){if(!n)throw _e(new ec)}function jS(n){if(!n)throw _e(new ih)}function $Nt(n){if(!n)throw _e(new Jd)}function t8(){t8=z,SH=new E6t,new x6t}function UT(){UT=z,Y5=new la("root")}function W8e(){w$t.call(this),this.Bb|=el}function $or(n,i){this.d=n,w5t(this),this.b=i}function K8e(n,i){Tfe.call(this,n),this.a=i}function X8e(n,i){Tfe.call(this,n),this.a=i}function Q8e(n,i,l){FQ.call(this,n,i,l,null)}function UNt(n,i,l){FQ.call(this,n,i,l,null)}function zU(n,i){this.c=n,jR.call(this,n,i)}function JL(n,i){this.a=n,zU.call(this,n,i)}function Z8e(n){this.q=new u.Date(N_(n))}function zNt(n){return n>8?0:n+1}function GNt(n,i){rp||Lt(n.a,i)}function Uor(n,i){return vU(),D8(i.d.i,n)}function zor(n,i){return Bk(),new yjt(i,n)}function Gor(n,i,l){return n.Ne(i,l)<=0?l:i}function qor(n,i,l){return n.Ne(i,l)<=0?i:l}function Hor(n,i){return v(j1(n.b,i),143)}function Vor(n,i){return v(j1(n.c,i),233)}function Jhe(n){return v(Yt(n.a,n.b),294)}function qNt(n){return new Ct(n.c,n.d+n.a)}function HNt(n){return hr(n),n?1231:1237}function VNt(n){return Sd(),xIt(v(n,203))}function WS(){WS=z,jze=bn((ud(),vw))}function Yor(n,i){i.a?X4r(n,i):Vhe(n.a,i.b)}function GU(n,i,l){++n.j,n.tj(),Sfe(n,i,l)}function YNt(n,i,l){++n.j,n.qj(i,n.Zi(i,l))}function jNt(n,i,l){var d;d=n.fd(i),d.Rb(l)}function J8e(n,i,l){return l=Od(n,i,6,l),l}function eIe(n,i,l){return l=Od(n,i,3,l),l}function tIe(n,i,l){return l=Od(n,i,9,l),l}function Yp(n,i){return az(i,TBe),n.f=i,n}function nIe(n,i){return(i&qi)%n.d.length}function WNt(n,i,l){return MPe(n.c,n.b,i,l)}function KNt(n,i){this.c=n,PE.call(this,i)}function XNt(n,i){this.a=n,Pkt.call(this,i)}function qU(n,i){this.a=n,Pkt.call(this,i)}function Ba(n,i){la.call(this,n),this.a=i}function rIe(n,i){C7e.call(this,n),this.a=i}function ede(n,i){C7e.call(this,n),this.a=i}function jor(n){BLe.call(this,0,0),this.f=n}function QNt(n,i,l){return n.a+=Qp(i,0,l),n}function HU(n){return!n.a&&(n.a=new G),n.a}function iIe(n,i){var l;return l=n.e,n.e=i,l}function aIe(n,i){var l;return l=i,!!n.Fe(l)}function Wor(n,i){return Qn(),n==i?0:n?1:-1}function KS(n,i){n.a.bd(n.b,i),++n.b,n.c=-1}function VU(n){n.b?VU(n.b):n.f.c.zc(n.e,n.d)}function ZNt(n){xh(n.e),n.d.b=n.d,n.d.a=n.d}function Kor(n,i,l){w_(),y5t(n,i.Ve(n.a,l))}function sIe(n,i,l){return Sk(n,v(i,22),l)}function v0(n,i){return LK(new Array(i),n)}function Xor(n){return ti(Dv(n,32))^ti(n)}function tde(n){return String.fromCharCode(n)}function Qor(n){return n==null?null:n.message}function Zor(n,i,l){return n.apply(i,l)}function Jor(n,i){var l;l=n[ege],l.call(n,i)}function elr(n,i){var l;l=n[ege],l.call(n,i)}function tlr(n,i){return vU(),!D8(i.d.i,n)}function oIe(n,i,l,d){WX.call(this,n,i,l,d)}function JNt(){LX.call(this),this.a=new ho}function lIe(){this.n=new ho,this.o=new ho}function eOt(){this.b=new ho,this.c=new Ot}function tOt(){this.a=new Ot,this.b=new Ot}function nOt(){this.a=new BS,this.b=new e6t}function cIe(){this.b=new Zb,this.a=new Zb}function rOt(){this.b=new fs,this.a=new fs}function iOt(){this.b=new Br,this.a=new Br}function aOt(){this.b=new N7t,this.a=new iEt}function sOt(){this.a=new mTt,this.b=new K_t}function oOt(){this.a=new Ot,this.d=new Ot}function LX(){this.n=new ek,this.i=new fk}function lOt(n){this.a=(kd(n,k4),new gu(n))}function cOt(n){this.a=(kd(n,k4),new gu(n))}function nlr(n){return n<100?null:new Av(n)}function rlr(n,i){return n.n.a=(hr(i),i+10)}function ilr(n,i){return n.n.a=(hr(i),i+10)}function alr(n,i){return i==n||rI(mJ(i),n)}function uOt(n,i){return Ni(n.a,i,"")==null}function slr(n,i){var l;return l=i.qi(n.a),l}function Hi(n,i){return n.a+=i.a,n.b+=i.b,n}function $s(n,i){return n.a-=i.a,n.b-=i.b,n}function olr(n){return $S(n.j.c,0),n.a=-1,n}function uIe(n,i,l){return l=Od(n,i,11,l),l}function llr(n,i,l){l!=null&&lZ(i,a1e(n,l))}function clr(n,i,l){l!=null&&cZ(i,a1e(n,l))}function bk(n,i,l,d){vt.call(this,n,i,l,d)}function hIe(n,i,l,d){vt.call(this,n,i,l,d)}function hOt(n,i,l,d){hIe.call(this,n,i,l,d)}function dOt(n,i,l,d){iQ.call(this,n,i,l,d)}function nde(n,i,l,d){iQ.call(this,n,i,l,d)}function dIe(n,i,l,d){iQ.call(this,n,i,l,d)}function fOt(n,i,l,d){nde.call(this,n,i,l,d)}function fIe(n,i,l,d){nde.call(this,n,i,l,d)}function Gn(n,i,l,d){dIe.call(this,n,i,l,d)}function pOt(n,i,l,d){fIe.call(this,n,i,l,d)}function gOt(n,i,l,d){hNe.call(this,n,i,l,d)}function XS(n,i){Sl.call(this,FM+n+ew+i)}function pIe(n,i){return n.jk().wi().ri(n,i)}function gIe(n,i){return n.jk().wi().ti(n,i)}function mOt(n,i){return hr(n),Ze(n)===Ze(i)}function An(n,i){return hr(n),Ze(n)===Ze(i)}function ulr(n,i){return n.b.Bd(new $Rt(n,i))}function hlr(n,i){return n.b.Bd(new URt(n,i))}function bOt(n,i){return n.b.Bd(new zRt(n,i))}function dlr(n,i){return n.e=v(n.d.Kb(i),159)}function mIe(n,i,l){return n.lastIndexOf(i,l)}function flr(n,i,l){return ha(n[i.a],n[l.a])}function plr(n,i){return _t(i,(qt(),Pq),n)}function glr(n,i){return Nc(i.a.d.p,n.a.d.p)}function mlr(n,i){return Nc(n.a.d.p,i.a.d.p)}function blr(n,i){return ha(n.c-n.s,i.c-i.s)}function ylr(n,i){return ha(n.b.e.a,i.b.e.a)}function vlr(n,i){return ha(n.c.e.a,i.c.e.a)}function yOt(n){return n.c?$l(n.c.a,n,0):-1}function yk(n){return n==yw||n==sm||n==su}function bIe(n,i){this.c=n,Rde.call(this,n,i)}function vOt(n,i,l){this.a=n,$8e.call(this,i,l)}function _Ot(n){this.c=n,_X.call(this,MG,0)}function wOt(n,i,l){this.c=i,this.b=l,this.a=n}function YU(n){r8(),this.d=n,this.a=new FT}function EOt(n){jp(),this.a=(Fn(),new zR(n))}function _lr(n,i){Bm(n.f)?E3r(n,i):JEr(n,i)}function xOt(n,i){Lur.call(this,n,n.length,i)}function wlr(n,i){rp||i&&(n.d=i)}function SOt(n,i){return $e(i,15)&&ZYt(n.c,i)}function Elr(n,i,l){return v(n.c,71).Wk(i,l)}function DX(n,i,l){return v(n.c,71).Xk(i,l)}function xlr(n,i,l){return Oor(n,v(i,343),l)}function yIe(n,i,l){return Lor(n,v(i,343),l)}function Slr(n,i,l){return Vqt(n,v(i,343),l)}function TOt(n,i,l){return dxr(n,v(i,343),l)}function eD(n,i){return i==null?null:d4(n.b,i)}function vIe(n){return VS(n)?(hr(n),n):n.ue()}function MX(n){return!isNaN(n)&&!isFinite(n)}function rde(n){FIt(this),xd(this),bo(this,n)}function Eh(n){$he(this),MIe(this.c,0,n.Pc())}function nf(n,i,l){this.a=n,this.b=i,this.c=l}function COt(n,i,l){this.a=n,this.b=i,this.c=l}function AOt(n,i,l){this.d=n,this.b=l,this.a=i}function kOt(n){this.a=n,Pm(),xc(Date.now())}function ROt(n){ld(n.a),DOe(n.c,n.b),n.b=null}function ide(){ide=z,_ze=new be,qen=new ve}function IOt(){IOt=z,Yun=st(zs,Yn,1,0,5,1)}function NOt(){NOt=z,uhn=st(zs,Yn,1,0,5,1)}function _Ie(){_Ie=z,hhn=st(zs,Yn,1,0,5,1)}function jp(){jp=z,new R7e((Fn(),Fn(),Zo))}function Tlr(n){return w8(),Xr((BBt(),Yen),n)}function Clr(n){return Ch(),Xr((ABt(),Zen),n)}function Alr(n){return GZ(),Xr((dPt(),itn),n)}function klr(n){return KQ(),Xr((fPt(),atn),n)}function Rlr(n){return SJ(),Xr((dUt(),stn),n)}function Ilr(n){return u1(),Xr((TBt(),ctn),n)}function Nlr(n){return Th(),Xr((SBt(),htn),n)}function Olr(n){return ju(),Xr((CBt(),ftn),n)}function Llr(n){return FJ(),Xr((lIt(),Ptn),n)}function Dlr(n){return GE(),Xr(($Bt(),Ftn),n)}function Mlr(n){return qk(),Xr((zBt(),Utn),n)}function Plr(n){return VD(),Xr((UBt(),qtn),n)}function Blr(n){return GK(),Xr((FMt(),Htn),n)}function Flr(n){return XQ(),Xr((pPt(),onn),n)}function $lr(n){return wD(),Xr((kBt(),Lnn),n)}function Ulr(n){return Mo(),Xr((EFt(),Bnn),n)}function zlr(n){return B8(),Xr((qBt(),Gnn),n)}function Glr(n){return z_(),Xr((GBt(),Wnn),n)}function wIe(n,i){if(!n)throw _e(new ar(i))}function n8(n){if(!n)throw _e(new Tl(rBe))}function ade(n,i){if(n!=i)throw _e(new Jd)}function OOt(n,i,l){this.a=n,this.b=i,this.c=l}function EIe(n,i,l){this.a=n,this.b=i,this.c=l}function LOt(n,i,l){this.a=n,this.b=i,this.c=l}function PX(n,i,l){this.b=n,this.a=i,this.c=l}function xIe(n,i,l){this.b=n,this.c=i,this.a=l}function SIe(n,i,l){this.a=n,this.b=i,this.c=l}function BX(n,i,l){this.e=i,this.b=n,this.d=l}function DOt(n,i,l){this.b=n,this.a=i,this.c=l}function qlr(n,i,l){return w_(),n.a.Yd(i,l),i}function sde(n){var i;return i=new Vn,i.e=n,i}function TIe(n){var i;return i=new a6t,i.b=n,i}function jU(){jU=z,pte=new Svt,gte=new Tvt}function FX(){FX=z,crn=new Zvt,lrn=new Jvt}function _0(){_0=z,prn=new o_t,grn=new l_t}function Hlr(n){return UE(),Xr((aBt(),Trn),n)}function Vlr(n){return qo(),Xr((cIt(),irn),n)}function Ylr(n){return wZ(),Xr((VBt(),orn),n)}function jlr(n){return K1(),Xr((HBt(),yrn),n)}function Wlr(n){return b4(),Xr((xFt(),_rn),n)}function Klr(n){return EJ(),Xr((Q$t(),Crn),n)}function Xlr(n){return jk(),Xr((WFt(),Arn),n)}function Qlr(n){return zQ(),Xr((wPt(),krn),n)}function Zlr(n){return SD(),Xr((rBt(),Rrn),n)}function Jlr(n){return iZ(),Xr((iBt(),Irn),n)}function ecr(n){return ly(),Xr((SFt(),Nrn),n)}function tcr(n){return Rz(),Xr((bPt(),Orn),n)}function ncr(n){return aI(),Xr((QFt(),Frn),n)}function rcr(n){return cl(),Xr((kUt(),$rn),n)}function icr(n){return P8(),Xr((oBt(),Urn),n)}function acr(n){return Ym(),Xr((lBt(),Grn),n)}function scr(n){return IQ(),Xr((mPt(),qrn),n)}function ocr(n){return lG(),Xr((XFt(),Brn),n)}function lcr(n){return F_(),Xr((sBt(),Drn),n)}function ccr(n){return cJ(),Xr((KFt(),Mrn),n)}function ucr(n){return Ez(),Xr((yPt(),Prn),n)}function hcr(n){return pf(),Xr((CFt(),Hrn),n)}function dcr(n){return fy(),Xr((cUt(),psn),n)}function fcr(n){return DD(),Xr((cBt(),gsn),n)}function pcr(n){return g4(),Xr((YBt(),msn),n)}function gcr(n){return HD(),Xr((TFt(),bsn),n)}function mcr(n){return qf(),Xr((RUt(),ysn),n)}function bcr(n){return Zp(),Xr((jBt(),vsn),n)}function ycr(n){return Az(),Xr((vPt(),_sn),n)}function vcr(n){return ll(),Xr((dBt(),Esn),n)}function _cr(n){return yZ(),Xr((uBt(),xsn),n)}function wcr(n){return ND(),Xr((hBt(),Ssn),n)}function Ecr(n){return H8(),Xr((fBt(),Tsn),n)}function xcr(n){return rZ(),Xr((pBt(),Csn),n)}function Scr(n){return EZ(),Xr((gBt(),Asn),n)}function Tcr(n){return $E(),Xr((xBt(),qsn),n)}function Ccr(n){return yD(),Xr((_Pt(),Wsn),n)}function Acr(n){return Kp(),Xr((SPt(),ton),n)}function kcr(n){return G1(),Xr((TPt(),ron),n)}function Rcr(n){return o1(),Xr((CPt(),yon),n)}function Icr(n){return LE(),Xr((APt(),Ton),n)}function Ncr(n){return Yk(),Xr((eFt(),Con),n)}function Ocr(n){return oM(),Xr((uIt(),Aon),n)}function Lcr(n){return OD(),Xr((mBt(),kon),n)}function Dcr(n){return LD(),Xr((JBt(),Qon),n)}function Mcr(n){return AQ(),Xr((EPt(),Zon),n)}function Pcr(n){return hZ(),Xr((xPt(),rln),n)}function Bcr(n){return aJ(),Xr((AFt(),aln),n)}function Fcr(n){return qz(),Xr((bBt(),oln),n)}function $cr(n){return qQ(),Xr((kPt(),sln),n)}function Ucr(n){return ZZ(),Xr((ZBt(),Aln),n)}function zcr(n){return bZ(),Xr((yBt(),kln),n)}function Gcr(n){return BZ(),Xr((vBt(),Rln),n)}function qcr(n){return WZ(),Xr((_Bt(),Nln),n)}function Hcr(n){return NZ(),Xr((wBt(),Dln),n)}function Vcr(n){return MQ(),Xr((RPt(),tcn),n)}function Ycr(n){return N8(),Xr((gPt(),rrn),n)}function jcr(n){return lr(),Xr((ZFt(),Znn),n)}function Wcr(n){return HQ(),Xr((EBt(),ncn),n)}function Kcr(n){return n0e(),Xr((IPt(),rcn),n)}function Xcr(n){return rM(),Xr((kFt(),acn),n)}function Qcr(n){return VK(),Xr((YMt(),ocn),n)}function Zcr(n){return Kz(),Xr((IBt(),scn),n)}function Jcr(n){return YK(),Xr((jMt(),ccn),n)}function eur(n){return bz(),Xr((NPt(),ucn),n)}function tur(n){return uG(),Xr((RFt(),hcn),n)}function nur(n){return AL(),Xr((WMt(),Acn),n)}function rur(n){return $z(),Xr((OPt(),kcn),n)}function iur(n){return d1(),Xr((NFt(),Dcn),n)}function aur(n){return dy(),Xr((K$t(),Pcn),n)}function sur(n){return qg(),Xr((JFt(),Bcn),n)}function our(n){return q_(),Xr((e$t(),qcn),n)}function lur(n){return ys(),Xr((IFt(),lun),n)}function cur(n){return W1(),Xr((NBt(),cun),n)}function uur(n){return Xm(),Xr((tFt(),uun),n)}function hur(n){return oJ(),Xr((t$t(),hun),n)}function dur(n){return Km(),Xr((RBt(),fun),n)}function fur(n){return Id(),Xr((nFt(),gun),n)}function pur(n){return w4(),Xr((hUt(),mun),n)}function gur(n){return ZT(),Xr((OFt(),bun),n)}function mur(n){return co(),Xr((n$t(),yun),n)}function bur(n){return Ah(),Xr((r$t(),vun),n)}function yur(n){return Bt(),Xr((LFt(),_un),n)}function vur(n){return ud(),Xr((rFt(),Tun),n)}function _ur(n){return qh(),Xr((uUt(),Cun),n)}function wur(n){return Uk(),Xr((OBt(),Aun),n)}function Eur(n,i){return hr(n),n+(hr(i),i)}function xur(n){return ode(),Xr((LPt(),kun),n)}function Sur(n){return LZ(),Xr((iFt(),Run),n)}function Tur(n){return xZ(),Xr((aFt(),Oun),n)}function r8(){r8=z,VVe=(Bt(),cr),_ne=gr}function ode(){ode=z,lKe=new u9t,cKe=new K9t}function Cur(n){return!n.e&&(n.e=new Ot),n.e}function lde(n,i){this.c=n,this.a=i,this.b=i-n}function MOt(n,i,l){this.a=n,this.b=i,this.c=l}function cde(n,i,l){this.a=n,this.b=i,this.c=l}function CIe(n,i,l){this.a=n,this.b=i,this.c=l}function AIe(n,i,l){this.a=n,this.b=i,this.c=l}function POt(n,i,l){this.a=n,this.b=i,this.c=l}function BOt(n,i,l){this.a=n,this.b=i,this.c=l}function Wb(n,i,l){this.e=n,this.a=i,this.c=l}function FOt(n,i,l){tf(),VNe.call(this,n,i,l)}function ude(n,i,l){tf(),kNe.call(this,n,i,l)}function kIe(n,i,l){tf(),kNe.call(this,n,i,l)}function RIe(n,i,l){tf(),kNe.call(this,n,i,l)}function $Ot(n,i,l){tf(),ude.call(this,n,i,l)}function IIe(n,i,l){tf(),ude.call(this,n,i,l)}function UOt(n,i,l){tf(),IIe.call(this,n,i,l)}function zOt(n,i,l){tf(),kIe.call(this,n,i,l)}function GOt(n,i,l){tf(),RIe.call(this,n,i,l)}function hde(n){WX.call(this,n.d,n.c,n.a,n.b)}function NIe(n){WX.call(this,n.d,n.c,n.a,n.b)}function OIe(n){this.d=n,w5t(this),this.b=Thr(n.d)}function Aur(n){return oI(),Xr((X$t(),Vun),n)}function WU(n,i){return ni(n),ni(i),new X7t(n,i)}function vk(n,i){return ni(n),ni(i),new t9t(n,i)}function kur(n,i){return ni(n),ni(i),new n9t(n,i)}function Rur(n,i){return ni(n),ni(i),new aRt(n,i)}function dde(n){return Tr(n.b!=0),cf(n,n.a.a)}function Iur(n){return Tr(n.b!=0),cf(n,n.c.b)}function Nur(n){return!n.c&&(n.c=new OR),n.c}function i8(n){var i;return i=new Ot,Pfe(i,n),i}function Our(n){var i;return i=new fs,Pfe(i,n),i}function qOt(n){var i;return i=new D7e,Kfe(i,n),i}function KU(n){var i;return i=new Ea,Kfe(i,n),i}function v(n,i){return tD(n==null||W0e(n,i)),n}function Lur(n,i,l){G9t.call(this,i,l),this.a=n}function HOt(n,i){this.c=n,this.b=i,this.a=!1}function VOt(){this.a=";,;",this.b="",this.c=""}function YOt(n,i,l){this.b=n,rIt.call(this,i,l)}function LIe(n,i,l){this.c=n,QK.call(this,i,l)}function DIe(n,i,l){XR.call(this,n,i),this.b=l}function MIe(n,i,l){AMe(l,0,n,i,l.length,!1)}function Bg(n,i,l,d,g){n.b=i,n.c=l,n.d=d,n.a=g}function PIe(n,i,l,d,g){n.d=i,n.c=l,n.a=d,n.b=g}function Dur(n,i){i&&(n.b=i,n.a=(Pv(i),i.a))}function XU(n,i){if(!n)throw _e(new ar(i))}function _k(n,i){if(!n)throw _e(new Tl(i))}function BIe(n,i){if(!n)throw _e(new e7t(i))}function Mur(n,i){return qK(),Nc(n.d.p,i.d.p)}function Pur(n,i){return jm(),ha(n.e.b,i.e.b)}function Bur(n,i){return jm(),ha(n.e.a,i.e.a)}function Fur(n,i){return Nc(o9t(n.d),o9t(i.d))}function $X(n,i){return i&&cQ(n,i.d)?i:null}function $ur(n,i){return i==(Bt(),cr)?n.c:n.d}function FIe(n){return zv(Fhr(jl(n)?Uf(n):n))}function Uur(n){return new Ct(n.c+n.b,n.d+n.a)}function jOt(n){return n!=null&&!L0e(n,ZP,JP)}function zur(n,i){return(Tzt(n)<<4|Tzt(i))&vs}function WOt(n,i,l,d,g){n.c=i,n.d=l,n.b=d,n.a=g}function $Ie(n){var i,l;i=n.b,l=n.c,n.b=l,n.c=i}function UIe(n){var i,l;l=n.d,i=n.a,n.d=i,n.a=l}function Gur(n,i){var l;return l=n.c,y9e(n,i),l}function zIe(n,i){return i<0?n.g=-1:n.g=i,n}function UX(n,i){return Xgr(n),n.a*=i,n.b*=i,n}function KOt(n,i,l){qFt.call(this,i,l),this.d=n}function QU(n,i,l){s8e.call(this,n,i),this.c=l}function zX(n,i,l){s8e.call(this,n,i),this.c=l}function GIe(n){_Ie(),gK.call(this),this.ci(n)}function XOt(){y8(),cdr.call(this,(Rv(),t0))}function QOt(n){return zi(),new Fg(0,n)}function ZOt(){ZOt=z,K2e=(Fn(),new Eue(Zme))}function GX(){GX=z,new JLe((Pue(),ube),(Mue(),cbe))}function JOt(){JOt=z,sze=st(Ao,kt,17,256,0,1)}function e9t(){this.b=We(at(zt((A0(),qbe))))}function fde(n){this.b=n,this.a=x_(this.b.a).Od()}function t9t(n,i){this.b=n,this.a=i,fue.call(this)}function n9t(n,i){this.a=n,this.b=i,fue.call(this)}function r9t(n,i,l){this.a=n,NT.call(this,i,l)}function i9t(n,i,l){this.a=n,NT.call(this,i,l)}function a8(n,i,l){var d;d=new JS(l),c1(n,i,d)}function qIe(n,i,l){var d;return d=n[i],n[i]=l,d}function qX(n){var i;return i=n.slice(),Rfe(i,n)}function HX(n){var i;return i=n.n,n.a.b+i.d+i.a}function a9t(n){var i;return i=n.n,n.e.b+i.d+i.a}function HIe(n){var i;return i=n.n,n.e.a+i.b+i.c}function VIe(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function pi(n,i){return qa(n,i,n.c.b,n.c),!0}function qur(n){return n.a?n.a:zde(n)}function Hur(n){return kk(),Hg(n)==Aa(jv(n))}function Vur(n){return kk(),jv(n)==Aa(Hg(n))}function wE(n,i){return KD(n,new XR(i.a,i.b))}function Yur(n,i){return hQ(),n1e(n,i),new ALt(n,i)}function jur(n,i){return n.c=i)throw _e(new z7e)}function QS(n,i){return jz(n,(hr(i),new k5t(i)))}function Ek(n,i){return jz(n,(hr(i),new R5t(i)))}function H9t(n,i,l){return v8r(n,v(i,12),v(l,12))}function V9t(n){return hh(),v(n,12).g.c.length!=0}function Y9t(n){return hh(),v(n,12).e.c.length!=0}function Nhr(n,i){return Bk(),ha(i.a.o.a,n.a.o.a)}function Ohr(n,i){i.Bb&Sc&&!n.a.o&&(n.a.o=i)}function Lhr(n,i){i.Ug("General 'Rotator",1),j7r(n)}function Dhr(n,i,l){i.qf(l,We(at(br(n.b,l)))*n.a)}function j9t(n,i,l){return l5(),O8(n,i)&&O8(n,l)}function aD(n){return Ah(),!n.Hc(ub)&&!n.Hc(v2)}function Mhr(n){return n.e?OOe(n.e):null}function sD(n){return jl(n)?""+n:QYt(n)}function uNe(n){var i;for(i=n;i.f;)i=i.f;return i}function Phr(n,i,l){return Ga(i,0,XIe(i[0],l[0])),i}function Kb(n,i,l,d){var g;g=n.i,g.i=i,g.a=l,g.b=d}function vt(n,i,l,d){gs.call(this,n,i,l),this.b=d}function js(n,i,l,d,g){Afe.call(this,n,i,l,d,g,-1)}function oD(n,i,l,d,g){vz.call(this,n,i,l,d,g,-1)}function iQ(n,i,l,d){QU.call(this,n,i,l),this.b=d}function W9t(n){V8t.call(this,n,!1),this.a=!1}function K9t(){S8t.call(this,"LOOKAHEAD_LAYOUT",1)}function X9t(n){this.b=n,gk.call(this,n),tNt(this)}function Q9t(n){this.b=n,$U.call(this,n),nNt(this)}function ZS(n,i,l){this.a=n,bk.call(this,i,l,5,6)}function hNe(n,i,l,d){this.b=n,gs.call(this,i,l,d)}function Z9t(n,i){this.b=n,i5t.call(this,n.b),this.a=i}function J9t(n){this.a=PGt(n.a),this.b=new Eh(n.b)}function dNe(n,i){CE(),har.call(this,n,AZ(new wh(i)))}function aQ(n,i){return zi(),new ANe(n,i,0)}function Cde(n,i){return zi(),new ANe(6,n,i)}function xo(n,i){for(hr(i);n.Ob();)i.Cd(n.Pb())}function Tu(n,i){return ro(i)?Kde(n,i):!!ol(n.f,i)}function Ade(n,i){return i.Vh()?Hv(n.b,v(i,54)):i}function Bhr(n,i){return An(n.substr(0,i.length),i)}function $g(n){return new yr(new L8e(n.a.length,n.a))}function sQ(n){return new Ct(n.c+n.b/2,n.d+n.a/2)}function Fhr(n){return Su(~n.l&Hh,~n.m&Hh,~n.h&rb)}function kde(n){return typeof n===NG||typeof n===xpe}function xh(n){n.f=new vIt(n),n.i=new _It(n),++n.g}function eLt(n){if(!n)throw _e(new ec);return n.d}function xk(n){var i;return i=ID(n),Tr(i!=null),i}function $hr(n){var i;return i=tvr(n),Tr(i!=null),i}function o8(n,i){var l;return l=n.a.gc(),AOe(i,l),l-i}function Es(n,i){var l;return l=n.a.zc(i,n),l==null}function JU(n,i){return n.a.zc(i,(Qn(),a2))==null}function fNe(n){return new xn(null,Hhr(n,n.length))}function pNe(n,i,l){return wWt(n,v(i,42),v(l,176))}function Sk(n,i,l){return S0(n.a,i),qIe(n.b,i.g,l)}function Uhr(n,i,l){s8(l,n.a.c.length),of(n.a,l,i)}function tt(n,i,l,d){ZUt(i,l,n.length),zhr(n,i,l,d)}function zhr(n,i,l,d){var g;for(g=i;g0?u.Math.log(n/i):-100}function nLt(n,i){return Oc(n,i)<0?-1:Oc(n,i)>0?1:0}function ez(n,i){jIt(n,$e(i,160)?i:v(i,2036).Rl())}function yNe(n,i){if(n==null)throw _e(new rk(i))}function Hhr(n,i){return Ygr(i,n.length),new c9t(n,i)}function vNe(n,i){return i?bo(n,i):!1}function Vhr(){return RK(),Te(xe(Een,1),wt,549,0,[fbe])}function cD(n){return n.e==0?n:new T_(-n.e,n.d,n.a)}function Yhr(n,i){return ha(n.c.c+n.c.b,i.c.c+i.c.b)}function tz(n,i){qa(n.d,i,n.b.b,n.b),++n.a,n.c=null}function rLt(n,i){return n.c?rLt(n.c,i):Lt(n.b,i),n}function jhr(n,i,l){var d;return d=s4(n,i),hfe(n,i,l),d}function iLt(n,i,l){var d;for(d=0;d=n.g}function Ga(n,i,l){return For(l==null||OAr(n,l)),n[i]=l}function SNe(n,i){return sr(i,n.length+1),n.substr(i)}function Fde(n,i){for(hr(i);n.c=n?new wRe:mmr(n-1)}function So(n){return!n.a&&n.c?n.c.b:n.a}function RNe(n){return $e(n,616)?n:new xDt(n)}function Pv(n){n.c?Pv(n.c):(Vv(n),n.d=!0)}function dD(n){n.c?n.c.$e():(n.d=!0,DTr(n))}function SLt(n){n.b=!1,n.c=!1,n.d=!1,n.a=!1}function TLt(n){var i,l;return i=n.c.i.c,l=n.d.i.c,i==l}function ddr(n,i){var l;l=n.Ih(i),l>=0?n.ki(l):yMe(n,i)}function CLt(n,i){n.c<0||n.b.b0;)n=n<<1|(n<0?1:0);return n}function DLt(n,i){var l;return l=new Xc(n),jn(i.c,l),l}function MLt(n,i){n.u.Hc((Ah(),ub))&&b4r(n,i),Mpr(n,i)}function Ec(n,i){return Ze(n)===Ze(i)||n!=null&&Yi(n,i)}function yl(n,i){return yde(n.a,i)?n.b[v(i,22).g]:null}function Tdr(){return GK(),Te(xe(Xze,1),wt,489,0,[Pbe])}function Cdr(){return VK(),Te(xe(Sje,1),wt,490,0,[s2e])}function Adr(){return YK(),Te(xe(lcn,1),wt,558,0,[o2e])}function kdr(){return AL(),Te(xe(Vje,1),wt,539,0,[eH])}function dQ(n){return!n.n&&(n.n=new vt(wl,n,1,7)),n.n}function Ude(n){return!n.c&&(n.c=new vt(Oh,n,9,9)),n.c}function LNe(n){return!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c}function Rdr(n){return!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b}function nz(n){return n.j.c.length=0,MNe(n.c),olr(n.a),n}function d8(n){return n.e==zI&&Vrr(n,x2r(n.g,n.b)),n.e}function rz(n){return n.f==zI&&jrr(n,pwr(n.g,n.b)),n.f}function Oi(n,i,l,d){return iUt(n,i,l,!1),kZ(n,d),n}function PLt(n,i){this.b=n,Rde.call(this,n,i),tNt(this)}function BLt(n,i){this.b=n,bIe.call(this,n,i),nNt(this)}function fD(n){this.d=n,this.a=this.d.b,this.b=this.d.c}function DNe(n,i){this.b=n,this.c=i,this.a=new lk(this.b)}function Do(n,i){return sr(i,n.length),n.charCodeAt(i)}function Idr(n,i){wLe(n,We(Wm(i,"x")),We(Wm(i,"y")))}function Ndr(n,i){wLe(n,We(Wm(i,"x")),We(Wm(i,"y")))}function Ki(n,i){return Vv(n),new xn(n,new VOe(i,n.a))}function Bl(n,i){return Vv(n),new xn(n,new IOe(i,n.a))}function e4(n,i){return Vv(n),new K8e(n,new YPt(i,n.a))}function fQ(n,i){return Vv(n),new X8e(n,new jPt(i,n.a))}function Odr(n,i){return new oDt(v(ni(n),50),v(ni(i),50))}function Ldr(n,i){return ha(n.d.c+n.d.b/2,i.d.c+i.d.b/2)}function FLt(n,i,l){l.a?ku(n,i.b-n.f/2):Au(n,i.a-n.g/2)}function Ddr(n,i){return ha(n.g.c+n.g.b/2,i.g.c+i.g.b/2)}function Mdr(n,i){return SRe(),ha((hr(n),n),(hr(i),i))}function Pdr(n){return n!=null&&mU(dre,n.toLowerCase())}function MNe(n){var i;for(i=n.Kc();i.Ob();)i.Pb(),i.Qb()}function zT(n){var i;return i=n.b,!i&&(n.b=i=new XTt(n)),i}function zde(n){var i;return i=_mr(n),i||null}function $Lt(n,i){var l,d;return l=n/i,d=Ps(l),l>d&&++d,d}function Bdr(n,i,l){var d;d=v(n.d.Kb(l),159),d&&d.Nb(i)}function Fdr(n,i,l){Ukr(n.a,l),bbr(l),o3r(n.b,l),s6r(i,l)}function pQ(n,i,l,d){this.a=n,this.c=i,this.b=l,this.d=d}function PNe(n,i,l,d){this.c=n,this.b=i,this.a=l,this.d=d}function ULt(n,i,l,d){this.c=n,this.b=i,this.d=l,this.a=d}function rf(n,i,l,d){this.c=n,this.d=i,this.b=l,this.a=d}function zLt(n,i,l,d){this.a=n,this.d=i,this.c=l,this.b=d}function Gde(n,i,l,d){this.a=n,this.e=i,this.d=l,this.c=d}function GLt(n,i,l,d){this.a=n,this.c=i,this.d=l,this.b=d}function qde(n,i,l){this.a=cBe,this.d=n,this.b=i,this.c=l}function Ck(n,i,l,d){Kr.call(this,n,i),this.a=l,this.b=d}function qLt(n,i){this.d=(hr(n),n),this.a=16449,this.c=i}function HLt(n){this.a=new Ot,this.e=st(Wr,kt,53,n,0,2)}function $dr(n){n.Ug("No crossing minimization",1),n.Vg()}function VLt(){tc.call(this,"There is no more element.")}function YLt(n,i,l,d){this.a=n,this.b=i,this.c=l,this.d=d}function jLt(n,i,l,d){this.a=n,this.b=i,this.c=l,this.d=d}function A_(n,i,l,d){this.e=n,this.a=i,this.c=l,this.d=d}function WLt(n,i,l,d){this.a=n,this.c=i,this.d=l,this.b=d}function KLt(n,i,l,d){tf(),WPt.call(this,i,l,d),this.a=n}function XLt(n,i,l,d){tf(),WPt.call(this,i,l,d),this.a=n}function Hde(n,i,l){var d,g;return d=KPe(n),g=i.ti(l,d),g}function $m(n){var i,l;return l=(i=new iE,i),x8(l,n),l}function Vde(n){var i,l;return l=(i=new iE,i),ZDe(l,n),l}function Udr(n,i){var l;return l=br(n.f,i),N9e(i,l),null}function QLt(n){return!n.b&&(n.b=new vt(ss,n,12,3)),n.b}function ZLt(n){return tD(n==null||kde(n)&&n.Tm!==Z),n}function gQ(n){return n.n&&(n.e!==JKt&&n.je(),n.j=null),n}function f8(n){if(zh(n.d),n.d.d!=n.c)throw _e(new Jd)}function BNe(n){return Tr(n.b0&&Iqt(this)}function JLt(n,i){this.a=n,$or.call(this,n,v(n.d,15).fd(i))}function zdr(n,i){return ha(lh(n)*od(n),lh(i)*od(i))}function Gdr(n,i){return ha(lh(n)*od(n),lh(i)*od(i))}function qdr(n){return KE(n)&&Vt(Ht(Et(n,(qt(),lw))))}function Hdr(n,i){return Rn(n,v(oe(i,(qt(),oN)),17),i)}function Vdr(n,i){return v(oe(n,(At(),w6)),15).Fc(i),i}function FNe(n,i){return n.b=i.b,n.c=i.c,n.d=i.d,n.a=i.a,n}function eDt(n,i,l,d){this.b=n,this.c=d,_X.call(this,i,l)}function Ydr(n,i,l){n.i=0,n.e=0,i!=l&&BUt(n,i,l)}function jdr(n,i,l){n.i=0,n.e=0,i!=l&&FUt(n,i,l)}function Wdr(n,i,l){return CL(),wvr(v(br(n.e,i),529),l)}function Ak(n){var i;return i=n.f,i||(n.f=new jR(n,n.c))}function tDt(n,i){return QT(n.j,i.s,i.c)+QT(i.e,n.s,n.c)}function nDt(n,i){n.e&&!n.e.a&&(qkt(n.e,i),nDt(n.e,i))}function rDt(n,i){n.d&&!n.d.a&&(qkt(n.d,i),rDt(n.d,i))}function Kdr(n,i){return-ha(lh(n)*od(n),lh(i)*od(i))}function Xdr(n){return v(n.ld(),149).Pg()+":"+Kl(n.md())}function iDt(){S1e(this,new X6e),this.wb=(Mv(),Zn),HR()}function aDt(n){this.b=new Ot,xs(this.b,this.b),this.a=n}function $Ne(n,i){new Ea,this.a=new ah,this.b=n,this.c=i}function IE(){IE=z,yze=new ne,wbe=new ne,vze=new se}function Fn(){Fn=z,Zo=new Q,Jg=new j,ete=new ee}function UNe(){UNe=z,ttn=new mt,rtn=new tNe,ntn=new lt}function kk(){kk=z,lte=new Ot,Ube=new Br,$be=new Ot}function mQ(n,i){if(n==null)throw _e(new rk(i));return n}function bQ(n){return!n.a&&(n.a=new vt(Pi,n,10,11)),n.a}function ia(n){return!n.q&&(n.q=new vt(e0,n,11,10)),n.q}function bt(n){return!n.s&&(n.s=new vt(Ju,n,21,17)),n.s}function Qdr(n){return ni(n),YGt(new yr(_r(n.a.Kc(),new S)))}function Zdr(n,i){return cd(n),cd(i),J6t(v(n,22),v(i,22))}function k_(n,i,l){var d,g;d=vIe(l),g=new bK(d),c1(n,i,g)}function jde(n,i,l,d,g,y){vz.call(this,n,i,l,d,g,y?-2:-1)}function sDt(n,i,l,d){s8e.call(this,i,l),this.b=n,this.a=d}function oDt(n,i){bir.call(this,new Tde(n)),this.a=n,this.b=i}function zNe(n){this.b=n,this.c=n,n.e=null,n.c=null,this.a=1}function Jdr(n){_0();var i;i=v(n.g,10),i.n.a=n.d.c+i.d.b}function p8(){p8=z;var n,i;i=!s2r(),n=new F,mbe=i?new M:n}function Wde(n){return Fn(),$e(n,59)?new Hue(n):new kX(n)}function yQ(n){return $e(n,16)?new nD(v(n,16)):Our(n.Kc())}function efr(n){return new iNt(n,n.e.Rd().gc()*n.c.Rd().gc())}function tfr(n){return new aNt(n,n.e.Rd().gc()*n.c.Rd().gc())}function GNe(n){return n&&n.hashCode?n.hashCode():vE(n)}function Kde(n,i){return i==null?!!ol(n.f,null):bhr(n.i,i)}function nfr(n,i){var l;return l=S8e(n.a,i),l&&(i.d=null),l}function lDt(n,i,l){return n.f?n.f.ef(i,l):!1}function iz(n,i,l,d){Ga(n.c[i.g],l.g,d),Ga(n.c[l.g],i.g,d)}function Xde(n,i,l,d){Ga(n.c[i.g],i.g,l),Ga(n.b[i.g],i.g,d)}function rfr(n,i,l){return We(at(l.a))<=n&&We(at(l.b))>=i}function cDt(n,i){this.g=n,this.d=Te(xe(tm,1),gy,10,0,[i])}function uDt(n){this.c=n,this.b=new Vb(v(ni(new $t),50))}function hDt(n){this.c=n,this.b=new Vb(v(ni(new Mf),50))}function dDt(n){this.b=n,this.a=new Vb(v(ni(new Or),50))}function fDt(){this.b=new fs,this.d=new Ea,this.e=new G7e}function qNe(){this.c=new ho,this.d=new ho,this.e=new ho}function NE(){this.a=new ah,this.b=(kd(3,k4),new gu(3))}function Xb(n,i){this.e=n,this.a=zs,this.b=fjt(i),this.c=i}function vQ(n){this.c=n.c,this.d=n.d,this.b=n.b,this.a=n.a}function pDt(n,i,l,d,g,y){this.a=n,Gfe.call(this,i,l,d,g,y)}function gDt(n,i,l,d,g,y){this.a=n,Gfe.call(this,i,l,d,g,y)}function Bv(n,i,l,d,g,y,x){return new ffe(n.e,i,l,d,g,y,x)}function ifr(n,i,l){return l>=0&&An(n.substr(l,i.length),i)}function mDt(n,i){return $e(i,149)&&An(n.b,v(i,149).Pg())}function afr(n,i){return n.a?i.Gh().Kc():v(i.Gh(),71).Ii()}function bDt(n,i){var l;return l=n.b.Qc(i),hPt(l,n.b.gc()),l}function az(n,i){if(n==null)throw _e(new rk(i));return n}function Fl(n){return n.u||($h(n),n.u=new XNt(n,n)),n.u}function Qde(n){this.a=(Fn(),$e(n,59)?new Hue(n):new kX(n))}function Vu(n){var i;return i=v(rr(n,16),29),i||n.ii()}function _Q(n,i){var l;return l=__(n.Rm),i==null?l:l+": "+i}function af(n,i,l){return mo(i,l,n.length),n.substr(i,l-i)}function yDt(n,i){LX.call(this),e9e(this),this.a=n,this.c=i}function sfr(n){n&&_Q(n,n.ie())}function ofr(n){OK(),u.setTimeout(function(){throw n},0)}function lfr(){return GZ(),Te(xe(Aze,1),wt,436,0,[Rbe,Cze])}function cfr(){return KQ(),Te(xe(Rze,1),wt,435,0,[kze,Ibe])}function ufr(){return XQ(),Te(xe(rGe,1),wt,432,0,[zbe,cte])}function hfr(){return N8(),Te(xe(nrn,1),wt,517,0,[Tq,tye])}function dfr(){return IQ(),Te(xe(Uqe,1),wt,429,0,[Nye,$qe])}function ffr(){return Rz(),Te(xe(Sqe,1),wt,428,0,[$te,xqe])}function pfr(){return zQ(),Te(xe(mqe,1),wt,431,0,[gqe,mye])}function gfr(){return Az(),Te(xe(OVe,1),wt,430,0,[dve,fve])}function mfr(){return yD(),Te(xe(jsn,1),wt,531,0,[EP,wP])}function bfr(){return hZ(),Te(xe(kYe,1),wt,501,0,[Rne,j5])}function yfr(){return Kp(),Te(xe(eon,1),wt,523,0,[Cx,Ey])}function vfr(){return G1(),Te(xe(non,1),wt,522,0,[fw,sp])}function _fr(){return o1(),Te(xe(bon,1),wt,528,0,[n3,d2])}function wfr(){return Ez(),Te(xe(Aqe,1),wt,488,0,[Cqe,zte])}function Efr(){return MQ(),Te(xe(bje,1),wt,491,0,[r2e,mje])}function xfr(){return n0e(),Te(xe(xje,1),wt,492,0,[wje,Eje])}function Sfr(){return AQ(),Te(xe(AYe,1),wt,433,0,[Mve,CYe])}function Tfr(){return qQ(),Te(xe(IYe,1),wt,434,0,[RYe,zve])}function Cfr(){return LE(),Te(xe(Son,1),wt,465,0,[f2,H5])}function Afr(){return bz(),Te(xe(Tje,1),wt,438,0,[l2e,Une])}function kfr(){return $z(),Te(xe(jje,1),wt,437,0,[Gne,Yje])}function Rfr(){return ode(),Te(xe(rre,1),wt,347,0,[lKe,cKe])}function wQ(n,i,l,d){return l>=0?n.Uh(i,l,d):n.Ch(null,l,d)}function sz(n){return n.b.b==0?n.a.sf():dde(n.b)}function Ifr(n){if(n.p!=5)throw _e(new ih);return ti(n.f)}function Nfr(n){if(n.p!=5)throw _e(new ih);return ti(n.k)}function HNe(n){return Ze(n.a)===Ze((e0e(),Y2e))&&R6r(n),n.a}function Ofr(n,i){n.b=i,n.c>0&&n.b>0&&(n.g=KX(n.c,n.b,n.a))}function Lfr(n,i){n.c=i,n.c>0&&n.b>0&&(n.g=KX(n.c,n.b,n.a))}function vDt(n,i){Rrr(this,new Ct(n.a,n.b)),Irr(this,KU(i))}function OE(){yir.call(this,new ok(o4(12))),R8e(!0),this.a=2}function Zde(n,i,l){zi(),rE.call(this,n),this.b=i,this.a=l}function VNe(n,i,l){tf(),xK.call(this,i),this.a=n,this.b=l}function _Dt(n){var i;i=n.c.d.b,n.b=i,n.a=n.c.d,i.a=n.c.d.b=n}function Dfr(n){return n.b==0?null:(Tr(n.b!=0),cf(n,n.a.a))}function Qc(n,i){return i==null?Pl(ol(n.f,null)):NL(n.i,i)}function wDt(n,i,l,d,g){return new C1e(n,(w8(),Tbe),i,l,d,g)}function EQ(n,i){return lPt(i),imr(n,st(Wr,vi,28,i,15,1),i)}function xQ(n,i){return mQ(n,"set1"),mQ(i,"set2"),new uRt(n,i)}function Mfr(n,i){var l=gbe[n.charCodeAt(0)];return l??n}function EDt(n,i){var l,d;return l=i,d=new ye,KWt(n,l,d),d.d}function Jde(n,i,l,d){var g;g=new JNt,i.a[l.g]=g,Sk(n.b,d,g)}function Pfr(n,i){var l;return l=tmr(n.f,i),Hi(OX(l),n.f.d)}function oz(n){var i;dmr(n.a),RIt(n.a),i=new _K(n.a),NLe(i)}function Bfr(n,i){rjt(n,!0),Cu(n.e.Rf(),new xIe(n,!0,i))}function Ffr(n,i){return kk(),n==Aa(Hg(i))||n==Aa(jv(i))}function $fr(n,i){return jm(),v(oe(i,(pc(),gg)),17).a==n}function Ps(n){return Math.max(Math.min(n,qi),-2147483648)|0}function xDt(n){this.a=v(ni(n),277),this.b=(Fn(),new P8e(n))}function SDt(n,i,l){this.i=new Ot,this.b=n,this.g=i,this.a=l}function YNe(n,i,l){this.a=new Ot,this.e=n,this.f=i,this.c=l}function SQ(n,i,l){this.c=new Ot,this.e=n,this.f=i,this.b=l}function TDt(n){LX.call(this),e9e(this),this.a=n,this.c=!0}function Ufr(n){function i(){}return i.prototype=n||{},new i}function zfr(n){if(n.Ae())return null;var i=n.n;return Wee[i]}function lz(n){return n.Db>>16!=3?null:v(n.Cb,27)}function z1(n){return n.Db>>16!=9?null:v(n.Cb,27)}function CDt(n){return n.Db>>16!=6?null:v(n.Cb,74)}function LE(){LE=z,f2=new WRe(r6,0),H5=new WRe(i6,1)}function Kp(){Kp=z,Cx=new VRe(i6,0),Ey=new VRe(r6,1)}function G1(){G1=z,fw=new YRe(cge,0),sp=new YRe("UP",1)}function ADt(){ADt=z,xen=Qr((RK(),Te(xe(Een,1),wt,549,0,[fbe])))}function kDt(n){var i;return i=new PK(o4(n.length)),H9e(i,n),i}function RDt(n,i){return n.b+=i.b,n.c+=i.c,n.d+=i.d,n.a+=i.a,n}function Gfr(n,i){return gUt(n,i)?(h$t(n),!0):!1}function Um(n,i){if(i==null)throw _e(new ZA);return l2r(n,i)}function cz(n,i){var l;l=n.q.getHours(),n.q.setDate(i),cM(n,l)}function jNe(n,i,l){var d;d=n.Ih(i),d>=0?n.bi(d,l):VMe(n,i,l)}function IDt(n,i){var l;return l=n.Ih(i),l>=0?n.Wh(l):O1e(n,i)}function NDt(n,i){var l;for(ni(i),l=n.a;l;l=l.c)i.Yd(l.g,l.i)}function efe(n,i,l){var d;d=MUt(n,i,l),n.b=new fZ(d.c.length)}function GT(n,i,l){TQ(),n&&Ni(q2e,n,i),n&&Ni(EH,n,l)}function qfr(n,i){return FX(),Qn(),v(i.a,17).a0}function WNe(n){var i;return i=n.d,i=n.bj(n.f),Yr(n,i),i.Ob()}function ODt(n,i){var l;return l=new ZIe(i),rHt(l,n),new Eh(l)}function Yfr(n){if(n.p!=0)throw _e(new ih);return qL(n.f,0)}function jfr(n){if(n.p!=0)throw _e(new ih);return qL(n.k,0)}function LDt(n){return n.Db>>16!=7?null:v(n.Cb,241)}function g8(n){return n.Db>>16!=6?null:v(n.Cb,241)}function DDt(n){return n.Db>>16!=7?null:v(n.Cb,167)}function Aa(n){return n.Db>>16!=11?null:v(n.Cb,27)}function t4(n){return n.Db>>16!=17?null:v(n.Cb,29)}function MDt(n){return n.Db>>16!=3?null:v(n.Cb,155)}function KNe(n){var i;return Vv(n),i=new fs,Ki(n,new z5t(i))}function PDt(n,i){var l=n.a=n.a||[];return l[i]||(l[i]=n.ve(i))}function Wfr(n,i){var l;l=n.q.getHours(),n.q.setMonth(i),cM(n,l)}function BDt(n,i){CX(this),this.f=i,this.g=n,gQ(this),this.je()}function FDt(n,i){this.a=n,this.c=Eo(this.a),this.b=new vQ(i)}function $Dt(n,i,l){this.a=i,this.c=n,this.b=(ni(l),new Eh(l))}function UDt(n,i,l){this.a=i,this.c=n,this.b=(ni(l),new Eh(l))}function zDt(n){this.a=n,this.b=st(Hsn,kt,2043,n.e.length,0,2)}function GDt(){this.a=new Hp,this.e=new fs,this.g=0,this.i=0}function TQ(){TQ=z,q2e=new Br,EH=new Br,zar(zen,new NSt)}function qDt(){qDt=z,ksn=ch(new ms,(Mo(),Gl),(qo(),Cq))}function XNe(){XNe=z,Rsn=ch(new ms,(Mo(),Gl),(qo(),Cq))}function HDt(){HDt=z,Nsn=ch(new ms,(Mo(),Gl),(qo(),Cq))}function VDt(){VDt=z,Ksn=yi(new ms,(Mo(),Gl),(qo(),eP))}function Sd(){Sd=z,Zsn=yi(new ms,(Mo(),Gl),(qo(),eP))}function YDt(){YDt=z,Jsn=yi(new ms,(Mo(),Gl),(qo(),eP))}function nfe(){nfe=z,ion=yi(new ms,(Mo(),Gl),(qo(),eP))}function pD(n,i,l,d,g,y){return new Vm(n.e,i,n.Lj(),l,d,g,y)}function Cl(n,i,l){return i==null?yu(n.f,null,l):qE(n.i,i,l)}function Uo(n,i){n.c&&Yu(n.c.g,n),n.c=i,n.c&&Lt(n.c.g,n)}function po(n,i){n.c&&Yu(n.c.a,n),n.c=i,n.c&&Lt(n.c.a,n)}function rc(n,i){n.i&&Yu(n.i.j,n),n.i=i,n.i&&Lt(n.i.j,n)}function lo(n,i){n.d&&Yu(n.d.e,n),n.d=i,n.d&&Lt(n.d.e,n)}function rfe(n,i){n.a&&Yu(n.a.k,n),n.a=i,n.a&&Lt(n.a.k,n)}function ife(n,i){n.b&&Yu(n.b.f,n),n.b=i,n.b&&Lt(n.b.f,n)}function jDt(n,i){sdr(n,n.b,n.c),v(n.b.b,68),i&&v(i.b,68).b}function Kfr(n,i){return ha(v(n.c,65).c.e.b,v(i.c,65).c.e.b)}function Xfr(n,i){return ha(v(n.c,65).c.e.a,v(i.c,65).c.e.a)}function Qfr(n){return _0e(),Qn(),v(n.a,86).d.e!=0}function CQ(n,i){$e(n.Cb,184)&&(v(n.Cb,184).tb=null),mu(n,i)}function afe(n,i){$e(n.Cb,90)&&_4($h(v(n.Cb,90)),4),mu(n,i)}function Zfr(n,i){ELe(n,i),$e(n.Cb,90)&&_4($h(v(n.Cb,90)),2)}function Jfr(n,i){var l,d;l=i.c,d=l!=null,d&&Tk(n,new JS(i.c))}function WDt(n){var i,l;return l=(HR(),i=new iE,i),x8(l,n),l}function KDt(n){var i,l;return l=(HR(),i=new iE,i),x8(l,n),l}function XDt(n){for(var i;;)if(i=n.Pb(),!n.Ob())return i}function e0r(n,i,l){return Lt(n.a,(hQ(),n1e(i,l),new hE(i,l))),n}function Zc(n,i){return al(),Dfe(i)?new VX(i,n):new DU(i,n)}function uz(n){return eg(),Oc(n,0)>=0?Yv(n):cD(Yv(ty(n)))}function t0r(n){var i;return i=v(qX(n.b),9),new nf(n.a,i,n.c)}function QDt(n,i){var l;return l=v(d4(Ak(n.a),i),16),l?l.gc():0}function ZDt(n,i,l){var d;xzt(i,l,n.c.length),d=l-i,yRe(n.c,i,d)}function Qb(n,i,l){xzt(i,l,n.gc()),this.c=n,this.a=i,this.b=l-i}function Rk(n){this.c=new Ea,this.b=n.b,this.d=n.c,this.a=n.a}function sfe(n){this.a=u.Math.cos(n),this.b=u.Math.sin(n)}function R_(n,i,l,d){this.c=n,this.d=d,rfe(this,i),ife(this,l)}function QNe(n,i){mir.call(this,new ok(o4(n))),kd(i,jKt),this.a=i}function JDt(n,i,l){return new C1e(n,(w8(),Sbe),null,!1,i,l)}function eMt(n,i,l){return new C1e(n,(w8(),Cbe),i,l,null,!1)}function n0r(){return Ch(),Te(xe(Il,1),wt,108,0,[Tze,Ql,B4])}function r0r(){return ju(),Te(xe(dtn,1),wt,472,0,[g1,o2,I0])}function i0r(){return Th(),Te(xe(utn,1),wt,471,0,[dg,s2,R0])}function a0r(){return u1(),Te(xe(F4,1),wt,237,0,[bc,vu,yc])}function s0r(){return wD(),Te(xe(yGe,1),wt,391,0,[Vbe,Hbe,Ybe])}function o0r(){return UE(),Te(xe(oye,1),wt,372,0,[px,l2,fx])}function l0r(){return SD(),Te(xe(yqe,1),wt,322,0,[nP,Rq,bqe])}function c0r(){return iZ(),Te(xe(_qe,1),wt,351,0,[vqe,Fte,bye])}function u0r(){return F_(),Te(xe(Lrn,1),wt,460,0,[_ye,tN,O5])}function h0r(){return P8(),Te(xe(Iye,1),wt,299,0,[kye,Rye,Iq])}function d0r(){return Ym(),Te(xe(zrn,1),wt,311,0,[Nq,D5,y6])}function f0r(){return DD(),Te(xe(EVe,1),wt,390,0,[ave,wVe,gne])}function p0r(){return ll(),Te(xe(wsn,1),wt,463,0,[yP,Rh,_u])}function g0r(){return yZ(),Te(xe(MVe,1),wt,387,0,[LVe,pve,DVe])}function m0r(){return ND(),Te(xe(PVe,1),wt,349,0,[mve,gve,Gq])}function b0r(){return H8(),Te(xe(FVe,1),wt,350,0,[bve,BVe,vP])}function y0r(){return rZ(),Te(xe(zVe,1),wt,352,0,[UVe,yve,$Ve])}function v0r(){return EZ(),Te(xe(GVe,1),wt,388,0,[vve,pN,t3])}function _0r(){return $E(),Te(xe(Gsn,1),wt,464,0,[qq,_P,vne])}function q1(n){return ac(Te(xe(Vs,1),kt,8,0,[n.i.n,n.n,n.a]))}function w0r(){return OD(),Te(xe(aYe,1),wt,392,0,[iYe,Eve,Vq])}function tMt(){tMt=z,Jon=ch(new ms,(Yk(),SP),(oM(),KVe))}function AQ(){AQ=z,Mve=new KRe("DFS",0),CYe=new KRe("BFS",1)}function nMt(n,i,l){var d;d=new $wt,d.b=i,d.a=l,++i.b,Lt(n.d,d)}function E0r(n,i,l){var d;d=new Wo(l.d),Hi(d,n),wLe(i,d.a,d.b)}function x0r(n,i){KIt(n,ti(Us(xE(i,24),GJ)),ti(Us(i,GJ)))}function n4(n,i){if(n<0||n>i)throw _e(new Sl(yBe+n+vBe+i))}function $n(n,i){if(n<0||n>=i)throw _e(new Sl(yBe+n+vBe+i))}function sr(n,i){if(n<0||n>=i)throw _e(new aRe(yBe+n+vBe+i))}function Nn(n,i){this.b=(hr(n),n),this.a=i&R4?i:i|64|ng}function ZNe(n){var i;return Vv(n),i=(IE(),IE(),wbe),JQ(n,i)}function S0r(n,i,l){var d;return d=dM(n,i,!1),d.b<=i&&d.a<=l}function T0r(){return HQ(),Te(xe(_je,1),wt,439,0,[i2e,vje,yje])}function C0r(){return NZ(),Te(xe(tje,1),wt,394,0,[eje,Jve,JYe])}function A0r(){return BZ(),Te(xe(ZYe,1),wt,445,0,[Xq,Lne,jve])}function k0r(){return WZ(),Te(xe(Iln,1),wt,456,0,[Wve,Xve,Kve])}function R0r(){return qz(),Te(xe(LYe,1),wt,393,0,[Ine,NYe,OYe])}function I0r(){return bZ(),Te(xe(QYe,1),wt,300,0,[Yve,XYe,KYe])}function N0r(){return Km(),Te(xe(eKe,1),wt,346,0,[Xne,Cy,qP])}function O0r(){return Kz(),Te(xe(a2e,1),wt,444,0,[Bne,Fne,$ne])}function L0r(){return W1(),Te(xe(GWe,1),wt,278,0,[wN,s3,EN])}function D0r(){return Uk(),Te(xe(oKe,1),wt,280,0,[sKe,l3,nre])}function DE(n){return ni(n),$e(n,16)?new Eh(v(n,16)):i8(n.Kc())}function JNe(n,i){return n&&n.equals?n.equals(i):Ze(n)===Ze(i)}function Us(n,i){return zv(Chr(jl(n)?Uf(n):n,jl(i)?Uf(i):i))}function s1(n,i){return zv(Ahr(jl(n)?Uf(n):n,jl(i)?Uf(i):i))}function ofe(n,i){return zv(khr(jl(n)?Uf(n):n,jl(i)?Uf(i):i))}function M0r(n,i){var l;return l=(hr(n),n).g,j8e(!!l),hr(i),l(i)}function rMt(n,i){var l,d;return d=o8(n,i),l=n.a.fd(d),new lRt(n,l)}function P0r(n){return n.Db>>16!=6?null:v(M1e(n),241)}function B0r(n){if(n.p!=2)throw _e(new ih);return ti(n.f)&vs}function F0r(n){if(n.p!=2)throw _e(new ih);return ti(n.k)&vs}function pe(n){return Tr(n.ad?1:0}function oMt(n,i){var l,d;return l=Ife(i),d=l,v(br(n.c,d),17).a}function lfe(n,i,l){var d;d=n.d[i.p],n.d[i.p]=n.d[l.p],n.d[l.p]=d}function K0r(n,i,l){var d;n.n&&i&&l&&(d=new ESt,Lt(n.e,d))}function cfe(n,i){if(Es(n.a,i),i.d)throw _e(new tc(mXt));i.d=n}function nOe(n,i){this.a=new Ot,this.d=new Ot,this.f=n,this.c=i}function lMt(){this.c=new VIt,this.a=new QPt,this.b=new c6t,ARt()}function cMt(){Fk(),this.b=new Br,this.a=new Br,this.c=new Ot}function uMt(n,i,l){this.d=n,this.j=i,this.e=l,this.o=-1,this.p=3}function hMt(n,i,l){this.d=n,this.k=i,this.f=l,this.o=-1,this.p=5}function dMt(n,i,l,d,g,y){n9e.call(this,n,i,l,d,g),y&&(this.o=-2)}function fMt(n,i,l,d,g,y){r9e.call(this,n,i,l,d,g),y&&(this.o=-2)}function pMt(n,i,l,d,g,y){_Oe.call(this,n,i,l,d,g),y&&(this.o=-2)}function gMt(n,i,l,d,g,y){s9e.call(this,n,i,l,d,g),y&&(this.o=-2)}function mMt(n,i,l,d,g,y){wOe.call(this,n,i,l,d,g),y&&(this.o=-2)}function bMt(n,i,l,d,g,y){i9e.call(this,n,i,l,d,g),y&&(this.o=-2)}function yMt(n,i,l,d,g,y){a9e.call(this,n,i,l,d,g),y&&(this.o=-2)}function vMt(n,i,l,d,g,y){EOe.call(this,n,i,l,d,g),y&&(this.o=-2)}function _Mt(n,i,l,d){xK.call(this,l),this.b=n,this.c=i,this.d=d}function wMt(n,i){this.f=n,this.a=(y8(),gre),this.c=gre,this.b=i}function EMt(n,i){this.g=n,this.d=(y8(),mre),this.a=mre,this.b=i}function rOe(n,i){!n.c&&(n.c=new Xa(n,0)),OJ(n.c,(ca(),tB),i)}function X0r(n,i){return O3r(n,i,$e(i,102)&&(v(i,19).Bb&el)!=0)}function Q0r(n,i){return nLt(xc(n.q.getTime()),xc(i.q.getTime()))}function xMt(n){return gde(n.e.Rd().gc()*n.c.Rd().gc(),16,new jTt(n))}function Z0r(n){return!!n.u&&Uc(n.u.a).i!=0&&!(n.n&&Z0e(n.n))}function J0r(n){return!!n.a&&Uh(n.a.a).i!=0&&!(n.b&&J0e(n.b))}function iOe(n,i){return i==0?!!n.o&&n.o.f!=0:Y0e(n,i)}function e1r(n,i,l){var d;return d=v(n.Zb().xc(i),16),!!d&&d.Hc(l)}function SMt(n,i,l){var d;return d=v(n.Zb().xc(i),16),!!d&&d.Mc(l)}function TMt(n,i){var l;return l=1-i,n.a[l]=dZ(n.a[l],l),dZ(n,i)}function CMt(n,i){var l,d;return d=Us(n,ul),l=w0(i,32),s1(l,d)}function AMt(n,i,l){var d;d=(ni(n),new Eh(n)),nwr(new $Dt(d,i,l))}function hz(n,i,l){var d;d=(ni(n),new Eh(n)),rwr(new UDt(d,i,l))}function dc(n,i,l,d,g,y){return iUt(n,i,l,y),fLe(n,d),pLe(n,g),n}function kMt(n,i,l,d){return n.a+=""+af(i==null?Ku:Kl(i),l,d),n}function go(n,i){this.a=n,hL.call(this,n),n4(i,n.gc()),this.b=i}function RMt(n){this.a=st(zs,Yn,1,U9e(u.Math.max(8,n))<<1,5,1)}function dz(n){return v(X1(n,st(tm,gy,10,n.c.length,0,1)),199)}function Xp(n){return v(X1(n,st(Jbe,Cge,18,n.c.length,0,1)),483)}function IMt(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function gD(n){for(;n.d>0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function NMt(n){return Tr(n.b.b!=n.d.a),n.c=n.b=n.b.b,--n.a,n.c.c}function t1r(n,i,l){n.a=i,n.c=l,n.b.a.$b(),xd(n.d),$S(n.e.a.c,0)}function OMt(n,i){var l;n.e=new K7e,l=E4(i),us(l,n.c),YYt(n,l,0)}function bs(n,i,l,d){var g;g=new q6e,g.a=i,g.b=l,g.c=d,pi(n.a,g)}function It(n,i,l,d){var g;g=new q6e,g.a=i,g.b=l,g.c=d,pi(n.b,g)}function LMt(n,i,l){if(n<0||il)throw _e(new Sl(pSr(n,i,l)))}function fz(n,i){if(n<0||n>=i)throw _e(new Sl(VSr(n,i)));return n}function n1r(n){if(!("stack"in n))try{throw n}catch{}return n}function qT(n){return CL(),$e(n.g,10)?v(n.g,10):null}function r1r(n){return zT(n).dc()?!1:(Tsr(n,new I),!0)}function N_(n){var i;return jl(n)?(i=n,i==-0?0:i):ygr(n)}function DMt(n,i){return $e(i,44)?i1e(n.a,v(i,44)):!1}function MMt(n,i){return $e(i,44)?i1e(n.a,v(i,44)):!1}function PMt(n,i){return $e(i,44)?i1e(n.a,v(i,44)):!1}function aOe(n){var i;return Pv(n),i=new ie,TT(n.a,new F5t(i)),i}function sOe(){var n,i,l;return i=(l=(n=new iE,n),l),Lt(qKe,i),i}function kQ(n){var i;return Pv(n),i=new ge,TT(n.a,new $5t(i)),i}function i1r(n,i){return n.a<=n.b?(i.Dd(n.a++),!0):!1}function BMt(n){Qfe.call(this,n,(w8(),xbe),null,!1,null,!1)}function FMt(){FMt=z,Htn=Qr((GK(),Te(xe(Xze,1),wt,489,0,[Pbe])))}function $Mt(){$Mt=z,HVe=NLt(Nt(1),Nt(4)),qVe=NLt(Nt(1),Nt(2))}function a1r(n,i){return new cde(i,ZL(Eo(i.e),n,n),(Qn(),!0))}function RQ(n){return new gu((kd(n,Ape),QQ(zo(zo(5,n),n/10|0))))}function s1r(n){return gde(n.e.Rd().gc()*n.c.Rd().gc(),273,new YTt(n))}function UMt(n){return v(X1(n,st(Jnn,WXt,12,n.c.length,0,1)),2042)}function o1r(n){return Sd(),!Jo(n)&&!(!Jo(n)&&n.c.i.c==n.d.i.c)}function l1r(n,i){return Pk(),v(oe(i,(pc(),V5)),17).a>=n.gc()}function mD(n,i){HRr(i,n),$Ie(n.d),$Ie(v(oe(n,(qt(),lne)),214))}function ufe(n,i){VRr(i,n),UIe(n.d),UIe(v(oe(n,(qt(),lne)),214))}function c1r(n,i,l){n.d&&Yu(n.d.e,n),n.d=i,n.d&&EE(n.d.e,l,n)}function u1r(n,i,l){return l.f.c.length>0?pNe(n.a,i,l):pNe(n.b,i,l)}function h1r(n,i,l){var d;d=k2r();try{return Zor(n,i,l)}finally{rpr(d)}}function ME(n,i){var l,d;return l=Um(n,i),d=null,l&&(d=l.pe()),d}function bD(n,i){var l,d;return l=Um(n,i),d=null,l&&(d=l.se()),d}function m8(n,i){var l,d;return l=s4(n,i),d=null,l&&(d=l.se()),d}function zm(n,i){var l,d;return l=Um(n,i),d=null,l&&(d=aMe(l)),d}function d1r(n,i,l){var d;return d=Z8(l),AJ(n.g,d,i),AJ(n.i,i,l),i}function oOe(n,i,l){this.d=new QCt(this),this.e=n,this.i=i,this.f=l}function zMt(n,i,l,d){this.e=null,this.c=n,this.d=i,this.a=l,this.b=d}function GMt(n,i,l,d){$It(this),this.c=n,this.e=i,this.f=l,this.b=d}function lOe(n,i,l,d){this.d=n,this.n=i,this.g=l,this.o=d,this.p=-1}function qMt(n,i,l,d){return $e(l,59)?new vNt(n,i,l,d):new lNe(n,i,l,d)}function b8(n){return $e(n,16)?v(n,16).dc():!n.Kc().Ob()}function HMt(n){if(n.e.g!=n.b)throw _e(new Jd);return!!n.c&&n.d>0}function Fr(n){return Tr(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function cOe(n,i){hr(i),Ga(n.a,n.c,i),n.c=n.c+1&n.a.length-1,dqt(n)}function Fv(n,i){hr(i),n.b=n.b-1&n.a.length-1,Ga(n.a,n.b,i),dqt(n)}function VMt(n){var i;i=n.Gh(),this.a=$e(i,71)?v(i,71).Ii():i.Kc()}function f1r(n){return new Nn(Zgr(v(n.a.md(),16).gc(),n.a.ld()),16)}function YMt(){YMt=z,ocn=Qr((VK(),Te(xe(Sje,1),wt,490,0,[s2e])))}function jMt(){jMt=z,ccn=Qr((YK(),Te(xe(lcn,1),wt,558,0,[o2e])))}function WMt(){WMt=z,Acn=Qr((AL(),Te(xe(Vje,1),wt,539,0,[eH])))}function p1r(){return z_(),Te(xe(EGe,1),wt,389,0,[z4,wGe,Qbe,Zbe])}function g1r(){return w8(),Te(xe(tte,1),wt,304,0,[xbe,Sbe,Tbe,Cbe])}function m1r(){return qk(),Te(xe($tn,1),wt,332,0,[yq,bq,vq,_q])}function b1r(){return VD(),Te(xe(Gtn,1),wt,406,0,[wq,ate,ste,Eq])}function y1r(){return GE(),Te(xe(Btn,1),wt,417,0,[mq,gq,Dbe,Mbe])}function v1r(){return B8(),Te(xe(znn,1),wt,416,0,[dx,U4,$4,A5])}function _1r(){return K1(),Te(xe(brn,1),wt,421,0,[b6,WI,KI,sye])}function w1r(){return wZ(),Te(xe(srn,1),wt,371,0,[aye,Ote,Lte,Aq])}function E1r(){return g4(),Te(xe(ove,1),wt,203,0,[mne,sve,q5,G5])}function x1r(){return Zp(),Te(xe(NVe,1),wt,284,0,[wy,IVe,uve,hve])}function S1r(n){var i;return n.j==(Bt(),Mr)&&(i=DVt(n),oh(i,gr))}function T1r(n,i){var l;l=i.a,Uo(l,i.c.d),lo(l,i.d.d),u4(l.a,n.n)}function uOe(n,i){var l;return l=v(j1(n.b,i),67),!l&&(l=new Ea),l}function Nk(n){return CL(),$e(n.g,154)?v(n.g,154):null}function C1r(n){n.a=null,n.e=null,$S(n.b.c,0),$S(n.f.c,0),n.c=null}function IQ(){IQ=z,Nye=new GRe(CI,0),$qe=new GRe("TOP_LEFT",1)}function yD(){yD=z,EP=new HRe("UPPER",0),wP=new HRe("LOWER",1)}function A1r(n,i){return pk(new Ct(i.e.a+i.f.a/2,i.e.b+i.f.b/2),n)}function KMt(n,i){return v(ad(QS(v(Zi(n.k,i),15).Oc(),R5)),113)}function XMt(n,i){return v(ad(Ek(v(Zi(n.k,i),15).Oc(),R5)),113)}function k1r(){return Yk(),Te(xe(jVe,1),wt,405,0,[xne,xP,SP,TP])}function R1r(){return LD(),Te(xe(TYe,1),wt,353,0,[Dve,kne,Lve,Ove])}function I1r(){return ZZ(),Te(xe(WYe,1),wt,354,0,[Vve,YYe,jYe,VYe])}function N1r(){return ud(),Te(xe(WP,1),wt,386,0,[mH,vw,gH,o3])}function O1r(){return Id(),Te(xe(pun,1),wt,291,0,[dH,im,m2,hH])}function L1r(){return Xm(),Te(xe(D2e,1),wt,223,0,[L2e,uH,xN,O6])}function D1r(){return LZ(),Te(xe(fKe,1),wt,320,0,[B2e,uKe,dKe,hKe])}function M1r(){return xZ(),Te(xe(Nun,1),wt,415,0,[F2e,gKe,pKe,mKe])}function P1r(n){return TQ(),Tu(q2e,n)?v(br(q2e,n),341).Qg():null}function sf(n,i,l){return i<0?O1e(n,l):v(l,69).wk().Bk(n,n.hi(),i)}function B1r(n,i,l){var d;return d=Z8(l),AJ(n.j,d,i),Ni(n.k,i,l),i}function F1r(n,i,l){var d;return d=Z8(l),AJ(n.d,d,i),Ni(n.e,i,l),i}function QMt(n){var i,l;return i=(kv(),l=new uue,l),n&&bJ(i,n),i}function hOe(n){var i;return i=n.aj(n.i),n.i>0&&Gc(n.g,0,i,0,n.i),i}function ZMt(n,i){var l;for(l=n.j.c.length;l>24}function U1r(n){if(n.p!=1)throw _e(new ih);return ti(n.k)<<24>>24}function z1r(n){if(n.p!=7)throw _e(new ih);return ti(n.k)<<16>>16}function G1r(n){if(n.p!=7)throw _e(new ih);return ti(n.f)<<16>>16}function HT(n,i){return i.e==0||n.e==0?KM:(uI(),z1e(n,i))}function tPt(n,i){return Ze(i)===Ze(n)?"(this Map)":i==null?Ku:Kl(i)}function q1r(n,i,l){return Sde(at(Pl(ol(n.f,i))),at(Pl(ol(n.f,l))))}function H1r(n,i,l){var d;d=v(br(n.g,l),60),Lt(n.a.c,new Ms(i,d))}function nPt(n,i,l){n.i=0,n.e=0,i!=l&&(FUt(n,i,l),BUt(n,i,l))}function V1r(n,i,l,d,g){var y;y=Y3r(g,l,d),Lt(i,FSr(g,y)),Rxr(n,g,i)}function dOe(n,i,l,d,g){this.i=n,this.a=i,this.e=l,this.j=d,this.f=g}function rPt(n,i){qNe.call(this),this.a=n,this.b=i,Lt(this.a.b,this)}function iPt(n){this.b=new Br,this.c=new Br,this.d=new Br,this.a=n}function aPt(n,i){var l;return l=new sk,n.Gd(l),l.a+="..",i.Hd(l),l.a}function sPt(n,i){var l;for(l=i;l;)_E(n,l.i,l.j),l=Aa(l);return n}function oPt(n,i,l){var d;return d=Z8(l),Ni(n.b,d,i),Ni(n.c,i,l),i}function Gm(n){var i;for(i=0;n.Ob();)n.Pb(),i=zo(i,1);return QQ(i)}function zg(n,i){al();var l;return l=v(n,69).vk(),Vxr(l,i),l.xl(i)}function Y1r(n,i,l){if(l){var d=l.oe();n.a[i]=d(l)}else delete n.a[i]}function fOe(n,i){var l;l=n.q.getHours(),n.q.setFullYear(i+Jv),cM(n,l)}function j1r(n,i){return v(i==null?Pl(ol(n.f,null)):NL(n.i,i),288)}function pOe(n,i){return n==(lr(),is)&&i==is?4:n==is||i==is?8:32}function NQ(n,i,l){return RJ(n,i,l,$e(i,102)&&(v(i,19).Bb&el)!=0)}function W1r(n,i,l){return pI(n,i,l,$e(i,102)&&(v(i,19).Bb&el)!=0)}function K1r(n,i,l){return $3r(n,i,l,$e(i,102)&&(v(i,19).Bb&el)!=0)}function gOe(n){n.b!=n.c&&(n.a=st(zs,Yn,1,8,5,1),n.b=0,n.c=0)}function vD(n){return Tr(n.a=0&&n.a[l]===i[l];l--);return l<0}function OQ(n){var i;return n?new ZIe(n):(i=new Hp,Kfe(i,n),i)}function npr(n,i){var l,d;d=!1;do l=AUt(n,i),d=d|l;while(l);return d}function rpr(n){n&&Rgr((tRe(),QUe)),--Kee,n&&Xee!=-1&&(jar(Xee),Xee=-1)}function LQ(n){qDe(),KIt(this,ti(Us(xE(n,24),GJ)),ti(Us(n,GJ)))}function dPt(){dPt=z,itn=Qr((GZ(),Te(xe(Aze,1),wt,436,0,[Rbe,Cze])))}function fPt(){fPt=z,atn=Qr((KQ(),Te(xe(Rze,1),wt,435,0,[kze,Ibe])))}function pPt(){pPt=z,onn=Qr((XQ(),Te(xe(rGe,1),wt,432,0,[zbe,cte])))}function gPt(){gPt=z,rrn=Qr((N8(),Te(xe(nrn,1),wt,517,0,[Tq,tye])))}function mPt(){mPt=z,qrn=Qr((IQ(),Te(xe(Uqe,1),wt,429,0,[Nye,$qe])))}function bPt(){bPt=z,Orn=Qr((Rz(),Te(xe(Sqe,1),wt,428,0,[$te,xqe])))}function yPt(){yPt=z,Prn=Qr((Ez(),Te(xe(Aqe,1),wt,488,0,[Cqe,zte])))}function vPt(){vPt=z,_sn=Qr((Az(),Te(xe(OVe,1),wt,430,0,[dve,fve])))}function _Pt(){_Pt=z,Wsn=Qr((yD(),Te(xe(jsn,1),wt,531,0,[EP,wP])))}function wPt(){wPt=z,krn=Qr((zQ(),Te(xe(mqe,1),wt,431,0,[gqe,mye])))}function EPt(){EPt=z,Zon=Qr((AQ(),Te(xe(AYe,1),wt,433,0,[Mve,CYe])))}function xPt(){xPt=z,rln=Qr((hZ(),Te(xe(kYe,1),wt,501,0,[Rne,j5])))}function SPt(){SPt=z,ton=Qr((Kp(),Te(xe(eon,1),wt,523,0,[Cx,Ey])))}function TPt(){TPt=z,ron=Qr((G1(),Te(xe(non,1),wt,522,0,[fw,sp])))}function CPt(){CPt=z,yon=Qr((o1(),Te(xe(bon,1),wt,528,0,[n3,d2])))}function APt(){APt=z,Ton=Qr((LE(),Te(xe(Son,1),wt,465,0,[f2,H5])))}function kPt(){kPt=z,sln=Qr((qQ(),Te(xe(IYe,1),wt,434,0,[RYe,zve])))}function RPt(){RPt=z,tcn=Qr((MQ(),Te(xe(bje,1),wt,491,0,[r2e,mje])))}function IPt(){IPt=z,rcn=Qr((n0e(),Te(xe(xje,1),wt,492,0,[wje,Eje])))}function NPt(){NPt=z,ucn=Qr((bz(),Te(xe(Tje,1),wt,438,0,[l2e,Une])))}function OPt(){OPt=z,kcn=Qr(($z(),Te(xe(jje,1),wt,437,0,[Gne,Yje])))}function LPt(){LPt=z,kun=Qr((ode(),Te(xe(rre,1),wt,347,0,[lKe,cKe])))}function ipr(){return ys(),Te(xe(zP,1),wt,88,0,[cp,ql,Ol,lp,Ef])}function apr(){return Bt(),Te(xe(tl,1),Dc,64,0,[lc,or,gr,Mr,cr])}function spr(n,i,l){return v(i==null?yu(n.f,null,l):qE(n.i,i,l),288)}function opr(n){return(n.k==(lr(),is)||n.k==hs)&&ya(n,(At(),sP))}function gfe(n){return n.c&&n.d?tOe(n.c)+"->"+tOe(n.d):"e_"+vE(n)}function To(n,i){var l,d;for(hr(i),d=n.Kc();d.Ob();)l=d.Pb(),i.Cd(l)}function lpr(n,i){var l;l=new nk,k_(l,"x",i.a),k_(l,"y",i.b),Tk(n,l)}function cpr(n,i){var l;l=new nk,k_(l,"x",i.a),k_(l,"y",i.b),Tk(n,l)}function DPt(n,i){var l;for(l=i;l;)_E(n,-l.i,-l.j),l=Aa(l);return n}function bOe(n,i){var l,d;for(l=i,d=0;l>0;)d+=n.a[l],l-=l&-l;return d}function of(n,i,l){var d;return d=($n(i,n.c.length),n.c[i]),n.c[i]=l,d}function yOe(n,i,l){n.a.c.length=0,D6r(n,i,l),n.a.c.length==0||oAr(n,i)}function pz(n){n.i=0,_U(n.b,null),_U(n.c,null),n.a=null,n.e=null,++n.g}function DQ(){DQ=z,rp=!0,Wen=!1,Ken=!1,Qen=!1,Xen=!1}function mfe(n){DQ(),!rp&&(this.c=n,this.e=!0,this.a=new Ot)}function MPt(n,i){this.c=0,this.b=i,iIt.call(this,n,17493),this.a=this.c}function PPt(n){FKt(),Hkt(this),this.a=new Ea,Q9e(this,n),pi(this.a,n)}function BPt(){$he(this),this.b=new Ct(ka,ka),this.a=new Ct(Ss,Ss)}function MQ(){MQ=z,r2e=new ZRe(WBe,0),mje=new ZRe("TARGET_WIDTH",1)}function VT(n,i){return(Vv(n),VR(new xn(n,new VOe(i,n.a)))).Bd(p6)}function upr(){return Mo(),Te(xe(vGe,1),wt,367,0,[N0,em,qc,ru,Gl])}function hpr(){return b4(),Te(xe(vrn,1),wt,375,0,[kq,Pte,Bte,Mte,Dte])}function dpr(){return ly(),Te(xe(Eqe,1),wt,348,0,[yye,wqe,vye,eN,JI])}function fpr(){return HD(),Te(xe(SVe,1),wt,323,0,[xVe,lve,cve,mP,bP])}function ppr(){return pf(),Te(xe(Jqe,1),wt,171,0,[Mq,lP,u2,cP,Y4])}function gpr(){return aJ(),Te(xe(iln,1),wt,368,0,[$ve,Pve,Uve,Bve,Fve])}function mpr(){return rM(),Te(xe(icn,1),wt,373,0,[W5,A6,DP,LP,Jq])}function bpr(){return uG(),Te(xe(Rje,1),wt,324,0,[Cje,c2e,kje,u2e,Aje])}function ypr(){return d1(),Te(xe(rm,1),wt,170,0,[Hn,Fs,mg,pw,Sy])}function vpr(){return ZT(),Te(xe(VP,1),wt,256,0,[b2,fH,tKe,HP,nKe])}function _pr(n){return OK(),function(){return h1r(n,this,arguments)}}function Jo(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function vOe(n,i){return $e(i,143)?An(n.c,v(i,143).c):!1}function $h(n){return n.t||(n.t=new Dkt(n),FD(new X6t(n),0,n.t)),n.t}function FPt(n){this.b=n,mr.call(this,n),this.a=v(rr(this.b.a,4),129)}function $Pt(n){this.b=n,mk.call(this,n),this.a=v(rr(this.b.a,4),129)}function E0(n,i,l,d,g){KPt.call(this,i,d,g),this.c=n,this.b=l}function _Oe(n,i,l,d,g){uMt.call(this,i,d,g),this.c=n,this.a=l}function wOe(n,i,l,d,g){hMt.call(this,i,d,g),this.c=n,this.a=l}function EOe(n,i,l,d,g){KPt.call(this,i,d,g),this.c=n,this.a=l}function bfe(n,i){var l;return l=v(j1(n.d,i),23),l||v(j1(n.e,i),23)}function UPt(n,i){var l,d;return l=i.ld(),d=n.Fe(l),!!d&&Ec(d.e,i.md())}function zPt(n,i){var l;return l=i.ld(),new hE(l,n.e.pc(l,v(i.md(),16)))}function wpr(n,i){var l;return l=n.a.get(i),l??st(zs,Yn,1,0,5,1)}function GPt(n){var i;return i=n.length,An(fr.substr(fr.length-i,i),n)}function Rr(n){if(zr(n))return n.c=n.a,n.a.Pb();throw _e(new ec)}function xOe(n,i){return i==0||n.e==0?n:i>0?NYt(n,i):tGt(n,-i)}function Ok(n,i){return i==0||n.e==0?n:i>0?tGt(n,i):NYt(n,-i)}function SOe(n){Nar.call(this,n==null?Ku:Kl(n),$e(n,82)?v(n,82):null)}function qPt(n){var i;return n.c||(i=n.r,$e(i,90)&&(n.c=v(i,29))),n.c}function yfe(n){var i;return i=new NE,Ul(i,n),_t(i,(qt(),Nl),null),i}function HPt(n){var i,l;return i=n.c.i,l=n.d.i,i.k==(lr(),hs)&&l.k==hs}function vfe(n){var i,l,d;return i=n&Hh,l=n>>22&Hh,d=n<0?rb:0,Su(i,l,d)}function Epr(n){var i,l,d,g;for(l=n,d=0,g=l.length;d=0?n.Lh(d,l,!0):XE(n,i,l)}function Spr(n,i,l){return ha(pk(eI(n),Eo(i.b)),pk(eI(n),Eo(l.b)))}function Tpr(n,i,l){return ha(pk(eI(n),Eo(i.e)),pk(eI(n),Eo(l.e)))}function Cpr(n,i){return u.Math.min($v(i.a,n.d.d.c),$v(i.b,n.d.d.c))}function gz(n,i){n._i(n.i+1),KL(n,n.i,n.Zi(n.i,i)),n.Mi(n.i++,i),n.Ni()}function _D(n){var i,l;++n.j,i=n.g,l=n.i,n.g=null,n.i=0,n.Oi(l,i),n.Ni()}function VPt(n,i,l){var d;d=new x8e(n.a),AD(d,n.a.a),yu(d.f,i,l),n.a.a=d}function TOe(n,i,l,d){var g;for(g=0;gi)throw _e(new Sl(pMe(n,i,"index")));return n}function Jb(n,i){var l;return l=($n(i,n.c.length),n.c[i]),yRe(n.c,i,1),l}function kOe(n,i){var l,d;return l=(hr(n),n),d=(hr(i),i),l==d?0:li.p?-1:0}function JPt(n){var i;return n.a||(i=n.r,$e(i,156)&&(n.a=v(i,156))),n.a}function Opr(n,i,l){var d;return++n.e,--n.f,d=v(n.d[i].gd(l),136),d.md()}function Lpr(n){var i,l;return i=n.ld(),l=v(n.md(),16),WU(l.Nc(),new KTt(i))}function eBt(n,i){return Tu(n.a,i)?(Lk(n.a,i),!0):!1}function Dk(n,i,l){return fz(i,n.e.Rd().gc()),fz(l,n.c.Rd().gc()),n.a[i][l]}function BQ(n,i,l){this.a=n,this.b=i,this.c=l,Lt(n.t,this),Lt(i.i,this)}function FQ(n,i,l,d){this.f=n,this.e=i,this.d=l,this.b=d,this.c=d?d.d:null}function mz(){this.b=new Ea,this.a=new Ea,this.b=new Ea,this.a=new Ea}function y8(){y8=z;var n,i;gre=(HR(),i=new CK,i),mre=(n=new Nue,n)}function Dpr(n){var i;return Vv(n),i=new YOt(n,n.a.e,n.a.d|4),new K8e(n,i)}function tBt(n){var i;for(Pv(n),i=0;n.a.Bd(new Ae);)i=zo(i,1);return i}function $Q(n,i){return hr(i),n.c=0,"Initial capacity must not be negative")}function UQ(){UQ=z,MP=new la("org.eclipse.elk.labels.labelManager")}function nBt(){nBt=z,uqe=new Ba("separateLayerConnections",(wZ(),aye))}function o1(){o1=z,n3=new jRe("REGULAR",0),d2=new jRe("CRITICAL",1)}function bz(){bz=z,l2e=new e8e("FIXED",0),Une=new e8e("CENTER_NODE",1)}function zQ(){zQ=z,gqe=new $Re("QUADRATIC",0),mye=new $Re("SCANLINE",1)}function rBt(){rBt=z,Rrn=Qr((SD(),Te(xe(yqe,1),wt,322,0,[nP,Rq,bqe])))}function iBt(){iBt=z,Irn=Qr((iZ(),Te(xe(_qe,1),wt,351,0,[vqe,Fte,bye])))}function aBt(){aBt=z,Trn=Qr((UE(),Te(xe(oye,1),wt,372,0,[px,l2,fx])))}function sBt(){sBt=z,Drn=Qr((F_(),Te(xe(Lrn,1),wt,460,0,[_ye,tN,O5])))}function oBt(){oBt=z,Urn=Qr((P8(),Te(xe(Iye,1),wt,299,0,[kye,Rye,Iq])))}function lBt(){lBt=z,Grn=Qr((Ym(),Te(xe(zrn,1),wt,311,0,[Nq,D5,y6])))}function cBt(){cBt=z,gsn=Qr((DD(),Te(xe(EVe,1),wt,390,0,[ave,wVe,gne])))}function uBt(){uBt=z,xsn=Qr((yZ(),Te(xe(MVe,1),wt,387,0,[LVe,pve,DVe])))}function hBt(){hBt=z,Ssn=Qr((ND(),Te(xe(PVe,1),wt,349,0,[mve,gve,Gq])))}function dBt(){dBt=z,Esn=Qr((ll(),Te(xe(wsn,1),wt,463,0,[yP,Rh,_u])))}function fBt(){fBt=z,Tsn=Qr((H8(),Te(xe(FVe,1),wt,350,0,[bve,BVe,vP])))}function pBt(){pBt=z,Csn=Qr((rZ(),Te(xe(zVe,1),wt,352,0,[UVe,yve,$Ve])))}function gBt(){gBt=z,Asn=Qr((EZ(),Te(xe(GVe,1),wt,388,0,[vve,pN,t3])))}function mBt(){mBt=z,kon=Qr((OD(),Te(xe(aYe,1),wt,392,0,[iYe,Eve,Vq])))}function bBt(){bBt=z,oln=Qr((qz(),Te(xe(LYe,1),wt,393,0,[Ine,NYe,OYe])))}function yBt(){yBt=z,kln=Qr((bZ(),Te(xe(QYe,1),wt,300,0,[Yve,XYe,KYe])))}function vBt(){vBt=z,Rln=Qr((BZ(),Te(xe(ZYe,1),wt,445,0,[Xq,Lne,jve])))}function _Bt(){_Bt=z,Nln=Qr((WZ(),Te(xe(Iln,1),wt,456,0,[Wve,Xve,Kve])))}function wBt(){wBt=z,Dln=Qr((NZ(),Te(xe(tje,1),wt,394,0,[eje,Jve,JYe])))}function EBt(){EBt=z,ncn=Qr((HQ(),Te(xe(_je,1),wt,439,0,[i2e,vje,yje])))}function xBt(){xBt=z,qsn=Qr(($E(),Te(xe(Gsn,1),wt,464,0,[qq,_P,vne])))}function SBt(){SBt=z,htn=Qr((Th(),Te(xe(utn,1),wt,471,0,[dg,s2,R0])))}function TBt(){TBt=z,ctn=Qr((u1(),Te(xe(F4,1),wt,237,0,[bc,vu,yc])))}function CBt(){CBt=z,ftn=Qr((ju(),Te(xe(dtn,1),wt,472,0,[g1,o2,I0])))}function ABt(){ABt=z,Zen=Qr((Ch(),Te(xe(Il,1),wt,108,0,[Tze,Ql,B4])))}function kBt(){kBt=z,Lnn=Qr((wD(),Te(xe(yGe,1),wt,391,0,[Vbe,Hbe,Ybe])))}function RBt(){RBt=z,fun=Qr((Km(),Te(xe(eKe,1),wt,346,0,[Xne,Cy,qP])))}function IBt(){IBt=z,scn=Qr((Kz(),Te(xe(a2e,1),wt,444,0,[Bne,Fne,$ne])))}function NBt(){NBt=z,cun=Qr((W1(),Te(xe(GWe,1),wt,278,0,[wN,s3,EN])))}function OBt(){OBt=z,Aun=Qr((Uk(),Te(xe(oKe,1),wt,280,0,[sKe,l3,nre])))}function Y1(n,i){return!n.o&&(n.o=new uh((Lc(),om),Ay,n,0)),B0e(n.o,i)}function Mpr(n,i){var l;n.C&&(l=v(yl(n.b,i),127).n,l.d=n.C.d,l.a=n.C.a)}function LOe(n){var i,l,d,g;g=n.d,i=n.a,l=n.b,d=n.c,n.d=l,n.a=d,n.b=g,n.c=i}function Ppr(n){return!n.g&&(n.g=new pK),!n.g.b&&(n.g.b=new Ikt(n)),n.g.b}function yz(n){return!n.g&&(n.g=new pK),!n.g.c&&(n.g.c=new Lkt(n)),n.g.c}function Bpr(n){return!n.g&&(n.g=new pK),!n.g.d&&(n.g.d=new Nkt(n)),n.g.d}function Fpr(n){return!n.g&&(n.g=new pK),!n.g.a&&(n.g.a=new Okt(n)),n.g.a}function $pr(n,i,l,d){return l&&(d=l.Rh(i,Ma(l.Dh(),n.c.uk()),null,d)),d}function Upr(n,i,l,d){return l&&(d=l.Th(i,Ma(l.Dh(),n.c.uk()),null,d)),d}function xfe(n,i,l,d){var g;return g=st(Wr,vi,28,i+1,15,1),HAr(g,n,i,l,d),g}function st(n,i,l,d,g,y){var x;return x=rqt(g,d),g!=10&&Te(xe(n,y),i,l,g,x),x}function zpr(n,i,l){var d,g;for(g=new M8(i,n),d=0;dl||i=0?n.Lh(l,!0,!0):XE(n,i,!0)}function igr(n,i,l){var d;return d=MUt(n,i,l),n.b=new fZ(d.c.length),nPe(n,d)}function agr(n){if(n.b<=0)throw _e(new ec);return--n.b,n.a-=n.c.c,Nt(n.a)}function sgr(n){var i;if(!n.a)throw _e(new VLt);return i=n.a,n.a=Aa(n.a),i}function ogr(n){for(;!n.a;)if(!bOt(n.c,new U5t(n)))return!1;return!0}function Mk(n){var i;return ni(n),$e(n,204)?(i=v(n,204),i):new r5t(n)}function lgr(n){GQ(),v(n.of((Ei(),a3)),181).Fc((Ah(),pH)),n.qf(I2e,null)}function GQ(){GQ=z,Ncn=new $xt,Lcn=new Uxt,Ocn=Xbr((Ei(),I2e),Ncn,g2,Lcn)}function qQ(){qQ=z,RYe=new QRe("LEAF_NUMBER",0),zve=new QRe("NODE_SIZE",1)}function kfe(n){n.a=st(Wr,vi,28,n.b+1,15,1),n.c=st(Wr,vi,28,n.b,15,1),n.d=0}function cgr(n,i){n.a.Ne(i.d,n.b)>0&&(Lt(n.c,new DIe(i.c,i.d,n.d)),n.b=i.d)}function qOe(n,i){if(n.g==null||i>=n.i)throw _e(new Dhe(i,n.i));return n.g[i]}function PBt(n,i,l){if(z8(n,l),l!=null&&!n.fk(l))throw _e(new kue);return l}function Rfe(n,i){return kz(i)!=10&&Te(cd(i),i.Sm,i.__elementTypeId$,kz(i),n),n}function _8(n,i,l,d){var g;d=(IE(),d||yze),g=n.slice(i,l),gMe(g,n,i,l,-i,d)}function lf(n,i,l,d,g){return i<0?XE(n,l,d):v(l,69).wk().yk(n,n.hi(),i,d,g)}function ugr(n,i){return ha(We(at(oe(n,(At(),bx)))),We(at(oe(i,bx))))}function BBt(){BBt=z,Yen=Qr((w8(),Te(xe(tte,1),wt,304,0,[xbe,Sbe,Tbe,Cbe])))}function w8(){w8=z,xbe=new XK("All",0),Sbe=new AIt,Tbe=new PIt,Cbe=new CIt}function Th(){Th=z,dg=new ahe(r6,0),s2=new ahe(CI,1),R0=new ahe(i6,2)}function FBt(){FBt=z,IJ(),QKe=ka,Dhn=Ss,ZKe=new sU(ka),Mhn=new sU(Ss)}function $Bt(){$Bt=z,Ftn=Qr((GE(),Te(xe(Btn,1),wt,417,0,[mq,gq,Dbe,Mbe])))}function UBt(){UBt=z,qtn=Qr((VD(),Te(xe(Gtn,1),wt,406,0,[wq,ate,ste,Eq])))}function zBt(){zBt=z,Utn=Qr((qk(),Te(xe($tn,1),wt,332,0,[yq,bq,vq,_q])))}function GBt(){GBt=z,Wnn=Qr((z_(),Te(xe(EGe,1),wt,389,0,[z4,wGe,Qbe,Zbe])))}function qBt(){qBt=z,Gnn=Qr((B8(),Te(xe(znn,1),wt,416,0,[dx,U4,$4,A5])))}function HBt(){HBt=z,yrn=Qr((K1(),Te(xe(brn,1),wt,421,0,[b6,WI,KI,sye])))}function VBt(){VBt=z,orn=Qr((wZ(),Te(xe(srn,1),wt,371,0,[aye,Ote,Lte,Aq])))}function YBt(){YBt=z,msn=Qr((g4(),Te(xe(ove,1),wt,203,0,[mne,sve,q5,G5])))}function jBt(){jBt=z,vsn=Qr((Zp(),Te(xe(NVe,1),wt,284,0,[wy,IVe,uve,hve])))}function Ez(){Ez=z,Cqe=new zRe(og,0),zte=new zRe("IMPROVE_STRAIGHTNESS",1)}function WBt(n,i){var l,d;return d=i/n.c.Rd().gc()|0,l=i%n.c.Rd().gc(),Dk(n,d,l)}function KBt(n){var i;if(n.nl())for(i=n.i-1;i>=0;--i)ze(n,i);return hOe(n)}function HOe(n){var i,l;if(!n.b)return null;for(l=n.b;i=l.a[0];)l=i;return l}function XBt(n){var i,l;if(!n.b)return null;for(l=n.b;i=l.a[1];)l=i;return l}function hgr(n){return $e(n,180)?""+v(n,180).a:n==null?null:Kl(n)}function dgr(n){return $e(n,180)?""+v(n,180).a:n==null?null:Kl(n)}function QBt(n,i){if(i.a)throw _e(new tc(mXt));Es(n.a,i),i.a=n,!n.j&&(n.j=i)}function VOe(n,i){_X.call(this,i.zd(),i.yd()&-16449),hr(n),this.a=n,this.c=i}function fgr(n,i){return new cde(i,_E(Eo(i.e),i.f.a+n,i.f.b+n),(Qn(),!1))}function pgr(n,i){return r8(),Lt(n,new Ms(i,Nt(i.e.c.length+i.g.c.length)))}function ggr(n,i){return r8(),Lt(n,new Ms(i,Nt(i.e.c.length+i.g.c.length)))}function ZBt(){ZBt=z,Aln=Qr((ZZ(),Te(xe(WYe,1),wt,354,0,[Vve,YYe,jYe,VYe])))}function JBt(){JBt=z,Qon=Qr((LD(),Te(xe(TYe,1),wt,353,0,[Dve,kne,Lve,Ove])))}function eFt(){eFt=z,Con=Qr((Yk(),Te(xe(jVe,1),wt,405,0,[xne,xP,SP,TP])))}function tFt(){tFt=z,uun=Qr((Xm(),Te(xe(D2e,1),wt,223,0,[L2e,uH,xN,O6])))}function nFt(){nFt=z,gun=Qr((Id(),Te(xe(pun,1),wt,291,0,[dH,im,m2,hH])))}function rFt(){rFt=z,Tun=Qr((ud(),Te(xe(WP,1),wt,386,0,[mH,vw,gH,o3])))}function iFt(){iFt=z,Run=Qr((LZ(),Te(xe(fKe,1),wt,320,0,[B2e,uKe,dKe,hKe])))}function aFt(){aFt=z,Oun=Qr((xZ(),Te(xe(Nun,1),wt,415,0,[F2e,gKe,pKe,mKe])))}function HQ(){HQ=z,i2e=new Rhe(DQt,0),vje=new Rhe(f$e,1),yje=new Rhe(og,2)}function a4(n,i,l,d,g){return hr(n),hr(i),hr(l),hr(d),hr(g),new mNe(n,i,d)}function sFt(n,i){var l;return l=v(Lk(n.e,i),400),l?(VIe(l),l.e):null}function Yu(n,i){var l;return l=$l(n,i,0),l==-1?!1:(Jb(n,l),!0)}function oFt(n,i,l){var d;return Pv(n),d=new Ge,d.a=i,n.a.Nb(new GRt(d,l)),d.a}function mgr(n){var i;return Pv(n),i=st(ao,_l,28,0,15,1),TT(n.a,new B5t(i)),i}function YOe(n){var i;if(!Vfe(n))throw _e(new ec);return n.e=1,i=n.d,n.d=null,i}function ty(n){var i;return jl(n)&&(i=0-n,!isNaN(i))?i:zv($8(n))}function $l(n,i,l){for(;l=0?YZ(n,l,!0,!0):XE(n,i,!0)}function WOe(n){var i;return i=L_(rr(n,32)),i==null&&(Ru(n),i=L_(rr(n,32))),i}function KOe(n){var i;return n.Oh()||(i=kr(n.Dh())-n.ji(),n.$h().Mk(i)),n.zh()}function fFt(n,i){Wze=new dt,ztn=i,QM=n,v(QM.b,68),POe(QM,Wze,null),kWt(QM)}function wD(){wD=z,Vbe=new ohe("XY",0),Hbe=new ohe("X",1),Ybe=new ohe("Y",2)}function ju(){ju=z,g1=new she("TOP",0),o2=new she(CI,1),I0=new she(CBe,2)}function Ym(){Ym=z,Nq=new fhe(og,0),D5=new fhe("TOP",1),y6=new fhe(CBe,2)}function Az(){Az=z,dve=new qRe("INPUT_ORDER",0),fve=new qRe("PORT_DEGREE",1)}function E8(){E8=z,JUe=Su(Hh,Hh,524287),Ien=Su(0,0,FG),eze=vfe(1),vfe(2),tze=vfe(0)}function Dfe(n){var i;return n.d!=n.r&&(i=Gf(n),n.e=!!i&&i.lk()==IJt,n.d=i),n.e}function Mfe(n,i,l){var d;return d=n.g[i],KL(n,i,n.Zi(i,l)),n.Ri(i,l,d),n.Ni(),d}function WQ(n,i){var l;return l=n.dd(i),l>=0?(n.gd(l),!0):!1}function Pfe(n,i){var l;for(ni(n),ni(i),l=!1;i.Ob();)l=l|n.Fc(i.Pb());return l}function j1(n,i){var l;return l=v(br(n.e,i),400),l?(WIt(n,l),l.e):null}function pFt(n){var i,l;return i=n/60|0,l=n%60,l==0?""+i:""+i+":"+(""+l)}function s4(n,i){var l=n.a[i],d=(l0e(),bbe)[typeof l];return d?d(l):iLe(typeof l)}function ic(n,i){var l,d;return Vv(n),d=new IOe(i,n.a),l=new _Ot(d),new xn(n,l)}function Bfe(n){var i;return i=n.b.c.length==0?null:Yt(n.b,0),i!=null&&jfe(n,0),i}function _gr(n,i){var l,d,g;g=i.c.i,l=v(br(n.f,g),60),d=l.d.c-l.e.c,A9e(i.a,d,0)}function XOe(n,i){var l;for(++n.d,++n.c[i],l=i+1;l=0;)++i[0]}function wgr(n,i){Au(n,i==null||MX((hr(i),i))||isNaN((hr(i),i))?0:(hr(i),i))}function Egr(n,i){ku(n,i==null||MX((hr(i),i))||isNaN((hr(i),i))?0:(hr(i),i))}function xgr(n,i){FE(n,i==null||MX((hr(i),i))||isNaN((hr(i),i))?0:(hr(i),i))}function Sgr(n,i){BE(n,i==null||MX((hr(i),i))||isNaN((hr(i),i))?0:(hr(i),i))}function Tgr(n,i,l){return pk(new Ct(l.e.a+l.f.a/2,l.e.b+l.f.b/2),n)==(hr(i),i)}function Cgr(n,i){return $e(i,102)&&v(i,19).Bb&el?new Mhe(i,n):new M8(i,n)}function Agr(n,i){return $e(i,102)&&v(i,19).Bb&el?new Mhe(i,n):new M8(i,n)}function kz(n){return n.__elementTypeCategory$==null?10:n.__elementTypeCategory$}function bFt(n,i){return i==(ide(),ide(),qen)?n.toLocaleLowerCase():n.toLowerCase()}function yFt(n){if(!n.e)throw _e(new ec);return n.c=n.a=n.e,n.e=n.e.e,--n.d,n.a.f}function QOe(n){if(!n.c)throw _e(new ec);return n.e=n.a=n.c,n.c=n.c.c,++n.d,n.a.f}function vFt(n){var i;for(++n.a,i=n.c.a.length;n.an.a[d]&&(d=l);return d}function _Ft(n){var i;return i=v(oe(n,(At(),gx)),313),i?i.a==n:!1}function wFt(n){var i;return i=v(oe(n,(At(),gx)),313),i?i.i==n:!1}function EFt(){EFt=z,Bnn=Qr((Mo(),Te(xe(vGe,1),wt,367,0,[N0,em,qc,ru,Gl])))}function xFt(){xFt=z,_rn=Qr((b4(),Te(xe(vrn,1),wt,375,0,[kq,Pte,Bte,Mte,Dte])))}function SFt(){SFt=z,Nrn=Qr((ly(),Te(xe(Eqe,1),wt,348,0,[yye,wqe,vye,eN,JI])))}function TFt(){TFt=z,bsn=Qr((HD(),Te(xe(SVe,1),wt,323,0,[xVe,lve,cve,mP,bP])))}function CFt(){CFt=z,Hrn=Qr((pf(),Te(xe(Jqe,1),wt,171,0,[Mq,lP,u2,cP,Y4])))}function AFt(){AFt=z,aln=Qr((aJ(),Te(xe(iln,1),wt,368,0,[$ve,Pve,Uve,Bve,Fve])))}function kFt(){kFt=z,acn=Qr((rM(),Te(xe(icn,1),wt,373,0,[W5,A6,DP,LP,Jq])))}function RFt(){RFt=z,hcn=Qr((uG(),Te(xe(Rje,1),wt,324,0,[Cje,c2e,kje,u2e,Aje])))}function IFt(){IFt=z,lun=Qr((ys(),Te(xe(zP,1),wt,88,0,[cp,ql,Ol,lp,Ef])))}function NFt(){NFt=z,Dcn=Qr((d1(),Te(xe(rm,1),wt,170,0,[Hn,Fs,mg,pw,Sy])))}function OFt(){OFt=z,bun=Qr((ZT(),Te(xe(VP,1),wt,256,0,[b2,fH,tKe,HP,nKe])))}function LFt(){LFt=z,_un=Qr((Bt(),Te(xe(tl,1),Dc,64,0,[lc,or,gr,Mr,cr])))}function KQ(){KQ=z,kze=new LRe("BY_SIZE",0),Ibe=new LRe("BY_SIZE_AND_SHAPE",1)}function XQ(){XQ=z,zbe=new PRe("EADES",0),cte=new PRe("FRUCHTERMAN_REINGOLD",1)}function Rz(){Rz=z,$te=new URe("READING_DIRECTION",0),xqe=new URe("ROTATION",1)}function ED(){ED=z,Vnn=new ET,Ynn=new KA,qnn=new f0,Hnn=new WA,jnn=new rU}function DFt(n){this.b=new Ot,this.a=new Ot,this.c=new Ot,this.d=new Ot,this.e=n}function MFt(n){this.g=n,this.f=new Ot,this.a=u.Math.min(this.g.c.c,this.g.d.c)}function PFt(n,i,l){LX.call(this),e9e(this),this.a=n,this.c=l,this.b=i.d,this.f=i.e}function Lgr(n,i,l){var d,g;for(g=new me(l);g.a=0&&i0?i-1:i,b7t(iar(s$t(zIe(new tk,l),n.n),n.j),n.k)}function kl(n){var i,l;l=(i=new Oue,i),Yr((!n.q&&(n.q=new vt(e0,n,11,10)),n.q),l)}function ZOe(n){return(n.i&2?"interface ":n.i&1?"":"class ")+(Fm(n),n.o)}function QQ(n){return Oc(n,qi)>0?qi:Oc(n,Po)<0?Po:ti(n)}function o4(n){return n<3?(kd(n,QKt),n+1):n=-.01&&n.a<=ep&&(n.a=0),n.b>=-.01&&n.b<=ep&&(n.b=0),n}function YT(n){l5();var i,l;for(l=m$e,i=0;il&&(l=n[i]);return l}function UFt(n,i){var l;if(l=vG(n.Dh(),i),!l)throw _e(new ar(r2+i+Ime));return l}function l4(n,i){var l;for(l=n;Aa(l);)if(l=Aa(l),l==i)return!0;return!1}function Hgr(n,i){var l,d,g;for(d=i.a.ld(),l=v(i.a.md(),16).gc(),g=0;gn||n>i)throw _e(new sRe("fromIndex: 0, toIndex: "+n+pBe+i))}function PE(n){if(n<0)throw _e(new ar("Illegal Capacity: "+n));this.g=this.aj(n)}function JOe(n,i){return $1(),x0(Zv),u.Math.abs(n-i)<=Zv||n==i||isNaN(n)&&isNaN(i)}function Ufe(n,i){var l,d,g,y;for(d=n.d,g=0,y=d.length;g0&&(n.a/=i,n.b/=i),n}function Cd(n){var i;return n.w?n.w:(i=P0r(n),i&&!i.Vh()&&(n.w=i),i)}function x8(n,i){var l,d;d=n.a,l=Uyr(n,i,null),d!=i&&!n.e&&(l=bI(n,i,l)),l&&l.oj()}function VFt(n,i,l){var d,g;d=i;do g=We(n.p[d.p])+l,n.p[d.p]=g,d=n.a[d.p];while(d!=i)}function YFt(n,i,l){var d=function(){return n.apply(d,arguments)};return i.apply(d,l),d}function Qgr(n){var i;return n==null?null:(i=v(n,195),cxr(i,i.length))}function ze(n,i){if(n.g==null||i>=n.i)throw _e(new Dhe(i,n.i));return n.Wi(i,n.g[i])}function Zgr(n,i){Fn();var l,d;for(d=new Ot,l=0;l=14&&i<=16))),n}function Xr(n,i){var l;return hr(i),l=n[":"+i],XU(!!l,"Enum constant undefined: "+i),l}function $r(n,i,l,d,g,y){var x;return x=Pde(n,i),o$t(l,x),x.i=g?8:0,x.f=d,x.e=g,x.g=y,x}function n9e(n,i,l,d,g){this.d=i,this.k=d,this.f=g,this.o=-1,this.p=1,this.c=n,this.a=l}function r9e(n,i,l,d,g){this.d=i,this.k=d,this.f=g,this.o=-1,this.p=2,this.c=n,this.a=l}function i9e(n,i,l,d,g){this.d=i,this.k=d,this.f=g,this.o=-1,this.p=6,this.c=n,this.a=l}function a9e(n,i,l,d,g){this.d=i,this.k=d,this.f=g,this.o=-1,this.p=7,this.c=n,this.a=l}function s9e(n,i,l,d,g){this.d=i,this.j=d,this.e=g,this.o=-1,this.p=4,this.c=n,this.a=l}function l$t(n,i){var l,d,g,y;for(d=i,g=0,y=d.length;g=0))throw _e(new ar("tolerance ("+n+") must be >= 0"));return n}function u$t(n,i){var l;return $e(i,44)?n.c.Mc(i):(l=B0e(n,i),FZ(n,i),l)}function vl(n,i,l){return U_(n,i),mu(n,l),ny(n,0),c4(n,1),oy(n,!0),sy(n,!0),n}function Nz(n,i){var l;if(l=n.gc(),i<0||i>l)throw _e(new XS(i,l));return new bIe(n,i)}function aZ(n,i){n.b=u.Math.max(n.b,i.d),n.e+=i.r+(n.a.c.length==0?0:n.c),Lt(n.a,i)}function h$t(n){jS(n.c>=0),d2r(n.d,n.c)<0&&(n.a=n.a-1&n.d.a.length-1,n.b=n.d.c),n.c=-1}function sZ(n){var i,l;for(l=n.c.Cc().Kc();l.Ob();)i=v(l.Pb(),16),i.$b();n.c.$b(),n.d=0}function lmr(n){var i,l,d,g;for(l=n.a,d=0,g=l.length;d=0}function f9e(n,i){n.r>0&&n.c0&&n.g!=0&&f9e(n.i,i/n.r*n.i.d))}function p9e(n,i){var l;l=n.c,n.c=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,1,l,n.c))}function qfe(n,i){var l;l=n.c,n.c=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,4,l,n.c))}function I8(n,i){var l;l=n.k,n.k=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,2,l,n.k))}function Hfe(n,i){var l;l=n.D,n.D=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,2,l,n.D))}function lZ(n,i){var l;l=n.f,n.f=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,8,l,n.f))}function cZ(n,i){var l;l=n.i,n.i=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,7,l,n.i))}function g9e(n,i){var l;l=n.a,n.a=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,8,l,n.a))}function m9e(n,i){var l;l=n.b,n.b=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,0,l,n.b))}function b9e(n,i){var l;l=n.b,n.b=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,0,l,n.b))}function y9e(n,i){var l;l=n.c,n.c=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,1,l,n.c))}function v9e(n,i){var l;l=n.d,n.d=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,1,l,n.d))}function gmr(n,i,l){var d;n.b=i,n.a=l,d=(n.a&512)==512?new O6t:new j6e,n.c=R5r(d,n.b,n.a)}function x$t(n,i){return tb(n.e,i)?(al(),Dfe(i)?new VX(i,n):new DU(i,n)):new Q8t(i,n)}function mmr(n){var i,l;return 0>n?new wRe:(i=n+1,l=new MPt(i,n),new X8e(null,l))}function bmr(n,i){Fn();var l;return l=new ok(1),ro(n)?Cl(l,n,i):yu(l.f,n,i),new xue(l)}function ymr(n,i){var l,d;return l=n.c,d=i.e[n.p],d>0?v(Yt(l.a,d-1),10):null}function vmr(n,i){var l,d;return l=n.o+n.p,d=i.o+i.p,li?(i<<=1,i>0?i:mM):i}function Vfe(n){switch(I8e(n.e!=3),n.e){case 2:return!1;case 0:return!0}return kpr(n)}function T$t(n,i){var l;return $e(i,8)?(l=v(i,8),n.a==l.a&&n.b==l.b):!1}function wmr(n,i){var l;l=new dt,v(i.b,68),v(i.b,68),v(i.b,68),Cu(i.a,new AIe(n,l,i))}function C$t(n,i){var l,d;for(d=i.vc().Kc();d.Ob();)l=v(d.Pb(),44),sG(n,l.ld(),l.md())}function _9e(n,i){var l;l=n.d,n.d=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,11,l,n.d))}function uZ(n,i){var l;l=n.j,n.j=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,13,l,n.j))}function w9e(n,i){var l;l=n.b,n.b=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,21,l,n.b))}function Emr(n,i){(DQ(),rp?null:i.c).length==0&&GNt(i,new we),Cl(n.a,rp?null:i.c,i)}function xmr(n,i){i.Ug("Hierarchical port constraint processing",1),z2r(n),o8r(n),i.Vg()}function UE(){UE=z,px=new lhe("START",0),l2=new lhe("MIDDLE",1),fx=new lhe("END",2)}function hZ(){hZ=z,Rne=new XRe("P1_NODE_PLACEMENT",0),j5=new XRe("P2_EDGE_ROUTING",1)}function Uv(){Uv=z,m6=new la($Be),dte=new la(zXt),JM=new la(GXt),xq=new la(qXt)}function zE(n){var i;return ade(n.f.g,n.d),Tr(n.b),n.c=n.a,i=v(n.a.Pb(),44),n.b=D9e(n),i}function E9e(n){var i;return n.b==null?(Yb(),Yb(),TH):(i=n.ul()?n.tl():n.sl(),i)}function A$t(n,i){var l;return l=i==null?-1:$l(n.b,i,0),l<0?!1:(jfe(n,l),!0)}function S0(n,i){var l;return hr(i),l=i.g,n.b[l]?!1:(Ga(n.b,l,i),++n.c,!0)}function dZ(n,i){var l,d;return l=1-i,d=n.a[l],n.a[l]=d.a[i],d.a[i]=n,n.b=!0,d.b=!1,d}function Smr(n,i){var l,d;for(d=i.Kc();d.Ob();)l=v(d.Pb(),272),n.b=!0,Es(n.e,l),l.b=n}function Tmr(n,i){var l,d;return l=v(oe(n,(qt(),Z4)),8),d=v(oe(i,Z4),8),ha(l.b,d.b)}function Yfe(n,i,l){var d,g,y;return y=i>>5,g=i&31,d=Us(Dv(n.n[l][y],ti(w0(g,1))),3),d}function k$t(n,i,l){var d,g,y;for(y=n.a.length-1,g=n.b,d=0;d0?1:0:(!n.c&&(n.c=uz(xc(n.f))),n.c).e}function B$t(n,i){i?n.B==null&&(n.B=n.D,n.D=null):n.B!=null&&(n.D=n.B,n.B=null)}function Rmr(n,i){return B8(),n==dx&&i==U4||n==U4&&i==dx||n==A5&&i==$4||n==$4&&i==A5}function Imr(n,i){return B8(),n==dx&&i==$4||n==dx&&i==A5||n==U4&&i==A5||n==U4&&i==$4}function F$t(n,i){return $1(),x0(ep),u.Math.abs(0-i)<=ep||i==0||isNaN(0)&&isNaN(i)?0:n/i}function $$t(n,i){return We(at(ad(jz(Bl(new xn(null,new Nn(n.c.b,16)),new YCt(n)),i))))}function C9e(n,i){return We(at(ad(jz(Bl(new xn(null,new Nn(n.c.b,16)),new VCt(n)),i))))}function Nmr(){return cl(),Te(xe(Aye,1),wt,259,0,[qte,wf,iP,Hte,iN,L5,aP,nN,rN,Vte])}function Omr(){return qf(),Te(xe(RVe,1),wt,243,0,[bne,Uq,zq,CVe,AVe,TVe,kVe,yne,Tx,e3])}function Lmr(n,i){var l;i.Ug("General Compactor",1),l=Fvr(v(Et(n,(Xv(),qve)),393)),l.Cg(n)}function Dmr(n,i){var l,d;return l=v(Et(n,(Xv(),Nne)),17),d=v(Et(i,Nne),17),Nc(l.a,d.a)}function A9e(n,i,l){var d,g;for(g=Ur(n,0);g.b!=g.d.c;)d=v(Fr(g),8),d.a+=i,d.b+=l;return n}function TD(n,i,l){var d;for(d=n.b[l&n.f];d;d=d.b)if(l==d.a&&Wp(i,d.g))return d;return null}function CD(n,i,l){var d;for(d=n.c[l&n.f];d;d=d.d)if(l==d.f&&Wp(i,d.i))return d;return null}function Mmr(n,i,l){var d,g,y;for(d=0,g=0;g>>31;d!=0&&(n[l]=d)}function Qfe(n,i,l,d,g,y){var x;this.c=n,x=new Ot,sDe(n,x,i,n.b,l,d,g,y),this.a=new go(x,0)}function U$t(){this.c=new BK(0),this.b=new BK(g$e),this.d=new BK(AQt),this.a=new BK(vge)}function uf(n,i,l,d,g,y,x){Kr.call(this,n,i),this.d=l,this.e=d,this.c=g,this.b=y,this.a=H1(x)}function ns(n,i,l,d,g,y,x,T,R,O,D,q,J){return VHt(n,i,l,d,g,y,x,T,R,O,D,q,J),I0e(n,!1),n}function Pmr(n){return n.b.c.i.k==(lr(),hs)?v(oe(n.b.c.i,(At(),Ji)),12):n.b.c}function z$t(n){return n.b.d.i.k==(lr(),hs)?v(oe(n.b.d.i,(At(),Ji)),12):n.b.d}function Bmr(n){var i;return i=kQ(n),gE(i.a,0)?(zK(),zK(),Hen):(zK(),new ENt(i.b))}function Zfe(n){var i;return i=aOe(n),gE(i.a,0)?(zS(),zS(),Ebe):(zS(),new Khe(i.b))}function Jfe(n){var i;return i=aOe(n),gE(i.a,0)?(zS(),zS(),Ebe):(zS(),new Khe(i.c))}function G$t(n){switch(n.g){case 2:return Bt(),cr;case 4:return Bt(),gr;default:return n}}function q$t(n){switch(n.g){case 1:return Bt(),Mr;case 3:return Bt(),or;default:return n}}function H$t(n){switch(n.g){case 0:return new Cxt;case 1:return new Axt;default:return null}}function Bk(){Bk=z,iye=new Ba("edgelabelcenterednessanalysis.includelabel",(Qn(),a2))}function k9e(){k9e=z,zsn=Jp(hIt(yi(yi(new ms,(Mo(),qc),(qo(),Ste)),ru,vte),Gl),xte)}function V$t(){V$t=z,Vsn=Jp(hIt(yi(yi(new ms,(Mo(),qc),(qo(),Ste)),ru,vte),Gl),xte)}function e0e(){e0e=z,eB=new A6t,Y2e=Te(xe(Ju,1),x5,179,0,[]),dhn=Te(xe(e0,1),DUe,62,0,[])}function N8(){N8=z,Tq=new BRe("TO_INTERNAL_LTR",0),tye=new BRe("TO_INPUT_DIRECTION",1)}function hh(){hh=z,kGe=new Nyt,CGe=new Oyt,AGe=new Lyt,TGe=new Dyt,RGe=new Myt,IGe=new Pyt}function Fmr(n,i){i.Ug(iQt,1),NLe(war(new _K((TL(),new Gde(n,!1,!1,new O6e))))),i.Vg()}function $mr(n,i,l){l.Ug("DFS Treeifying phase",1),n2r(n,i),e5r(n,i),n.a=null,n.b=null,l.Vg()}function Oz(n,i){return Qn(),ro(n)?kOe(n,ai(i)):VS(n)?Sde(n,at(i)):HS(n)?Rhr(n,Ht(i)):n.Fd(i)}function AD(n,i){var l,d;for(hr(i),d=i.vc().Kc();d.Ob();)l=v(d.Pb(),44),n.zc(l.ld(),l.md())}function Umr(n,i,l){var d;for(d=l.Kc();d.Ob();)if(!NQ(n,i,d.Pb()))return!1;return!0}function zmr(n,i,l,d,g){var y;return l&&(y=Ma(i.Dh(),n.c),g=l.Rh(i,-1-(y==-1?d:y),null,g)),g}function Gmr(n,i,l,d,g){var y;return l&&(y=Ma(i.Dh(),n.c),g=l.Th(i,-1-(y==-1?d:y),null,g)),g}function Y$t(n){var i;if(n.b==-2){if(n.e==0)i=-1;else for(i=0;n.a[i]==0;i++);n.b=i}return n.b}function qmr(n){if(hr(n),n.length==0)throw _e(new Gp("Zero length BigInteger"));WCr(this,n)}function R9e(n){this.i=n.gc(),this.i>0&&(this.g=this.aj(this.i+(this.i/8|0)+1),n.Qc(this.g))}function j$t(n,i,l){this.g=n,this.d=i,this.e=l,this.a=new Ot,t4r(this),Fn(),us(this.a,null)}function I9e(n,i){i.q=n,n.d=u.Math.max(n.d,i.r),n.b+=i.d+(n.a.c.length==0?0:n.c),Lt(n.a,i)}function O8(n,i){var l,d,g,y;return g=n.c,l=n.c+n.b,y=n.d,d=n.d+n.a,i.a>g&&i.ay&&i.bg?l=g:sr(i,l+1),n.a=af(n.a,0,i)+(""+d)+SNe(n.a,l)}function nUt(n,i){n.a=zo(n.a,1),n.c=u.Math.min(n.c,i),n.b=u.Math.max(n.b,i),n.d=zo(n.d,i)}function Xmr(n,i){return i1||n.Ob())return++n.a,n.g=0,i=n.i,n.Ob(),i;throw _e(new ec)}function sUt(n){switch(n.a.g){case 1:return new h8t;case 3:return new hqt;default:return new STt}}function O9e(n,i){switch(i){case 1:return!!n.n&&n.n.i!=0;case 2:return n.k!=null}return iOe(n,i)}function xc(n){return $G>22),g=n.h+i.h+(d>>22),Su(l&Hh,d&Hh,g&rb)}function pUt(n,i){var l,d,g;return l=n.l-i.l,d=n.m-i.m+(l>>22),g=n.h-i.h+(d>>22),Su(l&Hh,d&Hh,g&rb)}function bbr(n){var i,l;for(uRr(n),l=new me(n.d);l.ad)throw _e(new XS(i,d));return n.Si()&&(l=ODt(n,l)),n.Ei(i,l)}function F8(n,i,l,d,g){var y,x;for(x=l;x<=g;x++)for(y=i;y<=d;y++)e5(n,y,x)||CJ(n,y,x,!0,!1)}function Nbr(n){l5();var i,l,d;for(l=st(Vs,kt,8,2,0,1),d=0,i=0;i<2;i++)d+=.5,l[i]=S_r(d,n);return l}function $8(n){var i,l,d;return i=~n.l+1&Hh,l=~n.m+(i==0?1:0)&Hh,d=~n.h+(i==0&&l==0?1:0)&rb,Su(i,l,d)}function U9e(n){var i;if(n<0)return Po;if(n==0)return 0;for(i=mM;!(i&n);i>>=1);return i}function o0e(n,i,l){return n>=128?!1:n<64?qL(Us(w0(1,n),l),0):qL(Us(w0(1,n-64),i),0)}function zz(n,i,l){return l==null?(!n.q&&(n.q=new Br),Lk(n.q,i)):(!n.q&&(n.q=new Br),Ni(n.q,i,l)),n}function _t(n,i,l){return l==null?(!n.q&&(n.q=new Br),Lk(n.q,i)):(!n.q&&(n.q=new Br),Ni(n.q,i,l)),n}function TUt(n){var i,l;return l=new PQ,Ul(l,n),_t(l,(Uv(),m6),n),i=new Br,skr(n,l,i),D7r(n,l,i),l}function CUt(n){var i,l;return i=n.t-n.k[n.o.p]*n.d+n.j[n.o.p]>n.f,l=n.u+n.e[n.o.p]*n.d>n.f*n.s*n.d,i||l}function AUt(n,i){var l,d,g,y;for(l=!1,d=n.a[i].length,y=0;y=0,"Negative initial capacity"),XU(i>=0,"Non-positive load factor"),xh(this)}function Lbr(n,i,l,d,g){var y,x;if(x=n.length,y=l.length,i<0||d<0||g<0||i+g>x||d+g>y)throw _e(new O7e)}function H9e(n,i){Fn();var l,d,g,y,x;for(x=!1,d=i,g=0,y=d.length;g1||i>=0&&n.b<3)}function u0e(n){var i,l,d;i=~n.l+1&Hh,l=~n.m+(i==0?1:0)&Hh,d=~n.h+(i==0&&l==0?1:0)&rb,n.l=i,n.m=l,n.h=d}function j9e(n){Fn();var i,l,d;for(d=1,l=n.Kc();l.Ob();)i=l.Pb(),d=31*d+(i!=null?ma(i):0),d=d|0;return d}function Fbr(n,i,l,d,g){var y;return y=PMe(n,i),l&&u0e(y),g&&(n=N_r(n,i),d?i2=$8(n):i2=Su(n.l,n.m,n.h)),y}function BUt(n,i,l){n.g=k1e(n,i,(Bt(),gr),n.b),n.d=k1e(n,l,gr,n.b),!(n.g.c==0||n.d.c==0)&&pHt(n)}function FUt(n,i,l){n.g=k1e(n,i,(Bt(),cr),n.j),n.d=k1e(n,l,cr,n.j),!(n.g.c==0||n.d.c==0)&&pHt(n)}function W9e(n,i){switch(i){case 7:return!!n.e&&n.e.i!=0;case 8:return!!n.d&&n.d.i!=0}return OLe(n,i)}function $br(n,i){switch(i.g){case 0:$e(n.b,641)||(n.b=new tUt);break;case 1:$e(n.b,642)||(n.b=new e9t)}}function $Ut(n){switch(n.g){case 0:return new Oxt;default:throw _e(new ar(Cee+(n.f!=null?n.f:""+n.g)))}}function UUt(n){switch(n.g){case 0:return new Nxt;default:throw _e(new ar(Cee+(n.f!=null?n.f:""+n.g)))}}function Ubr(n,i,l){return!VR(Ki(new xn(null,new Nn(n.c,16)),new PR(new C8t(i,l)))).Bd((w_(),p6))}function zUt(n,i){return pk(eI(v(oe(i,(pc(),Ax)),88)),new Ct(n.c.e.a-n.b.e.a,n.c.e.b-n.b.e.b))<=0}function zbr(n,i){for(;n.g==null&&!n.c?WNe(n):n.g==null||n.i!=0&&v(n.g[n.i-1],51).Ob();)Har(i,pJ(n))}function $_(n){var i,l;for(l=new me(n.a.b);l.ad?1:0}function Hbr(n){return Lt(n.c,(Fk(),Icn)),JOe(n.a,We(at(zt((P0e(),fne)))))?new ySt:new QAt(n)}function Vbr(n){for(;!n.d||!n.d.Ob();)if(n.b&&!wL(n.b))n.d=v(xk(n.b),51);else return null;return n.d}function X9e(n){switch(n.g){case 1:return AQt;default:case 2:return 0;case 3:return vge;case 4:return g$e}}function Ybr(){zi();var n;return Z2e||(n=hor(Qv("M",!0)),n=XX(Qv("M",!1),n),Z2e=n,Z2e)}function xZ(){xZ=z,F2e=new pX("ELK",0),gKe=new pX("JSON",1),pKe=new pX("DOT",2),mKe=new pX("SVG",3)}function ND(){ND=z,mve=new bhe("STACKED",0),gve=new bhe("REVERSE_STACKED",1),Gq=new bhe("SEQUENCED",2)}function OD(){OD=z,iYe=new xhe(og,0),Eve=new xhe("MIDDLE_TO_MIDDLE",1),Vq=new xhe("AVOID_OVERLAP",2)}function G8(){G8=z,dqe=new p2t,fqe=new g2t,drn=new d2t,hrn=new m2t,urn=new f2t,hqe=(hr(urn),new te)}function SZ(){SZ=z,JWe=new bE(15),dun=new fo((Ei(),Ty),JWe),GP=R6,KWe=Vcn,XWe=mw,ZWe=tC,QWe=i3}function WT(n,i){var l,d,g,y,x;for(d=i,g=0,y=d.length;g=n.b.c.length||(Z9e(n,2*i+1),l=2*i+2,l0&&(i.Cd(l),l.i&&Wyr(l))}function J9e(n,i,l){var d;for(d=l-1;d>=0&&n[d]===i[d];d--);return d<0?0:nhe(Us(n[d],ul),Us(i[d],ul))?-1:1}function HUt(n,i,l){var d,g;this.g=n,this.c=i,this.a=this,this.d=this,g=S$t(l),d=st(Sen,PG,227,g,0,1),this.b=d}function g0e(n,i,l,d,g){var y,x;for(x=l;x<=g;x++)for(y=i;y<=d;y++)if(e5(n,y,x))return!0;return!1}function Zbr(n,i){var l,d;for(d=n.Zb().Cc().Kc();d.Ob();)if(l=v(d.Pb(),16),l.Hc(i))return!0;return!1}function VUt(n,i,l){var d,g,y,x;for(hr(l),x=!1,y=n.fd(i),g=l.Kc();g.Ob();)d=g.Pb(),y.Rb(d),x=!0;return x}function m0e(n,i){var l,d;return d=v(rr(n.a,4),129),l=st(H2e,jme,424,i,0,1),d!=null&&Gc(d,0,l,0,d.length),l}function YUt(n,i){var l;return l=new H1e((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,i),n.e!=null||(l.c=n),l}function Jbr(n,i){var l;return n===i?!0:$e(i,85)?(l=v(i,85),nMe(x_(n),l.vc())):!1}function jUt(n,i,l){var d,g;for(g=l.Kc();g.Ob();)if(d=v(g.Pb(),44),n.Be(i,d.md()))return!0;return!1}function WUt(n,i,l){return n.d[i.p][l.p]||(n_r(n,i,l),n.d[i.p][l.p]=!0,n.d[l.p][i.p]=!0),n.a[i.p][l.p]}function eyr(n,i){var l;return!n||n==i||!ya(i,(At(),mx))?!1:(l=v(oe(i,(At(),mx)),10),l!=n)}function b0e(n){switch(n.i){case 2:return!0;case 1:return!1;case-1:++n.c;default:return n.$l()}}function KUt(n){switch(n.i){case-2:return!0;case-1:return!1;case 1:--n.c;default:return n._l()}}function XUt(n){BDt.call(this,"The given string does not match the expected format for individual spacings.",n)}function tyr(n,i){var l;i.Ug("Min Size Preprocessing",1),l=hMe(n),sa(n,(Vg(),IP),l.a),sa(n,Dne,l.b),i.Vg()}function nyr(n){var i,l,d;for(i=0,d=st(Vs,kt,8,n.b,0,1),l=Ur(n,0);l.b!=l.d.c;)d[i++]=v(Fr(l),8);return d}function y0e(n,i,l){var d,g,y;for(d=new Ea,y=Ur(l,0);y.b!=y.d.c;)g=v(Fr(y),8),pi(d,new Wo(g));VUt(n,i,d)}function ryr(n,i){var l;return l=zo(n,i),nhe(ofe(n,i),0)|bX(ofe(n,l),0)?l:zo(MG,ofe(Dv(l,63),1))}function iyr(n,i){var l,d;return l=v(n.d.Bc(i),16),l?(d=n.e.hc(),d.Gc(l),n.e.d-=l.gc(),l.$b(),d):null}function QUt(n){var i;if(i=n.a.c.length,i>0)return s8(i-1,n.a.c.length),Jb(n.a,i-1);throw _e(new Qkt)}function ZUt(n,i,l){if(n>i)throw _e(new ar(qJ+n+fXt+i));if(n<0||i>l)throw _e(new sRe(qJ+n+bBe+i+pBe+l))}function q8(n,i){n.D==null&&n.B!=null&&(n.D=n.B,n.B=null),Hfe(n,i==null?null:(hr(i),i)),n.C&&n.hl(null)}function ayr(n,i){var l;l=zt((P0e(),fne))!=null&&i.Sg()!=null?We(at(i.Sg()))/We(at(zt(fne))):1,Ni(n.b,i,l)}function eLe(n,i){var l,d;if(d=n.c[i],d!=0)for(n.c[i]=0,n.d-=d,l=i+1;lvee?n-l>vee:l-n>vee}function czt(n,i){var l;for(l=0;lg&&($qt(i.q,g),d=l!=i.q.d)),d}function uzt(n,i){var l,d,g,y,x,T,R,O;return R=i.i,O=i.j,d=n.f,g=d.i,y=d.j,x=R-g,T=O-y,l=u.Math.sqrt(x*x+T*T),l}function sLe(n,i){var l,d;return d=$Z(n),d||(l=(dpe(),QVt(i)),d=new Ukt(l),Yr(d.El(),n)),d}function Vz(n,i){var l,d;return l=v(n.c.Bc(i),16),l?(d=n.hc(),d.Gc(l),n.d-=l.gc(),l.$b(),n.mc(d)):n.jc()}function myr(n,i){var l,d;for(d=Gh(n.d,1)!=0,l=!0;l;)l=!1,l=i.c.mg(i.e,d),l=l|_G(n,i,d,!1),d=!d;S9e(n)}function hzt(n,i,l,d){var g,y;n.a=i,y=d?0:1,n.f=(g=new SHt(n.c,n.a,l,y),new njt(l,n.a,g,n.e,n.b,n.c==($E(),_P)))}function CZ(n){var i;return Tr(n.a!=n.b),i=n.d.a[n.a],$Nt(n.b==n.d.c&&i!=null),n.c=n.a,n.a=n.a+1&n.d.a.length-1,i}function dzt(n){var i;if(n.c!=0)return n.c;for(i=0;i=n.c.b:n.a<=n.c.b))throw _e(new ec);return i=n.a,n.a+=n.c.c,++n.b,Nt(i)}function x0e(n){var i;return i=new w8e(n.a),Ul(i,n),_t(i,(At(),Ji),n),i.o.a=n.g,i.o.b=n.f,i.n.a=n.i,i.n.b=n.j,i}function S0e(n){return(Bt(),Qu).Hc(n.j)?We(at(oe(n,(At(),aN)))):ac(Te(xe(Vs,1),kt,8,0,[n.i.n,n.n,n.a])).b}function yyr(n){var i;return i=EX(Usn),v(oe(n,(At(),au)),21).Hc((cl(),iN))&&yi(i,(Mo(),qc),(qo(),Ate)),i}function vyr(n){var i,l,d,g;for(g=new fs,d=new me(n);d.a=0?i:-i;d>0;)d%2==0?(l*=l,d=d/2|0):(g*=l,d-=1);return i<0?1/g:g}function Syr(n,i){var l,d,g;for(g=1,l=n,d=i>=0?i:-i;d>0;)d%2==0?(l*=l,d=d/2|0):(g*=l,d-=1);return i<0?1/g:g}function Hv(n,i){var l,d,g,y;return y=(g=n?$Z(n):null,jHt((d=i,g&&g.Gl(),d))),y==i&&(l=$Z(n),l&&l.Gl()),y}function fzt(n,i,l){var d,g;return g=n.f,n.f=i,n.Db&4&&!(n.Db&1)&&(d=new js(n,1,0,g,i),l?l.nj(d):l=d),l}function pzt(n,i,l){var d,g;return g=n.b,n.b=i,n.Db&4&&!(n.Db&1)&&(d=new js(n,1,3,g,i),l?l.nj(d):l=d),l}function lLe(n,i,l){var d,g;return g=n.a,n.a=i,n.Db&4&&!(n.Db&1)&&(d=new js(n,1,1,g,i),l?l.nj(d):l=d),l}function gzt(n){var i,l;if(n!=null)for(l=0;l=d||i-129&&n<128?(JOt(),i=n+128,l=sze[i],!l&&(l=sze[i]=new l7e(n)),l):new l7e(n)}function V8(n){var i,l;return n>-129&&n<128?(m9t(),i=n+128,l=uze[i],!l&&(l=uze[i]=new u7e(n)),l):new u7e(n)}function yzt(n,i){var l;n.a.c.length>0&&(l=v(Yt(n.a,n.a.c.length-1),579),Q9e(l,i))||Lt(n.a,new PPt(i))}function Iyr(n){_0();var i,l;i=n.d.c-n.e.c,l=v(n.g,154),Cu(l.b,new LCt(i)),Cu(l.c,new DCt(i)),To(l.i,new MCt(i))}function vzt(n){var i;return i=new Cv,i.a+="VerticalSegment ",Kc(i,n.e),i.a+=" ",bi(i,k8e(new que,new me(n.k))),i.a}function T0e(n,i){var l,d,g;for(l=0,g=sc(n,i).Kc();g.Ob();)d=v(g.Pb(),12),l+=oe(d,(At(),kh))!=null?1:0;return l}function QT(n,i,l){var d,g,y;for(d=0,y=Ur(n,0);y.b!=y.d.c&&(g=We(at(Fr(y))),!(g>l));)g>=i&&++d;return d}function _zt(n,i){ni(n);try{return n._b(i)}catch(l){if(l=Da(l),$e(l,212)||$e(l,169))return!1;throw _e(l)}}function uLe(n,i){ni(n);try{return n.Hc(i)}catch(l){if(l=Da(l),$e(l,212)||$e(l,169))return!1;throw _e(l)}}function Nyr(n,i){ni(n);try{return n.Mc(i)}catch(l){if(l=Da(l),$e(l,212)||$e(l,169))return!1;throw _e(l)}}function d4(n,i){ni(n);try{return n.xc(i)}catch(l){if(l=Da(l),$e(l,212)||$e(l,169))return null;throw _e(l)}}function Oyr(n,i){ni(n);try{return n.Bc(i)}catch(l){if(l=Da(l),$e(l,212)||$e(l,169))return null;throw _e(l)}}function MD(n,i){switch(i.g){case 2:case 1:return sc(n,i);case 3:case 4:return ff(sc(n,i))}return Fn(),Fn(),Zo}function PD(n){var i;return n.Db&64?T0(n):(i=new Ff(T0(n)),i.a+=" (name: ",bl(i,n.zb),i.a+=")",i.a)}function Lyr(n){var i;return i=v(j1(n.c.c,""),233),i||(i=new Rk(qR(GR(new XA,""),"Other")),cy(n.c.c,"",i)),i}function hLe(n,i,l){var d,g;return g=n.sb,n.sb=i,n.Db&4&&!(n.Db&1)&&(d=new js(n,1,4,g,i),l?l.nj(d):l=d),l}function dLe(n,i,l){var d,g;return g=n.r,n.r=i,n.Db&4&&!(n.Db&1)&&(d=new js(n,1,8,g,n.r),l?l.nj(d):l=d),l}function Dyr(n,i,l){var d,g;return d=new Vm(n.e,4,13,(g=i.c,g||(Pn(),dp)),null,uy(n,i),!1),l?l.nj(d):l=d,l}function Myr(n,i,l){var d,g;return d=new Vm(n.e,3,13,null,(g=i.c,g||(Pn(),dp)),uy(n,i),!1),l?l.nj(d):l=d,l}function ay(n,i){var l,d;return l=v(i,691),d=l.el(),!d&&l.fl(d=$e(i,90)?new Z8t(n,v(i,29)):new wMt(n,v(i,156))),d}function Yz(n,i,l){var d;n._i(n.i+1),d=n.Zi(i,l),i!=n.i&&Gc(n.g,i,n.g,i+1,n.i-i),Ga(n.g,i,d),++n.i,n.Mi(i,l),n.Ni()}function Pyr(n,i){var l;return i.a&&(l=i.a.a.length,n.a?bi(n.a,n.b):n.a=new Ed(n.d),kMt(n.a,i.a,i.d.length,l)),n}function Byr(n,i){var l;n.c=i,n.a=Gvr(i),n.a<54&&(n.f=(l=i.d>1?CMt(i.a[0],i.a[1]):CMt(i.a[0],0),N_(i.e>0?l:ty(l))))}function jz(n,i){var l;return l=new Ge,n.a.Bd(l)?(QR(),new Bue(hr(oFt(n,l.a,i)))):(Pv(n),QR(),QR(),wze)}function wzt(n,i){var l;n.c.length!=0&&(l=v(X1(n,st(tm,gy,10,n.c.length,0,1)),199),f8e(l,new _vt),pVt(l,i))}function Ezt(n,i){var l;n.c.length!=0&&(l=v(X1(n,st(tm,gy,10,n.c.length,0,1)),199),f8e(l,new wvt),pVt(l,i))}function Yi(n,i){return ro(n)?An(n,i):VS(n)?mOt(n,i):HS(n)?(hr(n),Ze(n)===Ze(i)):sNe(n)?n.Fb(i):JIe(n)?pIt(n,i):JNe(n,i)}function hf(n,i,l){if(i<0)yMe(n,l);else{if(!l.rk())throw _e(new ar(r2+l.xe()+MM));v(l,69).wk().Ek(n,n.hi(),i)}}function xzt(n,i,l){if(n<0||i>l)throw _e(new Sl(qJ+n+bBe+i+", size: "+l));if(n>i)throw _e(new ar(qJ+n+fXt+i))}function Szt(n){var i;return n.Db&64?T0(n):(i=new Ff(T0(n)),i.a+=" (source: ",bl(i,n.d),i.a+=")",i.a)}function Tzt(n){return n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:n>=48&&n<=57?n-48:0}function Fyr(n){FJ();var i,l,d,g;for(l=H0e(),d=0,g=l.length;d=0?Yv(n):cD(Yv(ty(n))))}function kzt(n,i,l,d,g,y){this.e=new Ot,this.f=(ll(),yP),Lt(this.e,n),this.d=i,this.a=l,this.b=d,this.f=g,this.c=y}function zyr(n,i,l){n.n=E_(C2,[kt,Xpe],[376,28],14,[l,Ps(u.Math.ceil(i/32))],2),n.o=i,n.p=l,n.j=i-1>>1,n.k=l-1>>1}function Rzt(n){return n-=n>>1&1431655765,n=(n>>2&858993459)+(n&858993459),n=(n>>4)+n&252645135,n+=n>>8,n+=n>>16,n&63}function Izt(n,i){var l,d;for(d=new mr(n);d.e!=d.i.gc();)if(l=v(wr(d),142),Ze(i)===Ze(l))return!0;return!1}function Gyr(n,i,l){var d,g,y;return y=(g=lI(n.b,i),g),y&&(d=v(LJ(Sz(n,y),""),29),d)?UMe(n,d,i,l):null}function C0e(n,i,l){var d,g,y;return y=(g=lI(n.b,i),g),y&&(d=v(LJ(Sz(n,y),""),29),d)?zMe(n,d,i,l):null}function qyr(n,i){var l;if(l=jT(n.i,i),l==null)throw _e(new zp("Node did not exist in input."));return N9e(i,l),null}function Hyr(n,i){var l;if(l=vG(n,i),$e(l,331))return v(l,35);throw _e(new ar(r2+i+"' is not a valid attribute"))}function FD(n,i,l){var d;if(d=n.gc(),i>d)throw _e(new XS(i,d));if(n.Si()&&n.Hc(l))throw _e(new ar(sq));n.Gi(i,l)}function Vyr(n,i){i.Ug("Sort end labels",1),ts(Ki(ic(new xn(null,new Nn(n.b,16)),new ivt),new avt),new svt),i.Vg()}function ys(){ys=z,cp=new NU(wM,0),ql=new NU(i6,1),Ol=new NU(r6,2),lp=new NU(cge,3),Ef=new NU("UP",4)}function Kz(){Kz=z,Bne=new Ihe("P1_STRUCTURE",0),Fne=new Ihe("P2_PROCESSING_ORDER",1),$ne=new Ihe("P3_EXECUTION",2)}function Nzt(){Nzt=z,tln=Jp(Jp(RL(Jp(Jp(RL(yi(new ms,(Yk(),xP),(oM(),wve)),SP),eYe),nYe),TP),XVe),rYe)}function Yyr(n){switch(v(oe(n,(At(),aw)),311).g){case 1:_t(n,aw,(Ym(),y6));break;case 2:_t(n,aw,(Ym(),D5))}}function jyr(n){switch(n){case 0:return new _6t;case 1:return new y6t;case 2:return new v6t;default:throw _e(new cU)}}function Ozt(n){switch(n.g){case 2:return ql;case 1:return Ol;case 4:return lp;case 3:return Ef;default:return cp}}function mLe(n,i){switch(n.b.g){case 0:case 1:return i;case 2:case 3:return new rf(i.d,0,i.a,i.b);default:return null}}function bLe(n){switch(n.g){case 1:return cr;case 2:return or;case 3:return gr;case 4:return Mr;default:return lc}}function Xz(n){switch(n.g){case 1:return Mr;case 2:return cr;case 3:return or;case 4:return gr;default:return lc}}function RZ(n){switch(n.g){case 1:return gr;case 2:return Mr;case 3:return cr;case 4:return or;default:return lc}}function yLe(n,i,l,d){switch(i){case 1:return!n.n&&(n.n=new vt(wl,n,1,7)),n.n;case 2:return n.k}return uDe(n,i,l,d)}function $D(n,i,l){var d,g;return n.Pj()?(g=n.Qj(),d=L1e(n,i,l),n.Jj(n.Ij(7,Nt(l),d,i,g)),d):L1e(n,i,l)}function A0e(n,i){var l,d,g;n.d==null?(++n.e,--n.f):(g=i.ld(),l=i.Bi(),d=(l&qi)%n.d.length,Opr(n,d,tYt(n,d,l,g)))}function Y8(n,i){var l;l=(n.Bb&k0)!=0,i?n.Bb|=k0:n.Bb&=-1025,n.Db&4&&!(n.Db&1)&&Vi(n,new E0(n,1,10,l,i))}function j8(n,i){var l;l=(n.Bb&R4)!=0,i?n.Bb|=R4:n.Bb&=-4097,n.Db&4&&!(n.Db&1)&&Vi(n,new E0(n,1,12,l,i))}function W8(n,i){var l;l=(n.Bb&gh)!=0,i?n.Bb|=gh:n.Bb&=-8193,n.Db&4&&!(n.Db&1)&&Vi(n,new E0(n,1,15,l,i))}function K8(n,i){var l;l=(n.Bb&P4)!=0,i?n.Bb|=P4:n.Bb&=-2049,n.Db&4&&!(n.Db&1)&&Vi(n,new E0(n,1,11,l,i))}function Wyr(n){var i;n.g&&(i=n.c.kg()?n.f:n.a,ePe(i.a,n.o,!0),ePe(i.a,n.o,!1),_t(n.o,(qt(),Qa),(co(),yw)))}function Kyr(n){var i;if(!n.a)throw _e(new Tl("Cannot offset an unassigned cut."));i=n.c-n.b,n.b+=i,rDt(n,i),nDt(n,i)}function Xyr(n,i){var l;if(l=br(n.k,i),l==null)throw _e(new zp("Port did not exist in input."));return N9e(i,l),null}function Qyr(n){var i,l;for(l=ZVt(Cd(n)).Kc();l.Ob();)if(i=ai(l.Pb()),lM(n,i))return Z1r((DRt(),ehn),i);return null}function Lzt(n){var i,l;for(l=n.p.a.ec().Kc();l.Ob();)if(i=v(l.Pb(),218),i.f&&n.b[i.c]<-1e-10)return i;return null}function Zyr(n){var i,l;for(l=C_(new Cv,91),i=!0;n.Ob();)i||(l.a+=Xo),i=!1,Kc(l,n.Pb());return(l.a+="]",l).a}function Jyr(n){var i,l,d;for(i=new Ot,d=new me(n.b);d.ai?1:n==i?n==0?ha(1/n,1/i):0:isNaN(n)?isNaN(i)?0:1:-1}function tvr(n){var i;return i=n.a[n.c-1&n.a.length-1],i==null?null:(n.c=n.c-1&n.a.length-1,Ga(n.a,n.c,null),i)}function nvr(n){var i,l,d;for(d=0,l=n.length,i=0;i=1?ql:lp):l}function svr(n){switch(v(oe(n,(qt(),lb)),223).g){case 1:return new V_t;case 3:return new X_t;default:return new H_t}}function Vv(n){if(n.c)Vv(n.c);else if(n.d)throw _e(new Tl("Stream already terminated, can't be modified or used"))}function qE(n,i,l){var d;return d=n.a.get(i),n.a.set(i,l===void 0?null:l),d===void 0?(++n.c,++n.b.g):++n.d,d}function ovr(n,i,l){var d,g;for(g=n.a.ec().Kc();g.Ob();)if(d=v(g.Pb(),10),Bz(l,v(Yt(i,d.p),16)))return d;return null}function _Le(n,i,l){var d;return d=0,i&&(LT(n.a)?d+=i.f.a/2:d+=i.f.b/2),l&&(LT(n.a)?d+=l.f.a/2:d+=l.f.b/2),d}function lvr(n,i,l){var d;d=l,!d&&(d=zIe(new tk,0)),d.Ug(VXt,2),FGt(n.b,i,d.eh(1)),x6r(n,i,d.eh(1)),CRr(i,d.eh(1)),d.Vg()}function wLe(n,i,l){var d,g;return d=(kv(),g=new hK,g),nZ(d,i),tZ(d,l),n&&Yr((!n.a&&(n.a=new gs(Ud,n,5)),n.a),d),d}function R0e(n){var i;return n.Db&64?T0(n):(i=new Ff(T0(n)),i.a+=" (identifier: ",bl(i,n.k),i.a+=")",i.a)}function I0e(n,i){var l;l=(n.Bb&Sc)!=0,i?n.Bb|=Sc:n.Bb&=-32769,n.Db&4&&!(n.Db&1)&&Vi(n,new E0(n,1,18,l,i))}function ELe(n,i){var l;l=(n.Bb&Sc)!=0,i?n.Bb|=Sc:n.Bb&=-32769,n.Db&4&&!(n.Db&1)&&Vi(n,new E0(n,1,18,l,i))}function X8(n,i){var l;l=(n.Bb&ng)!=0,i?n.Bb|=ng:n.Bb&=-16385,n.Db&4&&!(n.Db&1)&&Vi(n,new E0(n,1,16,l,i))}function xLe(n,i){var l;l=(n.Bb&el)!=0,i?n.Bb|=el:n.Bb&=-65537,n.Db&4&&!(n.Db&1)&&Vi(n,new E0(n,1,20,l,i))}function SLe(n){var i;return i=st(Tf,rg,28,2,15,1),n-=el,i[0]=(n>>10)+UG&vs,i[1]=(n&1023)+56320&vs,Qp(i,0,i.length)}function cvr(n){var i;return i=y4(n),i>34028234663852886e22?ka:i<-34028234663852886e22?Ss:i}function zo(n,i){var l;return jl(n)&&jl(i)&&(l=n+i,$G"+I_(i.c):"e_"+ma(i),n.b&&n.c?I_(n.b)+"->"+I_(n.c):"e_"+ma(n))}function dvr(n,i){return An(i.b&&i.c?I_(i.b)+"->"+I_(i.c):"e_"+ma(i),n.b&&n.c?I_(n.b)+"->"+I_(n.c):"e_"+ma(n))}function HE(n,i){return $1(),x0(Zv),u.Math.abs(n-i)<=Zv||n==i||isNaN(n)&&isNaN(i)?0:ni?1:mE(isNaN(n),isNaN(i))}function Xm(){Xm=z,L2e=new uX(wM,0),uH=new uX("POLYLINE",1),xN=new uX("ORTHOGONAL",2),O6=new uX("SPLINES",3)}function NZ(){NZ=z,eje=new khe("ASPECT_RATIO_DRIVEN",0),Jve=new khe("MAX_SCALE_DRIVEN",1),JYe=new khe("AREA_DRIVEN",2)}function fvr(n,i,l){var d;try{Pbr(n,i,l)}catch(g){throw g=Da(g),$e(g,606)?(d=g,_e(new SOe(d))):_e(g)}return i}function pvr(n){var i,l,d;for(l=0,d=n.length;li&&d.Ne(n[y-1],n[y])>0;--y)x=n[y],Ga(n,y,n[y-1]),Ga(n,y-1,x)}function pn(n,i){var l,d,g,y,x;if(l=i.f,cy(n.c.d,l,i),i.g!=null)for(g=i.g,y=0,x=g.length;yi){NMt(l);break}}tz(l,i)}function yvr(n,i){var l,d,g;d=qT(i),g=We(at(p4(d,(qt(),O0)))),l=u.Math.max(0,g/2-.5),WD(i,l,1),Lt(n,new XRt(i,l))}function vvr(n,i,l){var d;l.Ug("Straight Line Edge Routing",1),l.dh(i,T$e),d=v(Et(i,(UT(),Y5)),27),vWt(n,d),l.dh(i,Eee)}function TLe(n,i){n.n.c.length==0&&Lt(n.n,new SQ(n.s,n.t,n.i)),Lt(n.b,i),aDe(v(Yt(n.n,n.n.c.length-1),209),i),tWt(n,i)}function UD(n){var i;this.a=(i=v(n.e&&n.e(),9),new nf(i,v(v0(i,i.length),9),0)),this.b=st(zs,Yn,1,this.a.a.length,5,1)}function Kl(n){var i;return Array.isArray(n)&&n.Tm===Z?__(cd(n))+"@"+(i=ma(n)>>>0,i.toString(16)):n.toString()}function _vr(n,i){return n.h==FG&&n.m==0&&n.l==0?(i&&(i2=Su(0,0,0)),mIt((E8(),eze))):(i&&(i2=Su(n.l,n.m,n.h)),Su(0,0,0))}function wvr(n,i){switch(i.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function Bzt(n,i){switch(i.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function CLe(n,i,l,d){switch(i){case 3:return n.f;case 4:return n.g;case 5:return n.i;case 6:return n.j}return yLe(n,i,l,d)}function OZ(n,i){if(i==n.d)return n.e;if(i==n.e)return n.d;throw _e(new ar("Node "+i+" not part of edge "+n))}function Evr(n,i){var l;if(l=vG(n.Dh(),i),$e(l,102))return v(l,19);throw _e(new ar(r2+i+"' is not a valid reference"))}function df(n,i,l,d){if(i<0)VMe(n,l,d);else{if(!l.rk())throw _e(new ar(r2+l.xe()+MM));v(l,69).wk().Ck(n,n.hi(),i,d)}}function zh(n){var i;if(n.b){if(zh(n.b),n.b.d!=n.c)throw _e(new Jd)}else n.d.dc()&&(i=v(n.f.c.xc(n.e),16),i&&(n.d=i))}function xvr(n){WS();var i,l,d,g;for(i=n.o.b,d=v(v(Zi(n.r,(Bt(),Mr)),21),87).Kc();d.Ob();)l=v(d.Pb(),117),g=l.e,g.b+=i}function Svr(n){var i,l,d;for(this.a=new Hp,d=new me(n);d.a=g)return i.c+l;return i.c+i.b.gc()}function Cvr(n,i){t8();var l,d,g,y;for(d=KBt(n),g=i,_8(d,0,d.length,g),l=0;l0&&(d+=g,++l);return l>1&&(d+=n.d*(l-1)),d}function kvr(n){var i,l,d,g,y;return y=HDe(n),l=fU(n.c),d=!l,d&&(g=new p_,c1(y,"knownLayouters",g),i=new Akt(g),To(n.c,i)),y}function RLe(n){var i,l,d;for(d=new qb,d.a+="[",i=0,l=n.gc();i0&&(sr(i-1,n.length),n.charCodeAt(i-1)==58)&&!L0e(n,ZP,JP))}function ILe(n,i){var l;return Ze(n)===Ze(i)?!0:$e(i,92)?(l=v(i,92),n.e==l.e&&n.d==l.d&&tpr(n,l.a)):!1}function zk(n){switch(Bt(),n.g){case 4:return or;case 1:return gr;case 3:return Mr;case 2:return cr;default:return lc}}function Ovr(n){var i,l;if(n.b)return n.b;for(l=rp?null:n.d;l;){if(i=rp?null:l.b,i)return i;l=rp?null:l.d}return KR(),Sze}function NLe(n){var i,l,d;for(d=We(at(n.a.of((Ei(),jne)))),l=new me(n.a.Sf());l.a>5,i=n&31,d=st(Wr,vi,28,l+1,15,1),d[l]=1<3;)g*=10,--y;n=(n+(g>>1))/g|0}return d.i=n,!0}function Ma(n,i){var l,d,g;if(l=(n.i==null&&tg(n),n.i),d=i.Lj(),d!=-1){for(g=l.length;d=0;--d)for(i=l[d],g=0;g>1,this.k=i-1>>1}function jvr(n){GQ(),v(n.of((Ei(),g2)),181).Hc((qh(),ere))&&(v(n.of(a3),181).Fc((Ah(),L6)),v(n.of(g2),181).Mc(ere))}function Hzt(n){var i,l;i=n.d==(jk(),XI),l=DDe(n),i&&!l||!i&&l?_t(n.a,(qt(),fg),(qg(),nH)):_t(n.a,(qt(),fg),(qg(),tH))}function P0e(){P0e=z,HK(),fne=(qt(),Sx),fsn=H1(Te(xe(g2e,1),d$e,149,0,[Fq,O0,U5,xx,J4,Zye,uN,hN,Jye,pP,$5,dw,z5]))}function Wvr(n,i){var l;return l=v(Wl(n,Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),l.Qc(h9t(l.gc()))}function Vzt(n,i){var l,d;if(d=new MR(n.a.ad(i,!0)),d.a.gc()<=1)throw _e(new ZA);return l=d.a.ec().Kc(),l.Pb(),v(l.Pb(),40)}function Kvr(n,i,l){var d,g;return d=We(n.p[i.i.p])+We(n.d[i.i.p])+i.n.b+i.a.b,g=We(n.p[l.i.p])+We(n.d[l.i.p])+l.n.b+l.a.b,g-d}function FLe(n,i){var l;return n.i>0&&(i.lengthn.i&&Ga(i,n.i,null),i}function DZ(n){var i;return n.Db&64?PD(n):(i=new Ff(PD(n)),i.a+=" (instanceClassName: ",bl(i,n.D),i.a+=")",i.a)}function MZ(n){var i,l,d,g;for(g=0,l=0,d=n.length;l0?(n._j(),d=i==null?0:ma(i),g=(d&qi)%n.d.length,l=tYt(n,g,d,i),l!=-1):!1}function Yzt(n,i){var l,d;n.a=zo(n.a,1),n.c=u.Math.min(n.c,i),n.b=u.Math.max(n.b,i),n.d+=i,l=i-n.f,d=n.e+l,n.f=d-n.e-l,n.e=d}function $Le(n,i){switch(i){case 3:BE(n,0);return;case 4:FE(n,0);return;case 5:Au(n,0);return;case 6:ku(n,0);return}cLe(n,i)}function VE(n,i){switch(i.g){case 1:return vk(n.j,(hh(),CGe));case 2:return vk(n.j,(hh(),kGe));default:return Fn(),Fn(),Zo}}function ULe(n){CE();var i;switch(i=n.Pc(),i.length){case 0:return hbe;case 1:return new mde(ni(i[0]));default:return new Qde(pvr(i))}}function jzt(n,i){n.Xj();try{n.d.bd(n.e++,i),n.f=n.d.j,n.g=-1}catch(l){throw l=Da(l),$e(l,77)?_e(new Jd):_e(l)}}function F0e(){F0e=z,W2e=new GSt,MKe=new qSt,PKe=new HSt,BKe=new VSt,FKe=new YSt,$Ke=new jSt,UKe=new WSt,zKe=new KSt,GKe=new XSt}function PZ(n,i){c8e();var l,d;return l=HU((IK(),IK(),jM)),d=null,i==l&&(d=v(Qc(ZUe,n),624)),d||(d=new dLt(n),i==l&&Cl(ZUe,n,d)),d}function Wzt(n){g4();var i;return(n.q?n.q:(Fn(),Fn(),Jg))._b((qt(),wx))?i=v(oe(n,wx),203):i=v(oe(So(n),fP),203),i}function p4(n,i){var l,d;return d=null,ya(n,(qt(),hne))&&(l=v(oe(n,hne),96),l.pf(i)&&(d=l.of(i))),d==null&&(d=oe(So(n),i)),d}function Kzt(n,i){var l,d,g;return $e(i,44)?(l=v(i,44),d=l.ld(),g=d4(n.Rc(),d),Wp(g,l.md())&&(g!=null||n.Rc()._b(d))):!1}function h1(n,i){var l,d,g;return n.f>0&&(n._j(),d=i==null?0:ma(i),g=(d&qi)%n.d.length,l=TMe(n,g,d,i),l)?l.md():null}function bu(n,i,l){var d,g,y;return n.Pj()?(d=n.i,y=n.Qj(),Yz(n,d,i),g=n.Ij(3,null,i,d,y),l?l.nj(g):l=g):Yz(n,n.i,i),l}function Qvr(n,i,l){var d,g;return d=new Vm(n.e,4,10,(g=i.c,$e(g,90)?v(g,29):(Pn(),n0)),null,uy(n,i),!1),l?l.nj(d):l=d,l}function Zvr(n,i,l){var d,g;return d=new Vm(n.e,3,10,null,(g=i.c,$e(g,90)?v(g,29):(Pn(),n0)),uy(n,i),!1),l?l.nj(d):l=d,l}function Xzt(n){WS();var i;return i=new Wo(v(n.e.of((Ei(),tC)),8)),n.B.Hc((qh(),TN))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),i}function Yv(n){eg();var i,l;return l=ti(n),i=ti(Dv(n,32)),i!=0?new iMt(l,i):l>10||l<0?new qm(1,l):Pen[l]}function Zz(n,i){var l;return jl(n)&&jl(i)&&(l=n%i,$G=0?y=y.a[1]:(g=y,y=y.a[0])}return g}function eG(n,i,l){var d,g,y;for(g=null,y=n.b;y;){if(d=n.a.Ne(i,y.d),l&&d==0)return y;d<=0?y=y.a[0]:(g=y,y=y.a[1])}return g}function i2r(n,i,l,d){var g,y,x;return g=!1,o7r(n.f,l,d)&&(C2r(n.f,n.a[i][l],n.a[i][d]),y=n.a[i],x=y[d],y[d]=y[l],y[l]=x,g=!0),g}function eGt(n,i,l){var d,g,y,x;for(g=v(br(n.b,l),183),d=0,x=new me(i.j);x.a>5,i&=31,g=n.d+l+(i==0?0:1),d=st(Wr,vi,28,g,15,1),nxr(d,n.a,l,i),y=new T_(n.e,g,d),gD(y),y}function a2r(n,i){var l,d,g;for(d=new yr(_r(os(n).a.Kc(),new S));zr(d);)if(l=v(Rr(d),18),g=l.d.i,g.c==i)return!1;return!0}function qLe(n,i,l){var d,g,y,x,T;return x=n.k,T=i.k,d=l[x.g][T.g],g=at(p4(n,d)),y=at(p4(i,d)),u.Math.max((hr(g),g),(hr(y),y))}function s2r(){return Error.stackTraceLimit>0?(u.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function o2r(n,i){return $1(),$1(),x0(Zv),(u.Math.abs(n-i)<=Zv||n==i||isNaN(n)&&isNaN(i)?0:ni?1:mE(isNaN(n),isNaN(i)))>0}function HLe(n,i){return $1(),$1(),x0(Zv),(u.Math.abs(n-i)<=Zv||n==i||isNaN(n)&&isNaN(i)?0:ni?1:mE(isNaN(n),isNaN(i)))<0}function nGt(n,i){return $1(),$1(),x0(Zv),(u.Math.abs(n-i)<=Zv||n==i||isNaN(n)&&isNaN(i)?0:ni?1:mE(isNaN(n),isNaN(i)))<=0}function U0e(n,i){for(var l=0;!i[l]||i[l]=="";)l++;for(var d=i[l++];l0&&this.b>0&&(this.g=KX(this.c,this.b,this.a))}function l2r(n,i){var l=n.a,d;i=String(i),l.hasOwnProperty(i)&&(d=l[i]);var g=(l0e(),bbe)[typeof d],y=g?g(d):iLe(typeof d);return y}function Z8(n){var i,l,d;if(d=null,i=ug in n.a,l=!i,l)throw _e(new zp("Every element must have an id."));return d=Wk(Um(n,ug)),d}function YE(n){var i,l;for(l=kHt(n),i=null;n.c==2;)$i(n),i||(i=(zi(),zi(),new jL(2)),V_(i,l),l=i),l.Jm(kHt(n));return l}function FZ(n,i){var l,d,g;return n._j(),d=i==null?0:ma(i),g=(d&qi)%n.d.length,l=TMe(n,g,d,i),l?(u$t(n,l),l.md()):null}function cGt(n,i){return n.e>i.e?1:n.ei.d?n.e:n.d=48&&n<48+u.Math.min(10,10)?n-48:n>=97&&n<97?n-97+10:n>=65&&n<65?n-65+10:-1}function c2r(n,i){if(i.c==n)return i.d;if(i.d==n)return i.c;throw _e(new ar("Input edge is not connected to the input port."))}function u2r(n){if(UZ(BI,n))return Qn(),HI;if(UZ(Ame,n))return Qn(),a2;throw _e(new ar("Expecting true or false"))}function jLe(n){switch(typeof n){case Epe:return ry(n);case nBe:return dk(n);case Zk:return HNt(n);default:return n==null?0:vE(n)}}function Jp(n,i){if(n.a<0)throw _e(new Tl("Did not call before(...) or after(...) before calling add(...)."));return z8e(n,n.a,i),n}function WLe(n){return TQ(),$e(n,162)?v(br(EH,zen),295).Rg(n):Tu(EH,cd(n))?v(br(EH,cd(n)),295).Rg(n):null}function Ru(n){var i,l;return n.Db&32||(l=(i=v(rr(n,16),29),kr(i||n.ii())-kr(n.ii())),l!=0&&Gk(n,32,st(zs,Yn,1,l,5,1))),n}function Gk(n,i,l){var d;n.Db&i?l==null?j4r(n,i):(d=o1e(n,i),d==-1?n.Eb=l:Ga(L_(n.Eb),d,l)):l!=null&&m5r(n,i,l)}function h2r(n,i,l,d){var g,y;i.c.length!=0&&(g=sTr(l,d),y=o4r(i),ts(JQ(new xn(null,new Nn(y,1)),new Kwt),new zLt(n,l,g,d)))}function d2r(n,i){var l,d,g,y;return d=n.a.length-1,l=i-n.b&d,y=n.c-i&d,g=n.c-n.b&d,$Nt(l=y?(uyr(n,i),-1):(cyr(n,i),1)}function $Z(n){var i,l,d;if(d=n.Jh(),!d)for(i=0,l=n.Ph();l;l=l.Ph()){if(++i>Qpe)return l.Qh();if(d=l.Jh(),d||l==n)break}return d}function hGt(n,i){var l;return Ze(i)===Ze(n)?!0:!$e(i,21)||(l=v(i,21),l.gc()!=n.gc())?!1:n.Ic(l)}function f2r(n,i){return n.ei.e?1:n.fi.f?1:ma(n)-ma(i)}function UZ(n,i){return hr(n),i==null?!1:An(n,i)?!0:n.length==i.length&&An(n.toLowerCase(),i.toLowerCase())}function Zm(n){var i,l;return Oc(n,-129)>0&&Oc(n,128)<0?(g9t(),i=ti(n)+128,l=oze[i],!l&&(l=oze[i]=new c7e(n)),l):new c7e(n)}function z_(){z_=z,z4=new nX(og,0),wGe=new nX("INSIDE_PORT_SIDE_GROUPS",1),Qbe=new nX("GROUP_MODEL_ORDER",2),Zbe=new nX(VBe,3)}function p2r(n){var i;return n.b||aar(n,(i=slr(n.e,n.a),!i||!An(Ame,h1((!i.b&&(i.b=new sd((Pn(),nl),_c,i)),i.b),"qualified")))),n.c}function g2r(n,i){var l,d;for(l=(sr(i,n.length),n.charCodeAt(i)),d=i+1;d2e3&&(Cen=n,Xee=u.setTimeout(uar,10))),Kee++==0?(kgr((tRe(),QUe)),!0):!1}function R2r(n,i,l){var d;(Wen?(Ovr(n),!0):Ken||Qen?(KR(),!0):Xen&&(KR(),!1))&&(d=new kOt(i),d.b=l,Bxr(n,d))}function G0e(n,i){var l;l=!n.A.Hc((ud(),vw))||n.q==(co(),su),n.u.Hc((Ah(),ub))?l?yRr(n,i):sKt(n,i):n.u.Hc(v2)&&(l?F7r(n,i):wKt(n,i))}function bGt(n){var i;Ze(Et(n,(Ei(),J5)))===Ze((Km(),Xne))&&(Aa(n)?(i=v(Et(Aa(n),J5),346),sa(n,J5,i)):sa(n,J5,qP))}function I2r(n){var i,l;return ya(n.d.i,(qt(),oN))?(i=v(oe(n.c.i,oN),17),l=v(oe(n.d.i,oN),17),Nc(i.a,l.a)>0):!1}function yGt(n,i,l){return new rf(u.Math.min(n.a,i.a)-l/2,u.Math.min(n.b,i.b)-l/2,u.Math.abs(n.a-i.a)+l,u.Math.abs(n.b-i.b)+l)}function vGt(n){var i;this.d=new Ot,this.j=new ho,this.g=new ho,i=n.g.b,this.f=v(oe(So(i),(qt(),Pd)),88),this.e=We(at(HZ(i,J4)))}function _Gt(n){this.d=new Ot,this.e=new Zb,this.c=st(Wr,vi,28,(Bt(),Te(xe(tl,1),Dc,64,0,[lc,or,gr,Mr,cr])).length,15,1),this.b=n}function QLe(n,i,l){var d;switch(d=l[n.g][i],n.g){case 1:case 3:return new Ct(0,d);case 2:case 4:return new Ct(d,0);default:return null}}function wGt(n,i,l){var d,g;g=v(sz(i.f),205);try{g.rf(n,l),CLt(i.f,g)}catch(y){throw y=Da(y),$e(y,103)?(d=y,_e(d)):_e(y)}}function EGt(n,i,l){var d,g,y,x,T,R;return d=null,T=GPe(R8(),i),y=null,T&&(g=null,R=UPe(T,l),x=null,R!=null&&(x=n.qf(T,R)),g=x,y=g),d=y,d}function q0e(n,i,l,d){var g;if(g=n.length,i>=g)return g;for(i=i>0?i:0;id&&Ga(i,d,null),i}function xGt(n,i){var l,d;for(d=n.a.length,i.lengthd&&Ga(i,d,null),i}function J8(n,i){var l,d;if(++n.j,i!=null&&(l=(d=n.a.Cb,$e(d,99)?v(d,99).th():null),M4r(i,l))){Gk(n.a,4,l);return}Gk(n.a,4,v(i,129))}function N2r(n){var i;if(n==null)return null;if(i=P3r(eu(n,!0)),i==null)throw _e(new Gue("Invalid hexBinary value: '"+n+"'"));return i}function zZ(n,i,l){var d;i.a.length>0&&(Lt(n.b,new HOt(i.a,l)),d=i.a.length,0d&&(i.a+=YIt(st(Tf,rg,28,-d,15,1))))}function SGt(n,i,l){var d,g,y;if(!l[i.d])for(l[i.d]=!0,g=new me(XT(i));g.a=n.b>>1)for(d=n.c,l=n.b;l>i;--l)d=d.b;else for(d=n.a.a,l=0;l=0?n.Wh(g):O1e(n,d)):l<0?O1e(n,d):v(d,69).wk().Bk(n,n.hi(),l)}function kGt(n){var i,l,d;for(d=(!n.o&&(n.o=new uh((Lc(),om),Ay,n,0)),n.o),l=d.c.Kc();l.e!=l.i.gc();)i=v(l.Yj(),44),i.md();return yz(d)}function zt(n){var i;if($e(n.a,4)){if(i=WLe(n.a),i==null)throw _e(new Tl(XQt+n.b+"'. "+KQt+(Fm(xH),xH.k)+rUe));return i}else return n.a}function $2r(n,i){var l,d;if(n.j.length!=i.j.length)return!1;for(l=0,d=n.j.length;l=64&&i<128&&(g=s1(g,w0(1,i-64)));return g}function HZ(n,i){var l,d;return d=null,ya(n,(Ei(),I6))&&(l=v(oe(n,I6),96),l.pf(i)&&(d=l.of(i))),d==null&&So(n)&&(d=oe(So(n),i)),d}function U2r(n,i){var l;return l=v(oe(n,(qt(),Nl)),75),qhe(i,Knn)?l?xd(l):(l=new ah,_t(n,Nl,l)):l&&_t(n,Nl,null),l}function qD(){qD=z,tGe=(Ei(),OWe),Fbe=dWe,Wtn=X5,eGe=Ty,Ztn=(nJ(),Lze),Qtn=Nze,Jtn=Mze,Xtn=Ize,Ktn=(v0e(),Qze),Bbe=Vtn,Jze=Ytn,ote=jtn}function VZ(n){switch(SRe(),this.c=new Ot,this.d=n,n.g){case 0:case 2:this.a=ONe(_Ge),this.b=ka;break;case 3:case 1:this.a=_Ge,this.b=Ss}}function z2r(n){var i;yk(v(oe(n,(qt(),Qa)),101))&&(i=n.b,mVt(($n(0,i.c.length),v(i.c[0],30))),mVt(v(Yt(i,i.c.length-1),30)))}function G2r(n,i){i.Ug("Self-Loop post-processing",1),ts(Ki(Ki(ic(new xn(null,new Nn(n.b,16)),new S2t),new T2t),new C2t),new A2t),i.Vg()}function RGt(n,i,l){var d,g;if(n.c)Au(n.c,n.c.i+i),ku(n.c,n.c.j+l);else for(g=new me(n.b);g.a=0&&(l.d=n.t);break;case 3:n.t>=0&&(l.a=n.t)}n.C&&(l.b=n.C.b,l.c=n.C.c)}function HD(){HD=z,xVe=new TU(f$e,0),lve=new TU(Ige,1),cve=new TU("LINEAR_SEGMENTS",2),mP=new TU("BRANDES_KOEPF",3),bP=new TU(SQt,4)}function VD(){VD=z,wq=new eX(VJ,0),ate=new eX(uge,1),ste=new eX(hge,2),Eq=new eX(dge,3),wq.a=!1,ate.a=!0,ste.a=!1,Eq.a=!0}function qk(){qk=z,yq=new JK(VJ,0),bq=new JK(uge,1),vq=new JK(hge,2),_q=new JK(dge,3),yq.a=!1,bq.a=!0,vq.a=!1,_q.a=!0}function Hk(n,i,l,d){var g;return l>=0?n.Sh(i,l,d):(n.Ph()&&(d=(g=n.Fh(),g>=0?n.Ah(d):n.Ph().Th(n,-1-g,null,d))),n.Ch(i,l,d))}function ZLe(n,i){switch(i){case 7:!n.e&&(n.e=new Gn(ss,n,7,4)),Gr(n.e);return;case 8:!n.d&&(n.d=new Gn(ss,n,8,5)),Gr(n.d);return}$Le(n,i)}function sa(n,i,l){return l==null?(!n.o&&(n.o=new uh((Lc(),om),Ay,n,0)),FZ(n.o,i)):(!n.o&&(n.o=new uh((Lc(),om),Ay,n,0)),sG(n.o,i,l)),n}function LGt(n,i){Fn();var l,d,g,y;for(l=n,y=i,$e(n,21)&&!$e(i,21)&&(l=i,y=n),g=l.Kc();g.Ob();)if(d=g.Pb(),y.Hc(d))return!1;return!0}function j2r(n,i,l,d){if(i.al.b)return!0}return!1}function W0e(n,i){return ro(n)?!!ven[i]:n.Sm?!!n.Sm[i]:VS(n)?!!yen[i]:HS(n)?!!ben[i]:!1}function W2r(n){var i;i=n.a;do i=v(Rr(new yr(_r(Hs(i).a.Kc(),new S))),18).c.i,i.k==(lr(),Ws)&&n.b.Fc(i);while(i.k==(lr(),Ws));n.b=ff(n.b)}function DGt(n,i){var l,d,g;for(g=n,d=new yr(_r(Hs(i).a.Kc(),new S));zr(d);)l=v(Rr(d),18),l.c.i.c&&(g=u.Math.max(g,l.c.i.c.p));return g}function K2r(n,i){var l,d,g;for(g=0,d=v(v(Zi(n.r,i),21),87).Kc();d.Ob();)l=v(d.Pb(),117),g+=l.d.d+l.b.Mf().b+l.d.a,d.Ob()&&(g+=n.w);return g}function X2r(n,i){var l,d,g;for(g=0,d=v(v(Zi(n.r,i),21),87).Kc();d.Ob();)l=v(d.Pb(),117),g+=l.d.b+l.b.Mf().a+l.d.c,d.Ob()&&(g+=n.w);return g}function MGt(n){var i,l,d,g;if(d=0,g=E4(n),g.c.length==0)return 1;for(l=new me(g);l.a=0?n.Lh(x,l,!0):XE(n,y,l)):v(y,69).wk().yk(n,n.hi(),g,l,d)}function e_r(n,i,l,d){var g,y;y=i.pf((Ei(),eC))?v(i.of(eC),21):n.j,g=Fyr(y),g!=(FJ(),Lbe)&&(l&&!VLe(g)||rMe(B3r(n,g,d),i))}function t_r(n){switch(n.g){case 1:return GE(),mq;case 3:return GE(),gq;case 2:return GE(),Mbe;case 4:return GE(),Dbe;default:return null}}function n_r(n,i,l){if(n.e)switch(n.b){case 1:Ydr(n.c,i,l);break;case 0:jdr(n.c,i,l)}else nPt(n.c,i,l);n.a[i.p][l.p]=n.c.i,n.a[l.p][i.p]=n.c.e}function PGt(n){var i,l;if(n==null)return null;for(l=st(tm,kt,199,n.length,0,2),i=0;i=0)return g;if(n.ol()){for(d=0;d=g)throw _e(new XS(i,g));if(n.Si()&&(d=n.dd(l),d>=0&&d!=i))throw _e(new ar(sq));return n.Xi(i,l)}function JLe(n,i){if(this.a=v(ni(n),253),this.b=v(ni(i),253),n.Ed(i)>0||n==(Mue(),cbe)||i==(Pue(),ube))throw _e(new ar("Invalid range: "+aPt(n,i)))}function BGt(n){var i,l;for(this.b=new Ot,this.c=n,this.a=!1,l=new me(n.a);l.a0),(i&-i)==i)return Ps(i*Gh(n,31)*4656612873077393e-25);do l=Gh(n,31),d=l%i;while(l-d+(i-1)<0);return Ps(d)}function l_r(n,i,l){switch(l.g){case 1:n.a=i.a/2,n.b=0;break;case 2:n.a=i.a,n.b=i.b/2;break;case 3:n.a=i.a/2,n.b=i.b;break;case 4:n.a=0,n.b=i.b/2}}function tG(n,i,l,d){var g,y;for(g=i;g1&&(y=i_r(n,i)),y}function UGt(n){var i;return i=We(at(Et(n,(Ei(),cH))))*u.Math.sqrt((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a).i),new Ct(i,i/We(at(Et(n,Wne))))}function X0e(n){var i;return n.f&&n.f.Vh()&&(i=v(n.f,54),n.f=v(Hv(n,i),84),n.f!=i&&n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,9,8,i,n.f))),n.f}function Q0e(n){var i;return n.i&&n.i.Vh()&&(i=v(n.i,54),n.i=v(Hv(n,i),84),n.i!=i&&n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,9,7,i,n.i))),n.i}function sl(n){var i;return n.b&&n.b.Db&64&&(i=n.b,n.b=v(Hv(n,i),19),n.b!=i&&n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,9,21,i,n.b))),n.b}function XZ(n,i){var l,d,g;n.d==null?(++n.e,++n.f):(d=i.Bi(),NTr(n,n.f+1),g=(d&qi)%n.d.length,l=n.d[g],!l&&(l=n.d[g]=n.dk()),l.Fc(i),++n.f)}function nDe(n,i,l){var d;return i.tk()?!1:i.Ik()!=-2?(d=i.ik(),d==null?l==null:Yi(d,l)):i.qk()==n.e.Dh()&&l==null}function QZ(){var n;kd(16,QKt),n=S$t(16),this.b=st(dbe,PG,303,n,0,1),this.c=st(dbe,PG,303,n,0,1),this.a=null,this.e=null,this.i=0,this.f=n-1,this.g=0}function Jm(n){lIe.call(this),this.k=(lr(),is),this.j=(kd(6,k4),new gu(6)),this.b=(kd(2,k4),new gu(2)),this.d=new Iue,this.f=new q7e,this.a=n}function u_r(n){var i,l;n.c.length<=1||(i=HYt(n,(Bt(),Mr)),NHt(n,v(i.a,17).a,v(i.b,17).a),l=HYt(n,cr),NHt(n,v(l.a,17).a,v(l.b,17).a))}function h_r(n,i,l){var d,g;for(g=n.a.b,d=g.c.length;d102?-1:n<=57?n-48:n<65?-1:n<=70?n-65+10:n<97?-1:n-97+10}function n1e(n,i){if(n==null)throw _e(new rk("null key in entry: null="+i));if(i==null)throw _e(new rk("null value in entry: "+n+"=null"))}function p_r(n,i){for(var l,d;n.Ob();)if(!i.Ob()||(l=n.Pb(),d=i.Pb(),!(Ze(l)===Ze(d)||l!=null&&Yi(l,d))))return!1;return!i.Ob()}function qGt(n,i){var l;return l=Te(xe(ao,1),_l,28,15,[w0e(n.a[0],i),w0e(n.a[1],i),w0e(n.a[2],i)]),n.d&&(l[0]=u.Math.max(l[0],l[2]),l[2]=l[0]),l}function HGt(n,i){var l;return l=Te(xe(ao,1),_l,28,15,[TZ(n.a[0],i),TZ(n.a[1],i),TZ(n.a[2],i)]),n.d&&(l[0]=u.Math.max(l[0],l[2]),l[2]=l[0]),l}function iDe(n,i,l){yk(v(oe(i,(qt(),Qa)),101))||(yOe(n,i,hy(i,l)),yOe(n,i,hy(i,(Bt(),Mr))),yOe(n,i,hy(i,or)),Fn(),us(i.j,new XCt(n)))}function VGt(n){var i,l;for(n.c||L6r(n),l=new ah,i=new me(n.a),pe(i);i.a0&&(sr(0,i.length),i.charCodeAt(0)==43)?(sr(1,i.length+1),i.substr(1)):i))}function k_r(n){var i;return n==null?null:new Ov((i=eu(n,!0),i.length>0&&(sr(0,i.length),i.charCodeAt(0)==43)?(sr(1,i.length+1),i.substr(1)):i))}function sDe(n,i,l,d,g,y,x,T){var R,O;d&&(R=d.a[0],R&&sDe(n,i,l,R,g,y,x,T),h1e(n,l,d.d,g,y,x,T)&&i.Fc(d),O=d.a[1],O&&sDe(n,i,l,O,g,y,x,T))}function e5(n,i,l){try{return gE(Yfe(n,i,l),1)}catch(d){throw d=Da(d),$e(d,333)?_e(new Sl(fge+n.o+"*"+n.p+pge+i+Xo+l+gge)):_e(d)}}function XGt(n,i,l){try{return gE(Yfe(n,i,l),0)}catch(d){throw d=Da(d),$e(d,333)?_e(new Sl(fge+n.o+"*"+n.p+pge+i+Xo+l+gge)):_e(d)}}function QGt(n,i,l){try{return gE(Yfe(n,i,l),2)}catch(d){throw d=Da(d),$e(d,333)?_e(new Sl(fge+n.o+"*"+n.p+pge+i+Xo+l+gge)):_e(d)}}function ZGt(n,i){if(n.g==-1)throw _e(new ih);n.Xj();try{n.d.hd(n.g,i),n.f=n.d.j}catch(l){throw l=Da(l),$e(l,77)?_e(new Jd):_e(l)}}function R_r(n){var i,l,d,g,y;for(d=new me(n.b);d.ay&&Ga(i,y,null),i}function I_r(n,i){var l,d;if(d=n.gc(),i==null){for(l=0;l0&&(R+=g),O[D]=x,x+=T*(R+d)}function eqt(n){var i,l,d;for(d=n.f,n.n=st(ao,_l,28,d,15,1),n.d=st(ao,_l,28,d,15,1),i=0;i0?n.c:0),++g;n.b=d,n.d=y}function aqt(n,i){var l;return l=Te(xe(ao,1),_l,28,15,[tDe(n,(u1(),bc),i),tDe(n,vu,i),tDe(n,yc,i)]),n.f&&(l[0]=u.Math.max(l[0],l[2]),l[2]=l[0]),l}function F_r(n,i,l){var d;try{CJ(n,i+n.j,l+n.k,!1,!0)}catch(g){throw g=Da(g),$e(g,77)?(d=g,_e(new Sl(d.g+jJ+i+Xo+l+")."))):_e(g)}}function $_r(n,i,l){var d;try{CJ(n,i+n.j,l+n.k,!0,!1)}catch(g){throw g=Da(g),$e(g,77)?(d=g,_e(new Sl(d.g+jJ+i+Xo+l+")."))):_e(g)}}function sqt(n){var i;ya(n,(qt(),_x))&&(i=v(oe(n,_x),21),i.Hc((w4(),D0))?(i.Mc(D0),i.Fc(M0)):i.Hc(M0)&&(i.Mc(M0),i.Fc(D0)))}function oqt(n){var i;ya(n,(qt(),_x))&&(i=v(oe(n,_x),21),i.Hc((w4(),B0))?(i.Mc(B0),i.Fc(Qf)):i.Hc(Qf)&&(i.Mc(Qf),i.Fc(B0)))}function l1e(n,i,l,d){var g,y,x,T;return n.a==null&&zxr(n,i),x=i.b.j.c.length,y=l.d.p,T=d.d.p,g=T-1,g<0&&(g=x-1),y<=g?n.a[g]-n.a[y]:n.a[x-1]-n.a[y]+n.a[g]}function U_r(n){var i,l;if(!n.b)for(n.b=RQ(v(n.f,27).kh().i),l=new mr(v(n.f,27).kh());l.e!=l.i.gc();)i=v(wr(l),135),Lt(n.b,new $ue(i));return n.b}function z_r(n){var i,l;if(!n.e)for(n.e=RQ(Ude(v(n.f,27)).i),l=new mr(Ude(v(n.f,27)));l.e!=l.i.gc();)i=v(wr(l),123),Lt(n.e,new ekt(i));return n.e}function lqt(n){var i,l;if(!n.a)for(n.a=RQ(bQ(v(n.f,27)).i),l=new mr(bQ(v(n.f,27)));l.e!=l.i.gc();)i=v(wr(l),27),Lt(n.a,new jhe(n,i));return n.a}function WE(n){var i;if(!n.C&&(n.D!=null||n.B!=null))if(i=k7r(n),i)n.hl(i);else try{n.hl(null)}catch(l){if(l=Da(l),!$e(l,63))throw _e(l)}return n.C}function G_r(n){switch(n.q.g){case 5:Oqt(n,(Bt(),or)),Oqt(n,Mr);break;case 4:DWt(n,(Bt(),or)),DWt(n,Mr);break;default:BHt(n,(Bt(),or)),BHt(n,Mr)}}function q_r(n){switch(n.q.g){case 5:Lqt(n,(Bt(),gr)),Lqt(n,cr);break;case 4:MWt(n,(Bt(),gr)),MWt(n,cr);break;default:FHt(n,(Bt(),gr)),FHt(n,cr)}}function t5(n,i){var l,d,g;for(g=new ho,d=n.Kc();d.Ob();)l=v(d.Pb(),36),hI(l,g.a,0),g.a+=l.f.a+i,g.b=u.Math.max(g.b,l.f.b);return g.b>0&&(g.b+=i),g}function eJ(n,i){var l,d,g;for(g=new ho,d=n.Kc();d.Ob();)l=v(d.Pb(),36),hI(l,0,g.b),g.b+=l.f.b+i,g.a=u.Math.max(g.a,l.f.a);return g.a>0&&(g.a+=i),g}function cqt(n){var i,l,d;for(d=qi,l=new me(n.a);l.a>16==6?n.Cb.Th(n,5,y1,i):(d=sl(v(qn((l=v(rr(n,16),29),l||n.ii()),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function H_r(n){p8();var i=n.e;if(i&&i.stack){var l=i.stack,d=i+` `;return l.substring(0,d.length)==d&&(l=l.substring(d.length)),l.split(` `)}return[]}function V_r(n){var i;return i=(f$t(),Nen),i[n>>>28]|i[n>>24&15]<<4|i[n>>20&15]<<8|i[n>>16&15]<<12|i[n>>12&15]<<16|i[n>>8&15]<<20|i[n>>4&15]<<24|i[n&15]<<28}function dqt(n){var i,l,d;n.b==n.c&&(d=n.a.length,l=U9e(u.Math.max(8,d))<<1,n.b!=0?(i=v0(n.a,l),k$t(n,i,d),n.a=i,n.b=0):$S(n.a,l),n.c=d)}function Y_r(n,i){var l;return l=n.b,l.pf((Ei(),jh))?l.ag()==(Bt(),cr)?-l.Mf().a-We(at(l.of(jh))):i+We(at(l.of(jh))):l.ag()==(Bt(),cr)?-l.Mf().a:i}function rG(n){var i;return n.b.c.length!=0&&v(Yt(n.b,0),72).a?v(Yt(n.b,0),72).a:(i=zde(n),i??""+(n.c?$l(n.c.a,n,0):-1))}function tJ(n){var i;return n.f.c.length!=0&&v(Yt(n.f,0),72).a?v(Yt(n.f,0),72).a:(i=zde(n),i??""+(n.i?$l(n.i.j,n,0):-1))}function j_r(n,i){var l,d;if(i<0||i>=n.gc())return null;for(l=i;l0?n.c:0),g=u.Math.max(g,i.d),++d;n.e=y,n.b=g}function K_r(n){var i,l;if(!n.b)for(n.b=RQ(v(n.f,123).kh().i),l=new mr(v(n.f,123).kh());l.e!=l.i.gc();)i=v(wr(l),135),Lt(n.b,new $ue(i));return n.b}function X_r(n,i){var l,d,g;if(i.dc())return t8(),t8(),SH;for(l=new KNt(n,i.gc()),g=new mr(n);g.e!=g.i.gc();)d=wr(g),i.Hc(d)&&Yr(l,d);return l}function uDe(n,i,l,d){return i==0?d?(!n.o&&(n.o=new uh((Lc(),om),Ay,n,0)),n.o):(!n.o&&(n.o=new uh((Lc(),om),Ay,n,0)),yz(n.o)):YZ(n,i,l,d)}function u1e(n){var i,l;if(n.rb)for(i=0,l=n.rb.i;i>22),g+=d>>22,g<0)?!1:(n.l=l&Hh,n.m=d&Hh,n.h=g&rb,!0)}function h1e(n,i,l,d,g,y,x){var T,R;return!(i.Te()&&(R=n.a.Ne(l,d),R<0||!g&&R==0)||i.Ue()&&(T=n.a.Ne(l,y),T>0||!x&&T==0))}function ewr(n,i){G8();var l;if(l=n.j.g-i.j.g,l!=0)return 0;switch(n.j.g){case 2:return N0e(i,fqe)-N0e(n,fqe);case 4:return N0e(n,dqe)-N0e(i,dqe)}return 0}function twr(n){switch(n.g){case 0:return wye;case 1:return Eye;case 2:return xye;case 3:return Sye;case 4:return Ute;case 5:return Tye;default:return null}}function Rl(n,i,l){var d,g;return d=(g=new Lue,U_(g,i),mu(g,l),Yr((!n.c&&(n.c=new vt(Rx,n,12,10)),n.c),g),g),ny(d,0),c4(d,1),oy(d,!0),sy(d,!0),d}function Vk(n,i){var l,d;if(i>=n.i)throw _e(new Dhe(i,n.i));return++n.j,l=n.g[i],d=n.i-i-1,d>0&&Gc(n.g,i+1,n.g,i,d),Ga(n.g,--n.i,null),n.Qi(i,l),n.Ni(),l}function fqt(n,i){var l,d;return n.Db>>16==17?n.Cb.Th(n,21,Jf,i):(d=sl(v(qn((l=v(rr(n,16),29),l||n.ii()),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function nwr(n){var i,l,d,g;for(Fn(),us(n.c,n.a),g=new me(n.c);g.al.a.c.length))throw _e(new ar("index must be >= 0 and <= layer node count"));n.c&&Yu(n.c.a,n),n.c=l,l&&EE(l.a,i,n)}function yqt(n,i){var l,d,g;for(d=new yr(_r(Qm(n).a.Kc(),new S));zr(d);)return l=v(Rr(d),18),g=v(i.Kb(l),10),new mK(ni(g.n.b+g.o.b/2));return yL(),yL(),lbe}function vqt(n,i){this.c=new Br,this.a=n,this.b=i,this.d=v(oe(n,(At(),B5)),312),Ze(oe(n,(qt(),QHe)))===Ze((Ez(),zte))?this.e=new p6t:this.e=new f6t}function jD(n,i){var l,d;return d=null,n.pf((Ei(),I6))&&(l=v(n.of(I6),96),l.pf(i)&&(d=l.of(i))),d==null&&n.Tf()&&(d=n.Tf().of(i)),d==null&&(d=zt(i)),d}function d1e(n,i){var l,d;l=n.fd(i);try{return d=l.Pb(),l.Qb(),d}catch(g){throw g=Da(g),$e(g,112)?_e(new Sl("Can't remove element "+i)):_e(g)}}function uwr(n,i){var l,d,g;if(d=new UK,g=new q9e(d.q.getFullYear()-Jv,d.q.getMonth(),d.q.getDate()),l=wkr(n,i,g),l==0||l0?i:0),++l;return new Ct(d,g)}function gDe(n,i){var l,d;return n.Db>>16==6?n.Cb.Th(n,6,ss,i):(d=sl(v(qn((l=v(rr(n,16),29),l||(Lc(),ire)),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function mDe(n,i){var l,d;return n.Db>>16==7?n.Cb.Th(n,1,vH,i):(d=sl(v(qn((l=v(rr(n,16),29),l||(Lc(),yKe)),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function bDe(n,i){var l,d;return n.Db>>16==9?n.Cb.Th(n,9,Pi,i):(d=sl(v(qn((l=v(rr(n,16),29),l||(Lc(),_Ke)),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function Eqt(n,i){var l,d;return n.Db>>16==5?n.Cb.Th(n,9,fre,i):(d=sl(v(qn((l=v(rr(n,16),29),l||(Pn(),Ry)),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function xqt(n,i){var l,d;return n.Db>>16==7?n.Cb.Th(n,6,y1,i):(d=sl(v(qn((l=v(rr(n,16),29),l||(Pn(),Ny)),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function yDe(n,i){var l,d;return n.Db>>16==3?n.Cb.Th(n,0,wH,i):(d=sl(v(qn((l=v(rr(n,16),29),l||(Pn(),ky)),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function Sqt(){this.a=new RSt,this.g=new QZ,this.j=new QZ,this.b=new Br,this.d=new QZ,this.i=new QZ,this.k=new Br,this.c=new Br,this.e=new Br,this.f=new Br}function fwr(n,i,l){var d,g,y;for(l<0&&(l=0),y=n.i,g=l;gQpe)return tI(n,d);if(d==n)return!0}}return!1}function gwr(n){switch(IX(),n.q.g){case 5:sVt(n,(Bt(),or)),sVt(n,Mr);break;case 4:oYt(n,(Bt(),or)),oYt(n,Mr);break;default:uKt(n,(Bt(),or)),uKt(n,Mr)}}function mwr(n){switch(IX(),n.q.g){case 5:TVt(n,(Bt(),gr)),TVt(n,cr);break;case 4:IGt(n,(Bt(),gr)),IGt(n,cr);break;default:hKt(n,(Bt(),gr)),hKt(n,cr)}}function bwr(n){var i,l;i=v(oe(n,(A0(),mnn)),17),i?(l=i.a,l==0?_t(n,(Uv(),dte),new M0e):_t(n,(Uv(),dte),new LQ(l))):_t(n,(Uv(),dte),new LQ(1))}function ywr(n,i){var l;switch(l=n.i,i.g){case 1:return-(n.n.b+n.o.b);case 2:return n.n.a-l.o.a;case 3:return n.n.b-l.o.b;case 4:return-(n.n.a+n.o.a)}return 0}function vwr(n,i){switch(n.g){case 0:return i==(pf(),u2)?Ote:Lte;case 1:return i==(pf(),u2)?Ote:Aq;case 2:return i==(pf(),u2)?Aq:Lte;default:return Aq}}function aG(n,i){var l,d,g;for(Yu(n.a,i),n.e-=i.r+(n.a.c.length==0?0:n.c),g=C$e,d=new me(n.a);d.a>16==3?n.Cb.Th(n,12,Pi,i):(d=sl(v(qn((l=v(rr(n,16),29),l||(Lc(),bKe)),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function _De(n,i){var l,d;return n.Db>>16==11?n.Cb.Th(n,10,Pi,i):(d=sl(v(qn((l=v(rr(n,16),29),l||(Lc(),vKe)),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function Tqt(n,i){var l,d;return n.Db>>16==10?n.Cb.Th(n,11,Jf,i):(d=sl(v(qn((l=v(rr(n,16),29),l||(Pn(),Iy)),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function Cqt(n,i){var l,d;return n.Db>>16==10?n.Cb.Th(n,12,e0,i):(d=sl(v(qn((l=v(rr(n,16),29),l||(Pn(),f3)),n.Db>>16),19)),n.Cb.Th(n,d.n,d.f,i))}function Gf(n){var i;return!(n.Bb&1)&&n.r&&n.r.Vh()&&(i=v(n.r,54),n.r=v(Hv(n,i),142),n.r!=i&&n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,9,8,i,n.r))),n.r}function f1e(n,i,l){var d;return d=Te(xe(ao,1),_l,28,15,[YDe(n,(u1(),bc),i,l),YDe(n,vu,i,l),YDe(n,yc,i,l)]),n.f&&(d[0]=u.Math.max(d[0],d[2]),d[2]=d[0]),d}function _wr(n,i){var l,d,g;if(g=H2r(n,i),g.c.length!=0)for(us(g,new Vvt),l=g.c.length,d=0;d>19,O=i.h>>19,R!=O?O-R:(g=n.h,T=i.h,g!=T?g-T:(d=n.m,x=i.m,d!=x?d-x:(l=n.l,y=i.l,l-y)))}function nJ(){nJ=z,Pze=(SJ(),Nbe),Mze=new En(_Be,Pze),Dze=(KQ(),Ibe),Lze=new En(wBe,Dze),Oze=(GZ(),Rbe),Nze=new En(EBe,Oze),Ize=new En(xBe,(Qn(),!0))}function WD(n,i,l){var d,g;d=i*l,$e(n.g,154)?(g=Nk(n),g.f.d?g.f.a||(n.d.a+=d+ep):(n.d.d-=d+ep,n.d.a+=d+ep)):$e(n.g,10)&&(n.d.d-=d,n.d.a+=2*d)}function Aqt(n,i,l){var d,g,y,x,T;for(g=n[l.g],T=new me(i.d);T.a0?n.b:0),++l;i.b=d,i.e=g}function kqt(n){var i,l,d;if(d=n.b,vRt(n.i,d.length)){for(l=d.length*2,n.b=st(dbe,PG,303,l,0,1),n.c=st(dbe,PG,303,l,0,1),n.f=l-1,n.i=0,i=n.a;i;i=i.c)pG(n,i,i);++n.g}}function Awr(n,i,l,d){var g,y,x,T;for(g=0;gx&&(T=x/d),g>y&&(R=y/g),Vp(n,u.Math.min(T,R)),n}function Rwr(){IJ();var n,i;try{if(i=v(NDe((Rv(),t0),$I),2113),i)return i}catch(l){if(l=Da(l),$e(l,103))n=l,_Ne((ii(),n));else throw _e(l)}return new TSt}function Iwr(){IJ();var n,i;try{if(i=v(NDe((Rv(),t0),Yf),2040),i)return i}catch(l){if(l=Da(l),$e(l,103))n=l,_Ne((ii(),n));else throw _e(l)}return new QSt}function Nwr(){FBt();var n,i;try{if(i=v(NDe((Rv(),t0),nw),2122),i)return i}catch(l){if(l=Da(l),$e(l,103))n=l,_Ne((ii(),n));else throw _e(l)}return new H4t}function Owr(n,i,l){var d,g;return g=n.e,n.e=i,n.Db&4&&!(n.Db&1)&&(d=new js(n,1,4,g,i),l?l.nj(d):l=d),g!=i&&(i?l=bI(n,gJ(n,i),l):l=bI(n,n.a,l)),l}function Rqt(){UK.call(this),this.e=-1,this.a=!1,this.p=Po,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=Po}function Lwr(n,i){var l,d,g;if(d=n.b.d.d,n.a||(d+=n.b.d.a),g=i.b.d.d,i.a||(g+=i.b.d.a),l=ha(d,g),l==0){if(!n.a&&i.a)return-1;if(!i.a&&n.a)return 1}return l}function Dwr(n,i){var l,d,g;if(d=n.b.b.d,n.a||(d+=n.b.b.a),g=i.b.b.d,i.a||(g+=i.b.b.a),l=ha(d,g),l==0){if(!n.a&&i.a)return-1;if(!i.a&&n.a)return 1}return l}function Mwr(n,i){var l,d,g;if(d=n.b.g.d,n.a||(d+=n.b.g.a),g=i.b.g.d,i.a||(g+=i.b.g.a),l=ha(d,g),l==0){if(!n.a&&i.a)return-1;if(!i.a&&n.a)return 1}return l}function EDe(){EDe=z,Dnn=ch(yi(yi(yi(new ms,(Mo(),ru),(qo(),ZGe)),ru,JGe),Gl,eqe),Gl,zGe),Pnn=yi(yi(new ms,ru,DGe),ru,GGe),Mnn=ch(new ms,Gl,HGe)}function Pwr(n){var i,l,d,g,y;for(i=v(oe(n,(At(),sP)),85),y=n.n,d=i.Cc().Kc();d.Ob();)l=v(d.Pb(),314),g=l.i,g.c+=y.a,g.d+=y.b,l.c?WYt(l):KYt(l);_t(n,sP,null)}function Bwr(n,i,l){var d,g;switch(g=n.b,d=g.d,i.g){case 1:return-d.d-l;case 2:return g.o.a+d.c+l;case 3:return g.o.b+d.a+l;case 4:return-d.b-l;default:return-1}}function Fwr(n,i,l){var d,g;for(l.Ug("Interactive node placement",1),n.a=v(oe(i,(At(),B5)),312),g=new me(i.b);g.a0&&(x=(y&qi)%n.d.length,g=TMe(n,x,y,i),g)?(T=g.nd(l),T):(d=n.ck(y,i,l),n.c.Fc(d),null)}function TDe(n,i){var l,d,g,y;switch(ay(n,i).Kl()){case 3:case 2:{for(l=u5(i),g=0,y=l.i;g=0;d--)if(An(n[d].d,i)||An(n[d].d,l)){n.length>=d+1&&n.splice(0,d+1);break}return n}function oG(n,i){var l;return jl(n)&&jl(i)&&(l=n/i,$G0&&(n.b+=2,n.a+=d):(n.b+=1,n.a+=u.Math.min(d,g))}function Pqt(n){var i;i=v(oe(v(gf(n.b,0),40),(pc(),vYe)),107),_t(n,(fa(),gN),new Ct(0,0)),Ajt(new mz,n,i.b+i.c-We(at(oe(n,Cve))),i.d+i.a-We(at(oe(n,Ave))))}function Bqt(n,i){var l,d;if(d=!1,ro(i)&&(d=!0,Tk(n,new JS(ai(i)))),d||$e(i,242)&&(d=!0,Tk(n,(l=vIe(v(i,242)),new bK(l)))),!d)throw _e(new zue(EUe))}function tEr(n,i,l,d){var g,y,x;return g=new Vm(n.e,1,10,(x=i.c,$e(x,90)?v(x,29):(Pn(),n0)),(y=l.c,$e(y,90)?v(y,29):(Pn(),n0)),uy(n,i),!1),d?d.nj(g):d=g,d}function kDe(n){var i,l;switch(v(oe(So(n),(qt(),HHe)),429).g){case 0:return i=n.n,l=n.o,new Ct(i.a+l.a/2,i.b+l.b/2);case 1:return new Wo(n.n);default:return null}}function lG(){lG=z,Gte=new PL(og,0),Rqe=new PL("LEFTUP",1),Nqe=new PL("RIGHTUP",2),kqe=new PL("LEFTDOWN",3),Iqe=new PL("RIGHTDOWN",4),Cye=new PL("BALANCED",5)}function nEr(n,i,l){var d,g,y;if(d=ha(n.a[i.p],n.a[l.p]),d==0){if(g=v(oe(i,(At(),w6)),15),y=v(oe(l,w6),15),g.Hc(l))return-1;if(y.Hc(i))return 1}return d}function rEr(n){switch(n.g){case 1:return new sxt;case 2:return new oxt;case 3:return new axt;case 0:return null;default:throw _e(new ar(fme+(n.f!=null?n.f:""+n.g)))}}function RDe(n,i,l){switch(i){case 1:!n.n&&(n.n=new vt(wl,n,1,7)),Gr(n.n),!n.n&&(n.n=new vt(wl,n,1,7)),Ka(n.n,v(l,16));return;case 2:I8(n,ai(l));return}K9e(n,i,l)}function IDe(n,i,l){switch(i){case 3:BE(n,We(at(l)));return;case 4:FE(n,We(at(l)));return;case 5:Au(n,We(at(l)));return;case 6:ku(n,We(at(l)));return}RDe(n,i,l)}function rJ(n,i,l){var d,g,y;y=(d=new Lue,d),g=Q1(y,i,null),g&&g.oj(),mu(y,l),Yr((!n.c&&(n.c=new vt(Rx,n,12,10)),n.c),y),ny(y,0),c4(y,1),oy(y,!0),sy(y,!0)}function NDe(n,i){var l,d,g;return l=NL(n.i,i),$e(l,241)?(g=v(l,241),g.zi()==null,g.wi()):$e(l,507)?(d=v(l,2037),g=d.b,g):null}function iEr(n,i,l,d){var g,y;return ni(i),ni(l),y=v(eD(n.d,i),17),uFt(!!y,"Row %s not in %s",i,n.e),g=v(eD(n.b,l),17),uFt(!!g,"Column %s not in %s",l,n.c),wUt(n,y.a,g.a,d)}function Fqt(n,i,l,d,g,y,x){var T,R,O,D,q;if(D=g[y],O=y==x-1,T=O?d:0,q=rqt(T,D),d!=10&&Te(xe(n,x-y),i[y],l[y],T,q),!O)for(++y,R=0;R1||T==-1?(y=v(R,15),g.Wb(zvr(n,y))):g.Wb(Z1e(n,v(R,58)))))}function hEr(n,i,l,d){W7t();var g=obe;function y(){for(var x=0;x0)return!1;return!0}function pEr(n){var i,l,d,g,y;for(d=new P_(new b_(n.b).a);d.b;)l=zE(d),i=v(l.ld(),10),y=v(v(l.md(),42).a,10),g=v(v(l.md(),42).b,8),Hi(i1(i.n),Hi(Eo(y.n),g))}function gEr(n){switch(v(oe(n.b,(qt(),BHe)),387).g){case 1:ts(Bl(ic(new xn(null,new Nn(n.d,16)),new B_t),new F_t),new $_t);break;case 2:uCr(n);break;case 0:GSr(n)}}function mEr(n,i,l){var d,g,y;for(d=l,!d&&(d=new tk),d.Ug("Layout",n.a.c.length),y=new me(n.a);y.acme)return l;g>-1e-6&&++l}return l}function LDe(n,i){var l;i!=n.b?(l=null,n.b&&(l=wQ(n.b,n,-4,l)),i&&(l=Hk(i,n,-4,l)),l=pzt(n,i,l),l&&l.oj()):n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,3,i,i))}function zqt(n,i){var l;i!=n.f?(l=null,n.f&&(l=wQ(n.f,n,-1,l)),i&&(l=Hk(i,n,-1,l)),l=fzt(n,i,l),l&&l.oj()):n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,0,i,i))}function _Er(n,i,l,d){var g,y,x,T;return id(n.e)&&(g=i.Lk(),T=i.md(),y=l.md(),x=Bv(n,1,g,T,y,g.Jk()?pI(n,g,y,$e(g,102)&&(v(g,19).Bb&el)!=0):-1,!0),d?d.nj(x):d=x),d}function Gqt(n){var i,l,d;if(n==null)return null;if(l=v(n,15),l.dc())return"";for(d=new qb,i=l.Kc();i.Ob();)bl(d,(ca(),ai(i.Pb()))),d.a+=" ";return Phe(d,d.a.length-1)}function qqt(n){var i,l,d;if(n==null)return null;if(l=v(n,15),l.dc())return"";for(d=new qb,i=l.Kc();i.Ob();)bl(d,(ca(),ai(i.Pb()))),d.a+=" ";return Phe(d,d.a.length-1)}function wEr(n,i,l){var d,g;return d=n.c[i.c.p][i.p],g=n.c[l.c.p][l.p],d.a!=null&&g.a!=null?Sde(d.a,g.a):d.a!=null?-1:g.a!=null?1:0}function EEr(n,i,l){return l.Ug("Tree layout",1),nz(n.b),a1(n.b,(Yk(),xne),xne),a1(n.b,xP,xP),a1(n.b,SP,SP),a1(n.b,TP,TP),n.a=kG(n.b,i),mEr(n,i,l.eh(1)),l.Vg(),i}function xEr(n,i){var l,d,g,y,x,T;if(i)for(y=i.a.length,l=new S_(y),T=(l.b-l.a)*l.c<0?(Iv(),T2):new Lv(l);T.Ob();)x=v(T.Pb(),17),g=m8(i,x.a),d=new ukt(n),Ndr(d.a,g)}function SEr(n,i){var l,d,g,y,x,T;if(i)for(y=i.a.length,l=new S_(y),T=(l.b-l.a)*l.c<0?(Iv(),T2):new Lv(l);T.Ob();)x=v(T.Pb(),17),g=m8(i,x.a),d=new tkt(n),Idr(d.a,g)}function TEr(n){var i;if(n!=null&&n.length>0&&Do(n,n.length-1)==33)try{return i=QVt(af(n,0,n.length-1)),i.e==null}catch(l){if(l=Da(l),!$e(l,33))throw _e(l)}return!1}function CEr(n,i,l){var d,g,y;switch(d=So(i),g=IZ(d),y=new zc,rc(y,i),l.g){case 1:Bs(y,Xz(zk(g)));break;case 2:Bs(y,zk(g))}return _t(y,(qt(),X4),at(oe(n,X4))),y}function DDe(n){var i,l;return i=v(Rr(new yr(_r(Hs(n.a).a.Kc(),new S))),18),l=v(Rr(new yr(_r(os(n.a).a.Kc(),new S))),18),Vt(Ht(oe(i,(At(),ap))))||Vt(Ht(oe(l,ap)))}function b4(){b4=z,kq=new EU("ONE_SIDE",0),Pte=new EU("TWO_SIDES_CORNER",1),Bte=new EU("TWO_SIDES_OPPOSING",2),Mte=new EU("THREE_SIDES",3),Dte=new EU("FOUR_SIDES",4)}function Hqt(n,i){var l,d,g,y;for(y=new Ot,g=0,d=i.Kc();d.Ob();){for(l=Nt(v(d.Pb(),17).a+g);l.a=n.f)break;jn(y.c,l)}return y}function AEr(n,i){var l,d,g,y,x;for(y=new me(i.a);y.a0&&pqt(this,this.c-1,(Bt(),gr)),this.c0&&n[0].length>0&&(this.c=Vt(Ht(oe(So(n[0][0]),(At(),Yqe))))),this.a=st(Fsn,kt,2117,n.length,0,2),this.b=st($sn,kt,2118,n.length,0,2),this.d=new lzt}function OEr(n){return n.c.length==0?!1:($n(0,n.c.length),v(n.c[0],18)).c.i.k==(lr(),Ws)?!0:VT(Bl(new xn(null,new Nn(n,16)),new ywt),new vwt)}function jqt(n,i){var l,d,g,y,x,T,R;for(T=E4(i),y=i.f,R=i.g,x=u.Math.sqrt(y*y+R*R),g=0,d=new me(T);d.a=0?(l=oG(n,zJ),d=Zz(n,zJ)):(i=Dv(n,1),l=oG(i,5e8),d=Zz(i,5e8),d=zo(w0(d,1),Us(n,1))),s1(w0(d,32),Us(l,ul))}function Xqt(n,i,l){var d,g;switch(d=(Tr(i.b!=0),v(cf(i,i.a.a),8)),l.g){case 0:d.b=0;break;case 2:d.b=n.f;break;case 3:d.a=0;break;default:d.a=n.g}return g=Ur(i,0),tz(g,d),i}function Qqt(n,i,l,d){var g,y,x,T,R;switch(R=n.b,y=i.d,x=y.j,T=QLe(x,R.d[x.g],l),g=Hi(Eo(y.n),y.a),y.j.g){case 1:case 3:T.a+=g.a;break;case 2:case 4:T.b+=g.b}qa(d,T,d.c.b,d.c)}function HEr(n,i,l){var d,g,y,x;for(x=$l(n.e,i,0),y=new U7e,y.b=l,d=new go(n.e,x);d.b1;i>>=1)i&1&&(d=HT(d,l)),l.d==1?l=HT(l,l):l=new fGt(Ljt(l.a,l.d,st(Wr,vi,28,l.d<<1,15,1)));return d=HT(d,l),d}function qDe(){qDe=z;var n,i,l,d;for(Eze=st(ao,_l,28,25,15,1),xze=st(ao,_l,28,33,15,1),d=152587890625e-16,i=32;i>=0;i--)xze[i]=d,d*=.5;for(l=1,n=24;n>=0;n--)Eze[n]=l,l*=.5}function XEr(n){var i,l;if(Vt(Ht(Et(n,(qt(),K4))))){for(l=new yr(_r(eb(n).a.Kc(),new S));zr(l);)if(i=v(Rr(l),74),KE(i)&&Vt(Ht(Et(i,lw))))return!0}return!1}function Zqt(n,i){var l,d,g;Es(n.f,i)&&(i.b=n,d=i.c,$l(n.j,d,0)!=-1||Lt(n.j,d),g=i.d,$l(n.j,g,0)!=-1||Lt(n.j,g),l=i.a.b,l.c.length!=0&&(!n.i&&(n.i=new vGt(n)),tbr(n.i,l)))}function QEr(n){var i,l,d,g,y;return l=n.c.d,d=l.j,g=n.d.d,y=g.j,d==y?l.p=0&&An(n.substr(i,3),"GMT")||i>=0&&An(n.substr(i,3),"UTC"))&&(l[0]=i+3),EPe(n,l,d)}function JEr(n,i){var l,d,g,y,x;for(y=n.g.a,x=n.g.b,d=new me(n.d);d.al;y--)n[y]|=i[y-l-1]>>>x,n[y-1]=i[y-l-1]<0&&Gc(n.g,i,n.g,i+d,T),x=l.Kc(),n.i+=d,g=0;g>4&15,y=n[d]&15,x[g++]=wKe[l],x[g++]=wKe[y];return Qp(x,0,x.length)}function Wu(n){var i,l;return n>=el?(i=UG+(n-el>>10&1023)&vs,l=56320+(n-el&1023)&vs,String.fromCharCode(i)+(""+String.fromCharCode(l))):String.fromCharCode(n&vs)}function uxr(n,i){WS();var l,d,g,y;return g=v(v(Zi(n.r,i),21),87),g.gc()>=2?(d=v(g.Kc().Pb(),117),l=n.u.Hc((Ah(),jP)),y=n.u.Hc(L6),!d.a&&!l&&(g.gc()==2||y)):!1}function tHt(n,i,l,d,g){var y,x,T;for(y=UYt(n,i,l,d,g),T=!1;!y;)fJ(n,g,!0),T=!0,y=UYt(n,i,l,d,g);T&&fJ(n,g,!1),x=s0e(g),x.c.length!=0&&(n.d&&n.d.Gg(x),tHt(n,g,l,d,x))}function oJ(){oJ=z,M2e=new UL(og,0),VWe=new UL("DIRECTED",1),jWe=new UL("UNDIRECTED",2),qWe=new UL("ASSOCIATION",3),YWe=new UL("GENERALIZATION",4),HWe=new UL("DEPENDENCY",5)}function hxr(n,i){var l;if(!z1(n))throw _e(new Tl(bZt));switch(l=z1(n),i.g){case 1:return-(n.j+n.f);case 2:return n.i-l.g;case 3:return n.j-l.f;case 4:return-(n.i+n.g)}return 0}function dxr(n,i,l){var d,g,y;return d=i.Lk(),y=i.md(),g=d.Jk()?Bv(n,4,d,y,null,pI(n,d,y,$e(d,102)&&(v(d,19).Bb&el)!=0),!0):Bv(n,d.tk()?2:1,d,y,d.ik(),-1,!0),l?l.nj(g):l=g,l}function iI(n,i){var l,d;for(hr(i),d=n.b.c.length,Lt(n.b,i);d>0;){if(l=d,d=(d-1)/2|0,n.a.Ne(Yt(n.b,d),i)<=0)return of(n.b,l,i),!0;of(n.b,l,Yt(n.b,d))}return of(n.b,d,i),!0}function YDe(n,i,l,d){var g,y;if(g=0,l)g=TZ(n.a[l.g][i.g],d);else for(y=0;y=T)}function nHt(n){switch(n.g){case 0:return new wxt;case 1:return new Ext;default:throw _e(new ar("No implementation is available for the width approximator "+(n.f!=null?n.f:""+n.g)))}}function jDe(n,i,l,d){var g;if(g=!1,ro(d)&&(g=!0,a8(i,l,ai(d))),g||HS(d)&&(g=!0,jDe(n,i,l,d)),g||$e(d,242)&&(g=!0,k_(i,l,v(d,242))),!g)throw _e(new zue(EUe))}function pxr(n,i){var l,d,g;if(l=i.qi(n.a),l&&(g=h1((!l.b&&(l.b=new sd((Pn(),nl),_c,l)),l.b),Vf),g!=null)){for(d=1;d<(dh(),VKe).length;++d)if(An(VKe[d],g))return d}return 0}function gxr(n,i){var l,d,g;if(l=i.qi(n.a),l&&(g=h1((!l.b&&(l.b=new sd((Pn(),nl),_c,l)),l.b),Vf),g!=null)){for(d=1;d<(dh(),YKe).length;++d)if(An(YKe[d],g))return d}return 0}function rHt(n,i){var l,d,g,y;if(hr(i),y=n.a.gc(),y0?1:0;y.a[g]!=l;)y=y.a[g],g=n.a.Ne(l.d,y.d)>0?1:0;y.a[g]=d,d.b=l.b,d.a[0]=l.a[0],d.a[1]=l.a[1],l.a[0]=null,l.a[1]=null}function yxr(n){var i,l,d,g;for(i=new Ot,l=st(Wh,Qg,28,n.a.c.length,16,1),gNe(l,l.length),g=new me(n.a);g.a0&&Rjt(($n(0,l.c.length),v(l.c[0],30)),n),l.c.length>1&&Rjt(v(Yt(l,l.c.length-1),30),n),i.Vg()}function _xr(n){Ah();var i,l;return i=va(ub,Te(xe(Qne,1),wt,279,0,[v2])),!(Dz(xQ(i,n))>1||(l=va(jP,Te(xe(Qne,1),wt,279,0,[YP,L6])),Dz(xQ(l,n))>1))}function KDe(n,i){var l;l=Qc((Rv(),t0),n),$e(l,507)?Cl(t0,n,new K8t(this,i)):Cl(t0,n,this),S1e(this,i),i==(HR(),LKe)?(this.wb=v(this,2038),v(i,2040)):this.wb=(Mv(),Zn)}function wxr(n){var i,l,d;if(n==null)return null;for(i=null,l=0;l=py?"error":d>=900?"warn":d>=800?"info":"log"),mLt(l,n.a),n.b&&QMe(i,l,n.b,"Exception: ",!0))}function oe(n,i){var l,d;return d=(!n.q&&(n.q=new Br),br(n.q,i)),d??(l=i.Sg(),$e(l,4)&&(l==null?(!n.q&&(n.q=new Br),Lk(n.q,i)):(!n.q&&(n.q=new Br),Ni(n.q,i,l))),l)}function Mo(){Mo=z,N0=new wU("P1_CYCLE_BREAKING",0),em=new wU("P2_LAYERING",1),qc=new wU("P3_NODE_ORDERING",2),ru=new wU("P4_NODE_PLACEMENT",3),Gl=new wU("P5_EDGE_ROUTING",4)}function Exr(n,i){ED();var l;if(n.c==i.c){if(n.b==i.b||Rmr(n.b,i.b)){if(l=Jar(n.b)?1:-1,n.a&&!i.a)return l;if(!n.a&&i.a)return-l}return Nc(n.b.g,i.b.g)}else return ha(n.c,i.c)}function lHt(n,i){var l,d,g;if(QDe(n,i))return!0;for(d=new me(i);d.a=g||i<0)throw _e(new Sl(zme+i+ew+g));if(l>=g||l<0)throw _e(new Sl(Gme+l+ew+g));return i!=l?d=(y=n.Cj(l),n.qj(i,y),y):d=n.xj(l),d}function hHt(n){var i,l,d;if(d=n,n)for(i=0,l=n.Eh();l;l=l.Eh()){if(++i>Qpe)return hHt(l);if(d=l,l==n)throw _e(new Tl("There is a cycle in the containment hierarchy of "+n))}return d}function Wv(n){var i,l,d;for(d=new B_(Xo,"[","]"),l=n.Kc();l.Ob();)i=l.Pb(),Hm(d,Ze(i)===Ze(n)?"(this Collection)":i==null?Ku:Kl(i));return d.a?d.e.length==0?d.a.a:d.a.a+(""+d.e):d.c}function QDe(n,i){var l,d;if(d=!1,i.gc()<2)return!1;for(l=0;l1&&(n.j.b+=n.e)):(n.j.a+=l.a,n.j.b=u.Math.max(n.j.b,l.b),n.d.c.length>1&&(n.j.a+=n.e))}function Kv(){Kv=z,Ern=Te(xe(tl,1),Dc,64,0,[(Bt(),or),gr,Mr]),wrn=Te(xe(tl,1),Dc,64,0,[gr,Mr,cr]),xrn=Te(xe(tl,1),Dc,64,0,[Mr,cr,or]),Srn=Te(xe(tl,1),Dc,64,0,[cr,or,gr])}function Sxr(n,i,l,d){var g,y,x,T,R,O,D;if(x=n.c.d,T=n.d.d,x.j!=T.j)for(D=n.b,g=x.j,R=null;g!=T.j;)R=i==0?RZ(g):bLe(g),y=QLe(g,D.d[g.g],l),O=QLe(R,D.d[R.g],l),pi(d,Hi(y,O)),g=R}function Txr(n,i,l,d){var g,y,x,T,R;return x=gqt(n.a,i,l),T=v(x.a,17).a,y=v(x.b,17).a,d&&(R=v(oe(i,(At(),kh)),10),g=v(oe(l,kh),10),R&&g&&(nPt(n.b,R,g),T+=n.b.i,y+=n.b.e)),T>y}function fHt(n){var i,l,d,g,y,x,T,R,O;for(this.a=PGt(n),this.b=new Ot,l=n,d=0,g=l.length;dJhe(n.d).c?(n.i+=n.g.c,$0e(n.d)):Jhe(n.d).c>Jhe(n.g).c?(n.e+=n.d.c,$0e(n.g)):(n.i+=S9t(n.g),n.e+=S9t(n.d),$0e(n.g),$0e(n.d))}function Rxr(n,i,l){var d,g,y,x;for(y=i.q,x=i.r,new R_((o1(),d2),i,y,1),new R_(d2,y,x,1),g=new me(l);g.aT&&(R=T/d),g>y&&(O=y/g),x=u.Math.min(R,O),n.a+=x*(i.a-n.a),n.b+=x*(i.b-n.b)}function Lxr(n,i,l,d,g){var y,x;for(x=!1,y=v(Yt(l.b,0),27);lkr(n,i,y,d,g)&&(x=!0,cEr(l,y),l.b.c.length!=0);)y=v(Yt(l.b,0),27);return l.b.c.length==0&&aG(l.j,l),x&&JZ(i.q),x}function Dxr(n,i){l5();var l,d,g,y;if(i.b<2)return!1;for(y=Ur(i,0),l=v(Fr(y),8),d=l;y.b!=y.d.c;){if(g=v(Fr(y),8),U1e(n,d,g))return!0;d=g}return!!U1e(n,d,l)}function JDe(n,i,l,d){var g,y;return l==0?(!n.o&&(n.o=new uh((Lc(),om),Ay,n,0)),DX(n.o,i,d)):(y=v(qn((g=v(rr(n,16),29),g||n.ii()),l),69),y.wk().Ak(n,Ru(n),l-kr(n.ii()),i,d))}function S1e(n,i){var l;i!=n.sb?(l=null,n.sb&&(l=v(n.sb,54).Th(n,1,XP,l)),i&&(l=v(i,54).Rh(n,1,XP,l)),l=hLe(n,i,l),l&&l.oj()):n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,4,i,i))}function Mxr(n,i){var l,d,g,y;if(i)g=Wm(i,"x"),l=new okt(n),S8(l.a,(hr(g),g)),y=Wm(i,"y"),d=new lkt(n),C8(d.a,(hr(y),y));else throw _e(new zp("All edge sections need an end point."))}function Pxr(n,i){var l,d,g,y;if(i)g=Wm(i,"x"),l=new ikt(n),T8(l.a,(hr(g),g)),y=Wm(i,"y"),d=new akt(n),A8(d.a,(hr(y),y));else throw _e(new zp("All edge sections need a start point."))}function Bxr(n,i){var l,d,g,y,x,T,R;for(d=qUt(n),y=0,T=d.length;y>22-i,g=n.h<>22-i):i<44?(l=0,d=n.l<>44-i):(l=0,d=0,g=n.l<n)throw _e(new ar("k must be smaller than n"));return i==0||i==n?1:n==0?0:CDe(n)/(CDe(i)*CDe(n-i))}function eMe(n,i){var l,d,g,y;for(l=new m8e(n);l.g==null&&!l.c?WNe(l):l.g==null||l.i!=0&&v(l.g[l.i-1],51).Ob();)if(y=v(pJ(l),58),$e(y,167))for(d=v(y,167),g=0;g>4],i[l*2+1]=yre[y&15];return Qp(i,0,i.length)}function Jxr(n){hQ();var i,l,d;switch(d=n.c.length,d){case 0:return _en;case 1:return i=v(eVt(new me(n)),44),Yur(i.ld(),i.md());default:return l=v(X1(n,st(rw,$J,44,n.c.length,0,1)),173),new J7e(l)}}function eSr(n){var i,l,d,g,y,x;for(i=new FT,l=new FT,Fv(i,n),Fv(l,n);l.b!=l.c;)for(g=v(xk(l),36),x=new me(g.a);x.a0&&EG(n,l,i),g):G4r(n,i,l)}function Xv(){Xv=z,Tln=(Ei(),R6),Cln=bw,wln=mw,Eln=tC,xln=g2,_ln=eC,$Ye=oH,Sln=a3,Gve=(pPe(),cln),qve=uln,zYe=pln,Hve=bln,GYe=gln,qYe=mln,UYe=hln,Nne=dln,One=fln,Kq=yln,HYe=vln,FYe=lln}function wHt(n,i){var l,d,g,y,x;if(n.e<=i||S0r(n,n.g,i))return n.g;for(y=n.r,d=n.g,x=n.r,g=(y-d)/2+d;d+11&&(n.e.b+=n.a)):(n.e.a+=l.a,n.e.b=u.Math.max(n.e.b,l.b),n.d.c.length>1&&(n.e.a+=n.a))}function aSr(n){var i,l,d,g;switch(g=n.i,i=g.b,d=g.j,l=g.g,g.a.g){case 0:l.a=(n.g.b.o.a-d.a)/2;break;case 1:l.a=i.d.n.a+i.d.a.a;break;case 2:l.a=i.d.n.a+i.d.a.a-d.a;break;case 3:l.b=i.d.n.b+i.d.a.b}}function sSr(n,i,l){var d,g,y;for(g=new yr(_r(Qm(l).a.Kc(),new S));zr(g);)d=v(Rr(g),18),!Jo(d)&&!(!Jo(d)&&d.c.i.c==d.d.i.c)&&(y=hYt(n,d,l,new g6t),y.c.length>1&&jn(i.c,y))}function xHt(n,i,l,d,g){if(dd&&(n.a=d),n.bg&&(n.b=g),n}function oSr(n){if($e(n,143))return FTr(v(n,143));if($e(n,233))return kvr(v(n,233));if($e(n,23))return $xr(v(n,23));throw _e(new ar(xUe+Wv(new wh(Te(xe(zs,1),Yn,1,5,[n])))))}function lSr(n,i,l,d,g){var y,x,T;for(y=!0,x=0;x>>g|l[x+d+1]<>>g,++x}return y}function iMe(n,i,l,d){var g,y,x;if(i.k==(lr(),Ws)){for(y=new yr(_r(Hs(i).a.Kc(),new S));zr(y);)if(g=v(Rr(y),18),x=g.c.i.k,x==Ws&&n.c.a[g.c.i.c.p]==d&&n.c.a[i.c.p]==l)return!0}return!1}function cSr(n,i){var l,d,g,y;return i&=63,l=n.h&rb,i<22?(y=l>>>i,g=n.m>>i|l<<22-i,d=n.l>>i|n.m<<22-i):i<44?(y=0,g=l>>>i-22,d=n.m>>i-22|n.h<<44-i):(y=0,g=0,d=l>>>i-44),Su(d&Hh,g&Hh,y&rb)}function SHt(n,i,l,d){var g;this.b=d,this.e=n==($E(),_P),g=i[l],this.d=E_(Wh,[kt,Qg],[183,28],16,[g.length,g.length],2),this.a=E_(Wr,[kt,vi],[53,28],15,[g.length,g.length],2),this.c=new $De(i,l)}function uSr(n){var i,l,d;for(n.k=new QNe((Bt(),Te(xe(tl,1),Dc,64,0,[lc,or,gr,Mr,cr])).length,n.j.c.length),d=new me(n.j);d.a=l)return sI(n,i,d.p),!0;return!1}function i5(n,i,l,d){var g,y,x,T,R,O;for(x=l.length,y=0,g=-1,O=bFt((sr(i,n.length+1),n.substr(i)),(ide(),_ze)),T=0;Ty&&Bhr(O,bFt(l[T],_ze))&&(g=T,y=R);return g>=0&&(d[0]=i+y),g}function CHt(n){var i;return n.Db&64?T1e(n):(i=new Ed(dUe),!n.a||bi(bi((i.a+=' "',i),n.a),'"'),bi(uE(bi(uE(bi(uE(bi(uE((i.a+=" (",i),n.i),","),n.j)," | "),n.g),","),n.f),")"),i.a)}function AHt(n,i,l){var d,g,y,x,T;for(T=Iu(n.e.Dh(),i),g=v(n.g,124),d=0,x=0;xl?pMe(n,l,"start index"):i<0||i>l?pMe(i,l,"end index"):sM("end index (%s) must not be less than start index (%s)",Te(xe(zs,1),Yn,1,5,[Nt(i),Nt(n)]))}function RHt(n,i){var l,d,g,y;for(d=0,g=n.length;d0&&IHt(n,y,l));i.p=0}function an(n){var i;this.c=new Ea,this.f=n.e,this.e=n.d,this.i=n.g,this.d=n.c,this.b=n.b,this.k=n.j,this.a=n.a,n.i?this.j=n.i:this.j=(i=v(n1(rm),9),new nf(i,v(v0(i,i.length),9),0)),this.g=n.f}function mSr(n){var i,l,d,g;for(i=C_(bi(new Ed("Predicates."),"and"),40),l=!0,g=new hL(n);g.b0?T[x-1]:st(tm,gy,10,0,0,1),g=T[x],O=x=0?n.ki(g):yMe(n,d);else throw _e(new ar(r2+d.xe()+MM));else throw _e(new ar(kZt+i+RZt));else hf(n,l,d)}function aMe(n){var i,l;if(l=null,i=!1,$e(n,211)&&(i=!0,l=v(n,211).a),i||$e(n,263)&&(i=!0,l=""+v(n,263).a),i||$e(n,493)&&(i=!0,l=""+v(n,493).a),!i)throw _e(new zue(EUe));return l}function sMe(n,i,l){var d,g,y,x,T,R;for(R=Iu(n.e.Dh(),i),d=0,T=n.i,g=v(n.g,124),x=0;x=n.d.b.c.length&&(i=new Xc(n.d),i.p=d.p-1,Lt(n.d.b,i),l=new Xc(n.d),l.p=d.p,Lt(n.d.b,l)),po(d,v(Yt(n.d.b,d.p),30))}function cMe(n,i,l){var d,g,y;if(!n.b[i.g]){for(n.b[i.g]=!0,d=l,!d&&(d=new mz),pi(d.b,i),y=n.a[i.g].Kc();y.Ob();)g=v(y.Pb(),65),g.b!=i&&cMe(n,g.b,d),g.c!=i&&cMe(n,g.c,d),pi(d.a,g);return d}return null}function _Sr(n){switch(n.g){case 0:case 1:case 2:return Bt(),or;case 3:case 4:case 5:return Bt(),Mr;case 6:case 7:case 8:return Bt(),cr;case 9:case 10:case 11:return Bt(),gr;default:return Bt(),lc}}function wSr(n,i){var l;return n.c.length==0?!1:(l=Wzt(($n(0,n.c.length),v(n.c[0],18)).c.i),Sd(),l==(g4(),q5)||l==G5?!0:VT(Bl(new xn(null,new Nn(n,16)),new _wt),new pAt(i)))}function R1e(n,i){if($e(i,207))return psr(n,v(i,27));if($e(i,193))return gsr(n,v(i,123));if($e(i,452))return fsr(n,v(i,166));throw _e(new ar(xUe+Wv(new wh(Te(xe(zs,1),Yn,1,5,[i])))))}function PHt(n,i,l){var d,g;if(this.f=n,d=v(br(n.b,i),260),g=d?d.a:0,AOe(l,g),l>=(g/2|0))for(this.e=d?d.c:null,this.d=g;l++0;)QOe(this);this.b=i,this.a=null}function ESr(n,i){var l,d;i.a?n5r(n,i):(l=v(Zue(n.b,i.b),60),l&&l==n.a[i.b.f]&&l.a&&l.a!=i.b.a&&l.c.Fc(i.b),d=v(Que(n.b,i.b),60),d&&n.a[d.f]==i.b&&d.a&&d.a!=i.b.a&&i.b.c.Fc(d),Vhe(n.b,i.b))}function BHt(n,i){var l,d;if(l=v(yl(n.b,i),127),v(v(Zi(n.r,i),21),87).dc()){l.n.b=0,l.n.c=0;return}l.n.b=n.C.b,l.n.c=n.C.c,n.A.Hc((ud(),vw))&&cjt(n,i),d=X2r(n,i),G1e(n,i)==(ZT(),b2)&&(d+=2*n.w),l.a.a=d}function FHt(n,i){var l,d;if(l=v(yl(n.b,i),127),v(v(Zi(n.r,i),21),87).dc()){l.n.d=0,l.n.a=0;return}l.n.d=n.C.d,l.n.a=n.C.a,n.A.Hc((ud(),vw))&&ujt(n,i),d=K2r(n,i),G1e(n,i)==(ZT(),b2)&&(d+=2*n.w),l.a.b=d}function xSr(n,i){var l,d,g,y;for(y=new Ot,d=new me(i);d.ad&&(sr(i-1,n.length),n.charCodeAt(i-1)<=32);)--i;return d>0||il.a&&(d.Hc((q_(),PP))?g=(i.a-l.a)/2:d.Hc(BP)&&(g=i.a-l.a)),i.b>l.b&&(d.Hc((q_(),$P))?y=(i.b-l.b)/2:d.Hc(FP)&&(y=i.b-l.b)),WDe(n,g,y)}function VHt(n,i,l,d,g,y,x,T,R,O,D,q,J){$e(n.Cb,90)&&_4($h(v(n.Cb,90)),4),mu(n,l),n.f=x,j8(n,T),K8(n,R),Y8(n,O),W8(n,D),oy(n,q),X8(n,J),sy(n,!0),ny(n,g),n.Zk(y),U_(n,i),d!=null&&(n.i=null,uZ(n,d))}function pMe(n,i,l){if(n<0)return sM(GKt,Te(xe(zs,1),Yn,1,5,[l,Nt(n)]));if(i<0)throw _e(new ar(qKt+i));return sM("%s (%s) must not be greater than size (%s)",Te(xe(zs,1),Yn,1,5,[l,Nt(n),Nt(i)]))}function gMe(n,i,l,d,g,y){var x,T,R,O;if(x=d-l,x<7){bvr(i,l,d,y);return}if(R=l+g,T=d+g,O=R+(T-R>>1),gMe(i,n,R,O,-g,y),gMe(i,n,O,T,-g,y),y.Ne(n[O-1],n[O])<=0){for(;l=0?n.bi(y,l):VMe(n,g,l);else throw _e(new ar(r2+g.xe()+MM));else throw _e(new ar(kZt+i+RZt));else df(n,d,g,l)}function YHt(n){var i,l;if(n.f){for(;n.n>0;){if(i=v(n.k.Xb(n.n-1),76),l=i.Lk(),$e(l,102)&&v(l,19).Bb&Sc&&(!n.e||l.pk()!=CN||l.Lj()!=0)&&i.md()!=null)return!0;--n.n}return!1}else return n.n>0}function jHt(n){var i,l,d,g;if(l=v(n,54)._h(),l)try{if(d=null,i=lI((Rv(),t0),Ojt(Rvr(l))),i&&(g=i.ai(),g&&(d=g.Fl(kir(l.e)))),d&&d!=n)return jHt(d)}catch(y){if(y=Da(y),!$e(y,63))throw _e(y)}return n}function $Sr(n,i,l){var d,g,y;l.Ug("Remove overlaps",1),l.dh(i,T$e),d=v(Et(i,(UT(),Y5)),27),n.f=d,n.a=K0e(v(Et(i,(Xv(),Kq)),300)),g=at(Et(i,(Ei(),bw))),o7e(n,(hr(g),g)),y=E4(d),eKt(n,i,y,l),l.dh(i,Eee)}function USr(n){var i,l,d;if(Vt(Ht(Et(n,(Ei(),aH))))){for(d=new Ot,l=new yr(_r(eb(n).a.Kc(),new S));zr(l);)i=v(Rr(l),74),KE(i)&&Vt(Ht(Et(i,x2e)))&&jn(d.c,i);return d}else return Fn(),Fn(),Zo}function WHt(n){if(!n)return W6t(),Ren;var i=n.valueOf?n.valueOf():n;if(i!==n){var l=bbe[typeof i];return l?l(i):iLe(typeof i)}else return n instanceof Array||n instanceof u.Array?new t7e(n):new iU(n)}function KHt(n,i,l){var d,g,y;switch(y=n.o,d=v(yl(n.p,l),252),g=d.i,g.b=JD(d),g.a=ZD(d),g.b=u.Math.max(g.b,y.a),g.b>y.a&&!i&&(g.b=y.a),g.c=-(g.b-y.a)/2,l.g){case 1:g.d=-g.a;break;case 3:g.d=y.b}tpe(d),npe(d)}function XHt(n,i,l){var d,g,y;switch(y=n.o,d=v(yl(n.p,l),252),g=d.i,g.b=JD(d),g.a=ZD(d),g.a=u.Math.max(g.a,y.b),g.a>y.b&&!i&&(g.a=y.b),g.d=-(g.a-y.b)/2,l.g){case 4:g.c=-g.b;break;case 2:g.c=y.a}tpe(d),npe(d)}function zSr(n,i){var l,d,g,y,x;if(!i.dc()){if(g=v(i.Xb(0),131),i.gc()==1){AYt(n,g,g,1,0,i);return}for(l=1;l0)try{g=Nd(i,Po,qi)}catch(y){throw y=Da(y),$e(y,130)?(d=y,_e(new VQ(d))):_e(y)}return l=(!n.a&&(n.a=new Tue(n)),n.a),g=0?v(ze(l,g),58):null}function VSr(n,i){if(n<0)return sM(GKt,Te(xe(zs,1),Yn,1,5,["index",Nt(n)]));if(i<0)throw _e(new ar(qKt+i));return sM("%s (%s) must be less than size (%s)",Te(xe(zs,1),Yn,1,5,["index",Nt(n),Nt(i)]))}function YSr(n){var i,l,d,g,y;if(n==null)return Ku;for(y=new B_(Xo,"[","]"),l=n,d=0,g=l.length;d=0?n.Lh(l,!0,!0):XE(n,g,!0),160)),v(d,220).Zl(i);else throw _e(new ar(r2+i.xe()+MM))}function vMe(n){var i,l;return n>-0x800000000000&&n<0x800000000000?n==0?0:(i=n<0,i&&(n=-n),l=Ps(u.Math.floor(u.Math.log(n)/.6931471805599453)),(!i||n!=u.Math.pow(2,l))&&++l,l):fUt(xc(n))}function o4r(n){var i,l,d,g,y,x,T;for(y=new Hp,l=new me(n);l.a2&&T.e.b+T.j.b<=2&&(g=T,d=x),y.a.zc(g,y),g.q=d);return y}function l4r(n,i,l){l.Ug("Eades radial",1),l.dh(i,Eee),n.d=v(Et(i,(UT(),Y5)),27),n.c=We(at(Et(i,(Xv(),One)))),n.e=K0e(v(Et(i,Kq),300)),n.a=Bvr(v(Et(i,HYe),434)),n.b=rEr(v(Et(i,UYe),354)),$wr(n),l.dh(i,Eee)}function c4r(n,i){if(i.Ug("Target Width Setter",1),Y1(n,(Z1(),n2e)))sa(n,(Vg(),r3),at(Et(n,n2e)));else throw _e(new Gb("A target width has to be set if the TargetWidthWidthApproximator should be used."));i.Vg()}function tVt(n,i){var l,d,g;return d=new Jm(n),Ul(d,i),_t(d,(At(),Kte),i),_t(d,(qt(),Qa),(co(),su)),_t(d,fg,(qg(),Hne)),g_(d,(lr(),hs)),l=new zc,rc(l,d),Bs(l,(Bt(),cr)),g=new zc,rc(g,d),Bs(g,gr),d}function nVt(n){switch(n.g){case 0:return new Fue(($E(),qq));case 1:return new vTt;case 2:return new _Tt;default:throw _e(new ar("No implementation is available for the crossing minimizer "+(n.f!=null?n.f:""+n.g)))}}function rVt(n,i){var l,d,g,y,x;for(n.c[i.p]=!0,Lt(n.a,i),x=new me(i.j);x.a=y)x.$b();else for(g=x.Kc(),d=0;d0?iRe():x<0&&oVt(n,i,-x),!0):!1}function ZD(n){var i,l,d,g,y,x,T;if(T=0,n.b==0){for(x=qGt(n,!0),i=0,d=x,g=0,y=d.length;g0&&(T+=l,++i);i>1&&(T+=n.c*(i-1))}else T=s7t(Zfe(e4(Ki(fNe(n.a),new zn),new vn)));return T>0?T+n.n.d+n.n.a:0}function JD(n){var i,l,d,g,y,x,T;if(T=0,n.b==0)T=s7t(Zfe(e4(Ki(fNe(n.a),new Wn),new Dn)));else{for(x=HGt(n,!0),i=0,d=x,g=0,y=d.length;g0&&(T+=l,++i);i>1&&(T+=n.c*(i-1))}return T>0?T+n.n.b+n.n.c:0}function m4r(n){var i,l;if(n.c.length!=2)throw _e(new Tl("Order only allowed for two paths."));i=($n(0,n.c.length),v(n.c[0],18)),l=($n(1,n.c.length),v(n.c[1],18)),i.d.i!=l.c.i&&(n.c.length=0,jn(n.c,l),jn(n.c,i))}function lVt(n,i,l){var d;for(DT(l,i.g,i.f),ef(l,i.i,i.j),d=0;d<(!i.a&&(i.a=new vt(Pi,i,10,11)),i.a).i;d++)lVt(n,v(ze((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a),d),27),v(ze((!l.a&&(l.a=new vt(Pi,l,10,11)),l.a),d),27))}function b4r(n,i){var l,d,g,y;for(y=v(yl(n.b,i),127),l=y.a,g=v(v(Zi(n.r,i),21),87).Kc();g.Ob();)d=v(g.Pb(),117),d.c&&(l.a=u.Math.max(l.a,HIe(d.c)));if(l.a>0)switch(i.g){case 2:y.n.c=n.s;break;case 4:y.n.b=n.s}}function y4r(n,i){var l,d,g;return l=v(oe(i,(A0(),g6)),17).a-v(oe(n,g6),17).a,l==0?(d=$s(Eo(v(oe(n,(Uv(),xq)),8)),v(oe(n,JM),8)),g=$s(Eo(v(oe(i,xq),8)),v(oe(i,JM),8)),ha(d.a*d.b,g.a*g.b)):l}function v4r(n,i){var l,d,g;return l=v(oe(i,(pc(),Ane)),17).a-v(oe(n,Ane),17).a,l==0?(d=$s(Eo(v(oe(n,(fa(),Yq)),8)),v(oe(n,gN),8)),g=$s(Eo(v(oe(i,Yq),8)),v(oe(i,gN),8)),ha(d.a*d.b,g.a*g.b)):l}function cVt(n){var i,l;return l=new Cv,l.a+="e_",i=dbr(n),i!=null&&(l.a+=""+i),n.c&&n.d&&(bi((l.a+=" ",l),tJ(n.c)),bi(Kc((l.a+="[",l),n.c.i),"]"),bi((l.a+=Tge,l),tJ(n.d)),bi(Kc((l.a+="[",l),n.d.i),"]")),l.a}function uVt(n){switch(n.g){case 0:return new RTt;case 1:return new ITt;case 2:return new ATt;case 3:return new CTt;default:throw _e(new ar("No implementation is available for the layout phase "+(n.f!=null?n.f:""+n.g)))}}function EMe(n,i,l,d,g){var y;switch(y=0,g.g){case 1:y=u.Math.max(0,i.b+n.b-(l.b+d));break;case 3:y=u.Math.max(0,-n.b-d);break;case 2:y=u.Math.max(0,-n.a-d);break;case 4:y=u.Math.max(0,i.a+n.a-(l.a+d))}return y}function _4r(n,i,l){var d,g,y,x,T;if(l)for(g=l.a.length,d=new S_(g),T=(d.b-d.a)*d.c<0?(Iv(),T2):new Lv(d);T.Ob();)x=v(T.Pb(),17),y=m8(l,x.a),mUe in y.a||$me in y.a?DCr(n,y,i):JRr(n,y,i),Qsr(v(br(n.b,Z8(y)),74))}function xMe(n){var i,l;switch(n.b){case-1:return!0;case 0:return l=n.t,l>1||l==-1?(n.b=-1,!0):(i=Gf(n),i&&(al(),i.lk()==IJt)?(n.b=-1,!0):(n.b=1,!1));default:case 1:return!1}}function SMe(n,i){var l,d,g,y;if($i(n),n.c!=0||n.a!=123)throw _e(new oi(fi((ii(),ZZt))));if(y=i==112,d=n.d,l=ZR(n.i,125,d),l<0)throw _e(new oi(fi((ii(),JZt))));return g=af(n.i,d,l),n.d=l+1,DBt(g,y,(n.e&512)==512)}function hVt(n){var i,l,d,g,y,x,T;if(d=n.a.c.length,d>0)for(x=n.c.d,T=n.d.d,g=Vp($s(new Ct(T.a,T.b),x),1/(d+1)),y=new Ct(x.a,x.b),l=new me(n.a);l.a=0&&d=0?n.Lh(l,!0,!0):XE(n,g,!0),160)),v(d,220).Wl(i);throw _e(new ar(r2+i.xe()+Ime))}function S4r(){CRe();var n;return phn?v(lI((Rv(),t0),Yf),2038):(Ai(rw,new P4t),v7r(),n=v($e(Qc((Rv(),t0),Yf),560)?Qc(t0,Yf):new kLt,560),phn=!0,_8r(n),A8r(n),Ni((TRe(),OKe),n,new ZSt),Cl(t0,Yf,n),n)}function T4r(n,i){var l,d,g,y;n.j=-1,id(n.e)?(l=n.i,y=n.i!=0,gz(n,i),d=new Vm(n.e,3,n.c,null,i,l,y),g=i.zl(n.e,n.c,null),g=Vqt(n,i,g),g?(g.nj(d),g.oj()):Vi(n.e,d)):(gz(n,i),g=i.zl(n.e,n.c,null),g&&g.oj())}function hJ(n,i){var l,d,g;if(g=0,d=i[0],d>=n.length)return-1;for(l=(sr(d,n.length),n.charCodeAt(d));l>=48&&l<=57&&(g=g*10+(l-48),++d,!(d>=n.length));)l=(sr(d,n.length),n.charCodeAt(d));return d>i[0]?i[0]=d:g=-1,g}function C4r(n){var i,l,d,g,y;return g=v(n.a,17).a,y=v(n.b,17).a,l=g,d=y,i=u.Math.max(u.Math.abs(g),u.Math.abs(y)),g<=0&&g==y?(l=0,d=y-1):g==-i&&y!=i?(l=y,d=g,y>=0&&++l):(l=-y,d=g),new Ms(Nt(l),Nt(d))}function A4r(n,i,l,d){var g,y,x,T,R,O;for(g=0;g=0&&O>=0&&R=n.i)throw _e(new Sl(zme+i+ew+n.i));if(l>=n.i)throw _e(new Sl(Gme+l+ew+n.i));return d=n.g[l],i!=l&&(i>16),i=d>>16&16,l=16-i,n=n>>i,d=n-256,i=d>>16&8,l+=i,n<<=i,d=n-R4,i=d>>16&4,l+=i,n<<=i,d=n-ng,i=d>>16&2,l+=i,n<<=i,d=n>>14,i=d&~(d>>1),l+2-i)}function R4r(n){kk();var i,l,d,g;for(lte=new Ot,Ube=new Br,$be=new Ot,i=(!n.a&&(n.a=new vt(Pi,n,10,11)),n.a),vRr(i),g=new mr(i);g.e!=g.i.gc();)d=v(wr(g),27),$l(lte,d,0)==-1&&(l=new Ot,Lt($be,l),gGt(d,l));return $be}function I4r(n,i,l){var d,g,y,x;n.a=l.b.d,$e(i,326)?(g=o5(v(i,74),!1,!1),y=hG(g),d=new J5t(n),To(y,d),TG(y,g),i.of((Ei(),kx))!=null&&To(v(i.of(kx),75),d)):(x=v(i,422),x.rh(x.nh()+n.a.a),x.sh(x.oh()+n.a.b))}function N4r(n,i){var l,d,g;for(g=new Ot,d=Ur(i.a,0);d.b!=d.d.c;)l=v(Fr(d),65),l.c.g==n.g&&Ze(oe(l.b,(pc(),gg)))!==Ze(oe(l.c,gg))&&!VT(new xn(null,new Nn(g,16)),new CAt(l))&&jn(g.c,l);return us(g,new sEt),g}function fVt(n,i,l){var d,g,y,x;return $e(i,153)&&$e(l,153)?(y=v(i,153),x=v(l,153),n.a[y.a][x.a]+n.a[x.a][y.a]):$e(i,250)&&$e(l,250)&&(d=v(i,250),g=v(l,250),d.a==g.a)?v(oe(g.a,(A0(),g6)),17).a:0}function pVt(n,i){var l,d,g,y,x,T,R,O;for(O=We(at(oe(i,(qt(),pP)))),R=n[0].n.a+n[0].o.a+n[0].d.c+O,T=1;T=0?l:(T=hD($s(new Ct(x.c+x.b/2,x.d+x.a/2),new Ct(y.c+y.b/2,y.d+y.a/2))),-(Ujt(y,x)-1)*T)}function L4r(n,i,l){var d;ts(new xn(null,(!l.a&&(l.a=new vt(xa,l,6,6)),new Nn(l.a,16))),new R8t(n,i)),ts(new xn(null,(!l.n&&(l.n=new vt(wl,l,1,7)),new Nn(l.n,16))),new I8t(n,i)),d=v(Et(l,(Ei(),kx)),75),d&&A9e(d,n,i)}function XE(n,i,l){var d,g,y;if(y=h5((dh(),ko),n.Dh(),i),y)return al(),v(y,69).xk()||(y=Ik(Al(ko,y))),g=(d=n.Ih(y),v(d>=0?n.Lh(d,!0,!0):XE(n,y,!0),160)),v(g,220).Sl(i,l);throw _e(new ar(r2+i.xe()+Ime))}function TMe(n,i,l,d){var g,y,x,T,R;if(g=n.d[i],g){if(y=g.g,R=g.i,d!=null){for(T=0;T=l&&(d=i,O=(R.c+R.a)/2,x=O-l,R.c<=O-l&&(g=new lde(R.c,x),EE(n,d++,g)),T=O+l,T<=R.a&&(y=new lde(T,R.a),n4(d,n.c.length),OL(n.c,d,y)))}function bVt(n,i,l){var d,g,y,x,T,R;if(!i.dc()){for(g=new Ea,R=i.Kc();R.Ob();)for(T=v(R.Pb(),40),Ni(n.a,Nt(T.g),Nt(l)),x=(d=Ur(new Mm(T).a.d,0),new xT(d));hU(x.a);)y=v(Fr(x.a),65).c,qa(g,y,g.c.b,g.c);bVt(n,g,l+1)}}function CMe(n){var i;if(!n.c&&n.g==null)n.d=n.bj(n.f),Yr(n,n.d),i=n.d;else{if(n.g==null)return!0;if(n.i==0)return!1;i=v(n.g[n.i-1],51)}return i==n.b&&null.Vm>=null.Um()?(pJ(n),CMe(n)):i.Ob()}function yVt(n){if(this.a=n,n.c.i.k==(lr(),hs))this.c=n.c,this.d=v(oe(n.c.i,(At(),vc)),64);else if(n.d.i.k==hs)this.c=n.d,this.d=v(oe(n.d.i,(At(),vc)),64);else throw _e(new ar("Edge "+n+" is not an external edge."))}function vVt(n,i){var l,d,g;g=n.b,n.b=i,n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,3,g,n.b)),i?i!=n&&(mu(n,i.zb),zfe(n,i.d),l=(d=i.c,d??i.zb),qfe(n,l==null||An(l,i.zb)?null:l)):(mu(n,null),zfe(n,0),qfe(n,null))}function _Vt(n,i){var l;this.e=(CE(),ni(n),CE(),ULe(n)),this.c=(ni(i),ULe(i)),R8e(this.e.Rd().dc()==this.c.Rd().dc()),this.d=Mzt(this.e),this.b=Mzt(this.c),l=E_(zs,[kt,Yn],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2),this.a=l,lmr(this)}function wVt(n){!gbe&&(gbe=NRr());var i=n.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(l){return Mfr(l)});return'"'+i+'"'}function AMe(n,i,l,d,g,y){var x,T,R,O,D;if(g!=0)for(Ze(n)===Ze(l)&&(n=n.slice(i,i+g),i=0),R=l,T=i,O=i+g;T=x)throw _e(new XS(i,x));return g=l[i],x==1?d=null:(d=st(H2e,jme,424,x-1,0,1),Gc(l,0,d,0,i),y=x-i-1,y>0&&Gc(l,i+1,d,i,y)),J8(n,d),HHt(n,i,g),g}function xVt(n){var i,l;if(n.f){for(;n.n0?y=zk(l):y=Xz(zk(l))),sa(i,lN,y)}function U4r(n,i){var l;i.Ug("Partition preprocessing",1),l=v(Wl(Ki(ic(Ki(new xn(null,new Nn(n.a,16)),new l2t),new c2t),new u2t),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),ts(l.Oc(),new h2t),i.Vg()}function z4r(n,i){var l,d,g,y,x;for(x=n.j,i.a!=i.b&&us(x,new z_t),g=x.c.length/2|0,d=0;d0&&EG(n,l,i),y):d.a!=null?(EG(n,i,l),-1):g.a!=null?(EG(n,l,i),1):0}function q4r(n,i){var l,d,g,y,x;for(g=i.b.b,n.a=st(_f,I4,15,g,0,1),n.b=st(Wh,Qg,28,g,16,1),x=Ur(i.b,0);x.b!=x.d.c;)y=v(Fr(x),40),n.a[y.g]=new Ea;for(d=Ur(i.a,0);d.b!=d.d.c;)l=v(Fr(d),65),n.a[l.b.g].Fc(l),n.a[l.c.g].Fc(l)}function AVt(n,i){var l,d,g,y;n.Pj()?(l=n.Ej(),y=n.Qj(),++n.j,n.qj(l,n.Zi(l,i)),d=n.Ij(3,null,i,l,y),n.Mj()?(g=n.Nj(i,null),g?(g.nj(d),g.oj()):n.Jj(d)):n.Jj(d)):(bLt(n,i),n.Mj()&&(g=n.Nj(i,null),g&&g.oj()))}function kMe(n,i,l){var d,g,y;n.Pj()?(y=n.Qj(),Yz(n,i,l),d=n.Ij(3,null,l,i,y),n.Mj()?(g=n.Nj(l,null),n.Tj()&&(g=n.Uj(l,g)),g?(g.nj(d),g.oj()):n.Jj(d)):n.Jj(d)):(Yz(n,i,l),n.Mj()&&(g=n.Nj(l,null),g&&g.oj()))}function dJ(n,i){var l,d,g,y,x;for(x=Iu(n.e.Dh(),i),g=new fK,l=v(n.g,124),y=n.i;--y>=0;)d=l[y],x.am(d.Lk())&&Yr(g,d);!EKt(n,g)&&id(n.e)&&$R(n,i.Jk()?Bv(n,6,i,(Fn(),Zo),null,-1,!1):Bv(n,i.tk()?2:1,i,null,null,-1,!1))}function H4r(n,i){var l,d,g,y,x;return n.a==(aI(),rP)?!0:(y=i.a.c,l=i.a.c+i.a.b,!(i.j&&(d=i.A,x=d.c.c.a-d.o.a/2,g=y-(d.n.a+d.o.a),g>x)||i.q&&(d=i.C,x=d.c.c.a-d.o.a/2,g=d.n.a-l,g>x)))}function kVt(n){nfe();var i,l,d,g,y,x,T;for(l=new Zb,g=new me(n.e.b);g.a1?n.e*=We(n.a):n.f/=We(n.a),dyr(n),y2r(n),gCr(n),_t(n.b,(qD(),ote),n.g)}function OVt(n,i,l){var d,g,y,x,T,R;for(d=0,R=l,i||(d=l*(n.c.length-1),R*=-1),y=new me(n);y.a=0?n.Ah(null):n.Ph().Th(n,-1-i,null,null)),n.Bh(v(g,54),l),d&&d.oj(),n.vh()&&n.wh()&&l>-1&&Vi(n,new js(n,9,l,y,g)),g):y}function NMe(n,i){var l,d,g,y,x;for(y=n.b.Ce(i),d=(l=n.a.get(y),l??st(zs,Yn,1,0,5,1)),x=0;x>5,g>=n.d)return n.e<0;if(l=n.a[g],i=1<<(i&31),n.e<0){if(d=Y$t(n),g>16)),15).dd(y),T0&&(!(Bm(n.a.c)&&i.n.d)&&!(LT(n.a.c)&&i.n.b)&&(i.g.d+=u.Math.max(0,d/2-.5)),!(Bm(n.a.c)&&i.n.a)&&!(LT(n.a.c)&&i.n.c)&&(i.g.a-=d-1))}function zVt(n){var i,l,d,g,y;if(g=new Ot,y=Pjt(n,g),i=v(oe(n,(At(),kh)),10),i)for(d=new me(i.j);d.a>i,y=n.m>>i|l<<22-i,g=n.l>>i|n.m<<22-i):i<44?(x=d?rb:0,y=l>>i-22,g=n.m>>i-22|l<<44-i):(x=d?rb:0,y=d?Hh:0,g=l>>i-44),Su(g&Hh,y&Hh,x&rb)}function P1e(n){var i,l,d,g,y,x;for(this.c=new Ot,this.d=n,d=ka,g=ka,i=Ss,l=Ss,x=Ur(n,0);x.b!=x.d.c;)y=v(Fr(x),8),d=u.Math.min(d,y.a),g=u.Math.min(g,y.b),i=u.Math.max(i,y.a),l=u.Math.max(l,y.b);this.a=new rf(d,g,i-d,l-g)}function qVt(n,i){var l,d,g,y,x,T;for(y=new me(n.b);y.a0&&$e(i,44)&&(n.a._j(),O=v(i,44),R=O.ld(),y=R==null?0:ma(R),x=nIe(n.a,y),l=n.a.d[x],l)){for(d=v(l.g,379),D=l.i,T=0;T=2)for(l=g.Kc(),i=at(l.Pb());l.Ob();)y=i,i=at(l.Pb()),d=u.Math.min(d,(hr(i),i-(hr(y),y)));return d}function d3r(n,i){var l,d,g;for(g=new Ot,d=Ur(i.a,0);d.b!=d.d.c;)l=v(Fr(d),65),l.b.g==n.g&&!An(l.b.c,_ee)&&Ze(oe(l.b,(pc(),gg)))!==Ze(oe(l.c,gg))&&!VT(new xn(null,new Nn(g,16)),new AAt(l))&&jn(g.c,l);return us(g,new uEt),g}function f3r(n,i){var l,d,g;if(Ze(i)===Ze(ni(n)))return!0;if(!$e(i,15)||(d=v(i,15),g=n.gc(),g!=d.gc()))return!1;if($e(d,59)){for(l=0;l0&&(g=l),x=new me(n.f.e);x.a0?(i-=1,l-=1):d>=0&&g<0?(i+=1,l+=1):d>0&&g>=0?(i-=1,l+=1):(i+=1,l-=1),new Ms(Nt(i),Nt(l))}function A3r(n,i){return n.ci.c?1:n.bi.b?1:n.a!=i.a?ma(n.a)-ma(i.a):n.d==(yD(),EP)&&i.d==wP?-1:n.d==wP&&i.d==EP?1:0}function XVt(n,i){var l,d,g,y,x;return y=i.a,y.c.i==i.b?x=y.d:x=y.c,y.c.i==i.b?d=y.c:d=y.d,g=Kvr(n.a,x,d),g>0&&g0):g<0&&-g0):!1}function k3r(n,i,l,d){var g,y,x,T,R,O,D,q;for(g=(i-n.d)/n.c.c.length,y=0,n.a+=l,n.d=i,q=new me(n.c);q.a>24;return x}function I3r(n){if(n.ze()){var i=n.c;i.Ae()?n.o="["+i.n:i.ze()?n.o="["+i.xe():n.o="[L"+i.xe()+";",n.b=i.we()+"[]",n.k=i.ye()+"[]";return}var l=n.j,d=n.d;d=d.split("/"),n.o=U0e(".",[l,U0e("$",d)]),n.b=U0e(".",[l,U0e(".",d)]),n.k=d[d.length-1]}function N3r(n,i){var l,d,g,y,x;for(x=null,y=new me(n.e.a);y.a=0;i-=2)for(l=0;l<=i;l+=2)(n.b[l]>n.b[l+2]||n.b[l]===n.b[l+2]&&n.b[l+1]>n.b[l+3])&&(d=n.b[l+2],n.b[l+2]=n.b[l],n.b[l]=d,d=n.b[l+3],n.b[l+3]=n.b[l+1],n.b[l+1]=d);n.c=!0}}function D3r(n,i){var l,d,g,y,x,T,R,O,D;for(O=-1,D=0,x=n,T=0,R=x.length;T0&&++D;++O}return D}function T0(n){var i,l;return l=new Ed(__(n.Rm)),l.a+="@",bi(l,(i=ma(n)>>>0,i.toString(16))),n.Vh()?(l.a+=" (eProxyURI: ",Kc(l,n._h()),n.Kh()&&(l.a+=" eClass: ",Kc(l,n.Kh())),l.a+=")"):n.Kh()&&(l.a+=" (eClass: ",Kc(l,n.Kh()),l.a+=")"),l.a}function nM(n){var i,l,d,g;if(n.e)throw _e(new Tl((Fm(kbe),age+kbe.k+sge)));for(n.d==(ys(),cp)&&DJ(n,Ol),l=new me(n.a.a);l.a>24}return l}function B3r(n,i,l){var d,g,y;if(g=v(yl(n.i,i),314),!g)if(g=new PFt(n.d,i,l),Sk(n.i,i,g),VLe(i))Usr(n.a,i.c,i.b,g);else switch(y=_Sr(i),d=v(yl(n.p,y),252),y.g){case 1:case 3:g.j=!0,Uue(d,i.b,g);break;case 4:case 2:g.k=!0,Uue(d,i.c,g)}return g}function F3r(n,i){var l,d,g,y,x,T,R,O,D;for(R=Pg(n.c-n.b&n.a.length-1),O=null,D=null,y=new fD(n);y.a!=y.b;)g=v(CZ(y),10),l=(T=v(oe(g,(At(),m1)),12),T?T.i:null),d=(x=v(oe(g,Kf),12),x?x.i:null),(O!=l||D!=d)&&(LVt(R,i),O=l,D=d),jn(R.c,g);LVt(R,i)}function $3r(n,i,l,d){var g,y,x,T,R,O;if(T=new fK,R=Iu(n.e.Dh(),i),g=v(n.g,124),al(),v(i,69).xk())for(x=0;x=0)return g;for(y=1,T=new me(i.j);T.a=0)return g;for(y=1,T=new me(i.j);T.a0&&i.Ne(($n(g-1,n.c.length),v(n.c[g-1],10)),y)>0;)of(n,g,($n(g-1,n.c.length),v(n.c[g-1],10))),--g;$n(g,n.c.length),n.c[g]=y}l.a=new Br,l.b=new Br}function U3r(n,i,l){var d,g,y,x,T,R,O,D;for(D=(d=v(i.e&&i.e(),9),new nf(d,v(v0(d,d.length),9),0)),R=T4(l,"[\\[\\]\\s,]+"),y=R,x=0,T=y.length;x=0?(i||(i=new EL,d>0&&bl(i,(mo(0,d,n.length),n.substr(0,d)))),i.a+="\\",c8(i,l&vs)):i&&c8(i,l&vs);return i?i.a:n}function G3r(n){var i,l,d;for(l=new me(n.a.a.b);l.a0&&(!(Bm(n.a.c)&&i.n.d)&&!(LT(n.a.c)&&i.n.b)&&(i.g.d-=u.Math.max(0,d/2-.5)),!(Bm(n.a.c)&&i.n.a)&&!(LT(n.a.c)&&i.n.c)&&(i.g.a+=u.Math.max(0,d-1)))}function aYt(n,i,l){var d,g;if((n.c-n.b&n.a.length-1)==2)i==(Bt(),or)||i==gr?(ZQ(v(ID(n),15),(Id(),im)),ZQ(v(ID(n),15),m2)):(ZQ(v(ID(n),15),(Id(),m2)),ZQ(v(ID(n),15),im));else for(g=new fD(n);g.a!=g.b;)d=v(CZ(g),15),ZQ(d,l)}function q3r(n,i){var l,d,g,y,x,T,R;for(g=i8(new T7e(n)),T=new go(g,g.c.length),y=i8(new T7e(i)),R=new go(y,y.c.length),x=null;T.b>0&&R.b>0&&(l=(Tr(T.b>0),v(T.a.Xb(T.c=--T.b),27)),d=(Tr(R.b>0),v(R.a.Xb(R.c=--R.b),27)),l==d);)x=l;return x}function sYt(n,i,l){var d,g,y,x;oMt(n,i)>oMt(n,l)?(d=sc(l,(Bt(),gr)),n.d=d.dc()?0:pde(v(d.Xb(0),12)),x=sc(i,cr),n.b=x.dc()?0:pde(v(x.Xb(0),12))):(g=sc(l,(Bt(),cr)),n.d=g.dc()?0:pde(v(g.Xb(0),12)),y=sc(i,gr),n.b=y.dc()?0:pde(v(y.Xb(0),12)))}function oYt(n,i){var l,d,g,y;for(l=n.o.a,y=v(v(Zi(n.r,i),21),87).Kc();y.Ob();)g=v(y.Pb(),117),g.e.a=l*We(at(g.b.of(ite))),g.e.b=(d=g.b,d.pf((Ei(),jh))?d.ag()==(Bt(),or)?-d.Mf().b-We(at(d.of(jh))):We(at(d.of(jh))):d.ag()==(Bt(),or)?-d.Mf().b:0)}function H3r(n,i){var l,d,g,y;for(i.Ug("Self-Loop pre-processing",1),d=new me(n.a);d.an.c));x++)g.a>=n.s&&(y<0&&(y=x),T=x);return R=(n.s+n.c)/2,y>=0&&(d=OCr(n,i,y,T),R=Rar(($n(d,i.c.length),v(i.c[d],339))),B4r(i,d,l)),R}function Jr(n,i,l){var d,g,y,x,T,R,O;for(x=(y=new V6e,y),v9e(x,(hr(i),i)),O=(!x.b&&(x.b=new sd((Pn(),nl),_c,x)),x.b),R=1;R0&&k6r(this,g)}function GMe(n,i,l,d,g,y){var x,T,R;if(!g[i.a]){for(g[i.a]=!0,x=d,!x&&(x=new PQ),Lt(x.e,i),R=y[i.a].Kc();R.Ob();)T=v(R.Pb(),290),!(T.d==l||T.c==l)&&(T.c!=i&&GMe(n,T.c,i,x,g,y),T.d!=i&&GMe(n,T.d,i,x,g,y),Lt(x.c,T),xs(x.d,T.b));return x}return null}function j3r(n){var i,l,d,g,y,x,T;for(i=0,g=new me(n.e);g.a=2}function W3r(n,i,l,d,g){var y,x,T,R,O,D;for(y=n.c.d.j,x=v(gf(l,0),8),D=1;D1||(i=va(D0,Te(xe(fl,1),wt,95,0,[cb,M0])),Dz(xQ(i,n))>1)||(d=va(B0,Te(xe(fl,1),wt,95,0,[am,Qf])),Dz(xQ(d,n))>1))}function qMe(n,i,l){var d,g,y;for(y=new me(n.t);y.a0&&(d.b.n-=d.c,d.b.n<=0&&d.b.u>0&&pi(i,d.b));for(g=new me(n.i);g.a0&&(d.a.u-=d.c,d.a.u<=0&&d.a.n>0&&pi(l,d.a))}function pJ(n){var i,l,d,g,y;if(n.g==null&&(n.d=n.bj(n.f),Yr(n,n.d),n.c))return y=n.f,y;if(i=v(n.g[n.i-1],51),g=i.Pb(),n.e=i,l=n.bj(g),l.Ob())n.d=l,Yr(n,l);else for(n.d=null;!i.Ob()&&(Ga(n.g,--n.i,null),n.i!=0);)d=v(n.g[n.i-1],51),i=d;return g}function X3r(n,i){var l,d,g,y,x,T;if(d=i,g=d.Lk(),tb(n.e,g)){if(g.Si()&&NQ(n,g,d.md()))return!1}else for(T=Iu(n.e.Dh(),g),l=v(n.g,124),y=0;y1||l>1)return 2;return i+l==1?2:0}function Gh(n,i){var l,d,g,y,x,T;return y=n.a*tge+n.b*1502,T=n.b*tge+11,l=u.Math.floor(T*GG),y+=l,T-=l*fBe,y%=fBe,n.a=y,n.b=T,i<=24?u.Math.floor(n.a*Eze[i]):(g=n.a*(1<=2147483648&&(d-=4294967296),d)}function dYt(n,i,l){var d,g,y,x,T,R,O;for(y=new Ot,O=new Ea,x=new Ea,ykr(n,O,x,i),X6r(n,O,x,i,l),R=new me(n);R.ad.b.g&&jn(y.c,d);return y}function nTr(n,i,l){var d,g,y,x,T,R;for(T=n.c,x=(l.q?l.q:(Fn(),Fn(),Jg)).vc().Kc();x.Ob();)y=v(x.Pb(),44),d=!VR(Ki(new xn(null,new Nn(T,16)),new PR(new E8t(i,y)))).Bd((w_(),p6)),d&&(R=y.md(),$e(R,4)&&(g=WLe(R),g!=null&&(R=g)),i.qf(v(y.ld(),149),R))}function rTr(n,i,l){var d,g;if(nz(n.b),a1(n.b,(Kz(),Bne),(AL(),eH)),a1(n.b,Fne,i.g),a1(n.b,$ne,i.a),n.a=kG(n.b,i),l.Ug("Compaction by shrinking a tree",n.a.c.length),i.i.c.length>1)for(g=new me(n.a);g.a=0?n.Lh(d,!0,!0):XE(n,y,!0),160)),v(g,220).Xl(i,l)}else throw _e(new ar(r2+i.xe()+MM))}function gJ(n,i){var l,d,g,y,x;if(i){for(y=$e(n.Cb,90)||$e(n.Cb,102),x=!y&&$e(n.Cb,331),d=new mr((!i.a&&(i.a=new rD(i,pl,i)),i.a));d.e!=d.i.gc();)if(l=v(wr(d),89),g=kJ(l),y?$e(g,90):x?$e(g,156):g)return g;return y?(Pn(),n0):(Pn(),dp)}else return null}function iTr(n,i){var l,d,g,y;for(i.Ug("Resize child graph to fit parent.",1),d=new me(n.b);d.a=2*i&&Lt(l,new lde(x[d-1]+i,x[d]-i));return l}function oTr(n,i,l){var d,g,y,x,T,R,O,D;if(l)for(y=l.a.length,d=new S_(y),T=(d.b-d.a)*d.c<0?(Iv(),T2):new Lv(d);T.Ob();)x=v(T.Pb(),17),g=m8(l,x.a),g&&(R=B1r(n,(O=(kv(),D=new H7e,D),i&&YMe(O,i),O),g),I8(R,zm(g,ug)),sJ(g,R),mMe(g,R),c0e(n,g,R))}function mJ(n){var i,l,d,g,y,x;if(!n.j){if(x=new USt,i=eB,y=i.a.zc(n,i),y==null){for(d=new mr(Fl(n));d.e!=d.i.gc();)l=v(wr(d),29),g=mJ(l),Ka(x,g),Yr(x,l);i.a.Bc(n)!=null}h4(x),n.j=new NT((v(ze(bt((Mv(),Zn).o),11),19),x.i),x.g),$h(n).b&=-33}return n.j}function lTr(n){var i,l,d,g;if(n==null)return null;if(d=eu(n,!0),g=dq.length,An(d.substr(d.length-g,g),dq)){if(l=d.length,l==4){if(i=(sr(0,d.length),d.charCodeAt(0)),i==43)return ZKe;if(i==45)return Mhn}else if(l==3)return ZKe}return new L7e(d)}function cTr(n){var i,l,d;return l=n.l,l&l-1||(d=n.m,d&d-1)||(i=n.h,i&i-1)||i==0&&d==0&&l==0?-1:i==0&&d==0&&l!=0?c9e(l):i==0&&d!=0&&l==0?c9e(d)+22:i!=0&&d==0&&l==0?c9e(i)+44:-1}function s5(n,i){var l,d,g,y,x;for(g=i.a&n.f,y=null,d=n.b[g];;d=d.b){if(d==i){y?y.b=i.b:n.b[g]=i.b;break}y=d}for(x=i.f&n.f,y=null,l=n.c[x];;l=l.d){if(l==i){y?y.d=i.d:n.c[x]=i.d;break}y=l}i.e?i.e.c=i.c:n.a=i.c,i.c?i.c.e=i.e:n.e=i.e,--n.i,++n.g}function uTr(n,i){var l;i.d?i.d.b=i.b:n.a=i.b,i.b?i.b.d=i.d:n.e=i.d,!i.e&&!i.c?(l=v($f(v(Lk(n.b,i.a),260)),260),l.a=0,++n.c):(l=v($f(v(br(n.b,i.a),260)),260),--l.a,i.e?i.e.c=i.c:l.b=v($f(i.c),511),i.c?i.c.e=i.e:l.c=v($f(i.e),511)),--n.d}function hTr(n){var i,l,d,g,y,x,T,R,O,D;for(l=n.o,i=n.p,x=qi,g=Po,T=qi,y=Po,O=0;O0),y.a.Xb(y.c=--y.b),KS(y,g),Tr(y.b3&&Gg(n,0,i-3))}function fTr(n){var i,l,d,g;return Ze(oe(n,(qt(),W4)))===Ze((Km(),Cy))?!n.e&&Ze(oe(n,Pq))!==Ze((P8(),Iq)):(d=v(oe(n,qye),299),g=Vt(Ht(oe(n,Hye)))||Ze(oe(n,hP))===Ze((SD(),Rq)),i=v(oe(n,NHe),17).a,l=n.a.c.length,!g&&d!=(P8(),Iq)&&(i==0||i>l))}function pTr(n){var i,l;for(l=0;l0);l++);if(l>0&&l0);i++);return i>0&&l>16!=6&&i){if(tI(n,i))throw _e(new ar(PM+RVt(n)));d=null,n.Cb&&(d=(l=n.Db>>16,l>=0?gDe(n,d):n.Cb.Th(n,-1-l,null,d))),i&&(d=Hk(i,n,6,d)),d=J8e(n,i,d),d&&d.oj()}else n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,6,i,i))}function bJ(n,i){var l,d;if(i!=n.Cb||n.Db>>16!=3&&i){if(tI(n,i))throw _e(new ar(PM+mWt(n)));d=null,n.Cb&&(d=(l=n.Db>>16,l>=0?vDe(n,d):n.Cb.Th(n,-1-l,null,d))),i&&(d=Hk(i,n,12,d)),d=eIe(n,i,d),d&&d.oj()}else n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,3,i,i))}function YMe(n,i){var l,d;if(i!=n.Cb||n.Db>>16!=9&&i){if(tI(n,i))throw _e(new ar(PM+pjt(n)));d=null,n.Cb&&(d=(l=n.Db>>16,l>=0?bDe(n,d):n.Cb.Th(n,-1-l,null,d))),i&&(d=Hk(i,n,9,d)),d=tIe(n,i,d),d&&d.oj()}else n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,9,i,i))}function cI(n){var i,l,d,g,y;if(d=Gf(n),y=n.j,y==null&&d)return n.Jk()?null:d.ik();if($e(d,156)){if(l=d.jk(),l&&(g=l.wi(),g!=n.i)){if(i=v(d,156),i.nk())try{n.g=g.ti(i,y)}catch(x){if(x=Da(x),$e(x,82))n.g=null;else throw _e(x)}n.i=g}return n.g}return null}function mYt(n){var i;return i=new Ot,Lt(i,new ck(new Ct(n.c,n.d),new Ct(n.c+n.b,n.d))),Lt(i,new ck(new Ct(n.c,n.d),new Ct(n.c,n.d+n.a))),Lt(i,new ck(new Ct(n.c+n.b,n.d+n.a),new Ct(n.c+n.b,n.d))),Lt(i,new ck(new Ct(n.c+n.b,n.d+n.a),new Ct(n.c,n.d+n.a))),i}function gTr(n){var i,l,d;if(n==null)return Ku;try{return Kl(n)}catch(g){if(g=Da(g),$e(g,103))return i=g,d=__(cd(n))+"@"+(l=(Pm(),jLe(n)>>>0),l.toString(16)),R2r(pbr(),(KR(),"Exception during lenientFormat for "+d),i),"<"+d+" threw "+__(i.Rm)+">";throw _e(g)}}function mTr(n,i,l){var d,g,y;for(y=i.a.ec().Kc();y.Ob();)g=v(y.Pb(),74),d=v(br(n.b,g),272),!d&&(Aa(Hg(g))==Aa(jv(g))?r5r(n,g,l):Hg(g)==Aa(jv(g))?br(n.c,g)==null&&br(n.b,jv(g))!=null&&WWt(n,g,l,!1):br(n.d,g)==null&&br(n.b,Hg(g))!=null&&WWt(n,g,l,!0))}function bTr(n,i){var l,d,g,y,x,T,R;for(g=n.Kc();g.Ob();)for(d=v(g.Pb(),10),T=new zc,rc(T,d),Bs(T,(Bt(),gr)),_t(T,(At(),Xte),(Qn(),!0)),x=i.Kc();x.Ob();)y=v(x.Pb(),10),R=new zc,rc(R,y),Bs(R,cr),_t(R,Xte,!0),l=new NE,_t(l,Xte,!0),Uo(l,T),lo(l,R)}function yTr(n,i,l,d){var g,y,x,T;g=eGt(n,i,l),y=eGt(n,l,i),x=v(br(n.c,i),118),T=v(br(n.c,l),118),g1)for(i=yE((l=new v_,++n.b,l),n.d),T=Ur(y,0);T.b!=T.d.c;)x=v(Fr(T),125),C0(m0(g0(b0(p0(new Bf,1),0),i),x))}function wTr(n,i,l){var d,g,y,x,T;for(l.Ug("Breaking Point Removing",1),n.a=v(oe(i,(qt(),lb)),223),y=new me(i.b);y.a>16!=11&&i){if(tI(n,i))throw _e(new ar(PM+dPe(n)));d=null,n.Cb&&(d=(l=n.Db>>16,l>=0?_De(n,d):n.Cb.Th(n,-1-l,null,d))),i&&(d=Hk(i,n,10,d)),d=uIe(n,i,d),d&&d.oj()}else n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,11,i,i))}function ETr(n){var i,l,d,g;for(d=new P_(new b_(n.b).a);d.b;)l=zE(d),g=v(l.ld(),12),i=v(l.md(),10),_t(i,(At(),Ji),g),_t(g,kh,i),_t(g,Lq,(Qn(),!0)),Bs(g,v(oe(i,vc),64)),oe(i,vc),_t(g.i,(qt(),Qa),(co(),SN)),v(oe(So(g.i),au),21).Fc((cl(),iN))}function xTr(n,i,l){var d,g,y,x,T,R;if(y=0,x=0,n.c)for(R=new me(n.d.i.j);R.ay.a?-1:g.aR){for(D=n.d,n.d=st(xKe,OUe,66,2*R+4,0,1),y=0;y=9223372036854776e3?(E8(),JUe):(g=!1,n<0&&(g=!0,n=-n),d=0,n>=j_&&(d=Ps(n/j_),n-=d*j_),l=0,n>=n6&&(l=Ps(n/n6),n-=l*n6),i=Ps(n),y=Su(i,l,d),g&&u0e(y),y)}function DTr(n){var i,l,d,g,y;if(y=new Ot,Cu(n.b,new H5t(y)),n.b.c.length=0,y.c.length!=0){for(i=($n(0,y.c.length),v(y.c[0],82)),l=1,d=y.c.length;l=-i&&d==i?new Ms(Nt(l-1),Nt(d)):new Ms(Nt(l),Nt(d-1))}function vYt(){return qo(),Te(xe(Y8r,1),wt,81,0,[UGe,BGe,k5,nye,aqe,_te,Ite,q4,rqe,WGe,tqe,G4,iqe,VGe,sqe,NGe,Ste,rye,yte,Ate,lqe,Cte,OGe,nqe,cqe,kte,oqe,vte,GGe,JGe,ZGe,Nte,MGe,bte,Ete,DGe,jI,XGe,YGe,eqe,eP,FGe,PGe,QGe,jGe,xte,Rte,LGe,Tte,KGe,wte,qGe,zGe,Cq,mte,HGe,$Ge])}function BTr(n,i,l){n.d=0,n.b=0,i.k==(lr(),iu)&&l.k==iu&&v(oe(i,(At(),Ji)),10)==v(oe(l,Ji),10)&&(Ife(i).j==(Bt(),or)?sYt(n,i,l):sYt(n,l,i)),i.k==iu&&l.k==Ws?Ife(i).j==(Bt(),or)?n.d=1:n.b=1:l.k==iu&&i.k==Ws&&(Ife(l).j==(Bt(),or)?n.b=1:n.d=1),w_r(n,i,l)}function FTr(n){var i,l,d,g,y,x,T,R,O,D,q;return q=HDe(n),i=n.a,R=i!=null,R&&a8(q,"category",n.a),g=fU(new m_(n.d)),x=!g,x&&(O=new p_,c1(q,"knownOptions",O),l=new Tkt(O),To(new m_(n.d),l)),y=fU(n.g),T=!y,T&&(D=new p_,c1(q,"supportedFeatures",D),d=new Ckt(D),To(n.g,d)),q}function $Tr(n){var i,l,d,g,y,x,T,R,O;for(d=!1,i=336,l=0,y=new lOt(n.length),T=n,R=0,O=T.length;R>16!=7&&i){if(tI(n,i))throw _e(new ar(PM+CHt(n)));d=null,n.Cb&&(d=(l=n.Db>>16,l>=0?mDe(n,d):n.Cb.Th(n,-1-l,null,d))),i&&(d=v(i,54).Rh(n,1,vH,d)),d=rNe(n,i,d),d&&d.oj()}else n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,7,i,i))}function _Yt(n,i){var l,d;if(i!=n.Cb||n.Db>>16!=3&&i){if(tI(n,i))throw _e(new ar(PM+Szt(n)));d=null,n.Cb&&(d=(l=n.Db>>16,l>=0?yDe(n,d):n.Cb.Th(n,-1-l,null,d))),i&&(d=v(i,54).Rh(n,0,wH,d)),d=iNe(n,i,d),d&&d.oj()}else n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,3,i,i))}function z1e(n,i){uI();var l,d,g,y,x,T,R,O,D;return i.d>n.d&&(T=n,n=i,i=T),i.d<63?A5r(n,i):(x=(n.d&-2)<<4,O=xOe(n,x),D=xOe(i,x),d=ope(n,Ok(O,x)),g=ope(i,Ok(D,x)),R=z1e(O,D),l=z1e(d,g),y=z1e(ope(O,d),ope(g,D)),y=ppe(ppe(y,R),l),y=Ok(y,x),R=Ok(R,x<<1),ppe(ppe(R,y),l))}function fy(){fy=z,ive=new AT(SQt,0),bVe=new AT("LONGEST_PATH",1),yVe=new AT("LONGEST_PATH_SOURCE",2),rve=new AT("COFFMAN_GRAHAM",3),mVe=new AT(Ige,4),vVe=new AT("STRETCH_WIDTH",5),pne=new AT("MIN_WIDTH",6),dN=new AT("BF_MODEL_ORDER",7),fN=new AT("DF_MODEL_ORDER",8)}function zTr(n,i,l){var d,g,y,x,T;for(x=MD(n,l),T=st(tm,gy,10,i.length,0,1),d=0,y=x.Kc();y.Ob();)g=v(y.Pb(),12),Vt(Ht(oe(g,(At(),Lq))))&&(T[d++]=v(oe(g,kh),10));if(d=0;y+=l?1:-1)x=x|i.c.lg(R,y,l,d&&!Vt(Ht(oe(i.j,(At(),c2))))&&!Vt(Ht(oe(i.j,(At(),P5))))),x=x|i.q.ug(R,y,l),x=x|ojt(n,R[y],l,d);return Es(n.c,i),x}function _J(n,i,l){var d,g,y,x,T,R,O,D,q,J;for(D=UMt(n.j),q=0,J=D.length;q1&&(n.a=!0),_hr(v(l.b,68),Hi(Eo(v(i.b,68).c),Vp($s(Eo(v(l.b,68).a),v(i.b,68).a),g))),jDt(n,i),wYt(n,l)}function EYt(n){var i,l,d,g,y,x,T;for(y=new me(n.a.a);y.a0&&y>0?x.p=i++:d>0?x.p=l++:y>0?x.p=g++:x.p=l++}Fn(),us(n.j,new r2t)}function YTr(n){var i,l;l=null,i=v(Yt(n.g,0),18);do{if(l=i.d.i,ya(l,(At(),Kf)))return v(oe(l,Kf),12).i;if(l.k!=(lr(),is)&&zr(new yr(_r(os(l).a.Kc(),new S))))i=v(Rr(new yr(_r(os(l).a.Kc(),new S))),18);else if(l.k!=is)return null}while(l&&l.k!=(lr(),is));return l}function jTr(n,i){var l,d,g,y,x,T,R,O,D;for(T=i.j,x=i.g,R=v(Yt(T,T.c.length-1),113),D=($n(0,T.c.length),v(T.c[0],113)),O=l1e(n,x,R,D),y=1;yO&&(R=l,D=g,O=d);i.a=D,i.c=R}function WTr(n,i,l){var d,g,y,x,T,R,O;for(O=new Vb(new cAt(n)),x=Te(xe(Jnn,1),WXt,12,0,[i,l]),T=0,R=x.length;TR-n.b&&TR-n.a&&T0?y.a?(T=y.b.Mf().a,l>T&&(g=(l-T)/2,y.d.b=g,y.d.c=g)):y.d.c=n.s+l:aD(n.u)&&(d=VDe(y.b),d.c<0&&(y.d.b=-d.c),d.c+d.b>y.b.Mf().a&&(y.d.c=d.c+d.b-y.b.Mf().a))}function h5r(n,i){var l,d,g,y,x;x=new Ot,l=i;do y=v(br(n.b,l),131),y.B=l.c,y.D=l.d,jn(x.c,y),l=v(br(n.k,l),18);while(l);return d=($n(0,x.c.length),v(x.c[0],131)),d.j=!0,d.A=v(d.d.a.ec().Kc().Pb(),18).c.i,g=v(Yt(x,x.c.length-1),131),g.q=!0,g.C=v(g.d.a.ec().Kc().Pb(),18).d.i,x}function d5r(n){var i,l;if(i=v(n.a,17).a,l=v(n.b,17).a,i>=0){if(i==l)return new Ms(Nt(-i-1),Nt(-i-1));if(i==-l)return new Ms(Nt(-i),Nt(l+1))}return u.Math.abs(i)>u.Math.abs(l)?i<0?new Ms(Nt(-i),Nt(l)):new Ms(Nt(-i),Nt(l+1)):new Ms(Nt(i+1),Nt(l))}function f5r(n){var i,l;l=v(oe(n,(qt(),Lu)),171),i=v(oe(n,(At(),aw)),311),l==(pf(),u2)?(_t(n,Lu,Mq),_t(n,aw,(Ym(),D5))):l==Y4?(_t(n,Lu,Mq),_t(n,aw,(Ym(),y6))):i==(Ym(),D5)?(_t(n,Lu,u2),_t(n,aw,Nq)):i==y6&&(_t(n,Lu,Y4),_t(n,aw,Nq))}function wJ(){wJ=z,Hq=new qwt,don=yi(new ms,(Mo(),qc),(qo(),yte)),gon=ch(yi(new ms,qc,Cte),Gl,Tte),mon=Jp(Jp(RL(ch(yi(new ms,N0,Ite),Gl,Rte),ru),kte),Nte),fon=ch(yi(yi(yi(new ms,em,_te),ru,Ete),ru,jI),Gl,wte),pon=ch(yi(yi(new ms,ru,jI),ru,bte),Gl,mte)}function aM(){aM=z,von=yi(ch(new ms,(Mo(),Gl),(qo(),qGe)),qc,yte),xon=Jp(Jp(RL(ch(yi(new ms,N0,Ite),Gl,Rte),ru),kte),Nte),_on=ch(yi(yi(yi(new ms,em,_te),ru,Ete),ru,jI),Gl,wte),Eon=yi(yi(new ms,qc,Cte),Gl,Tte),won=ch(yi(yi(new ms,ru,jI),ru,bte),Gl,mte)}function p5r(n,i,l,d,g){var y,x;(!Jo(i)&&i.c.i.c==i.d.i.c||!T$t(ac(Te(xe(Vs,1),kt,8,0,[g.i.n,g.n,g.a])),l))&&!Jo(i)&&(i.c==g?JR(i.a,0,new Wo(l)):pi(i.a,new Wo(l)),d&&!r1(n.a,l)&&(x=v(oe(i,(qt(),Nl)),75),x||(x=new ah,_t(i,Nl,x)),y=new Wo(l),qa(x,y,x.c.b,x.c),Es(n.a,y)))}function TYt(n,i){var l,d,g,y;for(y=ti(Go(Wg,Ug(ti(Go(i==null?0:ma(i),Kg)),15))),l=y&n.b.length-1,g=null,d=n.b[l];d;g=d,d=d.a)if(d.d==y&&Wp(d.i,i))return g?g.a=d.a:n.b[l]=d.a,n7t(v($f(d.c),604),v($f(d.f),604)),lU(v($f(d.b),227),v($f(d.e),227)),--n.f,++n.e,!0;return!1}function g5r(n){var i,l;for(l=new yr(_r(Hs(n).a.Kc(),new S));zr(l);)if(i=v(Rr(l),18),i.c.i.k!=(lr(),Pc))throw _e(new Gb(Rge+rG(n)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function m5r(n,i,l){var d,g,y,x,T,R,O;if(g=Rzt(n.Db&254),g==0)n.Eb=l;else{if(g==1)T=st(zs,Yn,1,2,5,1),y=o1e(n,i),y==0?(T[0]=l,T[1]=n.Eb):(T[0]=n.Eb,T[1]=l);else for(T=st(zs,Yn,1,g+1,5,1),x=L_(n.Eb),d=2,R=0,O=0;d<=128;d<<=1)d==i?T[O++]=l:n.Db&d&&(T[O++]=x[R++]);n.Eb=T}n.Db|=i}function CYt(n,i,l){var d,g,y,x;for(this.b=new Ot,g=0,d=0,x=new me(n);x.a0&&(y=v(Yt(this.b,0),176),g+=y.o,d+=y.p),g*=2,d*=2,i>1?g=Ps(u.Math.ceil(g*i)):d=Ps(u.Math.ceil(d/i)),this.a=new BLe(g,d)}function AYt(n,i,l,d,g,y){var x,T,R,O,D,q,J,re,ae,le,de,Se;for(D=d,i.j&&i.o?(re=v(br(n.f,i.A),60),le=re.d.c+re.d.b,--D):le=i.a.c+i.a.b,q=g,l.q&&l.o?(re=v(br(n.f,l.C),60),O=re.d.c,++q):O=l.a.c,de=O-le,R=u.Math.max(2,q-D),T=de/R,ae=le+T,J=D;J=0;x+=g?1:-1){for(T=i[x],R=d==(Bt(),gr)?g?sc(T,d):ff(sc(T,d)):g?ff(sc(T,d)):sc(T,d),y&&(n.c[T.p]=R.gc()),q=R.Kc();q.Ob();)D=v(q.Pb(),12),n.d[D.p]=O++;xs(l,R)}}function RYt(n,i,l){var d,g,y,x,T,R,O,D;for(y=We(at(n.b.Kc().Pb())),O=We(at(fbr(i.b))),d=Vp(Eo(n.a),O-l),g=Vp(Eo(i.a),l-y),D=Hi(d,g),Vp(D,1/(O-y)),this.a=D,this.b=new Ot,T=!0,x=n.b.Kc(),x.Pb();x.Ob();)R=We(at(x.Pb())),T&&R-l>cme&&(this.b.Fc(l),T=!1),this.b.Fc(R);T&&this.b.Fc(l)}function b5r(n){var i,l,d,g;if(MCr(n,n.n),n.d.c.length>0){for(_L(n.c);DMe(n,v(pe(new me(n.e.a)),125))>5,i&=31,d>=n.d)return n.e<0?(eg(),Men):(eg(),KM);if(y=n.d-d,g=st(Wr,vi,28,y+1,15,1),lSr(g,y,n.a,d,i),n.e<0){for(l=0;l0&&n.a[l]<<32-i){for(l=0;l=0?!1:(l=h5((dh(),ko),g,i),l?(d=l.Ik(),(d>1||d==-1)&&RE(Al(ko,l))!=3):!0)):!1}function w5r(n,i,l,d){var g,y,x,T,R;return T=zl(v(ze((!i.b&&(i.b=new Gn(Lr,i,4,7)),i.b),0),84)),R=zl(v(ze((!i.c&&(i.c=new Gn(Lr,i,5,8)),i.c),0),84)),Aa(T)==Aa(R)||l4(R,T)?null:(x=lz(i),x==l?d:(y=v(br(n.a,x),10),y&&(g=y.e,g)?g:null))}function E5r(n,i,l){var d,g,y,x,T;for(l.Ug("Longest path to source layering",1),n.a=i,T=n.a.a,n.b=st(Wr,vi,28,T.c.length,15,1),d=0,x=new me(T);x.a0&&(l[0]+=n.d,x-=l[0]),l[2]>0&&(l[2]+=n.d,x-=l[2]),y=u.Math.max(0,x),l[1]=u.Math.max(l[1],x),TOe(n,vu,g.c+d.b+l[0]-(l[1]-x)/2,l),i==vu&&(n.c.b=y,n.c.c=g.c+d.b+(y-x)/2)}function $Yt(){this.c=st(ao,_l,28,(Bt(),Te(xe(tl,1),Dc,64,0,[lc,or,gr,Mr,cr])).length,15,1),this.b=st(ao,_l,28,Te(xe(tl,1),Dc,64,0,[lc,or,gr,Mr,cr]).length,15,1),this.a=st(ao,_l,28,Te(xe(tl,1),Dc,64,0,[lc,or,gr,Mr,cr]).length,15,1),kRe(this.c,ka),kRe(this.b,Ss),kRe(this.a,Ss)}function Jc(n,i,l){var d,g,y,x;if(i<=l?(g=i,y=l):(g=l,y=i),d=0,n.b==null)n.b=st(Wr,vi,28,2,15,1),n.b[0]=g,n.b[1]=y,n.c=!0;else{if(d=n.b.length,n.b[d-1]+1==g){n.b[d-1]=y;return}x=st(Wr,vi,28,d+2,15,1),Gc(n.b,0,x,0,d),n.b=x,n.b[d-1]>=g&&(n.c=!1,n.a=!1),n.b[d++]=g,n.b[d]=y,n.c||a5(n)}}function k5r(n,i,l){var d,g,y,x,T,R,O;for(O=i.d,n.a=new gu(O.c.length),n.c=new Br,T=new me(O);T.a=0?n.Lh(O,!1,!0):XE(n,l,!1),61));e:for(y=q.Kc();y.Ob();){for(g=v(y.Pb(),58),D=0;D1;)x4(g,g.i-1);return d}function zYt(n,i){var l,d,g,y,x,T,R;for(l=new FT,y=new me(n.b);y.an.d[x.p]&&(l+=bOe(n.b,y),Fv(n.a,Nt(y)));for(;!wL(n.a);)XOe(n.b,v(xk(n.a),17).a)}return l}function D5r(n){var i,l,d,g,y,x,T,R,O;for(n.a=new cIe,O=0,g=0,d=new me(n.i.b);d.aT.d&&(D=T.d+T.a+O));l.c.d=D,i.a.zc(l,i),R=u.Math.max(R,l.c.d+l.c.a)}return R}function cl(){cl=z,qte=new GS("COMMENTS",0),wf=new GS("EXTERNAL_PORTS",1),iP=new GS("HYPEREDGES",2),Hte=new GS("HYPERNODES",3),iN=new GS("NON_FREE_PORTS",4),L5=new GS("NORTH_SOUTH_PORTS",5),aP=new GS(dQt,6),nN=new GS("CENTER_LABELS",7),rN=new GS("END_LABELS",8),Vte=new GS("PARTITIONS",9)}function P5r(n,i,l,d,g){return d<0?(d=i5(n,g,Te(xe(Xt,1),kt,2,6,[Ipe,Npe,Ope,Lpe,e6,Dpe,Mpe,Ppe,Bpe,Fpe,$pe,Upe]),i),d<0&&(d=i5(n,g,Te(xe(Xt,1),kt,2,6,["Jan","Feb","Mar","Apr",e6,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),i)),d<0?!1:(l.k=d,!0)):d>0?(l.k=d-1,!0):!1}function B5r(n,i,l,d,g){return d<0?(d=i5(n,g,Te(xe(Xt,1),kt,2,6,[Ipe,Npe,Ope,Lpe,e6,Dpe,Mpe,Ppe,Bpe,Fpe,$pe,Upe]),i),d<0&&(d=i5(n,g,Te(xe(Xt,1),kt,2,6,["Jan","Feb","Mar","Apr",e6,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),i)),d<0?!1:(l.k=d,!0)):d>0?(l.k=d-1,!0):!1}function F5r(n,i,l,d,g,y){var x,T,R,O;if(T=32,d<0){if(i[0]>=n.length||(T=Do(n,i[0]),T!=43&&T!=45)||(++i[0],d=hJ(n,i),d<0))return!1;T==45&&(d=-d)}return T==32&&i[0]-l==2&&g.b==2&&(R=new UK,O=R.q.getFullYear()-Jv+Jv-80,x=O%100,y.a=d==x,d+=(O/100|0)*100+(d=0?Yv(n):cD(Yv(ty(n)))),XM[i]=bX(w0(n,i),0)?Yv(w0(n,i)):cD(Yv(ty(w0(n,i)))),n=Go(n,5);for(;i=O&&(R=d);R&&(D=u.Math.max(D,R.a.o.a)),D>J&&(q=O,J=D)}return q}function H5r(n){var i,l,d,g,y,x,T;for(y=new Vb(v(ni(new Pr),50)),T=Ss,l=new me(n.d);l.aFQt?us(R,n.b):d<=FQt&&d>$Qt?us(R,n.d):d<=$Qt&&d>UQt?us(R,n.c):d<=UQt&&us(R,n.a),y=YYt(n,R,y);return g}function jYt(n,i,l,d){var g,y,x,T,R,O;for(g=(d.c+d.a)/2,xd(i.j),pi(i.j,g),xd(l.e),pi(l.e,g),O=new g7t,T=new me(n.f);T.a1,T&&(d=new Ct(g,l.b),pi(i.a,d)),xD(i.a,Te(xe(Vs,1),kt,8,0,[J,q]))}function rPe(n,i,l){var d,g;for(i=48;l--)iB[l]=l-48<<24>>24;for(d=70;d>=65;d--)iB[d]=d-65+10<<24>>24;for(g=102;g>=97;g--)iB[g]=g-97+10<<24>>24;for(y=0;y<10;y++)yre[y]=48+y&vs;for(n=10;n<=15;n++)yre[n]=65+n-10&vs}function W5r(n,i){i.Ug("Process graph bounds",1),_t(n,(fa(),Cve),CU(Jfe(e4(new xn(null,new Nn(n.b,16)),new _Et)))),_t(n,Ave,CU(Jfe(e4(new xn(null,new Nn(n.b,16)),new wEt)))),_t(n,lYe,CU(Zfe(e4(new xn(null,new Nn(n.b,16)),new EEt)))),_t(n,cYe,CU(Zfe(e4(new xn(null,new Nn(n.b,16)),new xEt)))),i.Vg()}function K5r(n){var i,l,d,g,y;g=v(oe(n,(qt(),uw)),21),y=v(oe(n,une),21),l=new Ct(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),i=new Wo(l),g.Hc((ud(),o3))&&(d=v(oe(n,sN),8),y.Hc((qh(),TN))&&(d.a<=0&&(d.a=20),d.b<=0&&(d.b=20)),i.a=u.Math.max(l.a,d.a),i.b=u.Math.max(l.b,d.b)),Vt(Ht(oe(n,Xye)))||Tkr(n,l,i)}function X5r(n,i){var l,d,g,y;for(y=sc(i,(Bt(),Mr)).Kc();y.Ob();)d=v(y.Pb(),12),l=v(oe(d,(At(),kh)),10),l&&C0(m0(g0(b0(p0(new Bf,0),.1),n.i[i.p].d),n.i[l.p].a));for(g=sc(i,or).Kc();g.Ob();)d=v(g.Pb(),12),l=v(oe(d,(At(),kh)),10),l&&C0(m0(g0(b0(p0(new Bf,0),.1),n.i[l.p].d),n.i[i.p].a))}function q1e(n){var i,l,d,g,y,x;if(!n.c){if(x=new PSt,i=eB,y=i.a.zc(n,i),y==null){for(d=new mr(Uc(n));d.e!=d.i.gc();)l=v(wr(d),89),g=kJ(l),$e(g,90)&&Ka(x,q1e(v(g,29))),Yr(x,l);i.a.Bc(n)!=null,i.a.gc()==0}Vvr(x),h4(x),n.c=new NT((v(ze(bt((Mv(),Zn).o),15),19),x.i),x.g),$h(n).b&=-33}return n.c}function aPe(n){var i;if(n.c!=10)throw _e(new oi(fi((ii(),Lee))));switch(i=n.a,i){case 110:i=10;break;case 114:i=13;break;case 116:i=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw _e(new oi(fi((ii(),vf))))}return i}function QYt(n){var i,l,d,g,y;if(n.l==0&&n.m==0&&n.h==0)return"0";if(n.h==FG&&n.m==0&&n.l==0)return"-9223372036854775808";if(n.h>>19)return"-"+QYt($8(n));for(l=n,d="";!(l.l==0&&l.m==0&&l.h==0);){if(g=vfe(zJ),l=$Pe(l,g,!0),i=""+w7t(i2),!(l.l==0&&l.m==0&&l.h==0))for(y=9-i.length;y>0;y--)i="0"+i;d=i+d}return d}function Q5r(n){var i,l,d,g,y,x,T;for(i=!1,l=0,g=new me(n.d.b);g.a=n.a||!zDe(i,l))return-1;if(b8(v(d.Kb(i),20)))return 1;for(g=0,x=v(d.Kb(i),20).Kc();x.Ob();)if(y=v(x.Pb(),18),R=y.c.i==i?y.d.i:y.c.i,T=sPe(n,R,l,d),T==-1||(g=u.Math.max(g,T),g>n.c-1))return-1;return g+1}function ZYt(n,i){var l,d,g,y,x,T;if(Ze(i)===Ze(n))return!0;if(!$e(i,15)||(d=v(i,15),T=n.gc(),d.gc()!=T))return!1;if(x=d.Kc(),n.Yi()){for(l=0;l0){if(n._j(),i!=null){for(y=0;y>24;case 97:case 98:case 99:case 100:case 101:case 102:return n-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return n-65+10<<24>>24;default:throw _e(new Gp("Invalid hexadecimal"))}}function SJ(){SJ=z,Hze=new CT("SPIRAL",0),Uze=new CT("LINE_BY_LINE",1),zze=new CT("MANHATTAN",2),$ze=new CT("JITTER",3),Nbe=new CT("QUADRANTS_LINE_BY_LINE",4),qze=new CT("QUADRANTS_MANHATTAN",5),Gze=new CT("QUADRANTS_JITTER",6),Fze=new CT("COMBINE_LINE_BY_LINE_MANHATTAN",7),Bze=new CT("COMBINE_JITTER_MANHATTAN",8)}function ejt(n,i,l,d){var g,y,x,T,R,O;for(R=p1e(n,l),O=p1e(i,l),g=!1;R&&O&&(d||W_r(R,O,l));)x=p1e(R,l),T=p1e(O,l),xz(i),xz(n),y=R.c,gpe(R,!1),gpe(O,!1),l?(m4(i,O.p,y),i.p=O.p,m4(n,R.p+1,y),n.p=R.p):(m4(n,R.p,y),n.p=R.p,m4(i,O.p+1,y),i.p=O.p),po(R,null),po(O,null),R=x,O=T,g=!0;return g}function tjt(n){switch(n.g){case 0:return new pTt;case 1:return new dTt;case 3:return new RRt;case 4:return new cwt;case 5:return new rOt;case 6:return new fTt;case 2:return new hTt;case 7:return new aTt;case 8:return new oTt;default:throw _e(new ar("No implementation is available for the layerer "+(n.f!=null?n.f:""+n.g)))}}function rCr(n,i,l,d){var g,y,x,T,R;for(g=!1,y=!1,T=new me(d.j);T.a=i.length)throw _e(new Sl("Greedy SwitchDecider: Free layer not in graph."));this.c=i[n],this.e=new YU(d),Wfe(this.e,this.c,(Bt(),cr)),this.i=new YU(d),Wfe(this.i,this.c,gr),this.f=new _9t(this.c),this.a=!y&&g.i&&!g.s&&this.c[0].k==(lr(),hs),this.a&&bSr(this,n,i.length)}function rjt(n,i){var l,d,g,y,x,T;y=!n.B.Hc((qh(),bH)),x=n.B.Hc(P2e),n.a=new qzt(x,y,n.c),n.n&&FNe(n.a.n,n.n),Uue(n.g,(u1(),vu),n.a),i||(d=new GD(1,y,n.c),d.n.a=n.k,Sk(n.p,(Bt(),or),d),g=new GD(1,y,n.c),g.n.d=n.k,Sk(n.p,Mr,g),T=new GD(0,y,n.c),T.n.c=n.k,Sk(n.p,cr,T),l=new GD(0,y,n.c),l.n.b=n.k,Sk(n.p,gr,l))}function aCr(n){var i,l,d;switch(i=v(oe(n.d,(qt(),lb)),223),i.g){case 2:l=jRr(n);break;case 3:l=(d=new Ot,ts(Ki(Bl(ic(ic(new xn(null,new Nn(n.d.b,16)),new v_t),new __t),new w_t),new s_t),new $Ct(d)),d);break;default:throw _e(new Tl("Compaction not supported for "+i+" edges."))}g6r(n,l),To(new m_(n.g),new BCt(n))}function sCr(n,i){var l,d,g,y,x,T,R;if(i.Ug("Process directions",1),l=v(oe(n,(pc(),Ax)),88),l!=(ys(),lp))for(g=Ur(n.b,0);g.b!=g.d.c;){switch(d=v(Fr(g),40),T=v(oe(d,(fa(),jq)),17).a,R=v(oe(d,Wq),17).a,l.g){case 4:R*=-1;break;case 1:y=T,T=R,R=y;break;case 2:x=T,T=-R,R=x}_t(d,jq,Nt(T)),_t(d,Wq,Nt(R))}i.Vg()}function oCr(n,i){var l;return l=new Ii,i&&Ul(l,v(br(n.a,vH),96)),$e(i,422)&&Ul(l,v(br(n.a,_H),96)),$e(i,366)?(Ul(l,v(br(n.a,wl),96)),l):($e(i,84)&&Ul(l,v(br(n.a,Lr),96)),$e(i,207)?(Ul(l,v(br(n.a,Pi),96)),l):$e(i,193)?(Ul(l,v(br(n.a,Oh),96)),l):($e(i,326)&&Ul(l,v(br(n.a,ss),96)),l))}function lCr(n){var i,l,d,g,y,x,T,R;for(R=new BPt,T=new me(n.a);T.a0&&i=0)return!1;if(i.p=l.b,Lt(l.e,i),g==(lr(),Ws)||g==iu){for(x=new me(i.j);x.an.d[T.p]&&(l+=bOe(n.b,y),Fv(n.a,Nt(y)))):++x;for(l+=n.b.d*x;!wL(n.a);)XOe(n.b,v(xk(n.a),17).a)}return l}function fjt(n){var i,l,d,g,y,x;return y=0,i=Gf(n),i.kk()&&(y|=4),n.Bb&gh&&(y|=2),$e(n,102)?(l=v(n,19),g=sl(l),l.Bb&Sc&&(y|=32),g&&(kr(t4(g)),y|=8,x=g.t,(x>1||x==-1)&&(y|=16),g.Bb&Sc&&(y|=64)),l.Bb&el&&(y|=P4),y|=k0):$e(i,469)?y|=512:(d=i.kk(),d&&d.i&1&&(y|=256)),n.Bb&512&&(y|=128),y}function _Cr(n,i){var l;return n.f==K2e?(l=RE(Al((dh(),ko),i)),n.e?l==4&&i!=(Kk(),P6)&&i!=(Kk(),M6)&&i!=(Kk(),X2e)&&i!=(Kk(),Q2e):l==2):n.d&&(n.d.Hc(i)||n.d.Hc(Ik(Al((dh(),ko),i)))||n.d.Hc(h5((dh(),ko),n.b,i)))?!0:n.f&&jMe((dh(),n.f),rz(Al(ko,i)))?(l=RE(Al(ko,i)),n.e?l==4:l==2):!1}function wCr(n){var i,l,d,g,y,x,T,R,O,D,q,J,re;for(J=-1,re=0,O=n,D=0,q=O.length;D0&&++re;++J}return re}function ECr(n,i,l,d){var g,y,x,T,R,O,D,q;return x=v(Et(l,(Ei(),R6)),8),R=x.a,D=x.b+n,g=u.Math.atan2(D,R),g<0&&(g+=Z_),g+=i,g>Z_&&(g-=Z_),T=v(Et(d,R6),8),O=T.a,q=T.b+n,y=u.Math.atan2(q,O),y<0&&(y+=Z_),y+=i,y>Z_&&(y-=Z_),$1(),x0(1e-10),u.Math.abs(g-y)<=1e-10||g==y||isNaN(g)&&isNaN(y)?0:gy?1:mE(isNaN(g),isNaN(y))}function Y1e(n){var i,l,d,g,y,x,T;for(T=new Br,d=new me(n.a.b);d.a=n.o)throw _e(new z7e);T=i>>5,x=i&31,y=w0(1,ti(w0(x,1))),g?n.n[l][T]=s1(n.n[l][T],y):n.n[l][T]=Us(n.n[l][T],FIe(y)),y=w0(y,1),d?n.n[l][T]=s1(n.n[l][T],y):n.n[l][T]=Us(n.n[l][T],FIe(y))}catch(R){throw R=Da(R),$e(R,333)?_e(new Sl(fge+n.o+"*"+n.p+pge+i+Xo+l+gge)):_e(R)}}function TCr(n,i,l,d){var g,y,x,T,R,O,D,q,J;for(J=new Vb(new lAt(n)),T=Te(xe(tm,1),gy,10,0,[i,l]),R=0,O=T.length;R0&&(d=(!n.n&&(n.n=new vt(wl,n,1,7)),v(ze(n.n,0),135)).a,!d||bi(bi((i.a+=' "',i),d),'"'))),bi(uE(bi(uE(bi(uE(bi(uE((i.a+=" (",i),n.i),","),n.j)," | "),n.g),","),n.f),")"),i.a)}function pjt(n){var i,l,d;return n.Db&64?T1e(n):(i=new Ed(pUe),l=n.k,l?bi(bi((i.a+=' "',i),l),'"'):(!n.n&&(n.n=new vt(wl,n,1,7)),n.n.i>0&&(d=(!n.n&&(n.n=new vt(wl,n,1,7)),v(ze(n.n,0),135)).a,!d||bi(bi((i.a+=' "',i),d),'"'))),bi(uE(bi(uE(bi(uE(bi(uE((i.a+=" (",i),n.i),","),n.j)," | "),n.g),","),n.f),")"),i.a)}function kCr(n,i){var l,d,g,y,x;for(i==(ND(),gve)&&dG(v(Zi(n.a,(b4(),kq)),15)),g=v(Zi(n.a,(b4(),kq)),15).Kc();g.Ob();)switch(d=v(g.Pb(),105),l=v(Yt(d.j,0),113).d.j,y=new Eh(d.j),us(y,new k_t),i.g){case 2:v1e(n,y,l,(UE(),l2),1);break;case 1:case 0:x=pTr(y),v1e(n,new Qb(y,0,x),l,(UE(),l2),0),v1e(n,new Qb(y,x,y.c.length),l,l2,1)}}function W1e(n,i){var l,d,g,y,x,T,R;if(i==null||i.length==0)return null;if(g=v(Qc(n.a,i),143),!g){for(d=(T=new Dm(n.b).a.vc().Kc(),new FS(T));d.a.Ob();)if(l=(y=v(d.a.Pb(),44),v(y.md(),143)),x=l.c,R=i.length,An(x.substr(x.length-R,R),i)&&(i.length==x.length||Do(x,x.length-i.length-1)==46)){if(g)return null;g=l}g&&Cl(n.a,i,g)}return g}function RCr(n,i){var l,d,g,y;return l=new Ls,d=v(Wl(Bl(new xn(null,new Nn(n.f,16)),l),a4(new Ve,new Oe,new ht,new et,Te(xe(Il,1),wt,108,0,[(Ch(),B4),Ql]))),21),g=d.gc(),d=v(Wl(Bl(new xn(null,new Nn(i.f,16)),l),a4(new Ve,new Oe,new ht,new et,Te(xe(Il,1),wt,108,0,[B4,Ql]))),21),y=d.gc(),gg.p?(Bs(y,Mr),y.d&&(T=y.o.b,i=y.a.b,y.a.b=T-i)):y.j==Mr&&g.p>n.p&&(Bs(y,or),y.d&&(T=y.o.b,i=y.a.b,y.a.b=-(T-i)));break}return g}function wG(n,i,l,d,g){var y,x,T,R,O,D,q;if(!($e(i,207)||$e(i,366)||$e(i,193)))throw _e(new ar("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return x=n.a/2,R=i.i+d-x,D=i.j+g-x,O=R+i.g+n.a,q=D+i.f+n.a,y=new ah,pi(y,new Ct(R,D)),pi(y,new Ct(R,q)),pi(y,new Ct(O,q)),pi(y,new Ct(O,D)),T=new P1e(y),Ul(T,i),l&&Ni(n.b,i,T),T}function hI(n,i,l){var d,g,y,x,T,R,O,D,q,J;for(y=new Ct(i,l),D=new me(n.a);D.a1,T&&(d=new Ct(g,l.b),pi(i.a,d)),xD(i.a,Te(xe(Vs,1),kt,8,0,[J,q]))}function qf(){qf=z,bne=new qS(og,0),Uq=new qS("NIKOLOV",1),zq=new qS("NIKOLOV_PIXEL",2),CVe=new qS("NIKOLOV_IMPROVED",3),AVe=new qS("NIKOLOV_IMPROVED_PIXEL",4),TVe=new qS("DUMMYNODE_PERCENTAGE",5),kVe=new qS("NODECOUNT_PERCENTAGE",6),yne=new qS("NO_BOUNDARY",7),Tx=new qS("MODEL_ORDER_LEFT_TO_RIGHT",8),e3=new qS("MODEL_ORDER_RIGHT_TO_LEFT",9)}function $Cr(n){var i,l,d,g,y;for(d=n.length,i=new EL,y=0;y=40,x&&UAr(n),Wkr(n),b5r(n),l=Lzt(n),d=0;l&&d0&&pi(n.f,y)):(n.c[x]-=O+1,n.c[x]<=0&&n.a[x]>0&&pi(n.e,y))))}function Ajt(n,i,l,d){var g,y,x,T,R,O,D;for(R=new Ct(l,d),$s(R,v(oe(i,(fa(),gN)),8)),D=Ur(i.b,0);D.b!=D.d.c;)O=v(Fr(D),40),Hi(O.e,R),pi(n.b,O);for(T=v(Wl(KNe(new xn(null,new Nn(i.a,16))),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15).Kc();T.Ob();){for(x=v(T.Pb(),65),y=Ur(x.a,0);y.b!=y.d.c;)g=v(Fr(y),8),g.a+=R.a,g.b+=R.b;pi(n.a,x)}}function wPe(n,i){var l,d,g,y;if(0<($e(n,16)?v(n,16).gc():Gm(n.Kc()))){if(g=i,1=0&&Ry*2?(D=new eZ(q),O=lh(x)/od(x),R=vpe(D,i,new ek,l,d,g,O),Hi(i1(D.e),R),q.c.length=0,y=0,jn(q.c,D),jn(q.c,x),y=lh(D)*od(D)+lh(x)*od(x)):(jn(q.c,x),y+=lh(x)*od(x));return q}function Rjt(n,i){var l,d,g,y,x,T;if(T=v(oe(i,(qt(),Qa)),101),T==(co(),sm)||T==su)for(g=new Ct(i.f.a+i.d.b+i.d.c,i.f.b+i.d.d+i.d.a).b,x=new me(n.a);x.al?i:l;O<=q;++O)O==l?T=d++:(y=g[O],D=ae.am(y.Lk()),O==i&&(R=O==q&&!D?d-1:d),D&&++d);return J=v($D(n,i,l),76),T!=R&&$R(n,new vz(n.e,7,x,Nt(T),re.md(),R)),J}}else return v(L1e(n,i,l),76);return v($D(n,i,l),76)}function iAr(n,i){var l,d,g,y,x,T,R;for(i.Ug("Port order processing",1),R=v(oe(n,(qt(),iVe)),430),d=new me(n.b);d.a=0&&(T=J_r(n,x),!(T&&(O<22?R.l|=1<>>1,x.m=D>>>1|(q&1)<<21,x.l=J>>>1|(D&1)<<21,--O;return l&&u0e(R),y&&(d?(i2=$8(n),g&&(i2=pUt(i2,(E8(),eze)))):i2=Su(n.l,n.m,n.h)),R}function oAr(n,i){var l,d,g,y,x,T,R,O,D,q;for(O=n.e[i.c.p][i.p]+1,R=i.c.a.c.length+1,T=new me(n.a);T.a0&&(sr(0,n.length),n.charCodeAt(0)==45||(sr(0,n.length),n.charCodeAt(0)==43))?1:0,d=x;dl)throw _e(new Gp(nx+n+'"'));return T}function lAr(n){var i,l,d,g,y,x,T;for(x=new Ea,y=new me(n.a);y.a1)&&i==1&&v(n.a[n.b],10).k==(lr(),Pc)?Qk(v(n.a[n.b],10),(Id(),im)):d&&(!l||(n.c-n.b&n.a.length-1)>1)&&i==1&&v(n.a[n.c-1&n.a.length-1],10).k==(lr(),Pc)?Qk(v(n.a[n.c-1&n.a.length-1],10),(Id(),m2)):(n.c-n.b&n.a.length-1)==2?(Qk(v(ID(n),10),(Id(),im)),Qk(v(ID(n),10),m2)):F3r(n,g),gOe(n)}function hAr(n,i,l){var d,g,y,x,T;for(y=0,g=new mr((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a));g.e!=g.i.gc();)d=v(wr(g),27),x="",(!d.n&&(d.n=new vt(wl,d,1,7)),d.n).i==0||(x=v(ze((!d.n&&(d.n=new vt(wl,d,1,7)),d.n),0),135).a),T=new h0e(y++,i,x),Ul(T,d),_t(T,(fa(),AP),d),T.e.b=d.j+d.f/2,T.f.a=u.Math.max(d.g,1),T.e.a=d.i+d.g/2,T.f.b=u.Math.max(d.f,1),pi(i.b,T),yu(l.f,d,T)}function dAr(n){var i,l,d,g,y;d=v(oe(n,(At(),Ji)),27),y=v(Et(d,(qt(),uw)),181).Hc((ud(),vw)),n.e||(g=v(oe(n,au),21),i=new Ct(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),g.Hc((cl(),wf))?(sa(d,Qa,(co(),su)),JE(d,i.a,i.b,!1,!0)):Vt(Ht(Et(d,Xye)))||JE(d,i.a,i.b,!0,!0)),y?sa(d,uw,bn(vw)):sa(d,uw,(l=v(n1(WP),9),new nf(l,v(v0(l,l.length),9),0)))}function EPe(n,i,l){var d,g,y,x;if(i[0]>=n.length)return l.o=0,!0;switch(Do(n,i[0])){case 43:g=1;break;case 45:g=-1;break;default:return l.o=0,!0}if(++i[0],y=i[0],x=hJ(n,i),x==0&&i[0]==y)return!1;if(i[0]T&&(T=g,D.c.length=0),g==T&&Lt(D,new Ms(l.c.i,l)));Fn(),us(D,n.c),EE(n.b,R.p,D)}}function mAr(n,i){var l,d,g,y,x,T,R,O,D;for(x=new me(i.b);x.aT&&(T=g,D.c.length=0),g==T&&Lt(D,new Ms(l.d.i,l)));Fn(),us(D,n.c),EE(n.f,R.p,D)}}function bAr(n,i){var l,d,g,y,x,T,R,O;if(O=Ht(oe(i,(pc(),Yon))),O==null||(hr(O),O)){for(q4r(n,i),g=new Ot,R=Ur(i.b,0);R.b!=R.d.c;)x=v(Fr(R),40),l=cMe(n,x,null),l&&(Ul(l,i),jn(g.c,l));if(n.a=null,n.b=null,g.c.length>1)for(d=new me(g);d.a=0&&T!=l&&(y=new js(n,1,T,x,null),d?d.nj(y):d=y),l>=0&&(y=new js(n,1,l,T==l?x:null,i),d?d.nj(y):d=y)),d}function Ojt(n){var i,l,d;if(n.b==null){if(d=new qb,n.i!=null&&(bl(d,n.i),d.a+=":"),n.f&256){for(n.f&256&&n.a!=null&&(Pdr(n.i)||(d.a+="//"),bl(d,n.a)),n.d!=null&&(d.a+="/",bl(d,n.d)),n.f&16&&(d.a+="/"),i=0,l=n.j.length;iJ?!1:(q=(R=dM(d,J,!1),R.a),D+T+q<=i.b&&(_z(l,y-l.s),l.c=!0,_z(d,y-l.s),nG(d,l.s,l.t+l.d+T),d.k=!0,I9e(l.q,d),re=!0,g&&(aZ(i,d),d.j=i,n.c.length>x&&(aG(($n(x,n.c.length),v(n.c[x],186)),d),($n(x,n.c.length),v(n.c[x],186)).a.c.length==0&&Jb(n,x)))),re)}function SAr(n,i){var l,d,g,y,x,T;if(i.Ug("Partition midprocessing",1),g=new OE,ts(Ki(new xn(null,new Nn(n.a,16)),new a2t),new CCt(g)),g.d!=0){for(T=v(Wl(ZNe((y=g.i,new xn(null,(y||(g.i=new $T(g,g.c))).Nc()))),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),d=T.Kc(),l=v(d.Pb(),17);d.Ob();)x=v(d.Pb(),17),bTr(v(Zi(g,l),21),v(Zi(g,x),21)),l=x;i.Vg()}}function Mjt(n,i,l){var d,g,y,x,T,R,O,D;if(i.p==0){for(i.p=1,x=l,x||(g=new Ot,y=(d=v(n1(tl),9),new nf(d,v(v0(d,d.length),9),0)),x=new Ms(g,y)),v(x.a,15).Fc(i),i.k==(lr(),hs)&&v(x.b,21).Fc(v(oe(i,(At(),vc)),64)),R=new me(i.j);R.a0){if(g=v(n.Ab.g,2033),i==null){for(y=0;yl.s&&Tx)return Bt(),gr;break;case 4:case 3:if(D<0)return Bt(),or;if(D+l>y)return Bt(),Mr}return R=(O+T/2)/x,d=(D+l/2)/y,R+d<=1&&R-d<=0?(Bt(),cr):R+d>=1&&R-d>=0?(Bt(),gr):d<.5?(Bt(),or):(Bt(),Mr)}function RAr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le;for(l=!1,D=We(at(oe(i,(qt(),Sx)))),ae=Zv*D,g=new me(i.b);g.aR+ae&&(le=q.g+J.g,J.a=(J.g*J.a+q.g*q.a)/le,J.g=le,q.f=J,l=!0)),y=T,q=J;return l}function $jt(n,i,l,d,g,y,x){var T,R,O,D,q,J;for(J=new fk,O=i.Kc();O.Ob();)for(T=v(O.Pb(),853),q=new me(T.Rf());q.a0?T.a?(O=T.b.Mf().b,g>O&&(n.v||T.c.d.c.length==1?(x=(g-O)/2,T.d.d=x,T.d.a=x):(l=v(Yt(T.c.d,0),187).Mf().b,d=(l-O)/2,T.d.d=u.Math.max(0,d),T.d.a=g-d-O))):T.d.a=n.t+g:aD(n.u)&&(y=VDe(T.b),y.d<0&&(T.d.d=-y.d),y.d+y.a>T.b.Mf().b&&(T.d.a=y.d+y.a-T.b.Mf().b))}function A0(){A0=z,g6=new fo((Ei(),lH),Nt(1)),hte=new fo(bw,80),ynn=new fo(LWe,5),lnn=new fo(X5,kI),mnn=new fo(N2e,Nt(1)),bnn=new fo(O2e,(Qn(),!0)),oGe=new bE(50),pnn=new fo(Ty,oGe),iGe=sH,lGe=UP,cnn=new fo(w2e,!1),sGe=oH,dnn=i3,fnn=g2,hnn=mw,unn=eC,gnn=a3,aGe=(tMe(),tnn),qbe=ann,ute=enn,Gbe=nnn,cGe=inn,wnn=_N,Enn=Kne,_nn=cH,vnn=Wne,uGe=(Uk(),l3),new fo(N6,uGe)}function OAr(n,i){var l;switch(kz(n)){case 6:return ro(i);case 7:return VS(i);case 8:return HS(i);case 3:return Array.isArray(i)&&(l=kz(i),!(l>=14&&l<=16));case 11:return i!=null&&typeof i===xpe;case 12:return i!=null&&(typeof i===NG||typeof i==xpe);case 0:return W0e(i,n.__elementTypeId$);case 2:return kde(i)&&i.Tm!==Z;case 1:return kde(i)&&i.Tm!==Z||W0e(i,n.__elementTypeId$);default:return!0}}function LAr(n){var i,l,d,g;d=n.o,WS(),n.A.dc()||Yi(n.A,jze)?g=d.a:(n.D?g=u.Math.max(d.a,JD(n.f)):g=JD(n.f),n.A.Hc((ud(),gH))&&!n.B.Hc((qh(),KP))&&(g=u.Math.max(g,JD(v(yl(n.p,(Bt(),or)),252))),g=u.Math.max(g,JD(v(yl(n.p,Mr),252)))),i=eUt(n),i&&(g=u.Math.max(g,i.a))),Vt(Ht(n.e.Tf().of((Ei(),i3))))?d.a=u.Math.max(d.a,g):d.a=g,l=n.f.i,l.c=0,l.b=g,tpe(n.f)}function Ujt(n,i){var l,d,g,y;return d=u.Math.min(u.Math.abs(n.c-(i.c+i.b)),u.Math.abs(n.c+n.b-i.c)),y=u.Math.min(u.Math.abs(n.d-(i.d+i.a)),u.Math.abs(n.d+n.a-i.d)),l=u.Math.abs(n.c+n.b/2-(i.c+i.b/2)),l>n.b/2+i.b/2||(g=u.Math.abs(n.d+n.a/2-(i.d+i.a/2)),g>n.a/2+i.a/2)?1:l==0&&g==0?0:l==0?y/g+1:g==0?d/l+1:u.Math.min(d/l,y/g)+1}function DAr(n,i){var l,d,g,y,x,T,R;for(y=0,T=0,R=0,g=new me(n.f.e);g.a0&&n.d!=(wD(),Ybe)&&(T+=x*(d.d.a+n.a[i.a][d.a]*(i.d.a-d.d.a)/l)),l>0&&n.d!=(wD(),Hbe)&&(R+=x*(d.d.b+n.a[i.a][d.a]*(i.d.b-d.d.b)/l)));switch(n.d.g){case 1:return new Ct(T/y,i.d.b);case 2:return new Ct(i.d.a,R/y);default:return new Ct(T/y,R/y)}}function zjt(n){var i,l,d,g,y,x;for(l=(!n.a&&(n.a=new gs(Ud,n,5)),n.a).i+2,x=new gu(l),Lt(x,new Ct(n.j,n.k)),ts(new xn(null,(!n.a&&(n.a=new gs(Ud,n,5)),new Nn(n.a,16))),new ZAt(x)),Lt(x,new Ct(n.b,n.c)),i=1;i0&&(Uz(R,!1,(ys(),Ol)),Uz(R,!0,ql)),Cu(i.g,new t8t(n,l)),Ni(n.g,i,l)}function Hjt(){Hjt=z;var n;for(lze=Te(xe(Wr,1),vi,28,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),ybe=st(Wr,vi,28,37,15,1),Oen=Te(xe(Wr,1),vi,28,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),cze=st(C2,Xpe,28,37,14,1),n=2;n<=36;n++)ybe[n]=Ps(u.Math.pow(n,lze[n])),cze[n]=oG(MG,ybe[n])}function MAr(n){var i;if((!n.a&&(n.a=new vt(xa,n,6,6)),n.a).i!=1)throw _e(new ar(yZt+(!n.a&&(n.a=new vt(xa,n,6,6)),n.a).i));return i=new ah,Fz(v(ze((!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b),0),84))&&bo(i,OKt(n,Fz(v(ze((!n.b&&(n.b=new Gn(Lr,n,4,7)),n.b),0),84)),!1)),Fz(v(ze((!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c),0),84))&&bo(i,OKt(n,Fz(v(ze((!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c),0),84)),!0)),i}function Vjt(n,i){var l,d,g,y,x;for(i.d?g=n.a.c==(Kp(),Cx)?Hs(i.b):os(i.b):g=n.a.c==(Kp(),Ey)?Hs(i.b):os(i.b),y=!1,d=new yr(_r(g.a.Kc(),new S));zr(d);)if(l=v(Rr(d),18),x=Vt(n.a.f[n.a.g[i.b.p].p]),!(!x&&!Jo(l)&&l.c.i.c==l.d.i.c)&&!(Vt(n.a.n[n.a.g[i.b.p].p])||Vt(n.a.n[n.a.g[i.b.p].p]))&&(y=!0,r1(n.b,n.a.g[M_r(l,i.b).p])))return i.c=!0,i.a=l,i;return i.c=y,i.a=null,i}function SPe(n,i,l){var d,g,y,x,T,R,O;if(d=l.gc(),d==0)return!1;if(n.Pj())if(R=n.Qj(),LLe(n,i,l),x=d==1?n.Ij(3,null,l.Kc().Pb(),i,R):n.Ij(5,null,l,i,R),n.Mj()){for(T=d<100?null:new Av(d),y=i+d,g=i;g0){for(x=0;x>16==-15&&n.Cb.Yh()&&Ofe(new Afe(n.Cb,9,13,l,n.c,uy(Uh(v(n.Cb,62)),n))):$e(n.Cb,90)&&n.Db>>16==-23&&n.Cb.Yh()&&(i=n.c,$e(i,90)||(i=(Pn(),n0)),$e(l,90)||(l=(Pn(),n0)),Ofe(new Afe(n.Cb,9,10,l,i,uy(Uc(v(n.Cb,29)),n)))))),n.c}function FAr(n,i,l){var d,g,y,x,T,R,O,D,q;for(l.Ug("Hyperedge merging",1),l3r(n,i),R=new go(i.b,0);R.b0,T=OZ(i,y),B8e(l?T.b:T.g,i),XT(T).c.length==1&&qa(d,T,d.c.b,d.c),g=new Ms(y,i),Fv(n.o,g),Yu(n.e.a,y))}function Zjt(n,i){var l,d,g,y,x,T,R;return d=u.Math.abs(sQ(n.b).a-sQ(i.b).a),T=u.Math.abs(sQ(n.b).b-sQ(i.b).b),g=0,R=0,l=1,x=1,d>n.b.b/2+i.b.b/2&&(g=u.Math.min(u.Math.abs(n.b.c-(i.b.c+i.b.b)),u.Math.abs(n.b.c+n.b.b-i.b.c)),l=1-g/d),T>n.b.a/2+i.b.a/2&&(R=u.Math.min(u.Math.abs(n.b.d-(i.b.d+i.b.a)),u.Math.abs(n.b.d+n.b.a-i.b.d)),x=1-R/T),y=u.Math.min(l,x),(1-y)*u.Math.sqrt(d*d+T*T)}function zAr(n){var i,l,d,g;for(ype(n,n.e,n.f,(LE(),f2),!0,n.c,n.i),ype(n,n.e,n.f,f2,!1,n.c,n.i),ype(n,n.e,n.f,H5,!0,n.c,n.i),ype(n,n.e,n.f,H5,!1,n.c,n.i),BAr(n,n.c,n.e,n.f,n.i),d=new go(n.i,0);d.b=65;l--)fp[l]=l-65<<24>>24;for(d=122;d>=97;d--)fp[d]=d-97+26<<24>>24;for(g=57;g>=48;g--)fp[g]=g-48+52<<24>>24;for(fp[43]=62,fp[47]=63,y=0;y<=25;y++)Oy[y]=65+y&vs;for(x=26,R=0;x<=51;++x,R++)Oy[x]=97+R&vs;for(n=52,T=0;n<=61;++n,T++)Oy[n]=48+T&vs;Oy[62]=43,Oy[63]=47}function Jjt(n,i){var l,d,g,y,x,T;return g=T9e(n),T=T9e(i),g==T?n.e==i.e&&n.a<54&&i.a<54?n.fi.f?1:0:(d=n.e-i.e,l=(n.d>0?n.d:u.Math.floor((n.a-1)*sXt)+1)-(i.d>0?i.d:u.Math.floor((i.a-1)*sXt)+1),l>d+1?g:l0&&(x=HT(x,uWt(d))),cGt(y,x))):gO&&(J=0,re+=R+i,R=0),hI(x,J,re),l=u.Math.max(l,J+D.a),R=u.Math.max(R,D.b),J+=D.a+i;return new Ct(l+i,re+R+i)}function kPe(n,i){var l,d,g,y,x,T,R;if(!z1(n))throw _e(new Tl(bZt));if(d=z1(n),y=d.g,g=d.f,y<=0&&g<=0)return Bt(),lc;switch(T=n.i,R=n.j,i.g){case 2:case 1:if(T<0)return Bt(),cr;if(T+n.g>y)return Bt(),gr;break;case 4:case 3:if(R<0)return Bt(),or;if(R+n.f>g)return Bt(),Mr}return x=(T+n.g/2)/y,l=(R+n.f/2)/g,x+l<=1&&x-l<=0?(Bt(),cr):x+l>=1&&x-l>=0?(Bt(),gr):l<.5?(Bt(),or):(Bt(),Mr)}function HAr(n,i,l,d,g){var y,x;if(y=zo(Us(i[0],ul),Us(d[0],ul)),n[0]=ti(y),y=xE(y,32),l>=g){for(x=1;x0&&(g.b[x++]=0,g.b[x++]=y.b[0]-1),i=1;i0&&(yue(R,R.d-g.d),g.c==(o1(),d2)&&Crr(R,R.a-g.d),R.d<=0&&R.i>0&&qa(i,R,i.c.b,i.c)));for(y=new me(n.f);y.a0&&(yK(T,T.i-g.d),g.c==(o1(),d2)&&Arr(T,T.b-g.d),T.i<=0&&T.d>0&&qa(l,T,l.c.b,l.c)))}function jAr(n,i,l,d,g){var y,x,T,R,O,D,q,J,re;for(Fn(),us(n,new dSt),x=KU(n),re=new Ot,J=new Ot,T=null,R=0;x.b!=0;)y=v(x.b==0?null:(Tr(x.b!=0),cf(x,x.a.a)),163),!T||lh(T)*od(T)/21&&(R>lh(T)*od(T)/2||x.b==0)&&(q=new eZ(J),D=lh(T)/od(T),O=vpe(q,i,new ek,l,d,g,D),Hi(i1(q.e),O),T=q,jn(re.c,q),R=0,J.c.length=0));return xs(re,J),re}function Gc(n,i,l,d,g){Pm();var y,x,T,R,O,D,q;if(yNe(n,"src"),yNe(l,"dest"),q=cd(n),R=cd(l),BIe((q.i&4)!=0,"srcType is not an array"),BIe((R.i&4)!=0,"destType is not an array"),D=q.c,x=R.c,BIe(D.i&1?D==x:(x.i&1)==0,"Array types don't match"),Lbr(n,i,l,d,g),!(D.i&1)&&q!=R)if(O=L_(n),y=L_(l),Ze(n)===Ze(l)&&id;)Ga(y,T,O[--i]);else for(T=d+g;d0),d.a.Xb(d.c=--d.b),q>J+R&&ld(d);for(x=new me(re);x.a0),d.a.Xb(d.c=--d.b)}}function KAr(){zi();var n,i,l,d,g,y;if(J2e)return J2e;for(n=new Td(4),C4(n,Qv(abe,!0)),gM(n,Qv("M",!0)),gM(n,Qv("C",!0)),y=new Td(4),d=0;d<11;d++)Jc(y,d,d);return i=new Td(4),C4(i,Qv("M",!0)),Jc(i,4448,4607),Jc(i,65438,65439),g=new jL(2),V_(g,n),V_(g,sB),l=new jL(2),l.Jm(XX(y,Qv("L",!0))),l.Jm(i),l=new r4(3,l),l=new bNe(g,l),J2e=l,J2e}function T4(n,i){var l,d,g,y,x,T,R,O;for(l=new RegExp(i,"g"),R=st(Xt,kt,2,0,6,1),d=0,O=n,y=null;;)if(T=l.exec(O),T==null||O==""){R[d]=O;break}else x=T.index,R[d]=(mo(0,x,O.length),O.substr(0,x)),O=af(O,x+T[0].length,O.length),l.lastIndex=0,y==O&&(R[d]=(mo(0,1,O.length),O.substr(0,1)),O=(sr(1,O.length+1),O.substr(1))),y=O,++d;if(n.length>0){for(g=R.length;g>0&&R[g-1]=="";)--g;g0&&(q-=d[0]+n.c,d[0]+=n.c),d[2]>0&&(q-=d[2]+n.c),d[1]=u.Math.max(d[1],q),eQ(n.a[1],l.c+i.b+d[0]-(d[1]-q)/2,d[1]);for(y=n.a,T=0,O=y.length;T0?(n.n.c.length-1)*n.i:0,d=new me(n.n);d.a1)for(d=Ur(g,0);d.b!=d.d.c;)for(l=v(Fr(d),235),y=0,R=new me(l.e);R.a0&&(i[0]+=n.c,q-=i[0]),i[2]>0&&(q-=i[2]+n.c),i[1]=u.Math.max(i[1],q),tQ(n.a[1],d.d+l.d+i[0]-(i[1]-q)/2,i[1]);else for(ae=d.d+l.d,re=d.a-l.d-l.a,x=n.a,R=0,D=x.length;R0||HE(g.b.d,n.b.d+n.b.a)==0&&d.b<0||HE(g.b.d+g.b.a,n.b.d)==0&&d.b>0){T=0;break}}else T=u.Math.min(T,ZHt(n,g,d));T=u.Math.min(T,rWt(n,y,T,d))}return T}function TG(n,i){var l,d,g,y,x,T,R;if(n.b<2)throw _e(new ar("The vector chain must contain at least a source and a target point."));for(g=(Tr(n.b!=0),v(n.a.a.c,8)),PU(i,g.a,g.b),R=new gk((!i.a&&(i.a=new gs(Ud,i,5)),i.a)),x=Ur(n,1);x.a=0&&y!=l))throw _e(new ar(sq));for(g=0,R=0;RWe(U1(x.g,x.d[0]).a)?(Tr(R.b>0),R.a.Xb(R.c=--R.b),KS(R,x),g=!0):T.e&&T.e.gc()>0&&(y=(!T.e&&(T.e=new Ot),T.e).Mc(i),O=(!T.e&&(T.e=new Ot),T.e).Mc(l),(y||O)&&((!T.e&&(T.e=new Ot),T.e).Fc(x),++x.c));g||jn(d.c,x)}function nkr(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se;return q=n.a.i+n.a.g/2,J=n.a.i+n.a.g/2,ae=i.i+i.g/2,de=i.j+i.f/2,T=new Ct(ae,de),O=v(Et(i,(Ei(),R6)),8),O.a=O.a+q,O.b=O.b+J,y=(T.b-O.b)/(T.a-O.a),d=T.b-y*T.a,le=l.i+l.g/2,Se=l.j+l.f/2,R=new Ct(le,Se),D=v(Et(l,R6),8),D.a=D.a+q,D.b=D.b+J,x=(R.b-D.b)/(R.a-D.a),g=R.b-x*R.a,re=(d-g)/(x-y),O.a>>0,"0"+i.toString(16)),d="\\x"+af(l,l.length-2,l.length)):n>=el?(l=(i=n>>>0,"0"+i.toString(16)),d="\\v"+af(l,l.length-6,l.length)):d=""+String.fromCharCode(n&vs)}return d}function oWt(n){var i,l,d;if(OT(v(oe(n,(qt(),Qa)),101)))for(l=new me(n.j);l.a=i.o&&l.f<=i.f||i.a*.5<=l.f&&i.a*1.5>=l.f){if(x=v(Yt(i.n,i.n.c.length-1),209),x.e+x.d+l.g+g<=d&&(y=v(Yt(i.n,i.n.c.length-1),209),y.f-n.f+l.f<=n.b||n.a.c.length==1))return TLe(i,l),!0;if(i.s+l.g<=d&&(i.t+i.d+l.f+g<=n.b||n.a.c.length==1))return Lt(i.b,l),T=v(Yt(i.n,i.n.c.length-1),209),Lt(i.n,new SQ(i.s,T.f+T.a+i.i,i.i)),aDe(v(Yt(i.n,i.n.c.length-1),209),l),tWt(i,l),!0}return!1}function cWt(n,i,l){var d,g,y,x;return n.Pj()?(g=null,y=n.Qj(),d=n.Ij(1,x=Mfe(n,i,l),l,i,y),n.Mj()&&!(n.Yi()&&x!=null?Yi(x,l):Ze(x)===Ze(l))?(x!=null&&(g=n.Oj(x,g)),g=n.Nj(l,g),n.Tj()&&(g=n.Wj(x,l,g)),g?(g.nj(d),g.oj()):n.Jj(d)):(n.Tj()&&(g=n.Wj(x,l,g)),g?(g.nj(d),g.oj()):n.Jj(d)),x):(x=Mfe(n,i,l),n.Mj()&&!(n.Yi()&&x!=null?Yi(x,l):Ze(x)===Ze(l))&&(g=null,x!=null&&(g=n.Oj(x,null)),g=n.Nj(l,g),g&&g.oj()),x)}function ckr(n,i){var l,d,g,y,x;if(i.Ug("Path-Like Graph Wrapping",1),n.b.c.length==0){i.Vg();return}if(g=new MMe(n),x=(g.i==null&&(g.i=C9e(g,new B6e)),We(g.i)*g.f),l=x/(g.i==null&&(g.i=C9e(g,new B6e)),We(g.i)),g.b>l){i.Vg();return}switch(v(oe(n,(qt(),tve)),351).g){case 2:y=new $6e;break;case 0:y=new P6e;break;default:y=new U6e}if(d=y.og(n,g),!y.pg())switch(v(oe(n,dne),352).g){case 2:d=JHt(g,d);break;case 1:d=Hqt(g,d)}i6r(n,g,d),i.Vg()}function cM(n,i){var l,d,g,y,x,T,R,O;i%=24,n.q.getHours()!=i&&(d=new u.Date(n.q.getTime()),d.setDate(d.getDate()+1),T=n.q.getTimezoneOffset()-d.getTimezoneOffset(),T>0&&(R=T/60|0,O=T%60,g=n.q.getDate(),l=n.q.getHours(),l+R>=24&&++g,y=new u.Date(n.q.getFullYear(),n.q.getMonth(),g,i+R,n.q.getMinutes()+O,n.q.getSeconds(),n.q.getMilliseconds()),n.q.setTime(y.getTime()))),x=n.q.getTime(),n.q.setTime(x+36e5),n.q.getHours()!=i&&n.q.setTime(x)}function ukr(n,i){var l,d,g,y;if(x0r(n.d,n.e),n.c.a.$b(),We(at(oe(i.j,(qt(),ene))))!=0||We(at(oe(i.j,ene)))!=0)for(l=b5,Ze(oe(i.j,nm))!==Ze((Zp(),wy))&&_t(i.j,(At(),c2),(Qn(),!0)),y=v(oe(i.j,gP),17).a,g=0;gg&&++O,Lt(x,($n(T+O,i.c.length),v(i.c[T+O],17))),R+=($n(T+O,i.c.length),v(i.c[T+O],17)).a-d,++l;l=de&&n.e[R.p]>ae*n.b||Ue>=l*de)&&(jn(J.c,T),T=new Ot,bo(x,y),y.a.$b(),O-=D,re=u.Math.max(re,O*n.b+le),O+=Ue,Me=Ue,Ue=0,D=0,le=0);return new Ms(re,J)}function rpe(n){var i,l,d,g,y,x,T;if(!n.d){if(T=new FSt,i=eB,y=i.a.zc(n,i),y==null){for(d=new mr(Fl(n));d.e!=d.i.gc();)l=v(wr(d),29),Ka(T,rpe(l));i.a.Bc(n)!=null,i.a.gc()==0}for(x=T.i,g=(!n.q&&(n.q=new vt(e0,n,11,10)),new mr(n.q));g.e!=g.i.gc();++x)v(wr(g),411);Ka(T,(!n.q&&(n.q=new vt(e0,n,11,10)),n.q)),h4(T),n.d=new NT((v(ze(bt((Mv(),Zn).o),9),19),T.i),T.g),n.e=v(T.g,688),n.e==null&&(n.e=dhn),$h(n).b&=-17}return n.d}function pI(n,i,l,d){var g,y,x,T,R,O;if(O=Iu(n.e.Dh(),i),R=0,g=v(n.g,124),al(),v(i,69).xk()){for(x=0;x1||ae==-1)if(q=v(le,71),J=v(D,71),q.dc())J.$b();else for(x=!!sl(i),y=0,T=n.a?q.Kc():q.Ii();T.Ob();)O=v(T.Pb(),58),g=v(j1(n,O),58),g?(x?(R=J.dd(g),R==-1?J.Gi(y,g):y!=R&&J.Ui(y,g)):J.Gi(y,g),++y):n.b&&!x&&(J.Gi(y,O),++y);else le==null?D.Wb(null):(g=j1(n,le),g==null?n.b&&!sl(i)&&D.Wb(le):D.Wb(g))}function gkr(n,i){var l,d,g,y,x,T,R,O;for(l=new xvt,g=new yr(_r(Hs(i).a.Kc(),new S));zr(g);)if(d=v(Rr(g),18),!Jo(d)&&(T=d.c.i,zDe(T,gte))){if(O=sPe(n,T,gte,pte),O==-1)continue;l.b=u.Math.max(l.b,O),!l.a&&(l.a=new Ot),Lt(l.a,T)}for(x=new yr(_r(os(i).a.Kc(),new S));zr(x);)if(y=v(Rr(x),18),!Jo(y)&&(R=y.d.i,zDe(R,pte))){if(O=sPe(n,R,pte,gte),O==-1)continue;l.d=u.Math.max(l.d,O),!l.c&&(l.c=new Ot),Lt(l.c,R)}return l}function mkr(n,i,l,d){var g,y,x,T,R,O,D;if(l.d.i!=i.i){for(g=new Jm(n),g_(g,(lr(),Ws)),_t(g,(At(),Ji),l),_t(g,(qt(),Qa),(co(),su)),jn(d.c,g),x=new zc,rc(x,g),Bs(x,(Bt(),cr)),T=new zc,rc(T,g),Bs(T,gr),D=l.d,lo(l,x),y=new NE,Ul(y,l),_t(y,Nl,null),Uo(y,T),lo(y,D),O=new go(l.b,0);O.b1e6)throw _e(new NK("power of ten too big"));if(n<=qi)return Ok(mG(f6[1],i),i);for(d=mG(f6[1],qi),g=d,l=xc(n-qi),i=Ps(n%qi);Oc(l,qi)>0;)g=HT(g,d),l=zf(l,qi);for(g=HT(g,mG(f6[1],i)),g=Ok(g,qi),l=xc(n-qi);Oc(l,qi)>0;)g=Ok(g,qi),l=zf(l,qi);return g=Ok(g,i),g}function hWt(n){var i,l,d,g,y,x,T,R,O,D;for(R=new me(n.a);R.aO&&d>O)D=T,O=We(i.p[T.p])+We(i.d[T.p])+T.o.b+T.d.a;else{g=!1,l._g()&&l.bh("bk node placement breaks on "+T+" which should have been after "+D);break}if(!g)break}return l._g()&&l.bh(i+" is feasible: "+g),g}function OPe(n,i,l,d){var g,y,x,T,R,O,D,q,J;if(y=new Jm(n),g_(y,(lr(),iu)),_t(y,(qt(),Qa),(co(),su)),g=0,i){for(x=new zc,_t(x,(At(),Ji),i),_t(y,Ji,i.i),Bs(x,(Bt(),cr)),rc(x,y),J=Xp(i.e),O=J,D=0,q=O.length;D0){if(g<0&&D.a&&(g=R,y=O[0],d=0),g>=0){if(T=D.b,R==g&&(T-=d++,T==0))return 0;if(!gKt(i,O,D,T,x)){R=g-1,O[0]=y;continue}}else if(g=-1,!gKt(i,O,D,0,x))return 0}else{if(g=-1,Do(D.c,0)==32){if(q=O[0],mFt(i,O),O[0]>q)continue}else if(ifr(i,D.c,O[0])){O[0]+=D.c.length;continue}return 0}return sRr(x,l)?O[0]:0}function Ekr(n,i,l){var d,g,y,x,T,R,O,D,q,J;for(D=new rQ(new eCt(l)),T=st(Wh,Qg,28,n.f.e.c.length,16,1),gNe(T,T.length),l[i.a]=0,O=new me(n.f.e);O.a=0&&!e5(n,D,q);)--q;g[D]=q}for(re=0;re=0&&!e5(n,T,ae);)--T;y[ae]=T}for(R=0;Ri[J]&&Jd[R]&&CJ(n,R,J,!1,!0)}function LPe(n){var i,l,d,g,y,x,T,R;l=Vt(Ht(oe(n,(A0(),cnn)))),y=n.a.c.d,T=n.a.d.d,l?(x=Vp($s(new Ct(T.a,T.b),y),.5),R=Vp(Eo(n.e),.5),i=$s(Hi(new Ct(y.a,y.b),x),R),G8e(n.d,i)):(g=We(at(oe(n.a,ynn))),d=n.d,y.a>=T.a?y.b>=T.b?(d.a=T.a+(y.a-T.a)/2+g,d.b=T.b+(y.b-T.b)/2-g-n.e.b):(d.a=T.a+(y.a-T.a)/2+g,d.b=y.b+(T.b-y.b)/2+g):y.b>=T.b?(d.a=y.a+(T.a-y.a)/2+g,d.b=T.b+(y.b-T.b)/2+g):(d.a=y.a+(T.a-y.a)/2+g,d.b=y.b+(T.b-y.b)/2-g-n.e.b))}function hM(n){var i,l,d,g,y,x,T,R;if(!n.f){if(R=new Y6e,T=new Y6e,i=eB,x=i.a.zc(n,i),x==null){for(y=new mr(Fl(n));y.e!=y.i.gc();)g=v(wr(y),29),Ka(R,hM(g));i.a.Bc(n)!=null,i.a.gc()==0}for(d=(!n.s&&(n.s=new vt(Ju,n,21,17)),new mr(n.s));d.e!=d.i.gc();)l=v(wr(d),179),$e(l,102)&&Yr(T,v(l,19));h4(T),n.r=new r9t(n,(v(ze(bt((Mv(),Zn).o),6),19),T.i),T.g),Ka(R,n.r),h4(R),n.f=new NT((v(ze(bt(Zn.o),5),19),R.i),R.g),$h(n).b&=-3}return n.f}function fWt(n){dE(n,new H_(cE(sE(lE(oE(new f_,X_),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new xr))),It(n,X_,bge,zt(tGe)),It(n,X_,yge,zt(Fbe)),It(n,X_,s6,zt(Wtn)),It(n,X_,rx,zt(eGe)),It(n,X_,wBe,zt(Ztn)),It(n,X_,EBe,zt(Qtn)),It(n,X_,_Be,zt(Jtn)),It(n,X_,xBe,zt(Xtn)),It(n,X_,IBe,zt(Ktn)),It(n,X_,NBe,zt(Bbe)),It(n,X_,OBe,zt(Jze)),It(n,X_,LBe,zt(ote))}function IJ(){IJ=z,wKe=Te(xe(Tf,1),rg,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),Gun=new RegExp(`[ \r\f]+`);try{QP=Te(xe(iIr,1),Yn,2114,0,[new oU((c8e(),PZ("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",HU((IK(),IK(),jM))))),new oU(PZ("yyyy-MM-dd'T'HH:mm:ss'.'SSS",HU(jM))),new oU(PZ("yyyy-MM-dd'T'HH:mm:ss",HU(jM))),new oU(PZ("yyyy-MM-dd'T'HH:mm",HU(jM))),new oU(PZ("yyyy-MM-dd",HU(jM)))])}catch(n){if(n=Da(n),!$e(n,82))throw _e(n)}}function Skr(n,i){var l,d,g,y;if(g=Gh(n.d,1)!=0,d=fPe(n,i),d==0&&Vt(Ht(oe(i.j,(At(),c2)))))return 0;!Vt(Ht(oe(i.j,(At(),c2))))&&!Vt(Ht(oe(i.j,P5)))||Ze(oe(i.j,(qt(),nm)))===Ze((Zp(),wy))?i.c.mg(i.e,g):g=Vt(Ht(oe(i.j,c2))),_G(n,i,g,!0),Vt(Ht(oe(i.j,P5)))&&_t(i.j,P5,(Qn(),!1)),Vt(Ht(oe(i.j,c2)))&&(_t(i.j,c2,(Qn(),!1)),_t(i.j,P5,!0)),l=fPe(n,i);do{if(S9e(n),l==0)return 0;g=!g,y=l,_G(n,i,g,!1),l=fPe(n,i)}while(y>l);return y}function pWt(n,i){var l,d,g,y;if(g=Gh(n.d,1)!=0,d=uJ(n,i),d==0&&Vt(Ht(oe(i.j,(At(),c2)))))return 0;!Vt(Ht(oe(i.j,(At(),c2))))&&!Vt(Ht(oe(i.j,P5)))||Ze(oe(i.j,(qt(),nm)))===Ze((Zp(),wy))?i.c.mg(i.e,g):g=Vt(Ht(oe(i.j,c2))),_G(n,i,g,!0),Vt(Ht(oe(i.j,P5)))&&_t(i.j,P5,(Qn(),!1)),Vt(Ht(oe(i.j,c2)))&&(_t(i.j,c2,(Qn(),!1)),_t(i.j,P5,!0)),l=uJ(n,i);do{if(S9e(n),l==0)return 0;g=!g,y=l,_G(n,i,g,!1),l=uJ(n,i)}while(y>l);return y}function DPe(n,i,l,d){var g,y,x,T,R,O,D,q,J;return R=$s(new Ct(l.a,l.b),n),O=R.a*i.b-R.b*i.a,D=i.a*d.b-i.b*d.a,q=(R.a*d.b-R.b*d.a)/D,J=O/D,D==0?O==0?(g=Hi(new Ct(l.a,l.b),Vp(new Ct(d.a,d.b),.5)),y=$v(n,g),x=$v(Hi(new Ct(n.a,n.b),i),g),T=u.Math.sqrt(d.a*d.a+d.b*d.b)*.5,y=0&&q<=1&&J>=0&&J<=1?Hi(new Ct(n.a,n.b),Vp(new Ct(i.a,i.b),q)):null}function Tkr(n,i,l){var d,g,y,x,T;if(d=v(oe(n,(qt(),Gye)),21),l.a>i.a&&(d.Hc((q_(),PP))?n.c.a+=(l.a-i.a)/2:d.Hc(BP)&&(n.c.a+=l.a-i.a)),l.b>i.b&&(d.Hc((q_(),$P))?n.c.b+=(l.b-i.b)/2:d.Hc(FP)&&(n.c.b+=l.b-i.b)),v(oe(n,(At(),au)),21).Hc((cl(),wf))&&(l.a>i.a||l.b>i.b))for(T=new me(n.a);T.ai.a&&(d.Hc((q_(),PP))?n.c.a+=(l.a-i.a)/2:d.Hc(BP)&&(n.c.a+=l.a-i.a)),l.b>i.b&&(d.Hc((q_(),$P))?n.c.b+=(l.b-i.b)/2:d.Hc(FP)&&(n.c.b+=l.b-i.b)),v(oe(n,(At(),au)),21).Hc((cl(),wf))&&(l.a>i.a||l.b>i.b))for(x=new me(n.a);x.a0?n.i:0)>i&&R>0&&(y=0,x+=R+n.i,g=u.Math.max(g,J),d+=R+n.i,R=0,J=0,l&&(++q,Lt(n.n,new SQ(n.s,x,n.i))),T=0),J+=O.g+(T>0?n.i:0),R=u.Math.max(R,O.f),l&&aDe(v(Yt(n.n,q),209),O),y+=O.g+(T>0?n.i:0),++T;return g=u.Math.max(g,J),d+=R,l&&(n.r=g,n.d=d,cDe(n.j)),new rf(n.s,n.t,g,d)}function ipe(n){var i,l,d,g,y,x,T,R,O,D,q,J;for(n.b=!1,q=ka,R=Ss,J=ka,O=Ss,d=n.e.a.ec().Kc();d.Ob();)for(l=v(d.Pb(),272),g=l.a,q=u.Math.min(q,g.c),R=u.Math.max(R,g.c+g.b),J=u.Math.min(J,g.d),O=u.Math.max(O,g.d+g.a),x=new me(l.c);x.an.o.a&&(D=(R-n.o.a)/2,T.b=u.Math.max(T.b,D),T.c=u.Math.max(T.c,D))}}function Rkr(n){var i,l,d,g,y,x,T,R;for(y=new cMt,asr(y,(Fk(),Rcn)),d=(g=Xfe(n,st(Xt,kt,2,0,6,1)),new hL(new wh(new Xue(n,g).b)));d.bT?1:-1:J9e(n.a,i.a,y),g==-1)q=-R,D=x==R?wfe(i.a,T,n.a,y):xfe(i.a,T,n.a,y);else if(q=x,x==R){if(g==0)return eg(),KM;D=wfe(n.a,y,i.a,T)}else D=xfe(n.a,y,i.a,T);return O=new T_(q,D.length,D),gD(O),O}function Ikr(n,i){var l,d,g,y;if(y=Qjt(i),!i.c&&(i.c=new vt(Oh,i,9,9)),ts(new xn(null,(!i.c&&(i.c=new vt(Oh,i,9,9)),new Nn(i.c,16))),new iCt(y)),g=v(oe(y,(At(),au)),21),E7r(i,g),g.Hc((cl(),wf)))for(d=new mr((!i.c&&(i.c=new vt(Oh,i,9,9)),i.c));d.e!=d.i.gc();)l=v(wr(d),123),Q7r(n,i,y,l);return v(Et(i,(qt(),uw)),181).gc()!=0&&qYt(i,y),Vt(Ht(oe(y,tVe)))&&g.Fc(Vte),ya(y,Bq)&&Z6t(new PLe(We(at(oe(y,Bq)))),y),Ze(Et(i,W4))===Ze((Km(),Cy))?w8r(n,i,y):a8r(n,i,y),y}function Nkr(n){var i,l,d,g,y,x,T,R;for(g=new me(n.b);g.a0?af(l.a,0,y-1):""):(mo(0,y-1,n.length),n.substr(0,y-1)):l?l.a:n}function Okr(n,i){var l,d,g,y,x,T,R;for(i.Ug("Sort By Input Model "+oe(n,(qt(),nm)),1),g=0,d=new me(n.b);d.a=n.b.length?(y[g++]=x.b[d++],y[g++]=x.b[d++]):d>=x.b.length?(y[g++]=n.b[l++],y[g++]=n.b[l++]):x.b[d]0?n.i:0)),++i;for(vLe(n.n,R),n.d=l,n.r=d,n.g=0,n.f=0,n.e=0,n.o=ka,n.p=ka,y=new me(n.b);y.a0&&(g=(!n.n&&(n.n=new vt(wl,n,1,7)),v(ze(n.n,0),135)).a,!g||bi(bi((i.a+=' "',i),g),'"'))),l=(!n.b&&(n.b=new Gn(Lr,n,4,7)),!(n.b.i<=1&&(!n.c&&(n.c=new Gn(Lr,n,5,8)),n.c.i<=1))),l?i.a+=" [":i.a+=" ",bi(i,k8e(new que,new mr(n.b))),l&&(i.a+="]"),i.a+=Tge,l&&(i.a+="["),bi(i,k8e(new que,new mr(n.c))),l&&(i.a+="]"),i.a)}function Dkr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn;for(yt=n.c,xt=i.c,l=$l(yt.a,n,0),d=$l(xt.a,i,0),Ue=v(VE(n,(ll(),Rh)).Kc().Pb(),12),mn=v(VE(n,_u).Kc().Pb(),12),je=v(VE(i,Rh).Kc().Pb(),12),Kn=v(VE(i,_u).Kc().Pb(),12),Se=Xp(Ue.e),Mt=Xp(mn.g),Me=Xp(je.e),yn=Xp(Kn.g),m4(n,d,xt),x=Me,D=0,ae=x.length;DD?new R_((o1(),n3),l,i,O-D):O>0&&D>0&&(new R_((o1(),n3),i,l,0),new R_(n3,l,i,0))),x)}function Bkr(n,i,l){var d,g,y;for(n.a=new Ot,y=Ur(i.b,0);y.b!=y.d.c;){for(g=v(Fr(y),40);v(oe(g,(pc(),gg)),17).a>n.a.c.length-1;)Lt(n.a,new Ms(b5,m$e));d=v(oe(g,gg),17).a,l==(ys(),Ol)||l==ql?(g.e.aWe(at(v(Yt(n.a,d),42).b))&&_ue(v(Yt(n.a,d),42),g.e.a+g.f.a)):(g.e.bWe(at(v(Yt(n.a,d),42).b))&&_ue(v(Yt(n.a,d),42),g.e.b+g.f.b))}}function bWt(n,i,l,d){var g,y,x,T,R,O,D;if(y=IZ(d),T=Vt(Ht(oe(d,(qt(),KHe)))),(T||Vt(Ht(oe(n,ane))))&&!OT(v(oe(n,Qa),101)))g=zk(y),R=xPe(n,l,l==(ll(),_u)?g:Xz(g));else switch(R=new zc,rc(R,n),i?(D=R.n,D.a=i.a-n.n.a,D.b=i.b-n.n.b,xHt(D,0,0,n.o.a,n.o.b),Bs(R,Fjt(R,y))):(g=zk(y),Bs(R,l==(ll(),_u)?g:Xz(g))),x=v(oe(d,(At(),au)),21),O=R.j,y.g){case 2:case 1:(O==(Bt(),or)||O==Mr)&&x.Fc((cl(),L5));break;case 4:case 3:(O==(Bt(),gr)||O==cr)&&x.Fc((cl(),L5))}return R}function yWt(n,i){var l,d,g,y,x,T;for(x=new P_(new b_(n.f.b).a);x.b;){if(y=zE(x),g=v(y.ld(),602),i==1){if(g.Af()!=(ys(),Ef)&&g.Af()!=lp)continue}else if(g.Af()!=(ys(),Ol)&&g.Af()!=ql)continue;switch(d=v(v(y.md(),42).b,86),T=v(v(y.md(),42).a,194),l=T.c,g.Af().g){case 2:d.g.c=n.e.a,d.g.b=u.Math.max(1,d.g.b+l);break;case 1:d.g.c=d.g.c+l,d.g.b=u.Math.max(1,d.g.b-l);break;case 4:d.g.d=n.e.b,d.g.a=u.Math.max(1,d.g.a+l);break;case 3:d.g.d=d.g.d+l,d.g.a=u.Math.max(1,d.g.a-l)}}}function Fkr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le;for(T=st(Wr,vi,28,i.b.c.length,15,1),O=st(eye,wt,273,i.b.c.length,0,1),R=st(tm,gy,10,i.b.c.length,0,1),q=n.a,J=0,re=q.length;J0&&R[d]&&(ae=PT(n.b,R[d],g)),le=u.Math.max(le,g.c.c.b+ae);for(y=new me(D.e);y.a1)throw _e(new ar(hq));R||(y=zg(i,d.Kc().Pb()),x.Fc(y))}return $9e(n,sMe(n,i,l),x)}function OJ(n,i,l){var d,g,y,x,T,R,O,D;if(tb(n.e,i))R=(al(),v(i,69).xk()?new VX(i,n):new DU(i,n)),dJ(R.c,R.b),WL(R,v(l,16));else{for(D=Iu(n.e.Dh(),i),d=v(n.g,124),x=0;x"}R!=null&&(i.a+=""+R)}else n.e?(T=n.e.zb,T!=null&&(i.a+=""+T)):(i.a+="?",n.b?(i.a+=" super ",cpe(n.b,i)):n.f&&(i.a+=" extends ",cpe(n.f,i)))}function qkr(n){n.b=null,n.a=null,n.o=null,n.q=null,n.v=null,n.w=null,n.B=null,n.p=null,n.Q=null,n.R=null,n.S=null,n.T=null,n.U=null,n.V=null,n.W=null,n.bb=null,n.eb=null,n.ab=null,n.H=null,n.db=null,n.c=null,n.d=null,n.f=null,n.n=null,n.r=null,n.s=null,n.u=null,n.G=null,n.J=null,n.e=null,n.j=null,n.i=null,n.g=null,n.k=null,n.t=null,n.F=null,n.I=null,n.L=null,n.M=null,n.O=null,n.P=null,n.$=null,n.N=null,n.Z=null,n.cb=null,n.K=null,n.D=null,n.A=null,n.C=null,n._=null,n.fb=null,n.X=null,n.Y=null,n.gb=!1,n.hb=!1}function Hkr(n){var i,l,d,g;if(d=wpe((!n.c&&(n.c=uz(xc(n.f))),n.c),0),n.e==0||n.a==0&&n.f!=-1&&n.e<0)return d;if(i=T9e(n)<0?1:0,l=n.e,g=(d.length+1+u.Math.abs(Ps(n.e)),new sk),i==1&&(g.a+="-"),n.e>0)if(l-=d.length-i,l>=0){for(g.a+="0.";l>iw.length;l-=iw.length)f9t(g,iw);QNt(g,iw,Ps(l)),bi(g,(sr(i,d.length+1),d.substr(i)))}else l=i-l,bi(g,af(d,i,Ps(l))),g.a+=".",bi(g,SNe(d,Ps(l)));else{for(bi(g,(sr(i,d.length+1),d.substr(i)));l<-iw.length;l+=iw.length)f9t(g,iw);QNt(g,iw,Ps(-l))}return g.a}function upe(n){var i,l,d,g,y,x,T,R,O;return!(n.k!=(lr(),is)||n.j.c.length<=1||(y=v(oe(n,(qt(),Qa)),101),y==(co(),su))||(g=(g4(),(n.q?n.q:(Fn(),Fn(),Jg))._b(wx)?d=v(oe(n,wx),203):d=v(oe(So(n),fP),203),d),g==mne)||!(g==q5||g==G5)&&(x=We(at(p4(n,pP))),i=v(oe(n,$q),140),!i&&(i=new oIe(x,x,x,x)),O=sc(n,(Bt(),cr)),R=i.d+i.a+(O.gc()-1)*x,R>n.o.b||(l=sc(n,gr),T=i.d+i.a+(l.gc()-1)*x,T>n.o.b)))}function Vkr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de;i.Ug("Orthogonal edge routing",1),O=We(at(oe(n,(qt(),z5)))),l=We(at(oe(n,$5))),d=We(at(oe(n,dw))),J=new Lde(0,l),de=0,x=new go(n.b,0),T=null,D=null,R=null,q=null;do D=x.b0?(re=(ae-1)*l,T&&(re+=d),D&&(re+=d),rei||Vt(Ht(Et(R,(Z1(),Zq)))))&&(g=0,y+=D.b+l,jn(q.c,D),D=new nOe(y,l),d=new d0e(0,D.f,D,l),aZ(D,d),g=0),d.b.c.length==0||!Vt(Ht(Et(Aa(R),(Z1(),t2e))))&&(R.f>=d.o&&R.f<=d.f||d.a*.5<=R.f&&d.a*1.5>=R.f)?TLe(d,R):(x=new d0e(d.s+d.r+l,D.f,D,l),aZ(D,x),TLe(x,R)),g=R.i+R.g;return jn(q.c,D),q}function fM(n){var i,l,d,g;if(!(n.b==null||n.b.length<=2)&&!n.a){for(i=0,g=0;g=n.b[g+1])g+=2;else if(l0)for(d=new Eh(v(Zi(n.a,y),21)),Fn(),us(d,new E7e(i)),g=new go(y.b,0);g.b0&&d>=-6?d>=0?BU(y,l-Ps(n.e),"."):(t0e(y,i-1,i-1,"0."),BU(y,i+1,Qp(iw,0,-Ps(d)-1))):(l-i>=1&&(BU(y,i,"."),++l),BU(y,l,"E"),d>0&&BU(y,++l,"+"),BU(y,++l,""+sD(xc(d)))),n.g=y.a,n.g))}function t6r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt;d=We(at(oe(i,(qt(),ZHe)))),yt=v(oe(i,gP),17).a,J=4,g=3,xt=20/yt,re=!1,R=0,x=qi;do{for(y=R!=1,q=R!=0,Mt=0,de=n.a,Me=0,je=de.length;Meyt)?(R=2,x=qi):R==0?(R=1,x=Mt):(R=0,x=Mt)):(re=Mt>=x||x-Mt0?1:mE(isNaN(d),isNaN(0)))>=0^(x0(cg),(u.Math.abs(T)<=cg||T==0||isNaN(T)&&isNaN(0)?0:T<0?-1:T>0?1:mE(isNaN(T),isNaN(0)))>=0)?u.Math.max(T,d):(x0(cg),(u.Math.abs(d)<=cg||d==0||isNaN(d)&&isNaN(0)?0:d<0?-1:d>0?1:mE(isNaN(d),isNaN(0)))>0?u.Math.sqrt(T*T+d*d):-u.Math.sqrt(T*T+d*d))}function V_(n,i){var l,d,g,y,x,T;if(i){if(!n.a&&(n.a=new kK),n.e==2){AK(n.a,i);return}if(i.e==1){for(g=0;g=el?bl(l,SLe(d)):c8(l,d&vs),x=new Zde(10,null,0),Uhr(n.a,x,T-1)):(l=(x.Mm().length+y,new EL),bl(l,x.Mm())),i.e==0?(d=i.Km(),d>=el?bl(l,SLe(d)):c8(l,d&vs)):bl(l,i.Mm()),v(x,530).b=l.a}}function i6r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de;if(!l.dc()){for(T=0,J=0,d=l.Kc(),ae=v(d.Pb(),17).a;T1&&(R=O.Hg(R,n.a,T));return R.c.length==1?v(Yt(R,R.c.length-1),238):R.c.length==2?jkr(($n(0,R.c.length),v(R.c[0],238)),($n(1,R.c.length),v(R.c[1],238)),x,y):null}function c6r(n,i,l){var d,g,y,x,T,R,O;for(l.Ug("Find roots",1),n.a.c.length=0,g=Ur(i.b,0);g.b!=g.d.c;)d=v(Fr(g),40),d.b.b==0&&(_t(d,(fa(),p2),(Qn(),!0)),Lt(n.a,d));switch(n.a.c.length){case 0:y=new h0e(0,i,"DUMMY_ROOT"),_t(y,(fa(),p2),(Qn(),!0)),_t(y,Sve,!0),pi(i.b,y);break;case 1:break;default:for(x=new h0e(0,i,_ee),R=new me(n.a);R.a=u.Math.abs(d.b)?(d.b=0,y.d+y.a>x.d&&y.dx.c&&y.c0){if(i=new a8e(n.i,n.g),l=n.i,y=l<100?null:new Av(l),n.Tj())for(d=0;d0){for(T=n.g,O=n.i,_D(n),y=O<100?null:new Av(O),d=0;d>13|(n.m&15)<<9,g=n.m>>4&8191,y=n.m>>17|(n.h&255)<<5,x=(n.h&1048320)>>8,T=i.l&8191,R=i.l>>13|(i.m&15)<<9,O=i.m>>4&8191,D=i.m>>17|(i.h&255)<<5,q=(i.h&1048320)>>8,yn=l*T,mn=d*T,Kn=g*T,Xn=y*T,Sr=x*T,R!=0&&(mn+=l*R,Kn+=d*R,Xn+=g*R,Sr+=y*R),O!=0&&(Kn+=l*O,Xn+=d*O,Sr+=g*O),D!=0&&(Xn+=l*D,Sr+=d*D),q!=0&&(Sr+=l*q),re=yn&Hh,ae=(mn&511)<<13,J=re+ae,de=yn>>22,Se=mn>>9,Me=(Kn&262143)<<4,Ue=(Xn&31)<<17,le=de+Se+Me+Ue,yt=Kn>>18,xt=Xn>>5,Mt=(Sr&4095)<<8,je=yt+xt+Mt,le+=J>>22,J&=Hh,je+=le>>22,le&=Hh,je&=rb,Su(J,le,je)}function RWt(n){var i,l,d,g,y,x,T;if(T=v(Yt(n.j,0),12),T.g.c.length!=0&&T.e.c.length!=0)throw _e(new Tl("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(T.g.c.length!=0){for(y=ka,l=new me(T.g);l.a4)if(n.fk(i)){if(n.al()){if(g=v(i,54),d=g.Eh(),R=d==n.e&&(n.ml()?g.yh(g.Fh(),n.il())==n.jl():-1-g.Fh()==n.Lj()),n.nl()&&!R&&!d&&g.Jh()){for(y=0;y0&&IHt(n,T,q);for(g=new me(q);g.an.d[x.p]&&(l+=bOe(n.b,y)*v(R.b,17).a,Fv(n.a,Nt(y)));for(;!wL(n.a);)XOe(n.b,v(xk(n.a),17).a)}return l}function p6r(n,i){var l,d,g,y,x,T,R,O,D,q;if(D=v(oe(n,(At(),vc)),64),d=v(Yt(n.j,0),12),D==(Bt(),or)?Bs(d,Mr):D==Mr&&Bs(d,or),v(oe(i,(qt(),uw)),181).Hc((ud(),vw))){if(R=We(at(oe(n,uN))),O=We(at(oe(n,hN))),x=We(at(oe(n,J4))),T=v(oe(i,Q4),21),T.Hc((Ah(),ub)))for(l=O,q=n.o.a/2-d.n.a,y=new me(d.f);y.a0&&(O=n.n.a/y);break;case 2:case 4:g=n.i.o.b,g>0&&(O=n.n.b/g)}_t(n,(At(),bx),O)}if(R=n.o,x=n.a,d)x.a=d.a,x.b=d.b,n.d=!0;else if(i!=up&&i!=y2&&T!=lc)switch(T.g){case 1:x.a=R.a/2;break;case 2:x.a=R.a,x.b=R.b/2;break;case 3:x.a=R.a/2,x.b=R.b;break;case 4:x.b=R.b/2}else x.a=R.a/2,x.b=R.b/2}function pM(n){var i,l,d,g,y,x,T,R,O,D;if(n.Pj())if(D=n.Ej(),R=n.Qj(),D>0)if(i=new R9e(n.pj()),l=D,y=l<100?null:new Av(l),GU(n,l,i.g),g=l==1?n.Ij(4,ze(i,0),null,0,R):n.Ij(6,i,null,-1,R),n.Mj()){for(d=new mr(i);d.e!=d.i.gc();)y=n.Oj(wr(d),y);y?(y.nj(g),y.oj()):n.Jj(g)}else y?(y.nj(g),y.oj()):n.Jj(g);else GU(n,n.Ej(),n.Fj()),n.Jj(n.Ij(6,(Fn(),Zo),null,-1,R));else if(n.Mj())if(D=n.Ej(),D>0){for(T=n.Fj(),O=D,GU(n,D,T),y=O<100?null:new Av(O),d=0;d1&&lh(x)*od(x)/2>T[0]){for(y=0;yT[y];)++y;ae=new Qb(le,0,y+1),q=new eZ(ae),D=lh(x)/od(x),R=vpe(q,i,new ek,l,d,g,D),Hi(i1(q.e),R),_k(iI(J,q),SI),re=new Qb(le,y+1,le.c.length),fDe(J,re),le.c.length=0,O=0,I9t(T,T.length,0)}else de=J.b.c.length==0?null:Yt(J.b,0),de!=null&&jfe(J,0),O>0&&(T[O]=T[O-1]),T[O]+=lh(x)*od(x),++O,jn(le.c,x);return le}function _6r(n,i){var l,d,g,y;l=i.b,y=new Eh(l.j),g=0,d=l.j,d.c.length=0,SE(v(M_(n.b,(Bt(),or),(UE(),px)),15),l),g=tG(y,g,new I_t,d),SE(v(M_(n.b,or,l2),15),l),g=tG(y,g,new x_t,d),SE(v(M_(n.b,or,fx),15),l),SE(v(M_(n.b,gr,px),15),l),SE(v(M_(n.b,gr,l2),15),l),g=tG(y,g,new N_t,d),SE(v(M_(n.b,gr,fx),15),l),SE(v(M_(n.b,Mr,px),15),l),g=tG(y,g,new O_t,d),SE(v(M_(n.b,Mr,l2),15),l),g=tG(y,g,new L_t,d),SE(v(M_(n.b,Mr,fx),15),l),SE(v(M_(n.b,cr,px),15),l),g=tG(y,g,new C_t,d),SE(v(M_(n.b,cr,l2),15),l),SE(v(M_(n.b,cr,fx),15),l)}function w6r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re;for(T=new me(i);T.a.5?Se-=x*2*(ae-.5):ae<.5&&(Se+=y*2*(.5-ae)),g=T.d.b,Sede.a-le-D&&(Se=de.a-le-D),T.n.a=i+Se}}function T6r(n){var i,l,d,g,y;if(d=v(oe(n,(qt(),Lu)),171),d==(pf(),u2)){for(l=new yr(_r(Hs(n).a.Kc(),new S));zr(l);)if(i=v(Rr(l),18),!HPt(i))throw _e(new Gb(Rge+rG(n)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(d==Y4){for(y=new yr(_r(os(n).a.Kc(),new S));zr(y);)if(g=v(Rr(y),18),!HPt(g))throw _e(new Gb(Rge+rG(n)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function kG(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae;if(n.e&&n.c.c>19&&(i=$8(i),R=!R),x=cTr(i),y=!1,g=!1,d=!1,n.h==FG&&n.m==0&&n.l==0)if(g=!0,y=!0,x==-1)n=mIt((E8(),JUe)),d=!0,R=!R;else return T=PMe(n,x),R&&u0e(T),l&&(i2=Su(0,0,0)),T;else n.h>>19&&(y=!0,n=$8(n),d=!0,R=!R);return x!=-1?Fbr(n,x,R,y,l):wDe(n,i)<0?(l&&(y?i2=$8(n):i2=Su(n.l,n.m,n.h)),Su(0,0,0)):sAr(d?n:Su(n.l,n.m,n.h),i,R,y,g,l)}function ppe(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae;if(x=n.e,R=i.e,x==0)return i;if(R==0)return n;if(y=n.d,T=i.d,y+T==2)return l=Us(n.a[0],ul),d=Us(i.a[0],ul),x==R?(D=zo(l,d),ae=ti(D),re=ti(Dv(D,32)),re==0?new qm(x,ae):new T_(x,2,Te(xe(Wr,1),vi,28,15,[ae,re]))):(eg(),bX(x<0?zf(d,l):zf(l,d),0)?Yv(x<0?zf(d,l):zf(l,d)):cD(Yv(ty(x<0?zf(d,l):zf(l,d)))));if(x==R)J=x,q=y>=T?xfe(n.a,y,i.a,T):xfe(i.a,T,n.a,y);else{if(g=y!=T?y>T?1:-1:J9e(n.a,i.a,y),g==0)return eg(),KM;g==1?(J=x,q=wfe(n.a,y,i.a,T)):(J=R,q=wfe(i.a,T,n.a,y))}return O=new T_(J,q.length,q),gD(O),O}function A6r(n,i){var l,d,g,y,x,T,R;if(!(n.g>i.f||i.g>n.f)){for(l=0,d=0,x=n.w.a.ec().Kc();x.Ob();)g=v(x.Pb(),12),E0e(ac(Te(xe(Vs,1),kt,8,0,[g.i.n,g.n,g.a])).b,i.g,i.f)&&++l;for(T=n.r.a.ec().Kc();T.Ob();)g=v(T.Pb(),12),E0e(ac(Te(xe(Vs,1),kt,8,0,[g.i.n,g.n,g.a])).b,i.g,i.f)&&--l;for(R=i.w.a.ec().Kc();R.Ob();)g=v(R.Pb(),12),E0e(ac(Te(xe(Vs,1),kt,8,0,[g.i.n,g.n,g.a])).b,n.g,n.f)&&++d;for(y=i.r.a.ec().Kc();y.Ob();)g=v(y.Pb(),12),E0e(ac(Te(xe(Vs,1),kt,8,0,[g.i.n,g.n,g.a])).b,n.g,n.f)&&--d;l=0)return l;switch(RE(Al(n,l))){case 2:{if(An("",ay(n,l.qk()).xe())){if(R=rz(Al(n,l)),T=d8(Al(n,l)),D=UMe(n,i,R,T),D)return D;for(g=mPe(n,i),x=0,q=g.gc();x1)throw _e(new ar(hq));for(D=Iu(n.e.Dh(),i),d=v(n.g,124),x=0;x1,O=new V1(J.b);nc(O.a)||nc(O.b);)R=v(nc(O.a)?pe(O.a):pe(O.b),18),q=R.c==J?R.d:R.c,u.Math.abs(ac(Te(xe(Vs,1),kt,8,0,[q.i.n,q.n,q.a])).b-x.b)>1&&p5r(n,R,x,y,J)}}function L6r(n){var i,l,d,g,y,x;if(g=new go(n.e,0),d=new go(n.a,0),n.d)for(l=0;lcme;){for(y=i,x=0;u.Math.abs(i-y)0),g.a.Xb(g.c=--g.b),WAr(n,n.b-x,y,d,g),Tr(g.b0),d.a.Xb(d.c=--d.b)}if(!n.d)for(l=0;l0?(n.f[D.p]=re/(D.e.c.length+D.g.c.length),n.c=u.Math.min(n.c,n.f[D.p]),n.b=u.Math.max(n.b,n.f[D.p])):T&&(n.f[D.p]=re)}}function M6r(n){n.b=null,n.bb=null,n.fb=null,n.qb=null,n.a=null,n.c=null,n.d=null,n.e=null,n.f=null,n.n=null,n.M=null,n.L=null,n.Q=null,n.R=null,n.K=null,n.db=null,n.eb=null,n.g=null,n.i=null,n.j=null,n.k=null,n.gb=null,n.o=null,n.p=null,n.q=null,n.r=null,n.$=null,n.ib=null,n.S=null,n.T=null,n.t=null,n.s=null,n.u=null,n.v=null,n.w=null,n.B=null,n.A=null,n.C=null,n.D=null,n.F=null,n.G=null,n.H=null,n.I=null,n.J=null,n.P=null,n.Z=null,n.U=null,n.V=null,n.W=null,n.X=null,n.Y=null,n._=null,n.ab=null,n.cb=null,n.hb=null,n.nb=null,n.lb=null,n.mb=null,n.ob=null,n.pb=null,n.jb=null,n.kb=null,n.N=!1,n.O=!1}function P6r(n,i,l){var d,g,y,x;for(l.Ug("Graph transformation ("+n.a+")",1),x=DE(i.a),y=new me(i.b);y.a=T.b.c)&&(T.b=i),(!T.c||i.c<=T.c.c)&&(T.d=T.c,T.c=i),(!T.e||i.d>=T.e.d)&&(T.e=i),(!T.f||i.d<=T.f.d)&&(T.f=i);return d=new VZ((B8(),dx)),hz(n,Ynn,new wh(Te(xe(Sq,1),Yn,382,0,[d]))),x=new VZ(U4),hz(n,Vnn,new wh(Te(xe(Sq,1),Yn,382,0,[x]))),g=new VZ($4),hz(n,Hnn,new wh(Te(xe(Sq,1),Yn,382,0,[g]))),y=new VZ(A5),hz(n,qnn,new wh(Te(xe(Sq,1),Yn,382,0,[y]))),$1e(d.c,dx),$1e(g.c,$4),$1e(y.c,A5),$1e(x.c,U4),T.a.c.length=0,xs(T.a,d.c),xs(T.a,ff(g.c)),xs(T.a,y.c),xs(T.a,ff(x.c)),T}function $6r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae;for(i.Ug(HQt,1),re=We(at(Et(n,(Vg(),r3)))),x=We(at(Et(n,(Z1(),OP)))),T=v(Et(n,NP),107),x9e((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a)),D=TWt((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a),re,x),!n.a&&(n.a=new vt(Pi,n,10,11)),O=new me(D);O.a0&&(n.a=R+(re-1)*y,i.c.b+=n.a,i.f.b+=n.a)),ae.a.gc()!=0&&(J=new Lde(1,y),re=qPe(J,i,ae,le,i.f.b+R-i.c.b),re>0&&(i.f.b+=R+(re-1)*y))}function OWt(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je;for(D=We(at(oe(n,(qt(),xx)))),d=We(at(oe(n,lVe))),J=new cue,_t(J,xx,D+d),O=i,Se=O.d,le=O.c.i,Me=O.d.i,de=d8e(le.c),Ue=d8e(Me.c),g=new Ot,q=de;q<=Ue;q++)T=new Jm(n),g_(T,(lr(),Ws)),_t(T,(At(),Ji),O),_t(T,Qa,(co(),su)),_t(T,hne,J),re=v(Yt(n.b,q),30),q==de?m4(T,re.a.c.length-l,re):po(T,re),je=We(at(oe(O,vy))),je<0&&(je=0,_t(O,vy,je)),T.o.b=je,ae=u.Math.floor(je/2),x=new zc,Bs(x,(Bt(),cr)),rc(x,T),x.n.b=ae,R=new zc,Bs(R,gr),rc(R,T),R.n.b=ae,lo(O,x),y=new NE,Ul(y,O),_t(y,Nl,null),Uo(y,R),lo(y,Se),kwr(T,O,y),jn(g.c,y),O=y;return g}function gpe(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;for(R=v(hy(n,(Bt(),cr)).Kc().Pb(),12).e,re=v(hy(n,gr).Kc().Pb(),12).g,T=R.c.length,Ue=q1(v(Yt(n.j,0),12));T-- >0;){for(le=($n(0,R.c.length),v(R.c[0],18)),g=($n(0,re.c.length),v(re.c[0],18)),Me=g.d.e,y=$l(Me,g,0),c1r(le,g.d,y),Uo(g,null),lo(g,null),ae=le.a,i&&pi(ae,new Wo(Ue)),d=Ur(g.a,0);d.b!=d.d.c;)l=v(Fr(d),8),pi(ae,new Wo(l));for(Se=le.b,J=new me(g.b);J.ax)&&Es(n.b,v(de.b,18));++T}y=x}}}function UPe(n,i){var l;if(i==null||An(i,Ku)||i.length==0&&n.k!=(dy(),k6))return null;switch(n.k.g){case 1:return UZ(i,BI)?(Qn(),HI):UZ(i,Ame)?(Qn(),a2):null;case 2:try{return Nt(Nd(i,Po,qi))}catch(d){if(d=Da(d),$e(d,130))return null;throw _e(d)}case 4:try{return y4(i)}catch(d){if(d=Da(d),$e(d,130))return null;throw _e(d)}case 3:return i;case 5:return JUt(n),dVt(n,i);case 6:return JUt(n),U3r(n,n.a,i);case 7:try{return l=Q4r(n),l.cg(i),l}catch(d){if(d=Da(d),$e(d,33))return null;throw _e(d)}default:throw _e(new Tl("Invalid type set for this layout option."))}}function zPe(n){var i;switch(n.d){case 1:{if(n.Sj())return n.o!=-2;break}case 2:{if(n.Sj())return n.o==-2;break}case 3:case 5:case 4:case 6:case 7:return n.o>-2;default:return!1}switch(i=n.Rj(),n.p){case 0:return i!=null&&Vt(Ht(i))!=qL(n.k,0);case 1:return i!=null&&v(i,222).a!=ti(n.k)<<24>>24;case 2:return i!=null&&v(i,180).a!=(ti(n.k)&vs);case 6:return i!=null&&qL(v(i,168).a,n.k);case 5:return i!=null&&v(i,17).a!=ti(n.k);case 7:return i!=null&&v(i,191).a!=ti(n.k)<<16>>16;case 3:return i!=null&&We(at(i))!=n.j;case 4:return i!=null&&v(i,161).a!=n.j;default:return i==null?n.n!=null:!Yi(i,n.n)}}function RG(n,i,l){var d,g,y,x;return n.ol()&&n.nl()&&(x=Ade(n,v(l,58)),Ze(x)!==Ze(l))?(n.xj(i),n.Dj(i,PBt(n,i,x)),n.al()&&(y=(g=v(l,54),n.ml()?n.kl()?g.Th(n.b,sl(v(qn(Vu(n.b),n.Lj()),19)).n,v(qn(Vu(n.b),n.Lj()).Hk(),29).kk(),null):g.Th(n.b,Ma(g.Dh(),sl(v(qn(Vu(n.b),n.Lj()),19))),null,null):g.Th(n.b,-1-n.Lj(),null,null)),!v(x,54).Ph()&&(y=(d=v(x,54),n.ml()?n.kl()?d.Rh(n.b,sl(v(qn(Vu(n.b),n.Lj()),19)).n,v(qn(Vu(n.b),n.Lj()).Hk(),29).kk(),y):d.Rh(n.b,Ma(d.Dh(),sl(v(qn(Vu(n.b),n.Lj()),19))),null,y):d.Rh(n.b,-1-n.Lj(),null,y))),y&&y.oj()),id(n.b)&&n.Jj(n.Ij(9,l,x,i,!1)),x):l}function LWt(n){var i,l,d,g,y,x,T,R,O,D;for(d=new Ot,x=new me(n.e.a);x.a0&&(x=u.Math.max(x,F$t(n.C.b+d.d.b,g))),D=d,q=g,J=y;n.C&&n.C.c>0&&(re=J+n.C.c,O&&(re+=D.d.c),x=u.Math.max(x,($1(),x0(ep),u.Math.abs(q-1)<=ep||q==1||isNaN(q)&&isNaN(1)?0:re/(1-q)))),l.n.b=0,l.a.a=x}function MWt(n,i){var l,d,g,y,x,T,R,O,D,q,J,re;if(l=v(yl(n.b,i),127),R=v(v(Zi(n.r,i),21),87),R.dc()){l.n.d=0,l.n.a=0;return}for(O=n.u.Hc((Ah(),ub)),x=0,n.A.Hc((ud(),vw))&&ujt(n,i),T=R.Kc(),D=null,J=0,q=0;T.Ob();)d=v(T.Pb(),117),y=We(at(d.b.of((IX(),ite)))),g=d.b.Mf().b,D?(re=q+D.d.a+n.w+d.d.d,x=u.Math.max(x,($1(),x0(ep),u.Math.abs(J-y)<=ep||J==y||isNaN(J)&&isNaN(y)?0:re/(y-J)))):n.C&&n.C.d>0&&(x=u.Math.max(x,F$t(n.C.d+d.d.d,y))),D=d,J=y,q=g;n.C&&n.C.a>0&&(re=q+n.C.a,O&&(re+=D.d.a),x=u.Math.max(x,($1(),x0(ep),u.Math.abs(J-1)<=ep||J==1||isNaN(J)&&isNaN(1)?0:re/(1-J)))),l.n.d=0,l.a.b=x}function G6r(n,i,l,d,g,y,x,T){var R,O,D,q,J,re,ae,le,de,Se;if(ae=!1,O=WMe(l.q,i.f+i.b-l.q.f),re=d.f>i.b&&T,Se=g-(l.q.e+O-x),q=(R=dM(d,Se,!1),R.a),re&&q>d.f)return!1;if(re){for(J=0,de=new me(i.d);de.a=($n(y,n.c.length),v(n.c[y],186)).e,!re&&q>i.b&&!D)?!1:((D||re||q<=i.b)&&(D&&q>i.b?(l.d=q,_z(l,wHt(l,q))):($qt(l.q,O),l.c=!0),_z(d,g-(l.s+l.r)),nG(d,l.q.e+l.q.d,i.f),aZ(i,d),n.c.length>y&&(aG(($n(y,n.c.length),v(n.c[y],186)),d),($n(y,n.c.length),v(n.c[y],186)).a.c.length==0&&Jb(n,y)),ae=!0),ae)}function PWt(n,i,l){var d,g,y,x,T,R;for(this.g=n,T=i.d.length,R=l.d.length,this.d=st(tm,gy,10,T+R,0,1),x=0;x0?Ufe(this,this.f/this.a):U1(i.g,i.d[0]).a!=null&&U1(l.g,l.d[0]).a!=null?Ufe(this,(We(U1(i.g,i.d[0]).a)+We(U1(l.g,l.d[0]).a))/2):U1(i.g,i.d[0]).a!=null?Ufe(this,U1(i.g,i.d[0]).a):U1(l.g,l.d[0]).a!=null&&Ufe(this,U1(l.g,l.d[0]).a)}function q6r(n,i){var l,d,g,y,x,T,R,O,D,q;for(n.a=new gLt(Tbr(zP)),d=new me(i.a);d.a=1&&(de-x>0&&q>=0?(R.n.a+=le,R.n.b+=y*x):de-x<0&&D>=0&&(R.n.a+=le*de,R.n.b+=y));n.o.a=i.a,n.o.b=i.b,_t(n,(qt(),uw),(ud(),d=v(n1(WP),9),new nf(d,v(v0(d,d.length),9),0)))}function Y6r(n,i,l,d,g,y){var x;if(!(i==null||!L0e(i,RKe,IKe)))throw _e(new ar("invalid scheme: "+i));if(!n&&!(l!=null&&qp(l,Wu(35))==-1&&l.length>0&&(sr(0,l.length),l.charCodeAt(0)!=47)))throw _e(new ar("invalid opaquePart: "+l));if(n&&!(i!=null&&mU(dre,i.toLowerCase()))&&!(l==null||!L0e(l,ZP,JP)))throw _e(new ar(yJt+l));if(n&&i!=null&&mU(dre,i.toLowerCase())&&!TEr(l))throw _e(new ar(yJt+l));if(!Nvr(d))throw _e(new ar("invalid device: "+d));if(!gyr(g))throw x=g==null?"invalid segments: null":"invalid segment: "+hyr(g),_e(new ar(x));if(!(y==null||qp(y,Wu(35))==-1))throw _e(new ar("invalid query: "+y))}function j6r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se;if(l.Ug("Network simplex layering",1),n.b=i,Se=v(oe(i,(qt(),gP)),17).a*4,de=n.b.a,de.c.length<1){l.Vg();return}for(y=HCr(n,de),le=null,g=Ur(y,0);g.b!=g.d.c;){for(d=v(Fr(g),15),T=Se*Ps(u.Math.sqrt(d.gc())),x=aAr(d),Q1e(oRe(Vir(lRe(sde(x),T),le),!0),l.eh(1)),J=n.b.b,ae=new me(x.a);ae.a1)for(le=st(Wr,vi,28,n.b.b.c.length,15,1),q=0,O=new me(n.b.b);O.a0){zZ(n,l,0),l.a+=String.fromCharCode(d),g=g2r(i,y),zZ(n,l,g),y+=g-1;continue}d==39?y+10&&ae.a<=0){R.c.length=0,jn(R.c,ae);break}re=ae.i-ae.d,re>=T&&(re>T&&(R.c.length=0,T=re),jn(R.c,ae))}R.c.length!=0&&(x=v(Yt(R,KZ(g,R.c.length)),118),Ue.a.Bc(x)!=null,x.g=D++,RPe(x,i,l,d),R.c.length=0)}for(de=n.c.length+1,J=new me(n);J.aSs||i.o==fw&&D=T&&g<=R)T<=g&&y<=R?(l[D++]=g,l[D++]=y,d+=2):T<=g?(l[D++]=g,l[D++]=R,n.b[d]=R+1,x+=2):y<=R?(l[D++]=T,l[D++]=y,d+=2):(l[D++]=T,l[D++]=R,n.b[d]=R+1);else if(RZv)&&T<10);uRe(n.c,new tE),UWt(n),Ghr(n.c),B6r(n.f)}function n7r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le;for(l=v(oe(n,(qt(),Qa)),101),x=n.f,y=n.d,T=x.a+y.b+y.c,R=0-y.d-n.c.b,D=x.b+y.d+y.a-n.c.b,O=new Ot,q=new Ot,g=new me(i);g.a=2){for(R=Ur(l,0),x=v(Fr(R),8),T=v(Fr(R),8);T.a0&&Uz(O,!0,(ys(),ql)),T.k==(lr(),hs)&&SLt(O),Ni(n.f,T,i)}}function a7r(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je;for(g=v(oe(n,(fa(),AP)),27),O=qi,D=qi,T=Po,R=Po,Ue=Ur(n.b,0);Ue.b!=Ue.d.c;)Se=v(Fr(Ue),40),re=Se.e,ae=Se.f,O=u.Math.min(O,re.a-ae.a/2),D=u.Math.min(D,re.b-ae.b/2),T=u.Math.max(T,re.a+ae.a/2),R=u.Math.max(R,re.b+ae.b/2);for(J=v(Et(g,(pc(),vYe)),107),Me=Ur(n.b,0);Me.b!=Me.d.c;)Se=v(Fr(Me),40),q=oe(Se,AP),$e(q,207)&&(y=v(q,27),ef(y,Se.e.a,Se.e.b),yG(y,Se));for(de=Ur(n.a,0);de.b!=de.d.c;)le=v(Fr(de),65),d=v(oe(le,AP),74),d&&(i=le.a,l=o5(d,!0,!0),TG(i,l));je=T-O+(J.b+J.c),x=R-D+(J.d+J.a),Vt(Ht(Et(g,(Ei(),i3))))||JE(g,je,x,!1,!1),sa(g,Z5,je-(J.b+J.c)),sa(g,Q5,x-(J.d+J.a))}function GWt(n,i){var l,d,g,y,x,T,R,O,D,q;for(R=!0,g=0,O=n.g[i.p],D=i.o.b+n.o,l=n.d[i.p][2],of(n.b,O,Nt(v(Yt(n.b,O),17).a-1+l)),of(n.c,O,We(at(Yt(n.c,O)))-D+l*n.f),++O,O>=n.j?(++n.j,Lt(n.b,Nt(1)),Lt(n.c,D)):(d=n.d[i.p][1],of(n.b,O,Nt(v(Yt(n.b,O),17).a+1-d)),of(n.c,O,We(at(Yt(n.c,O)))+D-d*n.f)),(n.r==(qf(),Uq)&&(v(Yt(n.b,O),17).a>n.k||v(Yt(n.b,O-1),17).a>n.k)||n.r==zq&&(We(at(Yt(n.c,O)))>n.n||We(at(Yt(n.c,O-1)))>n.n))&&(R=!1),x=new yr(_r(Hs(i).a.Kc(),new S));zr(x);)y=v(Rr(x),18),T=y.c.i,n.g[T.p]==O&&(q=GWt(n,T),g=g+v(q.a,17).a,R=R&&Vt(Ht(q.b)));return n.g[i.p]=O,g=g+n.d[i.p][0],new Ms(Nt(g),(Qn(),!!R))}function qWt(n,i){var l,d,g,y,x;l=We(at(oe(i,(qt(),O0)))),l<2&&_t(i,O0,2),d=v(oe(i,Pd),88),d==(ys(),cp)&&_t(i,Pd,IZ(i)),g=v(oe(i,ssn),17),g.a==0?_t(i,(At(),x6),new M0e):_t(i,(At(),x6),new LQ(g.a)),y=Ht(oe(i,dP)),y==null&&_t(i,dP,(Qn(),Ze(oe(i,lb))===Ze((Xm(),xN)))),ts(new xn(null,new Nn(i.a,16)),new _7e(n)),ts(ic(new xn(null,new Nn(i.b,16)),new rd),new w7e(n)),x=new BWt(i),_t(i,(At(),B5),x),nz(n.a),a1(n.a,(Mo(),N0),v(oe(i,ow),188)),a1(n.a,em,v(oe(i,cw),188)),a1(n.a,qc,v(oe(i,hP),188)),a1(n.a,ru,v(oe(i,cne),188)),a1(n.a,Gl,abr(v(oe(i,lb),223))),p8e(n.a,e8r(i)),_t(i,Bye,kG(n.a,i))}function qPe(n,i,l,d,g){var y,x,T,R,O,D,q,J,re,ae,le,de,Se;for(q=new Br,x=new Ot,GHt(n,l,n.d.Ag(),x,q),GHt(n,d,n.d.Bg(),x,q),n.b=.2*(le=jVt(ic(new xn(null,new Nn(x,16)),new Jwt)),de=jVt(ic(new xn(null,new Nn(x,16)),new eEt)),u.Math.min(le,de)),y=0,T=0;T=2&&(Se=dYt(x,!0,J),!n.e&&(n.e=new xAt(n)),h2r(n.e,Se,x,n.b)),Kqt(x,J),h7r(x),re=-1,D=new me(x);D.aT)}function HWt(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me;for(O=ka,D=ka,T=Ss,R=Ss,J=new me(i.i);J.a-1){for(g=Ur(T,0);g.b!=g.d.c;)d=v(Fr(g),131),d.v=x;for(;T.b!=0;)for(d=v(d1e(T,0),131),l=new me(d.i);l.a-1){for(y=new me(T);y.a0)&&(s7e(R,u.Math.min(R.o,g.o-1)),yK(R,R.i-1),R.i==0&&jn(T.c,R))}}function YWt(n,i,l,d,g){var y,x,T,R;return R=ka,x=!1,T=DPe(n,$s(new Ct(i.a,i.b),n),Hi(new Ct(l.a,l.b),g),$s(new Ct(d.a,d.b),l)),y=!!T&&!(u.Math.abs(T.a-n.a)<=sx&&u.Math.abs(T.b-n.b)<=sx||u.Math.abs(T.a-i.a)<=sx&&u.Math.abs(T.b-i.b)<=sx),T=DPe(n,$s(new Ct(i.a,i.b),n),l,g),T&&((u.Math.abs(T.a-n.a)<=sx&&u.Math.abs(T.b-n.b)<=sx)==(u.Math.abs(T.a-i.a)<=sx&&u.Math.abs(T.b-i.b)<=sx)||y?R=u.Math.min(R,hD($s(T,l))):x=!0),T=DPe(n,$s(new Ct(i.a,i.b),n),d,g),T&&(x||(u.Math.abs(T.a-n.a)<=sx&&u.Math.abs(T.b-n.b)<=sx)==(u.Math.abs(T.a-i.a)<=sx&&u.Math.abs(T.b-i.b)<=sx)||y)&&(R=u.Math.min(R,hD($s(T,d)))),R}function jWt(n){dE(n,new H_(DK(cE(sE(lE(oE(new f_,e2),HXt),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new Fh),Nu))),It(n,e2,SM,zt(gGe)),It(n,e2,QJ,(Qn(),!0)),It(n,e2,y5,zt(Rnn)),It(n,e2,l6,zt(Inn)),It(n,e2,o6,zt(Nnn)),It(n,e2,II,zt(knn)),It(n,e2,TM,zt(bGe)),It(n,e2,NI,zt(Onn)),It(n,e2,UBe,zt(pGe)),It(n,e2,GBe,zt(dGe)),It(n,e2,qBe,zt(fGe)),It(n,e2,HBe,zt(mGe)),It(n,e2,zBe,zt(fte))}function d7r(n){var i,l,d,g,y,x,T,R;for(i=null,d=new me(n);d.a0&&l.c==0&&(!i&&(i=new Ot),jn(i.c,l));if(i)for(;i.c.length!=0;){if(l=v(Jb(i,0),239),l.b&&l.b.c.length>0){for(y=(!l.b&&(l.b=new Ot),new me(l.b));y.a$l(n,l,0))return new Ms(g,l)}else if(We(U1(g.g,g.d[0]).a)>We(U1(l.g,l.d[0]).a))return new Ms(g,l)}for(T=(!l.e&&(l.e=new Ot),l.e).Kc();T.Ob();)x=v(T.Pb(),239),R=(!x.b&&(x.b=new Ot),x.b),n4(0,R.c.length),OL(R.c,0,l),x.c==R.c.length&&jn(i.c,x)}return null}function f7r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se;for(i.Ug("Interactive crossing minimization",1),x=0,y=new me(n.b);y.a0&&(l+=R.n.a+R.o.a/2,++q),ae=new me(R.j);ae.a0&&(l/=q),Se=st(ao,_l,28,d.a.c.length,15,1),T=0,O=new me(d.a);O.a=T&&g<=R)T<=g&&y<=R?d+=2:T<=g?(n.b[d]=R+1,x+=2):y<=R?(l[D++]=g,l[D++]=T-1,d+=2):(l[D++]=g,l[D++]=T-1,n.b[d]=R+1,x+=2);else if(R2?(D=new Ot,xs(D,new Qb(Se,1,Se.b)),y=DKt(D,Ue+n.a),Me=new P1e(y),Ul(Me,i),jn(l.c,Me)):d?Me=v(br(n.b,Hg(i)),272):Me=v(br(n.b,jv(i)),272),R=Hg(i),d&&(R=jv(i)),x=dSr(de,R),O=Ue+n.a,x.a?(O+=u.Math.abs(de.b-q.b),le=new Ct(q.a,(q.b+de.b)/2)):(O+=u.Math.abs(de.a-q.a),le=new Ct((q.a+de.a)/2,q.b)),d?Ni(n.d,i,new oDe(Me,x,le,O)):Ni(n.c,i,new oDe(Me,x,le,O)),Ni(n.b,i,Me),ae=(!i.n&&(i.n=new vt(wl,i,1,7)),i.n),re=new mr(ae);re.e!=re.i.gc();)J=v(wr(re),135),g=wG(n,J,!0,0,0),jn(l.c,g)}function p7r(n){var i,l,d,g,y,x,T;if(!n.A.dc()){if(n.A.Hc((ud(),mH))&&(v(yl(n.b,(Bt(),or)),127).k=!0,v(yl(n.b,Mr),127).k=!0,i=n.q!=(co(),sm)&&n.q!=su,r7e(v(yl(n.b,gr),127),i),r7e(v(yl(n.b,cr),127),i),r7e(n.g,i),n.A.Hc(vw)&&(v(yl(n.b,or),127).j=!0,v(yl(n.b,Mr),127).j=!0,v(yl(n.b,gr),127).k=!0,v(yl(n.b,cr),127).k=!0,n.g.k=!0)),n.A.Hc(gH))for(n.a.j=!0,n.a.k=!0,n.g.j=!0,n.g.k=!0,T=n.B.Hc((qh(),KP)),g=H0e(),y=0,x=g.length;y0),v(D.a.Xb(D.c=--D.b),18));y!=d&&D.b>0;)n.a[y.p]=!0,n.a[d.p]=!0,y=(Tr(D.b>0),v(D.a.Xb(D.c=--D.b),18));D.b>0&&ld(D)}}function KWt(n,i,l){var d,g,y,x,T,R,O,D,q,J,re;if(!n.b)return!1;for(x=null,J=null,R=new Cfe(null,null),g=1,R.a[1]=n.b,q=R;q.a[g];)O=g,T=J,J=q,q=q.a[g],d=n.a.Ne(i,q.d),g=d<0?0:1,d==0&&(!l.c||Ec(q.e,l.d))&&(x=q),!(q&&q.b)&&!US(q.a[g])&&(US(q.a[1-g])?J=J.a[O]=dZ(q,g):US(q.a[1-g])||(re=J.a[1-O],re&&(!US(re.a[1-O])&&!US(re.a[O])?(J.b=!1,re.b=!0,q.b=!0):(y=T.a[1]==J?1:0,US(re.a[O])?T.a[y]=TMt(J,O):US(re.a[1-O])&&(T.a[y]=dZ(J,O)),q.b=T.a[y].b=!0,T.a[y].a[0].b=!1,T.a[y].a[1].b=!1))));return x&&(l.b=!0,l.d=x.e,q!=x&&(D=new Cfe(q.d,q.e),bxr(n,R,x,D),J==x&&(J=D)),J.a[J.a[1]==q?1:0]=q.a[q.a[0]?0:1],--n.c),n.b=R.a[1],n.b&&(n.b.b=!1),l.b}function b7r(n){var i,l,d,g,y,x,T,R,O,D,q,J;for(g=new me(n.a.a.b);g.a0?g-=864e5:g+=864e5,R=new Z8e(zo(xc(i.q.getTime()),g))),D=new sk,O=n.a.length,y=0;y=97&&d<=122||d>=65&&d<=90){for(x=y+1;x=O)throw _e(new ar("Missing trailing '"));x+1=14&&D<=16))?i.a._b(d)?(l.a?bi(l.a,l.b):l.a=new Ed(l.d),VL(l.a,"[...]")):(T=L_(d),O=new nD(i),Hm(l,QWt(T,O))):$e(d,183)?Hm(l,KSr(v(d,183))):$e(d,195)?Hm(l,DEr(v(d,195))):$e(d,201)?Hm(l,Hxr(v(d,201))):$e(d,2111)?Hm(l,MEr(v(d,2111))):$e(d,53)?Hm(l,WSr(v(d,53))):$e(d,376)?Hm(l,d4r(v(d,376))):$e(d,846)?Hm(l,jSr(v(d,846))):$e(d,109)&&Hm(l,YSr(v(d,109))):Hm(l,d==null?Ku:Kl(d));return l.a?l.e.length==0?l.a.a:l.a.a+(""+l.e):l.c}function mI(n,i){var l,d,g,y;y=n.F,i==null?(n.F=null,q8(n,null)):(n.F=(hr(i),i),d=qp(i,Wu(60)),d!=-1?(g=(mo(0,d,i.length),i.substr(0,d)),qp(i,Wu(46))==-1&&!An(g,Zk)&&!An(g,$M)&&!An(g,Mee)&&!An(g,UM)&&!An(g,zM)&&!An(g,GM)&&!An(g,qM)&&!An(g,HM)&&(g=NJt),l=AX(i,Wu(62)),l!=-1&&(g+=""+(sr(l+1,i.length+1),i.substr(l+1))),q8(n,g)):(g=i,qp(i,Wu(46))==-1&&(d=qp(i,Wu(91)),d!=-1&&(g=(mo(0,d,i.length),i.substr(0,d))),!An(g,Zk)&&!An(g,$M)&&!An(g,Mee)&&!An(g,UM)&&!An(g,zM)&&!An(g,GM)&&!An(g,qM)&&!An(g,HM)?(g=NJt,d!=-1&&(g+=""+(sr(d,i.length+1),i.substr(d)))):g=i),q8(n,g),g==i&&(n.F=n.D))),n.Db&4&&!(n.Db&1)&&Vi(n,new js(n,1,5,y,i))}function ZWt(n,i){var l,d,g,y,x,T,R,O,D,q;if(R=i.length-1,T=(sr(R,i.length),i.charCodeAt(R)),T==93){if(x=qp(i,Wu(91)),x>=0)return g=Evr(n,(mo(1,x,i.length),i.substr(1,x-1))),D=(mo(x+1,R,i.length),i.substr(x+1,R-(x+1))),WRr(n,D,g)}else{if(l=-1,ize==null&&(ize=new RegExp("\\d")),ize.test(String.fromCharCode(T))&&(l=mIe(i,Wu(46),R-1),l>=0)){d=v(_fe(n,UFt(n,(mo(1,l,i.length),i.substr(1,l-1))),!1),61),O=0;try{O=Nd((sr(l+1,i.length+1),i.substr(l+1)),Po,qi)}catch(J){throw J=Da(J),$e(J,130)?(y=J,_e(new VQ(y))):_e(J)}if(O>16==-10?l=v(n.Cb,292).Yk(i,l):n.Db>>16==-15&&(!i&&(i=(Pn(),dp)),!O&&(O=(Pn(),dp)),n.Cb.Yh()&&(R=new Vm(n.Cb,1,13,O,i,uy(Uh(v(n.Cb,62)),n),!1),l?l.nj(R):l=R));else if($e(n.Cb,90))n.Db>>16==-23&&($e(i,90)||(i=(Pn(),n0)),$e(O,90)||(O=(Pn(),n0)),n.Cb.Yh()&&(R=new Vm(n.Cb,1,10,O,i,uy(Uc(v(n.Cb,29)),n),!1),l?l.nj(R):l=R));else if($e(n.Cb,457))for(T=v(n.Cb,850),x=(!T.b&&(T.b=new SK(new Due)),T.b),y=(d=new P_(new b_(x.a).a),new TK(d));y.a.b;)g=v(zE(y.a).ld(),89),l=bI(g,gJ(g,T),l)}return l}function E7r(n,i){var l,d,g,y,x,T,R,O,D,q,J;for(x=Vt(Ht(Et(n,(qt(),K4)))),J=v(Et(n,Q4),21),R=!1,O=!1,q=new mr((!n.c&&(n.c=new vt(Oh,n,9,9)),n.c));q.e!=q.i.gc()&&(!R||!O);){for(y=v(wr(q),123),T=0,g=$g(Ad(Te(xe(Md,1),Yn,20,0,[(!y.d&&(y.d=new Gn(ss,y,8,5)),y.d),(!y.e&&(y.e=new Gn(ss,y,7,4)),y.e)])));zr(g)&&(d=v(Rr(g),74),D=x&&KE(d)&&Vt(Ht(Et(d,lw))),l=IWt((!d.b&&(d.b=new Gn(Lr,d,4,7)),d.b),y)?n==Aa(zl(v(ze((!d.c&&(d.c=new Gn(Lr,d,5,8)),d.c),0),84))):n==Aa(zl(v(ze((!d.b&&(d.b=new Gn(Lr,d,4,7)),d.b),0),84))),!((D||l)&&(++T,T>1))););(T>0||J.Hc((Ah(),ub))&&(!y.n&&(y.n=new vt(wl,y,1,7)),y.n).i>0)&&(R=!0),T>1&&(O=!0)}R&&i.Fc((cl(),wf)),O&&i.Fc((cl(),iP))}function JWt(n){var i,l,d,g,y,x,T,R,O,D,q,J;if(J=v(Et(n,(Ei(),mw)),21),J.dc())return null;if(T=0,x=0,J.Hc((ud(),mH))){for(D=v(Et(n,UP),101),d=2,l=2,g=2,y=2,i=Aa(n)?v(Et(Aa(n),gw),88):v(Et(n,gw),88),O=new mr((!n.c&&(n.c=new vt(Oh,n,9,9)),n.c));O.e!=O.i.gc();)if(R=v(wr(O),123),q=v(Et(R,nC),64),q==(Bt(),lc)&&(q=kPe(R,i),sa(R,nC,q)),D==(co(),su))switch(q.g){case 1:d=u.Math.max(d,R.i+R.g);break;case 2:l=u.Math.max(l,R.j+R.f);break;case 3:g=u.Math.max(g,R.i+R.g);break;case 4:y=u.Math.max(y,R.j+R.f)}else switch(q.g){case 1:d+=R.g+2;break;case 2:l+=R.f+2;break;case 3:g+=R.g+2;break;case 4:y+=R.f+2}T=u.Math.max(d,g),x=u.Math.max(l,y)}return JE(n,T,x,!0,!0)}function mpe(n,i,l,d,g){var y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je;for(Me=v(Wl(JQ(Ki(new xn(null,new Nn(i.d,16)),new qCt(l)),new HCt(l)),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),q=qi,D=Po,R=new me(i.b.j);R.a0,O?O&&(J=Se.p,x?++J:--J,q=v(Yt(Se.c.a,J),10),d=xUt(q),re=!(U1e(d,xt,l[0])||j9t(d,xt,l[0]))):re=!0),ae=!1,yt=i.D.i,yt&&yt.c&&T.e&&(D=x&&yt.p>0||!x&&yt.p=0){for(R=null,T=new go(D.a,O+1);T.bx?1:mE(isNaN(0),isNaN(x)))<0&&(x0(cg),(u.Math.abs(x-1)<=cg||x==1||isNaN(x)&&isNaN(1)?0:x<1?-1:x>1?1:mE(isNaN(x),isNaN(1)))<0)&&(x0(cg),(u.Math.abs(0-T)<=cg||T==0||isNaN(0)&&isNaN(T)?0:0T?1:mE(isNaN(0),isNaN(T)))<0)&&(x0(cg),(u.Math.abs(T-1)<=cg||T==1||isNaN(T)&&isNaN(1)?0:T<1?-1:T>1?1:mE(isNaN(T),isNaN(1)))<0)),y)}function k7r(n){var i,l,d,g;if(l=n.D!=null?n.D:n.B,i=qp(l,Wu(91)),i!=-1){d=(mo(0,i,l.length),l.substr(0,i)),g=new qb;do g.a+="[";while((i=ZR(l,91,++i))!=-1);An(d,Zk)?g.a+="Z":An(d,$M)?g.a+="B":An(d,Mee)?g.a+="C":An(d,UM)?g.a+="D":An(d,zM)?g.a+="F":An(d,GM)?g.a+="I":An(d,qM)?g.a+="J":An(d,HM)?g.a+="S":(g.a+="L",g.a+=""+d,g.a+=";");try{return null}catch(y){if(y=Da(y),!$e(y,63))throw _e(y)}}else if(qp(l,Wu(46))==-1){if(An(l,Zk))return Wh;if(An(l,$M))return bh;if(An(l,Mee))return Tf;if(An(l,UM))return ao;if(An(l,zM))return g3;if(An(l,GM))return Wr;if(An(l,qM))return C2;if(An(l,HM))return lC}return null}function R7r(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt;for(n.e=i,T=R4r(i),xt=new Ot,d=new me(T);d.a=0&&le=O.c.c.length?D=pOe((lr(),is),Ws):D=pOe((lr(),Ws),Ws),D*=2,y=l.a.g,l.a.g=u.Math.max(y,y+(D-y)),x=l.b.g,l.b.g=u.Math.max(x,x+(D-x)),g=i}}function L7r(n){var i,l,d,g;for(ts(Ki(new xn(null,new Nn(n.a.b,16)),new c_t),new u_t),pEr(n),ts(Ki(new xn(null,new Nn(n.a.b,16)),new h_t),new d_t),n.c==(Xm(),O6)&&(ts(Ki(ic(new xn(null,new Nn(new m_(n.f),1)),new f_t),new p_t),new PCt(n)),ts(Ki(Bl(ic(ic(new xn(null,new Nn(n.d.b,16)),new g_t),new m_t),new b_t),new y_t),new FCt(n))),g=new Ct(ka,ka),i=new Ct(Ss,Ss),d=new me(n.a.b);d.a0&&(i.a+=Xo),MJ(v(wr(T),167),i);for(i.a+=Tge,R=new gk((!d.c&&(d.c=new Gn(Lr,d,5,8)),d.c));R.e!=R.i.gc();)R.e>0&&(i.a+=Xo),MJ(v(wr(R),167),i);i.a+=")"}}function D7r(n,i,l){var d,g,y,x,T,R,O,D;for(R=new mr((!n.a&&(n.a=new vt(Pi,n,10,11)),n.a));R.e!=R.i.gc();)for(T=v(wr(R),27),g=new yr(_r(eb(T).a.Kc(),new S));zr(g);){if(d=v(Rr(g),74),!d.b&&(d.b=new Gn(Lr,d,4,7)),!(d.b.i<=1&&(!d.c&&(d.c=new Gn(Lr,d,5,8)),d.c.i<=1)))throw _e(new ik("Graph must not contain hyperedges."));if(!tM(d)&&T!=zl(v(ze((!d.c&&(d.c=new Gn(Lr,d,5,8)),d.c),0),84)))for(O=new tOt,Ul(O,d),_t(O,(Uv(),m6),d),vrr(O,v(Pl(ol(l.f,T)),153)),Err(O,v(br(l,zl(v(ze((!d.c&&(d.c=new Gn(Lr,d,5,8)),d.c),0),84))),153)),Lt(i.c,O),x=new mr((!d.n&&(d.n=new vt(wl,d,1,7)),d.n));x.e!=x.i.gc();)y=v(wr(x),135),D=new rPt(O,y.a),Ul(D,y),_t(D,m6,y),D.e.a=u.Math.max(y.g,1),D.e.b=u.Math.max(y.f,1),LPe(D),Lt(i.d,D)}}function M7r(n,i,l){var d,g,y,x,T,R,O,D,q,J;switch(l.Ug("Node promotion heuristic",1),n.i=i,n.r=v(oe(i,(qt(),h2)),243),n.r!=(qf(),Tx)&&n.r!=e3?lRr(n):D5r(n),D=v(oe(n.i,WHe),17).a,y=new e2t,n.r.g){case 2:case 1:gI(n,y);break;case 3:for(n.r=yne,gI(n,y),R=0,T=new me(n.b);T.an.k&&(n.r=Uq,gI(n,y));break;case 4:for(n.r=yne,gI(n,y),O=0,g=new me(n.c);g.an.n&&(n.r=zq,gI(n,y));break;case 6:J=Ps(u.Math.ceil(n.g.length*D/100)),gI(n,new SCt(J));break;case 5:q=Ps(u.Math.ceil(n.e*D/100)),gI(n,new TCt(q));break;case 8:BKt(n,!0);break;case 9:BKt(n,!1);break;default:gI(n,y)}n.r!=Tx&&n.r!=e3?i5r(n,i):SCr(n,i),l.Vg()}function P7r(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;for(q=n.b,D=new go(q,0),KS(D,new Xc(n)),Me=!1,x=1;D.b0&&(J.d+=D.n.d,J.d+=D.d),J.a>0&&(J.a+=D.n.a,J.a+=D.d),J.b>0&&(J.b+=D.n.b,J.b+=D.d),J.c>0&&(J.c+=D.n.c,J.c+=D.d),J}function tKt(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae;for(J=l.d,q=l.c,y=new Ct(l.f.a+l.d.b+l.d.c,l.f.b+l.d.d+l.d.a),x=y.b,O=new me(n.a);O.a0&&(n.c[i.c.p][i.p].d+=Gh(n.i,24)*GG*.07000000029802322-.03500000014901161,n.c[i.c.p][i.p].a=n.c[i.c.p][i.p].d/n.c[i.c.p][i.p].b)}}function $7r(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de;for(ae=new me(n);ae.ad.d,d.d=u.Math.max(d.d,i),T&&l&&(d.d=u.Math.max(d.d,d.a),d.a=d.d+g);break;case 3:l=i>d.a,d.a=u.Math.max(d.a,i),T&&l&&(d.a=u.Math.max(d.a,d.d),d.d=d.a+g);break;case 2:l=i>d.c,d.c=u.Math.max(d.c,i),T&&l&&(d.c=u.Math.max(d.b,d.c),d.b=d.c+g);break;case 4:l=i>d.b,d.b=u.Math.max(d.b,i),T&&l&&(d.b=u.Math.max(d.b,d.c),d.c=d.b+g)}}}function rKt(n,i){var l,d,g,y,x,T,R,O,D;return O="",i.length==0?n.ne(cBe,kpe,-1,-1):(D=v4(i),An(D.substr(0,3),"at ")&&(D=(sr(3,D.length+1),D.substr(3))),D=D.replace(/\[.*?\]/g,""),x=D.indexOf("("),x==-1?(x=D.indexOf("@"),x==-1?(O=D,D=""):(O=v4((sr(x+1,D.length+1),D.substr(x+1))),D=v4((mo(0,x,D.length),D.substr(0,x))))):(l=D.indexOf(")",x),O=(mo(x+1,l,D.length),D.substr(x+1,l-(x+1))),D=v4((mo(0,x,D.length),D.substr(0,x)))),x=qp(D,Wu(46)),x!=-1&&(D=(sr(x+1,D.length+1),D.substr(x+1))),(D.length==0||An(D,"Anonymous function"))&&(D=kpe),T=AX(O,Wu(58)),g=mIe(O,Wu(58),T-1),R=-1,d=-1,y=cBe,T!=-1&&g!=-1&&(y=(mo(0,g,O.length),O.substr(0,g)),R=_Nt((mo(g+1,T,O.length),O.substr(g+1,T-(g+1)))),d=_Nt((sr(T+1,O.length+1),O.substr(T+1)))),n.ne(y,D,R,d))}function G7r(n){var i,l,d,g,y,x,T,R,O,D,q;for(O=new me(n);O.a0||D.j==cr&&D.e.c.length-D.g.c.length<0)){i=!1;break}for(g=new me(D.g);g.a=O&&yt>=de&&(J+=ae.n.b+le.n.b+le.a.b-je,++T));if(l)for(x=new me(Me.e);x.a=O&&yt>=de&&(J+=ae.n.b+le.n.b+le.a.b-je,++T))}T>0&&(xt+=J/T,++re)}re>0?(i.a=g*xt/re,i.g=re):(i.a=0,i.g=0)}function H7r(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt;for(y=n.f.b,J=y.a,D=y.b,ae=n.e.g,re=n.e.f,DT(n.e,y.a,y.b),xt=J/ae,Mt=D/re,O=new mr(dQ(n.e));O.e!=O.i.gc();)R=v(wr(O),135),Au(R,R.i*xt),ku(R,R.j*Mt);for(Me=new mr(Ude(n.e));Me.e!=Me.i.gc();)Se=v(wr(Me),123),je=Se.i,yt=Se.j,je>0&&Au(Se,je*xt),yt>0&&ku(Se,yt*Mt);for(kD(n.b,new Lm),i=new Ot,T=new P_(new b_(n.c).a);T.b;)x=zE(T),d=v(x.ld(),74),l=v(x.md(),407).a,g=o5(d,!1,!1),q=Xqt(Hg(d),hG(g),l),TG(q,g),Ue=cHt(d),Ue&&$l(i,Ue,0)==-1&&(jn(i.c,Ue),FLt(Ue,(Tr(q.b!=0),v(q.a.a.c,8)),l));for(de=new P_(new b_(n.d).a);de.b;)le=zE(de),d=v(le.ld(),74),l=v(le.md(),407).a,g=o5(d,!1,!1),q=Xqt(jv(d),Gz(hG(g)),l),q=Gz(q),TG(q,g),Ue=uHt(d),Ue&&$l(i,Ue,0)==-1&&(jn(i.c,Ue),FLt(Ue,(Tr(q.b!=0),v(q.c.b.c,8)),l))}function iKt(n,i,l,d){var g,y,x,T,R;return T=new jPe(i),MTr(T,d),g=!0,n&&n.pf((Ei(),gw))&&(y=v(n.of((Ei(),gw)),88),g=y==(ys(),cp)||y==Ol||y==ql),rjt(T,!1),Cu(T.e.Rf(),new xIe(T,!1,g)),Jde(T,T.f,(u1(),bc),(Bt(),or)),Jde(T,T.f,yc,Mr),Jde(T,T.g,bc,cr),Jde(T,T.g,yc,gr),OGt(T,or),OGt(T,Mr),MLt(T,gr),MLt(T,cr),WS(),x=T.A.Hc((ud(),o3))&&T.B.Hc((qh(),yH))?Xzt(T):null,x&&Gir(T.a,x),z7r(T),G_r(T),q_r(T),p7r(T),LAr(T),gwr(T),G0e(T,or),G0e(T,Mr),vCr(T),o6r(T),l&&(xvr(T),mwr(T),G0e(T,gr),G0e(T,cr),R=T.B.Hc((qh(),KP)),KHt(T,R,or),KHt(T,R,Mr),XHt(T,R,gr),XHt(T,R,cr),ts(new xn(null,new Nn(new Dm(T.i),0)),new ur),ts(Ki(new xn(null,wNe(T.r).a.oc()),new On),new Ir),IEr(T),T.e.Pf(T.o),ts(new xn(null,wNe(T.r).a.oc()),new Ln)),T.o}function V7r(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le;for(O=ka,d=new me(n.a.b);d.a1)for(re=new BPe(ae,Ue,d),To(Ue,new p8t(n,re)),jn(x.c,re),q=Ue.a.ec().Kc();q.Ob();)D=v(q.Pb(),42),Yu(y,D.b);if(T.a.gc()>1)for(re=new BPe(ae,T,d),To(T,new g8t(n,re)),jn(x.c,re),q=T.a.ec().Kc();q.Ob();)D=v(q.Pb(),42),Yu(y,D.b)}}function K7r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se;if(le=n.n,de=n.o,J=n.d,q=We(at(p4(n,(qt(),Qye)))),i){for(D=q*(i.gc()-1),re=0,R=i.Kc();R.Ob();)x=v(R.Pb(),10),D+=x.o.a,re=u.Math.max(re,x.o.b);for(Se=le.a-(D-de.a)/2,y=le.b-J.d+re,d=de.a/(i.gc()+1),g=d,T=i.Kc();T.Ob();)x=v(T.Pb(),10),x.n.a=Se,x.n.b=y-x.o.b,Se+=x.o.a+q,O=fYt(x),O.n.a=x.o.a/2-O.a.a,O.n.b=x.o.b,ae=v(oe(x,(At(),Yte)),12),ae.e.c.length+ae.g.c.length==1&&(ae.n.a=g-ae.a.a,ae.n.b=0,rc(ae,n)),g+=d}if(l){for(D=q*(l.gc()-1),re=0,R=l.Kc();R.Ob();)x=v(R.Pb(),10),D+=x.o.a,re=u.Math.max(re,x.o.b);for(Se=le.a-(D-de.a)/2,y=le.b+de.b+J.a-re,d=de.a/(l.gc()+1),g=d,T=l.Kc();T.Ob();)x=v(T.Pb(),10),x.n.a=Se,x.n.b=y,Se+=x.o.a+q,O=fYt(x),O.n.a=x.o.a/2-O.a.a,O.n.b=0,ae=v(oe(x,(At(),Yte)),12),ae.e.c.length+ae.g.c.length==1&&(ae.n.a=g-ae.a.a,ae.n.b=de.b,rc(ae,n)),g+=d}}function X7r(n,i){var l,d,g,y,x,T;if(v(oe(i,(At(),au)),21).Hc((cl(),wf))){for(T=new me(i.a);T.a=0&&x0&&(v(yl(n.b,i),127).a.b=l)}function tRr(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le;if(J=We(at(oe(n,(qt(),uN)))),re=We(at(oe(n,hN))),q=We(at(oe(n,J4))),T=n.o,y=v(Yt(n.j,0),12),x=y.n,le=ySr(y,q),!!le){if(i.Hc((Ah(),ub)))switch(v(oe(n,(At(),vc)),64).g){case 1:le.c=(T.a-le.b)/2-x.a,le.d=re;break;case 3:le.c=(T.a-le.b)/2-x.a,le.d=-re-le.a;break;case 2:l&&y.e.c.length==0&&y.g.c.length==0?(D=d?le.a:v(Yt(y.f,0),72).o.b,le.d=(T.b-D)/2-x.b):le.d=T.b+re-x.b,le.c=-J-le.b;break;case 4:l&&y.e.c.length==0&&y.g.c.length==0?(D=d?le.a:v(Yt(y.f,0),72).o.b,le.d=(T.b-D)/2-x.b):le.d=T.b+re-x.b,le.c=J}else if(i.Hc(v2))switch(v(oe(n,(At(),vc)),64).g){case 1:case 3:le.c=x.a+J;break;case 2:case 4:l&&!y.c?(D=d?le.a:v(Yt(y.f,0),72).o.b,le.d=(T.b-D)/2-x.b):le.d=x.b+re}for(g=le.d,O=new me(y.f);O.a=i.length)return{done:!0};var g=i[d++];return{value:[g,l.get(g)],done:!1}}}},Z5r()||(n.prototype.createObject=function(){return{}},n.prototype.get=function(i){return this.obj[":"+i]},n.prototype.set=function(i,l){this.obj[":"+i]=l},n.prototype[ege]=function(i){delete this.obj[":"+i]},n.prototype.keys=function(){var i=[];for(var l in this.obj)l.charCodeAt(0)==58&&i.push(l.substring(1));return i}),n}function fa(){fa=z,AP=new la($Be),new Ba("DEPTH",Nt(0)),Tve=new Ba("FAN",Nt(0)),oYe=new Ba(IQt,Nt(0)),p2=new Ba("ROOT",(Qn(),!1)),kve=new Ba("LEFTNEIGHBOR",null),Ron=new Ba("RIGHTNEIGHBOR",null),Tne=new Ba("LEFTSIBLING",null),Rve=new Ba("RIGHTSIBLING",null),Sve=new Ba("DUMMY",!1),new Ba("LEVEL",Nt(0)),uYe=new Ba("REMOVABLE_EDGES",new Ea),jq=new Ba("XCOOR",Nt(0)),Wq=new Ba("YCOOR",Nt(0)),Cne=new Ba("LEVELHEIGHT",0),b1=new Ba("LEVELMIN",0),L0=new Ba("LEVELMAX",0),Cve=new Ba("GRAPH_XMIN",0),Ave=new Ba("GRAPH_YMIN",0),lYe=new Ba("GRAPH_XMAX",0),cYe=new Ba("GRAPH_YMAX",0),sYe=new Ba("COMPACT_LEVEL_ASCENSION",!1),xve=new Ba("COMPACT_CONSTRAINTS",new Ot),CP=new Ba("ID",""),kP=new Ba("POSITION",Nt(0)),xy=new Ba("PRELIM",0),mN=new Ba("MODIFIER",0),gN=new la(GXt),Yq=new la(qXt)}function aRr(n){APe();var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de;if(n==null)return null;if(q=n.length*8,q==0)return"";for(T=q%24,re=q/24|0,J=T!=0?re+1:re,y=null,y=st(Tf,rg,28,J*4,15,1),O=0,D=0,i=0,l=0,d=0,x=0,g=0,R=0;R>24,O=(i&3)<<24>>24,ae=i&-128?(i>>2^192)<<24>>24:i>>2<<24>>24,le=l&-128?(l>>4^240)<<24>>24:l>>4<<24>>24,de=d&-128?(d>>6^252)<<24>>24:d>>6<<24>>24,y[x++]=Oy[ae],y[x++]=Oy[le|O<<4],y[x++]=Oy[D<<2|de],y[x++]=Oy[d&63];return T==8?(i=n[g],O=(i&3)<<24>>24,ae=i&-128?(i>>2^192)<<24>>24:i>>2<<24>>24,y[x++]=Oy[ae],y[x++]=Oy[O<<4],y[x++]=61,y[x++]=61):T==16&&(i=n[g],l=n[g+1],D=(l&15)<<24>>24,O=(i&3)<<24>>24,ae=i&-128?(i>>2^192)<<24>>24:i>>2<<24>>24,le=l&-128?(l>>4^240)<<24>>24:l>>4<<24>>24,y[x++]=Oy[ae],y[x++]=Oy[le|O<<4],y[x++]=Oy[D<<2],y[x++]=61),Qp(y,0,y.length)}function sRr(n,i){var l,d,g,y,x,T,R;if(n.e==0&&n.p>0&&(n.p=-(n.p-1)),n.p>Po&&fOe(i,n.p-Jv),x=i.q.getDate(),cz(i,1),n.k>=0&&Wfr(i,n.k),n.c>=0?cz(i,n.c):n.k>=0?(R=new q9e(i.q.getFullYear()-Jv,i.q.getMonth(),35),d=35-R.q.getDate(),cz(i,u.Math.min(d,x))):cz(i,x),n.f<0&&(n.f=i.q.getHours()),n.b>0&&n.f<12&&(n.f+=12),Fsr(i,n.f==24&&n.g?0:n.f),n.j>=0&&Ipr(i,n.j),n.n>=0&&Gpr(i,n.n),n.i>=0&&fIt(i,zo(Go(oG(xc(i.q.getTime()),py),py),n.i)),n.a&&(g=new UK,fOe(g,g.q.getFullYear()-Jv-80),nhe(xc(i.q.getTime()),xc(g.q.getTime()))&&fOe(i,g.q.getFullYear()-Jv+100)),n.d>=0){if(n.c==-1)l=(7+n.d-i.q.getDay())%7,l>3&&(l-=7),T=i.q.getMonth(),cz(i,i.q.getDate()+l),i.q.getMonth()!=T&&cz(i,i.q.getDate()+(l>0?-7:7));else if(i.q.getDay()!=n.d)return!1}return n.o>Po&&(y=i.q.getTimezoneOffset(),fIt(i,zo(xc(i.q.getTime()),(n.o-y)*60*py))),!0}function cKt(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je;if(g=oe(i,(At(),Ji)),!!$e(g,207)){for(ae=v(g,27),le=i.e,J=new Wo(i.c),y=i.d,J.a+=y.b,J.b+=y.d,je=v(Et(ae,(qt(),une)),181),oh(je,(qh(),Zne))&&(re=v(Et(ae,JHe),107),frr(re,y.a),wrr(re,y.d),prr(re,y.b),_rr(re,y.c)),l=new Ot,D=new me(i.a);D.ad.c.length-1;)Lt(d,new Ms(b5,m$e));l=v(oe(g,gg),17).a,Bm(v(oe(n,Ax),88))?(g.e.aWe(at(($n(l,d.c.length),v(d.c[l],42)).b))&&_ue(($n(l,d.c.length),v(d.c[l],42)),g.e.a+g.f.a)):(g.e.bWe(at(($n(l,d.c.length),v(d.c[l],42)).b))&&_ue(($n(l,d.c.length),v(d.c[l],42)),g.e.b+g.f.b))}for(y=Ur(n.b,0);y.b!=y.d.c;)g=v(Fr(y),40),l=v(oe(g,(pc(),gg)),17).a,_t(g,(fa(),b1),at(($n(l,d.c.length),v(d.c[l],42)).a)),_t(g,L0,at(($n(l,d.c.length),v(d.c[l],42)).b));i.Vg()}function lRr(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le;for(n.o=We(at(oe(n.i,(qt(),Sx)))),n.f=We(at(oe(n.i,dw))),n.j=n.i.b.c.length,T=n.j-1,J=0,n.k=0,n.n=0,n.b=H1(st(Ao,kt,17,n.j,0,1)),n.c=H1(st(ws,kt,345,n.j,7,1)),x=new me(n.i.b);x.a0&&Lt(n.q,D),Lt(n.p,D);i-=d,re=R+i,O+=i*n.f,of(n.b,T,Nt(re)),of(n.c,T,O),n.k=u.Math.max(n.k,re),n.n=u.Math.max(n.n,O),n.e+=i,i+=le}}function Bt(){Bt=z;var n;lc=new LU(wM,0),or=new LU(VJ,1),gr=new LU(uge,2),Mr=new LU(hge,3),cr=new LU(dge,4),hp=(Fn(),new zR((n=v(n1(tl),9),new nf(n,v(v0(n,n.length),9),0)))),F0=iy(va(or,Te(xe(tl,1),Dc,64,0,[]))),xf=iy(va(gr,Te(xe(tl,1),Dc,64,0,[]))),Fd=iy(va(Mr,Te(xe(tl,1),Dc,64,0,[]))),Zf=iy(va(cr,Te(xe(tl,1),Dc,64,0,[]))),Qu=iy(va(or,Te(xe(tl,1),Dc,64,0,[Mr]))),Du=iy(va(gr,Te(xe(tl,1),Dc,64,0,[cr]))),$0=iy(va(or,Te(xe(tl,1),Dc,64,0,[cr]))),Ih=iy(va(or,Te(xe(tl,1),Dc,64,0,[gr]))),$d=iy(va(Mr,Te(xe(tl,1),Dc,64,0,[cr]))),Sf=iy(va(gr,Te(xe(tl,1),Dc,64,0,[Mr]))),Nh=iy(va(or,Te(xe(tl,1),Dc,64,0,[gr,cr]))),Xu=iy(va(gr,Te(xe(tl,1),Dc,64,0,[Mr,cr]))),Zu=iy(va(or,Te(xe(tl,1),Dc,64,0,[Mr,cr]))),mh=iy(va(or,Te(xe(tl,1),Dc,64,0,[gr,Mr]))),ou=iy(va(or,Te(xe(tl,1),Dc,64,0,[gr,Mr,cr])))}function cRr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt;for(i.Ug(cQt,1),le=new Ot,xt=new Ot,O=new me(n.b);O.a0&&(Ue-=re),FPe(x,Ue),D=0,J=new me(x.a);J.a0),T.a.Xb(T.c=--T.b)),R=.4*d*D,!y&&T.b0&&(R=(sr(0,i.length),i.charCodeAt(0)),R!=64)){if(R==37&&(q=i.lastIndexOf("%"),O=!1,q!=0&&(q==J-1||(O=(sr(q+1,i.length),i.charCodeAt(q+1)==46))))){if(x=(mo(1,q,i.length),i.substr(1,q-1)),Ue=An("%",x)?null:KPe(x),d=0,O)try{d=Nd((sr(q+2,i.length+1),i.substr(q+2)),Po,qi)}catch(je){throw je=Da(je),$e(je,130)?(T=je,_e(new VQ(T))):_e(je)}for(de=E9e(n.Gh());de.Ob();)if(ae=vZ(de),$e(ae,519)&&(g=v(ae,598),Me=g.d,(Ue==null?Me==null:An(Ue,Me))&&d--==0))return g;return null}if(D=i.lastIndexOf("."),re=D==-1?i:(mo(0,D,i.length),i.substr(0,D)),l=0,D!=-1)try{l=Nd((sr(D+1,i.length+1),i.substr(D+1)),Po,qi)}catch(je){if(je=Da(je),$e(je,130))re=i;else throw _e(je)}for(re=An("%",re)?null:KPe(re),le=E9e(n.Gh());le.Ob();)if(ae=vZ(le),$e(ae,197)&&(y=v(ae,197),Se=y.xe(),(re==null?Se==null:An(re,Se))&&l--==0))return y;return null}return ZWt(n,i)}function bRr(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me;for(D=new Br,R=new OE,d=new me(n.a.a.b);d.ai.d.c){if(re=n.c[i.a.d],de=n.c[q.a.d],re==de)continue;C0(m0(g0(b0(p0(new Bf,1),100),re),de))}}}}}function yRr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt;if(J=v(v(Zi(n.r,i),21),87),i==(Bt(),gr)||i==cr){sKt(n,i);return}for(y=i==or?(GE(),gq):(GE(),mq),je=i==or?(ju(),g1):(ju(),I0),l=v(yl(n.b,i),127),d=l.i,g=d.c+YT(Te(xe(ao,1),_l,28,15,[l.n.b,n.C.b,n.k])),Se=d.c+d.b-YT(Te(xe(ao,1),_l,28,15,[l.n.c,n.C.c,n.k])),x=cRe(TIe(y),n.t),Me=i==or?Ss:ka,q=J.Kc();q.Ob();)O=v(q.Pb(),117),!(!O.c||O.c.d.c.length<=0)&&(de=O.b.Mf(),le=O.e,re=O.c,ae=re.i,ae.b=(R=re.n,re.e.a+R.b+R.c),ae.a=(T=re.n,re.e.b+T.d+T.a),az(je,TBe),re.f=je,l1(re,(Th(),R0)),ae.c=le.a-(ae.b-de.a)/2,yt=u.Math.min(g,le.a),xt=u.Math.max(Se,le.a+de.a),ae.cxt&&(ae.c=xt-ae.b),Lt(x.d,new wde(ae,mLe(x,ae))),Me=i==or?u.Math.max(Me,le.b+O.b.Mf().b):u.Math.min(Me,le.b));for(Me+=i==or?n.t:-n.t,Ue=MLe((x.e=Me,x)),Ue>0&&(v(yl(n.b,i),127).a.b=Ue),D=J.Kc();D.Ob();)O=v(D.Pb(),117),!(!O.c||O.c.d.c.length<=0)&&(ae=O.c.i,ae.c-=O.e.a,ae.d-=O.e.b)}function vRr(n){var i,l,d,g,y,x,T,R,O,D,q,J,re;for(i=new Br,R=new mr(n);R.e!=R.i.gc();){for(T=v(wr(R),27),l=new fs,Ni(Ube,T,l),re=new qs,g=v(Wl(new xn(null,new TE(new yr(_r(bG(T).a.Kc(),new S)))),R9t(re,Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)])))),85),c$t(l,v(g.xc((Qn(),!0)),16),new Rt),d=v(Wl(Ki(v(g.xc(!1),15).Lc(),new Bb),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[Ql]))),15),x=d.Kc();x.Ob();)y=v(x.Pb(),74),J=cHt(y),J&&(O=v(Pl(ol(i.f,J)),21),O||(O=OYt(J),yu(i.f,J,O)),bo(l,O));for(g=v(Wl(new xn(null,new TE(new yr(_r(eb(T).a.Kc(),new S)))),R9t(re,Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[Ql])))),85),c$t(l,v(g.xc(!0),16),new Gt),d=v(Wl(Ki(v(g.xc(!1),15).Lc(),new Ds),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[Ql]))),15),q=d.Kc();q.Ob();)D=v(q.Pb(),74),J=uHt(D),J&&(O=v(Pl(ol(i.f,J)),21),O||(O=OYt(J),yu(i.f,J,O)),bo(l,O))}}function _Rr(n,i){spe();var l,d,g,y,x,T,R,O,D,q,J,re,ae,le;if(R=Oc(n,0)<0,R&&(n=ty(n)),Oc(n,0)==0)switch(i){case 0:return"0";case 1:return xI;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return re=new Cv,i<0?re.a+="0E+":re.a+="0E",re.a+=i==Po?"2147483648":""+-i,re.a}D=18,q=st(Tf,rg,28,D+1,15,1),l=D,le=n;do O=le,le=oG(le,10),q[--l]=ti(zo(48,zf(O,Go(le,10))))&vs;while(Oc(le,0)!=0);if(g=zf(zf(zf(D,l),i),1),i==0)return R&&(q[--l]=45),Qp(q,l,D-l);if(i>0&&Oc(g,-6)>=0){if(Oc(g,0)>=0){for(y=l+ti(g),T=D-1;T>=y;T--)q[T+1]=q[T];return q[++y]=46,R&&(q[--l]=45),Qp(q,l,D-l+1)}for(x=2;nhe(x,zo(ty(g),1));x++)q[--l]=48;return q[--l]=46,q[--l]=48,R&&(q[--l]=45),Qp(q,l,D-l)}return ae=l+1,d=D,J=new sk,R&&(J.a+="-"),d-ae>=1?(C_(J,q[l]),J.a+=".",J.a+=Qp(q,l+1,D-l-1)):J.a+=Qp(q,l,D-l),J.a+="E",Oc(g,0)>0&&(J.a+="+"),J.a+=""+sD(g),J.a}function JE(n,i,l,d,g){var y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt;if(de=new Ct(n.g,n.f),le=hMe(n),le.a=u.Math.max(le.a,i),le.b=u.Math.max(le.b,l),xt=le.a/de.a,D=le.b/de.b,je=le.a-de.a,R=le.b-de.b,d)for(x=Aa(n)?v(Et(Aa(n),(Ei(),gw)),88):v(Et(n,(Ei(),gw)),88),T=Ze(Et(n,(Ei(),UP)))===Ze((co(),su)),Me=new mr((!n.c&&(n.c=new vt(Oh,n,9,9)),n.c));Me.e!=Me.i.gc();)switch(Se=v(wr(Me),123),Ue=v(Et(Se,nC),64),Ue==(Bt(),lc)&&(Ue=kPe(Se,x),sa(Se,nC,Ue)),Ue.g){case 1:T||Au(Se,Se.i*xt);break;case 2:Au(Se,Se.i+je),T||ku(Se,Se.j*D);break;case 3:T||Au(Se,Se.i*xt),ku(Se,Se.j+R);break;case 4:T||ku(Se,Se.j*D)}if(DT(n,le.a,le.b),g)for(J=new mr((!n.n&&(n.n=new vt(wl,n,1,7)),n.n));J.e!=J.i.gc();)q=v(wr(J),135),re=q.i+q.g/2,ae=q.j+q.f/2,yt=re/de.a,O=ae/de.b,yt+O>=1&&(yt-O>0&&ae>=0?(Au(q,q.i+je),ku(q,q.j+R*O)):yt-O<0&&re>=0&&(Au(q,q.i+je*yt),ku(q,q.j+R)));return sa(n,(Ei(),mw),(ud(),y=v(n1(WP),9),new nf(y,v(v0(y,y.length),9),0))),new Ct(xt,D)}function fKt(n){dE(n,new H_(DK(cE(sE(lE(oE(new f_,bf),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new uxt),bf))),It(n,bf,mee,zt(Tln)),It(n,bf,N4,zt(Cln)),It(n,bf,y5,zt(wln)),It(n,bf,l6,zt(Eln)),It(n,bf,o6,zt(xln)),It(n,bf,II,zt(_ln)),It(n,bf,TM,zt($Ye)),It(n,bf,NI,zt(Sln)),It(n,bf,gme,zt(Gve)),It(n,bf,pme,zt(qve)),It(n,bf,xee,zt(zYe)),It(n,bf,mme,zt(Hve)),It(n,bf,bme,zt(GYe)),It(n,bf,M$e,zt(qYe)),It(n,bf,D$e,zt(UYe)),It(n,bf,I$e,zt(Nne)),It(n,bf,N$e,zt(One)),It(n,bf,O$e,zt(Kq)),It(n,bf,L$e,zt(HYe)),It(n,bf,R$e,zt(FYe))}function PJ(n){var i,l,d,g,y,x,T,R,O,D,q;if(n==null)throw _e(new Gp(Ku));if(O=n,y=n.length,R=!1,y>0&&(i=(sr(0,n.length),n.charCodeAt(0)),(i==45||i==43)&&(n=(sr(1,n.length+1),n.substr(1)),--y,R=i==45)),y==0)throw _e(new Gp(nx+O+'"'));for(;n.length>0&&(sr(0,n.length),n.charCodeAt(0)==48);)n=(sr(1,n.length+1),n.substr(1)),--y;if(y>(Hjt(),Oen)[10])throw _e(new Gp(nx+O+'"'));for(g=0;g0&&(q=-parseInt((mo(0,d,n.length),n.substr(0,d)),10),n=(sr(d,n.length+1),n.substr(d)),y-=d,l=!1);y>=x;){if(d=parseInt((mo(0,x,n.length),n.substr(0,x)),10),n=(sr(x,n.length+1),n.substr(x)),y-=x,l)l=!1;else{if(Oc(q,T)<0)throw _e(new Gp(nx+O+'"'));q=Go(q,D)}q=zf(q,d)}if(Oc(q,0)>0)throw _e(new Gp(nx+O+'"'));if(!R&&(q=ty(q),Oc(q,0)<0))throw _e(new Gp(nx+O+'"'));return q}function KPe(n){dpe();var i,l,d,g,y,x,T,R;if(n==null)return null;if(g=qp(n,Wu(37)),g<0)return n;for(R=new Ed((mo(0,g,n.length),n.substr(0,g))),i=st(bh,E5,28,4,15,1),T=0,d=0,x=n.length;gg+2&&o0e((sr(g+1,n.length),n.charCodeAt(g+1)),AKe,kKe)&&o0e((sr(g+2,n.length),n.charCodeAt(g+2)),AKe,kKe))if(l=zur((sr(g+1,n.length),n.charCodeAt(g+1)),(sr(g+2,n.length),n.charCodeAt(g+2))),g+=2,d>0?(l&192)==128?i[T++]=l<<24>>24:d=0:l>=128&&((l&224)==192?(i[T++]=l<<24>>24,d=2):(l&240)==224?(i[T++]=l<<24>>24,d=3):(l&248)==240&&(i[T++]=l<<24>>24,d=4)),d>0){if(T==d){switch(T){case 2:{C_(R,((i[0]&31)<<6|i[1]&63)&vs);break}case 3:{C_(R,((i[0]&15)<<12|(i[1]&63)<<6|i[2]&63)&vs);break}}T=0,d=0}}else{for(y=0;y=2){if((!n.a&&(n.a=new vt(xa,n,6,6)),n.a).i==0)l=(kv(),g=new dK,g),Yr((!n.a&&(n.a=new vt(xa,n,6,6)),n.a),l);else if((!n.a&&(n.a=new vt(xa,n,6,6)),n.a).i>1)for(J=new gk((!n.a&&(n.a=new vt(xa,n,6,6)),n.a));J.e!=J.i.gc();)XD(J);TG(i,v(ze((!n.a&&(n.a=new vt(xa,n,6,6)),n.a),0),166))}if(q)for(d=new mr((!n.a&&(n.a=new vt(xa,n,6,6)),n.a));d.e!=d.i.gc();)for(l=v(wr(d),166),O=new mr((!l.a&&(l.a=new gs(Ud,l,5)),l.a));O.e!=O.i.gc();)R=v(wr(O),377),T.a=u.Math.max(T.a,R.a),T.b=u.Math.max(T.b,R.b);for(x=new mr((!n.n&&(n.n=new vt(wl,n,1,7)),n.n));x.e!=x.i.gc();)y=v(wr(x),135),D=v(Et(y,GP),8),D&&ef(y,D.a,D.b),q&&(T.a=u.Math.max(T.a,y.i+y.g),T.b=u.Math.max(T.b,y.j+y.f));return T}function gKt(n,i,l,d,g){var y,x,T;if(mFt(n,i),x=i[0],y=Do(l.c,0),T=-1,Y9e(l))if(d>0){if(x+d>n.length)return!1;T=hJ((mo(0,x+d,n.length),n.substr(0,x+d)),i)}else T=hJ(n,i);switch(y){case 71:return T=i5(n,x,Te(xe(Xt,1),kt,2,6,[eXt,tXt]),i),g.e=T,!0;case 77:return P5r(n,i,g,T,x);case 76:return B5r(n,i,g,T,x);case 69:return kSr(n,i,x,g);case 99:return RSr(n,i,x,g);case 97:return T=i5(n,x,Te(xe(Xt,1),kt,2,6,["AM","PM"]),i),g.b=T,!0;case 121:return F5r(n,i,x,T,l,g);case 100:return T<=0?!1:(g.c=T,!0);case 83:return T<0?!1:Hvr(T,x,i[0],g);case 104:T==12&&(T=0);case 75:case 72:return T<0?!1:(g.f=T,g.g=!1,!0);case 107:return T<0?!1:(g.f=T,g.g=!0,!0);case 109:return T<0?!1:(g.j=T,!0);case 115:return T<0?!1:(g.n=T,!0);case 90:if(xyn[R]&&(de=R),q=new me(n.a.b);q.a1;){if(g=RTr(i),q=y.g,ae=v(Et(i,NP),107),le=We(at(Et(i,Pne))),(!i.a&&(i.a=new vt(Pi,i,10,11)),i.a).i>1&&We(at(Et(i,(Vg(),Zve))))!=ka&&(y.c+(ae.b+ae.c))/(y.b+(ae.d+ae.a))1&&We(at(Et(i,(Vg(),Qve))))!=ka&&(y.c+(ae.b+ae.c))/(y.b+(ae.d+ae.a))>le&&sa(g,(Vg(),r3),u.Math.max(We(at(Et(i,IP))),We(at(Et(g,r3)))-We(at(Et(i,Qve))))),re=new n8e(d,D),R=MKt(re,g,J),O=R.g,O>=q&&O==O){for(x=0;x<(!g.a&&(g.a=new vt(Pi,g,10,11)),g.a).i;x++)lVt(n,v(ze((!g.a&&(g.a=new vt(Pi,g,10,11)),g.a),x),27),v(ze((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a),x),27));GFt(i,re),Lfr(y,R.c),Ofr(y,R.b)}--T}sa(i,(Vg(),bN),y.b),sa(i,C6,y.c),l.Vg()}function SRr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me;for(i.Ug("Interactive node layering",1),l=new Ot,J=new me(n.a);J.a=T){Tr(Me.b>0),Me.a.Xb(Me.c=--Me.b);break}else de.a>R&&(d?(xs(d.b,de.b),d.a=u.Math.max(d.a,de.a),ld(Me)):(Lt(de.b,D),de.c=u.Math.min(de.c,R),de.a=u.Math.max(de.a,T),d=de));d||(d=new u6t,d.c=R,d.a=T,KS(Me,d),Lt(d.b,D))}for(x=n.b,O=0,Se=new me(l);Se.are&&(y&&(jo(xt,J),jo(yn,Nt(O.b-1))),Ui=l.b,Fa+=J+i,J=0,D=u.Math.max(D,l.b+l.c+Sr)),Au(T,Ui),ku(T,Fa),D=u.Math.max(D,Ui+Sr+l.c),J=u.Math.max(J,q),Ui+=Sr+i;if(D=u.Math.max(D,d),Xn=Fa+J+l.a,Xnsg,mn=u.Math.abs(J.b-ae.b)>sg,(!l&&yn&&mn||l&&(yn||mn))&&pi(de.a,je)),bo(de.a,d),d.b==0?J=je:J=(Tr(d.b!=0),v(d.c.b.c,8)),ubr(re,q,le),z$t(g)==Mt&&(So(Mt.i)!=g.a&&(le=new ho,oMe(le,So(Mt.i),Me)),_t(de,$ye,le)),Yxr(re,de,Me),D.a.zc(re,D);Uo(de,yt),lo(de,Mt)}for(O=D.a.ec().Kc();O.Ob();)R=v(O.Pb(),18),Uo(R,null),lo(R,null);i.Vg()}function ARr(n,i){var l,d,g,y,x,T,R,O,D,q,J;for(g=v(oe(n,(pc(),Ax)),88),D=g==(ys(),Ol)||g==ql?lp:ql,l=v(Wl(Ki(new xn(null,new Nn(n.b,16)),new mEt),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),R=v(Wl(Bl(l.Oc(),new NAt(i)),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[Ql]))),15),R.Gc(v(Wl(Bl(l.Oc(),new OAt(i)),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[Ql]))),16)),R.jd(new LAt(D)),J=new Vb(new DAt(g)),d=new Br,T=R.Kc();T.Ob();)x=v(T.Pb(),240),O=v(x.a,40),Vt(Ht(x.c))?(J.a.zc(O,(Qn(),a2))==null,new MR(J.a.Zc(O,!1)).a.gc()>0&&Ni(d,O,v(new MR(J.a.Zc(O,!1)).a.Vc(),40)),new MR(J.a.ad(O,!0)).a.gc()>1&&Ni(d,Vzt(J,O),O)):(new MR(J.a.Zc(O,!1)).a.gc()>0&&(y=v(new MR(J.a.Zc(O,!1)).a.Vc(),40),Ze(y)===Ze(Pl(ol(d.f,O)))&&v(oe(O,(fa(),xve)),15).Fc(y)),new MR(J.a.ad(O,!0)).a.gc()>1&&(q=Vzt(J,O),Ze(Pl(ol(d.f,q)))===Ze(O)&&v(oe(q,(fa(),xve)),15).Fc(O)),J.a.Bc(O)!=null)}function mKt(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je;if(n.gc()==1)return v(n.Xb(0),235);if(n.gc()<=0)return new PQ;for(g=n.Kc();g.Ob();){for(l=v(g.Pb(),235),ae=0,D=qi,q=qi,R=Po,O=Po,re=new me(l.e);re.aT&&(Ue=0,je+=x+Se,x=0),JCr(le,l,Ue,je),i=u.Math.max(i,Ue+de.a),x=u.Math.max(x,de.b),Ue+=de.a+Se;return le}function kRr(n){APe();var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de;if(n==null||(y=jQ(n),ae=nvr(y),ae%4!=0))return null;if(le=ae/4|0,le==0)return st(bh,E5,28,0,15,1);for(q=null,i=0,l=0,d=0,g=0,x=0,T=0,R=0,O=0,re=0,J=0,D=0,q=st(bh,E5,28,le*3,15,1);re>4)<<24>>24,q[J++]=((l&15)<<4|d>>2&15)<<24>>24,q[J++]=(d<<6|g)<<24>>24}return!pU(x=y[D++])||!pU(T=y[D++])?null:(i=fp[x],l=fp[T],R=y[D++],O=y[D++],fp[R]==-1||fp[O]==-1?R==61&&O==61?l&15?null:(de=st(bh,E5,28,re*3+1,15,1),Gc(q,0,de,0,re*3),de[J]=(i<<2|l>>4)<<24>>24,de):R!=61&&O==61?(d=fp[R],d&3?null:(de=st(bh,E5,28,re*3+2,15,1),Gc(q,0,de,0,re*3),de[J++]=(i<<2|l>>4)<<24>>24,de[J]=((l&15)<<4|d>>2&15)<<24>>24,de)):null:(d=fp[R],g=fp[O],q[J++]=(i<<2|l>>4)<<24>>24,q[J++]=((l&15)<<4|d>>2&15)<<24>>24,q[J++]=(d<<6|g)<<24>>24,q))}function RRr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt;for(i.Ug(cQt,1),ae=v(oe(n,(qt(),lb)),223),g=new me(n.b);g.a=2){for(le=!0,J=new me(y.j),l=v(pe(J),12),re=null;J.a0)if(d=q.gc(),O=Ps(u.Math.floor((d+1)/2))-1,g=Ps(u.Math.ceil((d+1)/2))-1,i.o==sp)for(D=g;D>=O;D--)i.a[je.p]==je&&(le=v(q.Xb(D),42),ae=v(le.a,10),!r1(l,le.b)&&re>n.b.e[ae.p]&&(i.a[ae.p]=je,i.g[je.p]=i.g[ae.p],i.a[je.p]=i.g[je.p],i.f[i.g[je.p].p]=(Qn(),!!(Vt(i.f[i.g[je.p].p])&je.k==(lr(),Ws))),re=n.b.e[ae.p]));else for(D=O;D<=g;D++)i.a[je.p]==je&&(Se=v(q.Xb(D),42),de=v(Se.a,10),!r1(l,Se.b)&&re0&&(g=v(Yt(de.c.a,xt-1),10),x=n.i[g.p],yn=u.Math.ceil(PT(n.n,g,de)),y=yt.a.e-de.d.d-(x.a.e+g.o.b+g.d.a)-yn),O=ka,xt0&&Mt.a.e.e-Mt.a.a-(Mt.b.e.e-Mt.b.a)<0,ae=Ue.a.e.e-Ue.a.a-(Ue.b.e.e-Ue.b.a)<0&&Mt.a.e.e-Mt.a.a-(Mt.b.e.e-Mt.b.a)>0,re=Ue.a.e.e+Ue.b.aMt.b.e.e+Mt.a.a,je=0,!le&&!ae&&(J?y+q>0?je=q:O-d>0&&(je=d):re&&(y+T>0?je=T:O-Me>0&&(je=Me))),yt.a.e+=je,yt.b&&(yt.d.e+=je),!1))}function yKt(n,i,l){var d,g,y,x,T,R,O,D,q,J;if(d=new rf(i.Lf().a,i.Lf().b,i.Mf().a,i.Mf().b),g=new fk,n.c)for(x=new me(i.Rf());x.aO&&(d.a+=YIt(st(Tf,rg,28,-O,15,1))),d.a+="Is",qp(R,Wu(32))>=0)for(g=0;g=d.o.b/2}else Me=!q;Me?(Se=v(oe(d,(At(),S6)),15),Se?J?y=Se:(g=v(oe(d,v6),15),g?Se.gc()<=g.gc()?y=Se:y=g:(y=new Ot,_t(d,v6,y))):(y=new Ot,_t(d,S6,y))):(g=v(oe(d,(At(),v6)),15),g?q?y=g:(Se=v(oe(d,S6),15),Se?g.gc()<=Se.gc()?y=g:y=Se:(y=new Ot,_t(d,S6,y))):(y=new Ot,_t(d,v6,y))),y.Fc(n),_t(n,(At(),Yte),l),i.d==l?(lo(i,null),l.e.c.length+l.g.c.length==0&&rc(l,null),jbr(l)):(Uo(i,null),l.e.c.length+l.g.c.length==0&&rc(l,null)),xd(i.a)}function LRr(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr,Ui,Fa;for(l.Ug("MinWidth layering",1),re=i.b,Mt=i.a,Fa=v(oe(i,(qt(),YHe)),17).a,T=v(oe(i,jHe),17).a,n.b=We(at(oe(i,O0))),n.d=ka,je=new me(Mt);je.a0?(O=0,de&&(O+=T),O+=(mn-1)*x,Ue&&(O+=T),yn&&Ue&&(O=u.Math.max(O,JTr(Ue,x,Me,Mt))),O=n.a&&(d=gkr(n,Me),D=u.Math.max(D,d.b),je=u.Math.max(je,d.d),Lt(T,new Ms(Me,d)));for(yn=new Ot,O=0;O0),de.a.Xb(de.c=--de.b),mn=new Xc(n.b),KS(de,mn),Tr(de.b0){for(J=D<100?null:new Av(D),O=new R9e(i),ae=O.g,Se=st(Wr,vi,28,D,15,1),d=0,je=new PE(D),g=0;g=0;)if(re!=null?Yi(re,ae[R]):Ze(re)===Ze(ae[R])){Se.length<=d&&(de=Se,Se=st(Wr,vi,28,2*Se.length,15,1),Gc(de,0,Se,0,d)),Se[d++]=g,Yr(je,ae[R]);break e}if(re=re,Ze(re)===Ze(T))break}}if(O=je,ae=je.g,D=d,d>Se.length&&(de=Se,Se=st(Wr,vi,28,d,15,1),Gc(de,0,Se,0,d)),d>0){for(Ue=!0,y=0;y=0;)Vk(n,Se[x]);if(d!=D){for(g=D;--g>=d;)Vk(O,g);de=Se,Se=st(Wr,vi,28,d,15,1),Gc(de,0,Se,0,d)}i=O}}}else for(i=X_r(n,i),g=n.i;--g>=0;)i.Hc(n.g[g])&&(Vk(n,g),Ue=!0);if(Ue){if(Se!=null){for(l=i.gc(),q=l==1?pD(n,4,i.Kc().Pb(),null,Se[0],le):pD(n,6,i,Se,Se[0],le),J=l<100?null:new Av(l),g=i.Kc();g.Ob();)re=g.Pb(),J=yIe(n,v(re,76),J);J?(J.nj(q),J.oj()):Vi(n.e,q)}else{for(J=nlr(i.gc()),g=i.Kc();g.Ob();)re=g.Pb(),J=yIe(n,v(re,76),J);J&&J.oj()}return!0}else return!1}function PRr(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;for(l=new BGt(i),l.a||uAr(i),O=lCr(i),R=new OE,de=new $Yt,le=new me(i.a);le.a0||l.o==sp&&g=l}function FRr(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr;for(Ue=i,Me=new OE,je=new OE,D=ME(Ue,bUe),d=new YLt(n,l,Me,je),iSr(d.a,d.b,d.c,d.d,D),R=(Mt=Me.i,Mt||(Me.i=new $T(Me,Me.c))),mn=R.Kc();mn.Ob();)for(yn=v(mn.Pb(),166),g=v(Zi(Me,yn),21),le=g.Kc();le.Ob();)if(ae=le.Pb(),yt=v(jT(n.d,ae),166),yt)T=(!yn.e&&(yn.e=new Gn(xa,yn,10,9)),yn.e),Yr(T,yt);else throw x=zm(Ue,ug),J=PZt+ae+BZt+x,re=J+UI,_e(new zp(re));for(O=(xt=je.i,xt||(je.i=new $T(je,je.c))),Xn=O.Kc();Xn.Ob();)for(Kn=v(Xn.Pb(),166),y=v(Zi(je,Kn),21),Se=y.Kc();Se.Ob();)if(de=Se.Pb(),yt=v(jT(n.d,de),166),yt)q=(!Kn.g&&(Kn.g=new Gn(xa,Kn,9,10)),Kn.g),Yr(q,yt);else throw x=zm(Ue,ug),J=PZt+de+BZt+x,re=J+UI,_e(new zp(re));!l.b&&(l.b=new Gn(Lr,l,4,7)),l.b.i!=0&&(!l.c&&(l.c=new Gn(Lr,l,5,8)),l.c.i!=0)&&(!l.b&&(l.b=new Gn(Lr,l,4,7)),l.b.i<=1&&(!l.c&&(l.c=new Gn(Lr,l,5,8)),l.c.i<=1))&&(!l.a&&(l.a=new vt(xa,l,6,6)),l.a).i==1&&(Sr=v(ze((!l.a&&(l.a=new vt(xa,l,6,6)),l.a),0),166),!X0e(Sr)&&!Q0e(Sr)&&(lZ(Sr,v(ze((!l.b&&(l.b=new Gn(Lr,l,4,7)),l.b),0),84)),cZ(Sr,v(ze((!l.c&&(l.c=new Gn(Lr,l,5,8)),l.c),0),84))))}function $Rr(n){var i,l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn;for(Ue=n.a,je=0,yt=Ue.length;je0?(q=v(Yt(J.c.a,x-1),10),yn=PT(n.b,J,q),de=J.n.b-J.d.d-(q.n.b+q.o.b+q.d.a+yn)):de=J.n.b-J.d.d,O=u.Math.min(de,O),x1&&(x=u.Math.min(x,u.Math.abs(v(gf(T.a,1),8).b-D.b)))));else for(le=new me(i.j);le.ag&&(y=J.a-g,x=qi,d.c.length=0,g=J.a),J.a>=g&&(jn(d.c,T),T.a.b>1&&(x=u.Math.min(x,u.Math.abs(v(gf(T.a,T.a.b-2),8).b-J.b)))));if(d.c.length!=0&&y>i.o.a/2&&x>i.o.b/2){for(re=new zc,rc(re,i),Bs(re,(Bt(),or)),re.n.a=i.o.a/2,Se=new zc,rc(Se,i),Bs(Se,Mr),Se.n.a=i.o.a/2,Se.n.b=i.o.b,R=new me(d);R.a=O.b?Uo(T,Se):Uo(T,re)):(O=v(Iur(T.a),8),de=T.a.b==0?q1(T.c):v(y0(T.a),8),de.b>=O.b?lo(T,Se):lo(T,re)),q=v(oe(T,(qt(),Nl)),75),q&&f4(q,O,!0);i.n.a=g-i.o.a/2}}function zRr(n,i,l){var d,g,y,x,T,R,O,D,q,J;for(T=Ur(n.b,0);T.b!=T.d.c;)if(x=v(Fr(T),40),!An(x.c,_ee))for(O=d3r(x,n),i==(ys(),Ol)||i==ql?us(O,new zEt):us(O,new GEt),R=O.c.length,d=0;d=0?re=zk(T):re=Xz(zk(T)),n.qf(lN,re)),O=new ho,J=!1,n.pf(Ex)?(G8e(O,v(n.of(Ex),8)),J=!0):Xsr(O,x.a/2,x.b/2),re.g){case 4:_t(D,Lu,(pf(),u2)),_t(D,Wte,(F_(),O5)),D.o.b=x.b,le<0&&(D.o.a=-le),Bs(q,(Bt(),gr)),J||(O.a=x.a),O.a-=x.a;break;case 2:_t(D,Lu,(pf(),Y4)),_t(D,Wte,(F_(),tN)),D.o.b=x.b,le<0&&(D.o.a=-le),Bs(q,(Bt(),cr)),J||(O.a=0);break;case 1:_t(D,aw,(Ym(),D5)),D.o.a=x.a,le<0&&(D.o.b=-le),Bs(q,(Bt(),Mr)),J||(O.b=x.b),O.b-=x.b;break;case 3:_t(D,aw,(Ym(),y6)),D.o.a=x.a,le<0&&(D.o.b=-le),Bs(q,(Bt(),or)),J||(O.b=0)}if(G8e(q.n,O),_t(D,Ex,O),i==yw||i==sm||i==su){if(ae=0,i==yw&&n.pf(_y))switch(re.g){case 1:case 2:ae=v(n.of(_y),17).a;break;case 3:case 4:ae=-v(n.of(_y),17).a}else switch(re.g){case 4:case 2:ae=y.b,i==sm&&(ae/=g.b);break;case 1:case 3:ae=y.a,i==sm&&(ae/=g.a)}_t(D,bx,ae)}return _t(D,vc,re),D}function GRr(){fRe();function n(d){var g=this;this.dispatch=function(y){var x=y.data;switch(x.cmd){case"algorithms":var T=DLe((Fn(),new DR(new Dm(w2.b))));d.postMessage({id:x.id,data:T});break;case"categories":var R=DLe((Fn(),new DR(new Dm(w2.c))));d.postMessage({id:x.id,data:R});break;case"options":var O=DLe((Fn(),new DR(new Dm(w2.d))));d.postMessage({id:x.id,data:O});break;case"register":V6r(x.algorithms),d.postMessage({id:x.id});break;case"layout":_kr(x.graph,x.layoutOptions||{},x.options||{}),d.postMessage({id:x.id,data:x.graph});break}},this.saveDispatch=function(y){try{g.dispatch(y)}catch(x){d.postMessage({id:y.data.id,error:x})}}}function i(d){var g=this;this.dispatcher=new n({postMessage:function(y){g.onmessage({data:y})}}),this.postMessage=function(y){setTimeout(function(){g.dispatcher.saveDispatch({data:y})},0)}}if(typeof document===ige&&typeof self!==ige){var l=new n(self);self.onmessage=l.saveDispatch}else typeof a!==ige&&a.exports&&(Object.defineProperty(s,"__esModule",{value:!0}),a.exports={default:i,Worker:i})}function SKt(n,i,l){var d,g,y,x,T,R,O,D,q,J;for(D=new Jm(l),Ul(D,i),_t(D,(At(),Ji),i),D.o.a=i.g,D.o.b=i.f,D.n.a=i.i,D.n.b=i.j,Lt(l.a,D),Ni(n.a,i,D),((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a).i!=0||Vt(Ht(Et(i,(qt(),K4)))))&&_t(D,Gqe,(Qn(),!0)),O=v(oe(l,au),21),q=v(oe(D,(qt(),Qa)),101),q==(co(),y2)?_t(D,Qa,up):q!=up&&O.Fc((cl(),iN)),J=0,d=v(oe(l,Pd),88),R=new mr((!i.c&&(i.c=new vt(Oh,i,9,9)),i.c));R.e!=R.i.gc();)T=v(wr(R),123),g=Aa(i),(Ze(Et(g,nm))!==Ze((Zp(),wy))||Ze(Et(g,ow))===Ze((ly(),eN))||Ze(Et(g,ow))===Ze((ly(),JI))||Vt(Ht(Et(g,vx)))||Ze(Et(g,j4))!==Ze((z_(),z4))||Ze(Et(g,h2))===Ze((qf(),Tx))||Ze(Et(g,h2))===Ze((qf(),e3))||Ze(Et(g,cw))===Ze((fy(),dN))||Ze(Et(g,cw))===Ze((fy(),fN)))&&!Vt(Ht(Et(i,tne)))&&sa(T,ua,Nt(J++)),Vt(Ht(Et(T,hw)))||Z7r(n,T,D,O,d,q);for(x=new mr((!i.n&&(i.n=new vt(wl,i,1,7)),i.n));x.e!=x.i.gc();)y=v(wr(x),135),!Vt(Ht(Et(y,hw)))&&y.a&&Lt(D.b,x0e(y));return Vt(Ht(oe(D,uP)))&&O.Fc((cl(),qte)),Vt(Ht(oe(D,ane)))&&(O.Fc((cl(),Hte)),O.Fc(iP),_t(D,Qa,up)),D}function vpe(n,i,l,d,g,y,x){var T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr,Ui,Fa;for(le=0,Kn=0,O=new me(n.b);O.ale&&(y&&(jo(xt,re),jo(yn,Nt(D.b-1)),Lt(n.d,ae),T.c.length=0),Ui=l.b,Fa+=re+i,re=0,q=u.Math.max(q,l.b+l.c+Sr)),jn(T.c,R),RGt(R,Ui,Fa),q=u.Math.max(q,Ui+Sr+l.c),re=u.Math.max(re,J),Ui+=Sr+i,ae=R;if(xs(n.a,T),Lt(n.d,v(Yt(T,T.c.length-1),163)),q=u.Math.max(q,d),Xn=Fa+re+l.a,Xng.d.d+g.d.a?D.f.d=!0:(D.f.d=!0,D.f.a=!0))),d.b!=d.d.c&&(i=l);D&&(y=v(br(n.f,x.d.i),60),i.by.d.d+y.d.a?D.f.d=!0:(D.f.d=!0,D.f.a=!0))}for(T=new yr(_r(Hs(re).a.Kc(),new S));zr(T);)x=v(Rr(T),18),x.a.b!=0&&(i=v(y0(x.a),8),x.d.j==(Bt(),or)&&(de=new uM(i,new Ct(i.a,g.d.d),g,x),de.f.a=!0,de.a=x.d,jn(le.c,de)),x.d.j==Mr&&(de=new uM(i,new Ct(i.a,g.d.d+g.d.a),g,x),de.f.d=!0,de.a=x.d,jn(le.c,de)))}return le}function WRr(n,i,l){var d,g,y,x,T,R,O,D,q,J;for(R=new Ot,q=i.length,x=V9e(l),O=0;O=ae&&(Me>ae&&(re.c.length=0,ae=Me),jn(re.c,x));re.c.length!=0&&(J=v(Yt(re,KZ(i,re.c.length)),131),Xn.a.Bc(J)!=null,J.s=le++,qMe(J,mn,xt),re.c.length=0)}for(je=n.c.length+1,T=new me(n);T.aKn.s&&(ld(l),Yu(Kn.i,d),d.c>0&&(d.a=Kn,Lt(Kn.t,d),d.b=Mt,Lt(Mt.i,d)))}function TKt(n,i,l,d,g){var y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn;for(le=new gu(i.b),je=new gu(i.b),J=new gu(i.b),yn=new gu(i.b),de=new gu(i.b),Mt=Ur(i,0);Mt.b!=Mt.d.c;)for(yt=v(Fr(Mt),12),T=new me(yt.g);T.a0,Se=yt.g.c.length>0,O&&Se?jn(J.c,yt):O?jn(le.c,yt):Se&&jn(je.c,yt);for(ae=new me(le);ae.aMe.nh()-O.b&&(J=Me.nh()-O.b),re>Me.oh()-O.d&&(re=Me.oh()-O.d),D0){for(Ue=Ur(n.f,0);Ue.b!=Ue.d.c;)Me=v(Fr(Ue),10),Me.p+=J-n.e;lMe(n),xd(n.f),rPe(n,d,re)}else{for(pi(n.f,re),re.p=d,n.e=u.Math.max(n.e,d),y=new yr(_r(Hs(re).a.Kc(),new S));zr(y);)g=v(Rr(y),18),!g.c.i.c&&g.c.i.k==(lr(),Pc)&&(pi(n.f,g.c.i),g.c.i.p=d-1);n.c=d}else lMe(n),xd(n.f),d=0,zr(new yr(_r(Hs(re).a.Kc(),new S)))?(J=0,J=DGt(J,re),d=J+2,rPe(n,d,re)):(pi(n.f,re),re.p=0,n.e=u.Math.max(n.e,0),n.b=v(Yt(n.d.b,0),30),n.c=0);for(n.f.b==0||lMe(n),n.d.a.c.length=0,Se=new Ot,O=new me(n.d.b);O.a=48&&i<=57){for(d=i-48;g=48&&i<=57;)if(d=d*10+i-48,d<0)throw _e(new oi(fi((ii(),IUe))))}else throw _e(new oi(fi((ii(),cJt))));if(l=d,i==44){if(g>=n.j)throw _e(new oi(fi((ii(),hJt))));if((i=Do(n.i,g++))>=48&&i<=57){for(l=i-48;g=48&&i<=57;)if(l=l*10+i-48,l<0)throw _e(new oi(fi((ii(),IUe))));if(d>l)throw _e(new oi(fi((ii(),dJt))))}else l=-1}if(i!=125)throw _e(new oi(fi((ii(),uJt))));n.bm(g)?(y=(zi(),zi(),new r4(9,y)),n.d=g+1):(y=(zi(),zi(),new r4(3,y)),n.d=g),y.Om(d),y.Nm(l),$i(n)}}return y}function e8r(n){var i,l,d,g,y;switch(l=v(oe(n,(At(),au)),21),i=EX(Dnn),g=v(oe(n,(qt(),W4)),346),g==(Km(),Cy)&&Rd(i,Mnn),Vt(Ht(oe(n,Wye)))?yi(i,(Mo(),N0),(qo(),rye)):yi(i,(Mo(),qc),(qo(),rye)),oe(n,(UQ(),MP))!=null&&Rd(i,Pnn),(Vt(Ht(oe(n,qHe)))||Vt(Ht(oe(n,$He))))&&ch(i,(Mo(),Gl),(qo(),FGe)),v(oe(n,Pd),88).g){case 2:case 3:case 4:ch(yi(i,(Mo(),N0),(qo(),UGe)),Gl,$Ge)}switch(l.Hc((cl(),qte))&&ch(yi(yi(i,(Mo(),N0),(qo(),BGe)),ru,MGe),Gl,PGe),Ze(oe(n,h2))!==Ze((qf(),bne))&&yi(i,(Mo(),qc),(qo(),tqe)),l.Hc(Vte)&&(yi(i,(Mo(),N0),(qo(),aqe)),yi(i,em,rqe),yi(i,qc,iqe)),Ze(oe(n,Jte))!==Ze((aI(),rP))&&Ze(oe(n,lb))!==Ze((Xm(),uH))&&ch(i,(Mo(),Gl),(qo(),KGe)),Vt(Ht(oe(n,zHe)))&&yi(i,(Mo(),qc),(qo(),WGe)),Vt(Ht(oe(n,Hye)))&&yi(i,(Mo(),qc),(qo(),sqe)),fTr(n)&&(Ze(oe(n,W4))===Ze(Cy)?d=v(oe(n,Pq),299):d=v(oe(n,qye),299),y=d==(P8(),kye)?(qo(),nqe):(qo(),cqe),yi(i,(Mo(),ru),y)),v(oe(n,gVe),388).g){case 1:yi(i,(Mo(),ru),(qo(),oqe));break;case 2:ch(yi(yi(i,(Mo(),qc),(qo(),NGe)),ru,OGe),Gl,LGe)}return Ze(oe(n,nm))!==Ze((Zp(),wy))&&yi(i,(Mo(),qc),(qo(),lqe)),i}function RKt(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue;if(Tu(n.a,i)){if(r1(v(br(n.a,i),49),l))return 1}else Ni(n.a,i,new fs);if(Tu(n.a,l)){if(r1(v(br(n.a,l),49),i))return-1}else Ni(n.a,l,new fs);if(Tu(n.e,i)){if(r1(v(br(n.e,i),49),l))return-1}else Ni(n.e,i,new fs);if(Tu(n.e,l)){if(r1(v(br(n.a,l),49),i))return 1}else Ni(n.e,l,new fs);if(n.c==(Zp(),uve)||!ya(i,(At(),ua))||!ya(l,(At(),ua))){for(q=null,O=new me(i.j);O.ax?dI(n,i,l):dI(n,l,i),gx?1:0}return d=v(oe(i,(At(),ua)),17).a,y=v(oe(l,ua),17).a,d>y?dI(n,i,l):dI(n,l,i),dy?1:0}function ex(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de;if(l==null)return null;if(n.a!=i.jk())throw _e(new ar(FI+i.xe()+lx));if($e(i,469)){if(de=V5r(v(i,685),l),!de)throw _e(new ar(Nme+l+"' is not a valid enumerator of '"+i.xe()+"'"));return de}switch(ay((dh(),ko),i).Nl()){case 2:{l=eu(l,!1);break}case 3:{l=eu(l,!0);break}}if(d=ay(ko,i).Jl(),d)return d.jk().wi().ti(d,l);if(J=ay(ko,i).Ll(),J){for(de=new Ot,O=p0e(l),D=0,q=O.length;D1)for(ae=new gk((!n.a&&(n.a=new vt(xa,n,6,6)),n.a));ae.e!=ae.i.gc();)XD(ae);for(x=v(ze((!n.a&&(n.a=new vt(xa,n,6,6)),n.a),0),166),de=Ui,Ui>yt+je?de=yt+je:Uixt+le?Se=xt+le:Fayt-je&&dext-le&&SeUi+Sr?yn=Ui+Sr:ytFa+Mt?mn=Fa+Mt:xtUi-Sr&&ynFa-Mt&&mnl&&(J=l-1),re=Ly+Gh(i,24)*GG*q-q/2,re<0?re=1:re>d&&(re=d-1),g=(kv(),R=new hK,R),nZ(g,J),tZ(g,re),Yr((!x.a&&(x.a=new gs(Ud,x,5)),x.a),g)}function IKt(n){dE(n,new H_(cE(sE(lE(oE(new f_,Vh),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new _xt))),It(n,Vh,s6,1.3),It(n,Vh,RI,(Qn(),!1)),It(n,Vh,rx,cje),It(n,Vh,N4,15),It(n,Vh,gee,zt(jln)),It(n,Vh,y5,zt(Xln)),It(n,Vh,l6,zt(Zln)),It(n,Vh,o6,zt(Jln)),It(n,Vh,II,zt(Kln)),It(n,Vh,TM,zt(e2e)),It(n,Vh,NI,zt(ecn)),It(n,Vh,H$e,zt(fje)),It(n,Vh,V$e,zt(dje)),It(n,Vh,q$e,zt(n2e)),It(n,Vh,G$e,zt(pje)),It(n,Vh,Y$e,zt(lje)),It(n,Vh,j$e,zt(t2e)),It(n,Vh,W$e,zt(oje)),It(n,Vh,K$e,zt(hje)),It(n,Vh,SM,zt(sje)),It(n,Vh,bee,zt(Wln)),It(n,Vh,U$e,zt(Qq)),It(n,Vh,$$e,zt(aje)),It(n,Vh,z$e,zt(Zq)),It(n,Vh,F$e,zt(uje))}function wpe(n,i){spe();var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt;if(Ue=n.e,D=n.d,g=n.a,Ue==0)switch(i){case 0:return"0";case 1:return xI;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return Se=new Cv,Se.a+="0E",Se.a+=-i,Se.a}if(le=D*10+1+7,de=st(Tf,rg,28,le+1,15,1),l=le,D==1)if(y=g[0],y<0){Mt=Us(y,ul);do q=Mt,Mt=oG(Mt,10),de[--l]=48+ti(zf(q,Go(Mt,10)))&vs;while(Oc(Mt,0)!=0)}else{Mt=y;do q=Mt,Mt=Mt/10|0,de[--l]=48+(q-Mt*10)&vs;while(Mt!=0)}else{je=st(Wr,vi,28,D,15,1),xt=D,Gc(g,0,je,0,xt);e:for(;;){for(Me=0,T=xt-1;T>=0;T--)yt=zo(w0(Me,32),Us(je[T],ul)),re=qEr(yt),je[T]=ti(re),Me=ti(xE(re,32));ae=ti(Me),J=l;do de[--l]=48+ae%10&vs;while((ae=ae/10|0)!=0&&l!=0);for(d=9-J+l,x=0;x0;x++)de[--l]=48;for(R=xt-1;je[R]==0;R--)if(R==0)break e;xt=R+1}for(;de[l]==48;)++l}return O=Ue<0,O&&(de[--l]=45),Qp(de,l,le-l)}function NKt(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt;switch(n.c=i,n.g=new Br,l=(fE(),new aE(n.c)),d=new _K(l),NLe(d),Ue=ai(Et(n.c,(cG(),Lje))),R=v(Et(n.c,d2e),324),yt=v(Et(n.c,f2e),437),x=v(Et(n.c,Ije),490),je=v(Et(n.c,h2e),438),n.j=We(at(Et(n.c,pcn))),T=n.a,R.g){case 0:T=n.a;break;case 1:T=n.b;break;case 2:T=n.i;break;case 3:T=n.e;break;case 4:T=n.f;break;default:throw _e(new ar(Cee+(R.f!=null?R.f:""+R.g)))}if(n.d=new SDt(T,yt,x),_t(n.d,(L8(),ZM),Ht(Et(n.c,dcn))),n.d.c=Vt(Ht(Et(n.c,Nje))),bQ(n.c).i==0)return n.d;for(q=new mr(bQ(n.c));q.e!=q.i.gc();){for(D=v(wr(q),27),re=D.g/2,J=D.f/2,xt=new Ct(D.i+re,D.j+J);Tu(n.g,xt);)_E(xt,(u.Math.random()-.5)*sg,(u.Math.random()-.5)*sg);le=v(Et(D,(Ei(),vN)),140),de=new FDt(xt,new rf(xt.a-re-n.j/2-le.b,xt.b-J-n.j/2-le.d,D.g+n.j+(le.b+le.c),D.f+n.j+(le.d+le.a))),Lt(n.d.i,de),Ni(n.g,xt,new Ms(de,D))}switch(je.g){case 0:if(Ue==null)n.d.d=v(Yt(n.d.i,0),68);else for(Me=new me(n.d.i);Me.a0?Sr+1:1);for(x=new me(xt.g);x.a0?Sr+1:1)}n.c[O]==0?pi(n.e,le):n.a[O]==0&&pi(n.f,le),++O}for(ae=-1,re=1,q=new Ot,n.d=v(oe(i,(At(),x6)),234);zd>0;){for(;n.e.b!=0;)Fa=v(dde(n.e),10),n.b[Fa.p]=ae--,_Pe(n,Fa),--zd;for(;n.f.b!=0;)Lh=v(dde(n.f),10),n.b[Lh.p]=re++,_Pe(n,Lh),--zd;if(zd>0){for(J=Po,Me=new me(Ue);Me.a=J&&(je>J&&(q.c.length=0,J=je),jn(q.c,le)));D=n.sg(q),n.b[D.p]=re++,_Pe(n,D),--zd}}for(Ui=Ue.c.length+1,O=0;On.b[Ll]&&(ZE(d,!0),_t(i,Oq,(Qn(),!0)));n.a=null,n.c=null,n.b=null,xd(n.f),xd(n.e),l.Vg()}function OKt(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt;for(yt=v(ze((!n.a&&(n.a=new vt(xa,n,6,6)),n.a),0),166),D=new ah,je=new Br,xt=zjt(yt),yu(je.f,yt,xt),J=new Br,d=new Ea,ae=$g(Ad(Te(xe(Md,1),Yn,20,0,[(!i.d&&(i.d=new Gn(ss,i,8,5)),i.d),(!i.e&&(i.e=new Gn(ss,i,7,4)),i.e)])));zr(ae);){if(re=v(Rr(ae),74),(!n.a&&(n.a=new vt(xa,n,6,6)),n.a).i!=1)throw _e(new ar(yZt+(!n.a&&(n.a=new vt(xa,n,6,6)),n.a).i));re!=n&&(de=v(ze((!re.a&&(re.a=new vt(xa,re,6,6)),re.a),0),166),qa(d,de,d.c.b,d.c),le=v(Pl(ol(je.f,de)),13),le||(le=zjt(de),yu(je.f,de,le)),q=l?$s(new Wo(v(Yt(xt,xt.c.length-1),8)),v(Yt(le,le.c.length-1),8)):$s(new Wo(($n(0,xt.c.length),v(xt.c[0],8))),($n(0,le.c.length),v(le.c[0],8))),yu(J.f,de,q))}if(d.b!=0)for(Se=v(Yt(xt,l?xt.c.length-1:0),8),O=1;O1&&qa(D,Se,D.c.b,D.c),$fe(g)));Se=Me}return D}function LKt(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn;for(l.Ug(LQt,1),Kn=v(Wl(Ki(new xn(null,new Nn(i,16)),new KEt),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),D=v(Wl(Ki(new xn(null,new Nn(i,16)),new PAt(i)),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[Ql]))),15),ae=v(Wl(Ki(new xn(null,new Nn(i,16)),new MAt(i)),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[Ql]))),15),le=st(Sne,wee,40,i.gc(),0,1),x=0;x=0&&mn=0&&!le[re]){le[re]=g,D.gd(T),--T;break}if(re=mn-J,re=0&&!le[re]){le[re]=g,D.gd(T),--T;break}}for(ae.jd(new XEt),R=le.length-1;R>=0;R--)!le[R]&&!ae.dc()&&(le[R]=v(ae.Xb(0),40),ae.gd(0));for(O=0;O=0;R--)pi(l,($n(R,x.c.length),v(x.c[R],8)));return l}function MKt(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je;for(Ue=We(at(Et(i,(Vg(),r3)))),re=We(at(Et(i,IP))),J=We(at(Et(i,Dne))),x9e((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a)),Se=TWt((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a),Ue,n.b),de=0;deJ&&aG(($n(J,i.c.length),v(i.c[J],186)),D),D=null;i.c.length>J&&($n(J,i.c.length),v(i.c[J],186)).a.c.length==0;)Yu(i,($n(J,i.c.length),i.c[J]));if(!D){--x;continue}if(!Vt(Ht(v(Yt(D.b,0),27).of((Z1(),Zq))))&&xAr(i,ae,y,D,de,l,J,d)){le=!0;continue}if(de){if(re=ae.b,q=D.f,!Vt(Ht(v(Yt(D.b,0),27).of(Zq)))&&G6r(i,ae,y,D,l,J,d,g)){if(le=!0,re=n.j){n.a=-1,n.c=1;return}if(i=Do(n.i,n.d++),n.a=i,n.b==1){switch(i){case 92:if(d=10,n.d>=n.j)throw _e(new oi(fi((ii(),Lee))));n.a=Do(n.i,n.d++);break;case 45:(n.e&512)==512&&n.d=n.j||Do(n.i,n.d)!=63)break;if(++n.d>=n.j)throw _e(new oi(fi((ii(),Hme))));switch(i=Do(n.i,n.d++),i){case 58:d=13;break;case 61:d=14;break;case 33:d=15;break;case 91:d=19;break;case 62:d=18;break;case 60:if(n.d>=n.j)throw _e(new oi(fi((ii(),Hme))));if(i=Do(n.i,n.d++),i==61)d=16;else if(i==33)d=17;else throw _e(new oi(fi((ii(),VZt))));break;case 35:for(;n.d=n.j)throw _e(new oi(fi((ii(),Lee))));n.a=Do(n.i,n.d++);break;default:d=0}n.c=d}function u8r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de;if(l.Ug("Process compaction",1),!!Vt(Ht(oe(i,(pc(),pYe))))){for(g=v(oe(i,Ax),88),re=We(at(oe(i,Nve))),Bkr(n,i,g),ARr(i,re/2/2),ae=i.b,D_(ae,new kAt(g)),O=Ur(ae,0);O.b!=O.d.c;)if(R=v(Fr(O),40),!Vt(Ht(oe(R,(fa(),p2))))){if(d=cCr(R,g),le=ikr(R,i),q=0,J=0,d)switch(de=d.e,g.g){case 2:q=de.a-re-R.f.a,le.e.a-re-R.f.aq&&(q=le.e.a+le.f.a+re),J=q+R.f.a;break;case 4:q=de.b-re-R.f.b,le.e.b-re-R.f.bq&&(q=le.e.b+le.f.b+re),J=q+R.f.b}else if(le)switch(g.g){case 2:q=le.e.a-re-R.f.a,J=q+R.f.a;break;case 1:q=le.e.a+le.f.a+re,J=q+R.f.a;break;case 4:q=le.e.b-re-R.f.b,J=q+R.f.b;break;case 3:q=le.e.b+le.f.b+re,J=q+R.f.b}Ze(oe(i,Ive))===Ze((OD(),Vq))?(y=q,x=J,T=U8(Ki(new xn(null,new Nn(n.a,16)),new b8t(y,x))),T.a!=null?g==(ys(),Ol)||g==ql?R.e.a=q:R.e.b=q:(g==(ys(),Ol)||g==Ef?T=U8(Ki(jFt(new xn(null,new Nn(n.a,16))),new RAt(y))):T=U8(Ki(jFt(new xn(null,new Nn(n.a,16))),new IAt(y))),T.a!=null&&(g==Ol||g==ql?R.e.a=We(at((Tr(T.a!=null),v(T.a,42)).a)):R.e.b=We(at((Tr(T.a!=null),v(T.a,42)).a)))),T.a!=null&&(D=$l(n.a,(Tr(T.a!=null),T.a),0),D>0&&D!=v(oe(R,gg),17).a&&(_t(R,sYe,(Qn(),!0)),_t(R,gg,Nt(D))))):g==(ys(),Ol)||g==ql?R.e.a=q:R.e.b=q}l.Vg()}}function PKt(n){var i,l,d,g,y,x,T,R,O;for(n.b=1,$i(n),i=null,n.c==0&&n.a==94?($i(n),i=(zi(),zi(),new Td(4)),Jc(i,0,GI),T=new Td(4)):T=(zi(),zi(),new Td(4)),g=!0;(O=n.c)!=1;){if(O==0&&n.a==93&&!g){i&&(gM(i,T),T=i);break}if(l=n.a,d=!1,O==10)switch(l){case 100:case 68:case 119:case 87:case 115:case 83:C4(T,fI(l)),d=!0;break;case 105:case 73:case 99:case 67:l=(C4(T,fI(l)),-1),l<0&&(d=!0);break;case 112:case 80:if(R=SMe(n,l),!R)throw _e(new oi(fi((ii(),Vme))));C4(T,R),d=!0;break;default:l=aPe(n)}else if(O==24&&!g){if(i&&(gM(i,T),T=i),y=PKt(n),gM(T,y),n.c!=0||n.a!=93)throw _e(new oi(fi((ii(),tJt))));break}if($i(n),!d){if(O==0){if(l==91)throw _e(new oi(fi((ii(),kUe))));if(l==93)throw _e(new oi(fi((ii(),RUe))));if(l==45&&!g&&n.a!=93)throw _e(new oi(fi((ii(),Yme))))}if(n.c!=0||n.a!=45||l==45&&g)Jc(T,l,l);else{if($i(n),(O=n.c)==1)throw _e(new oi(fi((ii(),Dee))));if(O==0&&n.a==93)Jc(T,l,l),Jc(T,45,45);else{if(O==0&&n.a==93||O==24)throw _e(new oi(fi((ii(),Yme))));if(x=n.a,O==0){if(x==91)throw _e(new oi(fi((ii(),kUe))));if(x==93)throw _e(new oi(fi((ii(),RUe))));if(x==45)throw _e(new oi(fi((ii(),Yme))))}else O==10&&(x=aPe(n));if($i(n),l>x)throw _e(new oi(fi((ii(),iJt))));Jc(T,l,x)}}}g=!1}if(n.c==1)throw _e(new oi(fi((ii(),Dee))));return a5(T),fM(T),n.b=0,$i(n),T}function h8r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt;if(l.Ug("Coffman-Graham Layering",1),i.a.c.length==0){l.Vg();return}for(yt=v(oe(i,(qt(),VHe)),17).a,R=0,x=0,J=new me(i.a);J.a=yt||!a2r(Se,d))&&(d=DLt(i,D)),po(Se,d),y=new yr(_r(Hs(Se).a.Kc(),new S));zr(y);)g=v(Rr(y),18),!n.a[g.p]&&(le=g.c.i,--n.e[le.p],n.e[le.p]==0&&_k(iI(re,le),SI));for(O=D.c.length-1;O>=0;--O)Lt(i.b,($n(O,D.c.length),v(D.c[O],30)));i.a.c.length=0,l.Vg()}function BKt(n,i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je;je=!1;do for(je=!1,y=i?new m_(n.a.b).a.gc()-2:1;i?y>=0:yv(oe(de,ua),17).a)&&(Ue=!1);if(Ue){for(R=i?y+1:y-1,T=uOe(n.a,Nt(R)),x=!1,Me=!0,d=!1,D=Ur(T,0);D.b!=D.d.c;)O=v(Fr(D),10),ya(O,ua)?O.p!=q.p&&(x=x|(i?v(oe(O,ua),17).av(oe(q,ua),17).a),Me=!1):!x&&Me&&O.k==(lr(),Pc)&&(d=!0,i?J=v(Rr(new yr(_r(Hs(O).a.Kc(),new S))),18).c.i:J=v(Rr(new yr(_r(os(O).a.Kc(),new S))),18).d.i,J==q&&(i?l=v(Rr(new yr(_r(os(O).a.Kc(),new S))),18).d.i:l=v(Rr(new yr(_r(Hs(O).a.Kc(),new S))),18).c.i,(i?v(YS(n.a,l),17).a-v(YS(n.a,J),17).a:v(YS(n.a,J),17).a-v(YS(n.a,l),17).a)<=2&&(Me=!1)));if(d&&Me&&(i?l=v(Rr(new yr(_r(os(q).a.Kc(),new S))),18).d.i:l=v(Rr(new yr(_r(Hs(q).a.Kc(),new S))),18).c.i,(i?v(YS(n.a,l),17).a-v(YS(n.a,q),17).a:v(YS(n.a,q),17).a-v(YS(n.a,l),17).a)<=2&&l.k==(lr(),is)&&(Me=!1)),x||Me){for(le=pYt(n,q,i);le.a.gc()!=0;)ae=v(le.a.ec().Kc().Pb(),10),le.a.Bc(ae)!=null,bo(le,pYt(n,ae,i));--re,je=!0}}}while(je)}function d8r(n){Jr(n.c,gi,Te(xe(Xt,1),kt,2,6,[Bo,"http://www.w3.org/2001/XMLSchema#decimal"])),Jr(n.d,gi,Te(xe(Xt,1),kt,2,6,[Bo,"http://www.w3.org/2001/XMLSchema#integer"])),Jr(n.e,gi,Te(xe(Xt,1),kt,2,6,[Bo,"http://www.w3.org/2001/XMLSchema#boolean"])),Jr(n.f,gi,Te(xe(Xt,1),kt,2,6,[Bo,"EBoolean",Mi,"EBoolean:Object"])),Jr(n.i,gi,Te(xe(Xt,1),kt,2,6,[Bo,"http://www.w3.org/2001/XMLSchema#byte"])),Jr(n.g,gi,Te(xe(Xt,1),kt,2,6,[Bo,"http://www.w3.org/2001/XMLSchema#hexBinary"])),Jr(n.j,gi,Te(xe(Xt,1),kt,2,6,[Bo,"EByte",Mi,"EByte:Object"])),Jr(n.n,gi,Te(xe(Xt,1),kt,2,6,[Bo,"EChar",Mi,"EChar:Object"])),Jr(n.t,gi,Te(xe(Xt,1),kt,2,6,[Bo,"http://www.w3.org/2001/XMLSchema#double"])),Jr(n.u,gi,Te(xe(Xt,1),kt,2,6,[Bo,"EDouble",Mi,"EDouble:Object"])),Jr(n.F,gi,Te(xe(Xt,1),kt,2,6,[Bo,"http://www.w3.org/2001/XMLSchema#float"])),Jr(n.G,gi,Te(xe(Xt,1),kt,2,6,[Bo,"EFloat",Mi,"EFloat:Object"])),Jr(n.I,gi,Te(xe(Xt,1),kt,2,6,[Bo,"http://www.w3.org/2001/XMLSchema#int"])),Jr(n.J,gi,Te(xe(Xt,1),kt,2,6,[Bo,"EInt",Mi,"EInt:Object"])),Jr(n.N,gi,Te(xe(Xt,1),kt,2,6,[Bo,"http://www.w3.org/2001/XMLSchema#long"])),Jr(n.O,gi,Te(xe(Xt,1),kt,2,6,[Bo,"ELong",Mi,"ELong:Object"])),Jr(n.Z,gi,Te(xe(Xt,1),kt,2,6,[Bo,"http://www.w3.org/2001/XMLSchema#short"])),Jr(n.$,gi,Te(xe(Xt,1),kt,2,6,[Bo,"EShort",Mi,"EShort:Object"])),Jr(n._,gi,Te(xe(Xt,1),kt,2,6,[Bo,"http://www.w3.org/2001/XMLSchema#string"]))}function f8r(n,i,l,d,g,y,x){var T,R,O,D,q,J,re,ae;return J=v(d.a,17).a,re=v(d.b,17).a,q=n.b,ae=n.c,T=0,D=0,i==(ys(),Ol)||i==ql?(D=CU(Azt(e4(Bl(new xn(null,new Nn(l.b,16)),new ZEt),new DEt))),q.e.b+q.f.b/2>D?(O=++re,T=We(at(ad(QS(Bl(new xn(null,new Nn(l.b,16)),new _8t(g,O)),new MEt))))):(R=++J,T=We(at(ad(Ek(Bl(new xn(null,new Nn(l.b,16)),new w8t(g,R)),new PEt)))))):(D=CU(Azt(e4(Bl(new xn(null,new Nn(l.b,16)),new UEt),new LEt))),q.e.a+q.f.a/2>D?(O=++re,T=We(at(ad(QS(Bl(new xn(null,new Nn(l.b,16)),new y8t(g,O)),new BEt))))):(R=++J,T=We(at(ad(Ek(Bl(new xn(null,new Nn(l.b,16)),new v8t(g,R)),new FEt)))))),i==Ol?(jo(n.a,new Ct(We(at(oe(q,(fa(),b1))))-g,T)),jo(n.a,new Ct(ae.e.a+ae.f.a+g+y,T)),jo(n.a,new Ct(ae.e.a+ae.f.a+g+y,ae.e.b+ae.f.b/2)),jo(n.a,new Ct(ae.e.a+ae.f.a,ae.e.b+ae.f.b/2))):i==ql?(jo(n.a,new Ct(We(at(oe(q,(fa(),L0))))+g,q.e.b+q.f.b/2)),jo(n.a,new Ct(q.e.a+q.f.a+g,T)),jo(n.a,new Ct(ae.e.a-g-y,T)),jo(n.a,new Ct(ae.e.a-g-y,ae.e.b+ae.f.b/2)),jo(n.a,new Ct(ae.e.a,ae.e.b+ae.f.b/2))):i==Ef?(jo(n.a,new Ct(T,We(at(oe(q,(fa(),b1))))-g)),jo(n.a,new Ct(T,ae.e.b+ae.f.b+g+y)),jo(n.a,new Ct(ae.e.a+ae.f.a/2,ae.e.b+ae.f.b+g+y)),jo(n.a,new Ct(ae.e.a+ae.f.a/2,ae.e.b+ae.f.b+g))):(n.a.b==0||(v(y0(n.a),8).b=We(at(oe(q,(fa(),L0))))+g*v(x.b,17).a),jo(n.a,new Ct(T,We(at(oe(q,(fa(),L0))))+g*v(x.b,17).a)),jo(n.a,new Ct(T,ae.e.b-g*v(x.a,17).a-y))),new Ms(Nt(J),Nt(re))}function p8r(n){var i,l,d,g,y,x,T,R,O,D,q,J,re;if(x=!0,q=null,d=null,g=null,i=!1,re=Qun,O=null,y=null,T=0,R=q0e(n,T,RKe,IKe),R=0&&An(n.substr(T,2),"//")?(T+=2,R=q0e(n,T,ZP,JP),d=(mo(T,R,n.length),n.substr(T,R-T)),T=R):q!=null&&(T==n.length||(sr(T,n.length),n.charCodeAt(T)!=47))&&(x=!1,R=D8e(n,Wu(35),T),R==-1&&(R=n.length),d=(mo(T,R,n.length),n.substr(T,R-T)),T=R);if(!l&&T0&&Do(D,D.length-1)==58&&(g=D,T=R)),TF1e(y))&&(q=y);for(!q&&(q=($n(0,de.c.length),v(de.c[0],185))),le=new me(i.b);le.aq&&(Xn=0,Sr+=D+Mt,D=0),Ajt(yt,x,Xn,Sr),i=u.Math.max(i,Xn+xt.a),D=u.Math.max(D,xt.b),Xn+=xt.a+Mt;for(je=new Br,l=new Br,mn=new me(n);mn.a=-1900?1:0,l>=4?bi(n,Te(xe(Xt,1),kt,2,6,[eXt,tXt])[T]):bi(n,Te(xe(Xt,1),kt,2,6,["BC","AD"])[T]);break;case 121:D2r(n,l,d);break;case 77:ZCr(n,l,d);break;case 107:R=g.q.getHours(),R==0?Gg(n,24,l):Gg(n,R,l);break;case 83:dTr(n,l,g);break;case 69:D=d.q.getDay(),l==5?bi(n,Te(xe(Xt,1),kt,2,6,["S","M","T","W","T","F","S"])[D]):l==4?bi(n,Te(xe(Xt,1),kt,2,6,[zpe,Gpe,qpe,Hpe,Vpe,Ype,jpe])[D]):bi(n,Te(xe(Xt,1),kt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[D]);break;case 97:g.q.getHours()>=12&&g.q.getHours()<24?bi(n,Te(xe(Xt,1),kt,2,6,["AM","PM"])[1]):bi(n,Te(xe(Xt,1),kt,2,6,["AM","PM"])[0]);break;case 104:q=g.q.getHours()%12,q==0?Gg(n,12,l):Gg(n,q,l);break;case 75:J=g.q.getHours()%12,Gg(n,J,l);break;case 72:re=g.q.getHours(),Gg(n,re,l);break;case 99:ae=d.q.getDay(),l==5?bi(n,Te(xe(Xt,1),kt,2,6,["S","M","T","W","T","F","S"])[ae]):l==4?bi(n,Te(xe(Xt,1),kt,2,6,[zpe,Gpe,qpe,Hpe,Vpe,Ype,jpe])[ae]):l==3?bi(n,Te(xe(Xt,1),kt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[ae]):Gg(n,ae,1);break;case 76:le=d.q.getMonth(),l==5?bi(n,Te(xe(Xt,1),kt,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[le]):l==4?bi(n,Te(xe(Xt,1),kt,2,6,[Ipe,Npe,Ope,Lpe,e6,Dpe,Mpe,Ppe,Bpe,Fpe,$pe,Upe])[le]):l==3?bi(n,Te(xe(Xt,1),kt,2,6,["Jan","Feb","Mar","Apr",e6,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[le]):Gg(n,le+1,l);break;case 81:de=d.q.getMonth()/3|0,l<4?bi(n,Te(xe(Xt,1),kt,2,6,["Q1","Q2","Q3","Q4"])[de]):bi(n,Te(xe(Xt,1),kt,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[de]);break;case 100:Se=d.q.getDate(),Gg(n,Se,l);break;case 109:O=g.q.getMinutes(),Gg(n,O,l);break;case 115:x=g.q.getSeconds(),Gg(n,x,l);break;case 122:l<4?bi(n,y.c[0]):bi(n,y.c[1]);break;case 118:bi(n,y.b);break;case 90:l<3?bi(n,a4r(y)):l==3?bi(n,u4r(y)):bi(n,h4r(y.a));break;default:return!1}return!0}function JPe(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr,Ui;if(mjt(i),R=v(ze((!i.b&&(i.b=new Gn(Lr,i,4,7)),i.b),0),84),D=v(ze((!i.c&&(i.c=new Gn(Lr,i,5,8)),i.c),0),84),T=zl(R),O=zl(D),x=(!i.a&&(i.a=new vt(xa,i,6,6)),i.a).i==0?null:v(ze((!i.a&&(i.a=new vt(xa,i,6,6)),i.a),0),166),Mt=v(br(n.a,T),10),Xn=v(br(n.a,O),10),yn=null,Sr=null,$e(R,193)&&(xt=v(br(n.a,R),305),$e(xt,12)?yn=v(xt,12):$e(xt,10)&&(Mt=v(xt,10),yn=v(Yt(Mt.j,0),12))),$e(D,193)&&(Kn=v(br(n.a,D),305),$e(Kn,12)?Sr=v(Kn,12):$e(Kn,10)&&(Xn=v(Kn,10),Sr=v(Yt(Xn.j,0),12))),!Mt||!Xn)throw _e(new ik("The source or the target of edge "+i+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(le=new NE,Ul(le,i),_t(le,(At(),Ji),i),_t(le,(qt(),Nl),null),re=v(oe(d,au),21),Mt==Xn&&re.Fc((cl(),aP)),yn||(yt=(ll(),_u),mn=null,x&&OT(v(oe(Mt,Qa),101))&&(mn=new Ct(x.j,x.k),sPt(mn,lz(i)),DPt(mn,l),l4(O,T)&&(yt=Rh,Hi(mn,Mt.n))),yn=bWt(Mt,mn,yt,d)),Sr||(yt=(ll(),Rh),Ui=null,x&&OT(v(oe(Xn,Qa),101))&&(Ui=new Ct(x.b,x.c),sPt(Ui,lz(i)),DPt(Ui,l)),Sr=bWt(Xn,Ui,yt,So(Xn))),Uo(le,yn),lo(le,Sr),(yn.e.c.length>1||yn.g.c.length>1||Sr.e.c.length>1||Sr.g.c.length>1)&&re.Fc((cl(),iP)),J=new mr((!i.n&&(i.n=new vt(wl,i,1,7)),i.n));J.e!=J.i.gc();)if(q=v(wr(J),135),!Vt(Ht(Et(q,hw)))&&q.a)switch(de=x0e(q),Lt(le.b,de),v(oe(de,pg),278).g){case 1:case 2:re.Fc((cl(),rN));break;case 0:re.Fc((cl(),nN)),_t(de,pg,(W1(),wN))}if(y=v(oe(d,hP),322),Se=v(oe(d,cne),323),g=y==(SD(),Rq)||Se==(HD(),lve),x&&(!x.a&&(x.a=new gs(Ud,x,5)),x.a).i!=0&&g){for(Me=hG(x),ae=new ah,je=Ur(Me,0);je.b!=je.d.c;)Ue=v(Fr(je),8),pi(ae,new Wo(Ue));_t(le,jqe,ae)}return le}function y8r(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr,Ui,Fa;for(mn=0,Kn=0,Mt=new Br,yt=v(ad(QS(Bl(new xn(null,new Nn(n.b,16)),new $Et),new jEt)),17).a+1,yn=st(Wr,vi,28,yt,15,1),de=st(Wr,vi,28,yt,15,1),le=0;le1)for(T=Sr+1;TO.b.e.b*(1-Se)+O.c.e.b*Se));ae++);if(xt.gc()>0&&(Ui=O.a.b==0?Eo(O.b.e):v(y0(O.a),8),Ue=Hi(Eo(v(xt.Xb(xt.gc()-1),40).e),v(xt.Xb(xt.gc()-1),40).f),J=Hi(Eo(v(xt.Xb(0),40).e),v(xt.Xb(0),40).f),ae>=xt.gc()-1&&Ui.b>Ue.b&&O.c.e.b>Ue.b||ae<=0&&Ui.bO.b.e.a*(1-Se)+O.c.e.a*Se));ae++);if(xt.gc()>0&&(Ui=O.a.b==0?Eo(O.b.e):v(y0(O.a),8),Ue=Hi(Eo(v(xt.Xb(xt.gc()-1),40).e),v(xt.Xb(xt.gc()-1),40).f),J=Hi(Eo(v(xt.Xb(0),40).e),v(xt.Xb(0),40).f),ae>=xt.gc()-1&&Ui.a>Ue.a&&O.c.e.a>Ue.a||ae<=0&&Ui.a=We(at(oe(n,(fa(),cYe))))&&++Kn):(re.f&&re.d.e.a<=We(at(oe(n,(fa(),Cve))))&&++mn,re.g&&re.c.e.a+re.c.f.a>=We(at(oe(n,(fa(),lYe))))&&++Kn)}else je==0?wMe(O):je<0&&(++yn[Sr],++de[Fa],Xn=f8r(O,i,n,new Ms(Nt(mn),Nt(Kn)),l,d,new Ms(Nt(de[Fa]),Nt(yn[Sr]))),mn=v(Xn.a,17).a,Kn=v(Xn.b,17).a)}function v8r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me;if(d=i,R=l,n.b&&d.j==(Bt(),cr)&&R.j==(Bt(),cr)&&(Me=d,d=R,R=Me),Tu(n.a,d)){if(r1(v(br(n.a,d),49),R))return 1}else Ni(n.a,d,new fs);if(Tu(n.a,R)){if(r1(v(br(n.a,R),49),d))return-1}else Ni(n.a,R,new fs);if(Tu(n.d,d)){if(r1(v(br(n.d,d),49),R))return-1}else Ni(n.d,d,new fs);if(Tu(n.d,R)){if(r1(v(br(n.a,R),49),d))return 1}else Ni(n.d,R,new fs);if(d.j!=R.j)return Se=ssr(d.j,R.j),Se==-1?mf(n,R,d):mf(n,d,R),Se;if(d.e.c.length!=0&&R.e.c.length!=0){if(n.b&&(Se=tzt(d,R),Se!=0))return Se==-1?mf(n,R,d):Se==1&&mf(n,d,R),Se;if(y=v(Yt(d.e,0),18).c.i,D=v(Yt(R.e,0),18).c.i,y==D)return g=v(oe(v(Yt(d.e,0),18),(At(),ua)),17).a,O=v(oe(v(Yt(R.e,0),18),ua),17).a,g>O?mf(n,d,R):mf(n,R,d),gO?1:0;for(ae=n.c,le=0,de=ae.length;leO?mf(n,d,R):mf(n,R,d),gO?1:0):n.b&&(Se=tzt(d,R),Se!=0)?(Se==-1?mf(n,R,d):Se==1&&mf(n,d,R),Se):(x=0,q=0,ya(v(Yt(d.g,0),18),ua)&&(x=v(oe(v(Yt(d.g,0),18),ua),17).a),ya(v(Yt(R.g,0),18),ua)&&(q=v(oe(v(Yt(d.g,0),18),ua),17).a),T&&T==J?Vt(Ht(oe(v(Yt(d.g,0),18),ap)))&&!Vt(Ht(oe(v(Yt(R.g,0),18),ap)))?(mf(n,d,R),1):!Vt(Ht(oe(v(Yt(d.g,0),18),ap)))&&Vt(Ht(oe(v(Yt(R.g,0),18),ap)))?(mf(n,R,d),-1):(x>q?mf(n,d,R):mf(n,R,d),xq?1:0):(n.f&&(n.f._b(T)&&(x=v(n.f.xc(T),17).a),n.f._b(J)&&(q=v(n.f.xc(J),17).a)),x>q?mf(n,d,R):mf(n,R,d),xq?1:0))):d.e.c.length!=0&&R.g.c.length!=0?(mf(n,d,R),1):d.g.c.length!=0&&R.e.c.length!=0?(mf(n,R,d),-1):ya(d,(At(),ua))&&ya(R,ua)?(g=v(oe(d,ua),17).a,O=v(oe(R,ua),17).a,g>O?mf(n,d,R):mf(n,R,d),gO?1:0):(mf(n,R,d),-1)}function _8r(n){n.gb||(n.gb=!0,n.b=fc(n,0),Ha(n.b,18),_a(n.b,19),n.a=fc(n,1),Ha(n.a,1),_a(n.a,2),_a(n.a,3),_a(n.a,4),_a(n.a,5),n.o=fc(n,2),Ha(n.o,8),Ha(n.o,9),_a(n.o,10),_a(n.o,11),_a(n.o,12),_a(n.o,13),_a(n.o,14),_a(n.o,15),_a(n.o,16),_a(n.o,17),_a(n.o,18),_a(n.o,19),_a(n.o,20),_a(n.o,21),_a(n.o,22),_a(n.o,23),kl(n.o),kl(n.o),kl(n.o),kl(n.o),kl(n.o),kl(n.o),kl(n.o),kl(n.o),kl(n.o),kl(n.o),n.p=fc(n,3),Ha(n.p,2),Ha(n.p,3),Ha(n.p,4),Ha(n.p,5),_a(n.p,6),_a(n.p,7),kl(n.p),kl(n.p),n.q=fc(n,4),Ha(n.q,8),n.v=fc(n,5),_a(n.v,9),kl(n.v),kl(n.v),kl(n.v),n.w=fc(n,6),Ha(n.w,2),Ha(n.w,3),Ha(n.w,4),_a(n.w,5),n.B=fc(n,7),_a(n.B,1),kl(n.B),kl(n.B),kl(n.B),n.Q=fc(n,8),_a(n.Q,0),kl(n.Q),n.R=fc(n,9),Ha(n.R,1),n.S=fc(n,10),kl(n.S),kl(n.S),kl(n.S),kl(n.S),kl(n.S),kl(n.S),kl(n.S),kl(n.S),kl(n.S),kl(n.S),kl(n.S),kl(n.S),kl(n.S),kl(n.S),kl(n.S),n.T=fc(n,11),_a(n.T,10),_a(n.T,11),_a(n.T,12),_a(n.T,13),_a(n.T,14),kl(n.T),kl(n.T),n.U=fc(n,12),Ha(n.U,2),Ha(n.U,3),_a(n.U,4),_a(n.U,5),_a(n.U,6),_a(n.U,7),kl(n.U),n.V=fc(n,13),_a(n.V,10),n.W=fc(n,14),Ha(n.W,18),Ha(n.W,19),Ha(n.W,20),_a(n.W,21),_a(n.W,22),_a(n.W,23),n.bb=fc(n,15),Ha(n.bb,10),Ha(n.bb,11),Ha(n.bb,12),Ha(n.bb,13),Ha(n.bb,14),Ha(n.bb,15),Ha(n.bb,16),_a(n.bb,17),kl(n.bb),kl(n.bb),n.eb=fc(n,16),Ha(n.eb,2),Ha(n.eb,3),Ha(n.eb,4),Ha(n.eb,5),Ha(n.eb,6),Ha(n.eb,7),_a(n.eb,8),_a(n.eb,9),n.ab=fc(n,17),Ha(n.ab,0),Ha(n.ab,1),n.H=fc(n,18),_a(n.H,0),_a(n.H,1),_a(n.H,2),_a(n.H,3),_a(n.H,4),_a(n.H,5),kl(n.H),n.db=fc(n,19),_a(n.db,2),n.c=Li(n,20),n.d=Li(n,21),n.e=Li(n,22),n.f=Li(n,23),n.i=Li(n,24),n.g=Li(n,25),n.j=Li(n,26),n.k=Li(n,27),n.n=Li(n,28),n.r=Li(n,29),n.s=Li(n,30),n.t=Li(n,31),n.u=Li(n,32),n.fb=Li(n,33),n.A=Li(n,34),n.C=Li(n,35),n.D=Li(n,36),n.F=Li(n,37),n.G=Li(n,38),n.I=Li(n,39),n.J=Li(n,40),n.L=Li(n,41),n.M=Li(n,42),n.N=Li(n,43),n.O=Li(n,44),n.P=Li(n,45),n.X=Li(n,46),n.Y=Li(n,47),n.Z=Li(n,48),n.$=Li(n,49),n._=Li(n,50),n.cb=Li(n,51),n.K=Li(n,52))}function w8r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr;for(x=new Ea,xt=v(oe(l,(qt(),Pd)),88),le=0,bo(x,(!i.a&&(i.a=new vt(Pi,i,10,11)),i.a));x.b!=0;)D=v(x.b==0?null:(Tr(x.b!=0),cf(x,x.a.a)),27),O=Aa(D),(Ze(Et(O,nm))!==Ze((Zp(),wy))||Ze(Et(O,ow))===Ze((ly(),eN))||Ze(Et(O,ow))===Ze((ly(),JI))||Vt(Ht(Et(O,vx)))||Ze(Et(O,j4))!==Ze((z_(),z4))||Ze(Et(O,h2))===Ze((qf(),Tx))||Ze(Et(O,h2))===Ze((qf(),e3))||Ze(Et(O,cw))===Ze((fy(),dN))||Ze(Et(O,cw))===Ze((fy(),fN)))&&!Vt(Ht(Et(D,tne)))&&sa(D,(At(),ua),Nt(le++)),Se=!Vt(Ht(Et(D,hw))),Se&&(J=(!D.a&&(D.a=new vt(Pi,D,10,11)),D.a).i!=0,ae=XEr(D),re=Ze(Et(D,W4))===Ze((Km(),Cy)),Sr=!Y1(D,(Ei(),yN))||GPt(ai(Et(D,yN))),je=null,Sr&&re&&(J||ae)&&(je=Qjt(D),_t(je,Pd,xt),ya(je,Bq)&&Z6t(new PLe(We(at(oe(je,Bq)))),je),v(Et(D,uw),181).gc()!=0&&(q=je,ts(new xn(null,(!D.c&&(D.c=new vt(Oh,D,9,9)),new Nn(D.c,16))),new aCt(q)),qYt(D,je))),Mt=l,yn=v(br(n.a,Aa(D)),10),yn&&(Mt=yn.e),Ue=SKt(n,D,Mt),je&&(Ue.e=je,je.e=Ue,bo(x,(!D.a&&(D.a=new vt(Pi,D,10,11)),D.a))));for(le=0,qa(x,i,x.c.b,x.c);x.b!=0;){for(y=v(x.b==0?null:(Tr(x.b!=0),cf(x,x.a.a)),27),R=new mr((!y.b&&(y.b=new vt(ss,y,12,3)),y.b));R.e!=R.i.gc();)T=v(wr(R),74),mjt(T),(Ze(Et(i,nm))!==Ze((Zp(),wy))||Ze(Et(i,ow))===Ze((ly(),eN))||Ze(Et(i,ow))===Ze((ly(),JI))||Vt(Ht(Et(i,vx)))||Ze(Et(i,j4))!==Ze((z_(),z4))||Ze(Et(i,h2))===Ze((qf(),Tx))||Ze(Et(i,h2))===Ze((qf(),e3))||Ze(Et(i,cw))===Ze((fy(),dN))||Ze(Et(i,cw))===Ze((fy(),fN)))&&sa(T,(At(),ua),Nt(le++)),Kn=zl(v(ze((!T.b&&(T.b=new Gn(Lr,T,4,7)),T.b),0),84)),Xn=zl(v(ze((!T.c&&(T.c=new Gn(Lr,T,5,8)),T.c),0),84)),!(Vt(Ht(Et(T,hw)))||Vt(Ht(Et(Kn,hw)))||Vt(Ht(Et(Xn,hw))))&&(de=KE(T)&&Vt(Ht(Et(Kn,K4)))&&Vt(Ht(Et(T,lw))),yt=y,de||l4(Xn,Kn)?yt=Kn:l4(Kn,Xn)&&(yt=Xn),Mt=l,yn=v(br(n.a,yt),10),yn&&(Mt=yn.e),Me=JPe(n,T,yt,Mt),_t(Me,(At(),qqe),w5r(n,T,i,l)));if(re=Ze(Et(y,W4))===Ze((Km(),Cy)),re)for(g=new mr((!y.a&&(y.a=new vt(Pi,y,10,11)),y.a));g.e!=g.i.gc();)d=v(wr(g),27),Sr=!Y1(d,(Ei(),yN))||GPt(ai(Et(d,yN))),mn=Ze(Et(d,W4))===Ze(Cy),Sr&&mn&&qa(x,d,x.c.b,x.c)}}function At(){At=z;var n,i;Ji=new la($Be),qqe=new la("coordinateOrigin"),Bye=new la("processors"),Gqe=new Ba("compoundNode",(Qn(),!1)),Lq=new Ba("insideConnections",!1),jqe=new la("originalBendpoints"),Wqe=new la("originalDummyNodePosition"),Kqe=new la("originalLabelEdge"),oP=new la("representedLabels"),sP=new la("endLabels"),_6=new la("endLabel.origin"),E6=new Ba("labelSide",(Id(),dH)),M5=new Ba("maxEdgeThickness",0),ap=new Ba("reversed",!1),x6=new la(zXt),m1=new Ba("longEdgeSource",null),Kf=new Ba("longEdgeTarget",null),V4=new Ba("longEdgeHasLabelDummies",!1),Dq=new Ba("longEdgeBeforeLabelDummy",!1),Wte=new Ba("edgeConstraint",(F_(),_ye)),mx=new la("inLayerLayoutUnit"),aw=new Ba("inLayerConstraint",(Ym(),Nq)),w6=new Ba("inLayerSuccessorConstraint",new Ot),Yqe=new Ba("inLayerSuccessorConstraintBetweenNonDummies",!1),kh=new la("portDummy"),jte=new Ba("crossingHint",Nt(0)),au=new Ba("graphProperties",(i=v(n1(Aye),9),new nf(i,v(v0(i,i.length),9),0))),vc=new Ba("externalPortSide",(Bt(),lc)),Vqe=new Ba("externalPortSize",new ho),Oye=new la("externalPortReplacedDummies"),Kte=new la("externalPortReplacedDummy"),ob=new Ba("externalPortConnections",(n=v(n1(tl),9),new nf(n,v(v0(n,n.length),9),0))),bx=new Ba(OXt,0),zqe=new la("barycenterAssociates"),S6=new la("TopSideComments"),v6=new la("BottomSideComments"),Yte=new la("CommentConnectionPort"),Dye=new Ba("inputCollect",!1),Pye=new Ba("outputCollect",!1),Oq=new Ba("cyclic",!1),Hqe=new la("crossHierarchyMap"),$ye=new la("targetOffset"),new Ba("splineLabelSize",new ho),B5=new la("spacings"),Xte=new Ba("partitionConstraint",!1),gx=new la("breakingPoint.info"),Zqe=new la("splines.survivingEdge"),sw=new la("splines.route.start"),F5=new la("splines.edgeChain"),Qqe=new la("originalPortConstraints"),yx=new la("selfLoopHolder"),aN=new la("splines.nsPortY"),ua=new la("modelOrder"),Mye=new la("longEdgeTargetNode"),c2=new Ba(fQt,!1),P5=new Ba(fQt,!1),Lye=new la("layerConstraints.hiddenNodes"),Xqe=new la("layerConstraints.opposidePort"),Fye=new la("targetNode.modelOrder")}function E8r(n,i,l,d){var g,y,x,T,R,O,D,q,J,re,ae;for(q=Ur(n.b,0);q.b!=q.d.c;)if(D=v(Fr(q),40),!An(D.c,_ee))for(y=v(Wl(new xn(null,new Nn(N4r(D,n),16)),Sh(new Fe,new Le,new Je,Te(xe(Il,1),wt,108,0,[(Ch(),Ql)]))),15),i==(ys(),Ol)||i==ql?y.jd(new qEt):y.jd(new HEt),ae=y.gc(),g=0;g0&&(T=v(y0(v(y.Xb(g),65).a),8).a,J=D.e.a+D.f.a/2,R=v(y0(v(y.Xb(g),65).a),8).b,re=D.e.b+D.f.b/2,d>0&&u.Math.abs(R-re)/(u.Math.abs(T-J)/40)>50&&(re>R?jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a+d/5.3,D.e.b+D.f.b*x-d/2)):jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a+d/5.3,D.e.b+D.f.b*x+d/2)))),jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a,D.e.b+D.f.b*x))):i==ql?(O=We(at(oe(D,(fa(),b1)))),D.e.a-d>O?jo(v(y.Xb(g),65).a,new Ct(O-l,D.e.b+D.f.b*x)):v(y.Xb(g),65).a.b>0&&(T=v(y0(v(y.Xb(g),65).a),8).a,J=D.e.a+D.f.a/2,R=v(y0(v(y.Xb(g),65).a),8).b,re=D.e.b+D.f.b/2,d>0&&u.Math.abs(R-re)/(u.Math.abs(T-J)/40)>50&&(re>R?jo(v(y.Xb(g),65).a,new Ct(D.e.a-d/5.3,D.e.b+D.f.b*x-d/2)):jo(v(y.Xb(g),65).a,new Ct(D.e.a-d/5.3,D.e.b+D.f.b*x+d/2)))),jo(v(y.Xb(g),65).a,new Ct(D.e.a,D.e.b+D.f.b*x))):i==Ef?(O=We(at(oe(D,(fa(),L0)))),D.e.b+D.f.b+d0&&(T=v(y0(v(y.Xb(g),65).a),8).a,J=D.e.a+D.f.a/2,R=v(y0(v(y.Xb(g),65).a),8).b,re=D.e.b+D.f.b/2,d>0&&u.Math.abs(T-J)/(u.Math.abs(R-re)/40)>50&&(J>T?jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a*x-d/2,D.e.b+d/5.3+D.f.b)):jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a*x+d/2,D.e.b+d/5.3+D.f.b)))),jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a*x,D.e.b+D.f.b))):(O=We(at(oe(D,(fa(),b1)))),zUt(v(y.Xb(g),65),n)?jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a*x,v(y0(v(y.Xb(g),65).a),8).b)):D.e.b-d>O?jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a*x,O-l)):v(y.Xb(g),65).a.b>0&&(T=v(y0(v(y.Xb(g),65).a),8).a,J=D.e.a+D.f.a/2,R=v(y0(v(y.Xb(g),65).a),8).b,re=D.e.b+D.f.b/2,d>0&&u.Math.abs(T-J)/(u.Math.abs(R-re)/40)>50&&(J>T?jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a*x-d/2,D.e.b-d/5.3)):jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a*x+d/2,D.e.b-d/5.3)))),jo(v(y.Xb(g),65).a,new Ct(D.e.a+D.f.a*x,D.e.b)))}function Ei(){Ei=z;var n,i;yN=new la(ZQt),rC=new la(JQt),aWe=(qg(),m2e),Hcn=new En(jFe,aWe),X5=new En(s6,null),Vcn=new la(sUe),oWe=(q_(),va(v2e,Te(xe(_2e,1),wt,298,0,[y2e]))),rH=new En(gee,oWe),iH=new En(nq,(Qn(),!1)),lWe=(ys(),cp),gw=new En(ime,lWe),hWe=(Xm(),L2e),uWe=new En(tq,hWe),Wcn=new En(iUe,!1),pWe=(Km(),Xne),J5=new En(pee,pWe),xWe=new bE(12),Ty=new En(rx,xWe),sH=new En(SM,!1),S2e=new En(bee,!1),oH=new En(TM,!1),kWe=(co(),y2),UP=new En(Sge,kWe),R6=new la(mee),lH=new la(YG),N2e=new la(XJ),O2e=new la(xM),gWe=new ah,kx=new En(i$e,gWe),jcn=new En(o$e,!1),Kcn=new En(l$e,!1),mWe=new mL,vN=new En(u$e,mWe),Yne=new En(VFe,!1),Jcn=new En(eZt,1),Z5=new la(tZt),Q5=new la(nZt),_N=new En(jG,!1),new En(rZt,!0),Nt(0),new En(iZt,Nt(100)),new En(aZt,!1),Nt(0),new En(sZt,Nt(4e3)),Nt(0),new En(oZt,Nt(400)),new En(lZt,!1),new En(cZt,!1),new En(uZt,!0),new En(hZt,!1),sWe=(LZ(),B2e),Ycn=new En(aUe,sWe),eun=new En(DFe,10),tun=new En(MFe,10),OWe=new En(bge,20),nun=new En(PFe,10),LWe=new En(xge,2),DWe=new En(rme,10),MWe=new En(BFe,0),jne=new En(UFe,5),PWe=new En(FFe,1),BWe=new En($Fe,1),bw=new En(N4,20),run=new En(zFe,10),UWe=new En(GFe,10),I6=new la(qFe),$We=new yIt,FWe=new En(h$e,$We),Qcn=new la(sme),SWe=!1,Xcn=new En(ame,SWe),yWe=new bE(5),bWe=new En(XFe,yWe),vWe=(w4(),i=v(n1(fl),9),new nf(i,v(v0(i,i.length),9),0)),eC=new En(II,vWe),CWe=(ZT(),b2),TWe=new En(JFe,CWe),C2e=new la(e$e),A2e=new la(t$e),k2e=new la(n$e),T2e=new la(r$e),_We=(n=v(n1(WP),9),new nf(n,v(v0(n,n.length),9),0)),mw=new En(y5,_We),EWe=bn((qh(),TN)),g2=new En(o6,EWe),wWe=new Ct(0,0),tC=new En(l6,wWe),i3=new En(RI,!1),cWe=(W1(),wN),E2e=new En(a$e,cWe),w2e=new En(QJ,!1),Nt(1),new En(dZt,null),AWe=new la(c$e),R2e=new la(s$e),NWe=(Bt(),lc),nC=new En(YFe,NWe),jh=new la(HFe),RWe=(Ah(),bn(v2)),a3=new En(NI,RWe),I2e=new En(QFe,!1),IWe=new En(ZFe,!0),Kne=new En(WG,1),zWe=new En(oUe,null),cH=new En(KG,150),Wne=new En(XG,1.414),N6=new En(ix,null),iun=new En(lUe,1),aH=new En(WFe,!1),x2e=new En(KFe,!1),dWe=new En(yge,1),fWe=(oJ(),M2e),new En(fZt,fWe),Zcn=!0,sun=(Uk(),l3),oun=l3,aun=l3}function qo(){qo=z,UGe=new ps("DIRECTION_PREPROCESSOR",0),BGe=new ps("COMMENT_PREPROCESSOR",1),k5=new ps("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),nye=new ps("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),aqe=new ps("PARTITION_PREPROCESSOR",4),_te=new ps("LABEL_DUMMY_INSERTER",5),Ite=new ps("SELF_LOOP_PREPROCESSOR",6),q4=new ps("LAYER_CONSTRAINT_PREPROCESSOR",7),rqe=new ps("PARTITION_MIDPROCESSOR",8),WGe=new ps("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),tqe=new ps("NODE_PROMOTION",10),G4=new ps("LAYER_CONSTRAINT_POSTPROCESSOR",11),iqe=new ps("PARTITION_POSTPROCESSOR",12),VGe=new ps("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),sqe=new ps("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),NGe=new ps("BREAKING_POINT_INSERTER",15),Ste=new ps("LONG_EDGE_SPLITTER",16),rye=new ps("PORT_SIDE_PROCESSOR",17),yte=new ps("INVERTED_PORT_PROCESSOR",18),Ate=new ps("PORT_LIST_SORTER",19),lqe=new ps("SORT_BY_INPUT_ORDER_OF_MODEL",20),Cte=new ps("NORTH_SOUTH_PORT_PREPROCESSOR",21),OGe=new ps("BREAKING_POINT_PROCESSOR",22),nqe=new ps(aQt,23),cqe=new ps(sQt,24),kte=new ps("SELF_LOOP_PORT_RESTORER",25),oqe=new ps("SINGLE_EDGE_GRAPH_WRAPPER",26),vte=new ps("IN_LAYER_CONSTRAINT_PROCESSOR",27),GGe=new ps("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),JGe=new ps("LABEL_AND_NODE_SIZE_PROCESSOR",29),ZGe=new ps("INNERMOST_NODE_MARGIN_CALCULATOR",30),Nte=new ps("SELF_LOOP_ROUTER",31),MGe=new ps("COMMENT_NODE_MARGIN_CALCULATOR",32),bte=new ps("END_LABEL_PREPROCESSOR",33),Ete=new ps("LABEL_DUMMY_SWITCHER",34),DGe=new ps("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),jI=new ps("LABEL_SIDE_SELECTOR",36),XGe=new ps("HYPEREDGE_DUMMY_MERGER",37),YGe=new ps("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),eqe=new ps("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),eP=new ps("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),FGe=new ps("CONSTRAINTS_POSTPROCESSOR",41),PGe=new ps("COMMENT_POSTPROCESSOR",42),QGe=new ps("HYPERNODE_PROCESSOR",43),jGe=new ps("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),xte=new ps("LONG_EDGE_JOINER",45),Rte=new ps("SELF_LOOP_POSTPROCESSOR",46),LGe=new ps("BREAKING_POINT_REMOVER",47),Tte=new ps("NORTH_SOUTH_PORT_POSTPROCESSOR",48),KGe=new ps("HORIZONTAL_COMPACTOR",49),wte=new ps("LABEL_DUMMY_REMOVER",50),qGe=new ps("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),zGe=new ps("END_LABEL_SORTER",52),Cq=new ps("REVERSED_EDGE_RESTORER",53),mte=new ps("END_LABEL_POSTPROCESSOR",54),HGe=new ps("HIERARCHICAL_NODE_RESIZER",55),$Ge=new ps("DIRECTION_POSTPROCESSOR",56)}function eBe(){eBe=z,cHe=(Rz(),$te),vin=new En(KBe,cHe),Nin=new En(XBe,(Qn(),!1)),gHe=(IQ(),Nye),Pin=new En(tee,gHe),Qin=new En(QBe,!1),Zin=new En(ZBe,!0),Vrn=new En(JBe,!1),xHe=(Az(),dve),fan=new En(eFe,xHe),Nt(1),wan=new En(tFe,Nt(7)),Ean=new En(nFe,!1),Oin=new En(rFe,!1),lHe=(ly(),yye),yin=new En(Nge,lHe),yHe=(fy(),ive),Xin=new En(eq,yHe),mHe=(pf(),Mq),Gin=new En(iFe,mHe),Nt(-1),zin=new En(aFe,null),Nt(-1),qin=new En(sFe,Nt(-1)),Nt(-1),Hin=new En(Oge,Nt(4)),Nt(-1),Yin=new En(Lge,Nt(2)),bHe=(qf(),bne),Kin=new En(Dge,bHe),Nt(0),Win=new En(Mge,Nt(0)),$in=new En(Pge,Nt(qi)),oHe=(SD(),nP),bin=new En(kM,oHe),nin=new En(oFe,!1),cin=new En(Bge,.1),gin=new En(Fge,!1),hin=new En(lFe,null),din=new En(cFe,null),Nt(-1),fin=new En(uFe,null),Nt(-1),pin=new En(hFe,Nt(-1)),Nt(0),rin=new En(dFe,Nt(40)),sHe=(P8(),Rye),oin=new En($ge,sHe),aHe=Iq,iin=new En(nee,aHe),EHe=(HD(),mP),dan=new En(v5,EHe),ran=new la(ree),vHe=(Ez(),zte),Jin=new En(Uge,vHe),_He=(lG(),Gte),tan=new En(zge,_He),san=new En(Gge,.3),lan=new la(qge),wHe=(g4(),mne),can=new En(Hge,wHe),dHe=(yZ(),pve),Sin=new En(fFe,dHe),fHe=(ND(),mve),Tin=new En(pFe,fHe),pHe=(H8(),vP),Cin=new En(iee,pHe),kin=new En(aee,.2),Ein=new En(Vge,2),ban=new En(gFe,null),van=new En(mFe,10),yan=new En(bFe,10),_an=new En(yFe,20),Nt(0),pan=new En(vFe,Nt(0)),Nt(0),gan=new En(_Fe,Nt(0)),Nt(0),man=new En(wFe,Nt(0)),Yrn=new En(Yge,!1),tHe=(aI(),rP),Wrn=new En(EFe,tHe),eHe=(zQ(),mye),jrn=new En(xFe,eHe),Din=new En(see,!1),Nt(0),Lin=new En(jge,Nt(16)),Nt(0),Min=new En(Wge,Nt(5)),CHe=(EZ(),vve),Gan=new En(ib,CHe),xan=new En(oee,10),Can=new En(lee,1),THe=(iZ(),Fte),Lan=new En(RM,THe),Ran=new la(Kge),SHe=Nt(1),Nt(0),Nan=new En(Xge,SHe),AHe=(rZ(),yve),Yan=new En(cee,AHe),qan=new la(uee),Fan=new En(hee,!0),Pan=new En(dee,2),Uan=new En(Qge,!0),hHe=(cJ(),Ute),win=new En(SFe,hHe),uHe=(jk(),QI),_in=new En(TFe,uHe),iHe=(Zp(),wy),tin=new En(fee,iHe),ein=new En(CFe,!1),Jrn=new En(AFe,!1),nHe=(z_(),z4),Krn=new En(Zge,nHe),rHe=(DD(),ave),Zrn=new En(kFe,rHe),Xrn=new En(Jge,0),Qrn=new En(eme,0),Fin=vye,Bin=Rq,Vin=pne,jin=pne,Uin=rve,uin=(Km(),Cy),min=nP,lin=nP,ain=nP,sin=Cy,ian=bP,aan=mP,ean=mP,nan=mP,oan=cve,han=bP,uan=bP,Ain=(Xm(),O6),Rin=O6,Iin=vP,xin=uH,San=pN,Tan=t3,Aan=pN,kan=t3,Dan=pN,Man=t3,Ian=bye,Oan=Fte,jan=pN,Wan=t3,Han=pN,Van=t3,$an=t3,Ban=t3,zan=t3}function x8r(n,i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn,Xn,Sr,Ui,Fa,Lh,Ll,zd,cC,Ly,U0,z0,ww,F6,A2,$6,bg,cm,Lx,U6,uC,yg,Ew,db,Whn,uXe,Dx,oB,e_e,z6,lB,m3,cB,t_e,Khn;for(uXe=0,Ui=i,Ll=0,Ly=Ui.length;Ll0&&(n.a[bg.p]=uXe++)}for(lB=0,Fa=l,zd=0,U0=Fa.length;zd0;){for(bg=(Tr(uC.b>0),v(uC.a.Xb(uC.c=--uC.b),12)),U6=0,T=new me(bg.e);T.a0&&(bg.j==(Bt(),or)?(n.a[bg.p]=lB,++lB):(n.a[bg.p]=lB+z0+F6,++F6))}lB+=F6}for(Lx=new Br,ae=new Hp,Sr=i,Lh=0,cC=Sr.length;LhO.b&&(O.b=yg)):bg.i.c==Whn&&(ygO.c&&(O.c=yg));for(_8(le,0,le.length,null),z6=st(Wr,vi,28,le.length,15,1),d=st(Wr,vi,28,lB+1,15,1),Se=0;Se0;)Mt%2>0&&(g+=t_e[Mt+1]),Mt=(Mt-1)/2|0,++t_e[Mt];for(mn=st(Ysn,Yn,374,le.length*2,0,1),je=0;je0&&sz(Lh.f),Et(Se,zWe)!=null&&(T=v(Et(Se,zWe),347),Lx=T.Tg(Se),DT(Se,u.Math.max(Se.g,Lx.a),u.Math.max(Se.f,Lx.b)));if(U0=v(Et(i,Ty),107),re=i.g-(U0.b+U0.c),J=i.f-(U0.d+U0.a),yg.bh("Available Child Area: ("+re+"|"+J+")"),sa(i,X5,re/J),wGt(i,g,d.eh(cC)),v(Et(i,N6),280)==nre&&(XPe(i),DT(i,U0.b+We(at(Et(i,Z5)))+U0.c,U0.d+We(at(Et(i,Q5)))+U0.a)),yg.bh("Executed layout algorithm: "+ai(Et(i,yN))+" on node "+i.k),v(Et(i,N6),280)==l3){if(re<0||J<0)throw _e(new Gb("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+i.k));for(Y1(i,Z5)||Y1(i,Q5)||XPe(i),le=We(at(Et(i,Z5))),ae=We(at(Et(i,Q5))),yg.bh("Desired Child Area: ("+le+"|"+ae+")"),ww=re/le,F6=J/ae,z0=u.Math.min(ww,u.Math.min(F6,We(at(Et(i,iun))))),sa(i,Kne,z0),yg.bh(i.k+" -- Local Scale Factor (X|Y): ("+ww+"|"+F6+")"),je=v(Et(i,rH),21),y=0,x=0,z0'?":An(VZt,n)?"'(?<' or '(? toIndex: ",bBe=", toIndex: ",yBe="Index: ",vBe=", Size: ",TI="org.eclipse.elk.alg.common",ui={50:1},pXt="org.eclipse.elk.alg.common.compaction",gXt="Scanline/EventHandler",Xg="org.eclipse.elk.alg.common.compaction.oned",mXt="CNode belongs to another CGroup.",bXt="ISpacingsHandler/1",age="The ",sge=" instance has been finished already.",yXt="The direction ",vXt=" is not supported by the CGraph instance.",_Xt="OneDimensionalCompactor",wXt="OneDimensionalCompactor/lambda$0$Type",EXt="Quadruplet",xXt="ScanlineConstraintCalculator",SXt="ScanlineConstraintCalculator/ConstraintsScanlineHandler",TXt="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",CXt="ScanlineConstraintCalculator/Timestamp",AXt="ScanlineConstraintCalculator/lambda$0$Type",ig={178:1,46:1},oge="org.eclipse.elk.alg.common.compaction.options",oc="org.eclipse.elk.core.data",_Be="org.eclipse.elk.polyomino.traversalStrategy",wBe="org.eclipse.elk.polyomino.lowLevelSort",EBe="org.eclipse.elk.polyomino.highLevelSort",xBe="org.eclipse.elk.polyomino.fill",Hf={134:1},lge="polyomino",_M="org.eclipse.elk.alg.common.networksimplex",Qg={183:1,3:1,4:1},kXt="org.eclipse.elk.alg.common.nodespacing",W_="org.eclipse.elk.alg.common.nodespacing.cellsystem",CI="CENTER",RXt={217:1,336:1},SBe={3:1,4:1,5:1,603:1},r6="LEFT",i6="RIGHT",TBe="Vertical alignment cannot be null",CBe="BOTTOM",HJ="org.eclipse.elk.alg.common.nodespacing.internal",wM="UNDEFINED",ep=.01,qG="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",IXt="LabelPlacer/lambda$0$Type",NXt="LabelPlacer/lambda$1$Type",OXt="portRatioOrPosition",AI="org.eclipse.elk.alg.common.overlaps",cge="DOWN",ag="org.eclipse.elk.alg.common.polyomino",VJ="NORTH",uge="EAST",hge="SOUTH",dge="WEST",YJ="org.eclipse.elk.alg.common.polyomino.structures",ABe="Direction",fge="Grid is only of size ",pge=". Requested point (",gge=") is out of bounds.",jJ=" Given center based coordinates were (",HG="org.eclipse.elk.graph.properties",LXt="IPropertyHolder",kBe={3:1,96:1,137:1},a6="org.eclipse.elk.alg.common.spore",DXt="org.eclipse.elk.alg.common.utils",K_={205:1},g5="org.eclipse.elk.core",MXt="Connected Components Compaction",PXt="org.eclipse.elk.alg.disco",WJ="org.eclipse.elk.alg.disco.graph",mge="org.eclipse.elk.alg.disco.options",RBe="CompactionStrategy",IBe="org.eclipse.elk.disco.componentCompaction.strategy",NBe="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",OBe="org.eclipse.elk.disco.debug.discoGraph",LBe="org.eclipse.elk.disco.debug.discoPolys",BXt="componentCompaction",X_="org.eclipse.elk.disco",bge="org.eclipse.elk.spacing.componentComponent",yge="org.eclipse.elk.edge.thickness",s6="org.eclipse.elk.aspectRatio",rx="org.eclipse.elk.padding",m5="org.eclipse.elk.alg.disco.transform",vge=1.5707963267948966,b5=17976931348623157e292,I4={3:1,4:1,5:1,198:1},FXt={3:1,6:1,4:1,5:1,100:1,115:1},_ge="org.eclipse.elk.alg.force",DBe="ComponentsProcessor",$Xt="ComponentsProcessor/1",MBe="ElkGraphImporter/lambda$0$Type",VG="org.eclipse.elk.alg.force.graph",UXt="Component Layout",PBe="org.eclipse.elk.alg.force.model",KJ="org.eclipse.elk.force.model",BBe="org.eclipse.elk.force.iterations",FBe="org.eclipse.elk.force.repulsivePower",wge="org.eclipse.elk.force.temperature",sg=.001,Ege="org.eclipse.elk.force.repulsion",EM="org.eclipse.elk.alg.force.options",kI=1.600000023841858,Nu="org.eclipse.elk.force",YG="org.eclipse.elk.priority",N4="org.eclipse.elk.spacing.nodeNode",xge="org.eclipse.elk.spacing.edgeLabel",XJ="org.eclipse.elk.randomSeed",xM="org.eclipse.elk.separateConnectedComponents",SM="org.eclipse.elk.interactive",Sge="org.eclipse.elk.portConstraints",QJ="org.eclipse.elk.edgeLabels.inline",TM="org.eclipse.elk.omitNodeMicroLayout",RI="org.eclipse.elk.nodeSize.fixedGraphSize",o6="org.eclipse.elk.nodeSize.options",y5="org.eclipse.elk.nodeSize.constraints",II="org.eclipse.elk.nodeLabels.placement",NI="org.eclipse.elk.portLabels.placement",jG="org.eclipse.elk.topdownLayout",WG="org.eclipse.elk.topdown.scaleFactor",KG="org.eclipse.elk.topdown.hierarchicalNodeWidth",XG="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",ix="org.eclipse.elk.topdown.nodeType",$Be="origin",zXt="random",GXt="boundingBox.upLeft",qXt="boundingBox.lowRight",UBe="org.eclipse.elk.stress.fixed",zBe="org.eclipse.elk.stress.desiredEdgeLength",GBe="org.eclipse.elk.stress.dimension",qBe="org.eclipse.elk.stress.epsilon",HBe="org.eclipse.elk.stress.iterationLimit",e2="org.eclipse.elk.stress",HXt="ELK Stress",l6="org.eclipse.elk.nodeSize.minimum",ZJ="org.eclipse.elk.alg.force.stress",VXt="Layered layout",c6="org.eclipse.elk.alg.layered",QG="org.eclipse.elk.alg.layered.compaction.components",CM="org.eclipse.elk.alg.layered.compaction.oned",JJ="org.eclipse.elk.alg.layered.compaction.oned.algs",Q_="org.eclipse.elk.alg.layered.compaction.recthull",tp="org.eclipse.elk.alg.layered.components",og="NONE",VBe="MODEL_ORDER",Dc={3:1,6:1,4:1,9:1,5:1,126:1},YXt={3:1,6:1,4:1,5:1,150:1,100:1,115:1},eee="org.eclipse.elk.alg.layered.compound",ba={47:1},tu="org.eclipse.elk.alg.layered.graph",Tge=" -> ",jXt="Not supported by LGraph",YBe="Port side is undefined",Cge={3:1,6:1,4:1,5:1,483:1,150:1,100:1,115:1},gy={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},WXt={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},KXt=`([{"' \r `,XXt=`)]}"' \r `,QXt="The given string contains parts that cannot be parsed as numbers.",ZG="org.eclipse.elk.core.math",ZXt={3:1,4:1,140:1,214:1,423:1},JXt={3:1,4:1,107:1,214:1,423:1},my="org.eclipse.elk.alg.layered.graph.transform",eQt="ElkGraphImporter",tQt="ElkGraphImporter/lambda$1$Type",nQt="ElkGraphImporter/lambda$2$Type",rQt="ElkGraphImporter/lambda$4$Type",dr="org.eclipse.elk.alg.layered.intermediate",iQt="Node margin calculation",aQt="ONE_SIDED_GREEDY_SWITCH",sQt="TWO_SIDED_GREEDY_SWITCH",Age="No implementation is available for the layout processor ",kge="IntermediateProcessorStrategy",Rge="Node '",oQt="FIRST_SEPARATE",lQt="LAST_SEPARATE",cQt="Odd port side processing",Cs="org.eclipse.elk.alg.layered.intermediate.compaction",AM="org.eclipse.elk.alg.layered.intermediate.greedyswitch",Zg="org.eclipse.elk.alg.layered.p3order.counting",JG={230:1},u6="org.eclipse.elk.alg.layered.intermediate.loops",Dd="org.eclipse.elk.alg.layered.intermediate.loops.ordering",t2="org.eclipse.elk.alg.layered.intermediate.loops.routing",jBe="org.eclipse.elk.alg.layered.intermediate.preserveorder",lg="org.eclipse.elk.alg.layered.intermediate.wrapping",Mc="org.eclipse.elk.alg.layered.options",Ige="INTERACTIVE",WBe="GREEDY",uQt="DEPTH_FIRST",hQt="EDGE_LENGTH",dQt="SELF_LOOPS",fQt="firstTryWithInitialOrder",KBe="org.eclipse.elk.layered.directionCongruency",XBe="org.eclipse.elk.layered.feedbackEdges",tee="org.eclipse.elk.layered.interactiveReferencePoint",QBe="org.eclipse.elk.layered.mergeEdges",ZBe="org.eclipse.elk.layered.mergeHierarchyEdges",JBe="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",eFe="org.eclipse.elk.layered.portSortingStrategy",tFe="org.eclipse.elk.layered.thoroughness",nFe="org.eclipse.elk.layered.unnecessaryBendpoints",rFe="org.eclipse.elk.layered.generatePositionAndLayerIds",Nge="org.eclipse.elk.layered.cycleBreaking.strategy",eq="org.eclipse.elk.layered.layering.strategy",iFe="org.eclipse.elk.layered.layering.layerConstraint",aFe="org.eclipse.elk.layered.layering.layerChoiceConstraint",sFe="org.eclipse.elk.layered.layering.layerId",Oge="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",Lge="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",Dge="org.eclipse.elk.layered.layering.nodePromotion.strategy",Mge="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",Pge="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",kM="org.eclipse.elk.layered.crossingMinimization.strategy",oFe="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",Bge="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",Fge="org.eclipse.elk.layered.crossingMinimization.semiInteractive",lFe="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",cFe="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",uFe="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",hFe="org.eclipse.elk.layered.crossingMinimization.positionId",dFe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",$ge="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",nee="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",v5="org.eclipse.elk.layered.nodePlacement.strategy",ree="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",Uge="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",zge="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",Gge="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",qge="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",Hge="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",fFe="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",pFe="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",iee="org.eclipse.elk.layered.edgeRouting.splines.mode",aee="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",Vge="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",gFe="org.eclipse.elk.layered.spacing.baseValue",mFe="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",bFe="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",yFe="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",vFe="org.eclipse.elk.layered.priority.direction",_Fe="org.eclipse.elk.layered.priority.shortness",wFe="org.eclipse.elk.layered.priority.straightness",Yge="org.eclipse.elk.layered.compaction.connectedComponents",EFe="org.eclipse.elk.layered.compaction.postCompaction.strategy",xFe="org.eclipse.elk.layered.compaction.postCompaction.constraints",see="org.eclipse.elk.layered.highDegreeNodes.treatment",jge="org.eclipse.elk.layered.highDegreeNodes.threshold",Wge="org.eclipse.elk.layered.highDegreeNodes.treeHeight",ib="org.eclipse.elk.layered.wrapping.strategy",oee="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",lee="org.eclipse.elk.layered.wrapping.correctionFactor",RM="org.eclipse.elk.layered.wrapping.cutting.strategy",Kge="org.eclipse.elk.layered.wrapping.cutting.cuts",Xge="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",cee="org.eclipse.elk.layered.wrapping.validify.strategy",uee="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",hee="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",dee="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",Qge="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",SFe="org.eclipse.elk.layered.edgeLabels.sideSelection",TFe="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",fee="org.eclipse.elk.layered.considerModelOrder.strategy",CFe="org.eclipse.elk.layered.considerModelOrder.portModelOrder",AFe="org.eclipse.elk.layered.considerModelOrder.noModelOrder",Zge="org.eclipse.elk.layered.considerModelOrder.components",kFe="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",Jge="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",eme="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",tme="layering",pQt="layering.minWidth",gQt="layering.nodePromotion",OI="crossingMinimization",pee="org.eclipse.elk.hierarchyHandling",mQt="crossingMinimization.greedySwitch",bQt="nodePlacement",yQt="nodePlacement.bk",vQt="edgeRouting",tq="org.eclipse.elk.edgeRouting",np="spacing",RFe="priority",IFe="compaction",_Qt="compaction.postCompaction",wQt="Specifies whether and how post-process compaction is applied.",NFe="highDegreeNodes",OFe="wrapping",EQt="wrapping.cutting",xQt="wrapping.validify",LFe="wrapping.multiEdge",nme="edgeLabels",IM="considerModelOrder",DFe="org.eclipse.elk.spacing.commentComment",MFe="org.eclipse.elk.spacing.commentNode",PFe="org.eclipse.elk.spacing.edgeEdge",rme="org.eclipse.elk.spacing.edgeNode",BFe="org.eclipse.elk.spacing.labelLabel",FFe="org.eclipse.elk.spacing.labelPortHorizontal",$Fe="org.eclipse.elk.spacing.labelPortVertical",UFe="org.eclipse.elk.spacing.labelNode",zFe="org.eclipse.elk.spacing.nodeSelfLoop",GFe="org.eclipse.elk.spacing.portPort",qFe="org.eclipse.elk.spacing.individual",HFe="org.eclipse.elk.port.borderOffset",VFe="org.eclipse.elk.noLayout",YFe="org.eclipse.elk.port.side",nq="org.eclipse.elk.debugMode",jFe="org.eclipse.elk.alignment",WFe="org.eclipse.elk.insideSelfLoops.activate",KFe="org.eclipse.elk.insideSelfLoops.yo",ime="org.eclipse.elk.direction",XFe="org.eclipse.elk.nodeLabels.padding",QFe="org.eclipse.elk.portLabels.nextToPortIfPossible",ZFe="org.eclipse.elk.portLabels.treatAsGroup",JFe="org.eclipse.elk.portAlignment.default",e$e="org.eclipse.elk.portAlignment.north",t$e="org.eclipse.elk.portAlignment.south",n$e="org.eclipse.elk.portAlignment.west",r$e="org.eclipse.elk.portAlignment.east",gee="org.eclipse.elk.contentAlignment",i$e="org.eclipse.elk.junctionPoints",a$e="org.eclipse.elk.edgeLabels.placement",s$e="org.eclipse.elk.port.index",o$e="org.eclipse.elk.commentBox",l$e="org.eclipse.elk.hypernode",c$e="org.eclipse.elk.port.anchor",ame="org.eclipse.elk.partitioning.activate",sme="org.eclipse.elk.partitioning.partition",mee="org.eclipse.elk.position",u$e="org.eclipse.elk.margins",h$e="org.eclipse.elk.spacing.portsSurrounding",bee="org.eclipse.elk.interactiveLayout",mc="org.eclipse.elk.core.util",d$e={3:1,4:1,5:1,601:1},SQt="NETWORK_SIMPLEX",f$e="SIMPLE",hl={106:1,47:1},yee="org.eclipse.elk.alg.layered.p1cycles",ab="org.eclipse.elk.alg.layered.p2layers",p$e={413:1,230:1},TQt={846:1,3:1,4:1},ph="org.eclipse.elk.alg.layered.p3order",dl="org.eclipse.elk.alg.layered.p4nodes",CQt={3:1,4:1,5:1,854:1},cg=1e-5,n2="org.eclipse.elk.alg.layered.p4nodes.bk",ome="org.eclipse.elk.alg.layered.p5edges",f1="org.eclipse.elk.alg.layered.p5edges.orthogonal",lme="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",cme=1e-6,O4="org.eclipse.elk.alg.layered.p5edges.splines",ume=.09999999999999998,vee=1e-8,AQt=4.71238898038469,g$e=3.141592653589793,sb="org.eclipse.elk.alg.mrtree",hme=.10000000149011612,_ee="SUPER_ROOT",NM="org.eclipse.elk.alg.mrtree.graph",m$e=-17976931348623157e292,nu="org.eclipse.elk.alg.mrtree.intermediate",kQt="Processor compute fanout",wee={3:1,6:1,4:1,5:1,534:1,100:1,115:1},RQt="Set neighbors in level",rq="org.eclipse.elk.alg.mrtree.options",IQt="DESCENDANTS",b$e="org.eclipse.elk.mrtree.compaction",y$e="org.eclipse.elk.mrtree.edgeEndTextureLength",v$e="org.eclipse.elk.mrtree.treeLevel",_$e="org.eclipse.elk.mrtree.positionConstraint",w$e="org.eclipse.elk.mrtree.weighting",E$e="org.eclipse.elk.mrtree.edgeRoutingMode",x$e="org.eclipse.elk.mrtree.searchOrder",NQt="Position Constraint",Ou="org.eclipse.elk.mrtree",OQt="org.eclipse.elk.tree",LQt="Processor arrange level",LI="org.eclipse.elk.alg.mrtree.p2order",hd="org.eclipse.elk.alg.mrtree.p4route",S$e="org.eclipse.elk.alg.radial",Z_=6.283185307179586,T$e="Before",C$e=5e-324,Eee="After",A$e="org.eclipse.elk.alg.radial.intermediate",DQt="COMPACTION",dme="org.eclipse.elk.alg.radial.intermediate.compaction",MQt={3:1,4:1,5:1,100:1},k$e="org.eclipse.elk.alg.radial.intermediate.optimization",fme="No implementation is available for the layout option ",OM="org.eclipse.elk.alg.radial.options",R$e="org.eclipse.elk.radial.centerOnRoot",I$e="org.eclipse.elk.radial.orderId",N$e="org.eclipse.elk.radial.radius",xee="org.eclipse.elk.radial.rotate",pme="org.eclipse.elk.radial.compactor",gme="org.eclipse.elk.radial.compactionStepSize",O$e="org.eclipse.elk.radial.sorter",L$e="org.eclipse.elk.radial.wedgeCriteria",D$e="org.eclipse.elk.radial.optimizationCriteria",mme="org.eclipse.elk.radial.rotation.targetAngle",bme="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",M$e="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",PQt="Compaction",P$e="rotation",bf="org.eclipse.elk.radial",BQt="org.eclipse.elk.alg.radial.p1position.wedge",B$e="org.eclipse.elk.alg.radial.sorting",FQt=5.497787143782138,$Qt=3.9269908169872414,UQt=2.356194490192345,zQt="org.eclipse.elk.alg.rectpacking",See="org.eclipse.elk.alg.rectpacking.intermediate",yme="org.eclipse.elk.alg.rectpacking.options",F$e="org.eclipse.elk.rectpacking.trybox",$$e="org.eclipse.elk.rectpacking.currentPosition",U$e="org.eclipse.elk.rectpacking.desiredPosition",z$e="org.eclipse.elk.rectpacking.inNewRow",G$e="org.eclipse.elk.rectpacking.widthApproximation.strategy",q$e="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",H$e="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",V$e="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",Y$e="org.eclipse.elk.rectpacking.packing.strategy",j$e="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",W$e="org.eclipse.elk.rectpacking.packing.compaction.iterations",K$e="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",vme="widthApproximation",GQt="Compaction Strategy",qQt="packing.compaction",Vh="org.eclipse.elk.rectpacking",DI="org.eclipse.elk.alg.rectpacking.p1widthapproximation",Tee="org.eclipse.elk.alg.rectpacking.p2packing",HQt="No Compaction",X$e="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",iq="org.eclipse.elk.alg.rectpacking.util",Cee="No implementation available for ",L4="org.eclipse.elk.alg.spore",D4="org.eclipse.elk.alg.spore.options",ax="org.eclipse.elk.sporeCompaction",_me="org.eclipse.elk.underlyingLayoutAlgorithm",Q$e="org.eclipse.elk.processingOrder.treeConstruction",Z$e="org.eclipse.elk.processingOrder.spanningTreeCostFunction",wme="org.eclipse.elk.processingOrder.preferredRoot",Eme="org.eclipse.elk.processingOrder.rootSelection",xme="org.eclipse.elk.structure.structureExtractionStrategy",J$e="org.eclipse.elk.compaction.compactionStrategy",eUe="org.eclipse.elk.compaction.orthogonal",tUe="org.eclipse.elk.overlapRemoval.maxIterations",nUe="org.eclipse.elk.overlapRemoval.runScanline",Sme="processingOrder",VQt="overlapRemoval",MI="org.eclipse.elk.sporeOverlap",YQt="org.eclipse.elk.alg.spore.p1structure",Tme="org.eclipse.elk.alg.spore.p2processingorder",Cme="org.eclipse.elk.alg.spore.p3execution",jQt="Topdown Layout",WQt="Invalid index: ",PI="org.eclipse.elk.core.alg",_5={341:1},M4={295:1},KQt="Make sure its type is registered with the ",rUe=" utility class.",BI="true",Ame="false",XQt="Couldn't clone property '",sx=.05,Yh="org.eclipse.elk.core.options",QQt=1.2999999523162842,ox="org.eclipse.elk.box",iUe="org.eclipse.elk.expandNodes",aUe="org.eclipse.elk.box.packingMode",ZQt="org.eclipse.elk.algorithm",JQt="org.eclipse.elk.resolvedAlgorithm",sUe="org.eclipse.elk.bendPoints",k8r="org.eclipse.elk.labelManager",eZt="org.eclipse.elk.scaleFactor",tZt="org.eclipse.elk.childAreaWidth",nZt="org.eclipse.elk.childAreaHeight",rZt="org.eclipse.elk.animate",iZt="org.eclipse.elk.animTimeFactor",aZt="org.eclipse.elk.layoutAncestors",sZt="org.eclipse.elk.maxAnimTime",oZt="org.eclipse.elk.minAnimTime",lZt="org.eclipse.elk.progressBar",cZt="org.eclipse.elk.validateGraph",uZt="org.eclipse.elk.validateOptions",hZt="org.eclipse.elk.zoomToFit",R8r="org.eclipse.elk.font.name",dZt="org.eclipse.elk.font.size",oUe="org.eclipse.elk.topdown.sizeApproximator",lUe="org.eclipse.elk.topdown.scaleCap",fZt="org.eclipse.elk.edge.type",pZt="partitioning",gZt="nodeLabels",Aee="portAlignment",kme="nodeSize",Rme="port",cUe="portLabels",aq="topdown",mZt="insideSelfLoops",LM="org.eclipse.elk.fixed",kee="org.eclipse.elk.random",uUe={3:1,34:1,22:1,347:1},bZt="port must have a parent node to calculate the port side",yZt="The edge needs to have exactly one edge section. Found: ",DM="org.eclipse.elk.core.util.adapters",yf="org.eclipse.emf.ecore",w5="org.eclipse.elk.graph",vZt="EMapPropertyHolder",_Zt="ElkBendPoint",wZt="ElkGraphElement",EZt="ElkConnectableShape",hUe="ElkEdge",xZt="ElkEdgeSection",SZt="EModelElement",TZt="ENamedElement",dUe="ElkLabel",fUe="ElkNode",pUe="ElkPort",CZt={94:1,93:1},h6="org.eclipse.emf.common.notify.impl",r2="The feature '",MM="' is not a valid changeable feature",AZt="Expecting null",Ime="' is not a valid feature",kZt="The feature ID",RZt=" is not a valid feature ID",Sc=32768,IZt={110:1,94:1,93:1,58:1,54:1,99:1},tr="org.eclipse.emf.ecore.impl",J_="org.eclipse.elk.graph.impl",PM="Recursive containment not allowed for ",FI="The datatype '",lx="' is not a valid classifier",Nme="The value '",E5={195:1,3:1,4:1},Ome="The class '",$I="http://www.eclipse.org/elk/ElkGraph",gUe="property",BM="value",Lme="source",NZt="properties",OZt="identifier",Dme="height",Mme="width",Pme="parent",Bme="text",Fme="children",LZt="hierarchical",mUe="sources",$me="targets",bUe="sections",Ree="bendPoints",yUe="outgoingShape",vUe="incomingShape",_Ue="outgoingSections",wUe="incomingSections",Qo="org.eclipse.emf.common.util",EUe="Severe implementation error in the Json to ElkGraph importer.",ug="id",Co="org.eclipse.elk.graph.json",xUe="Unhandled parameter types: ",DZt="startPoint",MZt="An edge must have at least one source and one target (edge id: '",UI="').",PZt="Referenced edge section does not exist: ",BZt=" (edge id: '",SUe="target",FZt="sourcePoint",$Zt="targetPoint",Iee="group",Mi="name",UZt="connectableShape cannot be null",zZt="edge cannot be null",Ume="Passed edge is not 'simple'.",Nee="org.eclipse.elk.graph.util",sq="The 'no duplicates' constraint is violated",zme="targetIndex=",ew=", size=",Gme="sourceIndex=",hg={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1},qme={3:1,4:1,20:1,31:1,56:1,16:1,51:1,15:1,59:1,70:1,66:1,61:1,596:1},Oee="logging",GZt="measureExecutionTime",qZt="parser.parse.1",HZt="parser.parse.2",Lee="parser.next.1",Hme="parser.next.2",VZt="parser.next.3",YZt="parser.next.4",tw="parser.factor.1",TUe="parser.factor.2",jZt="parser.factor.3",WZt="parser.factor.4",KZt="parser.factor.5",XZt="parser.factor.6",QZt="parser.atom.1",ZZt="parser.atom.2",JZt="parser.atom.3",CUe="parser.atom.4",Vme="parser.atom.5",AUe="parser.cc.1",Dee="parser.cc.2",eJt="parser.cc.3",tJt="parser.cc.5",kUe="parser.cc.6",RUe="parser.cc.7",Yme="parser.cc.8",nJt="parser.ope.1",rJt="parser.ope.2",iJt="parser.ope.3",by="parser.descape.1",aJt="parser.descape.2",sJt="parser.descape.3",oJt="parser.descape.4",lJt="parser.descape.5",vf="parser.process.1",cJt="parser.quantifier.1",uJt="parser.quantifier.2",hJt="parser.quantifier.3",dJt="parser.quantifier.4",IUe="parser.quantifier.5",fJt="org.eclipse.emf.common.notify",NUe={424:1,686:1},pJt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1},oq={378:1,152:1},FM="index=",jme={3:1,4:1,5:1,129:1},gJt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,61:1},OUe={3:1,6:1,4:1,5:1,198:1},mJt={3:1,4:1,5:1,173:1,379:1},bJt=";/?:@&=+$,",yJt="invalid authority: ",vJt="EAnnotation",_Jt="ETypedElement",wJt="EStructuralFeature",EJt="EAttribute",xJt="EClassifier",SJt="EEnumLiteral",TJt="EGenericType",CJt="EOperation",AJt="EParameter",kJt="EReference",RJt="ETypeParameter",Ca="org.eclipse.emf.ecore.util",Wme={79:1},LUe={3:1,20:1,16:1,15:1,61:1,597:1,79:1,71:1,97:1},IJt="org.eclipse.emf.ecore.util.FeatureMap$Entry",gh=8192,P4=2048,$M="byte",Mee="char",UM="double",zM="float",GM="int",qM="long",HM="short",NJt="java.lang.Object",x5={3:1,4:1,5:1,254:1},DUe={3:1,4:1,5:1,688:1},OJt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,71:1},Xl={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,71:1,97:1},lq="mixed",gi="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",Vf="kind",LJt={3:1,4:1,5:1,689:1},MUe={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,79:1,71:1,97:1},Pee={20:1,31:1,56:1,16:1,15:1,61:1,71:1},Bee={51:1,128:1,287:1},Fee={76:1,343:1},$ee="The value of type '",Uee="' must be of type '",S5=1352,Yf="http://www.eclipse.org/emf/2002/Ecore",zee=-32768,cx="constraints",Bo="baseType",DJt="getEStructuralFeature",MJt="getFeatureID",VM="feature",PJt="getOperationID",PUe="operation",BJt="defaultValue",FJt="eTypeParameters",$Jt="isInstance",UJt="getEEnumLiteral",zJt="eContainingClass",ki={57:1},GJt={3:1,4:1,5:1,124:1},qJt="org.eclipse.emf.ecore.resource",HJt={94:1,93:1,599:1,2034:1},Kme="org.eclipse.emf.ecore.resource.impl",BUe="unspecified",cq="simple",Gee="attribute",VJt="attributeWildcard",qee="element",Xme="elementWildcard",p1="collapse",Qme="itemType",Hee="namespace",uq="##targetNamespace",jf="whiteSpace",FUe="wildcards",nw="http://www.eclipse.org/emf/2003/XMLType",Zme="##any",zI="uninitialized",hq="The multiplicity constraint is violated",Vee="org.eclipse.emf.ecore.xml.type",YJt="ProcessingInstruction",jJt="SimpleAnyType",WJt="XMLTypeDocumentRoot",_s="org.eclipse.emf.ecore.xml.type.impl",dq="INF",KJt="processing",XJt="ENTITIES_._base",$Ue="minLength",UUe="ENTITY",Yee="NCName",QJt="IDREFS_._base",zUe="integer",Jme="token",ebe="pattern",ZJt="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",GUe="\\i\\c*",JJt="[\\i-[:]][\\c-[:]]*",een="nonPositiveInteger",fq="maxInclusive",qUe="NMTOKEN",ten="NMTOKENS_._base",HUe="nonNegativeInteger",pq="minInclusive",nen="normalizedString",ren="unsignedByte",ien="unsignedInt",aen="18446744073709551615",sen="unsignedShort",oen="processingInstruction",yy="org.eclipse.emf.ecore.xml.type.internal",GI=1114111,len="Internal Error: shorthands: \\u",YM="xml:isDigit",tbe="xml:isWord",nbe="xml:isSpace",rbe="xml:isNameChar",ibe="xml:isInitialNameChar",cen="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",uen="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",hen="Private Use",abe="ASSIGNED",sbe="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯",VUe="UNASSIGNED",qI={3:1,122:1},den="org.eclipse.emf.ecore.xml.type.util",jee={3:1,4:1,5:1,381:1},YUe="org.eclipse.xtext.xbase.lib",fen="Cannot add elements to a Range",pen="Cannot set elements in a Range",gen="Cannot remove elements from a Range",men="user.agent",E,Wee,obe;u.goog=u.goog||{},u.goog.global=u.goog.global||u,Wee={},H(1,null,{},f),E.Fb=function(i){return pIt(this,i)},E.Gb=function(){return this.Rm},E.Hb=function(){return vE(this)},E.Ib=function(){var i;return __(cd(this))+"@"+(i=ma(this)>>>0,i.toString(16))},E.equals=function(n){return this.Fb(n)},E.hashCode=function(){return this.Hb()},E.toString=function(){return this.Ib()};var ben,yen,ven;H(297,1,{297:1,2124:1},z9e),E.ve=function(i){var l;return l=new z9e,l.i=4,i>1?l.c=PDt(this,i-1):l.c=this,l},E.we=function(){return Fm(this),this.b},E.xe=function(){return __(this)},E.ye=function(){return Fm(this),this.k},E.ze=function(){return(this.i&4)!=0},E.Ae=function(){return(this.i&1)!=0},E.Ib=function(){return ZOe(this)},E.i=0;var zs=K(gc,"Object",1),jUe=K(gc,"Class",297);H(2096,1,OG),K(LG,"Optional",2096),H(1191,2096,OG,p),E.Fb=function(i){return i===this},E.Hb=function(){return 2040732332},E.Ib=function(){return"Optional.absent()"},E.Jb=function(i){return ni(i),yL(),lbe};var lbe;K(LG,"Absent",1191),H(636,1,{},que),K(LG,"Joiner",636);var I8r=$a(LG,"Predicate");H(589,1,{178:1,589:1,3:1,46:1},qTt),E.Mb=function(i){return PUt(this,i)},E.Lb=function(i){return PUt(this,i)},E.Fb=function(i){var l;return $e(i,589)?(l=v(i,589),FMe(this.a,l.a)):!1},E.Hb=function(){return j9e(this.a)+306654252},E.Ib=function(){return mSr(this.a)},K(LG,"Predicates/AndPredicate",589),H(419,2096,{419:1,3:1},mK),E.Fb=function(i){var l;return $e(i,419)?(l=v(i,419),Yi(this.a,l.a)):!1},E.Hb=function(){return 1502476572+ma(this.a)},E.Ib=function(){return HKt+this.a+")"},E.Jb=function(i){return new mK(mQ(i.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},K(LG,"Present",419),H(204,1,yI),E.Nb=function(i){xo(this,i)},E.Qb=function(){r7t()},K(_n,"UnmodifiableIterator",204),H(2076,204,vI),E.Qb=function(){r7t()},E.Rb=function(i){throw _e(new ri)},E.Wb=function(i){throw _e(new ri)},K(_n,"UnmodifiableListIterator",2076),H(399,2076,vI),E.Ob=function(){return this.c0},E.Pb=function(){if(this.c>=this.d)throw _e(new ec);return this.Xb(this.c++)},E.Tb=function(){return this.c},E.Ub=function(){if(this.c<=0)throw _e(new ec);return this.Xb(--this.c)},E.Vb=function(){return this.c-1},E.c=0,E.d=0,K(_n,"AbstractIndexedListIterator",399),H(713,204,yI),E.Ob=function(){return Vfe(this)},E.Pb=function(){return YOe(this)},E.e=1,K(_n,"AbstractIterator",713),H(2084,1,{229:1}),E.Zb=function(){var i;return i=this.f,i||(this.f=this.ac())},E.Fb=function(i){return f0e(this,i)},E.Hb=function(){return ma(this.Zb())},E.dc=function(){return this.gc()==0},E.ec=function(){return wk(this)},E.Ib=function(){return Kl(this.Zb())},K(_n,"AbstractMultimap",2084),H(742,2084,Y_),E.$b=function(){sZ(this)},E._b=function(i){return E7t(this,i)},E.ac=function(){return new jR(this,this.c)},E.ic=function(i){return this.hc()},E.bc=function(){return new $T(this,this.c)},E.jc=function(){return this.mc(this.hc())},E.kc=function(){return new z6t(this)},E.lc=function(){return E1e(this.c.vc().Nc(),new b,64,this.d)},E.cc=function(i){return Zi(this,i)},E.fc=function(i){return Vz(this,i)},E.gc=function(){return this.d},E.mc=function(i){return Fn(),new DR(i)},E.nc=function(){return new U6t(this)},E.oc=function(){return E1e(this.c.Cc().Nc(),new m,64,this.d)},E.pc=function(i,l){return new FQ(this,i,l,null)},E.d=0,K(_n,"AbstractMapBasedMultimap",742),H(1696,742,Y_),E.hc=function(){return new gu(this.a)},E.jc=function(){return Fn(),Fn(),Zo},E.cc=function(i){return v(Zi(this,i),15)},E.fc=function(i){return v(Vz(this,i),15)},E.Zb=function(){return Ak(this)},E.Fb=function(i){return f0e(this,i)},E.qc=function(i){return v(Zi(this,i),15)},E.rc=function(i){return v(Vz(this,i),15)},E.mc=function(i){return Wde(v(i,15))},E.pc=function(i,l){return qMt(this,i,v(l,15),null)},K(_n,"AbstractListMultimap",1696),H(748,1,io),E.Nb=function(i){xo(this,i)},E.Ob=function(){return this.c.Ob()||this.e.Ob()},E.Pb=function(){var i;return this.e.Ob()||(i=v(this.c.Pb(),44),this.b=i.ld(),this.a=v(i.md(),16),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},E.Qb=function(){this.e.Qb(),v($f(this.a),16).dc()&&this.c.Qb(),--this.d.d},K(_n,"AbstractMapBasedMultimap/Itr",748),H(1129,748,io,U6t),E.sc=function(i,l){return l},K(_n,"AbstractMapBasedMultimap/1",1129),H(1130,1,{},m),E.Kb=function(i){return v(i,16).Nc()},K(_n,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1130),H(1131,748,io,z6t),E.sc=function(i,l){return new hE(i,l)},K(_n,"AbstractMapBasedMultimap/2",1131);var WUe=$a(Dr,"Map");H(2065,1,tx),E.wc=function(i){kD(this,i)},E.yc=function(i,l,d){return O0e(this,i,l,d)},E.$b=function(){this.vc().$b()},E.tc=function(i){return i1e(this,i)},E._b=function(i){return!!PDe(this,i,!1)},E.uc=function(i){var l,d,g;for(d=this.vc().Kc();d.Ob();)if(l=v(d.Pb(),44),g=l.md(),Ze(i)===Ze(g)||i!=null&&Yi(i,g))return!0;return!1},E.Fb=function(i){var l,d,g;if(i===this)return!0;if(!$e(i,85)||(g=v(i,85),this.gc()!=g.gc()))return!1;for(d=g.vc().Kc();d.Ob();)if(l=v(d.Pb(),44),!this.tc(l))return!1;return!0},E.xc=function(i){return Pl(PDe(this,i,!1))},E.Hb=function(){return B9e(this.vc())},E.dc=function(){return this.gc()==0},E.ec=function(){return new m_(this)},E.zc=function(i,l){throw _e(new zb("Put not supported on this map"))},E.Ac=function(i){AD(this,i)},E.Bc=function(i){return Pl(PDe(this,i,!0))},E.gc=function(){return this.vc().gc()},E.Ib=function(){return Wqt(this)},E.Cc=function(){return new Dm(this)},K(Dr,"AbstractMap",2065),H(2085,2065,tx),E.bc=function(){return new FK(this)},E.vc=function(){return $9t(this)},E.ec=function(){var i;return i=this.g,i||(this.g=this.bc())},E.Cc=function(){var i;return i=this.i,i||(this.i=new dRt(this))},K(_n,"Maps/ViewCachingAbstractMap",2085),H(402,2085,tx,jR),E.xc=function(i){return Mgr(this,i)},E.Bc=function(i){return iyr(this,i)},E.$b=function(){this.d==this.e.c?this.e.$b():jX(new KIe(this))},E._b=function(i){return _zt(this.d,i)},E.Ec=function(){return new HTt(this)},E.Dc=function(){return this.Ec()},E.Fb=function(i){return this===i||Yi(this.d,i)},E.Hb=function(){return ma(this.d)},E.ec=function(){return this.e.ec()},E.gc=function(){return this.d.gc()},E.Ib=function(){return Kl(this.d)},K(_n,"AbstractMapBasedMultimap/AsMap",402);var Md=$a(gc,"Iterable");H(31,1,A4),E.Jc=function(i){To(this,i)},E.Lc=function(){return this.Oc()},E.Nc=function(){return new Nn(this,0)},E.Oc=function(){return new xn(null,this.Nc())},E.Fc=function(i){throw _e(new zb("Add not supported on this collection"))},E.Gc=function(i){return bo(this,i)},E.$b=function(){MNe(this)},E.Hc=function(i){return f4(this,i,!1)},E.Ic=function(i){return Bz(this,i)},E.dc=function(){return this.gc()==0},E.Mc=function(i){return f4(this,i,!0)},E.Pc=function(){return aNe(this)},E.Qc=function(i){return YD(this,i)},E.Ib=function(){return Wv(this)},K(Dr,"AbstractCollection",31);var Wf=$a(Dr,"Set");H(J1,31,fh),E.Nc=function(){return new Nn(this,1)},E.Fb=function(i){return hGt(this,i)},E.Hb=function(){return B9e(this)},K(Dr,"AbstractSet",J1),H(2068,J1,fh),K(_n,"Sets/ImprovedAbstractSet",2068),H(2069,2068,fh),E.$b=function(){this.Rc().$b()},E.Hc=function(i){return Kzt(this,i)},E.dc=function(){return this.Rc().dc()},E.Mc=function(i){var l;return this.Hc(i)&&$e(i,44)?(l=v(i,44),this.Rc().ec().Mc(l.ld())):!1},E.gc=function(){return this.Rc().gc()},K(_n,"Maps/EntrySet",2069),H(1127,2069,fh,HTt),E.Hc=function(i){return uLe(this.a.d.vc(),i)},E.Kc=function(){return new KIe(this.a)},E.Rc=function(){return this.a},E.Mc=function(i){var l;return uLe(this.a.d.vc(),i)?(l=v($f(v(i,44)),44),xpr(this.a.e,l.ld()),!0):!1},E.Nc=function(){return WU(this.a.d.vc().Nc(),new VTt(this.a))},K(_n,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1127),H(1128,1,{},VTt),E.Kb=function(i){return zPt(this.a,v(i,44))},K(_n,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1128),H(746,1,io,KIe),E.Nb=function(i){xo(this,i)},E.Pb=function(){var i;return i=v(this.b.Pb(),44),this.a=v(i.md(),16),zPt(this.c,i)},E.Ob=function(){return this.b.Ob()},E.Qb=function(){n8(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},K(_n,"AbstractMapBasedMultimap/AsMap/AsMapIterator",746),H(542,2068,fh,FK),E.$b=function(){this.b.$b()},E.Hc=function(i){return this.b._b(i)},E.Jc=function(i){ni(i),this.b.wc(new l5t(i))},E.dc=function(){return this.b.dc()},E.Kc=function(){return new vL(this.b.vc().Kc())},E.Mc=function(i){return this.b._b(i)?(this.b.Bc(i),!0):!1},E.gc=function(){return this.b.gc()},K(_n,"Maps/KeySet",542),H(327,542,fh,$T),E.$b=function(){var i;jX((i=this.b.vc().Kc(),new vRe(this,i)))},E.Ic=function(i){return this.b.ec().Ic(i)},E.Fb=function(i){return this===i||Yi(this.b.ec(),i)},E.Hb=function(){return ma(this.b.ec())},E.Kc=function(){var i;return i=this.b.vc().Kc(),new vRe(this,i)},E.Mc=function(i){var l,d;return d=0,l=v(this.b.Bc(i),16),l&&(d=l.gc(),l.$b(),this.a.d-=d),d>0},E.Nc=function(){return this.b.ec().Nc()},K(_n,"AbstractMapBasedMultimap/KeySet",327),H(747,1,io,vRe),E.Nb=function(i){xo(this,i)},E.Ob=function(){return this.c.Ob()},E.Pb=function(){return this.a=v(this.c.Pb(),44),this.a.ld()},E.Qb=function(){var i;n8(!!this.a),i=v(this.a.md(),16),this.c.Qb(),this.b.a.d-=i.gc(),i.$b(),this.a=null},K(_n,"AbstractMapBasedMultimap/KeySet/1",747),H(503,402,{85:1,133:1},zU),E.bc=function(){return this.Sc()},E.ec=function(){return this.Uc()},E.Sc=function(){return new gU(this.c,this.Wc())},E.Tc=function(){return this.Wc().Tc()},E.Uc=function(){var i;return i=this.b,i||(this.b=this.Sc())},E.Vc=function(){return this.Wc().Vc()},E.Wc=function(){return v(this.d,133)},K(_n,"AbstractMapBasedMultimap/SortedAsMap",503),H(446,503,iBe,JL),E.bc=function(){return new YR(this.a,v(v(this.d,133),139))},E.Sc=function(){return new YR(this.a,v(v(this.d,133),139))},E.ec=function(){var i;return i=this.b,v(i||(this.b=new YR(this.a,v(v(this.d,133),139))),277)},E.Uc=function(){var i;return i=this.b,v(i||(this.b=new YR(this.a,v(v(this.d,133),139))),277)},E.Wc=function(){return v(v(this.d,133),139)},E.Xc=function(i){return v(v(this.d,133),139).Xc(i)},E.Yc=function(i){return v(v(this.d,133),139).Yc(i)},E.Zc=function(i,l){return new JL(this.a,v(v(this.d,133),139).Zc(i,l))},E.$c=function(i){return v(v(this.d,133),139).$c(i)},E._c=function(i){return v(v(this.d,133),139)._c(i)},E.ad=function(i,l){return new JL(this.a,v(v(this.d,133),139).ad(i,l))},K(_n,"AbstractMapBasedMultimap/NavigableAsMap",446),H(502,327,VKt,gU),E.Nc=function(){return this.b.ec().Nc()},K(_n,"AbstractMapBasedMultimap/SortedKeySet",502),H(401,502,aBe,YR),K(_n,"AbstractMapBasedMultimap/NavigableKeySet",401),H(551,31,A4,FQ),E.Fc=function(i){var l,d;return zh(this),d=this.d.dc(),l=this.d.Fc(i),l&&(++this.f.d,d&&VU(this)),l},E.Gc=function(i){var l,d,g;return i.dc()?!1:(g=(zh(this),this.d.gc()),l=this.d.Gc(i),l&&(d=this.d.gc(),this.f.d+=d-g,g==0&&VU(this)),l)},E.$b=function(){var i;i=(zh(this),this.d.gc()),i!=0&&(this.d.$b(),this.f.d-=i,JX(this))},E.Hc=function(i){return zh(this),this.d.Hc(i)},E.Ic=function(i){return zh(this),this.d.Ic(i)},E.Fb=function(i){return i===this?!0:(zh(this),Yi(this.d,i))},E.Hb=function(){return zh(this),ma(this.d)},E.Kc=function(){return zh(this),new OIe(this)},E.Mc=function(i){var l;return zh(this),l=this.d.Mc(i),l&&(--this.f.d,JX(this)),l},E.gc=function(){return eIt(this)},E.Nc=function(){return zh(this),this.d.Nc()},E.Ib=function(){return zh(this),Kl(this.d)},K(_n,"AbstractMapBasedMultimap/WrappedCollection",551);var _f=$a(Dr,"List");H(744,551,{20:1,31:1,16:1,15:1},lNe),E.jd=function(i){D_(this,i)},E.Nc=function(){return zh(this),this.d.Nc()},E.bd=function(i,l){var d;zh(this),d=this.d.dc(),v(this.d,15).bd(i,l),++this.a.d,d&&VU(this)},E.cd=function(i,l){var d,g,y;return l.dc()?!1:(y=(zh(this),this.d.gc()),d=v(this.d,15).cd(i,l),d&&(g=this.d.gc(),this.a.d+=g-y,y==0&&VU(this)),d)},E.Xb=function(i){return zh(this),v(this.d,15).Xb(i)},E.dd=function(i){return zh(this),v(this.d,15).dd(i)},E.ed=function(){return zh(this),new IIt(this)},E.fd=function(i){return zh(this),new JLt(this,i)},E.gd=function(i){var l;return zh(this),l=v(this.d,15).gd(i),--this.a.d,JX(this),l},E.hd=function(i,l){return zh(this),v(this.d,15).hd(i,l)},E.kd=function(i,l){return zh(this),qMt(this.a,this.e,v(this.d,15).kd(i,l),this.b?this.b:this)},K(_n,"AbstractMapBasedMultimap/WrappedList",744),H(1126,744,{20:1,31:1,16:1,15:1,59:1},vNt),K(_n,"AbstractMapBasedMultimap/RandomAccessWrappedList",1126),H(628,1,io,OIe),E.Nb=function(i){xo(this,i)},E.Ob=function(){return f8(this),this.b.Ob()},E.Pb=function(){return f8(this),this.b.Pb()},E.Qb=function(){rNt(this)},K(_n,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",628),H(745,628,Yg,IIt,JLt),E.Qb=function(){rNt(this)},E.Rb=function(i){var l;l=eIt(this.a)==0,(f8(this),v(this.b,128)).Rb(i),++this.a.a.d,l&&VU(this.a)},E.Sb=function(){return(f8(this),v(this.b,128)).Sb()},E.Tb=function(){return(f8(this),v(this.b,128)).Tb()},E.Ub=function(){return(f8(this),v(this.b,128)).Ub()},E.Vb=function(){return(f8(this),v(this.b,128)).Vb()},E.Wb=function(i){(f8(this),v(this.b,128)).Wb(i)},K(_n,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",745),H(743,551,VKt,Q8e),E.Nc=function(){return zh(this),this.d.Nc()},K(_n,"AbstractMapBasedMultimap/WrappedSortedSet",743),H(1125,743,aBe,TIt),K(_n,"AbstractMapBasedMultimap/WrappedNavigableSet",1125),H(1124,551,fh,UNt),E.Nc=function(){return zh(this),this.d.Nc()},K(_n,"AbstractMapBasedMultimap/WrappedSet",1124),H(1133,1,{},b),E.Kb=function(i){return Lpr(v(i,44))},K(_n,"AbstractMapBasedMultimap/lambda$1$Type",1133),H(1132,1,{},KTt),E.Kb=function(i){return new hE(this.a,i)},K(_n,"AbstractMapBasedMultimap/lambda$2$Type",1132);var rw=$a(Dr,"Map/Entry");H(358,1,Spe),E.Fb=function(i){var l;return $e(i,44)?(l=v(i,44),Wp(this.ld(),l.ld())&&Wp(this.md(),l.md())):!1},E.Hb=function(){var i,l;return i=this.ld(),l=this.md(),(i==null?0:ma(i))^(l==null?0:ma(l))},E.nd=function(i){throw _e(new ri)},E.Ib=function(){return this.ld()+"="+this.md()},K(_n,YKt,358),H(2086,31,A4),E.$b=function(){this.od().$b()},E.Hc=function(i){var l;return $e(i,44)?(l=v(i,44),e1r(this.od(),l.ld(),l.md())):!1},E.Mc=function(i){var l;return $e(i,44)?(l=v(i,44),SMt(this.od(),l.ld(),l.md())):!1},E.gc=function(){return this.od().d},K(_n,"Multimaps/Entries",2086),H(749,2086,A4,Z6e),E.Kc=function(){return this.a.kc()},E.od=function(){return this.a},E.Nc=function(){return this.a.lc()},K(_n,"AbstractMultimap/Entries",749),H(750,749,fh,X7e),E.Nc=function(){return this.a.lc()},E.Fb=function(i){return nMe(this,i)},E.Hb=function(){return M$t(this)},K(_n,"AbstractMultimap/EntrySet",750),H(751,31,A4,J6e),E.$b=function(){this.a.$b()},E.Hc=function(i){return Zbr(this.a,i)},E.Kc=function(){return this.a.nc()},E.gc=function(){return this.a.d},E.Nc=function(){return this.a.oc()},K(_n,"AbstractMultimap/Values",751),H(2087,31,{849:1,20:1,31:1,16:1}),E.Jc=function(i){ni(i),zT(this).Jc(new p5t(i))},E.Nc=function(){var i;return i=zT(this).Nc(),E1e(i,new N,64|i.yd()&1296,this.a.d)},E.Fc=function(i){return iRe(),!0},E.Gc=function(i){return ni(this),ni(i),$e(i,552)?r1r(v(i,849)):!i.dc()&&Pfe(this,i.Kc())},E.Hc=function(i){var l;return l=v(d4(Ak(this.a),i),16),(l?l.gc():0)>0},E.Fb=function(i){return T3r(this,i)},E.Hb=function(){return ma(zT(this))},E.dc=function(){return zT(this).dc()},E.Mc=function(i){return oVt(this,i,1)>0},E.Ib=function(){return Kl(zT(this))},K(_n,"AbstractMultiset",2087),H(2089,2068,fh),E.$b=function(){sZ(this.a.a)},E.Hc=function(i){var l,d;return $e(i,504)?(d=v(i,425),v(d.a.md(),16).gc()<=0?!1:(l=QDt(this.a,d.a.ld()),l==v(d.a.md(),16).gc())):!1},E.Mc=function(i){var l,d,g,y;return $e(i,504)&&(d=v(i,425),l=d.a.ld(),g=v(d.a.md(),16).gc(),g!=0)?(y=this.a,g4r(y,l,g)):!1},K(_n,"Multisets/EntrySet",2089),H(1139,2089,fh,XTt),E.Kc=function(){return new Y6t($9t(Ak(this.a.a)).Kc())},E.gc=function(){return Ak(this.a.a).gc()},K(_n,"AbstractMultiset/EntrySet",1139),H(627,742,Y_),E.hc=function(){return this.pd()},E.jc=function(){return this.qd()},E.cc=function(i){return this.rd(i)},E.fc=function(i){return this.sd(i)},E.Zb=function(){var i;return i=this.f,i||(this.f=this.ac())},E.qd=function(){return Fn(),Fn(),ete},E.Fb=function(i){return f0e(this,i)},E.rd=function(i){return v(Zi(this,i),21)},E.sd=function(i){return v(Vz(this,i),21)},E.mc=function(i){return Fn(),new zR(v(i,21))},E.pc=function(i,l){return new UNt(this,i,v(l,21))},K(_n,"AbstractSetMultimap",627),H(1723,627,Y_),E.hc=function(){return new Vb(this.b)},E.pd=function(){return new Vb(this.b)},E.jc=function(){return RNe(new Vb(this.b))},E.qd=function(){return RNe(new Vb(this.b))},E.cc=function(i){return v(v(Zi(this,i),21),87)},E.rd=function(i){return v(v(Zi(this,i),21),87)},E.fc=function(i){return v(v(Vz(this,i),21),87)},E.sd=function(i){return v(v(Vz(this,i),21),87)},E.mc=function(i){return $e(i,277)?RNe(v(i,277)):(Fn(),new P8e(v(i,87)))},E.Zb=function(){var i;return i=this.f,i||(this.f=$e(this.c,139)?new JL(this,v(this.c,139)):$e(this.c,133)?new zU(this,v(this.c,133)):new jR(this,this.c))},E.pc=function(i,l){return $e(l,277)?new TIt(this,i,v(l,277)):new Q8e(this,i,v(l,87))},K(_n,"AbstractSortedSetMultimap",1723),H(1724,1723,Y_),E.Zb=function(){var i;return i=this.f,v(v(i||(this.f=$e(this.c,139)?new JL(this,v(this.c,139)):$e(this.c,133)?new zU(this,v(this.c,133)):new jR(this,this.c)),133),139)},E.ec=function(){var i;return i=this.i,v(v(i||(this.i=$e(this.c,139)?new YR(this,v(this.c,139)):$e(this.c,133)?new gU(this,v(this.c,133)):new $T(this,this.c)),87),277)},E.bc=function(){return $e(this.c,139)?new YR(this,v(this.c,139)):$e(this.c,133)?new gU(this,v(this.c,133)):new $T(this,this.c)},K(_n,"AbstractSortedKeySortedSetMultimap",1724),H(2109,1,{2046:1}),E.Fb=function(i){return Xwr(this,i)},E.Hb=function(){var i;return B9e((i=this.g,i||(this.g=new pue(this))))},E.Ib=function(){var i;return Wqt((i=this.f,i||(this.f=new O8e(this))))},K(_n,"AbstractTable",2109),H(679,J1,fh,pue),E.$b=function(){i7t()},E.Hc=function(i){var l,d;return $e(i,479)?(l=v(i,697),d=v(d4(cLt(this.a),Nv(l.c.e,l.b)),85),!!d&&uLe(d.vc(),new hE(Nv(l.c.c,l.a),Dk(l.c,l.b,l.a)))):!1},E.Kc=function(){return efr(this.a)},E.Mc=function(i){var l,d;return $e(i,479)?(l=v(i,697),d=v(d4(cLt(this.a),Nv(l.c.e,l.b)),85),!!d&&Nyr(d.vc(),new hE(Nv(l.c.c,l.a),Dk(l.c,l.b,l.a)))):!1},E.gc=function(){return d9t(this.a)},E.Nc=function(){return s1r(this.a)},K(_n,"AbstractTable/CellSet",679),H(2025,31,A4,ZTt),E.$b=function(){i7t()},E.Hc=function(i){return GEr(this.a,i)},E.Kc=function(){return tfr(this.a)},E.gc=function(){return d9t(this.a)},E.Nc=function(){return xMt(this.a)},K(_n,"AbstractTable/Values",2025),H(1697,1696,Y_),K(_n,"ArrayListMultimapGwtSerializationDependencies",1697),H(520,1697,Y_,Yue,QNe),E.hc=function(){return new gu(this.a)},E.a=0,K(_n,"ArrayListMultimap",520),H(678,2109,{678:1,2046:1,3:1},_Vt),K(_n,"ArrayTable",678),H(2021,399,vI,iNt),E.Xb=function(i){return new G9e(this.a,i)},K(_n,"ArrayTable/1",2021),H(2022,1,{},YTt),E.td=function(i){return new G9e(this.a,i)},K(_n,"ArrayTable/1methodref$getCell$Type",2022),H(2110,1,{697:1}),E.Fb=function(i){var l;return i===this?!0:$e(i,479)?(l=v(i,697),Wp(Nv(this.c.e,this.b),Nv(l.c.e,l.b))&&Wp(Nv(this.c.c,this.a),Nv(l.c.c,l.a))&&Wp(Dk(this.c,this.b,this.a),Dk(l.c,l.b,l.a))):!1},E.Hb=function(){return Hz(Te(xe(zs,1),Yn,1,5,[Nv(this.c.e,this.b),Nv(this.c.c,this.a),Dk(this.c,this.b,this.a)]))},E.Ib=function(){return"("+Nv(this.c.e,this.b)+","+Nv(this.c.c,this.a)+")="+Dk(this.c,this.b,this.a)},K(_n,"Tables/AbstractCell",2110),H(479,2110,{479:1,697:1},G9e),E.a=0,E.b=0,E.d=0,K(_n,"ArrayTable/2",479),H(2024,1,{},jTt),E.td=function(i){return WBt(this.a,i)},K(_n,"ArrayTable/2methodref$getValue$Type",2024),H(2023,399,vI,aNt),E.Xb=function(i){return WBt(this.a,i)},K(_n,"ArrayTable/3",2023),H(2077,2065,tx),E.$b=function(){jX(this.kc())},E.vc=function(){return new o5t(this)},E.lc=function(){return new qLt(this.kc(),this.gc())},K(_n,"Maps/IteratorBasedAbstractMap",2077),H(842,2077,tx),E.$b=function(){throw _e(new ri)},E._b=function(i){return x7t(this.c,i)},E.kc=function(){return new sNt(this,this.c.b.c.gc())},E.lc=function(){return gde(this.c.b.c.gc(),16,new WTt(this))},E.xc=function(i){var l;return l=v(eD(this.c,i),17),l?this.vd(l.a):null},E.dc=function(){return this.c.b.c.dc()},E.ec=function(){return xde(this.c)},E.zc=function(i,l){var d;if(d=v(eD(this.c,i),17),!d)throw _e(new ar(this.ud()+" "+i+" not in "+xde(this.c)));return this.wd(d.a,l)},E.Bc=function(i){throw _e(new ri)},E.gc=function(){return this.c.b.c.gc()},K(_n,"ArrayTable/ArrayMap",842),H(2020,1,{},WTt),E.td=function(i){return hLt(this.a,i)},K(_n,"ArrayTable/ArrayMap/0methodref$getEntry$Type",2020),H(2018,358,Spe,K7t),E.ld=function(){return por(this.a,this.b)},E.md=function(){return this.a.vd(this.b)},E.nd=function(i){return this.a.wd(this.b,i)},E.b=0,K(_n,"ArrayTable/ArrayMap/1",2018),H(2019,399,vI,sNt),E.Xb=function(i){return hLt(this.a,i)},K(_n,"ArrayTable/ArrayMap/2",2019),H(2017,842,tx,Z9t),E.ud=function(){return"Column"},E.vd=function(i){return Dk(this.b,this.a,i)},E.wd=function(i,l){return wUt(this.b,this.a,i,l)},E.a=0,K(_n,"ArrayTable/Row",2017),H(843,842,tx,O8e),E.vd=function(i){return new Z9t(this.a,i)},E.zc=function(i,l){return v(l,85),Lir()},E.wd=function(i,l){return v(l,85),Dir()},E.ud=function(){return"Row"},K(_n,"ArrayTable/RowMap",843),H(1157,1,Ld,X7t),E.Ad=function(i){return(this.a.yd()&-262&i)!=0},E.yd=function(){return this.a.yd()&-262},E.zd=function(){return this.a.zd()},E.Nb=function(i){this.a.Nb(new Z7t(i,this.b))},E.Bd=function(i){return this.a.Bd(new Q7t(i,this.b))},K(_n,"CollectSpliterators/1",1157),H(1158,1,vr,Q7t),E.Cd=function(i){this.a.Cd(this.b.Kb(i))},K(_n,"CollectSpliterators/1/lambda$0$Type",1158),H(1159,1,vr,Z7t),E.Cd=function(i){this.a.Cd(this.b.Kb(i))},K(_n,"CollectSpliterators/1/lambda$1$Type",1159),H(1154,1,Ld,wOt),E.Ad=function(i){return((16464|this.b)&i)!=0},E.yd=function(){return 16464|this.b},E.zd=function(){return this.a.zd()},E.Nb=function(i){this.a.Qe(new eRt(i,this.c))},E.Bd=function(i){return this.a.Re(new J7t(i,this.c))},E.b=0,K(_n,"CollectSpliterators/1WithCharacteristics",1154),H(1155,1,DG,J7t),E.Dd=function(i){this.a.Cd(this.b.td(i))},K(_n,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1155),H(1156,1,DG,eRt),E.Dd=function(i){this.a.Cd(this.b.td(i))},K(_n,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1156),H(1150,1,Ld),E.Ad=function(i){return(this.a&i)!=0},E.yd=function(){return this.a},E.zd=function(){return this.e&&(this.b=_8e(this.b,this.e.zd())),_8e(this.b,0)},E.Nb=function(i){this.e&&(this.e.Nb(i),this.e=null),this.c.Nb(new tRt(this,i)),this.b=0},E.Bd=function(i){for(;;){if(this.e&&this.e.Bd(i))return qL(this.b,MG)&&(this.b=zf(this.b,1)),!0;if(this.e=null,!this.c.Bd(new JTt(this)))return!1}},E.a=0,E.b=0,K(_n,"CollectSpliterators/FlatMapSpliterator",1150),H(1152,1,vr,JTt),E.Cd=function(i){dlr(this.a,i)},K(_n,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1152),H(1153,1,vr,tRt),E.Cd=function(i){Bdr(this.a,this.b,i)},K(_n,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1153),H(1151,1150,Ld,zMt),K(_n,"CollectSpliterators/FlatMapSpliteratorOfObject",1151),H(253,1,Tpe),E.Fd=function(i){return this.Ed(v(i,253))},E.Ed=function(i){var l;return i==(Pue(),ube)?1:i==(Mue(),cbe)?-1:(l=(GX(),Oz(this.a,i.a)),l!=0?l:$e(this,526)==$e(i,526)?0:$e(this,526)?1:-1)},E.Id=function(){return this.a},E.Fb=function(i){return lDe(this,i)},K(_n,"Cut",253),H(1823,253,Tpe,$6t),E.Ed=function(i){return i==this?0:1},E.Gd=function(i){throw _e(new N7e)},E.Hd=function(i){i.a+="+∞)"},E.Id=function(){throw _e(new Tl(WKt))},E.Hb=function(){return Pm(),jLe(this)},E.Jd=function(i){return!1},E.Ib=function(){return"+∞"};var cbe;K(_n,"Cut/AboveAll",1823),H(526,253,{253:1,526:1,3:1,34:1},dNt),E.Gd=function(i){Kc((i.a+="(",i),this.a)},E.Hd=function(i){C_(Kc(i,this.a),93)},E.Hb=function(){return~ma(this.a)},E.Jd=function(i){return GX(),Oz(this.a,i)<0},E.Ib=function(){return"/"+this.a+"\\"},K(_n,"Cut/AboveValue",526),H(1822,253,Tpe,F6t),E.Ed=function(i){return i==this?0:-1},E.Gd=function(i){i.a+="(-∞"},E.Hd=function(i){throw _e(new N7e)},E.Id=function(){throw _e(new Tl(WKt))},E.Hb=function(){return Pm(),jLe(this)},E.Jd=function(i){return!0},E.Ib=function(){return"-∞"};var ube;K(_n,"Cut/BelowAll",1822),H(1824,253,Tpe,fNt),E.Gd=function(i){Kc((i.a+="[",i),this.a)},E.Hd=function(i){C_(Kc(i,this.a),41)},E.Hb=function(){return ma(this.a)},E.Jd=function(i){return GX(),Oz(this.a,i)<=0},E.Ib=function(){return"\\"+this.a+"/"},K(_n,"Cut/BelowValue",1824),H(547,1,jg),E.Jc=function(i){To(this,i)},E.Ib=function(){return Zyr(v(mQ(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())},K(_n,"FluentIterable",547),H(442,547,jg,YL),E.Kc=function(){return new yr(_r(this.a.Kc(),new S))},K(_n,"FluentIterable/2",442),H(1059,547,jg,wIt),E.Kc=function(){return $g(this)},K(_n,"FluentIterable/3",1059),H(724,399,vI,L8e),E.Xb=function(i){return this.a[i].Kc()},K(_n,"FluentIterable/3/1",724),H(2070,1,{}),E.Ib=function(){return Kl(this.Kd().b)},K(_n,"ForwardingObject",2070),H(2071,2070,KKt),E.Kd=function(){return this.Ld()},E.Jc=function(i){To(this,i)},E.Lc=function(){return this.Oc()},E.Nc=function(){return new Nn(this,0)},E.Oc=function(){return new xn(null,this.Nc())},E.Fc=function(i){return this.Ld(),T7t()},E.Gc=function(i){return this.Ld(),C7t()},E.$b=function(){this.Ld(),A7t()},E.Hc=function(i){return this.Ld().Hc(i)},E.Ic=function(i){return this.Ld().Ic(i)},E.dc=function(){return this.Ld().b.dc()},E.Kc=function(){return this.Ld().Kc()},E.Mc=function(i){return this.Ld(),k7t()},E.gc=function(){return this.Ld().b.gc()},E.Pc=function(){return this.Ld().Pc()},E.Qc=function(i){return this.Ld().Qc(i)},K(_n,"ForwardingCollection",2071),H(2078,31,sBe),E.Kc=function(){return this.Od()},E.Fc=function(i){throw _e(new ri)},E.Gc=function(i){throw _e(new ri)},E.Md=function(){var i;return i=this.c,i||(this.c=this.Nd())},E.$b=function(){throw _e(new ri)},E.Hc=function(i){return i!=null&&f4(this,i,!1)},E.Nd=function(){switch(this.gc()){case 0:return CE(),CE(),hbe;case 1:return CE(),new mde(ni(this.Od().Pb()));default:return new dNe(this,this.Pc())}},E.Mc=function(i){throw _e(new ri)},K(_n,"ImmutableCollection",2078),H(727,2078,sBe,R7e),E.Kc=function(){return Mk(this.a.Kc())},E.Hc=function(i){return i!=null&&this.a.Hc(i)},E.Ic=function(i){return this.a.Ic(i)},E.dc=function(){return this.a.dc()},E.Od=function(){return Mk(this.a.Kc())},E.gc=function(){return this.a.gc()},E.Pc=function(){return this.a.Pc()},E.Qc=function(i){return this.a.Qc(i)},E.Ib=function(){return Kl(this.a)},K(_n,"ForwardingImmutableCollection",727),H(307,2078,_I),E.Kc=function(){return this.Od()},E.ed=function(){return this.Pd(0)},E.fd=function(i){return this.Pd(i)},E.jd=function(i){D_(this,i)},E.Nc=function(){return new Nn(this,16)},E.kd=function(i,l){return this.Qd(i,l)},E.bd=function(i,l){throw _e(new ri)},E.cd=function(i,l){throw _e(new ri)},E.Md=function(){return this},E.Fb=function(i){return f3r(this,i)},E.Hb=function(){return obr(this)},E.dd=function(i){return i==null?-1:I_r(this,i)},E.Od=function(){return this.Pd(0)},E.Pd=function(i){return Whe(this,i)},E.gd=function(i){throw _e(new ri)},E.hd=function(i,l){throw _e(new ri)},E.Qd=function(i,l){var d;return AZ((d=new hRt(this),new Qb(d,i,l)))};var hbe;K(_n,"ImmutableList",307),H(2105,307,_I),E.Kc=function(){return Mk(this.Rd().Kc())},E.kd=function(i,l){return AZ(this.Rd().kd(i,l))},E.Hc=function(i){return i!=null&&this.Rd().Hc(i)},E.Ic=function(i){return this.Rd().Ic(i)},E.Fb=function(i){return Yi(this.Rd(),i)},E.Xb=function(i){return Nv(this,i)},E.Hb=function(){return ma(this.Rd())},E.dd=function(i){return this.Rd().dd(i)},E.dc=function(){return this.Rd().dc()},E.Od=function(){return Mk(this.Rd().Kc())},E.gc=function(){return this.Rd().gc()},E.Qd=function(i,l){return AZ(this.Rd().kd(i,l))},E.Pc=function(){return this.Rd().Qc(st(zs,Yn,1,this.Rd().gc(),5,1))},E.Qc=function(i){return this.Rd().Qc(i)},E.Ib=function(){return Kl(this.Rd())},K(_n,"ForwardingImmutableList",2105),H(729,1,wI),E.vc=function(){return x_(this)},E.wc=function(i){kD(this,i)},E.ec=function(){return xde(this)},E.yc=function(i,l,d){return O0e(this,i,l,d)},E.Cc=function(){return this.Vd()},E.$b=function(){throw _e(new ri)},E._b=function(i){return this.xc(i)!=null},E.uc=function(i){return this.Vd().Hc(i)},E.Td=function(){return new jkt(this)},E.Ud=function(){return new Wkt(this)},E.Fb=function(i){return Jbr(this,i)},E.Hb=function(){return x_(this).Hb()},E.dc=function(){return this.gc()==0},E.zc=function(i,l){return Oir()},E.Bc=function(i){throw _e(new ri)},E.Ib=function(){return Uxr(this)},E.Vd=function(){return this.e?this.e:this.e=this.Ud()},E.c=null,E.d=null,E.e=null;var _en;K(_n,"ImmutableMap",729),H(730,729,wI),E._b=function(i){return x7t(this,i)},E.uc=function(i){return bRt(this.b,i)},E.Sd=function(){return bzt(new QTt(this))},E.Td=function(){return bzt(LLt(this.b))},E.Ud=function(){return jp(),new R7e(OLt(this.b))},E.Fb=function(i){return yRt(this.b,i)},E.xc=function(i){return eD(this,i)},E.Hb=function(){return ma(this.b.c)},E.dc=function(){return this.b.c.dc()},E.gc=function(){return this.b.c.gc()},E.Ib=function(){return Kl(this.b.c)},K(_n,"ForwardingImmutableMap",730),H(2072,2071,Cpe),E.Kd=function(){return this.Wd()},E.Ld=function(){return this.Wd()},E.Nc=function(){return new Nn(this,1)},E.Fb=function(i){return i===this||this.Wd().Fb(i)},E.Hb=function(){return this.Wd().Hb()},K(_n,"ForwardingSet",2072),H(1085,2072,Cpe,QTt),E.Kd=function(){return h8(this.a.b)},E.Ld=function(){return h8(this.a.b)},E.Hc=function(i){if($e(i,44)&&v(i,44).ld()==null)return!1;try{return mRt(h8(this.a.b),i)}catch(l){if(l=Da(l),$e(l,212))return!1;throw _e(l)}},E.Wd=function(){return h8(this.a.b)},E.Qc=function(i){var l;return l=bDt(h8(this.a.b),i),h8(this.a.b).b.gc()=0?"+":"")+(d/60|0),l=wX(u.Math.abs(d)%60),(sHt(),$en)[this.q.getDay()]+" "+Uen[this.q.getMonth()]+" "+wX(this.q.getDate())+" "+wX(this.q.getHours())+":"+wX(this.q.getMinutes())+":"+wX(this.q.getSeconds())+" GMT"+i+l+" "+this.q.getFullYear()};var Qee=K(Dr,"Date",206);H(2015,206,iXt,Rqt),E.a=!1,E.b=0,E.c=0,E.d=0,E.e=0,E.f=0,E.g=!1,E.i=0,E.j=0,E.k=0,E.n=0,E.o=0,E.p=0,K("com.google.gwt.i18n.shared.impl","DateRecord",2015),H(2064,1,{}),E.pe=function(){return null},E.qe=function(){return null},E.re=function(){return null},E.se=function(){return null},E.te=function(){return null},K(t6,"JSONValue",2064),H(221,2064,{221:1},p_,t7e),E.Fb=function(i){return $e(i,221)?JNe(this.a,v(i,221).a):!1},E.oe=function(){return rir},E.Hb=function(){return GNe(this.a)},E.pe=function(){return this},E.Ib=function(){var i,l,d;for(d=new Ed("["),l=0,i=this.a.length;l0&&(d.a+=","),Kc(d,s4(this,l));return d.a+="]",d.a},K(t6,"JSONArray",221),H(493,2064,{493:1},n7e),E.oe=function(){return iir},E.qe=function(){return this},E.Ib=function(){return Qn(),""+this.a},E.a=!1;var Aen,ken;K(t6,"JSONBoolean",493),H(997,63,nb,j6t),K(t6,"JSONException",997),H(1036,2064,{},B),E.oe=function(){return air},E.Ib=function(){return Ku};var Ren;K(t6,"JSONNull",1036),H(263,2064,{263:1},bK),E.Fb=function(i){return $e(i,263)?this.a==v(i,263).a:!1},E.oe=function(){return tir},E.Hb=function(){return dk(this.a)},E.re=function(){return this},E.Ib=function(){return this.a+""},E.a=0,K(t6,"JSONNumber",263),H(190,2064,{190:1},nk,iU),E.Fb=function(i){return $e(i,190)?JNe(this.a,v(i,190).a):!1},E.oe=function(){return nir},E.Hb=function(){return GNe(this.a)},E.se=function(){return this},E.Ib=function(){var i,l,d,g,y,x,T;for(T=new Ed("{"),i=!0,x=Xfe(this,st(Xt,kt,2,0,6,1)),d=x,g=0,y=d.length;g=0?":"+this.c:"")+")"},E.c=0;var hze=K(gc,"StackTraceElement",319);ven={3:1,484:1,34:1,2:1};var Xt=K(gc,oBe,2);H(111,427,{484:1},qb,EL,Ff),K(gc,"StringBuffer",111),H(104,427,{484:1},Cv,sk,Ed),K(gc,"StringBuilder",104),H(702,77,Kpe,aRe),K(gc,"StringIndexOutOfBoundsException",702),H(2145,1,{});var Len;H(48,63,{3:1,103:1,63:1,82:1,48:1},ri,zb),K(gc,"UnsupportedOperationException",48),H(247,242,{3:1,34:1,242:1,247:1},Wz,mRe),E.Fd=function(i){return Jjt(this,v(i,247))},E.ue=function(){return y4(AWt(this))},E.Fb=function(i){var l;return this===i?!0:$e(i,247)?(l=v(i,247),this.e==l.e&&Jjt(this,l)==0):!1},E.Hb=function(){var i;return this.b!=0?this.b:this.a<54?(i=xc(this.f),this.b=ti(Us(i,-1)),this.b=33*this.b+ti(Us(xE(i,32),-1)),this.b=17*this.b+Ps(this.e),this.b):(this.b=17*dzt(this.c)+Ps(this.e),this.b)},E.Ib=function(){return AWt(this)},E.a=0,E.b=0,E.d=0,E.e=0,E.f=0;var Den,iw,dze,fze,pze,gze,mze,bze,vbe=K("java.math","BigDecimal",247);H(92,242,{3:1,34:1,242:1,92:1},qm,iMt,T_,fGt,Ov),E.Fd=function(i){return cGt(this,v(i,92))},E.ue=function(){return y4(wpe(this,0))},E.Fb=function(i){return ILe(this,i)},E.Hb=function(){return dzt(this)},E.Ib=function(){return wpe(this,0)},E.b=-2,E.c=0,E.d=0,E.e=0;var Men,Zee,Pen,_be,Jee,KM,T5=K("java.math","BigInteger",92),Ben,Fen,f6,XM;H(498,2065,tx),E.$b=function(){xh(this)},E._b=function(i){return Tu(this,i)},E.uc=function(i){return jUt(this,i,this.i)||jUt(this,i,this.f)},E.vc=function(){return new b_(this)},E.xc=function(i){return br(this,i)},E.zc=function(i,l){return Ni(this,i,l)},E.Bc=function(i){return Lk(this,i)},E.gc=function(){return SL(this)},E.g=0,K(Dr,"AbstractHashMap",498),H(267,J1,fh,b_),E.$b=function(){this.a.$b()},E.Hc=function(i){return DMt(this,i)},E.Kc=function(){return new P_(this.a)},E.Mc=function(i){var l;return DMt(this,i)?(l=v(i,44).ld(),this.a.Bc(l),!0):!1},E.gc=function(){return this.a.gc()},K(Dr,"AbstractHashMap/EntrySet",267),H(268,1,io,P_),E.Nb=function(i){xo(this,i)},E.Pb=function(){return zE(this)},E.Ob=function(){return this.b},E.Qb=function(){cFt(this)},E.b=!1,E.d=0,K(Dr,"AbstractHashMap/EntrySetIterator",268),H(426,1,io,hL),E.Nb=function(i){xo(this,i)},E.Ob=function(){return ehe(this)},E.Pb=function(){return BNe(this)},E.Qb=function(){ld(this)},E.b=0,E.c=-1,K(Dr,"AbstractList/IteratorImpl",426),H(98,426,Yg,go),E.Qb=function(){ld(this)},E.Rb=function(i){KS(this,i)},E.Sb=function(){return this.b>0},E.Tb=function(){return this.b},E.Ub=function(){return Tr(this.b>0),this.a.Xb(this.c=--this.b)},E.Vb=function(){return this.b-1},E.Wb=function(i){jS(this.c!=-1),this.a.hd(this.c,i)},K(Dr,"AbstractList/ListIteratorImpl",98),H(244,56,EI,Qb),E.bd=function(i,l){n4(i,this.b),this.c.bd(this.a+i,l),++this.b},E.Xb=function(i){return $n(i,this.b),this.c.Xb(this.a+i)},E.gd=function(i){var l;return $n(i,this.b),l=this.c.gd(this.a+i),--this.b,l},E.hd=function(i,l){return $n(i,this.b),this.c.hd(this.a+i,l)},E.gc=function(){return this.b},E.a=0,E.b=0,K(Dr,"AbstractList/SubList",244),H(266,J1,fh,m_),E.$b=function(){this.a.$b()},E.Hc=function(i){return this.a._b(i)},E.Kc=function(){var i;return i=this.a.vc().Kc(),new vK(i)},E.Mc=function(i){return this.a._b(i)?(this.a.Bc(i),!0):!1},E.gc=function(){return this.a.gc()},K(Dr,"AbstractMap/1",266),H(541,1,io,vK),E.Nb=function(i){xo(this,i)},E.Ob=function(){return this.a.Ob()},E.Pb=function(){var i;return i=v(this.a.Pb(),44),i.ld()},E.Qb=function(){this.a.Qb()},K(Dr,"AbstractMap/1/1",541),H(231,31,A4,Dm),E.$b=function(){this.a.$b()},E.Hc=function(i){return this.a.uc(i)},E.Kc=function(){var i;return i=this.a.vc().Kc(),new FS(i)},E.gc=function(){return this.a.gc()},K(Dr,"AbstractMap/2",231),H(301,1,io,FS),E.Nb=function(i){xo(this,i)},E.Ob=function(){return this.a.Ob()},E.Pb=function(){var i;return i=v(this.a.Pb(),44),i.md()},E.Qb=function(){this.a.Qb()},K(Dr,"AbstractMap/2/1",301),H(494,1,{494:1,44:1}),E.Fb=function(i){var l;return $e(i,44)?(l=v(i,44),Ec(this.d,l.ld())&&Ec(this.e,l.md())):!1},E.ld=function(){return this.d},E.md=function(){return this.e},E.Hb=function(){return MT(this.d)^MT(this.e)},E.nd=function(i){return iIe(this,i)},E.Ib=function(){return this.d+"="+this.e},K(Dr,"AbstractMap/AbstractEntry",494),H(397,494,{494:1,397:1,44:1},QK),K(Dr,"AbstractMap/SimpleEntry",397),H(2082,1,Zpe),E.Fb=function(i){var l;return $e(i,44)?(l=v(i,44),Ec(this.ld(),l.ld())&&Ec(this.md(),l.md())):!1},E.Hb=function(){return MT(this.ld())^MT(this.md())},E.Ib=function(){return this.ld()+"="+this.md()},K(Dr,YKt,2082),H(2090,2065,iBe),E.Xc=function(i){return jue(this.Ee(i))},E.tc=function(i){return UPt(this,i)},E._b=function(i){return aIe(this,i)},E.vc=function(){return new wue(this)},E.Tc=function(){return eLt(this.Ge())},E.Yc=function(i){return jue(this.He(i))},E.xc=function(i){var l;return l=i,Pl(this.Fe(l))},E.$c=function(i){return jue(this.Ie(i))},E.ec=function(){return new x5t(this)},E.Vc=function(){return eLt(this.Je())},E._c=function(i){return jue(this.Ke(i))},K(Dr,"AbstractNavigableMap",2090),H(629,J1,fh,wue),E.Hc=function(i){return $e(i,44)&&UPt(this.b,v(i,44))},E.Kc=function(){return this.b.De()},E.Mc=function(i){var l;return $e(i,44)?(l=v(i,44),this.b.Le(l)):!1},E.gc=function(){return this.b.gc()},K(Dr,"AbstractNavigableMap/EntrySet",629),H(1146,J1,aBe,x5t),E.Nc=function(){return new KK(this)},E.$b=function(){this.a.$b()},E.Hc=function(i){return aIe(this.a,i)},E.Kc=function(){var i;return i=this.a.vc().b.De(),new S5t(i)},E.Mc=function(i){return aIe(this.a,i)?(this.a.Bc(i),!0):!1},E.gc=function(){return this.a.gc()},K(Dr,"AbstractNavigableMap/NavigableKeySet",1146),H(1147,1,io,S5t),E.Nb=function(i){xo(this,i)},E.Ob=function(){return ehe(this.a.a)},E.Pb=function(){var i;return i=xNt(this.a),i.ld()},E.Qb=function(){ROt(this.a)},K(Dr,"AbstractNavigableMap/NavigableKeySet/1",1147),H(2103,31,A4),E.Fc=function(i){return _k(iI(this,i),SI),!0},E.Gc=function(i){return hr(i),XU(i!=this,"Can't add a queue to itself"),bo(this,i)},E.$b=function(){for(;Bfe(this)!=null;);},K(Dr,"AbstractQueue",2103),H(310,31,{4:1,20:1,31:1,16:1},FT,RMt),E.Fc=function(i){return cOe(this,i),!0},E.$b=function(){gOe(this)},E.Hc=function(i){return gUt(new fD(this),i)},E.dc=function(){return wL(this)},E.Kc=function(){return new fD(this)},E.Mc=function(i){return Gfr(new fD(this),i)},E.gc=function(){return this.c-this.b&this.a.length-1},E.Nc=function(){return new Nn(this,272)},E.Qc=function(i){var l;return l=this.c-this.b&this.a.length-1,i.lengthl&&Ga(i,l,null),i},E.b=0,E.c=0,K(Dr,"ArrayDeque",310),H(459,1,io,fD),E.Nb=function(i){xo(this,i)},E.Ob=function(){return this.a!=this.b},E.Pb=function(){return CZ(this)},E.Qb=function(){h$t(this)},E.a=0,E.b=0,E.c=-1,K(Dr,"ArrayDeque/IteratorImpl",459),H(13,56,oXt,Ot,gu,Eh),E.bd=function(i,l){EE(this,i,l)},E.Fc=function(i){return Lt(this,i)},E.cd=function(i,l){return nLe(this,i,l)},E.Gc=function(i){return xs(this,i)},E.$b=function(){$S(this.c,0)},E.Hc=function(i){return $l(this,i,0)!=-1},E.Jc=function(i){Cu(this,i)},E.Xb=function(i){return Yt(this,i)},E.dd=function(i){return $l(this,i,0)},E.dc=function(){return this.c.length==0},E.Kc=function(){return new me(this)},E.gd=function(i){return Jb(this,i)},E.Mc=function(i){return Yu(this,i)},E.ce=function(i,l){ZDt(this,i,l)},E.hd=function(i,l){return of(this,i,l)},E.gc=function(){return this.c.length},E.jd=function(i){us(this,i)},E.Pc=function(){return qX(this.c)},E.Qc=function(i){return X1(this,i)};var N8r=K(Dr,"ArrayList",13);H(7,1,io,me),E.Nb=function(i){xo(this,i)},E.Ob=function(){return nc(this)},E.Pb=function(){return pe(this)},E.Qb=function(){lD(this)},E.a=0,E.b=-1,K(Dr,"ArrayList/1",7),H(2112,u.Function,{},W),E.Me=function(i,l){return ha(i,l)},H(151,56,lXt,wh),E.Hc=function(i){return d$t(this,i)!=-1},E.Jc=function(i){var l,d,g,y;for(hr(i),d=this.a,g=0,y=d.length;g0)throw _e(new ar(gBe+i+" greater than "+this.e));return this.f.Te()?wDt(this.c,this.b,this.a,i,l):JDt(this.c,i,l)},E.zc=function(i,l){if(!h1e(this.c,this.f,i,this.b,this.a,this.e,this.d))throw _e(new ar(i+" outside the range "+this.b+" to "+this.e));return OUt(this.c,i,l)},E.Bc=function(i){var l;return l=i,h1e(this.c,this.f,l,this.b,this.a,this.e,this.d)?EDt(this.c,l):null},E.Le=function(i){return cQ(this,i.ld())&&DOe(this.c,i)},E.gc=function(){var i,l,d;if(this.f.Te()?this.a?l=Q8(this.c,this.b,!0):l=Q8(this.c,this.b,!1):l=HOe(this.c),!(l&&cQ(this,l.d)&&l))return 0;for(i=0,d=new Qfe(this.c,this.f,this.b,this.a,this.e,this.d);ehe(d.a);d.b=v(BNe(d.a),44))++i;return i},E.ad=function(i,l){if(this.f.Te()&&this.c.a.Ne(i,this.b)<0)throw _e(new ar(gBe+i+hXt+this.b));return this.f.Ue()?wDt(this.c,i,l,this.e,this.d):eMt(this.c,i,l)},E.a=!1,E.d=!1,K(Dr,"TreeMap/SubMap",631),H(304,22,nge,XK),E.Te=function(){return!1},E.Ue=function(){return!1};var xbe,Sbe,Tbe,Cbe,tte=$r(Dr,"TreeMap/SubMapType",304,jr,g1r,Tlr);H(1143,304,nge,AIt),E.Ue=function(){return!0},$r(Dr,"TreeMap/SubMapType/1",1143,tte,null,null),H(1144,304,nge,PIt),E.Te=function(){return!0},E.Ue=function(){return!0},$r(Dr,"TreeMap/SubMapType/2",1144,tte,null,null),H(1145,304,nge,CIt),E.Te=function(){return!0},$r(Dr,"TreeMap/SubMapType/3",1145,tte,null,null);var Yen;H(157,J1,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},D7e,Vb,MR),E.Nc=function(){return new KK(this)},E.Fc=function(i){return JU(this,i)},E.$b=function(){this.a.$b()},E.Hc=function(i){return this.a._b(i)},E.Kc=function(){return this.a.ec().Kc()},E.Mc=function(i){return Vhe(this,i)},E.gc=function(){return this.a.gc()};var B8r=K(Dr,"TreeSet",157);H(1082,1,{},k5t),E.Ve=function(i,l){return Gor(this.a,i,l)},K(rge,"BinaryOperator/lambda$0$Type",1082),H(1083,1,{},R5t),E.Ve=function(i,l){return qor(this.a,i,l)},K(rge,"BinaryOperator/lambda$1$Type",1083),H(952,1,{},Ee),E.Kb=function(i){return i},K(rge,"Function/lambda$0$Type",952),H(395,1,si,PR),E.Mb=function(i){return!this.a.Mb(i)},K(rge,"Predicate/lambda$2$Type",395),H(581,1,{581:1});var jen=K(vM,"Handler",581);H(2107,1,OG),E.xe=function(){return"DUMMY"},E.Ib=function(){return this.xe()};var Sze;K(vM,"Level",2107),H(1706,2107,OG,he),E.xe=function(){return"INFO"},K(vM,"Level/LevelInfo",1706),H(1843,1,{},t6t);var Abe;K(vM,"LogManager",1843),H(1896,1,OG,kOt),E.b=null,K(vM,"LogRecord",1896),H(525,1,{525:1},mfe),E.e=!1;var Wen=!1,Ken=!1,rp=!1,Xen=!1,Qen=!1;K(vM,"Logger",525),H(835,581,{581:1},we),K(vM,"SimpleConsoleLogHandler",835),H(108,22,{3:1,34:1,22:1,108:1},rhe);var Tze,Ql,B4,Il=$r(Ts,"Collector/Characteristics",108,jr,n0r,Clr),Zen;H(758,1,{},mNe),K(Ts,"CollectorImpl",758),H(1074,1,{},Ce),E.Ve=function(i,l){return Pyr(v(i,213),v(l,213))},K(Ts,"Collectors/10methodref$merge$Type",1074),H(1075,1,{},Ie),E.Kb=function(i){return IMt(v(i,213))},K(Ts,"Collectors/11methodref$toString$Type",1075),H(1076,1,{},I5t),E.Kb=function(i){return Qn(),!!u8e(i)},K(Ts,"Collectors/12methodref$test$Type",1076),H(144,1,{},Le),E.Yd=function(i,l){v(i,16).Fc(l)},K(Ts,"Collectors/20methodref$add$Type",144),H(146,1,{},Fe),E.Xe=function(){return new Ot},K(Ts,"Collectors/21methodref$ctor$Type",146),H(359,1,{},Ve),E.Xe=function(){return new fs},K(Ts,"Collectors/23methodref$ctor$Type",359),H(360,1,{},Oe),E.Yd=function(i,l){Es(v(i,49),l)},K(Ts,"Collectors/24methodref$add$Type",360),H(1069,1,{},Dt),E.Ve=function(i,l){return wRt(v(i,15),v(l,16))},K(Ts,"Collectors/4methodref$addAll$Type",1069),H(1073,1,{},ot),E.Yd=function(i,l){Hm(v(i,213),v(l,484))},K(Ts,"Collectors/9methodref$add$Type",1073),H(1072,1,{},VOt),E.Xe=function(){return new B_(this.a,this.b,this.c)},K(Ts,"Collectors/lambda$15$Type",1072),H(1077,1,{},sn),E.Xe=function(){var i;return i=new Zb,cy(i,(Qn(),!1),new Ot),cy(i,!0,new Ot),i},K(Ts,"Collectors/lambda$22$Type",1077),H(1078,1,{},N5t),E.Xe=function(){return Te(xe(zs,1),Yn,1,5,[this.a])},K(Ts,"Collectors/lambda$25$Type",1078),H(1079,1,{},O5t),E.Yd=function(i,l){lhr(this.a,L_(i))},K(Ts,"Collectors/lambda$26$Type",1079),H(1080,1,{},L5t),E.Ve=function(i,l){return Phr(this.a,L_(i),L_(l))},K(Ts,"Collectors/lambda$27$Type",1080),H(1081,1,{},Kt),E.Kb=function(i){return L_(i)[0]},K(Ts,"Collectors/lambda$28$Type",1081),H(728,1,{},Ft),E.Ve=function(i,l){return XIe(i,l)},K(Ts,"Collectors/lambda$4$Type",728),H(145,1,{},Je),E.Ve=function(i,l){return gar(v(i,16),v(l,16))},K(Ts,"Collectors/lambda$42$Type",145),H(361,1,{},ht),E.Ve=function(i,l){return mar(v(i,49),v(l,49))},K(Ts,"Collectors/lambda$50$Type",361),H(362,1,{},et),E.Kb=function(i){return v(i,49)},K(Ts,"Collectors/lambda$51$Type",362),H(1068,1,{},D5t),E.Yd=function(i,l){Gbr(this.a,v(i,85),l)},K(Ts,"Collectors/lambda$7$Type",1068),H(1070,1,{},qe),E.Ve=function(i,l){return ybr(v(i,85),v(l,85),new Dt)},K(Ts,"Collectors/lambda$8$Type",1070),H(1071,1,{},M5t),E.Kb=function(i){return gvr(this.a,v(i,85))},K(Ts,"Collectors/lambda$9$Type",1071),H(550,1,{}),E.$e=function(){dD(this)},E.d=!1,K(Ts,"TerminatableStream",550),H(827,550,mBe,K8e),E.$e=function(){dD(this)},K(Ts,"DoubleStreamImpl",827),H(1847,736,Ld,YOt),E.Re=function(i){return y_r(this,v(i,189))},E.a=null,K(Ts,"DoubleStreamImpl/2",1847),H(1848,1,zG,P5t),E.Pe=function(i){usr(this.a,i)},K(Ts,"DoubleStreamImpl/2/lambda$0$Type",1848),H(1845,1,zG,B5t),E.Pe=function(i){csr(this.a,i)},K(Ts,"DoubleStreamImpl/lambda$0$Type",1845),H(1846,1,zG,F5t),E.Pe=function(i){Yzt(this.a,i)},K(Ts,"DoubleStreamImpl/lambda$2$Type",1846),H(1397,735,Ld,MPt),E.Re=function(i){return i1r(this,v(i,202))},E.a=0,E.b=0,E.c=0,K(Ts,"IntStream/5",1397),H(806,550,mBe,X8e),E.$e=function(){dD(this)},E._e=function(){return Pv(this),this.a},K(Ts,"IntStreamImpl",806),H(807,550,mBe,wRe),E.$e=function(){dD(this)},E._e=function(){return Pv(this),N8e(),Ven},K(Ts,"IntStreamImpl/Empty",807),H(1687,1,DG,$5t),E.Dd=function(i){nUt(this.a,i)},K(Ts,"IntStreamImpl/lambda$4$Type",1687);var F8r=$a(Ts,"Stream");H(26,550,{533:1,687:1,848:1},xn),E.$e=function(){dD(this)};var p6;K(Ts,"StreamImpl",26),H(1102,500,Ld,_Ot),E.Bd=function(i){for(;ogr(this);){if(this.a.Bd(i))return!0;dD(this.b),this.b=null,this.a=null}return!1},K(Ts,"StreamImpl/1",1102),H(1103,1,vr,U5t),E.Cd=function(i){Dur(this.a,v(i,848))},K(Ts,"StreamImpl/1/lambda$0$Type",1103),H(1104,1,si,z5t),E.Mb=function(i){return Es(this.a,i)},K(Ts,"StreamImpl/1methodref$add$Type",1104),H(1105,500,Ld,eDt),E.Bd=function(i){var l;return this.a||(l=new Ot,this.b.a.Nb(new G5t(l)),Fn(),us(l,this.c),this.a=new Nn(l,16)),BFt(this.a,i)},E.a=null,K(Ts,"StreamImpl/5",1105),H(1106,1,vr,G5t),E.Cd=function(i){Lt(this.a,i)},K(Ts,"StreamImpl/5/2methodref$add$Type",1106),H(737,500,Ld,VOe),E.Bd=function(i){for(this.b=!1;!this.b&&this.c.Bd(new FRt(this,i)););return this.b},E.b=!1,K(Ts,"StreamImpl/FilterSpliterator",737),H(1096,1,vr,FRt),E.Cd=function(i){Ihr(this.a,this.b,i)},K(Ts,"StreamImpl/FilterSpliterator/lambda$0$Type",1096),H(1091,736,Ld,YPt),E.Re=function(i){return ulr(this,v(i,189))},K(Ts,"StreamImpl/MapToDoubleSpliterator",1091),H(1095,1,vr,$Rt),E.Cd=function(i){Lar(this.a,this.b,i)},K(Ts,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1095),H(1090,735,Ld,jPt),E.Re=function(i){return hlr(this,v(i,202))},K(Ts,"StreamImpl/MapToIntSpliterator",1090),H(1094,1,vr,URt),E.Cd=function(i){Dar(this.a,this.b,i)},K(Ts,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1094),H(734,500,Ld,IOe),E.Bd=function(i){return bOt(this,i)},K(Ts,"StreamImpl/MapToObjSpliterator",734),H(1093,1,vr,zRt),E.Cd=function(i){Mar(this.a,this.b,i)},K(Ts,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1093),H(1092,500,Ld,E$t),E.Bd=function(i){for(;the(this.b,0);){if(!this.a.Bd(new He))return!1;this.b=zf(this.b,1)}return this.a.Bd(i)},E.b=0,K(Ts,"StreamImpl/SkipSpliterator",1092),H(1097,1,vr,He),E.Cd=function(i){},K(Ts,"StreamImpl/SkipSpliterator/lambda$0$Type",1097),H(626,1,vr,Ge),E.Cd=function(i){y5t(this,i)},K(Ts,"StreamImpl/ValueConsumer",626),H(1098,1,vr,Ye),E.Cd=function(i){w_()},K(Ts,"StreamImpl/lambda$0$Type",1098),H(1099,1,vr,Ae),E.Cd=function(i){w_()},K(Ts,"StreamImpl/lambda$1$Type",1099),H(1100,1,{},q5t),E.Ve=function(i,l){return qlr(this.a,i,l)},K(Ts,"StreamImpl/lambda$4$Type",1100),H(1101,1,vr,GRt),E.Cd=function(i){Kor(this.b,this.a,i)},K(Ts,"StreamImpl/lambda$5$Type",1101),H(1107,1,vr,H5t),E.Cd=function(i){sbr(this.a,v(i,380))},K(Ts,"TerminatableStream/lambda$0$Type",1107),H(2142,1,{}),H(2014,1,{},Xe),K("javaemul.internal","ConsoleLogger",2014);var $8r=0;H(2134,1,{}),H(1830,1,vr,fe),E.Cd=function(i){v(i,317)},K(TI,"BowyerWatsonTriangulation/lambda$0$Type",1830),H(1831,1,vr,V5t),E.Cd=function(i){bo(this.a,v(i,317).e)},K(TI,"BowyerWatsonTriangulation/lambda$1$Type",1831),H(1832,1,vr,Qe),E.Cd=function(i){v(i,177)},K(TI,"BowyerWatsonTriangulation/lambda$2$Type",1832),H(1827,1,ui,Y5t),E.Ne=function(i,l){return q1r(this.a,v(i,177),v(l,177))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(TI,"NaiveMinST/lambda$0$Type",1827),H(449,1,{},dL),K(TI,"NodeMicroLayout",449),H(177,1,{177:1},ck),E.Fb=function(i){var l;return $e(i,177)?(l=v(i,177),Ec(this.a,l.a)&&Ec(this.b,l.b)||Ec(this.a,l.b)&&Ec(this.b,l.a)):!1},E.Hb=function(){return MT(this.a)+MT(this.b)};var U8r=K(TI,"TEdge",177);H(317,1,{317:1},IPe),E.Fb=function(i){var l;return $e(i,317)?(l=v(i,317),YQ(this,l.a)&&YQ(this,l.b)&&YQ(this,l.c)):!1},E.Hb=function(){return MT(this.a)+MT(this.b)+MT(this.c)},K(TI,"TTriangle",317),H(225,1,{225:1},xX),K(TI,"Tree",225),H(1218,1,{},$Dt),K(pXt,"Scanline",1218);var Jen=$a(pXt,gXt);H(1758,1,{},DFt),K(Xg,"CGraph",1758),H(316,1,{316:1},GDt),E.b=0,E.c=0,E.d=0,E.g=0,E.i=0,E.k=Ss,K(Xg,"CGroup",316),H(830,1,{},B7e),K(Xg,"CGroup/CGroupBuilder",830),H(60,1,{60:1},eOt),E.Ib=function(){var i;return this.j?ai(this.j.Kb(this)):(Fm(nte),nte.o+"@"+(i=vE(this)>>>0,i.toString(16)))},E.f=0,E.i=Ss;var nte=K(Xg,"CNode",60);H(829,1,{},F7e),K(Xg,"CNode/CNodeBuilder",829);var etn;H(1590,1,{},Ke),E.ff=function(i,l){return 0},E.gf=function(i,l){return 0},K(Xg,bXt,1590),H(1853,1,{},mt),E.cf=function(i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de;for(D=ka,g=new me(i.a.b);g.ag.d.c||g.d.c==x.d.c&&g.d.b0?i+this.n.d+this.n.a:0},E.kf=function(){var i,l,d,g,y;if(y=0,this.e)this.b?y=this.b.a:this.a[1][1]&&(y=this.a[1][1].kf());else if(this.g)y=kLe(this,f1e(this,null,!0));else for(l=(u1(),Te(xe(F4,1),wt,237,0,[bc,vu,yc])),d=0,g=l.length;d0?y+this.n.b+this.n.c:0},E.lf=function(){var i,l,d,g,y;if(this.g)for(i=f1e(this,null,!1),d=(u1(),Te(xe(F4,1),wt,237,0,[bc,vu,yc])),g=0,y=d.length;g0&&(g[0]+=this.d,d-=g[0]),g[2]>0&&(g[2]+=this.d,d-=g[2]),this.c.a=u.Math.max(0,d),this.c.d=l.d+i.d+(this.c.a-d)/2,g[1]=u.Math.max(g[1],d),COe(this,vu,l.d+i.d+g[0]-(g[1]-d)/2,g)},E.b=null,E.d=0,E.e=!1,E.f=!1,E.g=!1;var Obe=0,rte=0;K(W_,"GridContainerCell",1538),H(471,22,{3:1,34:1,22:1,471:1},ahe);var s2,dg,R0,utn=$r(W_,"HorizontalLabelAlignment",471,jr,i0r,Nlr),htn;H(314,217,{217:1,314:1},TDt,PFt,yDt),E.jf=function(){return a9t(this)},E.kf=function(){return HIe(this)},E.a=0,E.c=!1;var z8r=K(W_,"LabelCell",314);H(252,336,{217:1,336:1,252:1},GD),E.jf=function(){return ZD(this)},E.kf=function(){return JD(this)},E.lf=function(){tpe(this)},E.mf=function(){npe(this)},E.b=0,E.c=0,E.d=!1,K(W_,"StripContainerCell",252),H(1691,1,si,Wn),E.Mb=function(i){return Rir(v(i,217))},K(W_,"StripContainerCell/lambda$0$Type",1691),H(1692,1,{},Dn),E.Ye=function(i){return v(i,217).kf()},K(W_,"StripContainerCell/lambda$1$Type",1692),H(1693,1,si,zn),E.Mb=function(i){return Iir(v(i,217))},K(W_,"StripContainerCell/lambda$2$Type",1693),H(1694,1,{},vn),E.Ye=function(i){return v(i,217).jf()},K(W_,"StripContainerCell/lambda$3$Type",1694),H(472,22,{3:1,34:1,22:1,472:1},she);var I0,o2,g1,dtn=$r(W_,"VerticalLabelAlignment",472,jr,r0r,Olr),ftn;H(800,1,{},jPe),E.c=0,E.d=0,E.k=0,E.s=0,E.t=0,E.v=!1,E.w=0,E.D=!1,E.F=!1,K(HJ,"NodeContext",800),H(1536,1,ui,Cn),E.Ne=function(i,l){return bIt(v(i,64),v(l,64))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(HJ,"NodeContext/0methodref$comparePortSides$Type",1536),H(1537,1,ui,Ar),E.Ne=function(i,l){return oxr(v(i,117),v(l,117))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(HJ,"NodeContext/1methodref$comparePortContexts$Type",1537),H(164,22,{3:1,34:1,22:1,164:1},uf);var ptn,gtn,mtn,btn,ytn,vtn,_tn,wtn,Etn,xtn,Stn,Ttn,Ctn,Atn,ktn,Rtn,Itn,Ntn,Otn,Ltn,Dtn,Lbe,Mtn=$r(HJ,"NodeLabelLocation",164,jr,H0e,Llr),Ptn;H(117,1,{117:1},SVt),E.a=!1,K(HJ,"PortContext",117),H(1541,1,vr,ur),E.Cd=function(i){P7t(v(i,314))},K(qG,IXt,1541),H(1542,1,si,On),E.Mb=function(i){return!!v(i,117).c},K(qG,NXt,1542),H(1543,1,vr,Ir),E.Cd=function(i){P7t(v(i,117).c)},K(qG,"LabelPlacer/lambda$2$Type",1543);var jze;H(1540,1,vr,Ln),E.Cd=function(i){WS(),lir(v(i,117))},K(qG,"NodeLabelAndSizeUtilities/lambda$0$Type",1540),H(801,1,vr,xIe),E.Cd=function(i){xar(this.b,this.c,this.a,v(i,187))},E.a=!1,E.c=!1,K(qG,"NodeLabelCellCreator/lambda$0$Type",801),H(1539,1,vr,K5t),E.Cd=function(i){hir(this.a,v(i,187))},K(qG,"PortContextCreator/lambda$0$Type",1539);var ite;H(1902,1,{},pr),K(AI,"GreedyRectangleStripOverlapRemover",1902),H(1903,1,ui,Cr),E.Ne=function(i,l){return tor(v(i,226),v(l,226))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(AI,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1903),H(1849,1,{},a6t),E.a=5,E.e=0,K(AI,"RectangleStripOverlapRemover",1849),H(1850,1,ui,Zr),E.Ne=function(i,l){return nor(v(i,226),v(l,226))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(AI,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1850),H(1852,1,ui,Pr),E.Ne=function(i,l){return Yhr(v(i,226),v(l,226))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(AI,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1852),H(417,22,{3:1,34:1,22:1,417:1},ZK);var gq,Dbe,Mbe,mq,Btn=$r(AI,"RectangleStripOverlapRemover/OverlapRemovalDirection",417,jr,y1r,Dlr),Ftn;H(226,1,{226:1},wde),K(AI,"RectangleStripOverlapRemover/RectangleNode",226),H(1851,1,vr,X5t),E.Cd=function(i){L_r(this.a,v(i,226))},K(AI,"RectangleStripOverlapRemover/lambda$1$Type",1851),H(1323,1,ui,Ci),E.Ne=function(i,l){return Zkr(v(i,176),v(l,176))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ag,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1323),H(1326,1,{},ds),E.Kb=function(i){return v(i,334).a},K(ag,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1326),H(1327,1,si,ta),E.Mb=function(i){return v(i,332).a},K(ag,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1327),H(1328,1,si,Os),E.Mb=function(i){return v(i,332).a},K(ag,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1328),H(1321,1,ui,uo),E.Ne=function(i,l){return RCr(v(i,176),v(l,176))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ag,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1321),H(1324,1,{},Ls),E.Kb=function(i){return v(i,334).a},K(ag,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1324),H(781,1,ui,La),E.Ne=function(i,l){return hbr(v(i,176),v(l,176))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ag,"PolyominoCompactor/MinNumOfExtensionsComparator",781),H(1319,1,ui,to),E.Ne=function(i,l){return vmr(v(i,330),v(l,330))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ag,"PolyominoCompactor/MinPerimeterComparator",1319),H(1320,1,ui,Fi),E.Ne=function(i,l){return r_r(v(i,330),v(l,330))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ag,"PolyominoCompactor/MinPerimeterComparatorWithShape",1320),H(1322,1,ui,Pt),E.Ne=function(i,l){return KCr(v(i,176),v(l,176))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ag,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1322),H(1325,1,{},St),E.Kb=function(i){return v(i,334).a},K(ag,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1325),H(782,1,{},DRe),E.Ve=function(i,l){return u1r(this,v(i,42),v(l,176))},K(ag,"SuccessorCombination",782),H(649,1,{},Un),E.Ve=function(i,l){var d;return C4r((d=v(i,42),v(l,176),d))},K(ag,"SuccessorJitter",649),H(648,1,{},Hr),E.Ve=function(i,l){var d;return d5r((d=v(i,42),v(l,176),d))},K(ag,"SuccessorLineByLine",648),H(573,1,{},za),E.Ve=function(i,l){var d;return C3r((d=v(i,42),v(l,176),d))},K(ag,"SuccessorManhattan",573),H(1344,1,{},Rs),E.Ve=function(i,l){var d;return PTr((d=v(i,42),v(l,176),d))},K(ag,"SuccessorMaxNormWindingInMathPosSense",1344),H(409,1,{},BR),E.Ve=function(i,l){return pNe(this,i,l)},E.c=!1,E.d=!1,E.e=!1,E.f=!1,K(ag,"SuccessorQuadrantsGeneric",409),H(1345,1,{},Vr),E.Kb=function(i){return v(i,334).a},K(ag,"SuccessorQuadrantsGeneric/lambda$0$Type",1345),H(332,22,{3:1,34:1,22:1,332:1},JK),E.a=!1;var bq,yq,vq,_q,$tn=$r(YJ,ABe,332,jr,m1r,Mlr),Utn;H(1317,1,{}),E.Ib=function(){var i,l,d,g,y,x;for(d=" ",i=Nt(0),y=0;y=0?"b"+i+"["+gfe(this.a)+"]":"b["+gfe(this.a)+"]"):"b_"+vE(this)},K(VG,"FBendpoint",250),H(290,137,{3:1,290:1,96:1,137:1},tOt),E.Ib=function(){return gfe(this)},K(VG,"FEdge",290),H(235,137,{3:1,235:1,96:1,137:1},PQ);var q8r=K(VG,"FGraph",235);H(454,309,{3:1,454:1,309:1,96:1,137:1},rPt),E.Ib=function(){return this.b==null||this.b.length==0?"l["+gfe(this.a)+"]":"l_"+this.b},K(VG,"FLabel",454),H(153,309,{3:1,153:1,309:1,96:1,137:1},MIt),E.Ib=function(){return tOe(this)},E.a=0,K(VG,"FNode",153),H(2100,1,{}),E.vf=function(i){TPe(this,i)},E.wf=function(){iqt(this)},E.d=0,K(PBe,"AbstractForceModel",2100),H(641,2100,{641:1},tUt),E.uf=function(i,l){var d,g,y,x,T;return NWt(this.f,i,l),y=$s(Eo(l.d),i.d),T=u.Math.sqrt(y.a*y.a+y.b*y.b),g=u.Math.max(0,T-hD(i.e)/2-hD(l.e)/2),d=fVt(this.e,i,l),d>0?x=-qhr(g,this.c)*d:x=yor(g,this.b)*v(oe(i,(A0(),g6)),17).a,Vp(y,x/T),y},E.vf=function(i){TPe(this,i),this.a=v(oe(i,(A0(),ute)),17).a,this.c=We(at(oe(i,hte))),this.b=We(at(oe(i,Gbe)))},E.xf=function(i){return i0&&(x-=Tir(g,this.a)*d),Vp(y,x*this.b/T),y},E.vf=function(i){var l,d,g,y,x,T,R;for(TPe(this,i),this.b=We(at(oe(i,(A0(),qbe)))),this.c=this.b/v(oe(i,ute),17).a,g=i.e.c.length,x=0,y=0,R=new me(i.e);R.a0},E.a=0,E.b=0,E.c=0,K(PBe,"FruchtermanReingoldModel",642),H(860,1,Hf,X3t),E.hf=function(i){pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,KJ),""),"Force Model"),"Determines the model for force calculation."),nGe),(dy(),Ra)),rGe),bn((d1(),Hn))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,BBe),""),"Iterations"),"The number of iterations on the force model."),Nt(300)),Zl),Ao),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,FBe),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Nt(0)),Zl),Ao),bn(mg)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,wge),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),sg),Fo),ws),bn(Hn)))),bs(i,wge,KJ,snn),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Ege),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),Fo),ws),bn(Hn)))),bs(i,Ege,KJ,rnn),vKt((new Q3t,i))};var enn,tnn,nGe,nnn,rnn,inn,ann,snn;K(EM,"ForceMetaDataProvider",860),H(432,22,{3:1,34:1,22:1,432:1},PRe);var zbe,cte,rGe=$r(EM,"ForceModelStrategy",432,jr,ufr,Flr),onn;H(py,1,Hf,Q3t),E.hf=function(i){vKt(i)};var lnn,cnn,iGe,ute,aGe,unn,hnn,dnn,fnn,sGe,pnn,oGe,lGe,gnn,g6,mnn,Gbe,cGe,bnn,ynn,hte,qbe,vnn,_nn,wnn,uGe,Enn;K(EM,"ForceOptions",py),H(1001,1,{},e1),E.sf=function(){var i;return i=new P7e,i},E.tf=function(i){},K(EM,"ForceOptions/ForceFactory",1001);var xq,JM,m6,dte;H(861,1,Hf,Z3t),E.hf=function(i){pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,UBe),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(Qn(),!1)),(dy(),Gs)),rs),bn((d1(),Fs))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,zBe),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),Fo),ws),va(Hn,Te(xe(rm,1),wt,170,0,[mg]))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,GBe),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),hGe),Ra),yGe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,qBe),""),"Stress Epsilon"),"Termination criterion for the iterative process."),sg),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,HBe),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Nt(qi)),Zl),Ao),bn(Hn)))),jWt((new J3t,i))};var xnn,Snn,hGe,Tnn,Cnn,Ann;K(EM,"StressMetaDataProvider",861),H(1004,1,Hf,J3t),E.hf=function(i){jWt(i)};var fte,dGe,fGe,pGe,gGe,mGe,knn,Rnn,Inn,Nnn,bGe,Onn;K(EM,"StressOptions",1004),H(1005,1,{},Fh),E.sf=function(){var i;return i=new nOt,i},E.tf=function(i){},K(EM,"StressOptions/StressFactory",1005),H(1110,205,K_,nOt),E.rf=function(i,l){var d,g,y,x,T;for(l.Ug(HXt,1),Vt(Ht(Et(i,(iG(),gGe))))?Vt(Ht(Et(i,bGe)))||oz((d=new dL((fE(),new aE(i))),d)):uYt(new P7e,i,l.eh(1)),y=TUt(i),g=nWt(this.a,y),T=g.Kc();T.Ob();)x=v(T.Pb(),235),!(x.e.c.length<=1)&&(Kkr(this.b,x),w3r(this.b),Cu(x.d,new Fb));y=mKt(g),CKt(y),l.Vg()},K(ZJ,"StressLayoutProvider",1110),H(1111,1,vr,Fb),E.Cd=function(i){LPe(v(i,454))},K(ZJ,"StressLayoutProvider/lambda$0$Type",1111),H(1002,1,{},e6t),E.c=0,E.e=0,E.g=0,K(ZJ,"StressMajorization",1002),H(391,22,{3:1,34:1,22:1,391:1},ohe);var Hbe,Vbe,Ybe,yGe=$r(ZJ,"StressMajorization/Dimension",391,jr,s0r,$lr),Lnn;H(1003,1,ui,eCt),E.Ne=function(i,l){return flr(this.a,v(i,153),v(l,153))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ZJ,"StressMajorization/lambda$0$Type",1003),H(1192,1,{},lMt),K(c6,"ElkLayered",1192),H(1193,1,vr,tCt),E.Cd=function(i){XSr(this.a,v(i,36))},K(c6,"ElkLayered/lambda$0$Type",1193),H(1194,1,vr,nCt),E.Cd=function(i){plr(this.a,v(i,36))},K(c6,"ElkLayered/lambda$1$Type",1194),H(1281,1,{},VIt);var Dnn,Mnn,Pnn;K(c6,"GraphConfigurator",1281),H(770,1,vr,_7e),E.Cd=function(i){bHt(this.a,v(i,10))},K(c6,"GraphConfigurator/lambda$0$Type",770),H(771,1,{},rd),E.Kb=function(i){return EDe(),new xn(null,new Nn(v(i,30).a,16))},K(c6,"GraphConfigurator/lambda$1$Type",771),H(772,1,vr,w7e),E.Cd=function(i){bHt(this.a,v(i,10))},K(c6,"GraphConfigurator/lambda$2$Type",772),H(1109,205,K_,s6t),E.rf=function(i,l){var d;d=Ikr(new l6t,i),Ze(Et(i,(qt(),W4)))===Ze((Km(),Cy))?lvr(this.a,d,l):b3r(this.a,d,l),l.$g()||cKt(new eTt,d)},K(c6,"LayeredLayoutProvider",1109),H(367,22,{3:1,34:1,22:1,367:1},wU);var N0,em,qc,ru,Gl,vGe=$r(c6,"LayeredPhases",367,jr,upr,Ulr),Bnn;H(1717,1,{},v$t),E.i=0;var Fnn;K(QG,"ComponentsToCGraphTransformer",1717);var $nn;H(1718,1,{},uL),E.yf=function(i,l){return u.Math.min(i.a!=null?We(i.a):i.c.i,l.a!=null?We(l.a):l.c.i)},E.zf=function(i,l){return u.Math.min(i.a!=null?We(i.a):i.c.i,l.a!=null?We(l.a):l.c.i)},K(QG,"ComponentsToCGraphTransformer/1",1718),H(86,1,{86:1}),E.i=0,E.k=!0,E.o=Ss;var jbe=K(CM,"CNode",86);H(470,86,{470:1,86:1},U8e,XLe),E.Ib=function(){return""},K(QG,"ComponentsToCGraphTransformer/CRectNode",470),H(1688,1,{},wT);var Wbe,Kbe;K(QG,"OneDimensionalComponentsCompaction",1688),H(1689,1,{},d_),E.Kb=function(i){return Qfr(v(i,42))},E.Fb=function(i){return this===i},K(QG,"OneDimensionalComponentsCompaction/lambda$0$Type",1689),H(1690,1,{},tE),E.Kb=function(i){return uvr(v(i,42))},E.Fb=function(i){return this===i},K(QG,"OneDimensionalComponentsCompaction/lambda$1$Type",1690),H(1720,1,{},gLt),K(CM,"CGraph",1720),H(194,1,{194:1},z0e),E.b=0,E.c=0,E.e=0,E.g=!0,E.i=Ss,K(CM,"CGroup",194),H(1719,1,{},qu),E.yf=function(i,l){return u.Math.max(i.a!=null?We(i.a):i.c.i,l.a!=null?We(l.a):l.c.i)},E.zf=function(i,l){return u.Math.max(i.a!=null?We(i.a):i.c.i,l.a!=null?We(l.a):l.c.i)},K(CM,bXt,1719),H(1721,1,{},gVt),E.d=!1;var Unn,Xbe=K(CM,_Xt,1721);H(1722,1,{},$b),E.Kb=function(i){return xRe(),Qn(),v(v(i,42).a,86).d.e!=0},E.Fb=function(i){return this===i},K(CM,wXt,1722),H(833,1,{},QIe),E.a=!1,E.b=!1,E.c=!1,E.d=!1,K(CM,EXt,833),H(1898,1,{},N9t),K(JJ,xXt,1898);var Sq=$a(Q_,gXt);H(1899,1,{382:1},hDt),E.bf=function(i){T5r(this,v(i,476))},K(JJ,SXt,1899),H(Jv,1,ui,Mf),E.Ne=function(i,l){return Ddr(v(i,86),v(l,86))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(JJ,TXt,Jv),H(476,1,{476:1},FRe),E.a=!1,K(JJ,CXt,476),H(1901,1,ui,nE),E.Ne=function(i,l){return Mwr(v(i,476),v(l,476))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(JJ,AXt,1901),H(148,1,{148:1},XR,DIe),E.Fb=function(i){var l;return i==null||H8r!=cd(i)?!1:(l=v(i,148),Ec(this.c,l.c)&&Ec(this.d,l.d))},E.Hb=function(){return Hz(Te(xe(zs,1),Yn,1,5,[this.c,this.d]))},E.Ib=function(){return"("+this.c+Xo+this.d+(this.a?"cx":"")+this.b+")"},E.a=!0,E.c=0,E.d=0;var H8r=K(Q_,"Point",148);H(416,22,{3:1,34:1,22:1,416:1},tX);var dx,$4,A5,U4,znn=$r(Q_,"Point/Quadrant",416,jr,v1r,zlr),Gnn;H(1708,1,{},i6t),E.b=null,E.c=null,E.d=null,E.e=null,E.f=null;var qnn,Hnn,Vnn,Ynn,jnn;K(Q_,"RectilinearConvexHull",1708),H(583,1,{382:1},VZ),E.bf=function(i){cgr(this,v(i,148))},E.b=0;var _Ge;K(Q_,"RectilinearConvexHull/MaximalElementsEventHandler",583),H(1710,1,ui,Pf),E.Ne=function(i,l){return Mdr(at(i),at(l))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Q_,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1710),H(1709,1,{382:1},MFt),E.bf=function(i){UTr(this,v(i,148))},E.a=0,E.b=null,E.c=null,E.d=null,E.e=null,K(Q_,"RectilinearConvexHull/RectangleEventHandler",1709),H(1711,1,ui,ET),E.Ne=function(i,l){return q0r(v(i,148),v(l,148))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Q_,"RectilinearConvexHull/lambda$0$Type",1711),H(1712,1,ui,KA),E.Ne=function(i,l){return H0r(v(i,148),v(l,148))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Q_,"RectilinearConvexHull/lambda$1$Type",1712),H(1713,1,ui,f0),E.Ne=function(i,l){return G0r(v(i,148),v(l,148))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Q_,"RectilinearConvexHull/lambda$2$Type",1713),H(1714,1,ui,WA),E.Ne=function(i,l){return V0r(v(i,148),v(l,148))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Q_,"RectilinearConvexHull/lambda$3$Type",1714),H(1715,1,ui,rU),E.Ne=function(i,l){return Exr(v(i,148),v(l,148))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Q_,"RectilinearConvexHull/lambda$4$Type",1715),H(1716,1,{},UDt),K(Q_,"Scanline",1716),H(2104,1,{}),K(tp,"AbstractGraphPlacer",2104),H(335,1,{335:1},ANt),E.Ff=function(i){return this.Gf(i)?(Rn(this.b,v(oe(i,(At(),ob)),21),i),!0):!1},E.Gf=function(i){var l,d,g,y;for(l=v(oe(i,(At(),ob)),21),y=v(Zi(da,l),21),g=y.Kc();g.Ob();)if(d=v(g.Pb(),21),!v(Zi(this.b,d),15).dc())return!1;return!0};var da;K(tp,"ComponentGroup",335),H(779,2104,{},$7e),E.Hf=function(i){var l,d;for(d=new me(this.a);d.ad&&(q=0,J+=R+g,R=0),O=x.c,hI(x,q+O.a,J+O.b),i1(O),y=u.Math.max(y,q+D.a),R=u.Math.max(R,D.b),q+=D.a+g;l.f.a=y,l.f.b=J+R},E.Jf=function(i,l){var d,g,y,x,T;if(Ze(oe(l,(qt(),j4)))===Ze((z_(),z4))){for(g=i.Kc();g.Ob();){for(d=v(g.Pb(),36),T=0,x=new me(d.a);x.ad&&!v(oe(x,(At(),ob)),21).Hc((Bt(),or))||O&&v(oe(O,(At(),ob)),21).Hc((Bt(),gr))||v(oe(x,(At(),ob)),21).Hc((Bt(),cr)))&&(re=J,ae+=R+g,R=0),D=x.c,v(oe(x,(At(),ob)),21).Hc((Bt(),or))&&(re=y+g),hI(x,re+D.a,ae+D.b),y=u.Math.max(y,re+q.a),v(oe(x,ob),21).Hc(Mr)&&(J=u.Math.max(J,re+q.a+g)),i1(D),R=u.Math.max(R,q.b),re+=q.a+g,O=x;l.f.a=y,l.f.b=ae+R},E.Jf=function(i,l){},K(tp,"ModelOrderRowGraphPlacer",1313),H(1311,1,ui,uK),E.Ne=function(i,l){return lbr(v(i,36),v(l,36))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(tp,"SimpleRowGraphPlacer/1",1311);var Knn;H(1280,1,ig,I6e),E.Lb=function(i){var l;return l=v(oe(v(i,249).b,(qt(),Nl)),75),!!l&&l.b!=0},E.Fb=function(i){return this===i},E.Mb=function(i){var l;return l=v(oe(v(i,249).b,(qt(),Nl)),75),!!l&&l.b!=0},K(eee,"CompoundGraphPostprocessor/1",1280),H(1279,1,ba,c6t),E.Kf=function(i,l){FGt(this,v(i,36),l)},K(eee,"CompoundGraphPreprocessor",1279),H(453,1,{453:1},kzt),E.c=!1,K(eee,"CompoundGraphPreprocessor/ExternalPort",453),H(249,1,{249:1},PX),E.Ib=function(){return Xhe(this.c)+":"+cVt(this.b)},K(eee,"CrossHierarchyEdge",249),H(777,1,ui,E7e),E.Ne=function(i,l){return cwr(this,v(i,249),v(l,249))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(eee,"CrossHierarchyEdgeComparator",777),H(305,137,{3:1,305:1,96:1,137:1}),E.p=0,K(tu,"LGraphElement",305),H(18,305,{3:1,18:1,305:1,96:1,137:1},NE),E.Ib=function(){return cVt(this)};var Jbe=K(tu,"LEdge",18);H(36,305,{3:1,20:1,36:1,305:1,96:1,137:1},d9e),E.Jc=function(i){To(this,i)},E.Kc=function(){return new me(this.b)},E.Ib=function(){return this.b.c.length==0?"G-unlayered"+Wv(this.a):this.a.c.length==0?"G-layered"+Wv(this.b):"G[layerless"+Wv(this.a)+", layers"+Wv(this.b)+"]"};var Xnn=K(tu,"LGraph",36),Qnn;H(666,1,{}),E.Lf=function(){return this.e.n},E.of=function(i){return oe(this.e,i)},E.Mf=function(){return this.e.o},E.Nf=function(){return this.e.p},E.pf=function(i){return ya(this.e,i)},E.Of=function(i){this.e.n.a=i.a,this.e.n.b=i.b},E.Pf=function(i){this.e.o.a=i.a,this.e.o.b=i.b},E.Qf=function(i){this.e.p=i},K(tu,"LGraphAdapters/AbstractLShapeAdapter",666),H(474,1,{853:1},fL),E.Rf=function(){var i,l;if(!this.b)for(this.b=Pg(this.a.b.c.length),l=new me(this.a.b);l.a0&&azt((sr(l-1,i.length),i.charCodeAt(l-1)),XXt);)--l;if(x> ",i),tJ(d)),bi(Kc((i.a+="[",i),d.i),"]")),i.a},E.c=!0,E.d=!1;var TGe,CGe,AGe,kGe,RGe,IGe,Jnn=K(tu,"LPort",12);H(408,1,jg,FR),E.Jc=function(i){To(this,i)},E.Kc=function(){var i;return i=new me(this.a.e),new rCt(i)},K(tu,"LPort/1",408),H(1309,1,io,rCt),E.Nb=function(i){xo(this,i)},E.Pb=function(){return v(pe(this.a),18).c},E.Ob=function(){return nc(this.a)},E.Qb=function(){lD(this.a)},K(tu,"LPort/1/1",1309),H(369,1,jg,QA),E.Jc=function(i){To(this,i)},E.Kc=function(){var i;return i=new me(this.a.g),new x7e(i)},K(tu,"LPort/2",369),H(776,1,io,x7e),E.Nb=function(i){xo(this,i)},E.Pb=function(){return v(pe(this.a),18).d},E.Ob=function(){return nc(this.a)},E.Qb=function(){lD(this.a)},K(tu,"LPort/2/1",776),H(1302,1,jg,YRt),E.Jc=function(i){To(this,i)},E.Kc=function(){return new V1(this)},K(tu,"LPort/CombineIter",1302),H(208,1,io,V1),E.Nb=function(i){xo(this,i)},E.Qb=function(){S7t()},E.Ob=function(){return QL(this)},E.Pb=function(){return nc(this.a)?pe(this.a):pe(this.b)},K(tu,"LPort/CombineIter/1",208),H(1303,1,ig,Nyt),E.Lb=function(i){return V9t(i)},E.Fb=function(i){return this===i},E.Mb=function(i){return hh(),v(i,12).g.c.length!=0},K(tu,"LPort/lambda$0$Type",1303),H(1304,1,ig,Oyt),E.Lb=function(i){return Y9t(i)},E.Fb=function(i){return this===i},E.Mb=function(i){return hh(),v(i,12).e.c.length!=0},K(tu,"LPort/lambda$1$Type",1304),H(1305,1,ig,Lyt),E.Lb=function(i){return hh(),v(i,12).j==(Bt(),or)},E.Fb=function(i){return this===i},E.Mb=function(i){return hh(),v(i,12).j==(Bt(),or)},K(tu,"LPort/lambda$2$Type",1305),H(1306,1,ig,Dyt),E.Lb=function(i){return hh(),v(i,12).j==(Bt(),gr)},E.Fb=function(i){return this===i},E.Mb=function(i){return hh(),v(i,12).j==(Bt(),gr)},K(tu,"LPort/lambda$3$Type",1306),H(1307,1,ig,Myt),E.Lb=function(i){return hh(),v(i,12).j==(Bt(),Mr)},E.Fb=function(i){return this===i},E.Mb=function(i){return hh(),v(i,12).j==(Bt(),Mr)},K(tu,"LPort/lambda$4$Type",1307),H(1308,1,ig,Pyt),E.Lb=function(i){return hh(),v(i,12).j==(Bt(),cr)},E.Fb=function(i){return this===i},E.Mb=function(i){return hh(),v(i,12).j==(Bt(),cr)},K(tu,"LPort/lambda$5$Type",1308),H(30,305,{3:1,20:1,305:1,30:1,96:1,137:1},Xc),E.Jc=function(i){To(this,i)},E.Kc=function(){return new me(this.a)},E.Ib=function(){return"L_"+$l(this.b.b,this,0)+Wv(this.a)},K(tu,"Layer",30),H(1330,1,{},l6t),K(my,eQt,1330),H(1334,1,{},Byt),E.Kb=function(i){return zl(v(i,84))},K(my,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1334),H(1337,1,{},Fyt),E.Kb=function(i){return zl(v(i,84))},K(my,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1337),H(1331,1,vr,iCt),E.Cd=function(i){CVt(this.a,v(i,123))},K(my,MBe,1331),H(1332,1,vr,aCt),E.Cd=function(i){CVt(this.a,v(i,123))},K(my,tQt,1332),H(1333,1,{},$yt),E.Kb=function(i){return new xn(null,new Nn(LNe(v(i,74)),16))},K(my,nQt,1333),H(1335,1,si,sCt),E.Mb=function(i){return hsr(this.a,v(i,27))},K(my,rQt,1335),H(1336,1,{},Uyt),E.Kb=function(i){return new xn(null,new Nn(Rdr(v(i,74)),16))},K(my,"ElkGraphImporter/lambda$5$Type",1336),H(1338,1,si,oCt),E.Mb=function(i){return dsr(this.a,v(i,27))},K(my,"ElkGraphImporter/lambda$7$Type",1338),H(1339,1,si,zyt),E.Mb=function(i){return qdr(v(i,74))},K(my,"ElkGraphImporter/lambda$8$Type",1339),H(1297,1,{},eTt);var ern;K(my,"ElkGraphLayoutTransferrer",1297),H(1298,1,si,lCt),E.Mb=function(i){return tlr(this.a,v(i,18))},K(my,"ElkGraphLayoutTransferrer/lambda$0$Type",1298),H(1299,1,vr,cCt),E.Cd=function(i){vU(),Lt(this.a,v(i,18))},K(my,"ElkGraphLayoutTransferrer/lambda$1$Type",1299),H(1300,1,si,uCt),E.Mb=function(i){return Uor(this.a,v(i,18))},K(my,"ElkGraphLayoutTransferrer/lambda$2$Type",1300),H(1301,1,vr,hCt),E.Cd=function(i){vU(),Lt(this.a,v(i,18))},K(my,"ElkGraphLayoutTransferrer/lambda$3$Type",1301),H(819,1,{},cIe),K(dr,"BiLinkedHashMultiMap",819),H(1550,1,ba,Gyt),E.Kf=function(i,l){kmr(v(i,36),l)},K(dr,"CommentNodeMarginCalculator",1550),H(1551,1,{},qyt),E.Kb=function(i){return new xn(null,new Nn(v(i,30).a,16))},K(dr,"CommentNodeMarginCalculator/lambda$0$Type",1551),H(1552,1,vr,Hyt),E.Cd=function(i){kkr(v(i,10))},K(dr,"CommentNodeMarginCalculator/lambda$1$Type",1552),H(1553,1,ba,Vyt),E.Kf=function(i,l){O5r(v(i,36),l)},K(dr,"CommentPostprocessor",1553),H(1554,1,ba,Yyt),E.Kf=function(i,l){eRr(v(i,36),l)},K(dr,"CommentPreprocessor",1554),H(1555,1,ba,jyt),E.Kf=function(i,l){KTr(v(i,36),l)},K(dr,"ConstraintsPostprocessor",1555),H(1556,1,ba,Wyt),E.Kf=function(i,l){nbr(v(i,36),l)},K(dr,"EdgeAndLayerConstraintEdgeReverser",1556),H(1557,1,ba,Kyt),E.Kf=function(i,l){Yvr(v(i,36),l)},K(dr,"EndLabelPostprocessor",1557),H(1558,1,{},Xyt),E.Kb=function(i){return new xn(null,new Nn(v(i,30).a,16))},K(dr,"EndLabelPostprocessor/lambda$0$Type",1558),H(1559,1,si,Qyt),E.Mb=function(i){return opr(v(i,10))},K(dr,"EndLabelPostprocessor/lambda$1$Type",1559),H(1560,1,vr,Zyt),E.Cd=function(i){Pwr(v(i,10))},K(dr,"EndLabelPostprocessor/lambda$2$Type",1560),H(1561,1,ba,Jyt),E.Kf=function(i,l){SSr(v(i,36),l)},K(dr,"EndLabelPreprocessor",1561),H(1562,1,{},evt),E.Kb=function(i){return new xn(null,new Nn(v(i,30).a,16))},K(dr,"EndLabelPreprocessor/lambda$0$Type",1562),H(1563,1,vr,LOt),E.Cd=function(i){Sar(this.a,this.b,this.c,v(i,10))},E.a=0,E.b=0,E.c=!1,K(dr,"EndLabelPreprocessor/lambda$1$Type",1563),H(1564,1,si,tvt),E.Mb=function(i){return Ze(oe(v(i,72),(qt(),pg)))===Ze((W1(),EN))},K(dr,"EndLabelPreprocessor/lambda$2$Type",1564),H(1565,1,vr,dCt),E.Cd=function(i){pi(this.a,v(i,72))},K(dr,"EndLabelPreprocessor/lambda$3$Type",1565),H(1566,1,si,nvt),E.Mb=function(i){return Ze(oe(v(i,72),(qt(),pg)))===Ze((W1(),s3))},K(dr,"EndLabelPreprocessor/lambda$4$Type",1566),H(1567,1,vr,fCt),E.Cd=function(i){pi(this.a,v(i,72))},K(dr,"EndLabelPreprocessor/lambda$5$Type",1567),H(1615,1,ba,Y3t),E.Kf=function(i,l){Vyr(v(i,36),l)};var trn;K(dr,"EndLabelSorter",1615),H(1616,1,ui,rvt),E.Ne=function(i,l){return S2r(v(i,466),v(l,466))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"EndLabelSorter/1",1616),H(466,1,{466:1},aDt),K(dr,"EndLabelSorter/LabelGroup",466),H(1617,1,{},ivt),E.Kb=function(i){return yU(),new xn(null,new Nn(v(i,30).a,16))},K(dr,"EndLabelSorter/lambda$0$Type",1617),H(1618,1,si,avt),E.Mb=function(i){return yU(),v(i,10).k==(lr(),is)},K(dr,"EndLabelSorter/lambda$1$Type",1618),H(1619,1,vr,svt),E.Cd=function(i){Fxr(v(i,10))},K(dr,"EndLabelSorter/lambda$2$Type",1619),H(1620,1,si,ovt),E.Mb=function(i){return yU(),Ze(oe(v(i,72),(qt(),pg)))===Ze((W1(),s3))},K(dr,"EndLabelSorter/lambda$3$Type",1620),H(1621,1,si,lvt),E.Mb=function(i){return yU(),Ze(oe(v(i,72),(qt(),pg)))===Ze((W1(),EN))},K(dr,"EndLabelSorter/lambda$4$Type",1621),H(1568,1,ba,cvt),E.Kf=function(i,l){Gkr(this,v(i,36))},E.b=0,E.c=0,K(dr,"FinalSplineBendpointsCalculator",1568),H(1569,1,{},uvt),E.Kb=function(i){return new xn(null,new Nn(v(i,30).a,16))},K(dr,"FinalSplineBendpointsCalculator/lambda$0$Type",1569),H(1570,1,{},hvt),E.Kb=function(i){return new xn(null,new TE(new yr(_r(os(v(i,10)).a.Kc(),new S))))},K(dr,"FinalSplineBendpointsCalculator/lambda$1$Type",1570),H(1571,1,si,dvt),E.Mb=function(i){return!Jo(v(i,18))},K(dr,"FinalSplineBendpointsCalculator/lambda$2$Type",1571),H(1572,1,si,fvt),E.Mb=function(i){return ya(v(i,18),(At(),sw))},K(dr,"FinalSplineBendpointsCalculator/lambda$3$Type",1572),H(1573,1,vr,pCt),E.Cd=function(i){QCr(this.a,v(i,131))},K(dr,"FinalSplineBendpointsCalculator/lambda$4$Type",1573),H(1574,1,vr,pvt),E.Cd=function(i){dG(v(i,18).a)},K(dr,"FinalSplineBendpointsCalculator/lambda$5$Type",1574),H(803,1,ba,S7e),E.Kf=function(i,l){P6r(this,v(i,36),l)},K(dr,"GraphTransformer",803),H(517,22,{3:1,34:1,22:1,517:1},BRe);var tye,Tq,nrn=$r(dr,"GraphTransformer/Mode",517,jr,hfr,Ycr),rrn;H(1575,1,ba,gvt),E.Kf=function(i,l){iTr(v(i,36),l)},K(dr,"HierarchicalNodeResizingProcessor",1575),H(1576,1,ba,mvt),E.Kf=function(i,l){xmr(v(i,36),l)},K(dr,"HierarchicalPortConstraintProcessor",1576),H(1577,1,ui,bvt),E.Ne=function(i,l){return V2r(v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"HierarchicalPortConstraintProcessor/NodeComparator",1577),H(1578,1,ba,yvt),E.Kf=function(i,l){YAr(v(i,36),l)},K(dr,"HierarchicalPortDummySizeProcessor",1578),H(1579,1,ba,vvt),E.Kf=function(i,l){nCr(this,v(i,36),l)},E.a=0,K(dr,"HierarchicalPortOrthogonalEdgeRouter",1579),H(1580,1,ui,_vt),E.Ne=function(i,l){return ror(v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"HierarchicalPortOrthogonalEdgeRouter/1",1580),H(1581,1,ui,wvt),E.Ne=function(i,l){return ugr(v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"HierarchicalPortOrthogonalEdgeRouter/2",1581),H(1582,1,ba,Evt),E.Kf=function(i,l){vxr(v(i,36),l)},K(dr,"HierarchicalPortPositionProcessor",1582),H(1583,1,ba,tTt),E.Kf=function(i,l){MRr(this,v(i,36))},E.a=0,E.c=0;var pte,gte;K(dr,"HighDegreeNodeLayeringProcessor",1583),H(580,1,{580:1},xvt),E.b=-1,E.d=-1,K(dr,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",580),H(1584,1,{},Svt),E.Kb=function(i){return jU(),Hs(v(i,10))},E.Fb=function(i){return this===i},K(dr,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1584),H(1585,1,{},Tvt),E.Kb=function(i){return jU(),os(v(i,10))},E.Fb=function(i){return this===i},K(dr,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1585),H(1591,1,ba,Cvt),E.Kf=function(i,l){FAr(this,v(i,36),l)},K(dr,"HyperedgeDummyMerger",1591),H(804,1,{},SIe),E.a=!1,E.b=!1,E.c=!1,K(dr,"HyperedgeDummyMerger/MergeState",804),H(1592,1,{},Avt),E.Kb=function(i){return new xn(null,new Nn(v(i,30).a,16))},K(dr,"HyperedgeDummyMerger/lambda$0$Type",1592),H(1593,1,{},kvt),E.Kb=function(i){return new xn(null,new Nn(v(i,10).j,16))},K(dr,"HyperedgeDummyMerger/lambda$1$Type",1593),H(1594,1,vr,Rvt),E.Cd=function(i){v(i,12).p=-1},K(dr,"HyperedgeDummyMerger/lambda$2$Type",1594),H(1595,1,ba,Ivt),E.Kf=function(i,l){PAr(v(i,36),l)},K(dr,"HypernodesProcessor",1595),H(1596,1,ba,Nvt),E.Kf=function(i,l){VAr(v(i,36),l)},K(dr,"InLayerConstraintProcessor",1596),H(1597,1,ba,Ovt),E.Kf=function(i,l){Fmr(v(i,36),l)},K(dr,"InnermostNodeMarginCalculator",1597),H(1598,1,ba,Lvt),E.Kf=function(i,l){X7r(this,v(i,36))},E.a=Ss,E.b=Ss,E.c=ka,E.d=ka;var V8r=K(dr,"InteractiveExternalPortPositioner",1598);H(1599,1,{},Dvt),E.Kb=function(i){return v(i,18).d.i},E.Fb=function(i){return this===i},K(dr,"InteractiveExternalPortPositioner/lambda$0$Type",1599),H(1600,1,{},gCt),E.Kb=function(i){return ior(this.a,at(i))},E.Fb=function(i){return this===i},K(dr,"InteractiveExternalPortPositioner/lambda$1$Type",1600),H(1601,1,{},Mvt),E.Kb=function(i){return v(i,18).c.i},E.Fb=function(i){return this===i},K(dr,"InteractiveExternalPortPositioner/lambda$2$Type",1601),H(1602,1,{},mCt),E.Kb=function(i){return aor(this.a,at(i))},E.Fb=function(i){return this===i},K(dr,"InteractiveExternalPortPositioner/lambda$3$Type",1602),H(1603,1,{},bCt),E.Kb=function(i){return rlr(this.a,at(i))},E.Fb=function(i){return this===i},K(dr,"InteractiveExternalPortPositioner/lambda$4$Type",1603),H(1604,1,{},yCt),E.Kb=function(i){return ilr(this.a,at(i))},E.Fb=function(i){return this===i},K(dr,"InteractiveExternalPortPositioner/lambda$5$Type",1604),H(81,22,{3:1,34:1,22:1,81:1,196:1},ps),E.dg=function(){switch(this.g){case 15:return new Z_t;case 22:return new J_t;case 47:return new nwt;case 28:case 35:return new Yvt;case 32:return new Gyt;case 42:return new Vyt;case 1:return new Yyt;case 41:return new jyt;case 56:return new S7e((N8(),Tq));case 0:return new S7e((N8(),tye));case 2:return new Wyt;case 54:return new Kyt;case 33:return new Jyt;case 51:return new cvt;case 55:return new gvt;case 13:return new mvt;case 38:return new yvt;case 44:return new vvt;case 40:return new Evt;case 9:return new tTt;case 49:return new yNt;case 37:return new Cvt;case 43:return new Ivt;case 27:return new Nvt;case 30:return new Ovt;case 3:return new Lvt;case 18:return new Bvt;case 29:return new Fvt;case 5:return new nTt;case 50:return new Pvt;case 34:return new rTt;case 36:return new jvt;case 52:return new Y3t;case 11:return new Wvt;case 7:return new iTt;case 39:return new Kvt;case 45:return new Xvt;case 16:return new Qvt;case 10:return new u8t;case 48:return new t2t;case 21:return new n2t;case 23:return new Fue(($E(),_P));case 8:return new i2t;case 12:return new s2t;case 4:return new o2t;case 19:return new uTt;case 17:return new b2t;case 53:return new y2t;case 6:return new I2t;case 25:return new h6t;case 46:return new x2t;case 31:return new sOt;case 14:return new F2t;case 26:return new awt;case 20:return new q2t;case 24:return new Fue(($E(),vne));default:throw _e(new ar(Age+(this.f!=null?this.f:""+this.g)))}};var NGe,OGe,LGe,DGe,MGe,PGe,BGe,FGe,$Ge,UGe,k5,mte,bte,zGe,GGe,qGe,HGe,VGe,YGe,jGe,eP,WGe,KGe,XGe,QGe,ZGe,nye,yte,vte,JGe,_te,wte,Ete,jI,G4,q4,eqe,xte,Ste,tqe,Tte,Cte,nqe,rqe,iqe,aqe,Ate,rye,Cq,kte,Rte,Ite,Nte,sqe,oqe,lqe,cqe,Y8r=$r(dr,kge,81,jr,vYt,Vlr),irn;H(1605,1,ba,Bvt),E.Kf=function(i,l){W7r(v(i,36),l)},K(dr,"InvertedPortProcessor",1605),H(1606,1,ba,Fvt),E.Kf=function(i,l){qCr(v(i,36),l)},K(dr,"LabelAndNodeSizeProcessor",1606),H(1607,1,si,$vt),E.Mb=function(i){return v(i,10).k==(lr(),is)},K(dr,"LabelAndNodeSizeProcessor/lambda$0$Type",1607),H(1608,1,si,Uvt),E.Mb=function(i){return v(i,10).k==(lr(),hs)},K(dr,"LabelAndNodeSizeProcessor/lambda$1$Type",1608),H(1609,1,vr,DOt),E.Cd=function(i){Tar(this.b,this.a,this.c,v(i,10))},E.a=!1,E.c=!1,K(dr,"LabelAndNodeSizeProcessor/lambda$2$Type",1609),H(1610,1,ba,nTt),E.Kf=function(i,l){_7r(v(i,36),l)};var arn;K(dr,"LabelDummyInserter",1610),H(1611,1,ig,zvt),E.Lb=function(i){return Ze(oe(v(i,72),(qt(),pg)))===Ze((W1(),wN))},E.Fb=function(i){return this===i},E.Mb=function(i){return Ze(oe(v(i,72),(qt(),pg)))===Ze((W1(),wN))},K(dr,"LabelDummyInserter/1",1611),H(1612,1,ba,Pvt),E.Kf=function(i,l){l7r(v(i,36),l)},K(dr,"LabelDummyRemover",1612),H(1613,1,si,Gvt),E.Mb=function(i){return Vt(Ht(oe(v(i,72),(qt(),Vye))))},K(dr,"LabelDummyRemover/lambda$0$Type",1613),H(1378,1,ba,rTt),E.Kf=function(i,l){e7r(this,v(i,36),l)},E.a=null;var iye;K(dr,"LabelDummySwitcher",1378),H(293,1,{293:1},yjt),E.c=0,E.d=null,E.f=0,K(dr,"LabelDummySwitcher/LabelDummyInfo",293),H(1379,1,{},qvt),E.Kb=function(i){return Bk(),new xn(null,new Nn(v(i,30).a,16))},K(dr,"LabelDummySwitcher/lambda$0$Type",1379),H(1380,1,si,Hvt),E.Mb=function(i){return Bk(),v(i,10).k==(lr(),Pc)},K(dr,"LabelDummySwitcher/lambda$1$Type",1380),H(1381,1,{},vCt),E.Kb=function(i){return zor(this.a,v(i,10))},K(dr,"LabelDummySwitcher/lambda$2$Type",1381),H(1382,1,vr,_Ct),E.Cd=function(i){odr(this.a,v(i,293))},K(dr,"LabelDummySwitcher/lambda$3$Type",1382),H(1383,1,ui,Vvt),E.Ne=function(i,l){return Nhr(v(i,293),v(l,293))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"LabelDummySwitcher/lambda$4$Type",1383),H(802,1,ba,Yvt),E.Kf=function(i,l){qpr(v(i,36),l)},K(dr,"LabelManagementProcessor",802),H(1614,1,ba,jvt),E.Kf=function(i,l){_5r(v(i,36),l)},K(dr,"LabelSideSelector",1614),H(1622,1,ba,Wvt),E.Kf=function(i,l){okr(v(i,36),l)},K(dr,"LayerConstraintPostprocessor",1622),H(1623,1,ba,iTt),E.Kf=function(i,l){n3r(v(i,36),l)};var uqe;K(dr,"LayerConstraintPreprocessor",1623),H(371,22,{3:1,34:1,22:1,371:1},rX);var Aq,Ote,Lte,aye,srn=$r(dr,"LayerConstraintPreprocessor/HiddenNodeConnections",371,jr,w1r,Ylr),orn;H(1624,1,ba,Kvt),E.Kf=function(i,l){S6r(v(i,36),l)},K(dr,"LayerSizeAndGraphHeightCalculator",1624),H(1625,1,ba,Xvt),E.Kf=function(i,l){aTr(v(i,36),l)},K(dr,"LongEdgeJoiner",1625),H(1626,1,ba,Qvt),E.Kf=function(i,l){Jkr(v(i,36),l)},K(dr,"LongEdgeSplitter",1626),H(1627,1,ba,u8t),E.Kf=function(i,l){M7r(this,v(i,36),l)},E.e=0,E.f=0,E.j=0,E.k=0,E.n=0,E.o=0;var lrn,crn;K(dr,"NodePromotion",1627),H(1628,1,ui,Zvt),E.Ne=function(i,l){return Wbr(v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"NodePromotion/1",1628),H(1629,1,ui,Jvt),E.Ne=function(i,l){return Kbr(v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"NodePromotion/2",1629),H(1630,1,{},e2t),E.Kb=function(i){return v(i,42),FX(),Qn(),!0},E.Fb=function(i){return this===i},K(dr,"NodePromotion/lambda$0$Type",1630),H(1631,1,{},SCt),E.Kb=function(i){return Hfr(this.a,v(i,42))},E.Fb=function(i){return this===i},E.a=0,K(dr,"NodePromotion/lambda$1$Type",1631),H(1632,1,{},TCt),E.Kb=function(i){return qfr(this.a,v(i,42))},E.Fb=function(i){return this===i},E.a=0,K(dr,"NodePromotion/lambda$2$Type",1632),H(1633,1,ba,t2t),E.Kf=function(i,l){RRr(v(i,36),l)},K(dr,"NorthSouthPortPostprocessor",1633),H(1634,1,ba,n2t),E.Kf=function(i,l){cRr(v(i,36),l)},K(dr,"NorthSouthPortPreprocessor",1634),H(1635,1,ui,r2t),E.Ne=function(i,l){return cbr(v(i,12),v(l,12))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"NorthSouthPortPreprocessor/lambda$0$Type",1635),H(1636,1,ba,i2t),E.Kf=function(i,l){SAr(v(i,36),l)},K(dr,"PartitionMidprocessor",1636),H(1637,1,si,a2t),E.Mb=function(i){return ya(v(i,10),(qt(),oN))},K(dr,"PartitionMidprocessor/lambda$0$Type",1637),H(1638,1,vr,CCt),E.Cd=function(i){Hdr(this.a,v(i,10))},K(dr,"PartitionMidprocessor/lambda$1$Type",1638),H(1639,1,ba,s2t),E.Kf=function(i,l){CTr(v(i,36),l)},K(dr,"PartitionPostprocessor",1639),H(1640,1,ba,o2t),E.Kf=function(i,l){U4r(v(i,36),l)},K(dr,"PartitionPreprocessor",1640),H(1641,1,si,l2t),E.Mb=function(i){return ya(v(i,10),(qt(),oN))},K(dr,"PartitionPreprocessor/lambda$0$Type",1641),H(1642,1,{},c2t),E.Kb=function(i){return new xn(null,new TE(new yr(_r(os(v(i,10)).a.Kc(),new S))))},K(dr,"PartitionPreprocessor/lambda$1$Type",1642),H(1643,1,si,u2t),E.Mb=function(i){return I2r(v(i,18))},K(dr,"PartitionPreprocessor/lambda$2$Type",1643),H(1644,1,vr,h2t),E.Cd=function(i){Cbr(v(i,18))},K(dr,"PartitionPreprocessor/lambda$3$Type",1644),H(1645,1,ba,uTt),E.Kf=function(i,l){iAr(v(i,36),l)};var hqe,urn,hrn,drn,dqe,fqe;K(dr,"PortListSorter",1645),H(1648,1,ui,d2t),E.Ne=function(i,l){return cPt(v(i,12),v(l,12))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"PortListSorter/lambda$0$Type",1648),H(1650,1,ui,f2t),E.Ne=function(i,l){return Gjt(v(i,12),v(l,12))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"PortListSorter/lambda$1$Type",1650),H(1646,1,{},p2t),E.Kb=function(i){return G8(),v(i,12).e},K(dr,"PortListSorter/lambda$2$Type",1646),H(1647,1,{},g2t),E.Kb=function(i){return G8(),v(i,12).g},K(dr,"PortListSorter/lambda$3$Type",1647),H(1649,1,ui,m2t),E.Ne=function(i,l){return ewr(v(i,12),v(l,12))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"PortListSorter/lambda$4$Type",1649),H(1651,1,ba,b2t),E.Kf=function(i,l){g3r(v(i,36),l)},K(dr,"PortSideProcessor",1651),H(1652,1,ba,y2t),E.Kf=function(i,l){mCr(v(i,36),l)},K(dr,"ReversedEdgeRestorer",1652),H(1657,1,ba,h6t),E.Kf=function(i,l){P_r(this,v(i,36),l)},K(dr,"SelfLoopPortRestorer",1657),H(1658,1,{},v2t),E.Kb=function(i){return new xn(null,new Nn(v(i,30).a,16))},K(dr,"SelfLoopPortRestorer/lambda$0$Type",1658),H(1659,1,si,_2t),E.Mb=function(i){return v(i,10).k==(lr(),is)},K(dr,"SelfLoopPortRestorer/lambda$1$Type",1659),H(1660,1,si,w2t),E.Mb=function(i){return ya(v(i,10),(At(),yx))},K(dr,"SelfLoopPortRestorer/lambda$2$Type",1660),H(1661,1,{},E2t),E.Kb=function(i){return v(oe(v(i,10),(At(),yx)),337)},K(dr,"SelfLoopPortRestorer/lambda$3$Type",1661),H(1662,1,vr,ECt),E.Cd=function(i){Qxr(this.a,v(i,337))},K(dr,"SelfLoopPortRestorer/lambda$4$Type",1662),H(805,1,vr,D6e),E.Cd=function(i){uSr(v(i,105))},K(dr,"SelfLoopPortRestorer/lambda$5$Type",805),H(1663,1,ba,x2t),E.Kf=function(i,l){G2r(v(i,36),l)},K(dr,"SelfLoopPostProcessor",1663),H(1664,1,{},S2t),E.Kb=function(i){return new xn(null,new Nn(v(i,30).a,16))},K(dr,"SelfLoopPostProcessor/lambda$0$Type",1664),H(1665,1,si,T2t),E.Mb=function(i){return v(i,10).k==(lr(),is)},K(dr,"SelfLoopPostProcessor/lambda$1$Type",1665),H(1666,1,si,C2t),E.Mb=function(i){return ya(v(i,10),(At(),yx))},K(dr,"SelfLoopPostProcessor/lambda$2$Type",1666),H(1667,1,vr,A2t),E.Cd=function(i){Jwr(v(i,10))},K(dr,"SelfLoopPostProcessor/lambda$3$Type",1667),H(1668,1,{},k2t),E.Kb=function(i){return new xn(null,new Nn(v(i,105).f,1))},K(dr,"SelfLoopPostProcessor/lambda$4$Type",1668),H(1669,1,vr,wCt),E.Cd=function(i){T1r(this.a,v(i,340))},K(dr,"SelfLoopPostProcessor/lambda$5$Type",1669),H(1670,1,si,R2t),E.Mb=function(i){return!!v(i,105).i},K(dr,"SelfLoopPostProcessor/lambda$6$Type",1670),H(1671,1,vr,xCt),E.Cd=function(i){xir(this.a,v(i,105))},K(dr,"SelfLoopPostProcessor/lambda$7$Type",1671),H(1653,1,ba,I2t),E.Kf=function(i,l){H3r(v(i,36),l)},K(dr,"SelfLoopPreProcessor",1653),H(1654,1,{},N2t),E.Kb=function(i){return new xn(null,new Nn(v(i,105).f,1))},K(dr,"SelfLoopPreProcessor/lambda$0$Type",1654),H(1655,1,{},O2t),E.Kb=function(i){return v(i,340).a},K(dr,"SelfLoopPreProcessor/lambda$1$Type",1655),H(1656,1,vr,L2t),E.Cd=function(i){Asr(v(i,18))},K(dr,"SelfLoopPreProcessor/lambda$2$Type",1656),H(1672,1,ba,sOt),E.Kf=function(i,l){Oxr(this,v(i,36),l)},K(dr,"SelfLoopRouter",1672),H(1673,1,{},D2t),E.Kb=function(i){return new xn(null,new Nn(v(i,30).a,16))},K(dr,"SelfLoopRouter/lambda$0$Type",1673),H(1674,1,si,M2t),E.Mb=function(i){return v(i,10).k==(lr(),is)},K(dr,"SelfLoopRouter/lambda$1$Type",1674),H(1675,1,si,P2t),E.Mb=function(i){return ya(v(i,10),(At(),yx))},K(dr,"SelfLoopRouter/lambda$2$Type",1675),H(1676,1,{},B2t),E.Kb=function(i){return v(oe(v(i,10),(At(),yx)),337)},K(dr,"SelfLoopRouter/lambda$3$Type",1676),H(1677,1,vr,HRt),E.Cd=function(i){Fdr(this.a,this.b,v(i,337))},K(dr,"SelfLoopRouter/lambda$4$Type",1677),H(1678,1,ba,F2t),E.Kf=function(i,l){l5r(v(i,36),l)},K(dr,"SemiInteractiveCrossMinProcessor",1678),H(1679,1,si,$2t),E.Mb=function(i){return v(i,10).k==(lr(),is)},K(dr,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1679),H(1680,1,si,U2t),E.Mb=function(i){return x9t(v(i,10))._b((qt(),Z4))},K(dr,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1680),H(1681,1,ui,z2t),E.Ne=function(i,l){return Tmr(v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dr,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1681),H(1682,1,{},G2t),E.Ve=function(i,l){return Vdr(v(i,10),v(l,10))},K(dr,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1682),H(1684,1,ba,q2t),E.Kf=function(i,l){Okr(v(i,36),l)},K(dr,"SortByInputModelProcessor",1684),H(1685,1,si,H2t),E.Mb=function(i){return v(i,12).g.c.length!=0},K(dr,"SortByInputModelProcessor/lambda$0$Type",1685),H(1686,1,vr,ACt),E.Cd=function(i){gSr(this.a,v(i,12))},K(dr,"SortByInputModelProcessor/lambda$1$Type",1686),H(1759,817,{},L$t),E.df=function(i){var l,d,g,y;switch(this.c=i,this.a.g){case 2:l=new Ot,ts(Ki(new xn(null,new Nn(this.c.a.b,16)),new i_t),new JRt(this,l)),fG(this,new Y2t),Cu(l,new j2t),l.c.length=0,ts(Ki(new xn(null,new Nn(this.c.a.b,16)),new W2t),new RCt(l)),fG(this,new K2t),Cu(l,new X2t),l.c.length=0,d=DIt(Jfe(e4(new xn(null,new Nn(this.c.a.b,16)),new ICt(this))),new Q2t),ts(new xn(null,new Nn(this.c.a.a,16)),new jRt(d,l)),fG(this,new J2t),Cu(l,new e_t),l.c.length=0;break;case 3:g=new Ot,fG(this,new V2t),y=DIt(Jfe(e4(new xn(null,new Nn(this.c.a.b,16)),new kCt(this))),new Z2t),ts(Ki(new xn(null,new Nn(this.c.a.b,16)),new t_t),new KRt(y,g)),fG(this,new n_t),Cu(g,new r_t),g.c.length=0;break;default:throw _e(new Zkt)}},E.b=0,K(Cs,"EdgeAwareScanlineConstraintCalculation",1759),H(1760,1,ig,V2t),E.Lb=function(i){return $e(v(i,60).g,154)},E.Fb=function(i){return this===i},E.Mb=function(i){return $e(v(i,60).g,154)},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1760),H(1761,1,{},kCt),E.Ye=function(i){return ZSr(this.a,v(i,60))},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1761),H(1769,1,UJ,VRt),E.de=function(){WD(this.a,this.b,-1)},E.b=0,K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1769),H(1771,1,ig,Y2t),E.Lb=function(i){return $e(v(i,60).g,154)},E.Fb=function(i){return this===i},E.Mb=function(i){return $e(v(i,60).g,154)},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1771),H(1772,1,vr,j2t),E.Cd=function(i){v(i,380).de()},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1772),H(1773,1,si,W2t),E.Mb=function(i){return $e(v(i,60).g,10)},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1773),H(1775,1,vr,RCt),E.Cd=function(i){yvr(this.a,v(i,60))},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1775),H(1774,1,UJ,XRt),E.de=function(){WD(this.b,this.a,-1)},E.a=0,K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1774),H(1776,1,ig,K2t),E.Lb=function(i){return $e(v(i,60).g,10)},E.Fb=function(i){return this===i},E.Mb=function(i){return $e(v(i,60).g,10)},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1776),H(1777,1,vr,X2t),E.Cd=function(i){v(i,380).de()},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1777),H(1778,1,{},ICt),E.Ye=function(i){return JSr(this.a,v(i,60))},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1778),H(1779,1,{},Q2t),E.We=function(){return 0},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1779),H(1762,1,{},Z2t),E.We=function(){return 0},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1762),H(1781,1,vr,jRt),E.Cd=function(i){xhr(this.a,this.b,v(i,316))},E.a=0,K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1781),H(1780,1,UJ,WRt),E.de=function(){WVt(this.a,this.b,-1)},E.b=0,K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1780),H(1782,1,ig,J2t),E.Lb=function(i){return v(i,60),!0},E.Fb=function(i){return this===i},E.Mb=function(i){return v(i,60),!0},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1782),H(1783,1,vr,e_t),E.Cd=function(i){v(i,380).de()},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1783),H(1763,1,si,t_t),E.Mb=function(i){return $e(v(i,60).g,10)},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1763),H(1765,1,vr,KRt),E.Cd=function(i){Shr(this.a,this.b,v(i,60))},E.a=0,K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1765),H(1764,1,UJ,QRt),E.de=function(){WD(this.b,this.a,-1)},E.a=0,K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1764),H(1766,1,ig,n_t),E.Lb=function(i){return v(i,60),!0},E.Fb=function(i){return this===i},E.Mb=function(i){return v(i,60),!0},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1766),H(1767,1,vr,r_t),E.Cd=function(i){v(i,380).de()},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1767),H(1768,1,si,i_t),E.Mb=function(i){return $e(v(i,60).g,154)},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1768),H(1770,1,vr,JRt),E.Cd=function(i){Ggr(this.a,this.b,v(i,60))},K(Cs,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1770),H(1586,1,ba,yNt),E.Kf=function(i,l){a6r(this,v(i,36),l)};var frn;K(Cs,"HorizontalGraphCompactor",1586),H(1587,1,{},NCt),E.ff=function(i,l){var d,g,y;return jOe(i,l)||(d=qT(i),g=qT(l),d&&d.k==(lr(),hs)||g&&g.k==(lr(),hs))?0:(y=v(oe(this.a.a,(At(),B5)),312),cor(y,d?d.k:(lr(),Ws),g?g.k:(lr(),Ws)))},E.gf=function(i,l){var d,g,y;return jOe(i,l)?1:(d=qT(i),g=qT(l),y=v(oe(this.a.a,(At(),B5)),312),F8e(y,d?d.k:(lr(),Ws),g?g.k:(lr(),Ws)))},K(Cs,"HorizontalGraphCompactor/1",1587),H(1588,1,{},a_t),E.ef=function(i,l){return CL(),i.a.i==0},K(Cs,"HorizontalGraphCompactor/lambda$0$Type",1588),H(1589,1,{},OCt),E.ef=function(i,l){return Wdr(this.a,i,l)},K(Cs,"HorizontalGraphCompactor/lambda$1$Type",1589),H(1730,1,{},lFt);var prn,grn;K(Cs,"LGraphToCGraphTransformer",1730),H(1738,1,si,s_t),E.Mb=function(i){return i!=null},K(Cs,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1738),H(1731,1,{},o_t),E.Kb=function(i){return _0(),Kl(oe(v(v(i,60).g,10),(At(),Ji)))},K(Cs,"LGraphToCGraphTransformer/lambda$0$Type",1731),H(1732,1,{},l_t),E.Kb=function(i){return _0(),vzt(v(v(i,60).g,154))},K(Cs,"LGraphToCGraphTransformer/lambda$1$Type",1732),H(1741,1,si,c_t),E.Mb=function(i){return _0(),$e(v(i,60).g,10)},K(Cs,"LGraphToCGraphTransformer/lambda$10$Type",1741),H(1742,1,vr,u_t),E.Cd=function(i){Jdr(v(i,60))},K(Cs,"LGraphToCGraphTransformer/lambda$11$Type",1742),H(1743,1,si,h_t),E.Mb=function(i){return _0(),$e(v(i,60).g,154)},K(Cs,"LGraphToCGraphTransformer/lambda$12$Type",1743),H(1747,1,vr,d_t),E.Cd=function(i){Iyr(v(i,60))},K(Cs,"LGraphToCGraphTransformer/lambda$13$Type",1747),H(1744,1,vr,LCt),E.Cd=function(i){nsr(this.a,v(i,8))},E.a=0,K(Cs,"LGraphToCGraphTransformer/lambda$14$Type",1744),H(1745,1,vr,DCt),E.Cd=function(i){isr(this.a,v(i,116))},E.a=0,K(Cs,"LGraphToCGraphTransformer/lambda$15$Type",1745),H(1746,1,vr,MCt),E.Cd=function(i){rsr(this.a,v(i,8))},E.a=0,K(Cs,"LGraphToCGraphTransformer/lambda$16$Type",1746),H(1748,1,{},f_t),E.Kb=function(i){return _0(),new xn(null,new TE(new yr(_r(os(v(i,10)).a.Kc(),new S))))},K(Cs,"LGraphToCGraphTransformer/lambda$17$Type",1748),H(1749,1,si,p_t),E.Mb=function(i){return _0(),Jo(v(i,18))},K(Cs,"LGraphToCGraphTransformer/lambda$18$Type",1749),H(1750,1,vr,PCt),E.Cd=function(i){_gr(this.a,v(i,18))},K(Cs,"LGraphToCGraphTransformer/lambda$19$Type",1750),H(1734,1,vr,BCt),E.Cd=function(i){j0r(this.a,v(i,154))},K(Cs,"LGraphToCGraphTransformer/lambda$2$Type",1734),H(1751,1,{},g_t),E.Kb=function(i){return _0(),new xn(null,new Nn(v(i,30).a,16))},K(Cs,"LGraphToCGraphTransformer/lambda$20$Type",1751),H(1752,1,{},m_t),E.Kb=function(i){return _0(),new xn(null,new TE(new yr(_r(os(v(i,10)).a.Kc(),new S))))},K(Cs,"LGraphToCGraphTransformer/lambda$21$Type",1752),H(1753,1,{},b_t),E.Kb=function(i){return _0(),v(oe(v(i,18),(At(),sw)),15)},K(Cs,"LGraphToCGraphTransformer/lambda$22$Type",1753),H(1754,1,si,y_t),E.Mb=function(i){return uor(v(i,15))},K(Cs,"LGraphToCGraphTransformer/lambda$23$Type",1754),H(1755,1,vr,FCt),E.Cd=function(i){zSr(this.a,v(i,15))},K(Cs,"LGraphToCGraphTransformer/lambda$24$Type",1755),H(1733,1,vr,e8t),E.Cd=function(i){H1r(this.a,this.b,v(i,154))},K(Cs,"LGraphToCGraphTransformer/lambda$3$Type",1733),H(1735,1,{},v_t),E.Kb=function(i){return _0(),new xn(null,new Nn(v(i,30).a,16))},K(Cs,"LGraphToCGraphTransformer/lambda$4$Type",1735),H(1736,1,{},__t),E.Kb=function(i){return _0(),new xn(null,new TE(new yr(_r(os(v(i,10)).a.Kc(),new S))))},K(Cs,"LGraphToCGraphTransformer/lambda$5$Type",1736),H(1737,1,{},w_t),E.Kb=function(i){return _0(),v(oe(v(i,18),(At(),sw)),15)},K(Cs,"LGraphToCGraphTransformer/lambda$6$Type",1737),H(1739,1,vr,$Ct),E.Cd=function(i){e4r(this.a,v(i,15))},K(Cs,"LGraphToCGraphTransformer/lambda$8$Type",1739),H(1740,1,vr,t8t),E.Cd=function(i){ksr(this.a,this.b,v(i,154))},K(Cs,"LGraphToCGraphTransformer/lambda$9$Type",1740),H(1729,1,{},E_t),E.cf=function(i){var l,d,g,y,x;for(this.a=i,this.d=new Rue,this.c=st(Yze,Yn,125,this.a.a.a.c.length,0,1),this.b=0,d=new me(this.a.a.a);d.a=de&&(Lt(x,Nt(q)),Ue=u.Math.max(Ue,je[q-1]-J),R+=le,Se+=je[q-1]-Se,J=je[q-1],le=O[q]),le=u.Math.max(le,O[q]),++q;R+=le}ae=u.Math.min(1/Ue,1/l.b/R),ae>g&&(g=ae,d=x)}return d},E.pg=function(){return!1},K(lg,"MSDCutIndexHeuristic",816),H(1683,1,ba,awt),E.Kf=function(i,l){ckr(v(i,36),l)},K(lg,"SingleEdgeGraphWrapper",1683),H(232,22,{3:1,34:1,22:1,232:1},DL);var I5,XI,QI,H4,tP,N5,ZI=$r(Mc,"CenterEdgeLabelPlacementStrategy",232,jr,Wpr,Xlr),Arn;H(431,22,{3:1,34:1,22:1,431:1},$Re);var gqe,mye,mqe=$r(Mc,"ConstraintCalculationStrategy",431,jr,pfr,Qlr),krn;H(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},che),E.dg=function(){return nVt(this)},E.qg=function(){return nVt(this)};var Rq,nP,bqe,yqe=$r(Mc,"CrossingMinimizationStrategy",322,jr,l0r,Zlr),Rrn;H(351,22,{3:1,34:1,22:1,351:1},uhe);var vqe,bye,Fte,_qe=$r(Mc,"CuttingStrategy",351,jr,c0r,Jlr),Irn;H(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},xU),E.dg=function(){return YVt(this)},E.qg=function(){return YVt(this)};var wqe,yye,JI,vye,eN,Eqe=$r(Mc,"CycleBreakingStrategy",348,jr,dpr,ecr),Nrn;H(428,22,{3:1,34:1,22:1,428:1},URe);var $te,xqe,Sqe=$r(Mc,"DirectionCongruency",428,jr,ffr,tcr),Orn;H(460,22,{3:1,34:1,22:1,460:1},hhe);var tN,_ye,O5,Lrn=$r(Mc,"EdgeConstraint",460,jr,u0r,lcr),Drn;H(283,22,{3:1,34:1,22:1,283:1},ML);var wye,Eye,xye,Sye,Ute,Tye,Tqe=$r(Mc,"EdgeLabelSideSelection",283,jr,Vpr,ccr),Mrn;H(488,22,{3:1,34:1,22:1,488:1},zRe);var zte,Cqe,Aqe=$r(Mc,"EdgeStraighteningStrategy",488,jr,wfr,ucr),Prn;H(281,22,{3:1,34:1,22:1,281:1},PL);var Cye,kqe,Rqe,Gte,Iqe,Nqe,Oqe=$r(Mc,"FixedAlignment",281,jr,Ypr,ocr),Brn;H(282,22,{3:1,34:1,22:1,282:1},BL);var Lqe,Dqe,Mqe,Pqe,rP,Bqe,Fqe=$r(Mc,"GraphCompactionStrategy",282,jr,jpr,ncr),Frn;H(259,22,{3:1,34:1,22:1,259:1},GS);var nN,qte,rN,wf,iP,Hte,iN,L5,Vte,aP,Aye=$r(Mc,"GraphProperties",259,jr,Nmr,rcr),$rn;H(299,22,{3:1,34:1,22:1,299:1},dhe);var Iq,kye,Rye,Iye=$r(Mc,"GreedySwitchType",299,jr,h0r,icr),Urn;H(311,22,{3:1,34:1,22:1,311:1},fhe);var y6,Nq,D5,zrn=$r(Mc,"InLayerConstraint",311,jr,d0r,acr),Grn;H(429,22,{3:1,34:1,22:1,429:1},GRe);var Nye,$qe,Uqe=$r(Mc,"InteractiveReferencePoint",429,jr,dfr,scr),qrn,zqe,v6,gx,Yte,Gqe,qqe,jte,Hqe,Oq,Wte,sP,_6,ob,Oye,Kte,vc,Vqe,c2,au,Lye,Dye,Lq,aw,mx,w6,Yqe,E6,Dq,V4,m1,Kf,Mye,M5,ua,Ji,jqe,Wqe,Kqe,Xqe,Qqe,Pye,Xte,kh,bx,Bye,x6,oP,ap,P5,yx,B5,F5,aN,sw,Zqe,Fye,$ye,S6;H(171,22,{3:1,34:1,22:1,171:1},SU);var lP,u2,cP,Y4,Mq,Jqe=$r(Mc,"LayerConstraint",171,jr,ppr,hcr),Hrn;H(859,1,Hf,bTt),E.hf=function(i){pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,KBe),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),cHe),(dy(),Ra)),Sqe),bn((d1(),Hn))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,XBe),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(Qn(),!1)),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,tee),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),gHe),Ra),Uqe),bn(Hn)))),bs(i,tee,Nge,Fin),bs(i,tee,kM,Bin),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,QBe),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,ZBe),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),Gs),rs),bn(Hn)))),pn(i,new an(tar(dn(hn(fn(kn(on(un(ln(cn(new rn,JBe),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),Gs),rs),bn(pw)),Te(xe(Xt,1),kt,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,eFe),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),xHe),Ra),OVe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,tFe),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Nt(7)),Zl),Ao),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,nFe),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,rFe),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Nge),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),lHe),Ra),Eqe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,eq),tme),"Node Layering Strategy"),"Strategy for node layering."),yHe),Ra),_Ve),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,iFe),tme),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),mHe),Ra),Jqe),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,aFe),tme),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),Zl),Ao),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,sFe),tme),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Nt(-1)),Zl),Ao),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Oge),pQt),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),Nt(4)),Zl),Ao),bn(Hn)))),bs(i,Oge,eq,Vin),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Lge),pQt),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),Nt(2)),Zl),Ao),bn(Hn)))),bs(i,Lge,eq,jin),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Dge),gQt),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),bHe),Ra),RVe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Mge),gQt),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Nt(0)),Zl),Ao),bn(Hn)))),bs(i,Mge,Dge,null),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Pge),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Nt(qi)),Zl),Ao),bn(Hn)))),bs(i,Pge,eq,Uin),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,kM),OI),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),oHe),Ra),yqe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,oFe),OI),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Bge),OI),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),Fo),ws),bn(Hn)))),bs(i,Bge,pee,uin),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Fge),OI),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),Gs),rs),bn(Hn)))),bs(i,Fge,kM,min),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,lFe),OI),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),K5),Xt),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,cFe),OI),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),K5),Xt),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,uFe),OI),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),Zl),Ao),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,hFe),OI),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Nt(-1)),Zl),Ao),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,dFe),mQt),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),Nt(40)),Zl),Ao),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,$ge),mQt),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),sHe),Ra),Iye),bn(Hn)))),bs(i,$ge,kM,lin),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,nee),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),aHe),Ra),Iye),bn(Hn)))),bs(i,nee,kM,ain),bs(i,nee,pee,sin),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,v5),bQt),"Node Placement Strategy"),"Strategy for node placement."),EHe),Ra),SVe),bn(Hn)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,ree),bQt),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),Gs),rs),bn(Hn)))),bs(i,ree,v5,ian),bs(i,ree,v5,aan),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Uge),yQt),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),vHe),Ra),Aqe),bn(Hn)))),bs(i,Uge,v5,ean),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,zge),yQt),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),_He),Ra),Oqe),bn(Hn)))),bs(i,zge,v5,nan),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Gge),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),Fo),ws),bn(Hn)))),bs(i,Gge,v5,oan),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,qge),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),Ra),ove),bn(Fs)))),bs(i,qge,v5,han),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Hge),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),wHe),Ra),ove),bn(Hn)))),bs(i,Hge,v5,uan),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,fFe),vQt),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),dHe),Ra),MVe),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,pFe),vQt),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),fHe),Ra),PVe),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,iee),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),pHe),Ra),FVe),bn(Hn)))),bs(i,iee,tq,Ain),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,aee),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),Fo),ws),bn(Hn)))),bs(i,aee,tq,Rin),bs(i,aee,iee,Iin),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Vge),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),Fo),ws),bn(Hn)))),bs(i,Vge,tq,xin),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,gFe),np),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,mFe),np),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,bFe),np),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,yFe),np),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,vFe),RFe),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),Nt(0)),Zl),Ao),bn(mg)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,_Fe),RFe),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Nt(0)),Zl),Ao),bn(mg)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,wFe),RFe),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),Nt(0)),Zl),Ao),bn(mg)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Yge),IFe),MXt),"Tries to further compact components (disconnected sub-graphs)."),!1),Gs),rs),bn(Hn)))),bs(i,Yge,xM,!0),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,EFe),_Qt),"Post Compaction Strategy"),wQt),tHe),Ra),Fqe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,xFe),_Qt),"Post Compaction Constraint Calculation"),wQt),eHe),Ra),mqe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,see),NFe),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,jge),NFe),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Nt(16)),Zl),Ao),bn(Hn)))),bs(i,jge,see,!0),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Wge),NFe),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Nt(5)),Zl),Ao),bn(Hn)))),bs(i,Wge,see,!0),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,ib),OFe),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),CHe),Ra),GVe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,oee),OFe),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),Fo),ws),bn(Hn)))),bs(i,oee,ib,San),bs(i,oee,ib,Tan),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,lee),OFe),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),Fo),ws),bn(Hn)))),bs(i,lee,ib,Aan),bs(i,lee,ib,kan),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,RM),EQt),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),THe),Ra),_qe),bn(Hn)))),bs(i,RM,ib,Dan),bs(i,RM,ib,Man),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,Kge),EQt),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),op),_f),bn(Hn)))),bs(i,Kge,RM,Ian),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Xge),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),SHe),Zl),Ao),bn(Hn)))),bs(i,Xge,RM,Oan),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,cee),xQt),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),AHe),Ra),zVe),bn(Hn)))),bs(i,cee,ib,jan),bs(i,cee,ib,Wan),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,uee),xQt),"Valid Indices for Wrapping"),null),op),_f),bn(Hn)))),bs(i,uee,ib,Han),bs(i,uee,ib,Van),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,hee),LFe),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),Gs),rs),bn(Hn)))),bs(i,hee,ib,$an),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,dee),LFe),"Distance Penalty When Improving Cuts"),null),2),Fo),ws),bn(Hn)))),bs(i,dee,ib,Ban),bs(i,dee,hee,!0),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Qge),LFe),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),Gs),rs),bn(Hn)))),bs(i,Qge,ib,zan),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,SFe),nme),"Edge Label Side Selection"),"Method to decide on edge label sides."),hHe),Ra),Tqe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,TFe),nme),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),uHe),Ra),ZI),va(Hn,Te(xe(rm,1),wt,170,0,[Sy]))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,fee),IM),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),iHe),Ra),NVe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,CFe),IM),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),!1),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,AFe),IM),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),Gs),rs),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Zge),IM),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),nHe),Ra),EGe),bn(Hn)))),bs(i,Zge,xM,null),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,kFe),IM),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),rHe),Ra),EVe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Jge),IM),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),Fo),ws),bn(Hn)))),bs(i,Jge,fee,null),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,eme),IM),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),Fo),ws),bn(Hn)))),bs(i,eme,fee,null),UKt((new yTt,i))};var Vrn,Yrn,jrn,eHe,Wrn,tHe,Krn,nHe,Xrn,Qrn,Zrn,rHe,Jrn,ein,tin,iHe,nin,rin,iin,aHe,ain,sin,oin,sHe,lin,cin,uin,hin,din,fin,pin,gin,min,bin,oHe,yin,lHe,vin,cHe,_in,uHe,win,hHe,Ein,xin,Sin,dHe,Tin,fHe,Cin,pHe,Ain,kin,Rin,Iin,Nin,Oin,Lin,Din,Min,Pin,gHe,Bin,Fin,$in,Uin,zin,Gin,mHe,qin,Hin,Vin,Yin,jin,Win,Kin,bHe,Xin,yHe,Qin,Zin,Jin,vHe,ean,tan,_He,nan,ran,ian,aan,san,oan,lan,can,wHe,uan,han,dan,EHe,fan,xHe,pan,gan,man,ban,yan,van,_an,wan,Ean,xan,San,Tan,Can,Aan,kan,Ran,Ian,Nan,SHe,Oan,Lan,THe,Dan,Man,Pan,Ban,Fan,$an,Uan,zan,Gan,CHe,qan,Han,Van,Yan,AHe,jan,Wan;K(Mc,"LayeredMetaDataProvider",859),H(998,1,Hf,yTt),E.hf=function(i){UKt(i)};var fg,Uye,Qte,uP,Zte,kHe,Jte,j4,ene,RHe,IHe,tne,zye,nm,Gye,vx,NHe,Pq,qye,OHe,Kan,Xan,Qan,nne,Hye,hP,ow,Zan,Pd,LHe,DHe,rne,Vye,pg,ine,lb,MHe,PHe,BHe,Yye,jye,FHe,vy,Wye,$He,W4,UHe,zHe,GHe,ane,K4,lw,qHe,HHe,Nl,VHe,Jan,Lu,sne,YHe,jHe,WHe,h2,cw,one,KHe,XHe,lne,_x,QHe,Kye,dP,ZHe,wx,fP,cne,uw,Xye,sN,une,hw,JHe,eVe,tVe,oN,nVe,esn,tsn,nsn,rsn,Ex,X4,Qa,_y,isn,Q4,rVe,lN,iVe,Z4,asn,cN,aVe,T6,ssn,osn,Bq,Qye,sVe,Fq,O0,$5,U5,xx,dw,hne,J4,Zye,uN,hN,Sx,z5,Jye,$q,pP,gP,lsn,csn,usn,oVe,hsn,eve,lVe,cVe,uVe,hVe,tve,dVe,fVe,pVe,gVe,nve,dne;K(Mc,"LayeredOptions",998),H(999,1,{},swt),E.sf=function(){var i;return i=new s6t,i},E.tf=function(i){},K(Mc,"LayeredOptions/LayeredFactory",999),H(1391,1,{}),E.a=0;var dsn;K(mc,"ElkSpacings/AbstractSpacingsBuilder",1391),H(792,1391,{},PLe);var fne,fsn;K(Mc,"LayeredSpacings/LayeredSpacingsBuilder",792),H(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},AT),E.dg=function(){return tjt(this)},E.qg=function(){return tjt(this)};var dN,rve,fN,mVe,bVe,yVe,pne,ive,vVe,_Ve=$r(Mc,"LayeringStrategy",265,jr,omr,dcr),psn;H(390,22,{3:1,34:1,22:1,390:1},phe);var ave,wVe,gne,EVe=$r(Mc,"LongEdgeOrderingStrategy",390,jr,f0r,fcr),gsn;H(203,22,{3:1,34:1,22:1,203:1},aX);var G5,q5,mne,sve,ove=$r(Mc,"NodeFlexibility",203,jr,E1r,pcr),msn;H(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},TU),E.dg=function(){return VVt(this)},E.qg=function(){return VVt(this)};var mP,lve,cve,bP,xVe,SVe=$r(Mc,"NodePlacementStrategy",323,jr,fpr,gcr),bsn;H(243,22,{3:1,34:1,22:1,243:1},qS);var TVe,Tx,e3,Uq,CVe,AVe,zq,kVe,bne,yne,RVe=$r(Mc,"NodePromotionStrategy",243,jr,Omr,mcr),ysn;H(284,22,{3:1,34:1,22:1,284:1},sX);var IVe,wy,uve,hve,NVe=$r(Mc,"OrderingStrategy",284,jr,x1r,bcr),vsn;H(430,22,{3:1,34:1,22:1,430:1},qRe);var dve,fve,OVe=$r(Mc,"PortSortingStrategy",430,jr,gfr,ycr),_sn;H(463,22,{3:1,34:1,22:1,463:1},ghe);var Rh,_u,yP,wsn=$r(Mc,"PortType",463,jr,p0r,vcr),Esn;H(387,22,{3:1,34:1,22:1,387:1},mhe);var LVe,pve,DVe,MVe=$r(Mc,"SelfLoopDistributionStrategy",387,jr,g0r,_cr),xsn;H(349,22,{3:1,34:1,22:1,349:1},bhe);var gve,Gq,mve,PVe=$r(Mc,"SelfLoopOrderingStrategy",349,jr,m0r,wcr),Ssn;H(312,1,{312:1},BWt),K(Mc,"Spacings",312),H(350,22,{3:1,34:1,22:1,350:1},yhe);var bve,BVe,vP,FVe=$r(Mc,"SplineRoutingMode",350,jr,b0r,Ecr),Tsn;H(352,22,{3:1,34:1,22:1,352:1},vhe);var yve,$Ve,UVe,zVe=$r(Mc,"ValidifyStrategy",352,jr,y0r,xcr),Csn;H(388,22,{3:1,34:1,22:1,388:1},_he);var t3,vve,pN,GVe=$r(Mc,"WrappingStrategy",388,jr,v0r,Scr),Asn;H(1398,1,hl,cTt),E.rg=function(i){return v(i,36),ksn},E.Kf=function(i,l){n6r(this,v(i,36),l)};var ksn;K(yee,"DepthFirstCycleBreaker",1398),H(793,1,hl,nNe),E.rg=function(i){return v(i,36),Rsn},E.Kf=function(i,l){s8r(this,v(i,36),l)},E.sg=function(i){return v(Yt(i,KZ(this.d,i.c.length)),10)};var Rsn;K(yee,"GreedyCycleBreaker",793),H(1401,793,hl,nIt),E.sg=function(i){var l,d,g,y;for(y=null,l=qi,g=new me(i);g.a1&&(Vt(Ht(oe(So(($n(0,i.c.length),v(i.c[0],10))),(qt(),vx))))?iYt(i,this.d,v(this,669)):(Fn(),us(i,this.d)),aUt(this.e,i))},E.lg=function(i,l,d,g){var y,x,T,R,O,D,q;for(l!=E9t(d,i.length)&&(x=i[l-(d?1:-1)],NOe(this.f,x,d?(ll(),_u):(ll(),Rh))),y=i[l][0],q=!g||y.k==(lr(),hs),D=H1(i[l]),this.vg(D,q,!1,d),T=0,O=new me(D);O.a"),i0?efe(this.a,i[l-1],i[l]):!d&&l1&&(Vt(Ht(oe(So(($n(0,i.c.length),v(i.c[0],10))),(qt(),vx))))?iYt(i,this.d,this):(Fn(),us(i,this.d)),Vt(Ht(oe(So(($n(0,i.c.length),v(i.c[0],10))),vx)))||aUt(this.e,i))},K(ph,"ModelOrderBarycenterHeuristic",669),H(1866,1,ui,aAt),E.Ne=function(i,l){return nSr(this.a,v(i,10),v(l,10))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(ph,"ModelOrderBarycenterHeuristic/lambda$0$Type",1866),H(1423,1,hl,_Tt),E.rg=function(i){var l;return v(i,36),l=EX(Vsn),yi(l,(Mo(),qc),(qo(),Ate)),l},E.Kf=function(i,l){$dr((v(i,36),l))};var Vsn;K(ph,"NoCrossingMinimizer",1423),H(809,413,p$e,dRe),E.tg=function(i,l,d){var g,y,x,T,R,O,D,q,J,re,ae;switch(J=this.g,d.g){case 1:{for(y=0,x=0,q=new me(i.j);q.a1&&(y.j==(Bt(),gr)?this.b[i]=!0:y.j==cr&&i>0&&(this.b[i-1]=!0))},E.f=0,K(Zg,"AllCrossingsCounter",1861),H(595,1,{},fZ),E.b=0,E.d=0,K(Zg,"BinaryIndexedTree",595),H(532,1,{},YU);var VVe,_ne;K(Zg,"CrossingsCounter",532),H(1950,1,ui,sAt),E.Ne=function(i,l){return hhr(this.a,v(i,12),v(l,12))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Zg,"CrossingsCounter/lambda$0$Type",1950),H(1951,1,ui,oAt),E.Ne=function(i,l){return dhr(this.a,v(i,12),v(l,12))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Zg,"CrossingsCounter/lambda$1$Type",1951),H(1952,1,ui,lAt),E.Ne=function(i,l){return fhr(this.a,v(i,12),v(l,12))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Zg,"CrossingsCounter/lambda$2$Type",1952),H(1953,1,ui,cAt),E.Ne=function(i,l){return phr(this.a,v(i,12),v(l,12))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(Zg,"CrossingsCounter/lambda$3$Type",1953),H(1954,1,vr,uAt),E.Cd=function(i){pgr(this.a,v(i,12))},K(Zg,"CrossingsCounter/lambda$4$Type",1954),H(1955,1,si,hAt),E.Mb=function(i){return Far(this.a,v(i,12))},K(Zg,"CrossingsCounter/lambda$5$Type",1955),H(1956,1,vr,dAt),E.Cd=function(i){j8t(this,i)},K(Zg,"CrossingsCounter/lambda$6$Type",1956),H(1957,1,vr,i8t),E.Cd=function(i){var l;r8(),Fv(this.b,(l=this.a,v(i,12),l))},K(Zg,"CrossingsCounter/lambda$7$Type",1957),H(839,1,ig,z6e),E.Lb=function(i){return r8(),ya(v(i,12),(At(),kh))},E.Fb=function(i){return this===i},E.Mb=function(i){return r8(),ya(v(i,12),(At(),kh))},K(Zg,"CrossingsCounter/lambda$8$Type",839),H(1949,1,{},fAt),K(Zg,"HyperedgeCrossingsCounter",1949),H(478,1,{34:1,478:1},oOt),E.Fd=function(i){return f2r(this,v(i,478))},E.b=0,E.c=0,E.e=0,E.f=0;var j8r=K(Zg,"HyperedgeCrossingsCounter/Hyperedge",478);H(374,1,{34:1,374:1},pQ),E.Fd=function(i){return A3r(this,v(i,374))},E.b=0,E.c=0;var Ysn=K(Zg,"HyperedgeCrossingsCounter/HyperedgeCorner",374);H(531,22,{3:1,34:1,22:1,531:1},HRe);var wP,EP,jsn=$r(Zg,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",531,jr,mfr,Ccr),Wsn;H(1425,1,hl,wTt),E.rg=function(i){return v(oe(v(i,36),(At(),au)),21).Hc((cl(),wf))?Ksn:null},E.Kf=function(i,l){Fwr(this,v(i,36),l)};var Ksn;K(dl,"InteractiveNodePlacer",1425),H(1426,1,hl,ETt),E.rg=function(i){return v(oe(v(i,36),(At(),au)),21).Hc((cl(),wf))?Xsn:null},E.Kf=function(i,l){E_r(this,v(i,36),l)};var Xsn,wne,Ene;K(dl,"LinearSegmentsNodePlacer",1426),H(261,1,{34:1,261:1},U7e),E.Fd=function(i){return Kir(this,v(i,261))},E.Fb=function(i){var l;return $e(i,261)?(l=v(i,261),this.b==l.b):!1},E.Hb=function(){return this.b},E.Ib=function(){return"ls"+Wv(this.e)},E.a=0,E.b=0,E.c=-1,E.d=-1,E.g=0;var Qsn=K(dl,"LinearSegmentsNodePlacer/LinearSegment",261);H(1428,1,hl,O9t),E.rg=function(i){return v(oe(v(i,36),(At(),au)),21).Hc((cl(),wf))?Zsn:null},E.Kf=function(i,l){QRr(this,v(i,36),l)},E.b=0,E.g=0;var Zsn;K(dl,"NetworkSimplexPlacer",1428),H(1447,1,ui,mwt),E.Ne=function(i,l){return Nc(v(i,17).a,v(l,17).a)},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dl,"NetworkSimplexPlacer/0methodref$compare$Type",1447),H(1449,1,ui,bwt),E.Ne=function(i,l){return Nc(v(i,17).a,v(l,17).a)},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(dl,"NetworkSimplexPlacer/1methodref$compare$Type",1449),H(655,1,{655:1},a8t);var W8r=K(dl,"NetworkSimplexPlacer/EdgeRep",655);H(412,1,{412:1},PNe),E.b=!1;var K8r=K(dl,"NetworkSimplexPlacer/NodeRep",412);H(515,13,{3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1,515:1},g6t),K(dl,"NetworkSimplexPlacer/Path",515),H(1429,1,{},ywt),E.Kb=function(i){return v(i,18).d.i.k},K(dl,"NetworkSimplexPlacer/Path/lambda$0$Type",1429),H(1430,1,si,vwt),E.Mb=function(i){return v(i,273)==(lr(),Ws)},K(dl,"NetworkSimplexPlacer/Path/lambda$1$Type",1430),H(1431,1,{},_wt),E.Kb=function(i){return v(i,18).d.i},K(dl,"NetworkSimplexPlacer/Path/lambda$2$Type",1431),H(1432,1,si,pAt),E.Mb=function(i){return VNt(Wzt(v(i,10)))},K(dl,"NetworkSimplexPlacer/Path/lambda$3$Type",1432),H(1433,1,si,wwt),E.Mb=function(i){return Kur(v(i,12))},K(dl,"NetworkSimplexPlacer/lambda$0$Type",1433),H(1434,1,vr,s8t),E.Cd=function(i){Rsr(this.a,this.b,v(i,12))},K(dl,"NetworkSimplexPlacer/lambda$1$Type",1434),H(1443,1,vr,gAt),E.Cd=function(i){n4r(this.a,v(i,18))},K(dl,"NetworkSimplexPlacer/lambda$10$Type",1443),H(1444,1,{},Ewt),E.Kb=function(i){return Sd(),new xn(null,new Nn(v(i,30).a,16))},K(dl,"NetworkSimplexPlacer/lambda$11$Type",1444),H(1445,1,vr,mAt),E.Cd=function(i){X5r(this.a,v(i,10))},K(dl,"NetworkSimplexPlacer/lambda$12$Type",1445),H(1446,1,{},xwt),E.Kb=function(i){return Sd(),Nt(v(i,125).e)},K(dl,"NetworkSimplexPlacer/lambda$13$Type",1446),H(1448,1,{},Swt),E.Kb=function(i){return Sd(),Nt(v(i,125).e)},K(dl,"NetworkSimplexPlacer/lambda$15$Type",1448),H(1450,1,si,Twt),E.Mb=function(i){return Sd(),v(i,412).c.k==(lr(),is)},K(dl,"NetworkSimplexPlacer/lambda$17$Type",1450),H(1451,1,si,Cwt),E.Mb=function(i){return Sd(),v(i,412).c.j.c.length>1},K(dl,"NetworkSimplexPlacer/lambda$18$Type",1451),H(1452,1,vr,ULt),E.Cd=function(i){Mvr(this.c,this.b,this.d,this.a,v(i,412))},E.c=0,E.d=0,K(dl,"NetworkSimplexPlacer/lambda$19$Type",1452),H(1435,1,{},Awt),E.Kb=function(i){return Sd(),new xn(null,new Nn(v(i,30).a,16))},K(dl,"NetworkSimplexPlacer/lambda$2$Type",1435),H(1453,1,vr,bAt),E.Cd=function(i){Nsr(this.a,v(i,12))},E.a=0,K(dl,"NetworkSimplexPlacer/lambda$20$Type",1453),H(1454,1,{},kwt),E.Kb=function(i){return Sd(),new xn(null,new Nn(v(i,30).a,16))},K(dl,"NetworkSimplexPlacer/lambda$21$Type",1454),H(1455,1,vr,yAt),E.Cd=function(i){qsr(this.a,v(i,10))},K(dl,"NetworkSimplexPlacer/lambda$22$Type",1455),H(1456,1,si,Rwt),E.Mb=function(i){return VNt(i)},K(dl,"NetworkSimplexPlacer/lambda$23$Type",1456),H(1457,1,{},Iwt),E.Kb=function(i){return Sd(),new xn(null,new Nn(v(i,30).a,16))},K(dl,"NetworkSimplexPlacer/lambda$24$Type",1457),H(1458,1,si,vAt),E.Mb=function(i){return Zar(this.a,v(i,10))},K(dl,"NetworkSimplexPlacer/lambda$25$Type",1458),H(1459,1,vr,o8t),E.Cd=function(i){sSr(this.a,this.b,v(i,10))},K(dl,"NetworkSimplexPlacer/lambda$26$Type",1459),H(1460,1,si,Nwt),E.Mb=function(i){return Sd(),!Jo(v(i,18))},K(dl,"NetworkSimplexPlacer/lambda$27$Type",1460),H(1461,1,si,Owt),E.Mb=function(i){return Sd(),!Jo(v(i,18))},K(dl,"NetworkSimplexPlacer/lambda$28$Type",1461),H(1462,1,{},_At),E.Ve=function(i,l){return Isr(this.a,v(i,30),v(l,30))},K(dl,"NetworkSimplexPlacer/lambda$29$Type",1462),H(1436,1,{},Lwt),E.Kb=function(i){return Sd(),new xn(null,new TE(new yr(_r(os(v(i,10)).a.Kc(),new S))))},K(dl,"NetworkSimplexPlacer/lambda$3$Type",1436),H(1437,1,si,Dwt),E.Mb=function(i){return Sd(),o1r(v(i,18))},K(dl,"NetworkSimplexPlacer/lambda$4$Type",1437),H(1438,1,vr,wAt),E.Cd=function(i){akr(this.a,v(i,18))},K(dl,"NetworkSimplexPlacer/lambda$5$Type",1438),H(1439,1,{},Mwt),E.Kb=function(i){return Sd(),new xn(null,new Nn(v(i,30).a,16))},K(dl,"NetworkSimplexPlacer/lambda$6$Type",1439),H(1440,1,si,Pwt),E.Mb=function(i){return Sd(),v(i,10).k==(lr(),is)},K(dl,"NetworkSimplexPlacer/lambda$7$Type",1440),H(1441,1,{},Bwt),E.Kb=function(i){return Sd(),new xn(null,new TE(new yr(_r(Qm(v(i,10)).a.Kc(),new S))))},K(dl,"NetworkSimplexPlacer/lambda$8$Type",1441),H(1442,1,si,Fwt),E.Mb=function(i){return Sd(),Wur(v(i,18))},K(dl,"NetworkSimplexPlacer/lambda$9$Type",1442),H(1424,1,hl,xTt),E.rg=function(i){return v(oe(v(i,36),(At(),au)),21).Hc((cl(),wf))?Jsn:null},E.Kf=function(i,l){$kr(v(i,36),l)};var Jsn;K(dl,"SimpleNodePlacer",1424),H(185,1,{185:1},c5),E.Ib=function(){var i;return i="",this.c==(Kp(),Cx)?i+=i6:this.c==Ey&&(i+=r6),this.o==(G1(),fw)?i+=cge:this.o==sp?i+="UP":i+="BALANCED",i},K(n2,"BKAlignedLayout",185),H(523,22,{3:1,34:1,22:1,523:1},VRe);var Ey,Cx,eon=$r(n2,"BKAlignedLayout/HDirection",523,jr,yfr,Acr),ton;H(522,22,{3:1,34:1,22:1,522:1},YRe);var fw,sp,non=$r(n2,"BKAlignedLayout/VDirection",522,jr,vfr,kcr),ron;H(1699,1,{},l8t),K(n2,"BKAligner",1699),H(1702,1,{},vqt),K(n2,"BKCompactor",1702),H(663,1,{663:1},$wt),E.a=0,K(n2,"BKCompactor/ClassEdge",663),H(467,1,{467:1},d6t),E.a=null,E.b=0,K(n2,"BKCompactor/ClassNode",467),H(1427,1,hl,d8t),E.rg=function(i){return v(oe(v(i,36),(At(),au)),21).Hc((cl(),wf))?ion:null},E.Kf=function(i,l){g8r(this,v(i,36),l)},E.d=!1;var ion;K(n2,"BKNodePlacer",1427),H(1700,1,{},Uwt),E.d=0,K(n2,"NeighborhoodInformation",1700),H(1701,1,ui,EAt),E.Ne=function(i,l){return qgr(this,v(i,42),v(l,42))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(n2,"NeighborhoodInformation/NeighborComparator",1701),H(823,1,{}),K(n2,"ThresholdStrategy",823),H(1825,823,{},f6t),E.wg=function(i,l,d){return this.a.o==(G1(),sp)?ka:Ss},E.xg=function(){},K(n2,"ThresholdStrategy/NullThresholdStrategy",1825),H(587,1,{587:1},f8t),E.c=!1,E.d=!1,K(n2,"ThresholdStrategy/Postprocessable",587),H(1826,823,{},p6t),E.wg=function(i,l,d){var g,y,x;return y=l==d,g=this.a.a[d.p]==l,y||g?(x=i,this.a.c==(Kp(),Cx)?(y&&(x=lpe(this,l,!0)),!isNaN(x)&&!isFinite(x)&&g&&(x=lpe(this,d,!1))):(y&&(x=lpe(this,l,!0)),!isNaN(x)&&!isFinite(x)&&g&&(x=lpe(this,d,!1))),x):i},E.xg=function(){for(var i,l,d,g,y;this.d.b!=0;)y=v(Dfr(this.d),587),g=Vjt(this,y),g.a&&(i=g.a,d=Vt(this.a.f[this.a.g[y.b.p].p]),!(!d&&!Jo(i)&&i.c.i.c==i.d.i.c)&&(l=XVt(this,y),l||tsr(this.e,y)));for(;this.e.a.c.length!=0;)XVt(this,v(QUt(this.e),587))},K(n2,"ThresholdStrategy/SimpleThresholdStrategy",1826),H(645,1,{645:1,188:1,196:1},zwt),E.dg=function(){return sUt(this)},E.qg=function(){return sUt(this)};var _ve;K(ome,"EdgeRouterFactory",645),H(1485,1,hl,STt),E.rg=function(i){return C5r(v(i,36))},E.Kf=function(i,l){Vkr(v(i,36),l)};var aon,son,oon,lon,con,YVe,uon,hon;K(ome,"OrthogonalEdgeRouter",1485),H(1478,1,hl,h8t),E.rg=function(i){return Wwr(v(i,36))},E.Kf=function(i,l){gRr(this,v(i,36),l)};var don,fon,pon,gon,Hq,mon;K(ome,"PolylineEdgeRouter",1478),H(1479,1,ig,qwt),E.Lb=function(i){return L9e(v(i,10))},E.Fb=function(i){return this===i},E.Mb=function(i){return L9e(v(i,10))},K(ome,"PolylineEdgeRouter/1",1479),H(1872,1,si,Hwt),E.Mb=function(i){return v(i,132).c==(o1(),d2)},K(f1,"HyperEdgeCycleDetector/lambda$0$Type",1872),H(1873,1,{},Vwt),E.Ze=function(i){return v(i,132).d},K(f1,"HyperEdgeCycleDetector/lambda$1$Type",1873),H(1874,1,si,Ywt),E.Mb=function(i){return v(i,132).c==(o1(),d2)},K(f1,"HyperEdgeCycleDetector/lambda$2$Type",1874),H(1875,1,{},jwt),E.Ze=function(i){return v(i,132).d},K(f1,"HyperEdgeCycleDetector/lambda$3$Type",1875),H(1876,1,{},Wwt),E.Ze=function(i){return v(i,132).d},K(f1,"HyperEdgeCycleDetector/lambda$4$Type",1876),H(1877,1,{},Gwt),E.Ze=function(i){return v(i,132).d},K(f1,"HyperEdgeCycleDetector/lambda$5$Type",1877),H(118,1,{34:1,118:1},Mz),E.Fd=function(i){return Xir(this,v(i,118))},E.Fb=function(i){var l;return $e(i,118)?(l=v(i,118),this.g==l.g):!1},E.Hb=function(){return this.g},E.Ib=function(){var i,l,d,g;for(i=new Ed("{"),g=new me(this.n);g.a"+this.b+" ("+bor(this.c)+")"},E.d=0,K(f1,"HyperEdgeSegmentDependency",132),H(528,22,{3:1,34:1,22:1,528:1},jRe);var d2,n3,bon=$r(f1,"HyperEdgeSegmentDependency/DependencyType",528,jr,_fr,Rcr),yon;H(1878,1,{},xAt),K(f1,"HyperEdgeSegmentSplitter",1878),H(1879,1,{},g7t),E.a=0,E.b=0,K(f1,"HyperEdgeSegmentSplitter/AreaRating",1879),H(339,1,{339:1},lde),E.a=0,E.b=0,E.c=0,K(f1,"HyperEdgeSegmentSplitter/FreeArea",339),H(1880,1,ui,Kwt),E.Ne=function(i,l){return blr(v(i,118),v(l,118))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(f1,"HyperEdgeSegmentSplitter/lambda$0$Type",1880),H(1881,1,vr,zLt),E.Cd=function(i){V1r(this.a,this.d,this.c,this.b,v(i,118))},E.b=0,K(f1,"HyperEdgeSegmentSplitter/lambda$1$Type",1881),H(1882,1,{},Xwt),E.Kb=function(i){return new xn(null,new Nn(v(i,118).e,16))},K(f1,"HyperEdgeSegmentSplitter/lambda$2$Type",1882),H(1883,1,{},Qwt),E.Kb=function(i){return new xn(null,new Nn(v(i,118).j,16))},K(f1,"HyperEdgeSegmentSplitter/lambda$3$Type",1883),H(1884,1,{},Zwt),E.Ye=function(i){return We(at(i))},K(f1,"HyperEdgeSegmentSplitter/lambda$4$Type",1884),H(664,1,{},Lde),E.a=0,E.b=0,E.c=0,K(f1,"OrthogonalRoutingGenerator",664),H(1703,1,{},Jwt),E.Kb=function(i){return new xn(null,new Nn(v(i,118).e,16))},K(f1,"OrthogonalRoutingGenerator/lambda$0$Type",1703),H(1704,1,{},eEt),E.Kb=function(i){return new xn(null,new Nn(v(i,118).j,16))},K(f1,"OrthogonalRoutingGenerator/lambda$1$Type",1704),H(670,1,{}),K(lme,"BaseRoutingDirectionStrategy",670),H(1870,670,{},y6t),E.yg=function(i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le,de;if(!(i.r&&!i.q))for(q=l+i.o*d,D=new me(i.n);D.asg&&(x=q,y=i,g=new Ct(J,x),pi(T.a,g),QE(this,T,y,g,!1),re=i.r,re&&(ae=We(at(gf(re.e,0))),g=new Ct(ae,x),pi(T.a,g),QE(this,T,y,g,!1),x=l+re.o*d,y=re,g=new Ct(ae,x),pi(T.a,g),QE(this,T,y,g,!1)),g=new Ct(de,x),pi(T.a,g),QE(this,T,y,g,!1)))},E.zg=function(i){return i.i.n.a+i.n.a+i.a.a},E.Ag=function(){return Bt(),Mr},E.Bg=function(){return Bt(),or},K(lme,"NorthToSouthRoutingStrategy",1870),H(1871,670,{},v6t),E.yg=function(i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le,de;if(!(i.r&&!i.q))for(q=l-i.o*d,D=new me(i.n);D.asg&&(x=q,y=i,g=new Ct(J,x),pi(T.a,g),QE(this,T,y,g,!1),re=i.r,re&&(ae=We(at(gf(re.e,0))),g=new Ct(ae,x),pi(T.a,g),QE(this,T,y,g,!1),x=l-re.o*d,y=re,g=new Ct(ae,x),pi(T.a,g),QE(this,T,y,g,!1)),g=new Ct(de,x),pi(T.a,g),QE(this,T,y,g,!1)))},E.zg=function(i){return i.i.n.a+i.n.a+i.a.a},E.Ag=function(){return Bt(),or},E.Bg=function(){return Bt(),Mr},K(lme,"SouthToNorthRoutingStrategy",1871),H(1869,670,{},_6t),E.yg=function(i,l,d){var g,y,x,T,R,O,D,q,J,re,ae,le,de;if(!(i.r&&!i.q))for(q=l+i.o*d,D=new me(i.n);D.asg&&(x=q,y=i,g=new Ct(x,J),pi(T.a,g),QE(this,T,y,g,!0),re=i.r,re&&(ae=We(at(gf(re.e,0))),g=new Ct(x,ae),pi(T.a,g),QE(this,T,y,g,!0),x=l+re.o*d,y=re,g=new Ct(x,ae),pi(T.a,g),QE(this,T,y,g,!0)),g=new Ct(x,de),pi(T.a,g),QE(this,T,y,g,!0)))},E.zg=function(i){return i.i.n.b+i.n.b+i.a.b},E.Ag=function(){return Bt(),gr},E.Bg=function(){return Bt(),cr},K(lme,"WestToEastRoutingStrategy",1869),H(828,1,{},NPe),E.Ib=function(){return Wv(this.a)},E.b=0,E.c=!1,E.d=!1,E.f=0,K(O4,"NubSpline",828),H(418,1,{418:1},RYt,vDt),K(O4,"NubSpline/PolarCP",418),H(1480,1,hl,hqt),E.rg=function(i){return BEr(v(i,36))},E.Kf=function(i,l){DRr(this,v(i,36),l)};var von,_on,won,Eon,xon;K(O4,"SplineEdgeRouter",1480),H(274,1,{274:1},BQ),E.Ib=function(){return this.a+" ->("+this.c+") "+this.b},E.c=0,K(O4,"SplineEdgeRouter/Dependency",274),H(465,22,{3:1,34:1,22:1,465:1},WRe);var f2,H5,Son=$r(O4,"SplineEdgeRouter/SideToProcess",465,jr,Cfr,Icr),Ton;H(1481,1,si,tEt),E.Mb=function(i){return aM(),!v(i,131).o},K(O4,"SplineEdgeRouter/lambda$0$Type",1481),H(1482,1,{},nEt),E.Ze=function(i){return aM(),v(i,131).v+1},K(O4,"SplineEdgeRouter/lambda$1$Type",1482),H(1483,1,vr,p8t),E.Cd=function(i){Zur(this.a,this.b,v(i,42))},K(O4,"SplineEdgeRouter/lambda$2$Type",1483),H(1484,1,vr,g8t),E.Cd=function(i){Jur(this.a,this.b,v(i,42))},K(O4,"SplineEdgeRouter/lambda$3$Type",1484),H(131,1,{34:1,131:1},qHt,BPe),E.Fd=function(i){return Jir(this,v(i,131))},E.b=0,E.e=!1,E.f=0,E.g=0,E.j=!1,E.k=!1,E.n=0,E.o=!1,E.p=!1,E.q=!1,E.s=0,E.u=0,E.v=0,E.F=0,K(O4,"SplineSegment",131),H(468,1,{468:1},rEt),E.a=0,E.b=!1,E.c=!1,E.d=!1,E.e=!1,E.f=0,K(O4,"SplineSegment/EdgeInformation",468),H(1198,1,{},iEt),K(sb,DBe,1198),H(1199,1,ui,aEt),E.Ne=function(i,l){return v4r(v(i,121),v(l,121))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(sb,$Xt,1199),H(1197,1,{},N7t),K(sb,"MrTree",1197),H(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},oX),E.dg=function(){return uVt(this)},E.qg=function(){return uVt(this)};var xne,xP,SP,TP,jVe=$r(sb,"TreeLayoutPhases",405,jr,k1r,Ncr),Con;H(1112,205,K_,aOt),E.rf=function(i,l){var d,g,y,x,T,R,O,D;for(Vt(Ht(Et(i,(pc(),yYe))))||oz((d=new dL((fE(),new aE(i))),d)),T=l.eh(hme),T.Ug("build tGraph",1),R=(O=new mz,Ul(O,i),_t(O,(fa(),AP),i),D=new Br,hAr(i,O,D),IAr(i,O,D),O),T.Vg(),T=l.eh(hme),T.Ug("Split graph",1),x=bAr(this.a,R),T.Vg(),y=new me(x);y.a"+I_(this.c):"e_"+ma(this)},K(NM,"TEdge",65),H(121,137,{3:1,121:1,96:1,137:1},mz),E.Ib=function(){var i,l,d,g,y;for(y=null,g=Ur(this.b,0);g.b!=g.d.c;)d=v(Fr(g),40),y+=(d.c==null||d.c.length==0?"n_"+d.g:"n_"+d.c)+` `;for(l=Ur(this.a,0);l.b!=l.d.c;)i=v(Fr(l),65),y+=(i.b&&i.c?I_(i.b)+"->"+I_(i.c):"e_"+ma(i))+` `;return y};var X8r=K(NM,"TGraph",121);H(643,508,{3:1,508:1,643:1,96:1,137:1}),K(NM,"TShape",643),H(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},h0e),E.Ib=function(){return I_(this)};var Sne=K(NM,"TNode",40);H(236,1,jg,Mm),E.Jc=function(i){To(this,i)},E.Kc=function(){var i;return i=Ur(this.a.d,0),new xT(i)},K(NM,"TNode/2",236),H(329,1,io,xT),E.Nb=function(i){xo(this,i)},E.Pb=function(){return v(Fr(this.a),65).c},E.Ob=function(){return hU(this.a)},E.Qb=function(){$fe(this.a)},K(NM,"TNode/2/1",329),H(1923,1,ba,dEt),E.Kf=function(i,l){u8r(this,v(i,121),l)},K(nu,"CompactionProcessor",1923),H(1924,1,ui,kAt),E.Ne=function(i,l){return Qmr(this.a,v(i,40),v(l,40))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(nu,"CompactionProcessor/lambda$0$Type",1924),H(1925,1,si,b8t),E.Mb=function(i){return rfr(this.b,this.a,v(i,42))},E.a=0,E.b=0,K(nu,"CompactionProcessor/lambda$1$Type",1925),H(1934,1,ui,fEt),E.Ne=function(i,l){return Whr(v(i,40),v(l,40))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(nu,"CompactionProcessor/lambda$10$Type",1934),H(1935,1,ui,pEt),E.Ne=function(i,l){return oor(v(i,40),v(l,40))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(nu,"CompactionProcessor/lambda$11$Type",1935),H(1936,1,ui,gEt),E.Ne=function(i,l){return Khr(v(i,40),v(l,40))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(nu,"CompactionProcessor/lambda$12$Type",1936),H(1926,1,si,RAt),E.Mb=function(i){return Hsr(this.a,v(i,42))},E.a=0,K(nu,"CompactionProcessor/lambda$2$Type",1926),H(1927,1,si,IAt),E.Mb=function(i){return Vsr(this.a,v(i,42))},E.a=0,K(nu,"CompactionProcessor/lambda$3$Type",1927),H(1928,1,si,mEt),E.Mb=function(i){return v(i,40).c.indexOf(_ee)==-1},K(nu,"CompactionProcessor/lambda$4$Type",1928),H(1929,1,{},NAt),E.Kb=function(i){return a1r(this.a,v(i,40))},E.a=0,K(nu,"CompactionProcessor/lambda$5$Type",1929),H(1930,1,{},OAt),E.Kb=function(i){return fgr(this.a,v(i,40))},E.a=0,K(nu,"CompactionProcessor/lambda$6$Type",1930),H(1931,1,ui,LAt),E.Ne=function(i,l){return Spr(this.a,v(i,240),v(l,240))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(nu,"CompactionProcessor/lambda$7$Type",1931),H(1932,1,ui,DAt),E.Ne=function(i,l){return Tpr(this.a,v(i,40),v(l,40))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(nu,"CompactionProcessor/lambda$8$Type",1932),H(1933,1,ui,bEt),E.Ne=function(i,l){return lor(v(i,40),v(l,40))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(nu,"CompactionProcessor/lambda$9$Type",1933),H(1921,1,ba,yEt),E.Kf=function(i,l){sCr(v(i,121),l)},K(nu,"DirectionProcessor",1921),H(1913,1,ba,iOt),E.Kf=function(i,l){kAr(this,v(i,121),l)},K(nu,"FanProcessor",1913),H(1937,1,ba,vEt),E.Kf=function(i,l){W5r(v(i,121),l)},K(nu,"GraphBoundsProcessor",1937),H(1938,1,{},_Et),E.Ye=function(i){return v(i,40).e.a},K(nu,"GraphBoundsProcessor/lambda$0$Type",1938),H(1939,1,{},wEt),E.Ye=function(i){return v(i,40).e.b},K(nu,"GraphBoundsProcessor/lambda$1$Type",1939),H(1940,1,{},EEt),E.Ye=function(i){return Aar(v(i,40))},K(nu,"GraphBoundsProcessor/lambda$2$Type",1940),H(1941,1,{},xEt),E.Ye=function(i){return Car(v(i,40))},K(nu,"GraphBoundsProcessor/lambda$3$Type",1941),H(262,22,{3:1,34:1,22:1,262:1,196:1},pE),E.dg=function(){switch(this.g){case 0:return new D6t;case 1:return new iOt;case 2:return new L6t;case 3:return new kEt;case 4:return new TEt;case 8:return new SEt;case 5:return new yEt;case 6:return new IEt;case 7:return new dEt;case 9:return new vEt;case 10:return new NEt;default:throw _e(new ar(Age+(this.f!=null?this.f:""+this.g)))}};var WVe,KVe,XVe,QVe,ZVe,JVe,eYe,tYe,nYe,rYe,wve,Q8r=$r(nu,kge,262,jr,Z$t,Ocr),Aon;H(1920,1,ba,SEt),E.Kf=function(i,l){oRr(v(i,121),l)},K(nu,"LevelCoordinatesProcessor",1920),H(1918,1,ba,TEt),E.Kf=function(i,l){kTr(this,v(i,121),l)},E.a=0,K(nu,"LevelHeightProcessor",1918),H(1919,1,jg,CEt),E.Jc=function(i){To(this,i)},E.Kc=function(){return Fn(),WR(),YI},K(nu,"LevelHeightProcessor/1",1919),H(1914,1,ba,L6t),E.Kf=function(i,l){G5r(this,v(i,121),l)},K(nu,"LevelProcessor",1914),H(1915,1,si,AEt),E.Mb=function(i){return Vt(Ht(oe(v(i,40),(fa(),p2))))},K(nu,"LevelProcessor/lambda$0$Type",1915),H(1916,1,ba,kEt),E.Kf=function(i,l){TSr(this,v(i,121),l)},E.a=0,K(nu,"NeighborsProcessor",1916),H(1917,1,jg,REt),E.Jc=function(i){To(this,i)},E.Kc=function(){return Fn(),WR(),YI},K(nu,"NeighborsProcessor/1",1917),H(1922,1,ba,IEt),E.Kf=function(i,l){AAr(this,v(i,121),l)},E.a=0,K(nu,"NodePositionProcessor",1922),H(1912,1,ba,D6t),E.Kf=function(i,l){c6r(this,v(i,121),l)},K(nu,"RootProcessor",1912),H(1942,1,ba,NEt),E.Kf=function(i,l){a_r(v(i,121),l)},K(nu,"Untreeifyer",1942),H(392,22,{3:1,34:1,22:1,392:1},xhe);var Vq,Eve,iYe,aYe=$r(rq,"EdgeRoutingMode",392,jr,w0r,Lcr),kon,Yq,gN,xve,sYe,oYe,Sve,Tve,lYe,Cve,cYe,Ave,CP,kve,Tne,Cne,L0,b1,mN,AP,kP,xy,uYe,Ron,Rve,p2,jq,Wq;H(862,1,Hf,TTt),E.hf=function(i){pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,b$e),""),NQt),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(Qn(),!1)),(dy(),Gs)),rs),bn((d1(),Hn))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,y$e),""),"Edge End Texture Length"),"Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing."),7),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,v$e),""),"Tree Level"),"The index for the tree level the node is in"),Nt(0)),Zl),Ao),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,_$e),""),NQt),"When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint"),Nt(-1)),Zl),Ao),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,w$e),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),fYe),Ra),TYe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,E$e),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),hYe),Ra),aYe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,x$e),""),"Search Order"),"Which search order to use when computing a spanning tree."),dYe),Ra),AYe),bn(Hn)))),_Kt((new kTt,i))};var Ion,Non,Oon,hYe,Lon,Don,dYe,Mon,Pon,fYe;K(rq,"MrTreeMetaDataProvider",862),H(1006,1,Hf,kTt),E.hf=function(i){_Kt(i)};var Bon,pYe,gYe,Ax,mYe,bYe,Ive,Fon,$on,Uon,zon,Gon,qon,Hon,yYe,vYe,_Ye,Von,V5,Ane,wYe,Yon,EYe,Nve,jon,Won,Kon,xYe,Xon,gg,SYe;K(rq,"MrTreeOptions",1006),H(1007,1,{},OEt),E.sf=function(){var i;return i=new aOt,i},E.tf=function(i){},K(rq,"MrTreeOptions/MrtreeFactory",1007),H(353,22,{3:1,34:1,22:1,353:1},lX);var Ove,kne,Lve,Dve,TYe=$r(rq,"OrderWeighting",353,jr,R1r,Dcr),Qon;H(433,22,{3:1,34:1,22:1,433:1},KRe);var CYe,Mve,AYe=$r(rq,"TreeifyingOrder",433,jr,Sfr,Mcr),Zon;H(1486,1,hl,RTt),E.rg=function(i){return v(i,121),Jon},E.Kf=function(i,l){$mr(this,v(i,121),l)};var Jon;K("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1486),H(1487,1,hl,ITt),E.rg=function(i){return v(i,121),eln},E.Kf=function(i,l){Y5r(this,v(i,121),l)};var eln;K(LI,"NodeOrderer",1487),H(1494,1,{},urr),E.td=function(i){return h9t(i)},K(LI,"NodeOrderer/0methodref$lambda$6$Type",1494),H(1488,1,si,WEt),E.Mb=function(i){return Pk(),Vt(Ht(oe(v(i,40),(fa(),p2))))},K(LI,"NodeOrderer/lambda$0$Type",1488),H(1489,1,si,KEt),E.Mb=function(i){return Pk(),v(oe(v(i,40),(pc(),V5)),17).a<0},K(LI,"NodeOrderer/lambda$1$Type",1489),H(1490,1,si,PAt),E.Mb=function(i){return pmr(this.a,v(i,40))},K(LI,"NodeOrderer/lambda$2$Type",1490),H(1491,1,si,MAt),E.Mb=function(i){return l1r(this.a,v(i,40))},K(LI,"NodeOrderer/lambda$3$Type",1491),H(1492,1,ui,XEt),E.Ne=function(i,l){return Bgr(v(i,40),v(l,40))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(LI,"NodeOrderer/lambda$4$Type",1492),H(1493,1,si,QEt),E.Mb=function(i){return Pk(),v(oe(v(i,40),(fa(),Tve)),17).a!=0},K(LI,"NodeOrderer/lambda$5$Type",1493),H(1495,1,hl,ATt),E.rg=function(i){return v(i,121),tln},E.Kf=function(i,l){eAr(this,v(i,121),l)},E.b=0;var tln;K("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1495),H(1496,1,hl,CTt),E.rg=function(i){return v(i,121),nln},E.Kf=function(i,l){PCr(v(i,121),l)};var nln,Z8r=K(hd,"EdgeRouter",1496);H(1498,1,ui,jEt),E.Ne=function(i,l){return Nc(v(i,17).a,v(l,17).a)},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"EdgeRouter/0methodref$compare$Type",1498),H(1503,1,{},DEt),E.Ye=function(i){return We(at(i))},K(hd,"EdgeRouter/1methodref$doubleValue$Type",1503),H(1505,1,ui,MEt),E.Ne=function(i,l){return ha(We(at(i)),We(at(l)))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"EdgeRouter/2methodref$compare$Type",1505),H(1507,1,ui,PEt),E.Ne=function(i,l){return ha(We(at(i)),We(at(l)))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"EdgeRouter/3methodref$compare$Type",1507),H(1509,1,{},LEt),E.Ye=function(i){return We(at(i))},K(hd,"EdgeRouter/4methodref$doubleValue$Type",1509),H(1511,1,ui,BEt),E.Ne=function(i,l){return ha(We(at(i)),We(at(l)))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"EdgeRouter/5methodref$compare$Type",1511),H(1513,1,ui,FEt),E.Ne=function(i,l){return ha(We(at(i)),We(at(l)))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"EdgeRouter/6methodref$compare$Type",1513),H(1497,1,{},$Et),E.Kb=function(i){return jm(),v(oe(v(i,40),(pc(),gg)),17)},K(hd,"EdgeRouter/lambda$0$Type",1497),H(1508,1,{},UEt),E.Kb=function(i){return Eor(v(i,40))},K(hd,"EdgeRouter/lambda$11$Type",1508),H(1510,1,{},y8t),E.Kb=function(i){return Xur(this.b,this.a,v(i,40))},E.a=0,E.b=0,K(hd,"EdgeRouter/lambda$13$Type",1510),H(1512,1,{},v8t),E.Kb=function(i){return xor(this.b,this.a,v(i,40))},E.a=0,E.b=0,K(hd,"EdgeRouter/lambda$15$Type",1512),H(1514,1,ui,zEt),E.Ne=function(i,l){return M2r(v(i,65),v(l,65))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"EdgeRouter/lambda$17$Type",1514),H(1515,1,ui,GEt),E.Ne=function(i,l){return P2r(v(i,65),v(l,65))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"EdgeRouter/lambda$18$Type",1515),H(1516,1,ui,qEt),E.Ne=function(i,l){return F2r(v(i,65),v(l,65))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"EdgeRouter/lambda$19$Type",1516),H(1499,1,si,BAt),E.Mb=function(i){return $fr(this.a,v(i,40))},E.a=0,K(hd,"EdgeRouter/lambda$2$Type",1499),H(1517,1,ui,HEt),E.Ne=function(i,l){return B2r(v(i,65),v(l,65))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"EdgeRouter/lambda$20$Type",1517),H(1500,1,ui,VEt),E.Ne=function(i,l){return Pur(v(i,40),v(l,40))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"EdgeRouter/lambda$3$Type",1500),H(1501,1,ui,YEt),E.Ne=function(i,l){return Bur(v(i,40),v(l,40))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"EdgeRouter/lambda$4$Type",1501),H(1502,1,{},ZEt),E.Kb=function(i){return Sor(v(i,40))},K(hd,"EdgeRouter/lambda$5$Type",1502),H(1504,1,{},_8t),E.Kb=function(i){return Qur(this.b,this.a,v(i,40))},E.a=0,E.b=0,K(hd,"EdgeRouter/lambda$7$Type",1504),H(1506,1,{},w8t),E.Kb=function(i){return Tor(this.b,this.a,v(i,40))},E.a=0,E.b=0,K(hd,"EdgeRouter/lambda$9$Type",1506),H(675,1,{675:1},JGt),E.e=0,E.f=!1,E.g=!1,K(hd,"MultiLevelEdgeNodeNodeGap",675),H(1943,1,ui,JEt),E.Ne=function(i,l){return Kfr(v(i,240),v(l,240))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1943),H(1944,1,ui,ext),E.Ne=function(i,l){return Xfr(v(i,240),v(l,240))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(hd,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1944);var Y5;H(501,22,{3:1,34:1,22:1,501:1,188:1,196:1},XRe),E.dg=function(){return $zt(this)},E.qg=function(){return $zt(this)};var Rne,j5,kYe=$r(S$e,"RadialLayoutPhases",501,jr,bfr,Pcr),rln;H(1113,205,K_,I7t),E.rf=function(i,l){var d,g,y,x,T,R;if(d=SYt(this,i),l.Ug("Radial layout",d.c.length),Vt(Ht(Et(i,(Xv(),$Ye))))||oz((g=new dL((fE(),new aE(i))),g)),R=UEr(i),sa(i,(UT(),Y5),R),!R)throw _e(new ar("The given graph is not a tree!"));for(y=We(at(Et(i,One))),y==0&&(y=iVt(i)),sa(i,One,y),T=new me(SYt(this,i));T.a=3)for(xt=v(ze(je,0),27),Mt=v(ze(je,1),27),x=0;x+2=xt.f+Mt.f+q||Mt.f>=yt.f+xt.f+q){yn=!0;break}else++x;else yn=!0;if(!yn){for(re=je.i,R=new mr(je);R.e!=R.i.gc();)T=v(wr(R),27),sa(T,(Ei(),lH),Nt(re)),--re;eWt(i,new tk),l.Vg();return}for(d=(nz(this.a),a1(this.a,(BZ(),Xq),v(Et(i,pje),188)),a1(this.a,Lne,v(Et(i,lje),188)),a1(this.a,jve,v(Et(i,hje),188)),p8e(this.a,(Kn=new ms,yi(Kn,Xq,(WZ(),Xve)),yi(Kn,Lne,Kve),Vt(Ht(Et(i,sje)))&&yi(Kn,Xq,Wve),Kn)),kG(this.a,i)),D=1/d.c.length,le=new me(d);le.a0&&czt((sr(l-1,i.length),i.charCodeAt(l-1)),XXt);)--l;if(g>=l)throw _e(new ar("The given string does not contain any numbers."));if(y=T4((mo(g,l,i.length),i.substr(g,l-g)),`,|;|\r| `),y.length!=2)throw _e(new ar("Exactly two numbers are expected, "+y.length+" were found."));try{this.a=y4(v4(y[0])),this.b=y4(v4(y[1]))}catch(x){throw x=Da(x),$e(x,130)?(d=x,_e(new ar(QXt+d))):_e(x)}},E.Ib=function(){return"("+this.a+","+this.b+")"},E.a=0,E.b=0;var Vs=K(ZG,"KVector",8);H(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},ah,MK,kNt),E.Pc=function(){return nyr(this)},E.cg=function(i){var l,d,g,y,x,T;g=T4(i,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | `),xd(this);try{for(d=0,x=0,y=0,T=0;d0&&(x%2==0?y=y4(g[d]):T=y4(g[d]),x>0&&x%2!=0&&pi(this,new Ct(y,T)),++x),++d}catch(R){throw R=Da(R),$e(R,130)?(l=R,_e(new ar("The given string does not match the expected format for vectors."+l))):_e(R)}},E.Ib=function(){var i,l,d;for(i=new Ed("("),l=Ur(this,0);l.b!=l.d.c;)d=v(Fr(l),8),bi(i,d.a+","+d.b),l.b!=l.d.c&&(i.a+="; ");return(i.a+=")",i).a};var Qje=K(ZG,"KVectorChain",75);H(255,22,{3:1,34:1,22:1,255:1},FL);var m2e,qne,Hne,tH,nH,Vne,Zje=$r(Yh,"Alignment",255,jr,Jpr,sur),Bcn;H(991,1,Hf,$Tt),E.hf=function(i){Bjt(i)};var Jje,b2e,Fcn,eWe,tWe,$cn,nWe,Ucn,zcn,rWe,iWe,Gcn;K(Yh,"BoxLayouterOptions",991),H(992,1,{},lSt),E.sf=function(){var i;return i=new hSt,i},E.tf=function(i){},K(Yh,"BoxLayouterOptions/BoxFactory",992),H(298,22,{3:1,34:1,22:1,298:1},$L);var PP,y2e,BP,FP,$P,v2e,_2e=$r(Yh,"ContentAlignment",298,jr,egr,our),qcn;H(699,1,Hf,W6e),E.hf=function(i){pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,ZQt),""),"Layout Algorithm"),"Select a specific layout algorithm."),(dy(),K5)),Xt),bn((d1(),Hn))))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,JQt),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),op),tIr),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,jFe),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),aWe),Ra),Zje),bn(Fs)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,s6),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,sUe),""),"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."),op),Qje),bn(mg)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,gee),""),"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."),oWe),k6),_2e),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,nq),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Qn(),!1)),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,ime),""),ABe),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),lWe),Ra),zP),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,tq),""),"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."),hWe),Ra),D2e),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,iUe),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,pee),""),"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`."),pWe),Ra),eKe),va(Hn,Te(xe(rm,1),wt,170,0,[Fs]))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,rx),""),"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."),xWe),op),SGe),va(Hn,Te(xe(rm,1),wt,170,0,[Fs]))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,SM),""),"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),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,bee),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,TM),""),"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),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,Sge),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),kWe),Ra),rKe),bn(Fs)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,mee),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),op),Vs),va(Fs,Te(xe(rm,1),wt,170,0,[pw,Sy]))))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,YG),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),Zl),Ao),va(Fs,Te(xe(rm,1),wt,170,0,[mg]))))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,XJ),""),"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)."),Zl),Ao),bn(Hn)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,xM),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,i$e),""),"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."),gWe),op),Qje),bn(mg)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,o$e),""),"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),Gs),rs),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,l$e),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),Gs),rs),bn(Fs)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,k8r),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),op),sIr),va(Hn,Te(xe(rm,1),wt,170,0,[Sy]))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,u$e),""),"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."),mWe),op),xGe),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,VFe),""),"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),Gs),rs),va(Fs,Te(xe(rm,1),wt,170,0,[mg,pw,Sy]))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,eZt),""),"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),Fo),ws),bn(Fs)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,tZt),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,nZt),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,jG),""),jQt),"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),Gs),rs),bn(Hn)))),bs(i,jG,ix,null),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,rZt),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,iZt),""),"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'."),Nt(100)),Zl),Ao),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,aZt),""),"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),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,sZt),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Nt(4e3)),Zl),Ao),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,oZt),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Nt(400)),Zl),Ao),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,lZt),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,cZt),""),"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),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,uZt),""),"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),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,hZt),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,aUe),"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."),sWe),Ra),fKe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,DFe),np),"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),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,MFe),np),"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),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,bge),np),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,PFe),np),"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),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,xge),np),"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),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,rme),np),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,BFe),np),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,UFe),np),"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),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,FFe),np),"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),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,$Fe),np),"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),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,N4),np),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,zFe),np),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Fo),ws),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,GFe),np),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Fo),ws),va(Hn,Te(xe(rm,1),wt,170,0,[Fs]))))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,qFe),np),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),op),Iun),va(Fs,Te(xe(rm,1),wt,170,0,[mg,pw,Sy]))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,h$e),np),"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."),$We),op),xGe),bn(Hn)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,sme),pZt),"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)."),Zl),Ao),va(Hn,Te(xe(rm,1),wt,170,0,[Fs]))))),bs(i,sme,ame,Zcn),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,ame),pZt),"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."),SWe),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,XFe),gZt),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),yWe),op),SGe),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,II),gZt),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),vWe),k6),fl),va(Fs,Te(xe(rm,1),wt,170,0,[Sy]))))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,JFe),Aee),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),CWe),Ra),VP),bn(Fs)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,e$e),Aee),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),Ra),VP),bn(Fs)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,t$e),Aee),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),Ra),VP),bn(Fs)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,n$e),Aee),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),Ra),VP),bn(Fs)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,r$e),Aee),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),Ra),VP),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,y5),kme),"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."),_We),k6),WP),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,o6),kme),"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."),EWe),k6),aKe),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,l6),kme),"Node Size Minimum"),"The minimal size to which a node can be reduced."),wWe),op),Vs),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,RI),kme),"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),Gs),rs),bn(Hn)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,a$e),nme),"Edge Label Placement"),"Gives a hint on where to put edge labels."),cWe),Ra),GWe),bn(Sy)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,QJ),nme),"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),Gs),rs),bn(Sy)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,R8r),"font"),"Font Name"),"Font name used for a label."),K5),Xt),bn(Sy)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,dZt),"font"),"Font Size"),"Font size used for a label."),Zl),Ao),bn(Sy)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,c$e),Rme),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),op),Vs),bn(pw)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,s$e),Rme),"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."),Zl),Ao),bn(pw)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,YFe),Rme),"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."),NWe),Ra),tl),bn(pw)))),pn(i,new an(dn(hn(fn(on(un(ln(cn(new rn,HFe),Rme),"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."),Fo),ws),bn(pw)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,NI),cUe),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),RWe),k6),Qne),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,QFe),cUe),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),Gs),rs),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,ZFe),cUe),"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),Gs),rs),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,WG),aq),"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),Fo),ws),bn(Hn)))),bs(i,WG,ix,sun),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,oUe),aq),"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),Ra),rre),bn(Fs)))),bs(i,oUe,ix,oun),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,KG),aq),"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),Fo),ws),va(Hn,Te(xe(rm,1),wt,170,0,[Fs]))))),bs(i,KG,ix,null),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,XG),aq),"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),Fo),ws),va(Hn,Te(xe(rm,1),wt,170,0,[Fs]))))),bs(i,XG,ix,null),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,ix),aq),"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),Ra),oKe),bn(Fs)))),bs(i,ix,RI,null),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,lUe),aq),"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),Fo),ws),bn(Hn)))),bs(i,lUe,ix,aun),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,WFe),mZt),"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),Gs),rs),bn(Fs)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,KFe),mZt),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),Gs),rs),bn(mg)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,yge),"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),Fo),ws),bn(mg)))),pn(i,new an(dn(hn(fn(kn(on(un(ln(cn(new rn,fZt),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),fWe),Ra),WWe),bn(mg)))),kL(i,new Rk(xL(qR(GR(new XA,fr),"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.'))),kL(i,new Rk(xL(qR(GR(new XA,"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.`))),kL(i,new Rk(xL(qR(GR(new XA,Nu),"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."))),kL(i,new Rk(xL(qR(GR(new XA,"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."))),kL(i,new Rk(xL(qR(GR(new XA,OQt),"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."))),kL(i,new Rk(xL(qR(GR(new XA,"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."))),kL(i,new Rk(xL(qR(GR(new XA,bf),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),Ejt((new UTt,i)),Bjt((new $Tt,i)),XYt((new zTt,i))};var yN,Hcn,aWe,X5,Vcn,Ycn,sWe,Q5,Z5,jcn,rH,oWe,iH,gw,lWe,w2e,E2e,cWe,uWe,hWe,dWe,fWe,Wcn,J5,pWe,Kcn,aH,x2e,sH,S2e,kx,gWe,vN,mWe,bWe,yWe,eC,vWe,mw,_We,i3,tC,wWe,g2,EWe,Yne,oH,Ty,xWe,Xcn,SWe,Qcn,Zcn,TWe,CWe,T2e,C2e,A2e,k2e,AWe,jh,UP,kWe,R2e,I2e,a3,RWe,IWe,nC,NWe,R6,lH,N2e,rC,Jcn,O2e,eun,tun,OWe,nun,LWe,DWe,I6,MWe,jne,PWe,BWe,bw,run,FWe,$We,UWe,Wne,cH,_N,N6,iun,aun,Kne,sun,zWe,oun;K(Yh,"CoreOptions",699),H(88,22,{3:1,34:1,22:1,88:1},NU);var lp,Ol,ql,cp,Ef,zP=$r(Yh,ABe,88,jr,ipr,lur),lun;H(278,22,{3:1,34:1,22:1,278:1},Nhe);var wN,s3,EN,GWe=$r(Yh,"EdgeLabelPlacement",278,jr,L0r,cur),cun;H(223,22,{3:1,34:1,22:1,223:1},uX);var xN,uH,O6,L2e,D2e=$r(Yh,"EdgeRouting",223,jr,L1r,uur),uun;H(321,22,{3:1,34:1,22:1,321:1},UL);var qWe,HWe,VWe,YWe,M2e,jWe,WWe=$r(Yh,"EdgeType",321,jr,Zpr,hur),hun;H(989,1,Hf,UTt),E.hf=function(i){Ejt(i)};var KWe,XWe,QWe,ZWe,dun,JWe,GP;K(Yh,"FixedLayouterOptions",989),H(990,1,{},cSt),E.sf=function(){var i;return i=new _St,i},E.tf=function(i){},K(Yh,"FixedLayouterOptions/FixedFactory",990),H(346,22,{3:1,34:1,22:1,346:1},Ohe);var Cy,Xne,qP,eKe=$r(Yh,"HierarchyHandling",346,jr,N0r,dur),fun;H(291,22,{3:1,34:1,22:1,291:1},hX);var im,m2,hH,dH,pun=$r(Yh,"LabelSide",291,jr,O1r,fur),gun;H(95,22,{3:1,34:1,22:1,95:1},kT);var cb,D0,Xf,M0,Bd,P0,Qf,am,B0,fl=$r(Yh,"NodeLabelPlacement",95,jr,Jgr,pur),mun;H(256,22,{3:1,34:1,22:1,256:1},OU);var tKe,HP,b2,nKe,fH,VP=$r(Yh,"PortAlignment",256,jr,vpr,gur),bun;H(101,22,{3:1,34:1,22:1,101:1},zL);var yw,su,sm,SN,up,y2,rKe=$r(Yh,"PortConstraints",101,jr,Qpr,mur),yun;H(279,22,{3:1,34:1,22:1,279:1},GL);var YP,jP,ub,pH,v2,L6,Qne=$r(Yh,"PortLabelPlacement",279,jr,Xpr,bur),vun;H(64,22,{3:1,34:1,22:1,64:1},LU);var gr,or,xf,Sf,Xu,Du,hp,F0,Ih,mh,ou,Nh,Qu,Zu,$0,Fd,$d,Zf,Mr,lc,cr,tl=$r(Yh,"PortSide",64,jr,apr,yur),_un;H(993,1,Hf,zTt),E.hf=function(i){XYt(i)};var wun,Eun,iKe,xun,Sun;K(Yh,"RandomLayouterOptions",993),H(994,1,{},uSt),E.sf=function(){var i;return i=new bSt,i},E.tf=function(i){},K(Yh,"RandomLayouterOptions/RandomFactory",994),H(386,22,{3:1,34:1,22:1,386:1},dX);var o3,gH,mH,vw,WP=$r(Yh,"SizeConstraint",386,jr,N1r,vur),Tun;H(264,22,{3:1,34:1,22:1,264:1},RT);var bH,Zne,TN,P2e,yH,KP,Jne,ere,tre,aKe=$r(Yh,"SizeOptions",264,jr,hmr,_ur),Cun;H(280,22,{3:1,34:1,22:1,280:1},Lhe);var l3,sKe,nre,oKe=$r(Yh,"TopdownNodeTypes",280,jr,D0r,wur),Aun;H(347,22,uUe);var lKe,cKe,rre=$r(Yh,"TopdownSizeApproximator",347,jr,Rfr,xur);H(987,347,uUe,u9t),E.Tg=function(i){return UGt(i)},$r(Yh,"TopdownSizeApproximator/1",987,rre,null,null),H(988,347,uUe,K9t),E.Tg=function(i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn,Kn;for(l=v(Et(i,(Ei(),rC)),143),Mt=(kv(),ae=new bL,ae),yG(Mt,i),yn=new Br,x=new mr((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a));x.e!=x.i.gc();)g=v(wr(x),27),Ue=(re=new bL,re),yJ(Ue,Mt),yG(Ue,g),Kn=UGt(g),DT(Ue,u.Math.max(g.g,Kn.a),u.Math.max(g.f,Kn.b)),yu(yn.f,g,Ue);for(y=new mr((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a));y.e!=y.i.gc();)for(g=v(wr(y),27),q=new mr((!g.e&&(g.e=new Gn(ss,g,7,4)),g.e));q.e!=q.i.gc();)D=v(wr(q),74),yt=v(Pl(ol(yn.f,g)),27),xt=v(br(yn,ze((!D.c&&(D.c=new Gn(Lr,D,5,8)),D.c),0)),27),je=(J=new uue,J),Yr((!je.b&&(je.b=new Gn(Lr,je,4,7)),je.b),yt),Yr((!je.c&&(je.c=new Gn(Lr,je,5,8)),je.c),xt),bJ(je,Aa(yt)),yG(je,D);de=v(sz(l.f),205);try{de.rf(Mt,new xSt),CLt(l.f,de)}catch(Xn){throw Xn=Da(Xn),$e(Xn,103)?(le=Xn,_e(le)):_e(Xn)}return Y1(Mt,Z5)||Y1(Mt,Q5)||XPe(Mt),O=We(at(Et(Mt,Z5))),R=We(at(Et(Mt,Q5))),T=O/R,d=We(at(Et(Mt,cH)))*u.Math.sqrt((!Mt.a&&(Mt.a=new vt(Pi,Mt,10,11)),Mt.a).i),mn=v(Et(Mt,Ty),107),Me=mn.b+mn.c+1,Se=mn.d+mn.a+1,new Ct(u.Math.max(Me,d),u.Math.max(Se,d/T))},$r(Yh,"TopdownSizeApproximator/2",988,rre,null,null);var kun;H(344,1,{871:1},tk),E.Ug=function(i,l){return Jqt(this,i,l)},E.Vg=function(){EHt(this)},E.Wg=function(){return this.q},E.Xg=function(){return this.f?Wde(this.f):null},E.Yg=function(){return Wde(this.a)},E.Zg=function(){return this.p},E.$g=function(){return!1},E._g=function(){return this.n},E.ah=function(){return this.p!=null&&!this.b},E.bh=function(i){var l;this.n&&(l=i,Lt(this.f,l))},E.dh=function(i,l){var d,g;this.n&&i&&K0r(this,(d=new oLt,g=Z1e(d,i),I7r(d),g),(xZ(),F2e))},E.eh=function(i){var l;return this.b?null:(l=Dgr(this,this.g),pi(this.a,l),l.i=this,this.d=i,l)},E.fh=function(i){i>0&&!this.b&&f9e(this,i)},E.b=!1,E.c=0,E.d=-1,E.e=null,E.f=null,E.g=-1,E.j=!1,E.k=!1,E.n=!1,E.o=0,E.q=0,E.r=0,K(mc,"BasicProgressMonitor",344),H(717,205,K_,hSt),E.rf=function(i,l){eWt(i,l)},K(mc,"BoxLayoutProvider",717),H(983,1,ui,KAt),E.Ne=function(i,l){return ITr(this,v(i,27),v(l,27))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},E.a=!1,K(mc,"BoxLayoutProvider/1",983),H(163,1,{163:1},eZ,DNt),E.Ib=function(){return this.c?dPe(this.c):Wv(this.b)},K(mc,"BoxLayoutProvider/Group",163),H(320,22,{3:1,34:1,22:1,320:1},fX);var uKe,hKe,dKe,B2e,fKe=$r(mc,"BoxLayoutProvider/PackingMode",320,jr,D1r,Sur),Run;H(984,1,ui,dSt),E.Ne=function(i,l){return Kdr(v(i,163),v(l,163))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(mc,"BoxLayoutProvider/lambda$0$Type",984),H(985,1,ui,fSt),E.Ne=function(i,l){return zdr(v(i,163),v(l,163))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(mc,"BoxLayoutProvider/lambda$1$Type",985),H(986,1,ui,pSt),E.Ne=function(i,l){return Gdr(v(i,163),v(l,163))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(mc,"BoxLayoutProvider/lambda$2$Type",986),H(1384,1,{845:1},gSt),E.Mg=function(i,l){return HK(),!$e(l,167)||M7t((Fk(),v(i,167)),l)},K(mc,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1384),H(1385,1,vr,XAt),E.Cd=function(i){ayr(this.a,v(i,149))},K(mc,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1385),H(1386,1,vr,ySt),E.Cd=function(i){v(i,96),HK()},K(mc,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1386),H(1390,1,vr,QAt),E.Cd=function(i){Amr(this.a,v(i,96))},K(mc,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1390),H(1388,1,si,T8t),E.Mb=function(i){return Ubr(this.a,this.b,v(i,149))},K(mc,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1388),H(1387,1,si,C8t),E.Mb=function(i){return wor(this.a,this.b,v(i,845))},K(mc,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1387),H(1389,1,vr,A8t),E.Cd=function(i){Dhr(this.a,this.b,v(i,149))},K(mc,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1389),H(947,1,{},vSt),E.Kb=function(i){return EIt(i)},E.Fb=function(i){return this===i},K(mc,"ElkUtil/lambda$0$Type",947),H(948,1,vr,k8t),E.Cd=function(i){L4r(this.a,this.b,v(i,74))},E.a=0,E.b=0,K(mc,"ElkUtil/lambda$1$Type",948),H(949,1,vr,R8t),E.Cd=function(i){Eir(this.a,this.b,v(i,166))},E.a=0,E.b=0,K(mc,"ElkUtil/lambda$2$Type",949),H(950,1,vr,I8t),E.Cd=function(i){ysr(this.a,this.b,v(i,135))},E.a=0,E.b=0,K(mc,"ElkUtil/lambda$3$Type",950),H(951,1,vr,ZAt),E.Cd=function(i){thr(this.a,v(i,377))},K(mc,"ElkUtil/lambda$4$Type",951),H(325,1,{34:1,325:1},Zrr),E.Fd=function(i){return jsr(this,v(i,242))},E.Fb=function(i){var l;return $e(i,325)?(l=v(i,325),this.a==l.a):!1},E.Hb=function(){return Ps(this.a)},E.Ib=function(){return this.a+" (exclusive)"},E.a=0,K(mc,"ExclusiveBounds/ExclusiveLowerBound",325),H(1119,205,K_,_St),E.rf=function(i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me,Ue,je,yt,xt,Mt,yn,mn;for(l.Ug("Fixed Layout",1),x=v(Et(i,(Ei(),uWe)),223),J=0,re=0,Ue=new mr((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a));Ue.e!=Ue.i.gc();){for(Se=v(wr(Ue),27),mn=v(Et(Se,(SZ(),GP)),8),mn&&(ef(Se,mn.a,mn.b),v(Et(Se,XWe),181).Hc((ud(),o3))&&(ae=v(Et(Se,ZWe),8),ae.a>0&&ae.b>0&&JE(Se,ae.a,ae.b,!0,!0))),J=u.Math.max(J,Se.i+Se.g),re=u.Math.max(re,Se.j+Se.f),D=new mr((!Se.n&&(Se.n=new vt(wl,Se,1,7)),Se.n));D.e!=D.i.gc();)R=v(wr(D),135),mn=v(Et(R,GP),8),mn&&ef(R,mn.a,mn.b),J=u.Math.max(J,Se.i+R.i+R.g),re=u.Math.max(re,Se.j+R.j+R.f);for(xt=new mr((!Se.c&&(Se.c=new vt(Oh,Se,9,9)),Se.c));xt.e!=xt.i.gc();)for(yt=v(wr(xt),123),mn=v(Et(yt,GP),8),mn&&ef(yt,mn.a,mn.b),Mt=Se.i+yt.i,yn=Se.j+yt.j,J=u.Math.max(J,Mt+yt.g),re=u.Math.max(re,yn+yt.f),O=new mr((!yt.n&&(yt.n=new vt(wl,yt,1,7)),yt.n));O.e!=O.i.gc();)R=v(wr(O),135),mn=v(Et(R,GP),8),mn&&ef(R,mn.a,mn.b),J=u.Math.max(J,Mt+R.i+R.g),re=u.Math.max(re,yn+R.j+R.f);for(y=new yr(_r(eb(Se).a.Kc(),new S));zr(y);)d=v(Rr(y),74),q=pKt(d),J=u.Math.max(J,q.a),re=u.Math.max(re,q.b);for(g=new yr(_r(bG(Se).a.Kc(),new S));zr(g);)d=v(Rr(g),74),Aa(Hg(d))!=i&&(q=pKt(d),J=u.Math.max(J,q.a),re=u.Math.max(re,q.b))}if(x==(Xm(),xN))for(Me=new mr((!i.a&&(i.a=new vt(Pi,i,10,11)),i.a));Me.e!=Me.i.gc();)for(Se=v(wr(Me),27),g=new yr(_r(eb(Se).a.Kc(),new S));zr(g);)d=v(Rr(g),74),T=MAr(d),T.b==0?sa(d,kx,null):sa(d,kx,T);Vt(Ht(Et(i,(SZ(),QWe))))||(je=v(Et(i,dun),107),de=J+je.b+je.c,le=re+je.d+je.a,JE(i,de,le,!0,!0)),l.Vg()},K(mc,"FixedLayoutProvider",1119),H(385,137,{3:1,423:1,385:1,96:1,137:1},cue,dFt),E.cg=function(i){var l,d,g,y,x,T,R,O,D;if(i)try{for(O=T4(i,";,;"),x=O,T=0,R=x.length;T>16&vs|l^g<<16},E.Kc=function(){return new JAt(this)},E.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+Kl(this.b)+")":this.b==null?"pair("+Kl(this.a)+",null)":"pair("+Kl(this.a)+","+Kl(this.b)+")"},K(mc,"Pair",42),H(995,1,io,JAt),E.Nb=function(i){xo(this,i)},E.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},E.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 _e(new ec)},E.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),_e(new ih)},E.b=!1,E.c=!1,K(mc,"Pair/1",995),H(455,1,{455:1},GLt),E.Fb=function(i){return Ec(this.a,v(i,455).a)&&Ec(this.c,v(i,455).c)&&Ec(this.d,v(i,455).d)&&Ec(this.b,v(i,455).b)},E.Hb=function(){return Hz(Te(xe(zs,1),Yn,1,5,[this.a,this.c,this.d,this.b]))},E.Ib=function(){return"("+this.a+Xo+this.c+Xo+this.d+Xo+this.b+")"},K(mc,"Quadruple",455),H(1108,205,K_,bSt),E.rf=function(i,l){var d,g,y,x,T;if(l.Ug("Random Layout",1),(!i.a&&(i.a=new vt(Pi,i,10,11)),i.a).i==0){l.Vg();return}x=v(Et(i,(zLe(),xun)),17),x&&x.a!=0?y=new LQ(x.a):y=new M0e,d=uU(at(Et(i,wun))),T=uU(at(Et(i,Sun))),g=v(Et(i,Eun),107),J7r(i,y,d,T,g),l.Vg()},K(mc,"RandomLayoutProvider",1108),H(240,1,{240:1},cde),E.Fb=function(i){return Ec(this.a,v(i,240).a)&&Ec(this.b,v(i,240).b)&&Ec(this.c,v(i,240).c)},E.Hb=function(){return Hz(Te(xe(zs,1),Yn,1,5,[this.a,this.b,this.c]))},E.Ib=function(){return"("+this.a+Xo+this.b+Xo+this.c+")"},K(mc,"Triple",240);var Lun;H(562,1,{}),E.Lf=function(){return new Ct(this.f.i,this.f.j)},E.of=function(i){return mDt(i,(Ei(),jh))?Et(this.f,Dun):Et(this.f,i)},E.Mf=function(){return new Ct(this.f.g,this.f.f)},E.Nf=function(){return this.g},E.pf=function(i){return Y1(this.f,i)},E.Of=function(i){Au(this.f,i.a),ku(this.f,i.b)},E.Pf=function(i){FE(this.f,i.a),BE(this.f,i.b)},E.Qf=function(i){this.g=i},E.g=0;var Dun;K(DM,"ElkGraphAdapters/AbstractElkGraphElementAdapter",562),H(563,1,{853:1},EK),E.Rf=function(){var i,l;if(!this.b)for(this.b=RQ(dQ(this.a).i),l=new mr(dQ(this.a));l.e!=l.i.gc();)i=v(wr(l),135),Lt(this.b,new $ue(i));return this.b},E.b=null,K(DM,"ElkGraphAdapters/ElkEdgeAdapter",563),H(289,562,{},aE),E.Sf=function(){return lqt(this)},E.a=null,K(DM,"ElkGraphAdapters/ElkGraphAdapter",289),H(640,562,{187:1},$ue),K(DM,"ElkGraphAdapters/ElkLabelAdapter",640),H(639,562,{695:1},jhe),E.Rf=function(){return U_r(this)},E.Vf=function(){var i;return i=v(Et(this.f,(Ei(),vN)),140),!i&&(i=new mL),i},E.Xf=function(){return z_r(this)},E.Zf=function(i){var l;l=new hde(i),sa(this.f,(Ei(),vN),l)},E.$f=function(i){sa(this.f,(Ei(),Ty),new NIe(i))},E.Tf=function(){return this.d},E.Uf=function(){var i,l;if(!this.a)for(this.a=new Ot,l=new yr(_r(bG(v(this.f,27)).a.Kc(),new S));zr(l);)i=v(Rr(l),74),Lt(this.a,new EK(i));return this.a},E.Wf=function(){var i,l;if(!this.c)for(this.c=new Ot,l=new yr(_r(eb(v(this.f,27)).a.Kc(),new S));zr(l);)i=v(Rr(l),74),Lt(this.c,new EK(i));return this.c},E.Yf=function(){return bQ(v(this.f,27)).i!=0||Vt(Ht(v(this.f,27).of((Ei(),aH))))},E._f=function(){vgr(this,(fE(),Lun))},E.a=null,E.b=null,E.c=null,E.d=null,E.e=null,K(DM,"ElkGraphAdapters/ElkNodeAdapter",639),H(1284,562,{852:1},ekt),E.Rf=function(){return K_r(this)},E.Uf=function(){var i,l;if(!this.a)for(this.a=Pg(v(this.f,123).hh().i),l=new mr(v(this.f,123).hh());l.e!=l.i.gc();)i=v(wr(l),74),Lt(this.a,new EK(i));return this.a},E.Wf=function(){var i,l;if(!this.c)for(this.c=Pg(v(this.f,123).ih().i),l=new mr(v(this.f,123).ih());l.e!=l.i.gc();)i=v(wr(l),74),Lt(this.c,new EK(i));return this.c},E.ag=function(){return v(v(this.f,123).of((Ei(),nC)),64)},E.bg=function(){var i,l,d,g,y,x,T,R;for(g=z1(v(this.f,123)),d=new mr(v(this.f,123).ih());d.e!=d.i.gc();)for(i=v(wr(d),74),R=new mr((!i.c&&(i.c=new Gn(Lr,i,5,8)),i.c));R.e!=R.i.gc();){if(T=v(wr(R),84),l4(zl(T),g))return!0;if(zl(T)==g&&Vt(Ht(Et(i,(Ei(),x2e)))))return!0}for(l=new mr(v(this.f,123).hh());l.e!=l.i.gc();)for(i=v(wr(l),74),x=new mr((!i.b&&(i.b=new Gn(Lr,i,4,7)),i.b));x.e!=x.i.gc();)if(y=v(wr(x),84),l4(zl(y),g))return!0;return!1},E.a=null,E.b=null,E.c=null,K(DM,"ElkGraphAdapters/ElkPortAdapter",1284),H(1285,1,ui,mSt),E.Ne=function(i,l){return ACr(v(i,123),v(l,123))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(DM,"ElkGraphAdapters/PortComparator",1285);var _2=$a(yf,"EObject"),CN=$a(w5,vZt),Ud=$a(w5,_Zt),vH=$a(w5,wZt),_H=$a(w5,"ElkShape"),Lr=$a(w5,EZt),ss=$a(w5,hUe),xa=$a(w5,xZt),wH=$a(yf,SZt),XP=$a(yf,"EFactory"),Mun,$2e=$a(yf,TZt),y1=$a(yf,"EPackage"),Ks,Pun,Bun,bKe,ire,Fun,yKe,vKe,_Ke,om,$un,Uun,wl=$a(w5,dUe),Pi=$a(w5,fUe),Oh=$a(w5,pUe);H(93,1,CZt),E.th=function(){return this.uh(),null},E.uh=function(){return null},E.vh=function(){return this.uh(),!1},E.wh=function(){return!1},E.xh=function(i){Vi(this,i)},K(h6,"BasicNotifierImpl",93),H(99,93,IZt),E.Yh=function(){return id(this)},E.yh=function(i,l){return i},E.zh=function(){throw _e(new ri)},E.Ah=function(i){var l;return l=sl(v(qn(this.Dh(),this.Fh()),19)),this.Ph().Th(this,l.n,l.f,i)},E.Bh=function(i,l){throw _e(new ri)},E.Ch=function(i,l,d){return Od(this,i,l,d)},E.Dh=function(){var i;return this.zh()&&(i=this.zh().Nk(),i)?i:this.ii()},E.Eh=function(){return M1e(this)},E.Fh=function(){throw _e(new ri)},E.Gh=function(){var i,l;return l=this.$h().Ok(),!l&&this.zh().Tk(l=(IL(),i=HNe(tg(this.Dh())),i==null?j2e:new FU(this,i))),l},E.Hh=function(i,l){return i},E.Ih=function(i){var l;return l=i.pk(),l?i.Lj():Ma(this.Dh(),i)},E.Jh=function(){var i;return i=this.zh(),i?i.Qk():null},E.Kh=function(){return this.zh()?this.zh().Nk():null},E.Lh=function(i,l,d){return YZ(this,i,l,d)},E.Mh=function(i){return v8(this,i)},E.Nh=function(i,l){return _fe(this,i,l)},E.Oh=function(){var i;return i=this.zh(),!!i&&i.Rk()},E.Ph=function(){throw _e(new ri)},E.Qh=function(){return $Z(this)},E.Rh=function(i,l,d,g){return Hk(this,i,l,g)},E.Sh=function(i,l,d){var g;return g=v(qn(this.Dh(),l),69),g.wk().zk(this,this.hi(),l-this.ji(),i,d)},E.Th=function(i,l,d,g){return wQ(this,i,l,g)},E.Uh=function(i,l,d){var g;return g=v(qn(this.Dh(),l),69),g.wk().Ak(this,this.hi(),l-this.ji(),i,d)},E.Vh=function(){return!!this.zh()&&!!this.zh().Pk()},E.Wh=function(i){return Y0e(this,i)},E.Xh=function(i){return IDt(this,i)},E.Zh=function(i){return ZWt(this,i)},E.$h=function(){throw _e(new ri)},E._h=function(){return this.zh()?this.zh().Pk():null},E.ai=function(){return $Z(this)},E.bi=function(i,l){I1e(this,i,l)},E.ci=function(i){this.$h().Sk(i)},E.di=function(i){this.$h().Vk(i)},E.ei=function(i){this.$h().Uk(i)},E.fi=function(i,l){var d,g,y,x;return x=this.Jh(),x&&i&&(l=Ko(x.El(),this,l),x.Il(this)),g=this.Ph(),g&&(K1e(this,this.Ph(),this.Fh()).Bb&el?(y=g.Qh(),y&&(i?!x&&y.Il(this):y.Hl(this))):(l=(d=this.Fh(),d>=0?this.Ah(l):this.Ph().Th(this,-1-d,null,l)),l=this.Ch(null,-1,l))),this.di(i),l},E.gi=function(i){var l,d,g,y,x,T,R,O;if(d=this.Dh(),x=Ma(d,i),l=this.ji(),x>=l)return v(i,69).wk().Dk(this,this.hi(),x-l);if(x<=-1)if(T=h5((dh(),ko),d,i),T){if(al(),v(T,69).xk()||(T=Ik(Al(ko,T))),y=(g=this.Ih(T),v(g>=0?this.Lh(g,!0,!0):XE(this,T,!0),160)),O=T.Ik(),O>1||O==-1)return v(v(y,220).Sl(i,!1),79)}else throw _e(new ar(r2+i.xe()+Ime));else if(i.Jk())return g=this.Ih(i),v(g>=0?this.Lh(g,!1,!0):XE(this,i,!1),79);return R=new W8t(this,i),R},E.hi=function(){return KOe(this)},E.ii=function(){return(Mv(),Zn).S},E.ji=function(){return kr(this.ii())},E.ki=function(i){A1e(this,i)},E.Ib=function(){return T0(this)},K(tr,"BasicEObjectImpl",99);var zun;H(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1}),E.li=function(i){var l;return l=WOe(this),l[i]},E.mi=function(i,l){var d;d=WOe(this),Ga(d,i,l)},E.ni=function(i){var l;l=WOe(this),Ga(l,i,null)},E.th=function(){return v(rr(this,4),129)},E.uh=function(){throw _e(new ri)},E.vh=function(){return(this.Db&4)!=0},E.zh=function(){throw _e(new ri)},E.oi=function(i){Gk(this,2,i)},E.Bh=function(i,l){this.Db=l<<16|this.Db&255,this.oi(i)},E.Dh=function(){return Vu(this)},E.Fh=function(){return this.Db>>16},E.Gh=function(){var i,l;return IL(),l=HNe(tg((i=v(rr(this,16),29),i||this.ii()))),l==null?j2e:new FU(this,l)},E.wh=function(){return(this.Db&1)==0},E.Jh=function(){return v(rr(this,128),2034)},E.Kh=function(){return v(rr(this,16),29)},E.Oh=function(){return(this.Db&32)!=0},E.Ph=function(){return v(rr(this,2),54)},E.Vh=function(){return(this.Db&64)!=0},E.$h=function(){throw _e(new ri)},E._h=function(){return v(rr(this,64),288)},E.ci=function(i){Gk(this,16,i)},E.di=function(i){Gk(this,128,i)},E.ei=function(i){Gk(this,64,i)},E.hi=function(){return Ru(this)},E.Db=0,K(tr,"MinimalEObjectImpl",119),H(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),E.oi=function(i){this.Cb=i},E.Ph=function(){return this.Cb},K(tr,"MinimalEObjectImpl/Container",120),H(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),E.Lh=function(i,l,d){return uDe(this,i,l,d)},E.Uh=function(i,l,d){return JDe(this,i,l,d)},E.Wh=function(i){return iOe(this,i)},E.bi=function(i,l){K9e(this,i,l)},E.ii=function(){return Lc(),Uun},E.ki=function(i){F9e(this,i)},E.nf=function(){return kGt(this)},E.gh=function(){return!this.o&&(this.o=new uh((Lc(),om),Ay,this,0)),this.o},E.of=function(i){return Et(this,i)},E.pf=function(i){return Y1(this,i)},E.qf=function(i,l){return sa(this,i,l)},K(J_,"EMapPropertyHolderImpl",2083),H(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},hK),E.Lh=function(i,l,d){switch(i){case 0:return this.a;case 1:return this.b}return YZ(this,i,l,d)},E.Wh=function(i){switch(i){case 0:return this.a!=0;case 1:return this.b!=0}return Y0e(this,i)},E.bi=function(i,l){switch(i){case 0:nZ(this,We(at(l)));return;case 1:tZ(this,We(at(l)));return}I1e(this,i,l)},E.ii=function(){return Lc(),Pun},E.ki=function(i){switch(i){case 0:nZ(this,0);return;case 1:tZ(this,0);return}A1e(this,i)},E.Ib=function(){var i;return this.Db&64?T0(this):(i=new Ff(T0(this)),i.a+=" (x: ",ST(i,this.a),i.a+=", y: ",ST(i,this.b),i.a+=")",i.a)},E.a=0,E.b=0,K(J_,"ElkBendPointImpl",572),H(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),E.Lh=function(i,l,d){return yLe(this,i,l,d)},E.Sh=function(i,l,d){return _1e(this,i,l,d)},E.Uh=function(i,l,d){return r0e(this,i,l,d)},E.Wh=function(i){return O9e(this,i)},E.bi=function(i,l){RDe(this,i,l)},E.ii=function(){return Lc(),Fun},E.ki=function(i){cLe(this,i)},E.jh=function(){return this.k},E.kh=function(){return dQ(this)},E.Ib=function(){return R0e(this)},E.k=null,K(J_,"ElkGraphElementImpl",739),H(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),E.Lh=function(i,l,d){return CLe(this,i,l,d)},E.Wh=function(i){return OLe(this,i)},E.bi=function(i,l){IDe(this,i,l)},E.ii=function(){return Lc(),$un},E.ki=function(i){$Le(this,i)},E.lh=function(){return this.f},E.mh=function(){return this.g},E.nh=function(){return this.i},E.oh=function(){return this.j},E.ph=function(i,l){DT(this,i,l)},E.qh=function(i,l){ef(this,i,l)},E.rh=function(i){Au(this,i)},E.sh=function(i){ku(this,i)},E.Ib=function(){return T1e(this)},E.f=0,E.g=0,E.i=0,E.j=0,K(J_,"ElkShapeImpl",740),H(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),E.Lh=function(i,l,d){return rDe(this,i,l,d)},E.Sh=function(i,l,d){return xDe(this,i,l,d)},E.Uh=function(i,l,d){return SDe(this,i,l,d)},E.Wh=function(i){return W9e(this,i)},E.bi=function(i,l){BMe(this,i,l)},E.ii=function(){return Lc(),Bun},E.ki=function(i){ZLe(this,i)},E.hh=function(){return!this.d&&(this.d=new Gn(ss,this,8,5)),this.d},E.ih=function(){return!this.e&&(this.e=new Gn(ss,this,7,4)),this.e},K(J_,"ElkConnectableShapeImpl",741),H(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},uue),E.Ah=function(i){return vDe(this,i)},E.Lh=function(i,l,d){switch(i){case 3:return lz(this);case 4:return!this.b&&(this.b=new Gn(Lr,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Gn(Lr,this,5,8)),this.c;case 6:return!this.a&&(this.a=new vt(xa,this,6,6)),this.a;case 7:return Qn(),!this.b&&(this.b=new Gn(Lr,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Gn(Lr,this,5,8)),this.c.i<=1));case 8:return Qn(),!!tM(this);case 9:return Qn(),!!KE(this);case 10:return Qn(),!this.b&&(this.b=new Gn(Lr,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Gn(Lr,this,5,8)),this.c.i!=0)}return yLe(this,i,l,d)},E.Sh=function(i,l,d){var g;switch(l){case 3:return this.Cb&&(d=(g=this.Db>>16,g>=0?vDe(this,d):this.Cb.Th(this,-1-g,null,d))),eIe(this,v(i,27),d);case 4:return!this.b&&(this.b=new Gn(Lr,this,4,7)),bu(this.b,i,d);case 5:return!this.c&&(this.c=new Gn(Lr,this,5,8)),bu(this.c,i,d);case 6:return!this.a&&(this.a=new vt(xa,this,6,6)),bu(this.a,i,d)}return _1e(this,i,l,d)},E.Uh=function(i,l,d){switch(l){case 3:return eIe(this,null,d);case 4:return!this.b&&(this.b=new Gn(Lr,this,4,7)),Ko(this.b,i,d);case 5:return!this.c&&(this.c=new Gn(Lr,this,5,8)),Ko(this.c,i,d);case 6:return!this.a&&(this.a=new vt(xa,this,6,6)),Ko(this.a,i,d)}return r0e(this,i,l,d)},E.Wh=function(i){switch(i){case 3:return!!lz(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 Gn(Lr,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Gn(Lr,this,5,8)),this.c.i<=1));case 8:return tM(this);case 9:return KE(this);case 10:return!this.b&&(this.b=new Gn(Lr,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Gn(Lr,this,5,8)),this.c.i!=0)}return O9e(this,i)},E.bi=function(i,l){switch(i){case 3:bJ(this,v(l,27));return;case 4:!this.b&&(this.b=new Gn(Lr,this,4,7)),Gr(this.b),!this.b&&(this.b=new Gn(Lr,this,4,7)),Ka(this.b,v(l,16));return;case 5:!this.c&&(this.c=new Gn(Lr,this,5,8)),Gr(this.c),!this.c&&(this.c=new Gn(Lr,this,5,8)),Ka(this.c,v(l,16));return;case 6:!this.a&&(this.a=new vt(xa,this,6,6)),Gr(this.a),!this.a&&(this.a=new vt(xa,this,6,6)),Ka(this.a,v(l,16));return}RDe(this,i,l)},E.ii=function(){return Lc(),bKe},E.ki=function(i){switch(i){case 3:bJ(this,null);return;case 4:!this.b&&(this.b=new Gn(Lr,this,4,7)),Gr(this.b);return;case 5:!this.c&&(this.c=new Gn(Lr,this,5,8)),Gr(this.c);return;case 6:!this.a&&(this.a=new vt(xa,this,6,6)),Gr(this.a);return}cLe(this,i)},E.Ib=function(){return mWt(this)},K(J_,"ElkEdgeImpl",326),H(452,2083,{110:1,342:1,166:1,452:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},dK),E.Ah=function(i){return gDe(this,i)},E.Lh=function(i,l,d){switch(i){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 gs(Ud,this,5)),this.a;case 6:return CDt(this);case 7:return l?Q0e(this):this.i;case 8:return l?X0e(this):this.f;case 9:return!this.g&&(this.g=new Gn(xa,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Gn(xa,this,10,9)),this.e;case 11:return this.d}return uDe(this,i,l,d)},E.Sh=function(i,l,d){var g,y,x;switch(l){case 6:return this.Cb&&(d=(y=this.Db>>16,y>=0?gDe(this,d):this.Cb.Th(this,-1-y,null,d))),J8e(this,v(i,74),d);case 9:return!this.g&&(this.g=new Gn(xa,this,9,10)),bu(this.g,i,d);case 10:return!this.e&&(this.e=new Gn(xa,this,10,9)),bu(this.e,i,d)}return x=v(qn((g=v(rr(this,16),29),g||(Lc(),ire)),l),69),x.wk().zk(this,Ru(this),l-kr((Lc(),ire)),i,d)},E.Uh=function(i,l,d){switch(l){case 5:return!this.a&&(this.a=new gs(Ud,this,5)),Ko(this.a,i,d);case 6:return J8e(this,null,d);case 9:return!this.g&&(this.g=new Gn(xa,this,9,10)),Ko(this.g,i,d);case 10:return!this.e&&(this.e=new Gn(xa,this,10,9)),Ko(this.e,i,d)}return JDe(this,i,l,d)},E.Wh=function(i){switch(i){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!!CDt(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 iOe(this,i)},E.bi=function(i,l){switch(i){case 1:T8(this,We(at(l)));return;case 2:A8(this,We(at(l)));return;case 3:S8(this,We(at(l)));return;case 4:C8(this,We(at(l)));return;case 5:!this.a&&(this.a=new gs(Ud,this,5)),Gr(this.a),!this.a&&(this.a=new gs(Ud,this,5)),Ka(this.a,v(l,16));return;case 6:gYt(this,v(l,74));return;case 7:cZ(this,v(l,84));return;case 8:lZ(this,v(l,84));return;case 9:!this.g&&(this.g=new Gn(xa,this,9,10)),Gr(this.g),!this.g&&(this.g=new Gn(xa,this,9,10)),Ka(this.g,v(l,16));return;case 10:!this.e&&(this.e=new Gn(xa,this,10,9)),Gr(this.e),!this.e&&(this.e=new Gn(xa,this,10,9)),Ka(this.e,v(l,16));return;case 11:_9e(this,ai(l));return}K9e(this,i,l)},E.ii=function(){return Lc(),ire},E.ki=function(i){switch(i){case 1:T8(this,0);return;case 2:A8(this,0);return;case 3:S8(this,0);return;case 4:C8(this,0);return;case 5:!this.a&&(this.a=new gs(Ud,this,5)),Gr(this.a);return;case 6:gYt(this,null);return;case 7:cZ(this,null);return;case 8:lZ(this,null);return;case 9:!this.g&&(this.g=new Gn(xa,this,9,10)),Gr(this.g);return;case 10:!this.e&&(this.e=new Gn(xa,this,10,9)),Gr(this.e);return;case 11:_9e(this,null);return}F9e(this,i)},E.Ib=function(){return RVt(this)},E.b=0,E.c=0,E.d=null,E.j=0,E.k=0,K(J_,"ElkEdgeSectionImpl",452),H(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),E.Lh=function(i,l,d){var g;return i==0?(!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab):lf(this,i-kr(this.ii()),qn((g=v(rr(this,16),29),g||this.ii()),i),l,d)},E.Sh=function(i,l,d){var g,y;return l==0?(!this.Ab&&(this.Ab=new vt(wi,this,0,3)),bu(this.Ab,i,d)):(y=v(qn((g=v(rr(this,16),29),g||this.ii()),l),69),y.wk().zk(this,Ru(this),l-kr(this.ii()),i,d))},E.Uh=function(i,l,d){var g,y;return l==0?(!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d)):(y=v(qn((g=v(rr(this,16),29),g||this.ii()),l),69),y.wk().Ak(this,Ru(this),l-kr(this.ii()),i,d))},E.Wh=function(i){var l;return i==0?!!this.Ab&&this.Ab.i!=0:sf(this,i-kr(this.ii()),qn((l=v(rr(this,16),29),l||this.ii()),i))},E.Zh=function(i){return WPe(this,i)},E.bi=function(i,l){var d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return}df(this,i-kr(this.ii()),qn((d=v(rr(this,16),29),d||this.ii()),i),l)},E.di=function(i){Gk(this,128,i)},E.ii=function(){return Pn(),ahn},E.ki=function(i){var l;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return}hf(this,i-kr(this.ii()),qn((l=v(rr(this,16),29),l||this.ii()),i))},E.pi=function(){this.Bb|=1},E.qi=function(i){return lM(this,i)},E.Bb=0,K(tr,"EModelElementImpl",158),H(720,158,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},X6e),E.ri=function(i,l){return VWt(this,i,l)},E.si=function(i){var l,d,g,y,x;if(this.a!=Cd(i)||i.Bb&256)throw _e(new ar(Ome+i.zb+lx));for(g=Fl(i);Uc(g.a).i!=0;){if(d=v(RG(g,0,(l=v(ze(Uc(g.a),0),89),x=l.c,$e(x,90)?v(x,29):(Pn(),n0))),29),WE(d))return y=Cd(d).wi().si(d),v(y,54).ci(i),y;g=Fl(d)}return(i.D!=null?i.D:i.B)=="java.util.Map$Entry"?new l9t(i):new GIe(i)},E.ti=function(i,l){return ex(this,i,l)},E.Lh=function(i,l,d){var g;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.a}return lf(this,i-kr((Pn(),S2)),qn((g=v(rr(this,16),29),g||S2),i),l,d)},E.Sh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),bu(this.Ab,i,d);case 1:return this.a&&(d=v(this.a,54).Th(this,4,y1,d)),lLe(this,v(i,241),d)}return y=v(qn((g=v(rr(this,16),29),g||(Pn(),S2)),l),69),y.wk().zk(this,Ru(this),l-kr((Pn(),S2)),i,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 1:return lLe(this,null,d)}return y=v(qn((g=v(rr(this,16),29),g||(Pn(),S2)),l),69),y.wk().Ak(this,Ru(this),l-kr((Pn(),S2)),i,d)},E.Wh=function(i){var l;switch(i){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return sf(this,i-kr((Pn(),S2)),qn((l=v(rr(this,16),29),l||S2),i))},E.bi=function(i,l){var d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:dHt(this,v(l,241));return}df(this,i-kr((Pn(),S2)),qn((d=v(rr(this,16),29),d||S2),i),l)},E.ii=function(){return Pn(),S2},E.ki=function(i){var l;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:dHt(this,null);return}hf(this,i-kr((Pn(),S2)),qn((l=v(rr(this,16),29),l||S2),i))};var QP,wKe,Gun;K(tr,"EFactoryImpl",720),H(1037,720,{110:1,2113:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},TSt),E.ri=function(i,l){switch(i.hk()){case 12:return v(l,149).Pg();case 13:return Kl(l);default:throw _e(new ar(FI+i.xe()+lx))}},E.si=function(i){var l,d,g,y,x,T,R,O;switch(i.G==-1&&(i.G=(l=Cd(i),l?uy(l.vi(),i):-1)),i.G){case 4:return x=new H6e,x;case 6:return T=new bL,T;case 7:return R=new H7e,R;case 8:return g=new uue,g;case 9:return d=new hK,d;case 10:return y=new dK,y;case 11:return O=new CSt,O;default:throw _e(new ar(Ome+i.zb+lx))}},E.ti=function(i,l){switch(i.hk()){case 13:case 12:return null;default:throw _e(new ar(FI+i.xe()+lx))}},K(J_,"ElkGraphFactoryImpl",1037),H(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),E.Gh=function(){var i,l;return l=(i=v(rr(this,16),29),HNe(tg(i||this.ii()))),l==null?(IL(),IL(),j2e):new NNt(this,l)},E.Lh=function(i,l,d){var g;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.xe()}return lf(this,i-kr(this.ii()),qn((g=v(rr(this,16),29),g||this.ii()),i),l,d)},E.Wh=function(i){var l;switch(i){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return sf(this,i-kr(this.ii()),qn((l=v(rr(this,16),29),l||this.ii()),i))},E.bi=function(i,l){var d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:this.ui(ai(l));return}df(this,i-kr(this.ii()),qn((d=v(rr(this,16),29),d||this.ii()),i),l)},E.ii=function(){return Pn(),shn},E.ki=function(i){var l;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:this.ui(null);return}hf(this,i-kr(this.ii()),qn((l=v(rr(this,16),29),l||this.ii()),i))},E.xe=function(){return this.zb},E.ui=function(i){mu(this,i)},E.Ib=function(){return PD(this)},E.zb=null,K(tr,"ENamedElementImpl",448),H(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},iDt),E.Ah=function(i){return xqt(this,i)},E.Lh=function(i,l,d){var g;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,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 ZS(this,v1,this)),this.rb;case 6:return!this.vb&&(this.vb=new bk(y1,this,6,7)),this.vb;case 7:return l?this.Db>>16==7?v(this.Cb,241):null:LDt(this)}return lf(this,i-kr((Pn(),Ny)),qn((g=v(rr(this,16),29),g||Ny),i),l,d)},E.Sh=function(i,l,d){var g,y,x;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),bu(this.Ab,i,d);case 4:return this.sb&&(d=v(this.sb,54).Th(this,1,XP,d)),hLe(this,v(i,480),d);case 5:return!this.rb&&(this.rb=new ZS(this,v1,this)),bu(this.rb,i,d);case 6:return!this.vb&&(this.vb=new bk(y1,this,6,7)),bu(this.vb,i,d);case 7:return this.Cb&&(d=(y=this.Db>>16,y>=0?xqt(this,d):this.Cb.Th(this,-1-y,null,d))),Od(this,i,7,d)}return x=v(qn((g=v(rr(this,16),29),g||(Pn(),Ny)),l),69),x.wk().zk(this,Ru(this),l-kr((Pn(),Ny)),i,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 4:return hLe(this,null,d);case 5:return!this.rb&&(this.rb=new ZS(this,v1,this)),Ko(this.rb,i,d);case 6:return!this.vb&&(this.vb=new bk(y1,this,6,7)),Ko(this.vb,i,d);case 7:return Od(this,null,7,d)}return y=v(qn((g=v(rr(this,16),29),g||(Pn(),Ny)),l),69),y.wk().Ak(this,Ru(this),l-kr((Pn(),Ny)),i,d)},E.Wh=function(i){var l;switch(i){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!!LDt(this)}return sf(this,i-kr((Pn(),Ny)),qn((l=v(rr(this,16),29),l||Ny),i))},E.Zh=function(i){var l;return l=GTr(this,i),l||WPe(this,i)},E.bi=function(i,l){var d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:mu(this,ai(l));return;case 2:gZ(this,ai(l));return;case 3:pZ(this,ai(l));return;case 4:S1e(this,v(l,480));return;case 5:!this.rb&&(this.rb=new ZS(this,v1,this)),Gr(this.rb),!this.rb&&(this.rb=new ZS(this,v1,this)),Ka(this.rb,v(l,16));return;case 6:!this.vb&&(this.vb=new bk(y1,this,6,7)),Gr(this.vb),!this.vb&&(this.vb=new bk(y1,this,6,7)),Ka(this.vb,v(l,16));return}df(this,i-kr((Pn(),Ny)),qn((d=v(rr(this,16),29),d||Ny),i),l)},E.ei=function(i){var l,d;if(i&&this.rb)for(d=new mr(this.rb);d.e!=d.i.gc();)l=wr(d),$e(l,364)&&(v(l,364).w=null);Gk(this,64,i)},E.ii=function(){return Pn(),Ny},E.ki=function(i){var l;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:mu(this,null);return;case 2:gZ(this,null);return;case 3:pZ(this,null);return;case 4:S1e(this,null);return;case 5:!this.rb&&(this.rb=new ZS(this,v1,this)),Gr(this.rb);return;case 6:!this.vb&&(this.vb=new bk(y1,this,6,7)),Gr(this.vb);return}hf(this,i-kr((Pn(),Ny)),qn((l=v(rr(this,16),29),l||Ny),i))},E.pi=function(){u1e(this)},E.vi=function(){return!this.rb&&(this.rb=new ZS(this,v1,this)),this.rb},E.wi=function(){return this.sb},E.xi=function(){return this.ub},E.yi=function(){return this.xb},E.zi=function(){return this.yb},E.Ai=function(i){this.ub=i},E.Ib=function(){var i;return this.Db&64?PD(this):(i=new Ff(PD(this)),i.a+=" (nsURI: ",bl(i,this.yb),i.a+=", nsPrefix: ",bl(i,this.xb),i.a+=")",i.a)},E.xb=null,E.yb=null,K(tr,"EPackageImpl",184),H(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},FVt),E.q=!1,E.r=!1;var qun=!1;K(J_,"ElkGraphPackageImpl",569),H(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},H6e),E.Ah=function(i){return mDe(this,i)},E.Lh=function(i,l,d){switch(i){case 7:return DDt(this);case 8:return this.a}return CLe(this,i,l,d)},E.Sh=function(i,l,d){var g;switch(l){case 7:return this.Cb&&(d=(g=this.Db>>16,g>=0?mDe(this,d):this.Cb.Th(this,-1-g,null,d))),rNe(this,v(i,167),d)}return _1e(this,i,l,d)},E.Uh=function(i,l,d){return l==7?rNe(this,null,d):r0e(this,i,l,d)},E.Wh=function(i){switch(i){case 7:return!!DDt(this);case 8:return!An("",this.a)}return OLe(this,i)},E.bi=function(i,l){switch(i){case 7:XMe(this,v(l,167));return;case 8:g9e(this,ai(l));return}IDe(this,i,l)},E.ii=function(){return Lc(),yKe},E.ki=function(i){switch(i){case 7:XMe(this,null);return;case 8:g9e(this,"");return}$Le(this,i)},E.Ib=function(){return CHt(this)},E.a="",K(J_,"ElkLabelImpl",366),H(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},bL),E.Ah=function(i){return _De(this,i)},E.Lh=function(i,l,d){switch(i){case 9:return!this.c&&(this.c=new vt(Oh,this,9,9)),this.c;case 10:return!this.a&&(this.a=new vt(Pi,this,10,11)),this.a;case 11:return Aa(this);case 12:return!this.b&&(this.b=new vt(ss,this,12,3)),this.b;case 13:return Qn(),!this.a&&(this.a=new vt(Pi,this,10,11)),this.a.i>0}return rDe(this,i,l,d)},E.Sh=function(i,l,d){var g;switch(l){case 9:return!this.c&&(this.c=new vt(Oh,this,9,9)),bu(this.c,i,d);case 10:return!this.a&&(this.a=new vt(Pi,this,10,11)),bu(this.a,i,d);case 11:return this.Cb&&(d=(g=this.Db>>16,g>=0?_De(this,d):this.Cb.Th(this,-1-g,null,d))),uIe(this,v(i,27),d);case 12:return!this.b&&(this.b=new vt(ss,this,12,3)),bu(this.b,i,d)}return xDe(this,i,l,d)},E.Uh=function(i,l,d){switch(l){case 9:return!this.c&&(this.c=new vt(Oh,this,9,9)),Ko(this.c,i,d);case 10:return!this.a&&(this.a=new vt(Pi,this,10,11)),Ko(this.a,i,d);case 11:return uIe(this,null,d);case 12:return!this.b&&(this.b=new vt(ss,this,12,3)),Ko(this.b,i,d)}return SDe(this,i,l,d)},E.Wh=function(i){switch(i){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!Aa(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new vt(Pi,this,10,11)),this.a.i>0}return W9e(this,i)},E.bi=function(i,l){switch(i){case 9:!this.c&&(this.c=new vt(Oh,this,9,9)),Gr(this.c),!this.c&&(this.c=new vt(Oh,this,9,9)),Ka(this.c,v(l,16));return;case 10:!this.a&&(this.a=new vt(Pi,this,10,11)),Gr(this.a),!this.a&&(this.a=new vt(Pi,this,10,11)),Ka(this.a,v(l,16));return;case 11:yJ(this,v(l,27));return;case 12:!this.b&&(this.b=new vt(ss,this,12,3)),Gr(this.b),!this.b&&(this.b=new vt(ss,this,12,3)),Ka(this.b,v(l,16));return}BMe(this,i,l)},E.ii=function(){return Lc(),vKe},E.ki=function(i){switch(i){case 9:!this.c&&(this.c=new vt(Oh,this,9,9)),Gr(this.c);return;case 10:!this.a&&(this.a=new vt(Pi,this,10,11)),Gr(this.a);return;case 11:yJ(this,null);return;case 12:!this.b&&(this.b=new vt(ss,this,12,3)),Gr(this.b);return}ZLe(this,i)},E.Ib=function(){return dPe(this)},K(J_,"ElkNodeImpl",207),H(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},H7e),E.Ah=function(i){return bDe(this,i)},E.Lh=function(i,l,d){return i==9?z1(this):rDe(this,i,l,d)},E.Sh=function(i,l,d){var g;switch(l){case 9:return this.Cb&&(d=(g=this.Db>>16,g>=0?bDe(this,d):this.Cb.Th(this,-1-g,null,d))),tIe(this,v(i,27),d)}return xDe(this,i,l,d)},E.Uh=function(i,l,d){return l==9?tIe(this,null,d):SDe(this,i,l,d)},E.Wh=function(i){return i==9?!!z1(this):W9e(this,i)},E.bi=function(i,l){switch(i){case 9:YMe(this,v(l,27));return}BMe(this,i,l)},E.ii=function(){return Lc(),_Ke},E.ki=function(i){switch(i){case 9:YMe(this,null);return}ZLe(this,i)},E.Ib=function(){return pjt(this)},K(J_,"ElkPortImpl",193);var Hun=$a(Qo,"BasicEMap/Entry");H(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},CSt),E.Fb=function(i){return this===i},E.ld=function(){return this.b},E.Hb=function(){return vE(this)},E.Di=function(i){m9e(this,v(i,149))},E.Lh=function(i,l,d){switch(i){case 0:return this.b;case 1:return this.c}return YZ(this,i,l,d)},E.Wh=function(i){switch(i){case 0:return!!this.b;case 1:return this.c!=null}return Y0e(this,i)},E.bi=function(i,l){switch(i){case 0:m9e(this,v(l,149));return;case 1:p9e(this,l);return}I1e(this,i,l)},E.ii=function(){return Lc(),om},E.ki=function(i){switch(i){case 0:m9e(this,null);return;case 1:p9e(this,null);return}A1e(this,i)},E.Bi=function(){var i;return this.a==-1&&(i=this.b,this.a=i?ma(i):0),this.a},E.md=function(){return this.c},E.Ci=function(i){this.a=i},E.nd=function(i){var l;return l=this.c,p9e(this,i),l},E.Ib=function(){var i;return this.Db&64?T0(this):(i=new Cv,bi(bi(bi(i,this.b?this.b.Pg():Ku),Tge),XL(this.c)),i.a)},E.a=-1,E.c=null;var Ay=K(J_,"ElkPropertyToValueMapEntryImpl",1122);H(996,1,{},RSt),K(Co,"JsonAdapter",996),H(216,63,nb,zp),K(Co,"JsonImportException",216),H(868,1,{},Sqt),K(Co,"JsonImporter",868),H(903,1,{},N8t),K(Co,"JsonImporter/lambda$0$Type",903),H(904,1,{},O8t),K(Co,"JsonImporter/lambda$1$Type",904),H(912,1,{},tkt),K(Co,"JsonImporter/lambda$10$Type",912),H(914,1,{},L8t),K(Co,"JsonImporter/lambda$11$Type",914),H(915,1,{},D8t),K(Co,"JsonImporter/lambda$12$Type",915),H(921,1,{},YLt),K(Co,"JsonImporter/lambda$13$Type",921),H(920,1,{},jLt),K(Co,"JsonImporter/lambda$14$Type",920),H(916,1,{},M8t),K(Co,"JsonImporter/lambda$15$Type",916),H(917,1,{},P8t),K(Co,"JsonImporter/lambda$16$Type",917),H(918,1,{},B8t),K(Co,"JsonImporter/lambda$17$Type",918),H(919,1,{},F8t),K(Co,"JsonImporter/lambda$18$Type",919),H(924,1,{},nkt),K(Co,"JsonImporter/lambda$19$Type",924),H(905,1,{},rkt),K(Co,"JsonImporter/lambda$2$Type",905),H(922,1,{},ikt),K(Co,"JsonImporter/lambda$20$Type",922),H(923,1,{},akt),K(Co,"JsonImporter/lambda$21$Type",923),H(927,1,{},skt),K(Co,"JsonImporter/lambda$22$Type",927),H(925,1,{},okt),K(Co,"JsonImporter/lambda$23$Type",925),H(926,1,{},lkt),K(Co,"JsonImporter/lambda$24$Type",926),H(929,1,{},ckt),K(Co,"JsonImporter/lambda$25$Type",929),H(928,1,{},ukt),K(Co,"JsonImporter/lambda$26$Type",928),H(930,1,vr,$8t),E.Cd=function(i){ngr(this.b,this.a,ai(i))},K(Co,"JsonImporter/lambda$27$Type",930),H(931,1,vr,U8t),E.Cd=function(i){rgr(this.b,this.a,ai(i))},K(Co,"JsonImporter/lambda$28$Type",931),H(932,1,{},z8t),K(Co,"JsonImporter/lambda$29$Type",932),H(908,1,{},hkt),K(Co,"JsonImporter/lambda$3$Type",908),H(933,1,{},G8t),K(Co,"JsonImporter/lambda$30$Type",933),H(934,1,{},dkt),K(Co,"JsonImporter/lambda$31$Type",934),H(935,1,{},fkt),K(Co,"JsonImporter/lambda$32$Type",935),H(936,1,{},pkt),K(Co,"JsonImporter/lambda$33$Type",936),H(937,1,{},gkt),K(Co,"JsonImporter/lambda$34$Type",937),H(870,1,{},mkt),K(Co,"JsonImporter/lambda$35$Type",870),H(941,1,{},POt),K(Co,"JsonImporter/lambda$36$Type",941),H(938,1,vr,bkt),E.Cd=function(i){lpr(this.a,v(i,377))},K(Co,"JsonImporter/lambda$37$Type",938),H(939,1,vr,q8t),E.Cd=function(i){Gar(this.a,this.b,v(i,166))},K(Co,"JsonImporter/lambda$38$Type",939),H(940,1,vr,H8t),E.Cd=function(i){qar(this.a,this.b,v(i,166))},K(Co,"JsonImporter/lambda$39$Type",940),H(906,1,{},ykt),K(Co,"JsonImporter/lambda$4$Type",906),H(942,1,vr,vkt),E.Cd=function(i){cpr(this.a,v(i,8))},K(Co,"JsonImporter/lambda$40$Type",942),H(907,1,{},_kt),K(Co,"JsonImporter/lambda$5$Type",907),H(911,1,{},wkt),K(Co,"JsonImporter/lambda$6$Type",911),H(909,1,{},Ekt),K(Co,"JsonImporter/lambda$7$Type",909),H(910,1,{},xkt),K(Co,"JsonImporter/lambda$8$Type",910),H(913,1,{},Skt),K(Co,"JsonImporter/lambda$9$Type",913),H(961,1,vr,Tkt),E.Cd=function(i){Tk(this.a,new JS(ai(i)))},K(Co,"JsonMetaDataConverter/lambda$0$Type",961),H(962,1,vr,Ckt),E.Cd=function(i){edr(this.a,v(i,245))},K(Co,"JsonMetaDataConverter/lambda$1$Type",962),H(963,1,vr,Akt),E.Cd=function(i){Jfr(this.a,v(i,143))},K(Co,"JsonMetaDataConverter/lambda$2$Type",963),H(964,1,vr,kkt),E.Cd=function(i){tdr(this.a,v(i,170))},K(Co,"JsonMetaDataConverter/lambda$3$Type",964),H(245,22,{3:1,34:1,22:1,245:1},hk);var are,sre,U2e,ore,lre,cre,z2e,G2e,ure=$r(HG,"GraphFeature",245,jr,Fgr,Aur),Vun;H(11,1,{34:1,149:1},la,Ba,En,fo),E.Fd=function(i){return Wsr(this,v(i,149))},E.Fb=function(i){return mDt(this,i)},E.Sg=function(){return zt(this)},E.Pg=function(){return this.b},E.Hb=function(){return ry(this.b)},E.Ib=function(){return this.b},K(HG,"Property",11),H(671,1,ui,Sue),E.Ne=function(i,l){return avr(this,v(i,96),v(l,96))},E.Fb=function(i){return this===i},E.Oe=function(){return new ei(this)},K(HG,"PropertyHolderComparator",671),H(709,1,io,T7e),E.Nb=function(i){xo(this,i)},E.Pb=function(){return sgr(this)},E.Qb=function(){S7t()},E.Ob=function(){return!!this.a},K(Nee,"ElkGraphUtil/AncestorIterator",709);var EKe=$a(Qo,"EList");H(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1}),E.bd=function(i,l){FD(this,i,l)},E.Fc=function(i){return Yr(this,i)},E.cd=function(i,l){return $9e(this,i,l)},E.Gc=function(i){return Ka(this,i)},E.Ii=function(){return new mk(this)},E.Ji=function(){return new $U(this)},E.Ki=function(i){return Nz(this,i)},E.Li=function(){return!0},E.Mi=function(i,l){},E.Ni=function(){},E.Oi=function(i,l){Sfe(this,i,l)},E.Pi=function(i,l,d){},E.Qi=function(i,l){},E.Ri=function(i,l,d){},E.Fb=function(i){return ZYt(this,i)},E.Hb=function(){return M9e(this)},E.Si=function(){return!1},E.Kc=function(){return new mr(this)},E.ed=function(){return new gk(this)},E.fd=function(i){var l;if(l=this.gc(),i<0||i>l)throw _e(new XS(i,l));return new Rde(this,i)},E.Ui=function(i,l){this.Ti(i,this.dd(l))},E.Mc=function(i){return WQ(this,i)},E.Wi=function(i,l){return l},E.hd=function(i,l){return JT(this,i,l)},E.Ib=function(){return RLe(this)},E.Yi=function(){return!0},E.Zi=function(i,l){return z8(this,l)},K(Qo,"AbstractEList",70),H(66,70,hg,fK,PE,R9e),E.Ei=function(i,l){return w1e(this,i,l)},E.Fi=function(i){return KGt(this,i)},E.Gi=function(i,l){Yz(this,i,l)},E.Hi=function(i){gz(this,i)},E.$i=function(i){return qOe(this,i)},E.$b=function(){_D(this)},E.Hc=function(i){return rI(this,i)},E.Xb=function(i){return ze(this,i)},E._i=function(i){var l,d,g;++this.j,d=this.g==null?0:this.g.length,i>d&&(g=this.g,l=d+(d/2|0)+4,l=0?(this.gd(l),!0):!1},E.Xi=function(i,l){return this.Dj(i,this.Zi(i,l))},E.gc=function(){return this.Ej()},E.Pc=function(){return this.Fj()},E.Qc=function(i){return this.Gj(i)},E.Ib=function(){return this.Hj()},K(Qo,"DelegatingEList",2093),H(2094,2093,pJt),E.Ei=function(i,l){return SPe(this,i,l)},E.Fi=function(i){return this.Ei(this.Ej(),i)},E.Gi=function(i,l){$Vt(this,i,l)},E.Hi=function(i){AVt(this,i)},E.Li=function(){return!this.Mj()},E.$b=function(){pM(this)},E.Ij=function(i,l,d,g,y){return new gDt(this,i,l,d,g,y)},E.Jj=function(i){Vi(this.jj(),i)},E.Kj=function(){return null},E.Lj=function(){return-1},E.jj=function(){return null},E.Mj=function(){return!1},E.Nj=function(i,l){return l},E.Oj=function(i,l){return l},E.Pj=function(){return!1},E.Qj=function(){return!this.Aj()},E.Ti=function(i,l){var d,g;return this.Pj()?(g=this.Qj(),d=XDe(this,i,l),this.Jj(this.Ij(7,Nt(l),d,i,g)),d):XDe(this,i,l)},E.gd=function(i){var l,d,g,y;return this.Pj()?(d=null,g=this.Qj(),l=this.Ij(4,y=YX(this,i),null,i,g),this.Mj()&&y?(d=this.Oj(y,d),d?(d.nj(l),d.oj()):this.Jj(l)):d?(d.nj(l),d.oj()):this.Jj(l),y):(y=YX(this,i),this.Mj()&&y&&(d=this.Oj(y,null),d&&d.oj()),y)},E.Xi=function(i,l){return Yjt(this,i,l)},K(h6,"DelegatingNotifyingListImpl",2094),H(152,1,oq),E.nj=function(i){return MDe(this,i)},E.oj=function(){Ofe(this)},E.gj=function(){return this.d},E.Kj=function(){return null},E.Rj=function(){return null},E.hj=function(i){return-1},E.ij=function(){return LYt(this)},E.jj=function(){return null},E.kj=function(){return tPe(this)},E.lj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},E.Sj=function(){return!1},E.mj=function(i){var l,d,g,y,x,T,R,O,D,q,J;switch(this.d){case 1:case 2:switch(y=i.gj(),y){case 1:case 2:if(x=i.jj(),Ze(x)===Ze(this.jj())&&this.hj(null)==i.hj(null))return this.g=i.ij(),i.gj()==1&&(this.d=1),!0}case 4:{switch(y=i.gj(),y){case 4:{if(x=i.jj(),Ze(x)===Ze(this.jj())&&this.hj(null)==i.hj(null))return D=zPe(this),O=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,T=i.lj(),this.d=6,J=new PE(2),O<=T?(Yr(J,this.n),Yr(J,i.kj()),this.g=Te(xe(Wr,1),vi,28,15,[this.o=O,T+1])):(Yr(J,i.kj()),Yr(J,this.n),this.g=Te(xe(Wr,1),vi,28,15,[this.o=T,O])),this.n=J,D||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(y=i.gj(),y){case 4:{if(x=i.jj(),Ze(x)===Ze(this.jj())&&this.hj(null)==i.hj(null)){for(D=zPe(this),T=i.lj(),q=v(this.g,53),g=st(Wr,vi,28,q.length+1,15,1),l=0;l>>0,l.toString(16))),g.a+=" (eventType: ",this.d){case 1:{g.a+="SET";break}case 2:{g.a+="UNSET";break}case 3:{g.a+="ADD";break}case 5:{g.a+="ADD_MANY";break}case 4:{g.a+="REMOVE";break}case 6:{g.a+="REMOVE_MANY";break}case 7:{g.a+="MOVE";break}case 8:{g.a+="REMOVING_ADAPTER";break}case 9:{g.a+="RESOLVE";break}default:{Wue(g,this.d);break}}if(_jt(this)&&(g.a+=", touch: true"),g.a+=", position: ",Wue(g,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),g.a+=", notifier: ",HL(g,this.jj()),g.a+=", feature: ",HL(g,this.Kj()),g.a+=", oldValue: ",HL(g,tPe(this)),g.a+=", newValue: ",this.d==6&&$e(this.g,53)){for(d=v(this.g,53),g.a+="[",i=0;i10?((!this.b||this.c.j!=this.a)&&(this.b=new nD(this),this.a=this.j),r1(this.b,i)):rI(this,i)},E.Yi=function(){return!0},E.a=0,K(Qo,"AbstractEList/1",966),H(302,77,Kpe,XS),K(Qo,"AbstractEList/BasicIndexOutOfBoundsException",302),H(37,1,io,mr),E.Nb=function(i){xo(this,i)},E.Xj=function(){if(this.i.j!=this.f)throw _e(new Jd)},E.Yj=function(){return wr(this)},E.Ob=function(){return this.e!=this.i.gc()},E.Pb=function(){return this.Yj()},E.Qb=function(){XD(this)},E.e=0,E.f=0,E.g=-1,K(Qo,"AbstractEList/EIterator",37),H(286,37,Yg,gk,Rde),E.Qb=function(){XD(this)},E.Rb=function(i){jzt(this,i)},E.Zj=function(){var i;try{return i=this.d.Xb(--this.e),this.Xj(),this.g=this.e,i}catch(l){throw l=Da(l),$e(l,77)?(this.Xj(),_e(new ec)):_e(l)}},E.$j=function(i){ZGt(this,i)},E.Sb=function(){return this.e!=0},E.Tb=function(){return this.e},E.Ub=function(){return this.Zj()},E.Vb=function(){return this.e-1},E.Wb=function(i){this.$j(i)},K(Qo,"AbstractEList/EListIterator",286),H(355,37,io,mk),E.Yj=function(){return j0e(this)},E.Qb=function(){throw _e(new ri)},K(Qo,"AbstractEList/NonResolvingEIterator",355),H(398,286,Yg,$U,bIe),E.Rb=function(i){throw _e(new ri)},E.Yj=function(){var i;try{return i=this.c.Vi(this.e),this.Xj(),this.g=this.e++,i}catch(l){throw l=Da(l),$e(l,77)?(this.Xj(),_e(new ec)):_e(l)}},E.Zj=function(){var i;try{return i=this.c.Vi(--this.e),this.Xj(),this.g=this.e,i}catch(l){throw l=Da(l),$e(l,77)?(this.Xj(),_e(new ec)):_e(l)}},E.Qb=function(){throw _e(new ri)},E.Wb=function(i){throw _e(new ri)},K(Qo,"AbstractEList/NonResolvingEListIterator",398),H(2080,70,gJt),E.Ei=function(i,l){var d,g,y,x,T,R,O,D,q,J,re;if(y=l.gc(),y!=0){for(D=v(rr(this.a,4),129),q=D==null?0:D.length,re=q+y,g=m0e(this,re),J=q-i,J>0&&Gc(D,i,g,i+y,J),O=l.Kc(),T=0;Td)throw _e(new XS(i,d));return new BLt(this,i)},E.$b=function(){var i,l;++this.j,i=v(rr(this.a,4),129),l=i==null?0:i.length,J8(this,null),Sfe(this,l,i)},E.Hc=function(i){var l,d,g,y,x;if(l=v(rr(this.a,4),129),l!=null){if(i!=null){for(g=l,y=0,x=g.length;y=d)throw _e(new XS(i,d));return l[i]},E.dd=function(i){var l,d,g;if(l=v(rr(this.a,4),129),l!=null){if(i!=null){for(d=0,g=l.length;dd)throw _e(new XS(i,d));return new PLt(this,i)},E.Ti=function(i,l){var d,g,y;if(d=rGt(this),y=d==null?0:d.length,i>=y)throw _e(new Sl(zme+i+ew+y));if(l>=y)throw _e(new Sl(Gme+l+ew+y));return g=d[l],i!=l&&(i0&&Gc(i,0,l,0,d),l},E.Qc=function(i){var l,d,g;return l=v(rr(this.a,4),129),g=l==null?0:l.length,g>0&&(i.lengthg&&Ga(i,g,null),i};var Yun;K(Qo,"ArrayDelegatingEList",2080),H(1051,37,io,FPt),E.Xj=function(){if(this.b.j!=this.f||Ze(v(rr(this.b.a,4),129))!==Ze(this.a))throw _e(new Jd)},E.Qb=function(){XD(this),this.a=v(rr(this.b.a,4),129)},K(Qo,"ArrayDelegatingEList/EIterator",1051),H(722,286,Yg,X9t,PLt),E.Xj=function(){if(this.b.j!=this.f||Ze(v(rr(this.b.a,4),129))!==Ze(this.a))throw _e(new Jd)},E.$j=function(i){ZGt(this,i),this.a=v(rr(this.b.a,4),129)},E.Qb=function(){XD(this),this.a=v(rr(this.b.a,4),129)},K(Qo,"ArrayDelegatingEList/EListIterator",722),H(1052,355,io,$Pt),E.Xj=function(){if(this.b.j!=this.f||Ze(v(rr(this.b.a,4),129))!==Ze(this.a))throw _e(new Jd)},K(Qo,"ArrayDelegatingEList/NonResolvingEIterator",1052),H(723,398,Yg,Q9t,BLt),E.Xj=function(){if(this.b.j!=this.f||Ze(v(rr(this.b.a,4),129))!==Ze(this.a))throw _e(new Jd)},K(Qo,"ArrayDelegatingEList/NonResolvingEListIterator",723),H(615,302,Kpe,Dhe),K(Qo,"BasicEList/BasicIndexOutOfBoundsException",615),H(710,66,hg,a8e),E.bd=function(i,l){throw _e(new ri)},E.Fc=function(i){throw _e(new ri)},E.cd=function(i,l){throw _e(new ri)},E.Gc=function(i){throw _e(new ri)},E.$b=function(){throw _e(new ri)},E._i=function(i){throw _e(new ri)},E.Kc=function(){return this.Ii()},E.ed=function(){return this.Ji()},E.fd=function(i){return this.Ki(i)},E.Ti=function(i,l){throw _e(new ri)},E.Ui=function(i,l){throw _e(new ri)},E.gd=function(i){throw _e(new ri)},E.Mc=function(i){throw _e(new ri)},E.hd=function(i,l){throw _e(new ri)},K(Qo,"BasicEList/UnmodifiableEList",710),H(721,1,{3:1,20:1,16:1,15:1,61:1,597:1}),E.bd=function(i,l){Psr(this,i,v(l,44))},E.Fc=function(i){return Ior(this,v(i,44))},E.Jc=function(i){To(this,i)},E.Xb=function(i){return v(ze(this.c,i),136)},E.Ti=function(i,l){return v(this.c.Ti(i,l),44)},E.Ui=function(i,l){Bsr(this,i,v(l,44))},E.Lc=function(){return new xn(null,new Nn(this,16))},E.gd=function(i){return v(this.c.gd(i),44)},E.hd=function(i,l){return Jhr(this,i,v(l,44))},E.jd=function(i){D_(this,i)},E.Nc=function(){return new Nn(this,16)},E.Oc=function(){return new xn(null,new Nn(this,16))},E.cd=function(i,l){return this.c.cd(i,l)},E.Gc=function(i){return this.c.Gc(i)},E.$b=function(){this.c.$b()},E.Hc=function(i){return this.c.Hc(i)},E.Ic=function(i){return Bz(this.c,i)},E._j=function(){var i,l,d;if(this.d==null){for(this.d=st(xKe,OUe,66,2*this.f+1,0,1),d=this.e,this.f=0,l=this.c.Kc();l.e!=l.i.gc();)i=v(l.Yj(),136),XZ(this,i);this.e=d}},E.Fb=function(i){return SOt(this,i)},E.Hb=function(){return M9e(this.c)},E.dd=function(i){return this.c.dd(i)},E.ak=function(){this.c=new Rkt(this)},E.dc=function(){return this.f==0},E.Kc=function(){return this.c.Kc()},E.ed=function(){return this.c.ed()},E.fd=function(i){return this.c.fd(i)},E.bk=function(){return yz(this)},E.ck=function(i,l,d){return new BOt(i,l,d)},E.dk=function(){return new LSt},E.Mc=function(i){return u$t(this,i)},E.gc=function(){return this.f},E.kd=function(i,l){return new Qb(this.c,i,l)},E.Pc=function(){return this.c.Pc()},E.Qc=function(i){return this.c.Qc(i)},E.Ib=function(){return RLe(this.c)},E.e=0,E.f=0,K(Qo,"BasicEMap",721),H(1046,66,hg,Rkt),E.Mi=function(i,l){fir(this,v(l,136))},E.Pi=function(i,l,d){var g;++(g=this,v(l,136),g).a.e},E.Qi=function(i,l){pir(this,v(l,136))},E.Ri=function(i,l,d){gor(this,v(l,136),v(d,136))},E.Oi=function(i,l){rUt(this.a)},K(Qo,"BasicEMap/1",1046),H(1047,66,hg,LSt),E.aj=function(i){return st(rIr,mJt,621,i,0,1)},K(Qo,"BasicEMap/2",1047),H(1048,J1,fh,Ikt),E.$b=function(){this.a.c.$b()},E.Hc=function(i){return B0e(this.a,i)},E.Kc=function(){return this.a.f==0?(t8(),SH.a):new d7t(this.a)},E.Mc=function(i){var l;return l=this.a.f,FZ(this.a,i),this.a.f!=l},E.gc=function(){return this.a.f},K(Qo,"BasicEMap/3",1048),H(1049,31,A4,Nkt),E.$b=function(){this.a.c.$b()},E.Hc=function(i){return JYt(this.a,i)},E.Kc=function(){return this.a.f==0?(t8(),SH.a):new f7t(this.a)},E.gc=function(){return this.a.f},K(Qo,"BasicEMap/4",1049),H(1050,J1,fh,Okt),E.$b=function(){this.a.c.$b()},E.Hc=function(i){var l,d,g,y,x,T,R,O,D;if(this.a.f>0&&$e(i,44)&&(this.a._j(),O=v(i,44),R=O.ld(),y=R==null?0:ma(R),x=nIe(this.a,y),l=this.a.d[x],l)){for(d=v(l.g,379),D=l.i,T=0;T"+this.c},E.a=0;var rIr=K(Qo,"BasicEMap/EntryImpl",621);H(546,1,{},pK),K(Qo,"BasicEMap/View",546);var SH;H(783,1,{}),E.Fb=function(i){return FMe((Fn(),Zo),i)},E.Hb=function(){return j9e((Fn(),Zo))},E.Ib=function(){return Wv((Fn(),Zo))},K(Qo,"ECollections/BasicEmptyUnmodifiableEList",783),H(1348,1,Yg,DSt),E.Nb=function(i){xo(this,i)},E.Rb=function(i){throw _e(new ri)},E.Ob=function(){return!1},E.Sb=function(){return!1},E.Pb=function(){throw _e(new ec)},E.Tb=function(){return 0},E.Ub=function(){throw _e(new ec)},E.Vb=function(){return-1},E.Qb=function(){throw _e(new ri)},E.Wb=function(i){throw _e(new ri)},K(Qo,"ECollections/BasicEmptyUnmodifiableEList/1",1348),H(1346,783,{20:1,16:1,15:1,61:1},E6t),E.bd=function(i,l){B7t()},E.Fc=function(i){return F7t()},E.cd=function(i,l){return $7t()},E.Gc=function(i){return U7t()},E.$b=function(){z7t()},E.Hc=function(i){return!1},E.Ic=function(i){return!1},E.Jc=function(i){To(this,i)},E.Xb=function(i){return l8e((Fn(),i)),null},E.dd=function(i){return-1},E.dc=function(){return!0},E.Kc=function(){return this.a},E.ed=function(){return this.a},E.fd=function(i){return this.a},E.Ti=function(i,l){return G7t()},E.Ui=function(i,l){q7t()},E.Lc=function(){return new xn(null,new Nn(this,16))},E.gd=function(i){return H7t()},E.Mc=function(i){return V7t()},E.hd=function(i,l){return Y7t()},E.gc=function(){return 0},E.jd=function(i){D_(this,i)},E.Nc=function(){return new Nn(this,16)},E.Oc=function(){return new xn(null,new Nn(this,16))},E.kd=function(i,l){return Fn(),new Qb(Zo,i,l)},E.Pc=function(){return aNe((Fn(),Zo))},E.Qc=function(i){return Fn(),YD(Zo,i)},K(Qo,"ECollections/EmptyUnmodifiableEList",1346),H(1347,783,{20:1,16:1,15:1,61:1,597:1},x6t),E.bd=function(i,l){B7t()},E.Fc=function(i){return F7t()},E.cd=function(i,l){return $7t()},E.Gc=function(i){return U7t()},E.$b=function(){z7t()},E.Hc=function(i){return!1},E.Ic=function(i){return!1},E.Jc=function(i){To(this,i)},E.Xb=function(i){return l8e((Fn(),i)),null},E.dd=function(i){return-1},E.dc=function(){return!0},E.Kc=function(){return this.a},E.ed=function(){return this.a},E.fd=function(i){return this.a},E.Ti=function(i,l){return G7t()},E.Ui=function(i,l){q7t()},E.Lc=function(){return new xn(null,new Nn(this,16))},E.gd=function(i){return H7t()},E.Mc=function(i){return V7t()},E.hd=function(i,l){return Y7t()},E.gc=function(){return 0},E.jd=function(i){D_(this,i)},E.Nc=function(){return new Nn(this,16)},E.Oc=function(){return new xn(null,new Nn(this,16))},E.kd=function(i,l){return Fn(),new Qb(Zo,i,l)},E.Pc=function(){return aNe((Fn(),Zo))},E.Qc=function(i){return Fn(),YD(Zo,i)},E.bk=function(){return Fn(),Fn(),Jg},K(Qo,"ECollections/EmptyUnmodifiableEMap",1347);var TKe=$a(Qo,"Enumerator"),hre;H(288,1,{288:1},H1e),E.Fb=function(i){var l;return this===i?!0:$e(i,288)?(l=v(i,288),this.f==l.f&&ghr(this.i,l.i)&&bde(this.a,this.f&256?l.f&256?l.a:null:l.f&256?null:l.a)&&bde(this.d,l.d)&&bde(this.g,l.g)&&bde(this.e,l.e)&&$2r(this,l)):!1},E.Hb=function(){return this.f},E.Ib=function(){return Ojt(this)},E.f=0;var jun=0,Wun=0,Kun=0,Xun=0,CKe=0,AKe=0,kKe=0,RKe=0,IKe=0,Qun,ZP=0,JP=0,Zun=0,Jun=0,dre,NKe;K(Qo,"URI",288),H(1121,45,p5,S6t),E.zc=function(i,l){return v(Cl(this,ai(i),v(l,288)),288)},K(Qo,"URI/URICache",1121),H(506,66,hg,kSt,ZX),E.Si=function(){return!0},K(Qo,"UniqueEList",506),H(590,63,nb,VQ),K(Qo,"WrappedException",590);var wi=$a(yf,vJt),c3=$a(yf,_Jt),Ju=$a(yf,wJt),u3=$a(yf,EJt),v1=$a(yf,xJt),Jf=$a(yf,"EClass"),V2e=$a(yf,"EDataType"),ehn;H(1233,45,p5,T6t),E.xc=function(i){return ro(i)?Qc(this,i):Pl(ol(this.f,i))},K(yf,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1233);var fre=$a(yf,"EEnum"),hb=$a(yf,SJt),pl=$a(yf,TJt),e0=$a(yf,CJt),t0,Rx=$a(yf,AJt),h3=$a(yf,kJt);H(1042,1,{},ASt),E.Ib=function(){return"NIL"},K(yf,"EStructuralFeature/Internal/DynamicValueHolder/1",1042);var thn;H(1041,45,p5,C6t),E.xc=function(i){return ro(i)?Qc(this,i):Pl(ol(this.f,i))},K(yf,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1041);var Mu=$a(yf,RJt),D6=$a(yf,"EValidator/PatternMatcher"),OKe,LKe,Zn,ky,d3,E2,nhn,rhn,ihn,x2,Ry,S2,Ix,dp,ahn,shn,n0,Iy,ohn,Ny,f3,iC,nl,lhn,chn,Nx,pre=$a(Ca,"FeatureMap/Entry");H(545,1,{76:1},gX),E.Lk=function(){return this.a},E.md=function(){return this.b},K(tr,"BasicEObjectImpl/1",545),H(1040,1,Wme,W8t),E.Fk=function(i){return _fe(this.a,this.b,i)},E.Qj=function(){return IDt(this.a,this.b)},E.Wb=function(i){jNe(this.a,this.b,i)},E.Gk=function(){ddr(this.a,this.b)},K(tr,"BasicEObjectImpl/4",1040),H(2081,1,{114:1}),E.Mk=function(i){this.e=i==0?uhn:st(zs,Yn,1,i,5,1)},E.li=function(i){return this.e[i]},E.mi=function(i,l){this.e[i]=l},E.ni=function(i){this.e[i]=null},E.Nk=function(){return this.c},E.Ok=function(){throw _e(new ri)},E.Pk=function(){throw _e(new ri)},E.Qk=function(){return this.d},E.Rk=function(){return this.e!=null},E.Sk=function(i){this.c=i},E.Tk=function(i){throw _e(new ri)},E.Uk=function(i){throw _e(new ri)},E.Vk=function(i){this.d=i};var uhn;K(tr,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2081),H(192,2081,{114:1},t1),E.Ok=function(){return this.a},E.Pk=function(){return this.b},E.Tk=function(i){this.a=i},E.Uk=function(i){this.b=i},K(tr,"BasicEObjectImpl/EPropertiesHolderImpl",192),H(516,99,IZt,gK),E.uh=function(){return this.f},E.zh=function(){return this.k},E.Bh=function(i,l){this.g=i,this.i=l},E.Dh=function(){return this.j&2?this.$h().Nk():this.ii()},E.Fh=function(){return this.i},E.wh=function(){return(this.j&1)!=0},E.Ph=function(){return this.g},E.Vh=function(){return(this.j&4)!=0},E.$h=function(){return!this.k&&(this.k=new t1),this.k},E.ci=function(i){this.$h().Sk(i),i?this.j|=2:this.j&=-3},E.ei=function(i){this.$h().Uk(i),i?this.j|=4:this.j&=-5},E.ii=function(){return(Mv(),Zn).S},E.i=0,E.j=1,K(tr,"EObjectImpl",516),H(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},GIe),E.li=function(i){return this.e[i]},E.mi=function(i,l){this.e[i]=l},E.ni=function(i){this.e[i]=null},E.Dh=function(){return this.d},E.Ih=function(i){return Ma(this.d,i)},E.Kh=function(){return this.d},E.Oh=function(){return this.e!=null},E.$h=function(){return!this.k&&(this.k=new MSt),this.k},E.ci=function(i){this.d=i},E.hi=function(){var i;return this.e==null&&(i=kr(this.d),this.e=i==0?hhn:st(zs,Yn,1,i,5,1)),this},E.ji=function(){return 0};var hhn;K(tr,"DynamicEObjectImpl",798),H(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},l9t),E.Fb=function(i){return this===i},E.Hb=function(){return vE(this)},E.ci=function(i){this.d=i,this.b=vG(i,"key"),this.c=vG(i,BM)},E.Bi=function(){var i;return this.a==-1&&(i=Lfe(this,this.b),this.a=i==null?0:ma(i)),this.a},E.ld=function(){return Lfe(this,this.b)},E.md=function(){return Lfe(this,this.c)},E.Ci=function(i){this.a=i},E.Di=function(i){jNe(this,this.b,i)},E.nd=function(i){var l;return l=Lfe(this,this.c),jNe(this,this.c,i),l},E.a=0,K(tr,"DynamicEObjectImpl/BasicEMapEntry",1522),H(1523,1,{114:1},MSt),E.Mk=function(i){throw _e(new ri)},E.li=function(i){throw _e(new ri)},E.mi=function(i,l){throw _e(new ri)},E.ni=function(i){throw _e(new ri)},E.Nk=function(){throw _e(new ri)},E.Ok=function(){return this.a},E.Pk=function(){return this.b},E.Qk=function(){return this.c},E.Rk=function(){throw _e(new ri)},E.Sk=function(i){throw _e(new ri)},E.Tk=function(i){this.a=i},E.Uk=function(i){this.b=i},E.Vk=function(i){this.c=i},K(tr,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1523),H(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},V6e),E.Ah=function(i){return yDe(this,i)},E.Lh=function(i,l,d){var g;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.d;case 2:return d?(!this.b&&(this.b=new sd((Pn(),nl),_c,this)),this.b):(!this.b&&(this.b=new sd((Pn(),nl),_c,this)),yz(this.b));case 3:return MDt(this);case 4:return!this.a&&(this.a=new gs(_2,this,4)),this.a;case 5:return!this.c&&(this.c=new BT(_2,this,5)),this.c}return lf(this,i-kr((Pn(),ky)),qn((g=v(rr(this,16),29),g||ky),i),l,d)},E.Sh=function(i,l,d){var g,y,x;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),bu(this.Ab,i,d);case 3:return this.Cb&&(d=(y=this.Db>>16,y>=0?yDe(this,d):this.Cb.Th(this,-1-y,null,d))),iNe(this,v(i,155),d)}return x=v(qn((g=v(rr(this,16),29),g||(Pn(),ky)),l),69),x.wk().zk(this,Ru(this),l-kr((Pn(),ky)),i,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 2:return!this.b&&(this.b=new sd((Pn(),nl),_c,this)),DX(this.b,i,d);case 3:return iNe(this,null,d);case 4:return!this.a&&(this.a=new gs(_2,this,4)),Ko(this.a,i,d)}return y=v(qn((g=v(rr(this,16),29),g||(Pn(),ky)),l),69),y.wk().Ak(this,Ru(this),l-kr((Pn(),ky)),i,d)},E.Wh=function(i){var l;switch(i){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!!MDt(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return sf(this,i-kr((Pn(),ky)),qn((l=v(rr(this,16),29),l||ky),i))},E.bi=function(i,l){var d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:nhr(this,ai(l));return;case 2:!this.b&&(this.b=new sd((Pn(),nl),_c,this)),mZ(this.b,l);return;case 3:_Yt(this,v(l,155));return;case 4:!this.a&&(this.a=new gs(_2,this,4)),Gr(this.a),!this.a&&(this.a=new gs(_2,this,4)),Ka(this.a,v(l,16));return;case 5:!this.c&&(this.c=new BT(_2,this,5)),Gr(this.c),!this.c&&(this.c=new BT(_2,this,5)),Ka(this.c,v(l,16));return}df(this,i-kr((Pn(),ky)),qn((d=v(rr(this,16),29),d||ky),i),l)},E.ii=function(){return Pn(),ky},E.ki=function(i){var l;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:v9e(this,null);return;case 2:!this.b&&(this.b=new sd((Pn(),nl),_c,this)),this.b.c.$b();return;case 3:_Yt(this,null);return;case 4:!this.a&&(this.a=new gs(_2,this,4)),Gr(this.a);return;case 5:!this.c&&(this.c=new BT(_2,this,5)),Gr(this.c);return}hf(this,i-kr((Pn(),ky)),qn((l=v(rr(this,16),29),l||ky),i))},E.Ib=function(){return Szt(this)},E.d=null,K(tr,"EAnnotationImpl",519),H(141,721,LUe,uh),E.Gi=function(i,l){vsr(this,i,v(l,44))},E.Wk=function(i,l){return Elr(this,v(i,44),l)},E.$i=function(i){return v(v(this.c,71).$i(i),136)},E.Ii=function(){return v(this.c,71).Ii()},E.Ji=function(){return v(this.c,71).Ji()},E.Ki=function(i){return v(this.c,71).Ki(i)},E.Xk=function(i,l){return DX(this,i,l)},E.Fk=function(i){return v(this.c,79).Fk(i)},E.ak=function(){},E.Qj=function(){return v(this.c,79).Qj()},E.ck=function(i,l,d){var g;return g=v(Cd(this.b).wi().si(this.b),136),g.Ci(i),g.Di(l),g.nd(d),g},E.dk=function(){return new A7e(this)},E.Wb=function(i){mZ(this,i)},E.Gk=function(){v(this.c,79).Gk()},K(Ca,"EcoreEMap",141),H(165,141,LUe,sd),E._j=function(){var i,l,d,g,y,x;if(this.d==null){for(x=st(xKe,OUe,66,2*this.f+1,0,1),d=this.c.Kc();d.e!=d.i.gc();)l=v(d.Yj(),136),g=l.Bi(),y=(g&qi)%x.length,i=x[y],!i&&(i=x[y]=new A7e(this)),i.Fc(l);this.d=x}},K(tr,"EAnnotationImpl/1",165),H(292,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,481:1,54:1,99:1,158:1,292:1,119:1,120:1}),E.Lh=function(i,l,d){var g,y;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qn(),!!(this.Bb&256);case 3:return Qn(),!!(this.Bb&512);case 4:return Nt(this.s);case 5:return Nt(this.t);case 6:return Qn(),!!this.Jk();case 7:return Qn(),y=this.s,y>=1;case 8:return l?Gf(this):this.r;case 9:return this.q}return lf(this,i-kr(this.ii()),qn((g=v(rr(this,16),29),g||this.ii()),i),l,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 9:return Ode(this,d)}return y=v(qn((g=v(rr(this,16),29),g||this.ii()),l),69),y.wk().Ak(this,Ru(this),l-kr(this.ii()),i,d)},E.Wh=function(i){var l,d;switch(i){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.Jk();case 7:return d=this.s,d>=1;case 8:return!!this.r&&!this.q.e&&AE(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&AE(this.q).i==0)}return sf(this,i-kr(this.ii()),qn((l=v(rr(this,16),29),l||this.ii()),i))},E.bi=function(i,l){var d,g;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:this.ui(ai(l));return;case 2:sy(this,Vt(Ht(l)));return;case 3:oy(this,Vt(Ht(l)));return;case 4:ny(this,v(l,17).a);return;case 5:this.Zk(v(l,17).a);return;case 8:U_(this,v(l,142));return;case 9:g=Q1(this,v(l,89),null),g&&g.oj();return}df(this,i-kr(this.ii()),qn((d=v(rr(this,16),29),d||this.ii()),i),l)},E.ii=function(){return Pn(),chn},E.ki=function(i){var l,d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:this.ui(null);return;case 2:sy(this,!0);return;case 3:oy(this,!0);return;case 4:ny(this,0);return;case 5:this.Zk(1);return;case 8:U_(this,null);return;case 9:d=Q1(this,null,null),d&&d.oj();return}hf(this,i-kr(this.ii()),qn((l=v(rr(this,16),29),l||this.ii()),i))},E.pi=function(){Gf(this),this.Bb|=1},E.Hk=function(){return Gf(this)},E.Ik=function(){return this.t},E.Jk=function(){var i;return i=this.t,i>1||i==-1},E.Si=function(){return(this.Bb&512)!=0},E.Yk=function(i,l){return dLe(this,i,l)},E.Zk=function(i){c4(this,i)},E.Ib=function(){return RMe(this)},E.s=0,E.t=1,K(tr,"ETypedElementImpl",292),H(462,292,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,462:1,292:1,119:1,120:1,692:1}),E.Ah=function(i){return fqt(this,i)},E.Lh=function(i,l,d){var g,y;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qn(),!!(this.Bb&256);case 3:return Qn(),!!(this.Bb&512);case 4:return Nt(this.s);case 5:return Nt(this.t);case 6:return Qn(),!!this.Jk();case 7:return Qn(),y=this.s,y>=1;case 8:return l?Gf(this):this.r;case 9:return this.q;case 10:return Qn(),!!(this.Bb&k0);case 11:return Qn(),!!(this.Bb&P4);case 12:return Qn(),!!(this.Bb&R4);case 13:return this.j;case 14:return cI(this);case 15:return Qn(),!!(this.Bb&gh);case 16:return Qn(),!!(this.Bb&ng);case 17:return t4(this)}return lf(this,i-kr(this.ii()),qn((g=v(rr(this,16),29),g||this.ii()),i),l,d)},E.Sh=function(i,l,d){var g,y,x;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),bu(this.Ab,i,d);case 17:return this.Cb&&(d=(y=this.Db>>16,y>=0?fqt(this,d):this.Cb.Th(this,-1-y,null,d))),Od(this,i,17,d)}return x=v(qn((g=v(rr(this,16),29),g||this.ii()),l),69),x.wk().zk(this,Ru(this),l-kr(this.ii()),i,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 9:return Ode(this,d);case 17:return Od(this,null,17,d)}return y=v(qn((g=v(rr(this,16),29),g||this.ii()),l),69),y.wk().Ak(this,Ru(this),l-kr(this.ii()),i,d)},E.Wh=function(i){var l,d;switch(i){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.Jk();case 7:return d=this.s,d>=1;case 8:return!!this.r&&!this.q.e&&AE(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&AE(this.q).i==0);case 10:return(this.Bb&k0)==0;case 11:return(this.Bb&P4)!=0;case 12:return(this.Bb&R4)!=0;case 13:return this.j!=null;case 14:return cI(this)!=null;case 15:return(this.Bb&gh)!=0;case 16:return(this.Bb&ng)!=0;case 17:return!!t4(this)}return sf(this,i-kr(this.ii()),qn((l=v(rr(this,16),29),l||this.ii()),i))},E.bi=function(i,l){var d,g;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:afe(this,ai(l));return;case 2:sy(this,Vt(Ht(l)));return;case 3:oy(this,Vt(Ht(l)));return;case 4:ny(this,v(l,17).a);return;case 5:this.Zk(v(l,17).a);return;case 8:U_(this,v(l,142));return;case 9:g=Q1(this,v(l,89),null),g&&g.oj();return;case 10:Y8(this,Vt(Ht(l)));return;case 11:K8(this,Vt(Ht(l)));return;case 12:j8(this,Vt(Ht(l)));return;case 13:i8e(this,ai(l));return;case 15:W8(this,Vt(Ht(l)));return;case 16:X8(this,Vt(Ht(l)));return}df(this,i-kr(this.ii()),qn((d=v(rr(this,16),29),d||this.ii()),i),l)},E.ii=function(){return Pn(),lhn},E.ki=function(i){var l,d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:$e(this.Cb,90)&&_4($h(v(this.Cb,90)),4),mu(this,null);return;case 2:sy(this,!0);return;case 3:oy(this,!0);return;case 4:ny(this,0);return;case 5:this.Zk(1);return;case 8:U_(this,null);return;case 9:d=Q1(this,null,null),d&&d.oj();return;case 10:Y8(this,!0);return;case 11:K8(this,!1);return;case 12:j8(this,!1);return;case 13:this.i=null,uZ(this,null);return;case 15:W8(this,!1);return;case 16:X8(this,!1);return}hf(this,i-kr(this.ii()),qn((l=v(rr(this,16),29),l||this.ii()),i))},E.pi=function(){d8(Al((dh(),ko),this)),Gf(this),this.Bb|=1},E.pk=function(){return this.f},E.ik=function(){return cI(this)},E.qk=function(){return t4(this)},E.uk=function(){return null},E.$k=function(){return this.k},E.Lj=function(){return this.n},E.vk=function(){return iJ(this)},E.wk=function(){var i,l,d,g,y,x,T,R,O;return this.p||(d=t4(this),(d.i==null&&tg(d),d.i).length,g=this.uk(),g&&kr(t4(g)),y=Gf(this),T=y.kk(),i=T?T.i&1?T==Wh?rs:T==Wr?Ao:T==g3?VI:T==ao?ws:T==C2?ux:T==lC?hx:T==bh?d6:WM:T:null,l=cI(this),R=y.ik(),mvr(this),this.Bb&ng&&((x=TDe((dh(),ko),d))&&x!=this||(x=Ik(Al(ko,this))))?this.p=new X8t(this,x):this.Jk()?this.al()?g?this.Bb&gh?i?this.bl()?this.p=new A_(47,i,this,g):this.p=new A_(5,i,this,g):this.bl()?this.p=new O_(46,this,g):this.p=new O_(4,this,g):i?this.bl()?this.p=new A_(49,i,this,g):this.p=new A_(7,i,this,g):this.bl()?this.p=new O_(48,this,g):this.p=new O_(6,this,g):this.Bb&gh?i?i==rw?this.p=new Wb(50,Hun,this):this.bl()?this.p=new Wb(43,i,this):this.p=new Wb(1,i,this):this.bl()?this.p=new Xb(42,this):this.p=new Xb(0,this):i?i==rw?this.p=new Wb(41,Hun,this):this.bl()?this.p=new Wb(45,i,this):this.p=new Wb(3,i,this):this.bl()?this.p=new Xb(44,this):this.p=new Xb(2,this):$e(y,156)?i==pre?this.p=new Xb(40,this):this.Bb&512?this.Bb&gh?i?this.p=new Wb(9,i,this):this.p=new Xb(8,this):i?this.p=new Wb(11,i,this):this.p=new Xb(10,this):this.Bb&gh?i?this.p=new Wb(13,i,this):this.p=new Xb(12,this):i?this.p=new Wb(15,i,this):this.p=new Xb(14,this):g?(O=g.t,O>1||O==-1?this.bl()?this.Bb&gh?i?this.p=new A_(25,i,this,g):this.p=new O_(24,this,g):i?this.p=new A_(27,i,this,g):this.p=new O_(26,this,g):this.Bb&gh?i?this.p=new A_(29,i,this,g):this.p=new O_(28,this,g):i?this.p=new A_(31,i,this,g):this.p=new O_(30,this,g):this.bl()?this.Bb&gh?i?this.p=new A_(33,i,this,g):this.p=new O_(32,this,g):i?this.p=new A_(35,i,this,g):this.p=new O_(34,this,g):this.Bb&gh?i?this.p=new A_(37,i,this,g):this.p=new O_(36,this,g):i?this.p=new A_(39,i,this,g):this.p=new O_(38,this,g)):this.bl()?this.Bb&gh?i?this.p=new Wb(17,i,this):this.p=new Xb(16,this):i?this.p=new Wb(19,i,this):this.p=new Xb(18,this):this.Bb&gh?i?this.p=new Wb(21,i,this):this.p=new Xb(20,this):i?this.p=new Wb(23,i,this):this.p=new Xb(22,this):this._k()?this.bl()?this.p=new FOt(v(y,29),this,g):this.p=new VNe(v(y,29),this,g):$e(y,156)?i==pre?this.p=new Xb(40,this):this.Bb&gh?i?this.p=new B9t(l,R,this,(F0e(),T==Wr?UKe:T==Wh?MKe:T==C2?zKe:T==g3?$Ke:T==ao?FKe:T==lC?GKe:T==bh?PKe:T==Tf?BKe:W2e)):this.p=new XLt(v(y,156),l,R,this):i?this.p=new P9t(l,R,this,(F0e(),T==Wr?UKe:T==Wh?MKe:T==C2?zKe:T==g3?$Ke:T==ao?FKe:T==lC?GKe:T==bh?PKe:T==Tf?BKe:W2e)):this.p=new KLt(v(y,156),l,R,this):this.al()?g?this.Bb&gh?this.bl()?this.p=new UOt(v(y,29),this,g):this.p=new IIe(v(y,29),this,g):this.bl()?this.p=new $Ot(v(y,29),this,g):this.p=new ude(v(y,29),this,g):this.Bb&gh?this.bl()?this.p=new PNt(v(y,29),this):this.p=new H8e(v(y,29),this):this.bl()?this.p=new MNt(v(y,29),this):this.p=new Qhe(v(y,29),this):this.bl()?g?this.Bb&gh?this.p=new zOt(v(y,29),this,g):this.p=new kIe(v(y,29),this,g):this.Bb&gh?this.p=new BNt(v(y,29),this):this.p=new V8e(v(y,29),this):g?this.Bb&gh?this.p=new GOt(v(y,29),this,g):this.p=new RIe(v(y,29),this,g):this.Bb&gh?this.p=new FNt(v(y,29),this):this.p=new QX(v(y,29),this)),this.p},E.rk=function(){return(this.Bb&k0)!=0},E._k=function(){return!1},E.al=function(){return!1},E.sk=function(){return(this.Bb&ng)!=0},E.xk=function(){return Dfe(this)},E.bl=function(){return!1},E.tk=function(){return(this.Bb&gh)!=0},E.cl=function(i){this.k=i},E.ui=function(i){afe(this,i)},E.Ib=function(){return TJ(this)},E.e=!1,E.n=0,K(tr,"EStructuralFeatureImpl",462),H(331,462,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,331:1,158:1,462:1,292:1,119:1,120:1,692:1},Nue),E.Lh=function(i,l,d){var g,y;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qn(),!!(this.Bb&256);case 3:return Qn(),!!(this.Bb&512);case 4:return Nt(this.s);case 5:return Nt(this.t);case 6:return Qn(),!!xMe(this);case 7:return Qn(),y=this.s,y>=1;case 8:return l?Gf(this):this.r;case 9:return this.q;case 10:return Qn(),!!(this.Bb&k0);case 11:return Qn(),!!(this.Bb&P4);case 12:return Qn(),!!(this.Bb&R4);case 13:return this.j;case 14:return cI(this);case 15:return Qn(),!!(this.Bb&gh);case 16:return Qn(),!!(this.Bb&ng);case 17:return t4(this);case 18:return Qn(),!!(this.Bb&Sc);case 19:return l?i0e(this):JPt(this)}return lf(this,i-kr((Pn(),d3)),qn((g=v(rr(this,16),29),g||d3),i),l,d)},E.Wh=function(i){var l,d;switch(i){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 xMe(this);case 7:return d=this.s,d>=1;case 8:return!!this.r&&!this.q.e&&AE(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&AE(this.q).i==0);case 10:return(this.Bb&k0)==0;case 11:return(this.Bb&P4)!=0;case 12:return(this.Bb&R4)!=0;case 13:return this.j!=null;case 14:return cI(this)!=null;case 15:return(this.Bb&gh)!=0;case 16:return(this.Bb&ng)!=0;case 17:return!!t4(this);case 18:return(this.Bb&Sc)!=0;case 19:return!!JPt(this)}return sf(this,i-kr((Pn(),d3)),qn((l=v(rr(this,16),29),l||d3),i))},E.bi=function(i,l){var d,g;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:afe(this,ai(l));return;case 2:sy(this,Vt(Ht(l)));return;case 3:oy(this,Vt(Ht(l)));return;case 4:ny(this,v(l,17).a);return;case 5:m7t(this,v(l,17).a);return;case 8:U_(this,v(l,142));return;case 9:g=Q1(this,v(l,89),null),g&&g.oj();return;case 10:Y8(this,Vt(Ht(l)));return;case 11:K8(this,Vt(Ht(l)));return;case 12:j8(this,Vt(Ht(l)));return;case 13:i8e(this,ai(l));return;case 15:W8(this,Vt(Ht(l)));return;case 16:X8(this,Vt(Ht(l)));return;case 18:I0e(this,Vt(Ht(l)));return}df(this,i-kr((Pn(),d3)),qn((d=v(rr(this,16),29),d||d3),i),l)},E.ii=function(){return Pn(),d3},E.ki=function(i){var l,d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:$e(this.Cb,90)&&_4($h(v(this.Cb,90)),4),mu(this,null);return;case 2:sy(this,!0);return;case 3:oy(this,!0);return;case 4:ny(this,0);return;case 5:this.b=0,c4(this,1);return;case 8:U_(this,null);return;case 9:d=Q1(this,null,null),d&&d.oj();return;case 10:Y8(this,!0);return;case 11:K8(this,!1);return;case 12:j8(this,!1);return;case 13:this.i=null,uZ(this,null);return;case 15:W8(this,!1);return;case 16:X8(this,!1);return;case 18:I0e(this,!1);return}hf(this,i-kr((Pn(),d3)),qn((l=v(rr(this,16),29),l||d3),i))},E.pi=function(){i0e(this),d8(Al((dh(),ko),this)),Gf(this),this.Bb|=1},E.Jk=function(){return xMe(this)},E.Yk=function(i,l){return this.b=0,this.a=null,dLe(this,i,l)},E.Zk=function(i){m7t(this,i)},E.Ib=function(){var i;return this.Db&64?TJ(this):(i=new Ff(TJ(this)),i.a+=" (iD: ",Hb(i,(this.Bb&Sc)!=0),i.a+=")",i.a)},E.b=0,K(tr,"EAttributeImpl",331),H(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1}),E.dl=function(i){return i.Dh()==this},E.Ah=function(i){return c1e(this,i)},E.Bh=function(i,l){this.w=null,this.Db=l<<16|this.Db&255,this.Cb=i},E.Lh=function(i,l,d){var g;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return WE(this);case 4:return this.ik();case 5:return this.F;case 6:return l?Cd(this):g8(this);case 7:return!this.A&&(this.A=new sh(Mu,this,7)),this.A}return lf(this,i-kr(this.ii()),qn((g=v(rr(this,16),29),g||this.ii()),i),l,d)},E.Sh=function(i,l,d){var g,y,x;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),bu(this.Ab,i,d);case 6:return this.Cb&&(d=(y=this.Db>>16,y>=0?c1e(this,d):this.Cb.Th(this,-1-y,null,d))),Od(this,i,6,d)}return x=v(qn((g=v(rr(this,16),29),g||this.ii()),l),69),x.wk().zk(this,Ru(this),l-kr(this.ii()),i,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 6:return Od(this,null,6,d);case 7:return!this.A&&(this.A=new sh(Mu,this,7)),Ko(this.A,i,d)}return y=v(qn((g=v(rr(this,16),29),g||this.ii()),l),69),y.wk().Ak(this,Ru(this),l-kr(this.ii()),i,d)},E.Wh=function(i){var l;switch(i){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!!WE(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!g8(this);case 7:return!!this.A&&this.A.i!=0}return sf(this,i-kr(this.ii()),qn((l=v(rr(this,16),29),l||this.ii()),i))},E.bi=function(i,l){var d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:CQ(this,ai(l));return;case 2:Bhe(this,ai(l));return;case 5:mI(this,ai(l));return;case 7:!this.A&&(this.A=new sh(Mu,this,7)),Gr(this.A),!this.A&&(this.A=new sh(Mu,this,7)),Ka(this.A,v(l,16));return}df(this,i-kr(this.ii()),qn((d=v(rr(this,16),29),d||this.ii()),i),l)},E.ii=function(){return Pn(),nhn},E.ki=function(i){var l;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:$e(this.Cb,184)&&(v(this.Cb,184).tb=null),mu(this,null);return;case 2:q8(this,null),k8(this,this.D);return;case 5:mI(this,null);return;case 7:!this.A&&(this.A=new sh(Mu,this,7)),Gr(this.A);return}hf(this,i-kr(this.ii()),qn((l=v(rr(this,16),29),l||this.ii()),i))},E.hk=function(){var i;return this.G==-1&&(this.G=(i=Cd(this),i?uy(i.vi(),this):-1)),this.G},E.ik=function(){return null},E.jk=function(){return Cd(this)},E.el=function(){return this.v},E.kk=function(){return WE(this)},E.lk=function(){return this.D!=null?this.D:this.B},E.mk=function(){return this.F},E.fk=function(i){return J1e(this,i)},E.fl=function(i){this.v=i},E.gl=function(i){B$t(this,i)},E.hl=function(i){this.C=i},E.ui=function(i){CQ(this,i)},E.Ib=function(){return DZ(this)},E.C=null,E.D=null,E.G=-1,K(tr,"EClassifierImpl",364),H(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,482:1,119:1,120:1,691:1},K6e),E.dl=function(i){return alr(this,i.Dh())},E.Lh=function(i,l,d){var g;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return WE(this);case 4:return null;case 5:return this.F;case 6:return l?Cd(this):g8(this);case 7:return!this.A&&(this.A=new sh(Mu,this,7)),this.A;case 8:return Qn(),!!(this.Bb&256);case 9:return Qn(),!!(this.Bb&512);case 10:return Fl(this);case 11:return!this.q&&(this.q=new vt(e0,this,11,10)),this.q;case 12:return u5(this);case 13:return hM(this);case 14:return hM(this),this.r;case 15:return u5(this),this.k;case 16:return dMe(this);case 17:return rpe(this);case 18:return tg(this);case 19:return mJ(this);case 20:return u5(this),this.o;case 21:return!this.s&&(this.s=new vt(Ju,this,21,17)),this.s;case 22:return Uc(this);case 23:return q1e(this)}return lf(this,i-kr((Pn(),E2)),qn((g=v(rr(this,16),29),g||E2),i),l,d)},E.Sh=function(i,l,d){var g,y,x;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),bu(this.Ab,i,d);case 6:return this.Cb&&(d=(y=this.Db>>16,y>=0?c1e(this,d):this.Cb.Th(this,-1-y,null,d))),Od(this,i,6,d);case 11:return!this.q&&(this.q=new vt(e0,this,11,10)),bu(this.q,i,d);case 21:return!this.s&&(this.s=new vt(Ju,this,21,17)),bu(this.s,i,d)}return x=v(qn((g=v(rr(this,16),29),g||(Pn(),E2)),l),69),x.wk().zk(this,Ru(this),l-kr((Pn(),E2)),i,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 6:return Od(this,null,6,d);case 7:return!this.A&&(this.A=new sh(Mu,this,7)),Ko(this.A,i,d);case 11:return!this.q&&(this.q=new vt(e0,this,11,10)),Ko(this.q,i,d);case 21:return!this.s&&(this.s=new vt(Ju,this,21,17)),Ko(this.s,i,d);case 22:return Ko(Uc(this),i,d)}return y=v(qn((g=v(rr(this,16),29),g||(Pn(),E2)),l),69),y.wk().Ak(this,Ru(this),l-kr((Pn(),E2)),i,d)},E.Wh=function(i){var l;switch(i){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!!WE(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!g8(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&&Uc(this.u.a).i!=0&&!(this.n&&Z0e(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return u5(this).i!=0;case 13:return hM(this).i!=0;case 14:return hM(this),this.r.i!=0;case 15:return u5(this),this.k.i!=0;case 16:return dMe(this).i!=0;case 17:return rpe(this).i!=0;case 18:return tg(this).i!=0;case 19:return mJ(this).i!=0;case 20:return u5(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&Z0e(this.n);case 23:return q1e(this).i!=0}return sf(this,i-kr((Pn(),E2)),qn((l=v(rr(this,16),29),l||E2),i))},E.Zh=function(i){var l;return l=this.i==null||this.q&&this.q.i!=0?null:vG(this,i),l||WPe(this,i)},E.bi=function(i,l){var d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:CQ(this,ai(l));return;case 2:Bhe(this,ai(l));return;case 5:mI(this,ai(l));return;case 7:!this.A&&(this.A=new sh(Mu,this,7)),Gr(this.A),!this.A&&(this.A=new sh(Mu,this,7)),Ka(this.A,v(l,16));return;case 8:fLe(this,Vt(Ht(l)));return;case 9:pLe(this,Vt(Ht(l)));return;case 10:pM(Fl(this)),Ka(Fl(this),v(l,16));return;case 11:!this.q&&(this.q=new vt(e0,this,11,10)),Gr(this.q),!this.q&&(this.q=new vt(e0,this,11,10)),Ka(this.q,v(l,16));return;case 21:!this.s&&(this.s=new vt(Ju,this,21,17)),Gr(this.s),!this.s&&(this.s=new vt(Ju,this,21,17)),Ka(this.s,v(l,16));return;case 22:Gr(Uc(this)),Ka(Uc(this),v(l,16));return}df(this,i-kr((Pn(),E2)),qn((d=v(rr(this,16),29),d||E2),i),l)},E.ii=function(){return Pn(),E2},E.ki=function(i){var l;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:$e(this.Cb,184)&&(v(this.Cb,184).tb=null),mu(this,null);return;case 2:q8(this,null),k8(this,this.D);return;case 5:mI(this,null);return;case 7:!this.A&&(this.A=new sh(Mu,this,7)),Gr(this.A);return;case 8:fLe(this,!1);return;case 9:pLe(this,!1);return;case 10:this.u&&pM(this.u);return;case 11:!this.q&&(this.q=new vt(e0,this,11,10)),Gr(this.q);return;case 21:!this.s&&(this.s=new vt(Ju,this,21,17)),Gr(this.s);return;case 22:this.n&&Gr(this.n);return}hf(this,i-kr((Pn(),E2)),qn((l=v(rr(this,16),29),l||E2),i))},E.pi=function(){var i,l;if(u5(this),hM(this),dMe(this),rpe(this),tg(this),mJ(this),q1e(this),_D(Nur($h(this))),this.s)for(i=0,l=this.s.i;i=0;--l)ze(this,l);return FLe(this,i)},E.Gk=function(){Gr(this)},E.Zi=function(i,l){return a$t(this,i,l)},K(Ca,"EcoreEList",632),H(505,632,Xl,QU),E.Li=function(){return!1},E.Lj=function(){return this.c},E.Mj=function(){return!1},E.ol=function(){return!0},E.Si=function(){return!0},E.Wi=function(i,l){return l},E.Yi=function(){return!1},E.c=0,K(Ca,"EObjectEList",505),H(83,505,Xl,gs),E.Mj=function(){return!0},E.ml=function(){return!1},E.al=function(){return!0},K(Ca,"EObjectContainmentEList",83),H(555,83,Xl,TX),E.Ni=function(){this.b=!0},E.Qj=function(){return this.b},E.Gk=function(){var i;Gr(this),id(this.e)?(i=this.b,this.b=!1,Vi(this.e,new E0(this.e,2,this.c,i,!1))):this.b=!1},E.b=!1,K(Ca,"EObjectContainmentEList/Unsettable",555),H(1161,555,Xl,D9t),E.Ti=function(i,l){var d,g;return d=v($D(this,i,l),89),id(this.e)&&$R(this,new vz(this.a,7,(Pn(),rhn),Nt(l),(g=d.c,$e(g,90)?v(g,29):n0),i)),d},E.Uj=function(i,l){return Zvr(this,v(i,89),l)},E.Vj=function(i,l){return Qvr(this,v(i,89),l)},E.Wj=function(i,l,d){return tEr(this,v(i,89),v(l,89),d)},E.Ij=function(i,l,d,g,y){switch(i){case 3:return pD(this,i,l,d,g,this.i>1);case 5:return pD(this,i,l,d,g,this.i-v(d,15).gc()>0);default:return new Vm(this.e,i,this.c,l,d,g,!0)}},E.Tj=function(){return!0},E.Qj=function(){return Z0e(this)},E.Gk=function(){Gr(this)},K(tr,"EClassImpl/1",1161),H(1175,1174,NUe),E.dj=function(i){var l,d,g,y,x,T,R;if(d=i.gj(),d!=8){if(g=L2r(i),g==0)switch(d){case 1:case 9:{R=i.kj(),R!=null&&(l=$h(v(R,482)),!l.c&&(l.c=new OR),WQ(l.c,i.jj())),T=i.ij(),T!=null&&(y=v(T,482),y.Bb&1||(l=$h(y),!l.c&&(l.c=new OR),Yr(l.c,v(i.jj(),29))));break}case 3:{T=i.ij(),T!=null&&(y=v(T,482),y.Bb&1||(l=$h(y),!l.c&&(l.c=new OR),Yr(l.c,v(i.jj(),29))));break}case 5:{if(T=i.ij(),T!=null)for(x=v(T,16).Kc();x.Ob();)y=v(x.Pb(),482),y.Bb&1||(l=$h(y),!l.c&&(l.c=new OR),Yr(l.c,v(i.jj(),29)));break}case 4:{R=i.kj(),R!=null&&(y=v(R,482),y.Bb&1||(l=$h(y),!l.c&&(l.c=new OR),WQ(l.c,i.jj())));break}case 6:{if(R=i.kj(),R!=null)for(x=v(R,16).Kc();x.Ob();)y=v(x.Pb(),482),y.Bb&1||(l=$h(y),!l.c&&(l.c=new OR),WQ(l.c,i.jj()));break}}this.ql(g)}},E.ql=function(i){sjt(this,i)},E.b=63,K(tr,"ESuperAdapter",1175),H(1176,1175,NUe,Dkt),E.ql=function(i){_4(this,i)},K(tr,"EClassImpl/10",1176),H(1165,710,Xl),E.Ei=function(i,l){return w1e(this,i,l)},E.Fi=function(i){return KGt(this,i)},E.Gi=function(i,l){Yz(this,i,l)},E.Hi=function(i){gz(this,i)},E.$i=function(i){return qOe(this,i)},E.Xi=function(i,l){return Mfe(this,i,l)},E.Wk=function(i,l){throw _e(new ri)},E.Ii=function(){return new mk(this)},E.Ji=function(){return new $U(this)},E.Ki=function(i){return Nz(this,i)},E.Xk=function(i,l){throw _e(new ri)},E.Fk=function(i){return this},E.Qj=function(){return this.i!=0},E.Wb=function(i){throw _e(new ri)},E.Gk=function(){throw _e(new ri)},K(Ca,"EcoreEList/UnmodifiableEList",1165),H(328,1165,Xl,NT),E.Yi=function(){return!1},K(Ca,"EcoreEList/UnmodifiableEList/FastCompare",328),H(1168,328,Xl,IUt),E.dd=function(i){var l,d,g;if($e(i,179)&&(l=v(i,179),d=l.Lj(),d!=-1)){for(g=this.i;d4)if(this.fk(i)){if(this.al()){if(g=v(i,54),d=g.Eh(),R=d==this.b&&(this.ml()?g.yh(g.Fh(),v(qn(Vu(this.b),this.Lj()).Hk(),29).kk())==sl(v(qn(Vu(this.b),this.Lj()),19)).n:-1-g.Fh()==this.Lj()),this.nl()&&!R&&!d&&g.Jh()){for(y=0;y1||g==-1)):!1},E.ml=function(){var i,l,d;return l=qn(Vu(this.b),this.Lj()),$e(l,102)?(i=v(l,19),d=sl(i),!!d):!1},E.nl=function(){var i,l;return l=qn(Vu(this.b),this.Lj()),$e(l,102)?(i=v(l,19),(i.Bb&el)!=0):!1},E.dd=function(i){var l,d,g,y;if(g=this.zj(i),g>=0)return g;if(this.ol()){for(d=0,y=this.Ej();d=0;--i)RG(this,i,this.xj(i));return this.Fj()},E.Qc=function(i){var l;if(this.nl())for(l=this.Ej()-1;l>=0;--l)RG(this,l,this.xj(l));return this.Gj(i)},E.Gk=function(){pM(this)},E.Zi=function(i,l){return PBt(this,i,l)},K(Ca,"DelegatingEcoreEList",756),H(1171,756,MUe,XNt),E.qj=function(i,l){Ror(this,i,v(l,29))},E.rj=function(i){msr(this,v(i,29))},E.xj=function(i){var l,d;return l=v(ze(Uc(this.a),i),89),d=l.c,$e(d,90)?v(d,29):(Pn(),n0)},E.Cj=function(i){var l,d;return l=v(x4(Uc(this.a),i),89),d=l.c,$e(d,90)?v(d,29):(Pn(),n0)},E.Dj=function(i,l){return C_r(this,i,v(l,29))},E.Li=function(){return!1},E.Ij=function(i,l,d,g,y){return null},E.sj=function(){return new Bkt(this)},E.tj=function(){Gr(Uc(this.a))},E.uj=function(i){return Czt(this,i)},E.vj=function(i){var l,d;for(d=i.Kc();d.Ob();)if(l=d.Pb(),!Czt(this,l))return!1;return!0},E.wj=function(i){var l,d,g;if($e(i,15)&&(g=v(i,15),g.gc()==Uc(this.a).i)){for(l=g.Kc(),d=new mr(this);l.Ob();)if(Ze(l.Pb())!==Ze(wr(d)))return!1;return!0}return!1},E.yj=function(){var i,l,d,g,y;for(d=1,l=new mr(Uc(this.a));l.e!=l.i.gc();)i=v(wr(l),89),g=(y=i.c,$e(y,90)?v(y,29):(Pn(),n0)),d=31*d+(g?vE(g):0);return d},E.zj=function(i){var l,d,g,y;for(g=0,d=new mr(Uc(this.a));d.e!=d.i.gc();){if(l=v(wr(d),89),Ze(i)===Ze((y=l.c,$e(y,90)?v(y,29):(Pn(),n0))))return g;++g}return-1},E.Aj=function(){return Uc(this.a).i==0},E.Bj=function(){return null},E.Ej=function(){return Uc(this.a).i},E.Fj=function(){var i,l,d,g,y,x;for(x=Uc(this.a).i,y=st(zs,Yn,1,x,5,1),d=0,l=new mr(Uc(this.a));l.e!=l.i.gc();)i=v(wr(l),89),y[d++]=(g=i.c,$e(g,90)?v(g,29):(Pn(),n0));return y},E.Gj=function(i){var l,d,g,y,x,T,R;for(R=Uc(this.a).i,i.lengthR&&Ga(i,R,null),g=0,d=new mr(Uc(this.a));d.e!=d.i.gc();)l=v(wr(d),89),x=(T=l.c,$e(T,90)?v(T,29):(Pn(),n0)),Ga(i,g++,x);return i},E.Hj=function(){var i,l,d,g,y;for(y=new qb,y.a+="[",i=Uc(this.a),l=0,g=Uc(this.a).i;l>16,y>=0?c1e(this,d):this.Cb.Th(this,-1-y,null,d))),Od(this,i,6,d);case 9:return!this.a&&(this.a=new vt(hb,this,9,5)),bu(this.a,i,d)}return x=v(qn((g=v(rr(this,16),29),g||(Pn(),x2)),l),69),x.wk().zk(this,Ru(this),l-kr((Pn(),x2)),i,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 6:return Od(this,null,6,d);case 7:return!this.A&&(this.A=new sh(Mu,this,7)),Ko(this.A,i,d);case 9:return!this.a&&(this.a=new vt(hb,this,9,5)),Ko(this.a,i,d)}return y=v(qn((g=v(rr(this,16),29),g||(Pn(),x2)),l),69),y.wk().Ak(this,Ru(this),l-kr((Pn(),x2)),i,d)},E.Wh=function(i){var l;switch(i){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!!WE(this);case 4:return!!tLe(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!g8(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 sf(this,i-kr((Pn(),x2)),qn((l=v(rr(this,16),29),l||x2),i))},E.bi=function(i,l){var d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:CQ(this,ai(l));return;case 2:Bhe(this,ai(l));return;case 5:mI(this,ai(l));return;case 7:!this.A&&(this.A=new sh(Mu,this,7)),Gr(this.A),!this.A&&(this.A=new sh(Mu,this,7)),Ka(this.A,v(l,16));return;case 8:kZ(this,Vt(Ht(l)));return;case 9:!this.a&&(this.a=new vt(hb,this,9,5)),Gr(this.a),!this.a&&(this.a=new vt(hb,this,9,5)),Ka(this.a,v(l,16));return}df(this,i-kr((Pn(),x2)),qn((d=v(rr(this,16),29),d||x2),i),l)},E.ii=function(){return Pn(),x2},E.ki=function(i){var l;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:$e(this.Cb,184)&&(v(this.Cb,184).tb=null),mu(this,null);return;case 2:q8(this,null),k8(this,this.D);return;case 5:mI(this,null);return;case 7:!this.A&&(this.A=new sh(Mu,this,7)),Gr(this.A);return;case 8:kZ(this,!0);return;case 9:!this.a&&(this.a=new vt(hb,this,9,5)),Gr(this.a);return}hf(this,i-kr((Pn(),x2)),qn((l=v(rr(this,16),29),l||x2),i))},E.pi=function(){var i,l;if(this.a)for(i=0,l=this.a.i;i>16==5?v(this.Cb,685):null}return lf(this,i-kr((Pn(),Ry)),qn((g=v(rr(this,16),29),g||Ry),i),l,d)},E.Sh=function(i,l,d){var g,y,x;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),bu(this.Ab,i,d);case 5:return this.Cb&&(d=(y=this.Db>>16,y>=0?Eqt(this,d):this.Cb.Th(this,-1-y,null,d))),Od(this,i,5,d)}return x=v(qn((g=v(rr(this,16),29),g||(Pn(),Ry)),l),69),x.wk().zk(this,Ru(this),l-kr((Pn(),Ry)),i,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 5:return Od(this,null,5,d)}return y=v(qn((g=v(rr(this,16),29),g||(Pn(),Ry)),l),69),y.wk().Ak(this,Ru(this),l-kr((Pn(),Ry)),i,d)},E.Wh=function(i){var l;switch(i){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&&v(this.Cb,685))}return sf(this,i-kr((Pn(),Ry)),qn((l=v(rr(this,16),29),l||Ry),i))},E.bi=function(i,l){var d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:mu(this,ai(l));return;case 2:zfe(this,v(l,17).a);return;case 3:vVt(this,v(l,2039));return;case 4:qfe(this,ai(l));return}df(this,i-kr((Pn(),Ry)),qn((d=v(rr(this,16),29),d||Ry),i),l)},E.ii=function(){return Pn(),Ry},E.ki=function(i){var l;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:mu(this,null);return;case 2:zfe(this,0);return;case 3:vVt(this,null);return;case 4:qfe(this,null);return}hf(this,i-kr((Pn(),Ry)),qn((l=v(rr(this,16),29),l||Ry),i))},E.Ib=function(){var i;return i=this.c,i??this.zb},E.b=null,E.c=null,E.d=0,K(tr,"EEnumLiteralImpl",582);var iIr=$a(tr,"EFactoryImpl/InternalEDateTimeFormat");H(499,1,{2114:1},oU),K(tr,"EFactoryImpl/1ClientInternalEDateTimeFormat",499),H(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},iE),E.Ch=function(i,l,d){var g;return d=Od(this,i,l,d),this.e&&$e(i,179)&&(g=gJ(this,this.e),g!=this.c&&(d=bI(this,g,d))),d},E.Lh=function(i,l,d){var g;switch(i){case 0:return this.f;case 1:return!this.d&&(this.d=new gs(pl,this,1)),this.d;case 2:return l?kJ(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return l?t1e(this):this.a}return lf(this,i-kr((Pn(),Ix)),qn((g=v(rr(this,16),29),g||Ix),i),l,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return fzt(this,null,d);case 1:return!this.d&&(this.d=new gs(pl,this,1)),Ko(this.d,i,d);case 3:return pzt(this,null,d)}return y=v(qn((g=v(rr(this,16),29),g||(Pn(),Ix)),l),69),y.wk().Ak(this,Ru(this),l-kr((Pn(),Ix)),i,d)},E.Wh=function(i){var l;switch(i){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 sf(this,i-kr((Pn(),Ix)),qn((l=v(rr(this,16),29),l||Ix),i))},E.bi=function(i,l){var d;switch(i){case 0:zqt(this,v(l,89));return;case 1:!this.d&&(this.d=new gs(pl,this,1)),Gr(this.d),!this.d&&(this.d=new gs(pl,this,1)),Ka(this.d,v(l,16));return;case 3:LDe(this,v(l,89));return;case 4:ZDe(this,v(l,850));return;case 5:x8(this,v(l,142));return}df(this,i-kr((Pn(),Ix)),qn((d=v(rr(this,16),29),d||Ix),i),l)},E.ii=function(){return Pn(),Ix},E.ki=function(i){var l;switch(i){case 0:zqt(this,null);return;case 1:!this.d&&(this.d=new gs(pl,this,1)),Gr(this.d);return;case 3:LDe(this,null);return;case 4:ZDe(this,null);return;case 5:x8(this,null);return}hf(this,i-kr((Pn(),Ix)),qn((l=v(rr(this,16),29),l||Ix),i))},E.Ib=function(){var i;return i=new Ed(T0(this)),i.a+=" (expression: ",cpe(this,i),i.a+=")",i.a};var DKe;K(tr,"EGenericTypeImpl",248),H(2067,2062,Pee),E.Gi=function(i,l){jNt(this,i,l)},E.Wk=function(i,l){return jNt(this,this.gc(),i),l},E.$i=function(i){return gf(this.pj(),i)},E.Ii=function(){return this.Ji()},E.pj=function(){return new zkt(this)},E.Ji=function(){return this.Ki(0)},E.Ki=function(i){return this.pj().fd(i)},E.Xk=function(i,l){return f4(this,i,!0),l},E.Ti=function(i,l){var d,g;return g=d1e(this,l),d=this.fd(i),d.Rb(g),g},E.Ui=function(i,l){var d;f4(this,l,!0),d=this.fd(i),d.Rb(l)},K(Ca,"AbstractSequentialInternalEList",2067),H(496,2067,Pee,FU),E.$i=function(i){return gf(this.pj(),i)},E.Ii=function(){return this.b==null?(Yb(),Yb(),TH):this.sl()},E.pj=function(){return new dIt(this.a,this.b)},E.Ji=function(){return this.b==null?(Yb(),Yb(),TH):this.sl()},E.Ki=function(i){var l,d;if(this.b==null){if(i<0||i>1)throw _e(new Sl(FM+i+", size=0"));return Yb(),Yb(),TH}for(d=this.sl(),l=0;l0;)if(l=this.c[--this.d],(!this.e||l.pk()!=CN||l.Lj()!=0)&&(!this.vl()||this.b.Xh(l))){if(x=this.b.Nh(l,this.ul()),this.f=(al(),v(l,69).xk()),this.f||l.Jk()){if(this.ul()?(g=v(x,15),this.k=g):(g=v(x,71),this.k=this.j=g),$e(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ki(this.k.gc()):this.k.fd(this.k.gc()),this.p?MHt(this,this.p):YHt(this))return y=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(i=v(y,76),i.Lk(),d=i.md(),this.i=d):(d=y,this.i=d),this.g=-3,!0}else if(x!=null)return this.k=null,this.p=null,d=x,this.i=d,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return y=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(i=v(y,76),i.Lk(),d=i.md(),this.i=d):(d=y,this.i=d),this.g=-3,!0}},E.Pb=function(){return vZ(this)},E.Tb=function(){return this.a},E.Ub=function(){var i;if(this.g<-1||this.Sb())return--this.a,this.g=0,i=this.i,this.Sb(),i;throw _e(new ec)},E.Vb=function(){return this.a-1},E.Qb=function(){throw _e(new ri)},E.ul=function(){return!1},E.Wb=function(i){throw _e(new ri)},E.vl=function(){return!0},E.a=0,E.d=0,E.f=!1,E.g=0,E.n=0,E.o=0;var TH;K(Ca,"EContentsEList/FeatureIteratorImpl",287),H(711,287,Bee,q8e),E.ul=function(){return!0},K(Ca,"EContentsEList/ResolvingFeatureIteratorImpl",711),H(1178,711,Bee,ONt),E.vl=function(){return!1},K(tr,"ENamedElementImpl/1/1",1178),H(1179,287,Bee,LNt),E.vl=function(){return!1},K(tr,"ENamedElementImpl/1/2",1179),H(39,152,oq,i4,dfe,js,Afe,Vm,E0,n9e,dMt,r9e,fMt,_Oe,pMt,s9e,gMt,wOe,mMt,i9e,bMt,oD,vz,jde,a9e,yMt,EOe,vMt),E.Kj=function(){return $Oe(this)},E.Rj=function(){var i;return i=$Oe(this),i?i.ik():null},E.hj=function(i){return this.b==-1&&this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk())),this.c.yh(this.b,i)},E.jj=function(){return this.c},E.Sj=function(){var i;return i=$Oe(this),i?i.tk():!1},E.b=-1,K(tr,"ENotificationImpl",39),H(411,292,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,481:1,54:1,99:1,158:1,411:1,292:1,119:1,120:1},Oue),E.Ah=function(i){return Tqt(this,i)},E.Lh=function(i,l,d){var g,y,x;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qn(),!!(this.Bb&256);case 3:return Qn(),!!(this.Bb&512);case 4:return Nt(this.s);case 5:return Nt(this.t);case 6:return Qn(),x=this.t,x>1||x==-1;case 7:return Qn(),y=this.s,y>=1;case 8:return l?Gf(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?v(this.Cb,29):null;case 11:return!this.d&&(this.d=new sh(Mu,this,11)),this.d;case 12:return!this.c&&(this.c=new vt(Rx,this,12,10)),this.c;case 13:return!this.a&&(this.a=new qU(this,this)),this.a;case 14:return Uh(this)}return lf(this,i-kr((Pn(),Iy)),qn((g=v(rr(this,16),29),g||Iy),i),l,d)},E.Sh=function(i,l,d){var g,y,x;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),bu(this.Ab,i,d);case 10:return this.Cb&&(d=(y=this.Db>>16,y>=0?Tqt(this,d):this.Cb.Th(this,-1-y,null,d))),Od(this,i,10,d);case 12:return!this.c&&(this.c=new vt(Rx,this,12,10)),bu(this.c,i,d)}return x=v(qn((g=v(rr(this,16),29),g||(Pn(),Iy)),l),69),x.wk().zk(this,Ru(this),l-kr((Pn(),Iy)),i,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 9:return Ode(this,d);case 10:return Od(this,null,10,d);case 11:return!this.d&&(this.d=new sh(Mu,this,11)),Ko(this.d,i,d);case 12:return!this.c&&(this.c=new vt(Rx,this,12,10)),Ko(this.c,i,d);case 14:return Ko(Uh(this),i,d)}return y=v(qn((g=v(rr(this,16),29),g||(Pn(),Iy)),l),69),y.wk().Ak(this,Ru(this),l-kr((Pn(),Iy)),i,d)},E.Wh=function(i){var l,d,g;switch(i){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 g=this.t,g>1||g==-1;case 7:return d=this.s,d>=1;case 8:return!!this.r&&!this.q.e&&AE(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&AE(this.q).i==0);case 10:return!!(this.Db>>16==10&&v(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&&Uh(this.a.a).i!=0&&!(this.b&&J0e(this.b));case 14:return!!this.b&&J0e(this.b)}return sf(this,i-kr((Pn(),Iy)),qn((l=v(rr(this,16),29),l||Iy),i))},E.bi=function(i,l){var d,g;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:mu(this,ai(l));return;case 2:sy(this,Vt(Ht(l)));return;case 3:oy(this,Vt(Ht(l)));return;case 4:ny(this,v(l,17).a);return;case 5:c4(this,v(l,17).a);return;case 8:U_(this,v(l,142));return;case 9:g=Q1(this,v(l,89),null),g&&g.oj();return;case 11:!this.d&&(this.d=new sh(Mu,this,11)),Gr(this.d),!this.d&&(this.d=new sh(Mu,this,11)),Ka(this.d,v(l,16));return;case 12:!this.c&&(this.c=new vt(Rx,this,12,10)),Gr(this.c),!this.c&&(this.c=new vt(Rx,this,12,10)),Ka(this.c,v(l,16));return;case 13:!this.a&&(this.a=new qU(this,this)),pM(this.a),!this.a&&(this.a=new qU(this,this)),Ka(this.a,v(l,16));return;case 14:Gr(Uh(this)),Ka(Uh(this),v(l,16));return}df(this,i-kr((Pn(),Iy)),qn((d=v(rr(this,16),29),d||Iy),i),l)},E.ii=function(){return Pn(),Iy},E.ki=function(i){var l,d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:mu(this,null);return;case 2:sy(this,!0);return;case 3:oy(this,!0);return;case 4:ny(this,0);return;case 5:c4(this,1);return;case 8:U_(this,null);return;case 9:d=Q1(this,null,null),d&&d.oj();return;case 11:!this.d&&(this.d=new sh(Mu,this,11)),Gr(this.d);return;case 12:!this.c&&(this.c=new vt(Rx,this,12,10)),Gr(this.c);return;case 13:this.a&&pM(this.a);return;case 14:this.b&&Gr(this.b);return}hf(this,i-kr((Pn(),Iy)),qn((l=v(rr(this,16),29),l||Iy),i))},E.pi=function(){var i,l;if(this.c)for(i=0,l=this.c.i;iR&&Ga(i,R,null),g=0,d=new mr(Uh(this.a));d.e!=d.i.gc();)l=v(wr(d),89),x=(T=l.c,T||(Pn(),dp)),Ga(i,g++,x);return i},E.Hj=function(){var i,l,d,g,y;for(y=new qb,y.a+="[",i=Uh(this.a),l=0,g=Uh(this.a).i;l1);case 5:return pD(this,i,l,d,g,this.i-v(d,15).gc()>0);default:return new Vm(this.e,i,this.c,l,d,g,!0)}},E.Tj=function(){return!0},E.Qj=function(){return J0e(this)},E.Gk=function(){Gr(this)},K(tr,"EOperationImpl/2",1377),H(507,1,{2037:1,507:1},K8t),K(tr,"EPackageImpl/1",507),H(14,83,Xl,vt),E.il=function(){return this.d},E.jl=function(){return this.b},E.ml=function(){return!0},E.b=0,K(Ca,"EObjectContainmentWithInverseEList",14),H(365,14,Xl,bk),E.nl=function(){return!0},E.Wi=function(i,l){return Xk(this,i,v(l,58))},K(Ca,"EObjectContainmentWithInverseEList/Resolving",365),H(308,365,Xl,ZS),E.Ni=function(){this.a.tb=null},K(tr,"EPackageImpl/2",308),H(1278,1,{},drr),K(tr,"EPackageImpl/3",1278),H(733,45,p5,V7e),E._b=function(i){return ro(i)?Kde(this,i):!!ol(this.f,i)},K(tr,"EPackageRegistryImpl",733),H(518,292,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,481:1,54:1,99:1,158:1,518:1,292:1,119:1,120:1},Lue),E.Ah=function(i){return Cqt(this,i)},E.Lh=function(i,l,d){var g,y,x;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qn(),!!(this.Bb&256);case 3:return Qn(),!!(this.Bb&512);case 4:return Nt(this.s);case 5:return Nt(this.t);case 6:return Qn(),x=this.t,x>1||x==-1;case 7:return Qn(),y=this.s,y>=1;case 8:return l?Gf(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?v(this.Cb,62):null}return lf(this,i-kr((Pn(),f3)),qn((g=v(rr(this,16),29),g||f3),i),l,d)},E.Sh=function(i,l,d){var g,y,x;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),bu(this.Ab,i,d);case 10:return this.Cb&&(d=(y=this.Db>>16,y>=0?Cqt(this,d):this.Cb.Th(this,-1-y,null,d))),Od(this,i,10,d)}return x=v(qn((g=v(rr(this,16),29),g||(Pn(),f3)),l),69),x.wk().zk(this,Ru(this),l-kr((Pn(),f3)),i,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 9:return Ode(this,d);case 10:return Od(this,null,10,d)}return y=v(qn((g=v(rr(this,16),29),g||(Pn(),f3)),l),69),y.wk().Ak(this,Ru(this),l-kr((Pn(),f3)),i,d)},E.Wh=function(i){var l,d,g;switch(i){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 g=this.t,g>1||g==-1;case 7:return d=this.s,d>=1;case 8:return!!this.r&&!this.q.e&&AE(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&AE(this.q).i==0);case 10:return!!(this.Db>>16==10&&v(this.Cb,62))}return sf(this,i-kr((Pn(),f3)),qn((l=v(rr(this,16),29),l||f3),i))},E.ii=function(){return Pn(),f3},K(tr,"EParameterImpl",518),H(102,462,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,102:1,462:1,292:1,119:1,120:1,692:1},W8e),E.Lh=function(i,l,d){var g,y,x,T;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qn(),!!(this.Bb&256);case 3:return Qn(),!!(this.Bb&512);case 4:return Nt(this.s);case 5:return Nt(this.t);case 6:return Qn(),T=this.t,T>1||T==-1;case 7:return Qn(),y=this.s,y>=1;case 8:return l?Gf(this):this.r;case 9:return this.q;case 10:return Qn(),!!(this.Bb&k0);case 11:return Qn(),!!(this.Bb&P4);case 12:return Qn(),!!(this.Bb&R4);case 13:return this.j;case 14:return cI(this);case 15:return Qn(),!!(this.Bb&gh);case 16:return Qn(),!!(this.Bb&ng);case 17:return t4(this);case 18:return Qn(),!!(this.Bb&Sc);case 19:return Qn(),x=sl(this),!!(x&&x.Bb&Sc);case 20:return Qn(),!!(this.Bb&el);case 21:return l?sl(this):this.b;case 22:return l?V9e(this):qPt(this);case 23:return!this.a&&(this.a=new BT(u3,this,23)),this.a}return lf(this,i-kr((Pn(),iC)),qn((g=v(rr(this,16),29),g||iC),i),l,d)},E.Wh=function(i){var l,d,g,y;switch(i){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 y=this.t,y>1||y==-1;case 7:return d=this.s,d>=1;case 8:return!!this.r&&!this.q.e&&AE(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&AE(this.q).i==0);case 10:return(this.Bb&k0)==0;case 11:return(this.Bb&P4)!=0;case 12:return(this.Bb&R4)!=0;case 13:return this.j!=null;case 14:return cI(this)!=null;case 15:return(this.Bb&gh)!=0;case 16:return(this.Bb&ng)!=0;case 17:return!!t4(this);case 18:return(this.Bb&Sc)!=0;case 19:return g=sl(this),!!g&&(g.Bb&Sc)!=0;case 20:return(this.Bb&el)==0;case 21:return!!this.b;case 22:return!!qPt(this);case 23:return!!this.a&&this.a.i!=0}return sf(this,i-kr((Pn(),iC)),qn((l=v(rr(this,16),29),l||iC),i))},E.bi=function(i,l){var d,g;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:afe(this,ai(l));return;case 2:sy(this,Vt(Ht(l)));return;case 3:oy(this,Vt(Ht(l)));return;case 4:ny(this,v(l,17).a);return;case 5:c4(this,v(l,17).a);return;case 8:U_(this,v(l,142));return;case 9:g=Q1(this,v(l,89),null),g&&g.oj();return;case 10:Y8(this,Vt(Ht(l)));return;case 11:K8(this,Vt(Ht(l)));return;case 12:j8(this,Vt(Ht(l)));return;case 13:i8e(this,ai(l));return;case 15:W8(this,Vt(Ht(l)));return;case 16:X8(this,Vt(Ht(l)));return;case 18:Zfr(this,Vt(Ht(l)));return;case 20:xLe(this,Vt(Ht(l)));return;case 21:w9e(this,v(l,19));return;case 23:!this.a&&(this.a=new BT(u3,this,23)),Gr(this.a),!this.a&&(this.a=new BT(u3,this,23)),Ka(this.a,v(l,16));return}df(this,i-kr((Pn(),iC)),qn((d=v(rr(this,16),29),d||iC),i),l)},E.ii=function(){return Pn(),iC},E.ki=function(i){var l,d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:$e(this.Cb,90)&&_4($h(v(this.Cb,90)),4),mu(this,null);return;case 2:sy(this,!0);return;case 3:oy(this,!0);return;case 4:ny(this,0);return;case 5:c4(this,1);return;case 8:U_(this,null);return;case 9:d=Q1(this,null,null),d&&d.oj();return;case 10:Y8(this,!0);return;case 11:K8(this,!1);return;case 12:j8(this,!1);return;case 13:this.i=null,uZ(this,null);return;case 15:W8(this,!1);return;case 16:X8(this,!1);return;case 18:ELe(this,!1),$e(this.Cb,90)&&_4($h(v(this.Cb,90)),2);return;case 20:xLe(this,!0);return;case 21:w9e(this,null);return;case 23:!this.a&&(this.a=new BT(u3,this,23)),Gr(this.a);return}hf(this,i-kr((Pn(),iC)),qn((l=v(rr(this,16),29),l||iC),i))},E.pi=function(){V9e(this),d8(Al((dh(),ko),this)),Gf(this),this.Bb|=1},E.uk=function(){return sl(this)},E._k=function(){var i;return i=sl(this),!!i&&(i.Bb&Sc)!=0},E.al=function(){return(this.Bb&Sc)!=0},E.bl=function(){return(this.Bb&el)!=0},E.Yk=function(i,l){return this.c=null,dLe(this,i,l)},E.Ib=function(){var i;return this.Db&64?TJ(this):(i=new Ff(TJ(this)),i.a+=" (containment: ",Hb(i,(this.Bb&Sc)!=0),i.a+=", resolveProxies: ",Hb(i,(this.Bb&el)!=0),i.a+=")",i.a)},K(tr,"EReferenceImpl",102),H(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},zSt),E.Fb=function(i){return this===i},E.ld=function(){return this.b},E.md=function(){return this.c},E.Hb=function(){return vE(this)},E.Di=function(i){rhr(this,ai(i))},E.nd=function(i){return Gur(this,ai(i))},E.Lh=function(i,l,d){var g;switch(i){case 0:return this.b;case 1:return this.c}return lf(this,i-kr((Pn(),nl)),qn((g=v(rr(this,16),29),g||nl),i),l,d)},E.Wh=function(i){var l;switch(i){case 0:return this.b!=null;case 1:return this.c!=null}return sf(this,i-kr((Pn(),nl)),qn((l=v(rr(this,16),29),l||nl),i))},E.bi=function(i,l){var d;switch(i){case 0:ihr(this,ai(l));return;case 1:y9e(this,ai(l));return}df(this,i-kr((Pn(),nl)),qn((d=v(rr(this,16),29),d||nl),i),l)},E.ii=function(){return Pn(),nl},E.ki=function(i){var l;switch(i){case 0:b9e(this,null);return;case 1:y9e(this,null);return}hf(this,i-kr((Pn(),nl)),qn((l=v(rr(this,16),29),l||nl),i))},E.Bi=function(){var i;return this.a==-1&&(i=this.b,this.a=i==null?0:ry(i)),this.a},E.Ci=function(i){this.a=i},E.Ib=function(){var i;return this.Db&64?T0(this):(i=new Ff(T0(this)),i.a+=" (key: ",bl(i,this.b),i.a+=", value: ",bl(i,this.c),i.a+=")",i.a)},E.a=-1,E.b=null,E.c=null;var _c=K(tr,"EStringToStringMapEntryImpl",561),fhn=$a(Ca,"FeatureMap/Entry/Internal");H(576,1,Fee),E.xl=function(i){return this.yl(v(i,54))},E.yl=function(i){return this.xl(i)},E.Fb=function(i){var l,d;return this===i?!0:$e(i,76)?(l=v(i,76),l.Lk()==this.c?(d=this.md(),d==null?l.md()==null:Yi(d,l.md())):!1):!1},E.Lk=function(){return this.c},E.Hb=function(){var i;return i=this.md(),ma(this.c)^(i==null?0:ma(i))},E.Ib=function(){var i,l;return i=this.c,l=Cd(i.qk()).yi(),i.xe(),(l!=null&&l.length!=0?l+":"+i.xe():i.xe())+"="+this.md()},K(tr,"EStructuralFeatureImpl/BasicFeatureMapEntry",576),H(791,576,Fee,rIe),E.yl=function(i){return new rIe(this.c,i)},E.md=function(){return this.a},E.zl=function(i,l,d){return zmr(this,i,this.a,l,d)},E.Al=function(i,l,d){return Gmr(this,i,this.a,l,d)},K(tr,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",791),H(1350,1,{},X8t),E.yk=function(i,l,d,g,y){var x;return x=v(v8(i,this.b),220),x.Yl(this.a).Fk(g)},E.zk=function(i,l,d,g,y){var x;return x=v(v8(i,this.b),220),x.Pl(this.a,g,y)},E.Ak=function(i,l,d,g,y){var x;return x=v(v8(i,this.b),220),x.Ql(this.a,g,y)},E.Bk=function(i,l,d){var g;return g=v(v8(i,this.b),220),g.Yl(this.a).Qj()},E.Ck=function(i,l,d,g){var y;y=v(v8(i,this.b),220),y.Yl(this.a).Wb(g)},E.Dk=function(i,l,d){return v(v8(i,this.b),220).Yl(this.a)},E.Ek=function(i,l,d){var g;g=v(v8(i,this.b),220),g.Yl(this.a).Gk()},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1350),H(91,1,{},Wb,A_,Xb,O_),E.yk=function(i,l,d,g,y){var x;if(x=l.li(d),x==null&&l.mi(d,x=BJ(this,i)),!y)switch(this.e){case 50:case 41:return v(x,597).bk();case 40:return v(x,220).Vl()}return x},E.zk=function(i,l,d,g,y){var x,T;return T=l.li(d),T==null&&l.mi(d,T=BJ(this,i)),x=v(T,71).Wk(g,y),x},E.Ak=function(i,l,d,g,y){var x;return x=l.li(d),x!=null&&(y=v(x,71).Xk(g,y)),y},E.Bk=function(i,l,d){var g;return g=l.li(d),g!=null&&v(g,79).Qj()},E.Ck=function(i,l,d,g){var y;y=v(l.li(d),79),!y&&l.mi(d,y=BJ(this,i)),y.Wb(g)},E.Dk=function(i,l,d){var g,y;return y=l.li(d),y==null&&l.mi(d,y=BJ(this,i)),$e(y,79)?v(y,79):(g=v(l.li(d),15),new $kt(g))},E.Ek=function(i,l,d){var g;g=v(l.li(d),79),!g&&l.mi(d,g=BJ(this,i)),g.Gk()},E.b=0,E.e=0,K(tr,"EStructuralFeatureImpl/InternalSettingDelegateMany",91),H(512,1,{}),E.zk=function(i,l,d,g,y){throw _e(new ri)},E.Ak=function(i,l,d,g,y){throw _e(new ri)},E.Dk=function(i,l,d){return new WLt(this,i,l,d)};var lm;K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingle",512),H(1367,1,Wme,WLt),E.Fk=function(i){return this.a.yk(this.c,this.d,this.b,i,!0)},E.Qj=function(){return this.a.Bk(this.c,this.d,this.b)},E.Wb=function(i){this.a.Ck(this.c,this.d,this.b,i)},E.Gk=function(){this.a.Ek(this.c,this.d,this.b)},E.b=0,K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1367),H(784,512,{},VNe),E.yk=function(i,l,d,g,y){return K1e(i,i.Ph(),i.Fh())==this.b?this.bl()&&g?M1e(i):i.Ph():null},E.zk=function(i,l,d,g,y){var x,T;return i.Ph()&&(y=(x=i.Fh(),x>=0?i.Ah(y):i.Ph().Th(i,-1-x,null,y))),T=Ma(i.Dh(),this.e),i.Ch(g,T,y)},E.Ak=function(i,l,d,g,y){var x;return x=Ma(i.Dh(),this.e),i.Ch(null,x,y)},E.Bk=function(i,l,d){var g;return g=Ma(i.Dh(),this.e),!!i.Ph()&&i.Fh()==g},E.Ck=function(i,l,d,g){var y,x,T,R,O;if(g!=null&&!J1e(this.a,g))throw _e(new UR($ee+($e(g,58)?ODe(v(g,58).Dh()):ZOe(cd(g)))+Uee+this.a+"'"));if(y=i.Ph(),T=Ma(i.Dh(),this.e),Ze(g)!==Ze(y)||i.Fh()!=T&&g!=null){if(tI(i,v(g,58)))throw _e(new ar(PM+i.Ib()));O=null,y&&(O=(x=i.Fh(),x>=0?i.Ah(O):i.Ph().Th(i,-1-x,null,O))),R=v(g,54),R&&(O=R.Rh(i,Ma(R.Dh(),this.b),null,O)),O=i.Ch(R,T,O),O&&O.oj()}else i.vh()&&i.wh()&&Vi(i,new js(i,1,T,g,g))},E.Ek=function(i,l,d){var g,y,x,T;g=i.Ph(),g?(T=(y=i.Fh(),y>=0?i.Ah(null):i.Ph().Th(i,-1-y,null,null)),x=Ma(i.Dh(),this.e),T=i.Ch(null,x,T),T&&T.oj()):i.vh()&&i.wh()&&Vi(i,new oD(i,1,this.e,null,null))},E.bl=function(){return!1},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",784),H(1351,784,{},FOt),E.bl=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1351),H(574,512,{}),E.yk=function(i,l,d,g,y){var x;return x=l.li(d),x==null?this.b:Ze(x)===Ze(lm)?null:x},E.Bk=function(i,l,d){var g;return g=l.li(d),g!=null&&(Ze(g)===Ze(lm)||!Yi(g,this.b))},E.Ck=function(i,l,d,g){var y,x;i.vh()&&i.wh()?(y=(x=l.li(d),x==null?this.b:Ze(x)===Ze(lm)?null:x),g==null?this.c!=null?(l.mi(d,null),g=this.b):this.b!=null?l.mi(d,lm):l.mi(d,null):(this.Bl(g),l.mi(d,g)),Vi(i,this.d.Cl(i,1,this.e,y,g))):g==null?this.c!=null?l.mi(d,null):this.b!=null?l.mi(d,lm):l.mi(d,null):(this.Bl(g),l.mi(d,g))},E.Ek=function(i,l,d){var g,y;i.vh()&&i.wh()?(g=(y=l.li(d),y==null?this.b:Ze(y)===Ze(lm)?null:y),l.ni(d),Vi(i,this.d.Cl(i,1,this.e,g,this.b))):l.ni(d)},E.Bl=function(i){throw _e(new Xkt)},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",574),H(S5,1,{},GSt),E.Cl=function(i,l,d,g,y){return new oD(i,l,d,g,y)},E.Dl=function(i,l,d,g,y,x){return new jde(i,l,d,g,y,x)};var MKe,PKe,BKe,FKe,$Ke,UKe,zKe,W2e,GKe;K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",S5),H(1368,S5,{},qSt),E.Cl=function(i,l,d,g,y){return new EOe(i,l,d,Vt(Ht(g)),Vt(Ht(y)))},E.Dl=function(i,l,d,g,y,x){return new vMt(i,l,d,Vt(Ht(g)),Vt(Ht(y)),x)},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1368),H(1369,S5,{},HSt),E.Cl=function(i,l,d,g,y){return new n9e(i,l,d,v(g,222).a,v(y,222).a)},E.Dl=function(i,l,d,g,y,x){return new dMt(i,l,d,v(g,222).a,v(y,222).a,x)},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1369),H(1370,S5,{},VSt),E.Cl=function(i,l,d,g,y){return new r9e(i,l,d,v(g,180).a,v(y,180).a)},E.Dl=function(i,l,d,g,y,x){return new fMt(i,l,d,v(g,180).a,v(y,180).a,x)},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1370),H(1371,S5,{},YSt),E.Cl=function(i,l,d,g,y){return new _Oe(i,l,d,We(at(g)),We(at(y)))},E.Dl=function(i,l,d,g,y,x){return new pMt(i,l,d,We(at(g)),We(at(y)),x)},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1371),H(1372,S5,{},jSt),E.Cl=function(i,l,d,g,y){return new s9e(i,l,d,v(g,161).a,v(y,161).a)},E.Dl=function(i,l,d,g,y,x){return new gMt(i,l,d,v(g,161).a,v(y,161).a,x)},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1372),H(1373,S5,{},WSt),E.Cl=function(i,l,d,g,y){return new wOe(i,l,d,v(g,17).a,v(y,17).a)},E.Dl=function(i,l,d,g,y,x){return new mMt(i,l,d,v(g,17).a,v(y,17).a,x)},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1373),H(1374,S5,{},KSt),E.Cl=function(i,l,d,g,y){return new i9e(i,l,d,v(g,168).a,v(y,168).a)},E.Dl=function(i,l,d,g,y,x){return new bMt(i,l,d,v(g,168).a,v(y,168).a,x)},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1374),H(1375,S5,{},XSt),E.Cl=function(i,l,d,g,y){return new a9e(i,l,d,v(g,191).a,v(y,191).a)},E.Dl=function(i,l,d,g,y,x){return new yMt(i,l,d,v(g,191).a,v(y,191).a,x)},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1375),H(1353,574,{},KLt),E.Bl=function(i){if(!this.a.fk(i))throw _e(new UR($ee+cd(i)+Uee+this.a+"'"))},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1353),H(1354,574,{},P9t),E.Bl=function(i){},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1354),H(785,574,{}),E.Bk=function(i,l,d){var g;return g=l.li(d),g!=null},E.Ck=function(i,l,d,g){var y,x;i.vh()&&i.wh()?(y=!0,x=l.li(d),x==null?(y=!1,x=this.b):Ze(x)===Ze(lm)&&(x=null),g==null?this.c!=null?(l.mi(d,null),g=this.b):l.mi(d,lm):(this.Bl(g),l.mi(d,g)),Vi(i,this.d.Dl(i,1,this.e,x,g,!y))):g==null?this.c!=null?l.mi(d,null):l.mi(d,lm):(this.Bl(g),l.mi(d,g))},E.Ek=function(i,l,d){var g,y;i.vh()&&i.wh()?(g=!0,y=l.li(d),y==null?(g=!1,y=this.b):Ze(y)===Ze(lm)&&(y=null),l.ni(d),Vi(i,this.d.Dl(i,2,this.e,y,this.b,g))):l.ni(d)},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",785),H(1355,785,{},XLt),E.Bl=function(i){if(!this.a.fk(i))throw _e(new UR($ee+cd(i)+Uee+this.a+"'"))},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1355),H(1356,785,{},B9t),E.Bl=function(i){},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1356),H(410,512,{},QX),E.yk=function(i,l,d,g,y){var x,T,R,O,D;if(D=l.li(d),this.tk()&&Ze(D)===Ze(lm))return null;if(this.bl()&&g&&D!=null){if(R=v(D,54),R.Vh()&&(O=Hv(i,R),R!=O)){if(!J1e(this.a,O))throw _e(new UR($ee+cd(O)+Uee+this.a+"'"));l.mi(d,D=O),this.al()&&(x=v(O,54),T=R.Th(i,this.b?Ma(R.Dh(),this.b):-1-Ma(i.Dh(),this.e),null,null),!x.Ph()&&(T=x.Rh(i,this.b?Ma(x.Dh(),this.b):-1-Ma(i.Dh(),this.e),null,T)),T&&T.oj()),i.vh()&&i.wh()&&Vi(i,new oD(i,9,this.e,R,O))}return D}else return D},E.zk=function(i,l,d,g,y){var x,T;return T=l.li(d),Ze(T)===Ze(lm)&&(T=null),l.mi(d,g),this.Mj()?Ze(T)!==Ze(g)&&T!=null&&(x=v(T,54),y=x.Th(i,Ma(x.Dh(),this.b),null,y)):this.al()&&T!=null&&(y=v(T,54).Th(i,-1-Ma(i.Dh(),this.e),null,y)),i.vh()&&i.wh()&&(!y&&(y=new Av(4)),y.nj(new oD(i,1,this.e,T,g))),y},E.Ak=function(i,l,d,g,y){var x;return x=l.li(d),Ze(x)===Ze(lm)&&(x=null),l.ni(d),i.vh()&&i.wh()&&(!y&&(y=new Av(4)),this.tk()?y.nj(new oD(i,2,this.e,x,null)):y.nj(new oD(i,1,this.e,x,null))),y},E.Bk=function(i,l,d){var g;return g=l.li(d),g!=null},E.Ck=function(i,l,d,g){var y,x,T,R,O;if(g!=null&&!J1e(this.a,g))throw _e(new UR($ee+($e(g,58)?ODe(v(g,58).Dh()):ZOe(cd(g)))+Uee+this.a+"'"));O=l.li(d),R=O!=null,this.tk()&&Ze(O)===Ze(lm)&&(O=null),T=null,this.Mj()?Ze(O)!==Ze(g)&&(O!=null&&(y=v(O,54),T=y.Th(i,Ma(y.Dh(),this.b),null,T)),g!=null&&(y=v(g,54),T=y.Rh(i,Ma(y.Dh(),this.b),null,T))):this.al()&&Ze(O)!==Ze(g)&&(O!=null&&(T=v(O,54).Th(i,-1-Ma(i.Dh(),this.e),null,T)),g!=null&&(T=v(g,54).Rh(i,-1-Ma(i.Dh(),this.e),null,T))),g==null&&this.tk()?l.mi(d,lm):l.mi(d,g),i.vh()&&i.wh()?(x=new jde(i,1,this.e,O,g,this.tk()&&!R),T?(T.nj(x),T.oj()):Vi(i,x)):T&&T.oj()},E.Ek=function(i,l,d){var g,y,x,T,R;R=l.li(d),T=R!=null,this.tk()&&Ze(R)===Ze(lm)&&(R=null),x=null,R!=null&&(this.Mj()?(g=v(R,54),x=g.Th(i,Ma(g.Dh(),this.b),null,x)):this.al()&&(x=v(R,54).Th(i,-1-Ma(i.Dh(),this.e),null,x))),l.ni(d),i.vh()&&i.wh()?(y=new jde(i,this.tk()?2:1,this.e,R,null,T),x?(x.nj(y),x.oj()):Vi(i,y)):x&&x.oj()},E.Mj=function(){return!1},E.al=function(){return!1},E.bl=function(){return!1},E.tk=function(){return!1},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",410),H(575,410,{},Qhe),E.al=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",575),H(1359,575,{},MNt),E.bl=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1359),H(787,575,{},H8e),E.tk=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",787),H(1361,787,{},PNt),E.bl=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1361),H(650,575,{},ude),E.Mj=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",650),H(1360,650,{},$Ot),E.bl=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1360),H(788,650,{},IIe),E.tk=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",788),H(1362,788,{},UOt),E.bl=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1362),H(651,410,{},V8e),E.bl=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",651),H(1363,651,{},BNt),E.tk=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1363),H(789,651,{},kIe),E.Mj=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",789),H(1364,789,{},zOt),E.tk=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1364),H(1357,410,{},FNt),E.tk=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1357),H(786,410,{},RIe),E.Mj=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",786),H(1358,786,{},GOt),E.tk=function(){return!0},K(tr,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1358),H(790,576,Fee,CNe),E.yl=function(i){return new CNe(this.a,this.c,i)},E.md=function(){return this.b},E.zl=function(i,l,d){return $pr(this,i,this.b,d)},E.Al=function(i,l,d){return Upr(this,i,this.b,d)},K(tr,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",790),H(1365,1,Wme,$kt),E.Fk=function(i){return this.a},E.Qj=function(){return $e(this.a,97)?v(this.a,97).Qj():!this.a.dc()},E.Wb=function(i){this.a.$b(),this.a.Gc(v(i,15))},E.Gk=function(){$e(this.a,97)?v(this.a,97).Gk():this.a.$b()},K(tr,"EStructuralFeatureImpl/SettingMany",1365),H(1366,576,Fee,uPt),E.xl=function(i){return new ede((ca(),rB),this.b.ri(this.a,i))},E.md=function(){return null},E.zl=function(i,l,d){return d},E.Al=function(i,l,d){return d},K(tr,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1366),H(652,576,Fee,ede),E.xl=function(i){return new ede(this.c,i)},E.md=function(){return this.a},E.zl=function(i,l,d){return d},E.Al=function(i,l,d){return d},K(tr,"EStructuralFeatureImpl/SimpleFeatureMapEntry",652),H(403,506,hg,OR),E.aj=function(i){return st(Jf,Yn,29,i,0,1)},E.Yi=function(){return!1},K(tr,"ESuperAdapter/1",403),H(457,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,457:1,119:1,120:1},due),E.Lh=function(i,l,d){var g;switch(i){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new rD(this,pl,this)),this.a}return lf(this,i-kr((Pn(),Nx)),qn((g=v(rr(this,16),29),g||Nx),i),l,d)},E.Uh=function(i,l,d){var g,y;switch(l){case 0:return!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ko(this.Ab,i,d);case 2:return!this.a&&(this.a=new rD(this,pl,this)),Ko(this.a,i,d)}return y=v(qn((g=v(rr(this,16),29),g||(Pn(),Nx)),l),69),y.wk().Ak(this,Ru(this),l-kr((Pn(),Nx)),i,d)},E.Wh=function(i){var l;switch(i){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 sf(this,i-kr((Pn(),Nx)),qn((l=v(rr(this,16),29),l||Nx),i))},E.bi=function(i,l){var d;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab),!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Ka(this.Ab,v(l,16));return;case 1:mu(this,ai(l));return;case 2:!this.a&&(this.a=new rD(this,pl,this)),Gr(this.a),!this.a&&(this.a=new rD(this,pl,this)),Ka(this.a,v(l,16));return}df(this,i-kr((Pn(),Nx)),qn((d=v(rr(this,16),29),d||Nx),i),l)},E.ii=function(){return Pn(),Nx},E.ki=function(i){var l;switch(i){case 0:!this.Ab&&(this.Ab=new vt(wi,this,0,3)),Gr(this.Ab);return;case 1:mu(this,null);return;case 2:!this.a&&(this.a=new rD(this,pl,this)),Gr(this.a);return}hf(this,i-kr((Pn(),Nx)),qn((l=v(rr(this,16),29),l||Nx),i))},K(tr,"ETypeParameterImpl",457),H(458,83,Xl,rD),E.Nj=function(i,l){return exr(this,v(i,89),l)},E.Oj=function(i,l){return txr(this,v(i,89),l)},K(tr,"ETypeParameterImpl/1",458),H(647,45,p5,Due),E.ec=function(){return new SK(this)},K(tr,"ETypeParameterImpl/2",647),H(570,J1,fh,SK),E.Fc=function(i){return uOt(this,v(i,89))},E.Gc=function(i){var l,d,g;for(g=!1,d=i.Kc();d.Ob();)l=v(d.Pb(),89),Ni(this.a,l,"")==null&&(g=!0);return g},E.$b=function(){xh(this.a)},E.Hc=function(i){return Tu(this.a,i)},E.Kc=function(){var i;return i=new P_(new b_(this.a).a),new TK(i)},E.Mc=function(i){return eBt(this,i)},E.gc=function(){return SL(this.a)},K(tr,"ETypeParameterImpl/2/1",570),H(571,1,io,TK),E.Nb=function(i){xo(this,i)},E.Pb=function(){return v(zE(this.a).ld(),89)},E.Ob=function(){return this.a.b},E.Qb=function(){cFt(this.a)},K(tr,"ETypeParameterImpl/2/1/1",571),H(1329,45,p5,R6t),E._b=function(i){return ro(i)?Kde(this,i):!!ol(this.f,i)},E.xc=function(i){var l,d;return l=ro(i)?Qc(this,i):Pl(ol(this.f,i)),$e(l,851)?(d=v(l,851),l=d.Kk(),Ni(this,v(i,241),l),l):l??(i==null?(Jue(),ghn):null)},K(tr,"EValidatorRegistryImpl",1329),H(1349,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},QSt),E.ri=function(i,l){switch(i.hk()){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 l==null?null:Kl(l);case 25:return Qgr(l);case 27:return hgr(l);case 28:return dgr(l);case 29:return l==null?null:zIt(QP[0],v(l,206));case 41:return l==null?"":__(v(l,297));case 42:return Kl(l);case 50:return ai(l);default:throw _e(new ar(FI+i.xe()+lx))}},E.si=function(i){var l,d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se;switch(i.G==-1&&(i.G=(re=Cd(i),re?uy(re.vi(),i):-1)),i.G){case 0:return d=new Nue,d;case 1:return l=new V6e,l;case 2:return g=new K6e,g;case 4:return y=new CK,y;case 5:return x=new k6t,x;case 6:return T=new Jkt,T;case 7:return R=new X6e,R;case 10:return D=new gK,D;case 11:return q=new Oue,q;case 12:return J=new iDt,J;case 13:return ae=new Lue,ae;case 14:return le=new W8e,le;case 17:return de=new zSt,de;case 18:return O=new iE,O;case 19:return Se=new due,Se;default:throw _e(new ar(Ome+i.zb+lx))}},E.ti=function(i,l){switch(i.hk()){case 20:return l==null?null:new mRe(l);case 21:return l==null?null:new Ov(l);case 23:case 22:return l==null?null:u2r(l);case 26:case 24:return l==null?null:Cz(Nd(l,-128,127)<<24>>24);case 25:return R3r(l);case 27:return Q_r(l);case 28:return Z_r(l);case 29:return wxr(l);case 32:case 31:return l==null?null:y4(l);case 38:case 37:return l==null?null:new L7e(l);case 40:case 39:return l==null?null:Nt(Nd(l,Po,qi));case 41:return null;case 42:return l==null,null;case 44:case 43:return l==null?null:Zm(PJ(l));case 49:case 48:return l==null?null:V8(Nd(l,zee,32767)<<16>>16);case 50:return l;default:throw _e(new ar(FI+i.xe()+lx))}},K(tr,"EcoreFactoryImpl",1349),H(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},kLt),E.gb=!1,E.hb=!1;var qKe,phn=!1;K(tr,"EcorePackageImpl",560),H(1234,1,{851:1},ZSt),E.Kk=function(){return eNt(),mhn},K(tr,"EcorePackageImpl/1",1234),H(1243,1,ki,JSt),E.fk=function(i){return $e(i,155)},E.gk=function(i){return st(wH,Yn,155,i,0,1)},K(tr,"EcorePackageImpl/10",1243),H(1244,1,ki,e4t),E.fk=function(i){return $e(i,197)},E.gk=function(i){return st($2e,Yn,197,i,0,1)},K(tr,"EcorePackageImpl/11",1244),H(1245,1,ki,t4t),E.fk=function(i){return $e(i,58)},E.gk=function(i){return st(_2,Yn,58,i,0,1)},K(tr,"EcorePackageImpl/12",1245),H(1246,1,ki,n4t),E.fk=function(i){return $e(i,411)},E.gk=function(i){return st(e0,DUe,62,i,0,1)},K(tr,"EcorePackageImpl/13",1246),H(1247,1,ki,r4t),E.fk=function(i){return $e(i,241)},E.gk=function(i){return st(y1,Yn,241,i,0,1)},K(tr,"EcorePackageImpl/14",1247),H(1248,1,ki,i4t),E.fk=function(i){return $e(i,518)},E.gk=function(i){return st(Rx,Yn,2116,i,0,1)},K(tr,"EcorePackageImpl/15",1248),H(1249,1,ki,a4t),E.fk=function(i){return $e(i,102)},E.gk=function(i){return st(h3,x5,19,i,0,1)},K(tr,"EcorePackageImpl/16",1249),H(1250,1,ki,s4t),E.fk=function(i){return $e(i,179)},E.gk=function(i){return st(Ju,x5,179,i,0,1)},K(tr,"EcorePackageImpl/17",1250),H(1251,1,ki,o4t),E.fk=function(i){return $e(i,481)},E.gk=function(i){return st(c3,Yn,481,i,0,1)},K(tr,"EcorePackageImpl/18",1251),H(1252,1,ki,l4t),E.fk=function(i){return $e(i,561)},E.gk=function(i){return st(_c,mJt,561,i,0,1)},K(tr,"EcorePackageImpl/19",1252),H(1235,1,ki,c4t),E.fk=function(i){return $e(i,331)},E.gk=function(i){return st(u3,x5,35,i,0,1)},K(tr,"EcorePackageImpl/2",1235),H(1253,1,ki,u4t),E.fk=function(i){return $e(i,248)},E.gk=function(i){return st(pl,LJt,89,i,0,1)},K(tr,"EcorePackageImpl/20",1253),H(1254,1,ki,h4t),E.fk=function(i){return $e(i,457)},E.gk=function(i){return st(Mu,Yn,850,i,0,1)},K(tr,"EcorePackageImpl/21",1254),H(1255,1,ki,d4t),E.fk=function(i){return HS(i)},E.gk=function(i){return st(rs,kt,485,i,8,1)},K(tr,"EcorePackageImpl/22",1255),H(1256,1,ki,f4t),E.fk=function(i){return $e(i,195)},E.gk=function(i){return st(bh,kt,195,i,0,2)},K(tr,"EcorePackageImpl/23",1256),H(1257,1,ki,p4t),E.fk=function(i){return $e(i,222)},E.gk=function(i){return st(d6,kt,222,i,0,1)},K(tr,"EcorePackageImpl/24",1257),H(1258,1,ki,g4t),E.fk=function(i){return $e(i,180)},E.gk=function(i){return st(WM,kt,180,i,0,1)},K(tr,"EcorePackageImpl/25",1258),H(1259,1,ki,m4t),E.fk=function(i){return $e(i,206)},E.gk=function(i){return st(Qee,kt,206,i,0,1)},K(tr,"EcorePackageImpl/26",1259),H(1260,1,ki,b4t),E.fk=function(i){return!1},E.gk=function(i){return st(oXe,Yn,2215,i,0,1)},K(tr,"EcorePackageImpl/27",1260),H(1261,1,ki,y4t),E.fk=function(i){return VS(i)},E.gk=function(i){return st(ws,kt,345,i,7,1)},K(tr,"EcorePackageImpl/28",1261),H(1262,1,ki,v4t),E.fk=function(i){return $e(i,61)},E.gk=function(i){return st(EKe,I4,61,i,0,1)},K(tr,"EcorePackageImpl/29",1262),H(1236,1,ki,_4t),E.fk=function(i){return $e(i,519)},E.gk=function(i){return st(wi,{3:1,4:1,5:1,2033:1},598,i,0,1)},K(tr,"EcorePackageImpl/3",1236),H(1263,1,ki,w4t),E.fk=function(i){return $e(i,582)},E.gk=function(i){return st(TKe,Yn,2039,i,0,1)},K(tr,"EcorePackageImpl/30",1263),H(1264,1,ki,E4t),E.fk=function(i){return $e(i,160)},E.gk=function(i){return st(WKe,I4,160,i,0,1)},K(tr,"EcorePackageImpl/31",1264),H(1265,1,ki,x4t),E.fk=function(i){return $e(i,76)},E.gk=function(i){return st(pre,GJt,76,i,0,1)},K(tr,"EcorePackageImpl/32",1265),H(1266,1,ki,S4t),E.fk=function(i){return $e(i,161)},E.gk=function(i){return st(VI,kt,161,i,0,1)},K(tr,"EcorePackageImpl/33",1266),H(1267,1,ki,T4t),E.fk=function(i){return $e(i,17)},E.gk=function(i){return st(Ao,kt,17,i,0,1)},K(tr,"EcorePackageImpl/34",1267),H(1268,1,ki,C4t),E.fk=function(i){return $e(i,297)},E.gk=function(i){return st(jUe,Yn,297,i,0,1)},K(tr,"EcorePackageImpl/35",1268),H(1269,1,ki,A4t),E.fk=function(i){return $e(i,168)},E.gk=function(i){return st(ux,kt,168,i,0,1)},K(tr,"EcorePackageImpl/36",1269),H(1270,1,ki,k4t),E.fk=function(i){return $e(i,85)},E.gk=function(i){return st(WUe,Yn,85,i,0,1)},K(tr,"EcorePackageImpl/37",1270),H(1271,1,ki,R4t),E.fk=function(i){return $e(i,599)},E.gk=function(i){return st(HKe,Yn,599,i,0,1)},K(tr,"EcorePackageImpl/38",1271),H(1272,1,ki,I4t),E.fk=function(i){return!1},E.gk=function(i){return st(lXe,Yn,2216,i,0,1)},K(tr,"EcorePackageImpl/39",1272),H(1237,1,ki,N4t),E.fk=function(i){return $e(i,90)},E.gk=function(i){return st(Jf,Yn,29,i,0,1)},K(tr,"EcorePackageImpl/4",1237),H(1273,1,ki,O4t),E.fk=function(i){return $e(i,191)},E.gk=function(i){return st(hx,kt,191,i,0,1)},K(tr,"EcorePackageImpl/40",1273),H(1274,1,ki,L4t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(tr,"EcorePackageImpl/41",1274),H(1275,1,ki,D4t),E.fk=function(i){return $e(i,596)},E.gk=function(i){return st(SKe,Yn,596,i,0,1)},K(tr,"EcorePackageImpl/42",1275),H(1276,1,ki,M4t),E.fk=function(i){return!1},E.gk=function(i){return st(cXe,kt,2217,i,0,1)},K(tr,"EcorePackageImpl/43",1276),H(1277,1,ki,P4t),E.fk=function(i){return $e(i,44)},E.gk=function(i){return st(rw,$J,44,i,0,1)},K(tr,"EcorePackageImpl/44",1277),H(1238,1,ki,B4t),E.fk=function(i){return $e(i,142)},E.gk=function(i){return st(v1,Yn,142,i,0,1)},K(tr,"EcorePackageImpl/5",1238),H(1239,1,ki,F4t),E.fk=function(i){return $e(i,156)},E.gk=function(i){return st(V2e,Yn,156,i,0,1)},K(tr,"EcorePackageImpl/6",1239),H(1240,1,ki,$4t),E.fk=function(i){return $e(i,469)},E.gk=function(i){return st(fre,Yn,685,i,0,1)},K(tr,"EcorePackageImpl/7",1240),H(1241,1,ki,U4t),E.fk=function(i){return $e(i,582)},E.gk=function(i){return st(hb,Yn,694,i,0,1)},K(tr,"EcorePackageImpl/8",1241),H(1242,1,ki,z4t),E.fk=function(i){return $e(i,480)},E.gk=function(i){return st(XP,Yn,480,i,0,1)},K(tr,"EcorePackageImpl/9",1242),H(1038,2080,gJt,X6t),E.Mi=function(i,l){$yr(this,v(l,424))},E.Qi=function(i,l){HHt(this,i,v(l,424))},K(tr,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1038),H(1039,152,oq,yLt),E.jj=function(){return this.a.a},K(tr,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1039),H(1067,1066,{},OIt),K("org.eclipse.emf.ecore.plugin","EcorePlugin",1067);var HKe=$a(qJt,"Resource");H(799,1524,HJt),E.Hl=function(i){},E.Il=function(i){},E.El=function(){return!this.a&&(this.a=new Tue(this)),this.a},E.Fl=function(i){var l,d,g,y,x;if(g=i.length,g>0)if(sr(0,i.length),i.charCodeAt(0)==47){for(x=new gu(4),y=1,l=1;l0&&(i=(mo(0,d,i.length),i.substr(0,d))));return p4r(this,i)},E.Gl=function(){return this.c},E.Ib=function(){var i;return __(this.Rm)+"@"+(i=ma(this)>>>0,i.toString(16))+" uri='"+this.d+"'"},E.b=!1,K(Kme,"ResourceImpl",799),H(1525,799,HJt,Ukt),K(Kme,"BinaryResourceImpl",1525),H(1190,708,qme),E.bj=function(i){return $e(i,58)?afr(this,v(i,58)):$e(i,599)?new mr(v(i,599).El()):Ze(i)===Ze(this.f)?v(i,16).Kc():(t8(),SH.a)},E.Ob=function(){return CMe(this)},E.a=!1,K(Ca,"EcoreUtil/ContentTreeIterator",1190),H(1526,1190,qme,W9t),E.bj=function(i){return Ze(i)===Ze(this.f)?v(i,15).Kc():new VMt(v(i,58))},K(Kme,"ResourceImpl/5",1526),H(658,2092,OJt,Tue),E.Hc=function(i){return this.i<=4?rI(this,i):$e(i,54)&&v(i,54).Jh()==this.a},E.Mi=function(i,l){i==this.i-1&&(this.a.b||(this.a.b=!0))},E.Oi=function(i,l){i==0?this.a.b||(this.a.b=!0):Sfe(this,i,l)},E.Qi=function(i,l){},E.Ri=function(i,l,d){},E.Lj=function(){return 2},E.jj=function(){return this.a},E.Mj=function(){return!0},E.Nj=function(i,l){var d;return d=v(i,54),l=d.fi(this.a,l),l},E.Oj=function(i,l){var d;return d=v(i,54),d.fi(null,l)},E.Pj=function(){return!1},E.Si=function(){return!0},E.aj=function(i){return st(_2,Yn,58,i,0,1)},E.Yi=function(){return!1},K(Kme,"ResourceImpl/ContentsEList",658),H(970,2062,EI,zkt),E.fd=function(i){return this.a.Ki(i)},E.gc=function(){return this.a.gc()},K(Ca,"AbstractSequentialInternalEList/1",970);var VKe,YKe,ko,jKe;H(634,1,{},XOt);var gre,mre;K(Ca,"BasicExtendedMetaData",634),H(1181,1,{},Z8t),E.Jl=function(){return null},E.Kl=function(){return this.a==-2&&Prr(this,pxr(this.d,this.b)),this.a},E.Ll=function(){return null},E.Ml=function(){return Fn(),Fn(),Zo},E.xe=function(){return this.c==zI&&Brr(this,pGt(this.d,this.b)),this.c},E.Nl=function(){return 0},E.a=-2,E.c=zI,K(Ca,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1181),H(1182,1,{},wMt),E.Jl=function(){return this.a==(y8(),gre)&&Urr(this,fCr(this.f,this.b)),this.a},E.Kl=function(){return 0},E.Ll=function(){return this.c==(y8(),gre)&&Frr(this,pCr(this.f,this.b)),this.c},E.Ml=function(){return!this.d&&Grr(this,ZAr(this.f,this.b)),this.d},E.xe=function(){return this.e==zI&&Hrr(this,pGt(this.f,this.b)),this.e},E.Nl=function(){return this.g==-2&&Yrr(this,LEr(this.f,this.b)),this.g},E.e=zI,E.g=-2,K(Ca,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1182),H(1180,1,{},J8t),E.b=!1,E.c=!1,K(Ca,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1180),H(1183,1,{},EMt),E.c=-2,E.e=zI,E.f=zI,K(Ca,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1183),H(593,632,Xl,zX),E.Lj=function(){return this.c},E.ol=function(){return!1},E.Wi=function(i,l){return l},E.c=0,K(Ca,"EDataTypeEList",593);var WKe=$a(Ca,"FeatureMap");H(78,593,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},Xa),E.bd=function(i,l){OTr(this,i,v(l,76))},E.Fc=function(i){return X3r(this,v(i,76))},E.Hi=function(i){ndr(this,v(i,76))},E.Nj=function(i,l){return xlr(this,v(i,76),l)},E.Oj=function(i,l){return yIe(this,v(i,76),l)},E.Ti=function(i,l){return rAr(this,i,l)},E.Wi=function(i,l){return H6r(this,i,v(l,76))},E.hd=function(i,l){return v5r(this,i,v(l,76))},E.Uj=function(i,l){return Slr(this,v(i,76),l)},E.Vj=function(i,l){return TOt(this,v(i,76),l)},E.Wj=function(i,l,d){return _Er(this,v(i,76),v(l,76),d)},E.Zi=function(i,l){return y1e(this,i,v(l,76))},E.Ol=function(i,l){return bPe(this,i,l)},E.cd=function(i,l){var d,g,y,x,T,R,O,D,q;for(D=new PE(l.gc()),y=l.Kc();y.Ob();)if(g=v(y.Pb(),76),x=g.Lk(),tb(this.e,x))(!x.Si()||!NQ(this,x,g.md())&&!rI(D,g))&&Yr(D,g);else{for(q=Iu(this.e.Dh(),x),d=v(this.g,124),T=!0,R=0;R=0;)if(l=i[this.c],this.k.am(l.Lk()))return this.j=this.f?l:l.md(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},K(Ca,"BasicFeatureMap/FeatureEIterator",420),H(676,420,Yg,Mhe),E.ul=function(){return!0},K(Ca,"BasicFeatureMap/ResolvingFeatureEIterator",676),H(968,496,Pee,GIt),E.pj=function(){return this},K(Ca,"EContentsEList/1",968),H(969,496,Pee,dIt),E.ul=function(){return!1},K(Ca,"EContentsEList/2",969),H(967,287,Bee,qIt),E.wl=function(i){},E.Ob=function(){return!1},E.Sb=function(){return!1},K(Ca,"EContentsEList/FeatureIteratorImpl/1",967),H(840,593,Xl,T8e),E.Ni=function(){this.a=!0},E.Qj=function(){return this.a},E.Gk=function(){var i;Gr(this),id(this.e)?(i=this.a,this.a=!1,Vi(this.e,new E0(this.e,2,this.c,i,!1))):this.a=!1},E.a=!1,K(Ca,"EDataTypeEList/Unsettable",840),H(1958,593,Xl,XIt),E.Si=function(){return!0},K(Ca,"EDataTypeUniqueEList",1958),H(1959,840,Xl,QIt),E.Si=function(){return!0},K(Ca,"EDataTypeUniqueEList/Unsettable",1959),H(147,83,Xl,sh),E.nl=function(){return!0},E.Wi=function(i,l){return Xk(this,i,v(l,58))},K(Ca,"EObjectContainmentEList/Resolving",147),H(1184,555,Xl,ZIt),E.nl=function(){return!0},E.Wi=function(i,l){return Xk(this,i,v(l,58))},K(Ca,"EObjectContainmentEList/Unsettable/Resolving",1184),H(766,14,Xl,hIe),E.Ni=function(){this.a=!0},E.Qj=function(){return this.a},E.Gk=function(){var i;Gr(this),id(this.e)?(i=this.a,this.a=!1,Vi(this.e,new E0(this.e,2,this.c,i,!1))):this.a=!1},E.a=!1,K(Ca,"EObjectContainmentWithInverseEList/Unsettable",766),H(1222,766,Xl,hOt),E.nl=function(){return!0},E.Wi=function(i,l){return Xk(this,i,v(l,58))},K(Ca,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1222),H(757,505,Xl,C8e),E.Ni=function(){this.a=!0},E.Qj=function(){return this.a},E.Gk=function(){var i;Gr(this),id(this.e)?(i=this.a,this.a=!1,Vi(this.e,new E0(this.e,2,this.c,i,!1))):this.a=!1},E.a=!1,K(Ca,"EObjectEList/Unsettable",757),H(338,505,Xl,BT),E.nl=function(){return!0},E.Wi=function(i,l){return Xk(this,i,v(l,58))},K(Ca,"EObjectResolvingEList",338),H(1844,757,Xl,JIt),E.nl=function(){return!0},E.Wi=function(i,l){return Xk(this,i,v(l,58))},K(Ca,"EObjectResolvingEList/Unsettable",1844),H(1527,1,{},G4t);var ghn;K(Ca,"EObjectValidator",1527),H(559,505,Xl,iQ),E.il=function(){return this.d},E.jl=function(){return this.b},E.Mj=function(){return!0},E.ml=function(){return!0},E.b=0,K(Ca,"EObjectWithInverseEList",559),H(1225,559,Xl,dOt),E.ll=function(){return!0},K(Ca,"EObjectWithInverseEList/ManyInverse",1225),H(635,559,Xl,nde),E.Ni=function(){this.a=!0},E.Qj=function(){return this.a},E.Gk=function(){var i;Gr(this),id(this.e)?(i=this.a,this.a=!1,Vi(this.e,new E0(this.e,2,this.c,i,!1))):this.a=!1},E.a=!1,K(Ca,"EObjectWithInverseEList/Unsettable",635),H(1224,635,Xl,fOt),E.ll=function(){return!0},K(Ca,"EObjectWithInverseEList/Unsettable/ManyInverse",1224),H(767,559,Xl,dIe),E.nl=function(){return!0},E.Wi=function(i,l){return Xk(this,i,v(l,58))},K(Ca,"EObjectWithInverseResolvingEList",767),H(32,767,Xl,Gn),E.ll=function(){return!0},K(Ca,"EObjectWithInverseResolvingEList/ManyInverse",32),H(768,635,Xl,fIe),E.nl=function(){return!0},E.Wi=function(i,l){return Xk(this,i,v(l,58))},K(Ca,"EObjectWithInverseResolvingEList/Unsettable",768),H(1223,768,Xl,pOt),E.ll=function(){return!0},K(Ca,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1223),H(1185,632,Xl),E.Li=function(){return(this.b&1792)==0},E.Ni=function(){this.b|=1},E.kl=function(){return(this.b&4)!=0},E.Mj=function(){return(this.b&40)!=0},E.ll=function(){return(this.b&16)!=0},E.ml=function(){return(this.b&8)!=0},E.nl=function(){return(this.b&P4)!=0},E.al=function(){return(this.b&32)!=0},E.ol=function(){return(this.b&k0)!=0},E.fk=function(i){return this.d?ePt(this.d,i):this.Lk().Hk().fk(i)},E.Qj=function(){return this.b&2?(this.b&1)!=0:this.i!=0},E.Si=function(){return(this.b&128)!=0},E.Gk=function(){var i;Gr(this),this.b&2&&(id(this.e)?(i=(this.b&1)!=0,this.b&=-2,$R(this,new E0(this.e,2,Ma(this.e.Dh(),this.Lk()),i,!1))):this.b&=-2)},E.Yi=function(){return(this.b&1536)==0},E.b=0,K(Ca,"EcoreEList/Generic",1185),H(1186,1185,Xl,sDt),E.Lk=function(){return this.a},K(Ca,"EcoreEList/Dynamic",1186),H(765,66,hg,A7e),E.aj=function(i){return Iz(this.a.a,i)},K(Ca,"EcoreEMap/1",765),H(764,83,Xl,hNe),E.Mi=function(i,l){XZ(this.b,v(l,136))},E.Oi=function(i,l){rUt(this.b)},E.Pi=function(i,l,d){var g;++(g=this.b,v(l,136),g).e},E.Qi=function(i,l){A0e(this.b,v(l,136))},E.Ri=function(i,l,d){A0e(this.b,v(d,136)),Ze(d)===Ze(l)&&v(d,136).Ci(_sr(v(l,136).ld())),XZ(this.b,v(l,136))},K(Ca,"EcoreEMap/DelegateEObjectContainmentEList",764),H(1220,141,LUe,_$t),K(Ca,"EcoreEMap/Unsettable",1220),H(1221,764,Xl,gOt),E.Ni=function(){this.a=!0},E.Qj=function(){return this.a},E.Gk=function(){var i;Gr(this),id(this.e)?(i=this.a,this.a=!1,Vi(this.e,new E0(this.e,2,this.c,i,!1))):this.a=!1},E.a=!1,K(Ca,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1221),H(1189,215,p5,oLt),E.a=!1,E.b=!1,K(Ca,"EcoreUtil/Copier",1189),H(759,1,io,VMt),E.Nb=function(i){xo(this,i)},E.Ob=function(){return Jzt(this)},E.Pb=function(){var i;return Jzt(this),i=this.b,this.b=null,i},E.Qb=function(){this.a.Qb()},K(Ca,"EcoreUtil/ProperContentIterator",759),H(1528,1527,{},GTt);var mhn;K(Ca,"EcoreValidator",1528);var bhn;$a(Ca,"FeatureMapUtil/Validator"),H(1295,1,{2041:1},q4t),E.am=function(i){return!0},K(Ca,"FeatureMapUtil/1",1295),H(773,1,{2041:1},YPe),E.am=function(i){var l;return this.c==i?!0:(l=Ht(br(this.a,i)),l==null?_Cr(this,i)?(VPt(this.a,i,(Qn(),HI)),!0):(VPt(this.a,i,(Qn(),a2)),!1):l==(Qn(),HI))},E.e=!1;var K2e;K(Ca,"FeatureMapUtil/BasicValidator",773),H(774,45,p5,x8e),K(Ca,"FeatureMapUtil/BasicValidator/Cache",774),H(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},DU),E.bd=function(i,l){DYt(this.c,this.b,i,l)},E.Fc=function(i){return bPe(this.c,this.b,i)},E.cd=function(i,l){return zkr(this.c,this.b,i,l)},E.Gc=function(i){return WL(this,i)},E.Gi=function(i,l){Pgr(this.c,this.b,i,l)},E.Wk=function(i,l){return cPe(this.c,this.b,i,l)},E.$i=function(i){return NJ(this.c,this.b,i,!1)},E.Ii=function(){return SIt(this.c,this.b)},E.Ji=function(){return osr(this.c,this.b)},E.Ki=function(i){return zpr(this.c,this.b,i)},E.Xk=function(i,l){return WNt(this,i,l)},E.$b=function(){JA(this)},E.Hc=function(i){return NQ(this.c,this.b,i)},E.Ic=function(i){return Umr(this.c,this.b,i)},E.Xb=function(i){return NJ(this.c,this.b,i,!0)},E.Fk=function(i){return this},E.dd=function(i){return W1r(this.c,this.b,i)},E.dc=function(){return mX(this)},E.Qj=function(){return!Qz(this.c,this.b)},E.Kc=function(){return Cgr(this.c,this.b)},E.ed=function(){return Agr(this.c,this.b)},E.fd=function(i){return ivr(this.c,this.b,i)},E.Ti=function(i,l){return Kjt(this.c,this.b,i,l)},E.Ui=function(i,l){Hpr(this.c,this.b,i,l)},E.gd=function(i){return AHt(this.c,this.b,i)},E.Mc=function(i){return GCr(this.c,this.b,i)},E.hd=function(i,l){return iWt(this.c,this.b,i,l)},E.Wb=function(i){dJ(this.c,this.b),WL(this,v(i,15))},E.gc=function(){return rvr(this.c,this.b)},E.Pc=function(){return X0r(this.c,this.b)},E.Qc=function(i){return K1r(this.c,this.b,i)},E.Ib=function(){var i,l;for(l=new qb,l.a+="[",i=SIt(this.c,this.b);b0e(i);)bl(l,XL(jZ(i))),b0e(i)&&(l.a+=Xo);return l.a+="]",l.a},E.Gk=function(){dJ(this.c,this.b)},K(Ca,"FeatureMapUtil/FeatureEList",509),H(644,39,oq,ffe),E.hj=function(i){return BD(this,i)},E.mj=function(i){var l,d,g,y,x,T,R;switch(this.d){case 1:case 2:{if(x=i.jj(),Ze(x)===Ze(this.c)&&BD(this,null)==i.hj(null))return this.g=i.ij(),i.gj()==1&&(this.d=1),!0;break}case 3:{switch(y=i.gj(),y){case 3:{if(x=i.jj(),Ze(x)===Ze(this.c)&&BD(this,null)==i.hj(null))return this.d=5,l=new PE(2),Yr(l,this.g),Yr(l,i.ij()),this.g=l,!0;break}}break}case 5:{switch(y=i.gj(),y){case 3:{if(x=i.jj(),Ze(x)===Ze(this.c)&&BD(this,null)==i.hj(null))return d=v(this.g,16),d.Fc(i.ij()),!0;break}}break}case 4:{switch(y=i.gj(),y){case 3:{if(x=i.jj(),Ze(x)===Ze(this.c)&&BD(this,null)==i.hj(null))return this.d=1,this.g=i.ij(),!0;break}case 4:{if(x=i.jj(),Ze(x)===Ze(this.c)&&BD(this,null)==i.hj(null))return this.d=6,R=new PE(2),Yr(R,this.n),Yr(R,i.kj()),this.n=R,T=Te(xe(Wr,1),vi,28,15,[this.o,i.lj()]),this.g=T,!0;break}}break}case 6:{switch(y=i.gj(),y){case 4:{if(x=i.jj(),Ze(x)===Ze(this.c)&&BD(this,null)==i.hj(null))return d=v(this.n,16),d.Fc(i.kj()),T=v(this.g,53),g=st(Wr,vi,28,T.length+1,15,1),Gc(T,0,g,0,T.length),g[T.length]=i.lj(),this.g=g,!0;break}}break}}return!1},K(Ca,"FeatureMapUtil/FeatureENotificationImpl",644),H(564,509,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},VX),E.Ol=function(i,l){return bPe(this.c,i,l)},E.Pl=function(i,l,d){return cPe(this.c,i,l,d)},E.Ql=function(i,l,d){return MPe(this.c,i,l,d)},E.Rl=function(){return this},E.Sl=function(i,l){return AG(this.c,i,l)},E.Tl=function(i){return v(NJ(this.c,this.b,i,!1),76).Lk()},E.Ul=function(i){return v(NJ(this.c,this.b,i,!1),76).md()},E.Vl=function(){return this.a},E.Wl=function(i){return!Qz(this.c,i)},E.Xl=function(i,l){OJ(this.c,i,l)},E.Yl=function(i){return x$t(this.c,i)},E.Zl=function(i){tqt(this.c,i)},K(Ca,"FeatureMapUtil/FeatureFeatureMap",564),H(1294,1,Wme,Q8t),E.Fk=function(i){return NJ(this.b,this.a,-1,i)},E.Qj=function(){return!Qz(this.b,this.a)},E.Wb=function(i){OJ(this.b,this.a,i)},E.Gk=function(){dJ(this.b,this.a)},K(Ca,"FeatureMapUtil/FeatureValue",1294);var M6,X2e,Q2e,P6,yhn,CH=$a(Vee,"AnyType");H(680,63,nb,Gue),K(Vee,"InvalidDatatypeValueException",680);var bre=$a(Vee,YJt),AH=$a(Vee,jJt),KKe=$a(Vee,WJt),vhn,Tc,XKe,_w,_hn,whn,Ehn,xhn,Shn,Thn,Chn,Ahn,khn,Rhn,Ihn,aC,Nhn,sC,tB,Ohn,Ox,kH,RH,Lhn,nB,rB;H(844,516,{110:1,94:1,93:1,58:1,54:1,99:1,857:1},Y7e),E.Lh=function(i,l,d){switch(i){case 0:return d?(!this.c&&(this.c=new Xa(this,0)),this.c):(!this.c&&(this.c=new Xa(this,0)),this.c.b);case 1:return d?(!this.c&&(this.c=new Xa(this,0)),v(Zc(this.c,(ca(),_w)),160)):(!this.c&&(this.c=new Xa(this,0)),v(v(Zc(this.c,(ca(),_w)),160),220)).Vl();case 2:return d?(!this.b&&(this.b=new Xa(this,2)),this.b):(!this.b&&(this.b=new Xa(this,2)),this.b.b)}return lf(this,i-kr(this.ii()),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():this.ii(),i),l,d)},E.Uh=function(i,l,d){var g;switch(l){case 0:return!this.c&&(this.c=new Xa(this,0)),xG(this.c,i,d);case 1:return(!this.c&&(this.c=new Xa(this,0)),v(v(Zc(this.c,(ca(),_w)),160),71)).Xk(i,d);case 2:return!this.b&&(this.b=new Xa(this,2)),xG(this.b,i,d)}return g=v(qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():this.ii(),l),69),g.wk().Ak(this,KOe(this),l-kr(this.ii()),i,d)},E.Wh=function(i){switch(i){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Xa(this,0)),v(Zc(this.c,(ca(),_w)),160)).dc();case 2:return!!this.b&&this.b.i!=0}return sf(this,i-kr(this.ii()),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():this.ii(),i))},E.bi=function(i,l){switch(i){case 0:!this.c&&(this.c=new Xa(this,0)),ez(this.c,l);return;case 1:(!this.c&&(this.c=new Xa(this,0)),v(v(Zc(this.c,(ca(),_w)),160),220)).Wb(l);return;case 2:!this.b&&(this.b=new Xa(this,2)),ez(this.b,l);return}df(this,i-kr(this.ii()),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():this.ii(),i),l)},E.ii=function(){return ca(),XKe},E.ki=function(i){switch(i){case 0:!this.c&&(this.c=new Xa(this,0)),Gr(this.c);return;case 1:(!this.c&&(this.c=new Xa(this,0)),v(Zc(this.c,(ca(),_w)),160)).$b();return;case 2:!this.b&&(this.b=new Xa(this,2)),Gr(this.b);return}hf(this,i-kr(this.ii()),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():this.ii(),i))},E.Ib=function(){var i;return this.j&4?T0(this):(i=new Ff(T0(this)),i.a+=" (mixed: ",HL(i,this.c),i.a+=", anyAttribute: ",HL(i,this.b),i.a+=")",i.a)},K(_s,"AnyTypeImpl",844),H(681,516,{110:1,94:1,93:1,58:1,54:1,99:1,2119:1,681:1},e3t),E.Lh=function(i,l,d){switch(i){case 0:return this.a;case 1:return this.b}return lf(this,i-kr((ca(),aC)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():aC,i),l,d)},E.Wh=function(i){switch(i){case 0:return this.a!=null;case 1:return this.b!=null}return sf(this,i-kr((ca(),aC)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():aC,i))},E.bi=function(i,l){switch(i){case 0:Krr(this,ai(l));return;case 1:Qrr(this,ai(l));return}df(this,i-kr((ca(),aC)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():aC,i),l)},E.ii=function(){return ca(),aC},E.ki=function(i){switch(i){case 0:this.a=null;return;case 1:this.b=null;return}hf(this,i-kr((ca(),aC)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():aC,i))},E.Ib=function(){var i;return this.j&4?T0(this):(i=new Ff(T0(this)),i.a+=" (data: ",bl(i,this.a),i.a+=", target: ",bl(i,this.b),i.a+=")",i.a)},E.a=null,E.b=null,K(_s,"ProcessingInstructionImpl",681),H(682,844,{110:1,94:1,93:1,58:1,54:1,99:1,857:1,2120:1,682:1},I6t),E.Lh=function(i,l,d){switch(i){case 0:return d?(!this.c&&(this.c=new Xa(this,0)),this.c):(!this.c&&(this.c=new Xa(this,0)),this.c.b);case 1:return d?(!this.c&&(this.c=new Xa(this,0)),v(Zc(this.c,(ca(),_w)),160)):(!this.c&&(this.c=new Xa(this,0)),v(v(Zc(this.c,(ca(),_w)),160),220)).Vl();case 2:return d?(!this.b&&(this.b=new Xa(this,2)),this.b):(!this.b&&(this.b=new Xa(this,2)),this.b.b);case 3:return!this.c&&(this.c=new Xa(this,0)),ai(AG(this.c,(ca(),tB),!0));case 4:return gIe(this.a,(!this.c&&(this.c=new Xa(this,0)),ai(AG(this.c,(ca(),tB),!0))));case 5:return this.a}return lf(this,i-kr((ca(),sC)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():sC,i),l,d)},E.Wh=function(i){switch(i){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Xa(this,0)),v(Zc(this.c,(ca(),_w)),160)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new Xa(this,0)),ai(AG(this.c,(ca(),tB),!0))!=null;case 4:return gIe(this.a,(!this.c&&(this.c=new Xa(this,0)),ai(AG(this.c,(ca(),tB),!0))))!=null;case 5:return!!this.a}return sf(this,i-kr((ca(),sC)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():sC,i))},E.bi=function(i,l){switch(i){case 0:!this.c&&(this.c=new Xa(this,0)),ez(this.c,l);return;case 1:(!this.c&&(this.c=new Xa(this,0)),v(v(Zc(this.c,(ca(),_w)),160),220)).Wb(l);return;case 2:!this.b&&(this.b=new Xa(this,2)),ez(this.b,l);return;case 3:rOe(this,ai(l));return;case 4:rOe(this,pIe(this.a,l));return;case 5:Xrr(this,v(l,156));return}df(this,i-kr((ca(),sC)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():sC,i),l)},E.ii=function(){return ca(),sC},E.ki=function(i){switch(i){case 0:!this.c&&(this.c=new Xa(this,0)),Gr(this.c);return;case 1:(!this.c&&(this.c=new Xa(this,0)),v(Zc(this.c,(ca(),_w)),160)).$b();return;case 2:!this.b&&(this.b=new Xa(this,2)),Gr(this.b);return;case 3:!this.c&&(this.c=new Xa(this,0)),OJ(this.c,(ca(),tB),null);return;case 4:rOe(this,pIe(this.a,null));return;case 5:this.a=null;return}hf(this,i-kr((ca(),sC)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():sC,i))},K(_s,"SimpleAnyTypeImpl",682),H(683,516,{110:1,94:1,93:1,58:1,54:1,99:1,2121:1,683:1},N6t),E.Lh=function(i,l,d){switch(i){case 0:return d?(!this.a&&(this.a=new Xa(this,0)),this.a):(!this.a&&(this.a=new Xa(this,0)),this.a.b);case 1:return d?(!this.b&&(this.b=new uh((Pn(),nl),_c,this,1)),this.b):(!this.b&&(this.b=new uh((Pn(),nl),_c,this,1)),yz(this.b));case 2:return d?(!this.c&&(this.c=new uh((Pn(),nl),_c,this,2)),this.c):(!this.c&&(this.c=new uh((Pn(),nl),_c,this,2)),yz(this.c));case 3:return!this.a&&(this.a=new Xa(this,0)),Zc(this.a,(ca(),kH));case 4:return!this.a&&(this.a=new Xa(this,0)),Zc(this.a,(ca(),RH));case 5:return!this.a&&(this.a=new Xa(this,0)),Zc(this.a,(ca(),nB));case 6:return!this.a&&(this.a=new Xa(this,0)),Zc(this.a,(ca(),rB))}return lf(this,i-kr((ca(),Ox)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():Ox,i),l,d)},E.Uh=function(i,l,d){var g;switch(l){case 0:return!this.a&&(this.a=new Xa(this,0)),xG(this.a,i,d);case 1:return!this.b&&(this.b=new uh((Pn(),nl),_c,this,1)),DX(this.b,i,d);case 2:return!this.c&&(this.c=new uh((Pn(),nl),_c,this,2)),DX(this.c,i,d);case 5:return!this.a&&(this.a=new Xa(this,0)),WNt(Zc(this.a,(ca(),nB)),i,d)}return g=v(qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():(ca(),Ox),l),69),g.wk().Ak(this,KOe(this),l-kr((ca(),Ox)),i,d)},E.Wh=function(i){switch(i){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 Xa(this,0)),!mX(Zc(this.a,(ca(),kH)));case 4:return!this.a&&(this.a=new Xa(this,0)),!mX(Zc(this.a,(ca(),RH)));case 5:return!this.a&&(this.a=new Xa(this,0)),!mX(Zc(this.a,(ca(),nB)));case 6:return!this.a&&(this.a=new Xa(this,0)),!mX(Zc(this.a,(ca(),rB)))}return sf(this,i-kr((ca(),Ox)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():Ox,i))},E.bi=function(i,l){switch(i){case 0:!this.a&&(this.a=new Xa(this,0)),ez(this.a,l);return;case 1:!this.b&&(this.b=new uh((Pn(),nl),_c,this,1)),mZ(this.b,l);return;case 2:!this.c&&(this.c=new uh((Pn(),nl),_c,this,2)),mZ(this.c,l);return;case 3:!this.a&&(this.a=new Xa(this,0)),JA(Zc(this.a,(ca(),kH))),!this.a&&(this.a=new Xa(this,0)),WL(Zc(this.a,kH),v(l,16));return;case 4:!this.a&&(this.a=new Xa(this,0)),JA(Zc(this.a,(ca(),RH))),!this.a&&(this.a=new Xa(this,0)),WL(Zc(this.a,RH),v(l,16));return;case 5:!this.a&&(this.a=new Xa(this,0)),JA(Zc(this.a,(ca(),nB))),!this.a&&(this.a=new Xa(this,0)),WL(Zc(this.a,nB),v(l,16));return;case 6:!this.a&&(this.a=new Xa(this,0)),JA(Zc(this.a,(ca(),rB))),!this.a&&(this.a=new Xa(this,0)),WL(Zc(this.a,rB),v(l,16));return}df(this,i-kr((ca(),Ox)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():Ox,i),l)},E.ii=function(){return ca(),Ox},E.ki=function(i){switch(i){case 0:!this.a&&(this.a=new Xa(this,0)),Gr(this.a);return;case 1:!this.b&&(this.b=new uh((Pn(),nl),_c,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new uh((Pn(),nl),_c,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new Xa(this,0)),JA(Zc(this.a,(ca(),kH)));return;case 4:!this.a&&(this.a=new Xa(this,0)),JA(Zc(this.a,(ca(),RH)));return;case 5:!this.a&&(this.a=new Xa(this,0)),JA(Zc(this.a,(ca(),nB)));return;case 6:!this.a&&(this.a=new Xa(this,0)),JA(Zc(this.a,(ca(),rB)));return}hf(this,i-kr((ca(),Ox)),qn(this.j&2?(!this.k&&(this.k=new t1),this.k).Nk():Ox,i))},E.Ib=function(){var i;return this.j&4?T0(this):(i=new Ff(T0(this)),i.a+=" (mixed: ",HL(i,this.a),i.a+=")",i.a)},K(_s,"XMLTypeDocumentRootImpl",683),H(2028,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1,2122:1},H4t),E.ri=function(i,l){switch(i.hk()){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 l==null?null:Kl(l);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return ai(l);case 6:return Dor(v(l,195));case 12:case 47:case 49:case 11:return VWt(this,i,l);case 13:return l==null?null:Hkr(v(l,247));case 15:case 14:return l==null?null:Xhr(We(at(l)));case 17:return Gqt((ca(),l));case 18:return Gqt(l);case 21:case 20:return l==null?null:Qhr(v(l,161).a);case 27:return Mor(v(l,195));case 30:return nqt((ca(),v(l,15)));case 31:return nqt(v(l,15));case 40:return Bor((ca(),l));case 42:return qqt((ca(),l));case 43:return qqt(l);case 59:case 48:return Por((ca(),l));default:throw _e(new ar(FI+i.xe()+lx))}},E.si=function(i){var l,d,g,y,x;switch(i.G==-1&&(i.G=(d=Cd(i),d?uy(d.vi(),i):-1)),i.G){case 0:return l=new Y7e,l;case 1:return g=new e3t,g;case 2:return y=new I6t,y;case 3:return x=new N6t,x;default:throw _e(new ar(Ome+i.zb+lx))}},E.ti=function(i,l){var d,g,y,x,T,R,O,D,q,J,re,ae,le,de,Se,Me;switch(i.hk()){case 5:case 52:case 4:return l;case 6:return q2r(l);case 8:case 7:return l==null?null:REr(l);case 9:return l==null?null:Cz(Nd((g=eu(l,!0),g.length>0&&(sr(0,g.length),g.charCodeAt(0)==43)?(sr(1,g.length+1),g.substr(1)):g),-128,127)<<24>>24);case 10:return l==null?null:Cz(Nd((y=eu(l,!0),y.length>0&&(sr(0,y.length),y.charCodeAt(0)==43)?(sr(1,y.length+1),y.substr(1)):y),-128,127)<<24>>24);case 11:return ai(ex(this,(ca(),Ehn),l));case 12:return ai(ex(this,(ca(),xhn),l));case 13:return l==null?null:new mRe(eu(l,!0));case 15:case 14:return Z3r(l);case 16:return ai(ex(this,(ca(),Shn),l));case 17:return iGt((ca(),l));case 18:return iGt(l);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return eu(l,!0);case 21:case 20:return lTr(l);case 22:return ai(ex(this,(ca(),Thn),l));case 23:return ai(ex(this,(ca(),Chn),l));case 24:return ai(ex(this,(ca(),Ahn),l));case 25:return ai(ex(this,(ca(),khn),l));case 26:return ai(ex(this,(ca(),Rhn),l));case 27:return N2r(l);case 30:return aGt((ca(),l));case 31:return aGt(l);case 32:return l==null?null:Nt(Nd((q=eu(l,!0),q.length>0&&(sr(0,q.length),q.charCodeAt(0)==43)?(sr(1,q.length+1),q.substr(1)):q),Po,qi));case 33:return l==null?null:new Ov((J=eu(l,!0),J.length>0&&(sr(0,J.length),J.charCodeAt(0)==43)?(sr(1,J.length+1),J.substr(1)):J));case 34:return l==null?null:Nt(Nd((re=eu(l,!0),re.length>0&&(sr(0,re.length),re.charCodeAt(0)==43)?(sr(1,re.length+1),re.substr(1)):re),Po,qi));case 36:return l==null?null:Zm(PJ((ae=eu(l,!0),ae.length>0&&(sr(0,ae.length),ae.charCodeAt(0)==43)?(sr(1,ae.length+1),ae.substr(1)):ae)));case 37:return l==null?null:Zm(PJ((le=eu(l,!0),le.length>0&&(sr(0,le.length),le.charCodeAt(0)==43)?(sr(1,le.length+1),le.substr(1)):le)));case 40:return k_r((ca(),l));case 42:return sGt((ca(),l));case 43:return sGt(l);case 44:return l==null?null:new Ov((de=eu(l,!0),de.length>0&&(sr(0,de.length),de.charCodeAt(0)==43)?(sr(1,de.length+1),de.substr(1)):de));case 45:return l==null?null:new Ov((Se=eu(l,!0),Se.length>0&&(sr(0,Se.length),Se.charCodeAt(0)==43)?(sr(1,Se.length+1),Se.substr(1)):Se));case 46:return eu(l,!1);case 47:return ai(ex(this,(ca(),Ihn),l));case 59:case 48:return A_r((ca(),l));case 49:return ai(ex(this,(ca(),Nhn),l));case 50:return l==null?null:V8(Nd((Me=eu(l,!0),Me.length>0&&(sr(0,Me.length),Me.charCodeAt(0)==43)?(sr(1,Me.length+1),Me.substr(1)):Me),zee,32767)<<16>>16);case 51:return l==null?null:V8(Nd((x=eu(l,!0),x.length>0&&(sr(0,x.length),x.charCodeAt(0)==43)?(sr(1,x.length+1),x.substr(1)):x),zee,32767)<<16>>16);case 53:return ai(ex(this,(ca(),Ohn),l));case 55:return l==null?null:V8(Nd((T=eu(l,!0),T.length>0&&(sr(0,T.length),T.charCodeAt(0)==43)?(sr(1,T.length+1),T.substr(1)):T),zee,32767)<<16>>16);case 56:return l==null?null:V8(Nd((R=eu(l,!0),R.length>0&&(sr(0,R.length),R.charCodeAt(0)==43)?(sr(1,R.length+1),R.substr(1)):R),zee,32767)<<16>>16);case 57:return l==null?null:Zm(PJ((O=eu(l,!0),O.length>0&&(sr(0,O.length),O.charCodeAt(0)==43)?(sr(1,O.length+1),O.substr(1)):O)));case 58:return l==null?null:Zm(PJ((D=eu(l,!0),D.length>0&&(sr(0,D.length),D.charCodeAt(0)==43)?(sr(1,D.length+1),D.substr(1)):D)));case 60:return l==null?null:Nt(Nd((d=eu(l,!0),d.length>0&&(sr(0,d.length),d.charCodeAt(0)==43)?(sr(1,d.length+1),d.substr(1)):d),Po,qi));case 61:return l==null?null:Nt(Nd(eu(l,!0),Po,qi));default:throw _e(new ar(FI+i.xe()+lx))}};var Dhn,QKe,Mhn,ZKe;K(_s,"XMLTypeFactoryImpl",2028),H(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},RLt),E.N=!1,E.O=!1;var Phn=!1;K(_s,"XMLTypePackageImpl",594),H(1961,1,{851:1},V4t),E.Kk=function(){return CPe(),Vhn},K(_s,"XMLTypePackageImpl/1",1961),H(1970,1,ki,Y4t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/10",1970),H(1971,1,ki,j4t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/11",1971),H(1972,1,ki,W4t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/12",1972),H(1973,1,ki,K4t),E.fk=function(i){return VS(i)},E.gk=function(i){return st(ws,kt,345,i,7,1)},K(_s,"XMLTypePackageImpl/13",1973),H(1974,1,ki,X4t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/14",1974),H(1975,1,ki,Q4t),E.fk=function(i){return $e(i,15)},E.gk=function(i){return st(_f,I4,15,i,0,1)},K(_s,"XMLTypePackageImpl/15",1975),H(1976,1,ki,Z4t),E.fk=function(i){return $e(i,15)},E.gk=function(i){return st(_f,I4,15,i,0,1)},K(_s,"XMLTypePackageImpl/16",1976),H(1977,1,ki,J4t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/17",1977),H(1978,1,ki,t3t),E.fk=function(i){return $e(i,161)},E.gk=function(i){return st(VI,kt,161,i,0,1)},K(_s,"XMLTypePackageImpl/18",1978),H(1979,1,ki,n3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/19",1979),H(1962,1,ki,r3t),E.fk=function(i){return $e(i,857)},E.gk=function(i){return st(CH,Yn,857,i,0,1)},K(_s,"XMLTypePackageImpl/2",1962),H(1980,1,ki,i3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/20",1980),H(1981,1,ki,a3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/21",1981),H(1982,1,ki,s3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/22",1982),H(1983,1,ki,o3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/23",1983),H(1984,1,ki,l3t),E.fk=function(i){return $e(i,195)},E.gk=function(i){return st(bh,kt,195,i,0,2)},K(_s,"XMLTypePackageImpl/24",1984),H(1985,1,ki,c3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/25",1985),H(1986,1,ki,u3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/26",1986),H(1987,1,ki,h3t),E.fk=function(i){return $e(i,15)},E.gk=function(i){return st(_f,I4,15,i,0,1)},K(_s,"XMLTypePackageImpl/27",1987),H(1988,1,ki,d3t),E.fk=function(i){return $e(i,15)},E.gk=function(i){return st(_f,I4,15,i,0,1)},K(_s,"XMLTypePackageImpl/28",1988),H(1989,1,ki,f3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/29",1989),H(1963,1,ki,p3t),E.fk=function(i){return $e(i,681)},E.gk=function(i){return st(bre,Yn,2119,i,0,1)},K(_s,"XMLTypePackageImpl/3",1963),H(1990,1,ki,g3t),E.fk=function(i){return $e(i,17)},E.gk=function(i){return st(Ao,kt,17,i,0,1)},K(_s,"XMLTypePackageImpl/30",1990),H(1991,1,ki,m3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/31",1991),H(1992,1,ki,b3t),E.fk=function(i){return $e(i,168)},E.gk=function(i){return st(ux,kt,168,i,0,1)},K(_s,"XMLTypePackageImpl/32",1992),H(1993,1,ki,y3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/33",1993),H(1994,1,ki,v3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/34",1994),H(1995,1,ki,_3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/35",1995),H(1996,1,ki,w3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/36",1996),H(1997,1,ki,E3t),E.fk=function(i){return $e(i,15)},E.gk=function(i){return st(_f,I4,15,i,0,1)},K(_s,"XMLTypePackageImpl/37",1997),H(1998,1,ki,x3t),E.fk=function(i){return $e(i,15)},E.gk=function(i){return st(_f,I4,15,i,0,1)},K(_s,"XMLTypePackageImpl/38",1998),H(1999,1,ki,S3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/39",1999),H(1964,1,ki,T3t),E.fk=function(i){return $e(i,682)},E.gk=function(i){return st(AH,Yn,2120,i,0,1)},K(_s,"XMLTypePackageImpl/4",1964),H(2e3,1,ki,C3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/40",2e3),H(2001,1,ki,A3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/41",2001),H(2002,1,ki,k3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/42",2002),H(2003,1,ki,R3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/43",2003),H(2004,1,ki,I3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/44",2004),H(2005,1,ki,N3t),E.fk=function(i){return $e(i,191)},E.gk=function(i){return st(hx,kt,191,i,0,1)},K(_s,"XMLTypePackageImpl/45",2005),H(2006,1,ki,O3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/46",2006),H(2007,1,ki,L3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/47",2007),H(2008,1,ki,D3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/48",2008),H(2009,1,ki,M3t),E.fk=function(i){return $e(i,191)},E.gk=function(i){return st(hx,kt,191,i,0,1)},K(_s,"XMLTypePackageImpl/49",2009),H(1965,1,ki,P3t),E.fk=function(i){return $e(i,683)},E.gk=function(i){return st(KKe,Yn,2121,i,0,1)},K(_s,"XMLTypePackageImpl/5",1965),H(2010,1,ki,B3t),E.fk=function(i){return $e(i,168)},E.gk=function(i){return st(ux,kt,168,i,0,1)},K(_s,"XMLTypePackageImpl/50",2010),H(2011,1,ki,F3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/51",2011),H(2012,1,ki,$3t),E.fk=function(i){return $e(i,17)},E.gk=function(i){return st(Ao,kt,17,i,0,1)},K(_s,"XMLTypePackageImpl/52",2012),H(1966,1,ki,U3t),E.fk=function(i){return ro(i)},E.gk=function(i){return st(Xt,kt,2,i,6,1)},K(_s,"XMLTypePackageImpl/6",1966),H(1967,1,ki,z3t),E.fk=function(i){return $e(i,195)},E.gk=function(i){return st(bh,kt,195,i,0,2)},K(_s,"XMLTypePackageImpl/7",1967),H(1968,1,ki,G3t),E.fk=function(i){return HS(i)},E.gk=function(i){return st(rs,kt,485,i,8,1)},K(_s,"XMLTypePackageImpl/8",1968),H(1969,1,ki,q3t),E.fk=function(i){return $e(i,222)},E.gk=function(i){return st(d6,kt,222,i,0,1)},K(_s,"XMLTypePackageImpl/9",1969);var fp,Oy,iB,yre,Ne;H(55,63,nb,oi),K(yy,"RegEx/ParseException",55),H(836,1,{},j6e),E.bm=function(i){return id*16)throw _e(new oi(fi((ii(),aJt))));d=d*16+y}while(!0);if(this.a!=125)throw _e(new oi(fi((ii(),sJt))));if(d>GI)throw _e(new oi(fi((ii(),oJt))));i=d}else{if(y=0,this.c!=0||(y=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));if(d=y,$i(this),this.c!=0||(y=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));d=d*16+y,i=d}break;case 117:if(g=0,$i(this),this.c!=0||(g=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));if(l=g,$i(this),this.c!=0||(g=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));if(l=l*16+g,$i(this),this.c!=0||(g=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));if(l=l*16+g,$i(this),this.c!=0||(g=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));l=l*16+g,i=l;break;case 118:if($i(this),this.c!=0||(g=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));if(l=g,$i(this),this.c!=0||(g=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));if(l=l*16+g,$i(this),this.c!=0||(g=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));if(l=l*16+g,$i(this),this.c!=0||(g=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));if(l=l*16+g,$i(this),this.c!=0||(g=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));if(l=l*16+g,$i(this),this.c!=0||(g=G_(this.a))<0)throw _e(new oi(fi((ii(),by))));if(l=l*16+g,l>GI)throw _e(new oi(fi((ii(),"parser.descappe.4"))));i=l;break;case 65:case 90:case 122:throw _e(new oi(fi((ii(),lJt))))}return i},E.dm=function(i){var l,d;switch(i){case 100:d=(this.e&32)==32?Qv("Nd",!0):(zi(),vre);break;case 68:d=(this.e&32)==32?Qv("Nd",!1):(zi(),iXe);break;case 119:d=(this.e&32)==32?Qv("IsWord",!0):(zi(),RN);break;case 87:d=(this.e&32)==32?Qv("IsWord",!1):(zi(),sXe);break;case 115:d=(this.e&32)==32?Qv("IsSpace",!0):(zi(),B6);break;case 83:d=(this.e&32)==32?Qv("IsSpace",!1):(zi(),aXe);break;default:throw _e(new tc((l=i,len+l.toString(16))))}return d},E.em=function(i){var l,d,g,y,x,T,R,O,D,q,J,re;for(this.b=1,$i(this),l=null,this.c==0&&this.a==94?($i(this),i?q=(zi(),zi(),new Td(5)):(l=(zi(),zi(),new Td(4)),Jc(l,0,GI),q=new Td(4))):q=(zi(),zi(),new Td(4)),y=!0;(re=this.c)!=1&&!(re==0&&this.a==93&&!y);){if(y=!1,d=this.a,g=!1,re==10)switch(d){case 100:case 68:case 119:case 87:case 115:case 83:C4(q,this.dm(d)),g=!0;break;case 105:case 73:case 99:case 67:d=this.um(q,d),d<0&&(g=!0);break;case 112:case 80:if(J=SMe(this,d),!J)throw _e(new oi(fi((ii(),Vme))));C4(q,J),g=!0;break;default:d=this.cm()}else if(re==20){if(T=ZR(this.i,58,this.d),T<0)throw _e(new oi(fi((ii(),AUe))));if(R=!0,Do(this.i,this.d)==94&&(++this.d,R=!1),x=af(this.i,this.d,T),O=DBt(x,R,(this.e&512)==512),!O)throw _e(new oi(fi((ii(),eJt))));if(C4(q,O),g=!0,T+1>=this.j||Do(this.i,T+1)!=93)throw _e(new oi(fi((ii(),AUe))));this.d=T+2}if($i(this),!g)if(this.c!=0||this.a!=45)Jc(q,d,d);else{if($i(this),(re=this.c)==1)throw _e(new oi(fi((ii(),Dee))));re==0&&this.a==93?(Jc(q,d,d),Jc(q,45,45)):(D=this.a,re==10&&(D=this.cm()),$i(this),Jc(q,d,D))}(this.e&k0)==k0&&this.c==0&&this.a==44&&$i(this)}if(this.c==1)throw _e(new oi(fi((ii(),Dee))));return l&&(gM(l,q),q=l),a5(q),fM(q),this.b=0,$i(this),q},E.fm=function(){var i,l,d,g;for(d=this.em(!1);(g=this.c)!=7;)if(i=this.a,g==0&&(i==45||i==38)||g==4){if($i(this),this.c!=9)throw _e(new oi(fi((ii(),nJt))));if(l=this.em(!1),g==4)C4(d,l);else if(i==45)gM(d,l);else if(i==38)zWt(d,l);else throw _e(new tc("ASSERT"))}else throw _e(new oi(fi((ii(),rJt))));return $i(this),d},E.gm=function(){var i,l;return i=this.a-48,l=(zi(),zi(),new Zde(12,null,i)),!this.g&&(this.g=new kK),AK(this.g,new k7e(i)),$i(this),l},E.hm=function(){return $i(this),zi(),$hn},E.im=function(){return $i(this),zi(),Fhn},E.jm=function(){throw _e(new oi(fi((ii(),vf))))},E.km=function(){throw _e(new oi(fi((ii(),vf))))},E.lm=function(){return $i(this),Ybr()},E.mm=function(){return $i(this),zi(),zhn},E.nm=function(){return $i(this),zi(),qhn},E.om=function(){var i;if(this.d>=this.j||((i=Do(this.i,this.d++))&65504)!=64)throw _e(new oi(fi((ii(),QZt))));return $i(this),zi(),zi(),new Fg(0,i-64)},E.pm=function(){return $i(this),KAr()},E.qm=function(){return $i(this),zi(),Hhn},E.rm=function(){var i;return i=(zi(),zi(),new Fg(0,105)),$i(this),i},E.sm=function(){return $i(this),zi(),Ghn},E.tm=function(){return $i(this),zi(),Uhn},E.um=function(i,l){return this.cm()},E.vm=function(){return $i(this),zi(),nXe},E.wm=function(){var i,l,d,g,y;if(this.d+1>=this.j)throw _e(new oi(fi((ii(),WZt))));if(g=-1,l=null,i=Do(this.i,this.d),49<=i&&i<=57){if(g=i-48,!this.g&&(this.g=new kK),AK(this.g,new k7e(g)),++this.d,Do(this.i,this.d)!=41)throw _e(new oi(fi((ii(),tw))));++this.d}else switch(i==63&&--this.d,$i(this),l=QPe(this),l.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw _e(new oi(fi((ii(),tw))));break;default:throw _e(new oi(fi((ii(),KZt))))}if($i(this),y=YE(this),d=null,y.e==2){if(y.Pm()!=2)throw _e(new oi(fi((ii(),XZt))));d=y.Lm(1),y=y.Lm(0)}if(this.c!=7)throw _e(new oi(fi((ii(),tw))));return $i(this),zi(),zi(),new gFt(g,l,y,d)},E.xm=function(){return $i(this),zi(),rXe},E.ym=function(){var i;if($i(this),i=aQ(24,YE(this)),this.c!=7)throw _e(new oi(fi((ii(),tw))));return $i(this),i},E.zm=function(){var i;if($i(this),i=aQ(20,YE(this)),this.c!=7)throw _e(new oi(fi((ii(),tw))));return $i(this),i},E.Am=function(){var i;if($i(this),i=aQ(22,YE(this)),this.c!=7)throw _e(new oi(fi((ii(),tw))));return $i(this),i},E.Bm=function(){var i,l,d,g,y;for(i=0,d=0,l=-1;this.d=this.j)throw _e(new oi(fi((ii(),TUe))));if(l==45){for(++this.d;this.d=this.j)throw _e(new oi(fi((ii(),TUe))))}if(l==58){if(++this.d,$i(this),g=uLt(YE(this),i,d),this.c!=7)throw _e(new oi(fi((ii(),tw))));$i(this)}else if(l==41)++this.d,$i(this),g=uLt(YE(this),i,d);else throw _e(new oi(fi((ii(),jZt))));return g},E.Cm=function(){var i;if($i(this),i=aQ(21,YE(this)),this.c!=7)throw _e(new oi(fi((ii(),tw))));return $i(this),i},E.Dm=function(){var i;if($i(this),i=aQ(23,YE(this)),this.c!=7)throw _e(new oi(fi((ii(),tw))));return $i(this),i},E.Em=function(){var i,l;if($i(this),i=this.f++,l=Cde(YE(this),i),this.c!=7)throw _e(new oi(fi((ii(),tw))));return $i(this),l},E.Fm=function(){var i;if($i(this),i=Cde(YE(this),0),this.c!=7)throw _e(new oi(fi((ii(),tw))));return $i(this),i},E.Gm=function(i){return $i(this),this.c==5?($i(this),XX(i,(zi(),zi(),new r4(9,i)))):XX(i,(zi(),zi(),new r4(3,i)))},E.Hm=function(i){var l;return $i(this),l=(zi(),zi(),new jL(2)),this.c==5?($i(this),V_(l,sB),V_(l,i)):(V_(l,i),V_(l,sB)),l},E.Im=function(i){return $i(this),this.c==5?($i(this),zi(),zi(),new r4(9,i)):(zi(),zi(),new r4(3,i))},E.a=0,E.b=0,E.c=0,E.d=0,E.e=0,E.f=1,E.g=null,E.j=0,K(yy,"RegEx/RegexParser",836),H(1947,836,{},O6t),E.bm=function(i){return!1},E.cm=function(){return aPe(this)},E.dm=function(i){return fI(i)},E.em=function(i){return PKt(this)},E.fm=function(){throw _e(new oi(fi((ii(),vf))))},E.gm=function(){throw _e(new oi(fi((ii(),vf))))},E.hm=function(){throw _e(new oi(fi((ii(),vf))))},E.im=function(){throw _e(new oi(fi((ii(),vf))))},E.jm=function(){return $i(this),fI(67)},E.km=function(){return $i(this),fI(73)},E.lm=function(){throw _e(new oi(fi((ii(),vf))))},E.mm=function(){throw _e(new oi(fi((ii(),vf))))},E.nm=function(){throw _e(new oi(fi((ii(),vf))))},E.om=function(){return $i(this),fI(99)},E.pm=function(){throw _e(new oi(fi((ii(),vf))))},E.qm=function(){throw _e(new oi(fi((ii(),vf))))},E.rm=function(){return $i(this),fI(105)},E.sm=function(){throw _e(new oi(fi((ii(),vf))))},E.tm=function(){throw _e(new oi(fi((ii(),vf))))},E.um=function(i,l){return C4(i,fI(l)),-1},E.vm=function(){return $i(this),zi(),zi(),new Fg(0,94)},E.wm=function(){throw _e(new oi(fi((ii(),vf))))},E.xm=function(){return $i(this),zi(),zi(),new Fg(0,36)},E.ym=function(){throw _e(new oi(fi((ii(),vf))))},E.zm=function(){throw _e(new oi(fi((ii(),vf))))},E.Am=function(){throw _e(new oi(fi((ii(),vf))))},E.Bm=function(){throw _e(new oi(fi((ii(),vf))))},E.Cm=function(){throw _e(new oi(fi((ii(),vf))))},E.Dm=function(){throw _e(new oi(fi((ii(),vf))))},E.Em=function(){var i;if($i(this),i=Cde(YE(this),0),this.c!=7)throw _e(new oi(fi((ii(),tw))));return $i(this),i},E.Fm=function(){throw _e(new oi(fi((ii(),vf))))},E.Gm=function(i){return $i(this),XX(i,(zi(),zi(),new r4(3,i)))},E.Hm=function(i){var l;return $i(this),l=(zi(),zi(),new jL(2)),V_(l,i),V_(l,sB),l},E.Im=function(i){return $i(this),zi(),zi(),new r4(3,i)};var oC=null,AN=null;K(yy,"RegEx/ParserForXMLSchema",1947),H(122,1,qI,rE),E.Jm=function(i){throw _e(new tc("Not supported."))},E.Km=function(){return-1},E.Lm=function(i){return null},E.Mm=function(){return null},E.Nm=function(i){},E.Om=function(i){},E.Pm=function(){return 0},E.Ib=function(){return this.Qm(0)},E.Qm=function(i){return this.e==11?".":""},E.e=0;var JKe,kN,aB,Bhn,eXe,p3=null,vre,Z2e=null,tXe,sB,J2e=null,nXe,rXe,iXe,aXe,sXe,Fhn,B6,$hn,Uhn,zhn,Ghn,RN,qhn,Hhn,aIr=K(yy,"RegEx/Token",122);H(138,122,{3:1,138:1,122:1},Td),E.Qm=function(i){var l,d,g;if(this.e==4)if(this==tXe)d=".";else if(this==vre)d="\\d";else if(this==RN)d="\\w";else if(this==B6)d="\\s";else{for(g=new qb,g.a+="[",l=0;l0&&(g.a+=","),this.b[l]===this.b[l+1]?bl(g,CG(this.b[l])):(bl(g,CG(this.b[l])),g.a+="-",bl(g,CG(this.b[l+1])));g.a+="]",d=g.a}else if(this==iXe)d="\\D";else if(this==sXe)d="\\W";else if(this==aXe)d="\\S";else{for(g=new qb,g.a+="[^",l=0;l0&&(g.a+=","),this.b[l]===this.b[l+1]?bl(g,CG(this.b[l])):(bl(g,CG(this.b[l])),g.a+="-",bl(g,CG(this.b[l+1])));g.a+="]",d=g.a}return d},E.a=!1,E.c=!1,K(yy,"RegEx/RangeToken",138),H(592,1,{592:1},k7e),E.a=0,K(yy,"RegEx/RegexParser/ReferencePosition",592),H(591,1,{3:1,591:1},j7t),E.Fb=function(i){var l;return i==null||!$e(i,591)?!1:(l=v(i,591),An(this.b,l.b)&&this.a==l.a)},E.Hb=function(){return ry(this.b+"/"+ZMe(this.a))},E.Ib=function(){return this.c.Qm(this.a)},E.a=0,K(yy,"RegEx/RegularExpression",591),H(228,122,qI,Fg),E.Km=function(){return this.a},E.Qm=function(i){var l,d,g;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:g="\\"+tde(this.a&vs);break;case 12:g="\\f";break;case 10:g="\\n";break;case 13:g="\\r";break;case 9:g="\\t";break;case 27:g="\\e";break;default:this.a>=el?(d=(l=this.a>>>0,"0"+l.toString(16)),g="\\v"+af(d,d.length-6,d.length)):g=""+tde(this.a&vs)}break;case 8:this==nXe||this==rXe?g=""+tde(this.a&vs):g="\\"+tde(this.a&vs);break;default:g=null}return g},E.a=0,K(yy,"RegEx/Token/CharToken",228),H(318,122,qI,r4),E.Lm=function(i){return this.a},E.Nm=function(i){this.b=i},E.Om=function(i){this.c=i},E.Pm=function(){return 1},E.Qm=function(i){var l;if(this.e==3)if(this.c<0&&this.b<0)l=this.a.Qm(i)+"*";else if(this.c==this.b)l=this.a.Qm(i)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)l=this.a.Qm(i)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)l=this.a.Qm(i)+"{"+this.c+",}";else throw _e(new tc("Token#toString(): CLOSURE "+this.c+Xo+this.b));else if(this.c<0&&this.b<0)l=this.a.Qm(i)+"*?";else if(this.c==this.b)l=this.a.Qm(i)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)l=this.a.Qm(i)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)l=this.a.Qm(i)+"{"+this.c+",}?";else throw _e(new tc("Token#toString(): NONGREEDYCLOSURE "+this.c+Xo+this.b));return l},E.b=0,E.c=0,K(yy,"RegEx/Token/ClosureToken",318),H(837,122,qI,bNe),E.Lm=function(i){return i==0?this.a:this.b},E.Pm=function(){return 2},E.Qm=function(i){var l;return this.b.e==3&&this.b.Lm(0)==this.a?l=this.a.Qm(i)+"+":this.b.e==9&&this.b.Lm(0)==this.a?l=this.a.Qm(i)+"+?":l=this.a.Qm(i)+(""+this.b.Qm(i)),l},K(yy,"RegEx/Token/ConcatToken",837),H(1945,122,qI,gFt),E.Lm=function(i){if(i==0)return this.d;if(i==1)return this.b;throw _e(new tc("Internal Error: "+i))},E.Pm=function(){return this.b?2:1},E.Qm=function(i){var l;return this.c>0?l="(?("+this.c+")":this.a.e==8?l="(?("+this.a+")":l="(?"+this.a,this.b?l+=this.d+"|"+this.b+")":l+=this.d+")",l},E.c=0,K(yy,"RegEx/Token/ConditionToken",1945),H(1946,122,qI,aMt),E.Lm=function(i){return this.b},E.Pm=function(){return 1},E.Qm=function(i){return"(?"+(this.a==0?"":ZMe(this.a))+(this.c==0?"":ZMe(this.c))+":"+this.b.Qm(i)+")"},E.a=0,E.c=0,K(yy,"RegEx/Token/ModifierToken",1946),H(838,122,qI,ANe),E.Lm=function(i){return this.a},E.Pm=function(){return 1},E.Qm=function(i){var l;switch(l=null,this.e){case 6:this.b==0?l="(?:"+this.a.Qm(i)+")":l="("+this.a.Qm(i)+")";break;case 20:l="(?="+this.a.Qm(i)+")";break;case 21:l="(?!"+this.a.Qm(i)+")";break;case 22:l="(?<="+this.a.Qm(i)+")";break;case 23:l="(?"+this.a.Qm(i)+")"}return l},E.b=0,K(yy,"RegEx/Token/ParenToken",838),H(530,122,{3:1,122:1,530:1},Zde),E.Mm=function(){return this.b},E.Qm=function(i){return this.e==12?"\\"+this.a:z3r(this.b)},E.a=0,K(yy,"RegEx/Token/StringToken",530),H(477,122,qI,jL),E.Jm=function(i){V_(this,i)},E.Lm=function(i){return v(kE(this.a,i),122)},E.Pm=function(){return this.a?this.a.a.c.length:0},E.Qm=function(i){var l,d,g,y,x;if(this.e==1){if(this.a.a.c.length==2)l=v(kE(this.a,0),122),d=v(kE(this.a,1),122),d.e==3&&d.Lm(0)==l?y=l.Qm(i)+"+":d.e==9&&d.Lm(0)==l?y=l.Qm(i)+"+?":y=l.Qm(i)+(""+d.Qm(i));else{for(x=new qb,g=0;g=this.c.b:this.a<=this.c.b},E.Sb=function(){return this.b>0},E.Tb=function(){return this.b},E.Vb=function(){return this.b-1},E.Qb=function(){throw _e(new zb(gen))},E.a=0,E.b=0,K(YUe,"ExclusiveRange/RangeIterator",258);var Tf=u8(Mee,"C"),Wr=u8(GM,"I"),Wh=u8(Zk,"Z"),C2=u8(qM,"J"),bh=u8($M,"B"),ao=u8(UM,"D"),g3=u8(zM,"F"),lC=u8(HM,"S"),sIr=$a("org.eclipse.elk.core.labels","ILabelManager"),oXe=$a(Qo,"DiagnosticChain"),lXe=$a(qJt,"ResourceSet"),cXe=K(Qo,"InvocationTargetException",null),Yhn=(OK(),_pr),jhn=jhn=hEr;fmr(oir),cmr("permProps",[[["locale","default"],[men,"gecko1_8"]],[["locale","default"],[men,"safari"]]]),jhn(null,"elk",null)}).call(this)}).call(this,typeof ml<"u"?ml:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(r,a,s){function o(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}function u(m,b){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:m}function h(m,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);m.prototype=Object.create(b&&b.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(m,b):m.__proto__=b)}var f=r("./elk-api.js?v=1775123024591").default,p=function(m){h(b,m);function b(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};o(this,b);var w=Object.assign({},_),S=!1;try{r.resolve("web-worker"),S=!0}catch{}if(_.workerUrl)if(S){var C=r("web-worker");w.workerFactory=function(I){return new C(I)}}else console.warn(`Web worker requested but 'web-worker' package not installed. Consider installing the package or pass your own 'workerFactory' to ELK's constructor. ... Falling back to non-web worker version.`);if(!w.workerFactory){var A=r("./elk-worker.min.js?v=1775123024591"),k=A.Worker;w.workerFactory=function(I){return new k(I)}}return u(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,w))}return b}(f);Object.defineProperty(a.exports,"__esModule",{value:!0}),a.exports=p,p.default=p},{"./elk-api.js?v=1775123024591":1,"./elk-worker.min.js?v=1775123024591":2,"web-worker":4}],4:[function(r,a,s){a.exports=Worker},{}]},{},[3])(3)})})(Bnr);var xwa=Bnr.exports;const Swa=O1(xwa),Twa=(e,t,r)=>{const{parentById:a}=r,s=new Set;let o=e;for(;o;){if(s.add(o),o===t)return o;o=a[o]}for(o=t;o;){if(s.has(o))return o;o=a[o]}return"root"},eAn=new Swa;let Hx={};const Cwa={};let Y7={};const Awa=async function(e,t,r,a,s,o,u){const f=r.select(`[id="${t}"]`).insert("g").attr("class","nodes"),p=Object.keys(e);return await Promise.all(p.map(async function(m){const b=e[m];let _="default";b.classes.length>0&&(_=b.classes.join(" ")),_=_+" flowchart-label";const w=Hw(b.styles);let S=b.text!==void 0?b.text:b.id;const C={width:0,height:0},A=[{id:b.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:b.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:b.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:b.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let k=0,I="",N={};switch(b.type){case"round":k=5,I="rect";break;case"square":I="rect";break;case"diamond":I="question",N={portConstraints:"FIXED_SIDE"};break;case"hexagon":I="hexagon";break;case"odd":I="rect_left_inv_arrow";break;case"lean_right":I="lean_right";break;case"lean_left":I="lean_left";break;case"trapezoid":I="trapezoid";break;case"inv_trapezoid":I="inv_trapezoid";break;case"odd_right":I="rect_left_inv_arrow";break;case"circle":I="circle";break;case"ellipse":I="ellipse";break;case"stadium":I="stadium";break;case"subroutine":I="subroutine";break;case"cylinder":I="cylinder";break;case"group":I="rect";break;case"doublecircle":I="doublecircle";break;default:I="rect"}const L={labelStyle:w.labelStyle,shape:I,labelText:S,labelType:b.labelType,rx:k,ry:k,class:_,style:w.style,id:b.id,link:b.link,linkTarget:b.linkTarget,tooltip:s.db.getTooltip(b.id)||"",domId:s.db.lookUpDomId(b.id),haveCallback:b.haveCallback,width:b.type==="group"?500:void 0,dir:b.dir,type:b.type,props:b.props,padding:Lf().flowchart.padding};let P,M;if(L.type!=="group")M=await _6e(f,L,b.dir),P=M.node().getBBox();else{a.createElementNS("http://www.w3.org/2000/svg","text");const{shapeSvg:U,bbox:$}=await Up(f,L,void 0,!0);C.width=$.width,C.wrappingWidth=Lf().flowchart.wrappingWidth,C.height=$.height,C.labelNode=U.node(),L.labelData=C}const F={id:b.id,ports:b.type==="diamond"?A:[],layoutOptions:N,labelText:S,labelData:C,domId:s.db.lookUpDomId(b.id),width:P==null?void 0:P.width,height:P==null?void 0:P.height,type:b.type,el:M,parent:o.parentById[b.id]};Y7[L.id]=F})),u},tAn=(e,t,r)=>{const a={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return a.TD=a.TB,a[r][t][e]},nAn=(e,t,r)=>{if(ut.info("getNextPort",{node:e,edgeDirection:t,graphDirection:r}),!Hx[e])switch(r){case"TB":case"TD":Hx[e]={inPosition:"north",outPosition:"south"};break;case"BT":Hx[e]={inPosition:"south",outPosition:"north"};break;case"RL":Hx[e]={inPosition:"east",outPosition:"west"};break;case"LR":Hx[e]={inPosition:"west",outPosition:"east"};break}const a=t==="in"?Hx[e].inPosition:Hx[e].outPosition;return t==="in"?Hx[e].inPosition=tAn(Hx[e].inPosition,t,r):Hx[e].outPosition=tAn(Hx[e].outPosition,t,r),a},kwa=(e,t)=>{let r=e.start,a=e.end;const s=r,o=a,u=Y7[r],h=Y7[a];return!u||!h?{source:r,target:a}:(u.type==="diamond"&&(r=`${r}-${nAn(r,"out",t)}`),h.type==="diamond"&&(a=`${a}-${nAn(a,"in",t)}`),{source:r,target:a,sourceId:s,targetId:o})},Rwa=function(e,t,r,a){ut.info("abc78 edges = ",e);const s=a.insert("g").attr("class","edgeLabels");let o={},u=t.db.getDirection(),h,f;if(e.defaultStyle!==void 0){const p=Hw(e.defaultStyle);h=p.style,f=p.labelStyle}return e.forEach(function(p){const m="L-"+p.start+"-"+p.end;o[m]===void 0?(o[m]=0,ut.info("abc78 new entry",m,o[m])):(o[m]++,ut.info("abc78 new entry",m,o[m]));let b=m+"-"+o[m];ut.info("abc78 new link id to be used is",m,b,o[m]);const _="LS-"+p.start,w="LE-"+p.end,S={style:"",labelStyle:""};switch(S.minlen=p.length||1,p.type==="arrow_open"?S.arrowhead="none":S.arrowhead="normal",S.arrowTypeStart="arrow_open",S.arrowTypeEnd="arrow_open",p.type){case"double_arrow_cross":S.arrowTypeStart="arrow_cross";case"arrow_cross":S.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":S.arrowTypeStart="arrow_point";case"arrow_point":S.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":S.arrowTypeStart="arrow_circle";case"arrow_circle":S.arrowTypeEnd="arrow_circle";break}let C="",A="";switch(p.stroke){case"normal":C="fill:none;",h!==void 0&&(C=h),f!==void 0&&(A=f),S.thickness="normal",S.pattern="solid";break;case"dotted":S.thickness="normal",S.pattern="dotted",S.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":S.thickness="thick",S.pattern="solid",S.style="stroke-width: 3.5px;fill:none;";break}if(p.style!==void 0){const M=Hw(p.style);C=M.style,A=M.labelStyle}S.style=S.style+=C,S.labelStyle=S.labelStyle+=A,p.interpolate!==void 0?S.curve=fS(p.interpolate,Cg):e.defaultInterpolate!==void 0?S.curve=fS(e.defaultInterpolate,Cg):S.curve=fS(Cwa.curve,Cg),p.text===void 0?p.style!==void 0&&(S.arrowheadStyle="fill: #333"):(S.arrowheadStyle="fill: #333",S.labelpos="c"),S.labelType=p.labelType,S.label=p.text.replace(mi.lineBreakRegex,` `),p.style===void 0&&(S.style=S.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),S.labelStyle=S.labelStyle.replace("color:","fill:"),S.id=b,S.classes="flowchart-link "+_+" "+w;const k=Kbt(s,S),{source:I,target:N,sourceId:L,targetId:P}=kwa(p,u);ut.debug("abc78 source and target",I,N),r.edges.push({id:"e"+p.start+p.end,sources:[I],targets:[N],sourceId:L,targetId:P,labelEl:k,labels:[{width:S.width,height:S.height,orgWidth:S.width,orgHeight:S.height,text:S.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:S})}),r},Iwa=function(e,t,r,a,s){let o="";a&&(o=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,o=o.replace(/\(/g,"\\("),o=o.replace(/\)/g,"\\)")),$er(e,t,o,s,r)},Nwa=function(e,t){return ut.info("Extracting classes"),t.db.getClasses()},Owa=function(e){const t={parentById:{},childrenById:{}},r=e.getSubGraphs();return ut.info("Subgraphs - ",r),r.forEach(function(a){a.nodes.forEach(function(s){t.parentById[s]=a.id,t.childrenById[a.id]===void 0&&(t.childrenById[a.id]=[]),t.childrenById[a.id].push(s)})}),r.forEach(function(a){a.id,t.parentById[a.id]!==void 0&&t.parentById[a.id]}),t},Lwa=function(e,t,r){const a=Twa(e,t,r);if(a===void 0||a==="root")return{x:0,y:0};const s=Y7[a].offset;return{x:s.posX,y:s.posY}},Dwa=function(e,t,r,a,s,o){const u=Lwa(t.sourceId,t.targetId,s),h=t.sections[0].startPoint,f=t.sections[0].endPoint,m=(t.sections[0].bendPoints?t.sections[0].bendPoints:[]).map(N=>[N.x+u.x,N.y+u.y]),b=[[h.x+u.x,h.y+u.y],...m,[f.x+u.x,f.y+u.y]],{x:_,y:w}=Fer(t.edgeData),S=r_().x(_).y(w).curve(Cg),C=e.insert("path").attr("d",S(b)).attr("class","path "+r.classes).attr("fill","none"),A=e.insert("g").attr("class","edgeLabel"),k=gn(A.node().appendChild(t.labelEl)),I=k.node().firstChild.getBoundingClientRect();k.attr("width",I.width),k.attr("height",I.height),A.attr("transform",`translate(${t.labels[0].x+u.x}, ${t.labels[0].y+u.y})`),Iwa(C,r,a.type,a.arrowMarkerAbsolute,o)},Fnr=(e,t)=>{e.forEach(r=>{r.children||(r.children=[]);const a=t.childrenById[r.id];a&&a.forEach(s=>{r.children.push(Y7[s])}),Fnr(r.children,t)})},Mwa=async function(e,t,r,a){var s;a.db.clear(),Y7={},Hx={},a.db.setGen("gen-2"),a.parser.parse(e);const o=gn("body").append("div").attr("style","height:400px").attr("id","cy");let u={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch(ut.info("Drawing flowchart using v3 renderer",eAn),a.db.getDirection()){case"BT":u.layoutOptions["elk.direction"]="UP";break;case"TB":u.layoutOptions["elk.direction"]="DOWN";break;case"LR":u.layoutOptions["elk.direction"]="RIGHT";break;case"RL":u.layoutOptions["elk.direction"]="LEFT";break}const{securityLevel:f,flowchart:p}=Lf();let m;f==="sandbox"&&(m=gn("#i"+t));const b=gn(f==="sandbox"?m.nodes()[0].contentDocument.body:"body"),_=f==="sandbox"?m.nodes()[0].contentDocument:document,w=b.select(`[id="${t}"]`);jbt(w,["point","circle","cross"],a.type,t);const C=a.db.getVertices();let A;const k=a.db.getSubGraphs();ut.info("Subgraphs - ",k);for(let U=k.length-1;U>=0;U--)A=k[U],a.db.addVertex(A.id,{text:A.title,type:A.labelType},"group",void 0,A.classes,A.dir);const I=w.insert("g").attr("class","subgraphs"),N=Owa(a.db);u=await Awa(C,t,b,_,a,N,u);const L=w.insert("g").attr("class","edges edgePath"),P=a.db.getEdges();u=Rwa(P,a,u,w),Object.keys(Y7).forEach(U=>{const $=Y7[U];$.parent||u.children.push($),N.childrenById[U]!==void 0&&($.labels=[{text:$.labelText,layoutOptions:{"nodeLabels.placement":"[H_CENTER, V_TOP, INSIDE]"},width:$.labelData.width,height:$.labelData.height}],delete $.x,delete $.y,delete $.width,delete $.height)}),Fnr(u.children,N),ut.info("after layout",JSON.stringify(u,null,2));const F=await eAn.layout(u);$nr(0,0,F.children,w,I,a,0),ut.info("after layout",F),(s=F.edges)==null||s.map(U=>{Dwa(L,U,U.edgeData,a,N,t)}),oL({},w,p.diagramPadding,p.useMaxWidth),o.remove()},$nr=(e,t,r,a,s,o,u)=>{r.forEach(function(h){if(h)if(Y7[h.id].offset={posX:h.x+e,posY:h.y+t,x:e,y:t,depth:u,width:h.width,height:h.height},h.type==="group"){const f=s.insert("g").attr("class","subgraph");f.insert("rect").attr("class","subgraph subgraph-lvl-"+u%5+" node").attr("x",h.x+e).attr("y",h.y+t).attr("width",h.width).attr("height",h.height);const p=f.insert("g").attr("class","label"),m=Lf().flowchart.htmlLabels?h.labelData.width/2:0;p.attr("transform",`translate(${h.labels[0].x+e+h.x+m}, ${h.labels[0].y+t+h.y+3})`),p.node().appendChild(h.labelData.labelNode),ut.info("Id (UGH)= ",h.type,h.labels)}else ut.info("Id (UGH)= ",h.id),h.el.attr("transform",`translate(${h.x+e+h.width/2}, ${h.y+t+h.height/2})`)}),r.forEach(function(h){h&&h.type==="group"&&$nr(e+h.x,t+h.y,h.children,a,s,o,u+1)})},Pwa={getClasses:Nwa,draw:Mwa},Bwa=e=>{let t="";for(let r=0;r<5;r++)t+=` .subgraph-lvl-${r} { fill: ${e[`surface${r}`]}; stroke: ${e[`surfacePeer${r}`]}; } `;return t},Fwa=e=>`.label { font-family: ${e.fontFamily}; color: ${e.nodeTextColor||e.textColor}; } .cluster-label text { fill: ${e.titleColor}; } .cluster-label span { color: ${e.titleColor}; } .label text,span { fill: ${e.nodeTextColor||e.textColor}; color: ${e.nodeTextColor||e.textColor}; } .node rect, .node circle, .node ellipse, .node polygon, .node path { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: 1px; } .node .label { text-align: center; } .node.clickable { cursor: pointer; } .arrowheadPath { fill: ${e.arrowheadColor}; } .edgePath .path { stroke: ${e.lineColor}; stroke-width: 2.0px; } .flowchart-link { stroke: ${e.lineColor}; fill: none; } .edgeLabel { background-color: ${e.edgeLabelBackground}; rect { opacity: 0.85; background-color: ${e.edgeLabelBackground}; fill: ${e.edgeLabelBackground}; } text-align: center; } .cluster rect { fill: ${e.clusterBkg}; stroke: ${e.clusterBorder}; stroke-width: 1px; } .cluster text { fill: ${e.titleColor}; } .cluster span { color: ${e.titleColor}; } /* .cluster div { color: ${e.titleColor}; } */ div.mermaidTooltip { position: absolute; text-align: center; max-width: 200px; padding: 2px; font-family: ${e.fontFamily}; font-size: 12px; background: ${e.tertiaryColor}; border: 1px solid ${e.border2}; border-radius: 2px; pointer-events: none; z-index: 100; } .flowchartTitleText { text-anchor: middle; font-size: 18px; fill: ${e.textColor}; } .subgraph { stroke-width:2; rx:3; } // .subgraph-lvl-1 { // fill:#ccc; // // stroke:black; // } .flowchart-label text { text-anchor: middle; } ${Bwa(e)} `,$wa=Fwa,Uwa={db:Nua,renderer:Pwa,parser:Pbt,styles:$wa},zwa=Object.freeze(Object.defineProperty({__proto__:null,diagram:Uwa},Symbol.toStringTag,{value:"Module"}));var tdt=function(){var e=function(_,w,S,C){for(S=S||{},C=_.length;C--;S[_[C]]=w);return S},t=[6,8,10,11,12,14,16,17,20,21],r=[1,9],a=[1,10],s=[1,11],o=[1,12],u=[1,13],h=[1,16],f=[1,17],p={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(w,S,C,A,k,I,N){var L=I.length-1;switch(k){case 1:return I[L-1];case 2:this.$=[];break;case 3:I[L-1].push(I[L]),this.$=I[L-1];break;case 4:case 5:this.$=I[L];break;case 6:case 7:this.$=[];break;case 8:A.getCommonDb().setDiagramTitle(I[L].substr(6)),this.$=I[L].substr(6);break;case 9:this.$=I[L].trim(),A.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=I[L].trim(),A.getCommonDb().setAccDescription(this.$);break;case 12:A.addSection(I[L].substr(8)),this.$=I[L].substr(8);break;case 15:A.addTask(I[L],0,""),this.$=I[L];break;case 16:A.addEvent(I[L].substr(2)),this.$=I[L];break}},table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:a,14:s,16:o,17:u,18:14,19:15,20:h,21:f},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:18,11:r,12:a,14:s,16:o,17:u,18:14,19:15,20:h,21:f},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,19]},{15:[1,20]},e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,4]),e(t,[2,9]),e(t,[2,10])],defaultActions:{},parseError:function(w,S){if(S.recoverable)this.trace(w);else{var C=new Error(w);throw C.hash=S,C}},parse:function(w){var S=this,C=[0],A=[],k=[null],I=[],N=this.table,L="",P=0,M=0,F=2,U=1,$=I.slice.call(arguments,1),G=Object.create(this.lexer),B={yy:{}};for(var Z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z)&&(B.yy[Z]=this.yy[Z]);G.setInput(w,B.yy),B.yy.lexer=G,B.yy.parser=this,typeof G.yylloc>"u"&&(G.yylloc={});var z=G.yylloc;I.push(z);var Y=G.options&&G.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function W(){var be;return be=A.pop()||G.lex()||U,typeof be!="number"&&(be instanceof Array&&(A=be,be=A.pop()),be=S.symbols_[be]||be),be}for(var Q,V,j,ee,te={},ne,se,ie,ge;;){if(V=C[C.length-1],this.defaultActions[V]?j=this.defaultActions[V]:((Q===null||typeof Q>"u")&&(Q=W()),j=N[V]&&N[V][Q]),typeof j>"u"||!j.length||!j[0]){var ce="";ge=[];for(ne in N[V])this.terminals_[ne]&&ne>F&&ge.push("'"+this.terminals_[ne]+"'");G.showPosition?ce="Parse error on line "+(P+1)+`: `+G.showPosition()+` Expecting `+ge.join(", ")+", got '"+(this.terminals_[Q]||Q)+"'":ce="Parse error on line "+(P+1)+": Unexpected "+(Q==U?"end of input":"'"+(this.terminals_[Q]||Q)+"'"),this.parseError(ce,{text:G.match,token:this.terminals_[Q]||Q,line:G.yylineno,loc:z,expected:ge})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+Q);switch(j[0]){case 1:C.push(Q),k.push(G.yytext),I.push(G.yylloc),C.push(j[1]),Q=null,M=G.yyleng,L=G.yytext,P=G.yylineno,z=G.yylloc;break;case 2:if(se=this.productions_[j[1]][1],te.$=k[k.length-se],te._$={first_line:I[I.length-(se||1)].first_line,last_line:I[I.length-1].last_line,first_column:I[I.length-(se||1)].first_column,last_column:I[I.length-1].last_column},Y&&(te._$.range=[I[I.length-(se||1)].range[0],I[I.length-1].range[1]]),ee=this.performAction.apply(te,[L,M,P,B.yy,j[1],k,I].concat($)),typeof ee<"u")return ee;se&&(C=C.slice(0,-1*se*2),k=k.slice(0,-1*se),I=I.slice(0,-1*se)),C.push(this.productions_[j[1]][0]),k.push(te.$),I.push(te._$),ie=N[C[C.length-2]][C[C.length-1]],C.push(ie);break;case 3:return!0}}return!0}},m=function(){var _={EOF:1,parseError:function(S,C){if(this.yy.parser)this.yy.parser.parseError(S,C);else throw new Error(S)},setInput:function(w,S){return this.yy=S||this.yy||{},this._input=w,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var S=w.match(/(?:\r\n?|\n).*/g);return S?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},unput:function(w){var S=w.length,C=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-S),this.offset-=S;var A=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),C.length-1&&(this.yylineno-=C.length-1);var k=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:C?(C.length===A.length?this.yylloc.first_column:0)+A[A.length-C.length].length-C[0].length:this.yylloc.first_column-S},this.options.ranges&&(this.yylloc.range=[k[0],k[0]+this.yyleng-S]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(w){this.unput(this.match.slice(w))},pastInput:function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var w=this.pastInput(),S=new Array(w.length+1).join("-");return w+this.upcomingInput()+` `+S+"^"},test_match:function(w,S){var C,A,k;if(this.options.backtrack_lexer&&(k={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(k.yylloc.range=this.yylloc.range.slice(0))),A=w[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+w[0].length},this.yytext+=w[0],this.match+=w[0],this.matches=w,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(w[0].length),this.matched+=w[0],C=this.performAction.call(this,this.yy,this,S,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),C)return C;if(this._backtrack){for(var I in k)this[I]=k[I];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var w,S,C,A;this._more||(this.yytext="",this.match="");for(var k=this._currentRules(),I=0;IS[0].length)){if(S=C,A=I,this.options.backtrack_lexer){if(w=this.test_match(C,k[I]),w!==!1)return w;if(this._backtrack){S=!1;continue}else return!1}else if(!this.options.flex)break}return S?(w=this.test_match(S,k[A]),w!==!1?w:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var S=this.next();return S||this.lex()},begin:function(S){this.conditionStack.push(S)},popState:function(){var S=this.conditionStack.length-1;return S>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(S){return S=this.conditionStack.length-1-Math.abs(S||0),S>=0?this.conditionStack[S]:"INITIAL"},pushState:function(S){this.begin(S)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(S,C,A,k){switch(A){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?::\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return _}();p.lexer=m;function b(){this.yy={}}return b.prototype=p,p.Parser=b,new b}();tdt.parser=tdt;const Gwa=tdt;let pW="",Unr=0;const Tyt=[],w5e=[],gW=[],znr=()=>SZn,Gnr=function(){Tyt.length=0,w5e.length=0,pW="",gW.length=0,Mb()},qnr=function(e){pW=e,Tyt.push(e)},Hnr=function(){return Tyt},Vnr=function(){let e=rAn();const t=100;let r=0;for(;!e&&rr.id===Unr-1).events.push(e)},Wnr=function(e){const t={section:pW,type:pW,description:e,task:e,classes:[]};w5e.push(t)},rAn=function(){const e=function(r){return gW[r].processed};let t=!0;for(const[r,a]of gW.entries())e(r),t=t&&a.processed;return t},qwa={clear:Gnr,getCommonDb:znr,addSection:qnr,getSections:Hnr,getTasks:Vnr,addTask:Ynr,addTaskOrg:Wnr,addEvent:jnr},Hwa=Object.freeze(Object.defineProperty({__proto__:null,addEvent:jnr,addSection:qnr,addTask:Ynr,addTaskOrg:Wnr,clear:Gnr,default:qwa,getCommonDb:znr,getSections:Hnr,getTasks:Vnr},Symbol.toStringTag,{value:"Module"})),Vwa=12,C6e=function(e,t){const r=e.append("rect");return r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),r.attr("rx",t.rx),r.attr("ry",t.ry),t.class!==void 0&&r.attr("class",t.class),r},Ywa=function(e,t){const a=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=e.append("g");s.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function o(f){const p=_S().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}function u(f){const p=_S().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}function h(f){f.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return t.score>3?o(s):t.score<3?u(s):h(s),a},jwa=function(e,t){const r=e.append("circle");return r.attr("cx",t.cx),r.attr("cy",t.cy),r.attr("class","actor-"+t.pos),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("r",t.r),r.class!==void 0&&r.attr("class",r.class),t.title!==void 0&&r.append("title").text(t.title),r},Knr=function(e,t){const r=t.text.replace(//gi," "),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(r),a},Wwa=function(e,t){function r(s,o,u,h,f){return s+","+o+" "+(s+u)+","+o+" "+(s+u)+","+(o+h-f)+" "+(s+u-f*1.2)+","+(o+h)+" "+s+","+(o+h)}const a=e.append("polygon");a.attr("points",r(t.x,t.y,50,20,7)),a.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,Knr(e,t)},Kwa=function(e,t,r){const a=e.append("g"),s=Cyt();s.x=t.x,s.y=t.y,s.fill=t.fill,s.width=r.width,s.height=r.height,s.class="journey-section section-type-"+t.num,s.rx=3,s.ry=3,C6e(a,s),Xnr(r)(t.text,a,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+t.num},r,t.colour)};let iAn=-1;const Xwa=function(e,t,r){const a=t.x+r.width/2,s=e.append("g");iAn++;const o=300+5*30;s.append("line").attr("id","task"+iAn).attr("x1",a).attr("y1",t.y).attr("x2",a).attr("y2",o).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Ywa(s,{cx:a,cy:300+(5-t.score)*30,score:t.score});const u=Cyt();u.x=t.x,u.y=t.y,u.fill=t.fill,u.width=r.width,u.height=r.height,u.class="task task-type-"+t.num,u.rx=3,u.ry=3,C6e(s,u),t.x+14,Xnr(r)(t.task,s,u.x,u.y,u.width,u.height,{class:"task"},r,t.colour)},Qwa=function(e,t){C6e(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},Zwa=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},Cyt=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},Xnr=function(){function e(s,o,u,h,f,p,m,b){const _=o.append("text").attr("x",u+f/2).attr("y",h+p/2+5).style("font-color",b).style("text-anchor","middle").text(s);a(_,m)}function t(s,o,u,h,f,p,m,b,_){const{taskFontSize:w,taskFontFamily:S}=b,C=s.split(//gi);for(let A=0;A)/).reverse(),s,o=[],u=1.1,h=r.attr("y"),f=parseFloat(r.attr("dy")),p=r.text(null).append("tspan").attr("x",0).attr("y",h).attr("dy",f+"em");for(let m=0;mt||s==="
    ")&&(o.pop(),p.text(o.join(" ").trim()),s==="
    "?o=[""]:o=[s],p=r.append("tspan").attr("x",0).attr("y",h).attr("dy",u+"em").text(s))})}const eEa=function(e,t,r,a){const s=r%Vwa-1,o=e.append("g");t.section=s,o.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+s));const u=o.append("g"),h=o.append("g"),p=h.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(Qnr,t.width).node().getBBox(),m=a.fontSize&&a.fontSize.replace?a.fontSize.replace("px",""):a.fontSize;return t.height=p.height+m*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,h.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),nEa(u,t,s),t},tEa=function(e,t,r){const a=e.append("g"),o=a.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(Qnr,t.width).node().getBBox(),u=r.fontSize&&r.fontSize.replace?r.fontSize.replace("px",""):r.fontSize;return a.remove(),o.height+u*1.1*.5+t.padding},nEa=function(e,t,r){e.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${-t.height+2*5} q0,-5 5,-5 h${t.width-2*5} q5,0 5,5 v${t.height-5} H0 Z`),e.append("line").attr("class","node-line-"+r).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},VB={drawRect:C6e,drawCircle:jwa,drawSection:Kwa,drawText:Knr,drawLabel:Wwa,drawTask:Xwa,drawBackgroundRect:Qwa,getTextObj:Zwa,getNoteRect:Cyt,initGraphics:Jwa,drawNode:eEa,getVirtualNodeHeight:tEa},rEa=function(e,t,r,a){var s,o;const u=Qt(),h=u.leftMargin??50;ut.debug("timeline",a.db);const f=u.securityLevel;let p;f==="sandbox"&&(p=gn("#i"+t));const b=gn(f==="sandbox"?p.nodes()[0].contentDocument.body:"body").select("#"+t);b.append("g");const _=a.db.getTasks(),w=a.db.getCommonDb().getDiagramTitle();ut.debug("task",_),VB.initGraphics(b);const S=a.db.getSections();ut.debug("sections",S);let C=0,A=0,k=0,I=0,N=50+h,L=50;I=50;let P=0,M=!0;S.forEach(function(B){const Z={number:P,descr:B,section:P,width:150,padding:20,maxHeight:C},z=VB.getVirtualNodeHeight(b,Z,u);ut.debug("sectionHeight before draw",z),C=Math.max(C,z+20)});let F=0,U=0;ut.debug("tasks.length",_.length);for(const[B,Z]of _.entries()){const z={number:B,descr:Z,section:Z.section,width:150,padding:20,maxHeight:A},Y=VB.getVirtualNodeHeight(b,z,u);ut.debug("taskHeight before draw",Y),A=Math.max(A,Y+20),F=Math.max(F,Z.events.length);let W=0;for(let Q=0;Q0?S.forEach(B=>{const Z=_.filter(Q=>Q.section===B),z={number:P,descr:B,section:P,width:200*Math.max(Z.length,1)-50,padding:20,maxHeight:C};ut.debug("sectionNode",z);const Y=b.append("g"),W=VB.drawNode(Y,z,P,u);ut.debug("sectionNode output",W),Y.attr("transform",`translate(${N}, ${I})`),L+=C+50,Z.length>0&&aAn(b,Z,P,N,L,A,u,F,U,C,!1),N+=200*Math.max(Z.length,1),L=I,P++}):(M=!1,aAn(b,_,P,N,L,A,u,F,U,C,!0));const $=b.node().getBBox();ut.debug("bounds",$),w&&b.append("text").text(w).attr("x",$.width/2-h).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),k=M?C+A+150:A+100,b.append("g").attr("class","lineWrapper").append("line").attr("x1",h).attr("y1",k).attr("x2",$.width+3*h).attr("y2",k).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),oL(void 0,b,((s=u.timeline)==null?void 0:s.padding)??50,((o=u.timeline)==null?void 0:o.useMaxWidth)??!1)},aAn=function(e,t,r,a,s,o,u,h,f,p,m){var b;for(const _ of t){const w={descr:_.task,section:r,number:r,width:150,padding:20,maxHeight:o};ut.debug("taskNode",w);const S=e.append("g").attr("class","taskWrapper"),A=VB.drawNode(S,w,r,u).height;if(ut.debug("taskHeight after draw",A),S.attr("transform",`translate(${a}, ${s})`),o=Math.max(o,A),_.events){const k=e.append("g").attr("class","lineWrapper");let I=o;s+=100,I=I+iEa(e,_.events,r,a,s,u),s-=100,k.append("line").attr("x1",a+190/2).attr("y1",s+o).attr("x2",a+190/2).attr("y2",s+o+(m?o:p)+f+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}a=a+200,m&&!((b=u.timeline)!=null&&b.disableMulticolor)&&r++}s=s-10},iEa=function(e,t,r,a,s,o){let u=0;const h=s;s=s+100;for(const f of t){const p={descr:f,section:r,number:r,width:150,padding:20,maxHeight:50};ut.debug("eventNode",p);const m=e.append("g").attr("class","eventWrapper"),_=VB.drawNode(m,p,r,o).height;u=u+_,m.attr("transform",`translate(${a}, ${s})`),s=s+10+_}return s=h,u},aEa={setConf:()=>{},draw:rEa},sEa=e=>{let t="";for(let r=0;r` .edge { stroke-width: 3; } ${sEa(e)} .section-root rect, .section-root path, .section-root circle { fill: ${e.git0}; } .section-root text { fill: ${e.gitBranchLabel0}; } .icon-container { height:100%; display: flex; justify-content: center; align-items: center; } .edge { fill: none; } .eventWrapper { filter: brightness(120%); } `,lEa=oEa,cEa={db:Hwa,renderer:aEa,parser:Gwa,styles:lEa},uEa=Object.freeze(Object.defineProperty({__proto__:null,diagram:cEa},Symbol.toStringTag,{value:"Module"}));var ndt=function(){var e=function(L,P,M,F){for(M=M||{},F=L.length;F--;M[L[F]]=P);return M},t=[1,4],r=[1,13],a=[1,12],s=[1,15],o=[1,16],u=[1,20],h=[1,19],f=[6,7,8],p=[1,26],m=[1,24],b=[1,25],_=[6,7,11],w=[1,6,13,15,16,19,22],S=[1,33],C=[1,34],A=[1,6,7,11,13,15,16,19,22],k={trace:function(){},yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:function(P,M,F,U,$,G,B){var Z=G.length-1;switch($){case 6:case 7:return U;case 8:U.getLogger().trace("Stop NL ");break;case 9:U.getLogger().trace("Stop EOF ");break;case 11:U.getLogger().trace("Stop NL2 ");break;case 12:U.getLogger().trace("Stop EOF2 ");break;case 15:U.getLogger().info("Node: ",G[Z].id),U.addNode(G[Z-1].length,G[Z].id,G[Z].descr,G[Z].type);break;case 16:U.getLogger().trace("Icon: ",G[Z]),U.decorateNode({icon:G[Z]});break;case 17:case 21:U.decorateNode({class:G[Z]});break;case 18:U.getLogger().trace("SPACELIST");break;case 19:U.getLogger().trace("Node: ",G[Z].id),U.addNode(0,G[Z].id,G[Z].descr,G[Z].type);break;case 20:U.decorateNode({icon:G[Z]});break;case 25:U.getLogger().trace("node found ..",G[Z-2]),this.$={id:G[Z-1],descr:G[Z-1],type:U.getType(G[Z-2],G[Z])};break;case 26:this.$={id:G[Z],descr:G[Z],type:U.nodeType.DEFAULT};break;case 27:U.getLogger().trace("node found ..",G[Z-3]),this.$={id:G[Z-3],descr:G[Z-1],type:U.getType(G[Z-2],G[Z])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:r,7:[1,10],9:9,12:11,13:a,14:14,15:s,16:o,17:17,18:18,19:u,22:h},e(f,[2,3]),{1:[2,2]},e(f,[2,4]),e(f,[2,5]),{1:[2,6],6:r,12:21,13:a,14:14,15:s,16:o,17:17,18:18,19:u,22:h},{6:r,9:22,12:11,13:a,14:14,15:s,16:o,17:17,18:18,19:u,22:h},{6:p,7:m,10:23,11:b},e(_,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:h}),e(_,[2,18]),e(_,[2,19]),e(_,[2,20]),e(_,[2,21]),e(_,[2,23]),e(_,[2,24]),e(_,[2,26],{19:[1,30]}),{20:[1,31]},{6:p,7:m,10:32,11:b},{1:[2,7],6:r,12:21,13:a,14:14,15:s,16:o,17:17,18:18,19:u,22:h},e(w,[2,14],{7:S,11:C}),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(_,[2,15]),e(_,[2,16]),e(_,[2,17]),{20:[1,35]},{21:[1,36]},e(w,[2,13],{7:S,11:C}),e(A,[2,11]),e(A,[2,12]),{21:[1,37]},e(_,[2,25]),e(_,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(P,M){if(M.recoverable)this.trace(P);else{var F=new Error(P);throw F.hash=M,F}},parse:function(P){var M=this,F=[0],U=[],$=[null],G=[],B=this.table,Z="",z=0,Y=0,W=2,Q=1,V=G.slice.call(arguments,1),j=Object.create(this.lexer),ee={yy:{}};for(var te in this.yy)Object.prototype.hasOwnProperty.call(this.yy,te)&&(ee.yy[te]=this.yy[te]);j.setInput(P,ee.yy),ee.yy.lexer=j,ee.yy.parser=this,typeof j.yylloc>"u"&&(j.yylloc={});var ne=j.yylloc;G.push(ne);var se=j.options&&j.options.ranges;typeof ee.yy.parseError=="function"?this.parseError=ee.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ie(){var Ie;return Ie=U.pop()||j.lex()||Q,typeof Ie!="number"&&(Ie instanceof Array&&(U=Ie,Ie=U.pop()),Ie=M.symbols_[Ie]||Ie),Ie}for(var ge,ce,be,ve,De={},ye,Ee,he,we;;){if(ce=F[F.length-1],this.defaultActions[ce]?be=this.defaultActions[ce]:((ge===null||typeof ge>"u")&&(ge=ie()),be=B[ce]&&B[ce][ge]),typeof be>"u"||!be.length||!be[0]){var Ce="";we=[];for(ye in B[ce])this.terminals_[ye]&&ye>W&&we.push("'"+this.terminals_[ye]+"'");j.showPosition?Ce="Parse error on line "+(z+1)+`: `+j.showPosition()+` Expecting `+we.join(", ")+", got '"+(this.terminals_[ge]||ge)+"'":Ce="Parse error on line "+(z+1)+": Unexpected "+(ge==Q?"end of input":"'"+(this.terminals_[ge]||ge)+"'"),this.parseError(Ce,{text:j.match,token:this.terminals_[ge]||ge,line:j.yylineno,loc:ne,expected:we})}if(be[0]instanceof Array&&be.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ce+", token: "+ge);switch(be[0]){case 1:F.push(ge),$.push(j.yytext),G.push(j.yylloc),F.push(be[1]),ge=null,Y=j.yyleng,Z=j.yytext,z=j.yylineno,ne=j.yylloc;break;case 2:if(Ee=this.productions_[be[1]][1],De.$=$[$.length-Ee],De._$={first_line:G[G.length-(Ee||1)].first_line,last_line:G[G.length-1].last_line,first_column:G[G.length-(Ee||1)].first_column,last_column:G[G.length-1].last_column},se&&(De._$.range=[G[G.length-(Ee||1)].range[0],G[G.length-1].range[1]]),ve=this.performAction.apply(De,[Z,Y,z,ee.yy,be[1],$,G].concat(V)),typeof ve<"u")return ve;Ee&&(F=F.slice(0,-1*Ee*2),$=$.slice(0,-1*Ee),G=G.slice(0,-1*Ee)),F.push(this.productions_[be[1]][0]),$.push(De.$),G.push(De._$),he=B[F[F.length-2]][F[F.length-1]],F.push(he);break;case 3:return!0}}return!0}},I=function(){var L={EOF:1,parseError:function(M,F){if(this.yy.parser)this.yy.parser.parseError(M,F);else throw new Error(M)},setInput:function(P,M){return this.yy=M||this.yy||{},this._input=P,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var P=this._input[0];this.yytext+=P,this.yyleng++,this.offset++,this.match+=P,this.matched+=P;var M=P.match(/(?:\r\n?|\n).*/g);return M?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),P},unput:function(P){var M=P.length,F=P.split(/(?:\r\n?|\n)/g);this._input=P+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-M),this.offset-=M;var U=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),F.length-1&&(this.yylineno-=F.length-1);var $=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:F?(F.length===U.length?this.yylloc.first_column:0)+U[U.length-F.length].length-F[0].length:this.yylloc.first_column-M},this.options.ranges&&(this.yylloc.range=[$[0],$[0]+this.yyleng-M]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(P){this.unput(this.match.slice(P))},pastInput:function(){var P=this.matched.substr(0,this.matched.length-this.match.length);return(P.length>20?"...":"")+P.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var P=this.match;return P.length<20&&(P+=this._input.substr(0,20-P.length)),(P.substr(0,20)+(P.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var P=this.pastInput(),M=new Array(P.length+1).join("-");return P+this.upcomingInput()+` `+M+"^"},test_match:function(P,M){var F,U,$;if(this.options.backtrack_lexer&&($={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&($.yylloc.range=this.yylloc.range.slice(0))),U=P[0].match(/(?:\r\n?|\n).*/g),U&&(this.yylineno+=U.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:U?U[U.length-1].length-U[U.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+P[0].length},this.yytext+=P[0],this.match+=P[0],this.matches=P,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(P[0].length),this.matched+=P[0],F=this.performAction.call(this,this.yy,this,M,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),F)return F;if(this._backtrack){for(var G in $)this[G]=$[G];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var P,M,F,U;this._more||(this.yytext="",this.match="");for(var $=this._currentRules(),G=0;G<$.length;G++)if(F=this._input.match(this.rules[$[G]]),F&&(!M||F[0].length>M[0].length)){if(M=F,U=G,this.options.backtrack_lexer){if(P=this.test_match(F,$[G]),P!==!1)return P;if(this._backtrack){M=!1;continue}else return!1}else if(!this.options.flex)break}return M?(P=this.test_match(M,$[U]),P!==!1?P:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var M=this.next();return M||this.lex()},begin:function(M){this.conditionStack.push(M)},popState:function(){var M=this.conditionStack.length-1;return M>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(M){return M=this.conditionStack.length-1-Math.abs(M||0),M>=0?this.conditionStack[M]:"INITIAL"},pushState:function(M){this.begin(M)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(M,F,U,$){switch(U){case 0:return M.getLogger().trace("Found comment",F.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:M.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return M.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:M.getLogger().trace("end icon"),this.popState();break;case 10:return M.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return M.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return M.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return M.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:M.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return M.getLogger().trace("description:",F.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),M.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),M.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),M.getLogger().trace("node end ...",F.yytext),"NODE_DEND";case 30:return this.popState(),M.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),M.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),M.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),M.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),M.getLogger().trace("node end (("),"NODE_DEND";case 35:return M.getLogger().trace("Long description:",F.yytext),20;case 36:return M.getLogger().trace("Long description:",F.yytext),20}},rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return L}();k.lexer=I;function N(){this.yy={}}return N.prototype=k,k.Parser=N,new N}();ndt.parser=ndt;const hEa=ndt;let iT=[],Znr=0,Ayt={};const dEa=()=>{iT=[],Znr=0,Ayt={}},fEa=function(e){for(let t=iT.length-1;t>=0;t--)if(iT[t].leveliT.length>0?iT[0]:null,gEa=(e,t,r,a)=>{var s,o;ut.info("addNode",e,t,r,a);const u=Qt();let h=((s=u.mindmap)==null?void 0:s.padding)??fd.mindmap.padding;switch(a){case Sp.ROUNDED_RECT:case Sp.RECT:case Sp.HEXAGON:h*=2}const f={id:Znr++,nodeId:J0(t,u),level:e,descr:J0(r,u),type:a,children:[],width:((o=u.mindmap)==null?void 0:o.maxNodeWidth)??fd.mindmap.maxNodeWidth,padding:h},p=fEa(e);if(p)p.children.push(f),iT.push(f);else if(iT.length===0)iT.push(f);else throw new Error('There can be only one root. No parent could be found for ("'+f.descr+'")')},Sp={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},mEa=(e,t)=>{switch(ut.debug("In get type",e,t),e){case"[":return Sp.RECT;case"(":return t===")"?Sp.ROUNDED_RECT:Sp.CLOUD;case"((":return Sp.CIRCLE;case")":return Sp.CLOUD;case"))":return Sp.BANG;case"{{":return Sp.HEXAGON;default:return Sp.DEFAULT}},bEa=(e,t)=>{Ayt[e]=t},yEa=e=>{if(!e)return;const t=Qt(),r=iT[iT.length-1];e.icon&&(r.icon=J0(e.icon,t)),e.class&&(r.class=J0(e.class,t))},vEa=e=>{switch(e){case Sp.DEFAULT:return"no-border";case Sp.RECT:return"rect";case Sp.ROUNDED_RECT:return"rounded-rect";case Sp.CIRCLE:return"circle";case Sp.CLOUD:return"cloud";case Sp.BANG:return"bang";case Sp.HEXAGON:return"hexgon";default:return"no-border"}},_Ea=()=>ut,wEa=e=>Ayt[e],EEa={clear:dEa,addNode:gEa,getMindmap:pEa,nodeType:Sp,getType:mEa,setElementForId:bEa,decorateNode:yEa,type2Str:vEa,getLogger:_Ea,getElementById:wEa},xEa=EEa,SEa=12,TEa=function(e,t,r,a){t.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+e.type2Str(r.type)).attr("d",`M0 ${r.height-5} v${-r.height+2*5} q0,-5 5,-5 h${r.width-2*5} q5,0 5,5 v${r.height-5} H0 Z`),t.append("line").attr("class","node-line-"+a).attr("x1",0).attr("y1",r.height).attr("x2",r.width).attr("y2",r.height)},CEa=function(e,t,r){t.append("rect").attr("id","node-"+r.id).attr("class","node-bkg node-"+e.type2Str(r.type)).attr("height",r.height).attr("width",r.width)},AEa=function(e,t,r){const a=r.width,s=r.height,o=.15*a,u=.25*a,h=.35*a,f=.2*a;t.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+e.type2Str(r.type)).attr("d",`M0 0 a${o},${o} 0 0,1 ${a*.25},${-1*a*.1} a${h},${h} 1 0,1 ${a*.4},${-1*a*.1} a${u},${u} 1 0,1 ${a*.35},${1*a*.2} a${o},${o} 1 0,1 ${a*.15},${1*s*.35} a${f},${f} 1 0,1 ${-1*a*.15},${1*s*.65} a${u},${o} 1 0,1 ${-1*a*.25},${a*.15} a${h},${h} 1 0,1 ${-1*a*.5},0 a${o},${o} 1 0,1 ${-1*a*.25},${-1*a*.15} a${o},${o} 1 0,1 ${-1*a*.1},${-1*s*.35} a${f},${f} 1 0,1 ${a*.1},${-1*s*.65} H0 V0 Z`)},kEa=function(e,t,r){const a=r.width,s=r.height,o=.15*a;t.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+e.type2Str(r.type)).attr("d",`M0 0 a${o},${o} 1 0,0 ${a*.25},${-1*s*.1} a${o},${o} 1 0,0 ${a*.25},0 a${o},${o} 1 0,0 ${a*.25},0 a${o},${o} 1 0,0 ${a*.25},${1*s*.1} a${o},${o} 1 0,0 ${a*.15},${1*s*.33} a${o*.8},${o*.8} 1 0,0 0,${1*s*.34} a${o},${o} 1 0,0 ${-1*a*.15},${1*s*.33} a${o},${o} 1 0,0 ${-1*a*.25},${s*.15} a${o},${o} 1 0,0 ${-1*a*.25},0 a${o},${o} 1 0,0 ${-1*a*.25},0 a${o},${o} 1 0,0 ${-1*a*.25},${-1*s*.15} a${o},${o} 1 0,0 ${-1*a*.1},${-1*s*.33} a${o*.8},${o*.8} 1 0,0 0,${-1*s*.34} a${o},${o} 1 0,0 ${a*.1},${-1*s*.33} H0 V0 Z`)},REa=function(e,t,r){t.append("circle").attr("id","node-"+r.id).attr("class","node-bkg node-"+e.type2Str(r.type)).attr("r",r.width/2)};function IEa(e,t,r,a,s){return e.insert("polygon",":first-child").attr("points",a.map(function(o){return o.x+","+o.y}).join(" ")).attr("transform","translate("+(s.width-t)/2+", "+r+")")}const NEa=function(e,t,r){const a=r.height,o=a/4,u=r.width-r.padding+2*o,h=[{x:o,y:0},{x:u-o,y:0},{x:u,y:-a/2},{x:u-o,y:-a},{x:o,y:-a},{x:0,y:-a/2}];IEa(t,u,a,h,r)},OEa=function(e,t,r){t.append("rect").attr("id","node-"+r.id).attr("class","node-bkg node-"+e.type2Str(r.type)).attr("height",r.height).attr("rx",r.padding).attr("ry",r.padding).attr("width",r.width)},LEa=function(e,t,r,a,s){const o=s.htmlLabels,u=a%(SEa-1),h=t.append("g");r.section=u;let f="section-"+u;u<0&&(f+=" section-root"),h.attr("class",(r.class?r.class+" ":"")+"mindmap-node "+f);const p=h.append("g"),m=h.append("g"),b=r.descr.replace(/()/g,` `);v6e(m,b,{useHtmlLabels:o,width:r.width,classes:"mindmap-node-label"}),o||m.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");const _=m.node().getBBox(),[w]=J$(s.fontSize);if(r.height=_.height+w*1.1*.5+r.padding,r.width=_.width+2*r.padding,r.icon)if(r.type===e.nodeType.CIRCLE)r.height+=50,r.width+=50,h.append("foreignObject").attr("height","50px").attr("width",r.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+u+" "+r.icon),m.attr("transform","translate("+r.width/2+", "+(r.height/2-1.5*r.padding)+")");else{r.width+=50;const S=r.height;r.height=Math.max(S,60);const C=Math.abs(r.height-S);h.append("foreignObject").attr("width","60px").attr("height",r.height).attr("style","text-align: center;margin-top:"+C/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+u+" "+r.icon),m.attr("transform","translate("+(25+r.width/2)+", "+(C/2+r.padding/2)+")")}else if(o){const S=(r.width-_.width)/2,C=(r.height-_.height)/2;m.attr("transform","translate("+S+", "+C+")")}else{const S=r.width/2,C=r.padding/2;m.attr("transform","translate("+S+", "+C+")")}switch(r.type){case e.nodeType.DEFAULT:TEa(e,p,r,u);break;case e.nodeType.ROUNDED_RECT:OEa(e,p,r);break;case e.nodeType.RECT:CEa(e,p,r);break;case e.nodeType.CIRCLE:p.attr("transform","translate("+r.width/2+", "+ +r.height/2+")"),REa(e,p,r);break;case e.nodeType.CLOUD:AEa(e,p,r);break;case e.nodeType.BANG:kEa(e,p,r);break;case e.nodeType.HEXAGON:NEa(e,p,r);break}return e.setElementForId(r.id,h),r.height},DEa=function(e,t){const r=e.getElementById(t.id),a=t.x||0,s=t.y||0;r.attr("transform","translate("+a+","+s+")")};CS.use(KVn);function Jnr(e,t,r,a,s){LEa(e,t,r,a,s),r.children&&r.children.forEach((o,u)=>{Jnr(e,t,o,a<0?u:a,s)})}function MEa(e,t){t.edges().map((r,a)=>{const s=r.data();if(r[0]._private.bodyBounds){const o=r[0]._private.rscratch;ut.trace("Edge: ",a,s),e.insert("path").attr("d",`M ${o.startX},${o.startY} L ${o.midX},${o.midY} L${o.endX},${o.endY} `).attr("class","edge section-edge-"+s.section+" edge-depth-"+s.depth)}})}function err(e,t,r,a){t.add({group:"nodes",data:{id:e.id.toString(),labelText:e.descr,height:e.height,width:e.width,level:a,nodeId:e.id,padding:e.padding,type:e.type},position:{x:e.x,y:e.y}}),e.children&&e.children.forEach(s=>{err(s,t,r,a+1),t.add({group:"edges",data:{id:`${e.id}_${s.id}`,source:e.id,target:s.id,depth:a,section:s.section}})})}function PEa(e,t){return new Promise(r=>{const a=gn("body").append("div").attr("id","cy").attr("style","display:none"),s=CS({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});a.remove(),err(e,s,t,0),s.nodes().forEach(function(o){o.layoutDimensions=()=>{const u=o.data();return{w:u.width,h:u.height}}}),s.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),s.ready(o=>{ut.info("Ready",o),r(s)})})}function BEa(e,t){t.nodes().map((r,a)=>{const s=r.data();s.x=r.position().x,s.y=r.position().y,DEa(e,s);const o=e.getElementById(s.nodeId);ut.info("Id:",a,"Position: (",r.position().x,", ",r.position().y,")",s),o.attr("transform",`translate(${r.position().x-s.width/2}, ${r.position().y-s.height/2})`),o.attr("attr",`apa-${a})`)})}const FEa=async(e,t,r,a)=>{var s,o;ut.debug(`Rendering mindmap diagram `+e);const u=a.db,h=u.getMindmap();if(!h)return;const f=Qt();f.htmlLabels=!1;const p=Zce(t),m=p.append("g");m.attr("class","mindmap-edges");const b=p.append("g");b.attr("class","mindmap-nodes"),Jnr(u,b,h,-1,f);const _=await PEa(h,f);MEa(m,_),BEa(u,_),oL(void 0,p,((s=f.mindmap)==null?void 0:s.padding)??fd.mindmap.padding,((o=f.mindmap)==null?void 0:o.useMaxWidth)??fd.mindmap.useMaxWidth)},$Ea={draw:FEa},UEa=e=>{let t="";for(let r=0;r` .edge { stroke-width: 3; } ${UEa(e)} .section-root rect, .section-root path, .section-root circle, .section-root polygon { fill: ${e.git0}; } .section-root text { fill: ${e.gitBranchLabel0}; } .icon-container { height:100%; display: flex; justify-content: center; align-items: center; } .edge { fill: none; } .mindmap-node-label { dy: 1em; alignment-baseline: middle; text-anchor: middle; dominant-baseline: middle; text-align: center; } `,GEa=zEa,qEa={db:xEa,renderer:$Ea,parser:hEa,styles:GEa},HEa=Object.freeze(Object.defineProperty({__proto__:null,diagram:qEa},Symbol.toStringTag,{value:"Module"}));var rdt=function(){var e=function(h,f,p,m){for(p=p||{},m=h.length;m--;p[h[m]]=f);return p},t=[1,9],r=[1,10],a=[1,5,10,12],s={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(f,p,m,b,_,w,S){var C=w.length-1;switch(_){case 7:const A=b.findOrCreateNode(w[C-4].trim().replaceAll('""','"')),k=b.findOrCreateNode(w[C-2].trim().replaceAll('""','"')),I=parseFloat(w[C].trim());b.addLink(A,k,I);break;case 8:case 9:case 11:this.$=w[C];break;case 10:this.$=w[C-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:t,20:r},{1:[2,6],7:11,10:[1,12]},e(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(a,[2,8]),e(a,[2,9]),{19:[1,16]},e(a,[2,11]),{1:[2,1]},{1:[2,5]},e(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:t,20:r},{15:18,16:7,17:8,18:t,20:r},{18:[1,19]},e(r,[2,3]),{12:[1,20]},e(a,[2,10]),{15:21,16:7,17:8,18:t,20:r},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(f,p){if(p.recoverable)this.trace(f);else{var m=new Error(f);throw m.hash=p,m}},parse:function(f){var p=this,m=[0],b=[],_=[null],w=[],S=this.table,C="",A=0,k=0,I=2,N=1,L=w.slice.call(arguments,1),P=Object.create(this.lexer),M={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(M.yy[F]=this.yy[F]);P.setInput(f,M.yy),M.yy.lexer=P,M.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var U=P.yylloc;w.push(U);var $=P.options&&P.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function G(){var ne;return ne=b.pop()||P.lex()||N,typeof ne!="number"&&(ne instanceof Array&&(b=ne,ne=b.pop()),ne=p.symbols_[ne]||ne),ne}for(var B,Z,z,Y,W={},Q,V,j,ee;;){if(Z=m[m.length-1],this.defaultActions[Z]?z=this.defaultActions[Z]:((B===null||typeof B>"u")&&(B=G()),z=S[Z]&&S[Z][B]),typeof z>"u"||!z.length||!z[0]){var te="";ee=[];for(Q in S[Z])this.terminals_[Q]&&Q>I&&ee.push("'"+this.terminals_[Q]+"'");P.showPosition?te="Parse error on line "+(A+1)+`: `+P.showPosition()+` Expecting `+ee.join(", ")+", got '"+(this.terminals_[B]||B)+"'":te="Parse error on line "+(A+1)+": Unexpected "+(B==N?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(te,{text:P.match,token:this.terminals_[B]||B,line:P.yylineno,loc:U,expected:ee})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Z+", token: "+B);switch(z[0]){case 1:m.push(B),_.push(P.yytext),w.push(P.yylloc),m.push(z[1]),B=null,k=P.yyleng,C=P.yytext,A=P.yylineno,U=P.yylloc;break;case 2:if(V=this.productions_[z[1]][1],W.$=_[_.length-V],W._$={first_line:w[w.length-(V||1)].first_line,last_line:w[w.length-1].last_line,first_column:w[w.length-(V||1)].first_column,last_column:w[w.length-1].last_column},$&&(W._$.range=[w[w.length-(V||1)].range[0],w[w.length-1].range[1]]),Y=this.performAction.apply(W,[C,k,A,M.yy,z[1],_,w].concat(L)),typeof Y<"u")return Y;V&&(m=m.slice(0,-1*V*2),_=_.slice(0,-1*V),w=w.slice(0,-1*V)),m.push(this.productions_[z[1]][0]),_.push(W.$),w.push(W._$),j=S[m[m.length-2]][m[m.length-1]],m.push(j);break;case 3:return!0}}return!0}},o=function(){var h={EOF:1,parseError:function(p,m){if(this.yy.parser)this.yy.parser.parseError(p,m);else throw new Error(p)},setInput:function(f,p){return this.yy=p||this.yy||{},this._input=f,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var f=this._input[0];this.yytext+=f,this.yyleng++,this.offset++,this.match+=f,this.matched+=f;var p=f.match(/(?:\r\n?|\n).*/g);return p?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),f},unput:function(f){var p=f.length,m=f.split(/(?:\r\n?|\n)/g);this._input=f+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-p),this.offset-=p;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===b.length?this.yylloc.first_column:0)+b[b.length-m.length].length-m[0].length:this.yylloc.first_column-p},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-p]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(f){this.unput(this.match.slice(f))},pastInput:function(){var f=this.matched.substr(0,this.matched.length-this.match.length);return(f.length>20?"...":"")+f.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var f=this.match;return f.length<20&&(f+=this._input.substr(0,20-f.length)),(f.substr(0,20)+(f.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var f=this.pastInput(),p=new Array(f.length+1).join("-");return f+this.upcomingInput()+` `+p+"^"},test_match:function(f,p){var m,b,_;if(this.options.backtrack_lexer&&(_={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(_.yylloc.range=this.yylloc.range.slice(0))),b=f[0].match(/(?:\r\n?|\n).*/g),b&&(this.yylineno+=b.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+f[0].length},this.yytext+=f[0],this.match+=f[0],this.matches=f,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(f[0].length),this.matched+=f[0],m=this.performAction.call(this,this.yy,this,p,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var w in _)this[w]=_[w];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var f,p,m,b;this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),w=0;w<_.length;w++)if(m=this._input.match(this.rules[_[w]]),m&&(!p||m[0].length>p[0].length)){if(p=m,b=w,this.options.backtrack_lexer){if(f=this.test_match(m,_[w]),f!==!1)return f;if(this._backtrack){p=!1;continue}else return!1}else if(!this.options.flex)break}return p?(f=this.test_match(p,_[b]),f!==!1?f:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var p=this.next();return p||this.lex()},begin:function(p){this.conditionStack.push(p)},popState:function(){var p=this.conditionStack.length-1;return p>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(p){return p=this.conditionStack.length-1-Math.abs(p||0),p>=0?this.conditionStack[p]:"INITIAL"},pushState:function(p){this.begin(p)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(p,m,b,_){switch(b){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return h}();s.lexer=o;function u(){this.yy={}}return u.prototype=s,s.Parser=u,new u}();rdt.parser=rdt;const E5e=rdt;let A6e=[],k6e=[],zV={};const VEa=()=>{A6e=[],k6e=[],zV={},Mb()};class YEa{constructor(t,r,a=0){this.source=t,this.target=r,this.value=a}}const jEa=(e,t,r)=>{A6e.push(new YEa(e,t,r))};class WEa{constructor(t){this.ID=t}}const KEa=e=>(e=mi.sanitizeText(e,Qt()),zV[e]||(zV[e]=new WEa(e),k6e.push(zV[e])),zV[e]),XEa=()=>k6e,QEa=()=>A6e,ZEa=()=>({nodes:k6e.map(e=>({id:e.ID})),links:A6e.map(e=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),JEa={nodesMap:zV,getConfig:()=>Qt().sankey,getNodes:XEa,getLinks:QEa,getGraph:ZEa,addLink:jEa,findOrCreateNode:KEa,getAccTitle:Ev,setAccTitle:Pb,getAccDescription:Sv,setAccDescription:xv,getDiagramTitle:Tv,setDiagramTitle:Zw,clear:VEa},trr=class idt{static next(t){return new idt(t+ ++idt.count)}constructor(t){this.id=t,this.href=`#${t}`}toString(){return"url("+this.href+")"}};trr.count=0;let sAn=trr;const exa={left:MXn,right:PXn,center:BXn,justify:obt},txa=function(e,t,r,a){const{securityLevel:s,sankey:o}=Qt(),u=TZn.sankey;let h;s==="sandbox"&&(h=gn("#i"+t));const f=gn(s==="sandbox"?h.nodes()[0].contentDocument.body:"body"),p=s==="sandbox"?f.select(`[id="${t}"]`):gn(`[id="${t}"]`),m=(o==null?void 0:o.width)??u.width,b=(o==null?void 0:o.height)??u.width,_=(o==null?void 0:o.useMaxWidth)??u.useMaxWidth,w=(o==null?void 0:o.nodeAlignment)??u.nodeAlignment,S=(o==null?void 0:o.prefix)??u.prefix,C=(o==null?void 0:o.suffix)??u.suffix,A=(o==null?void 0:o.showValues)??u.showValues,k=a.db.getGraph(),I=exa[w];FXn().nodeId(G=>G.id).nodeWidth(10).nodePadding(10+(A?15:0)).nodeAlign(I).extent([[0,0],[m,b]])(k);const P=cA(o1t);p.append("g").attr("class","nodes").selectAll(".node").data(k.nodes).join("g").attr("class","node").attr("id",G=>(G.uid=sAn.next("node-")).id).attr("transform",function(G){return"translate("+G.x0+","+G.y0+")"}).attr("x",G=>G.x0).attr("y",G=>G.y0).append("rect").attr("height",G=>G.y1-G.y0).attr("width",G=>G.x1-G.x0).attr("fill",G=>P(G.id));const M=({id:G,value:B})=>A?`${G} ${S}${Math.round(B*100)/100}${C}`:G;p.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(k.nodes).join("text").attr("x",G=>G.x0(G.y1+G.y0)/2).attr("dy",`${A?"0":"0.35"}em`).attr("text-anchor",G=>G.x0(B.uid=sAn.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",B=>B.source.x1).attr("x2",B=>B.target.x0);G.append("stop").attr("offset","0%").attr("stop-color",B=>P(B.source.id)),G.append("stop").attr("offset","100%").attr("stop-color",B=>P(B.target.id))}let $;switch(U){case"gradient":$=G=>G.uid;break;case"source":$=G=>P(G.source.id);break;case"target":$=G=>P(G.target.id);break;default:$=U}F.append("path").attr("d",UXn()).attr("stroke",$).attr("stroke-width",G=>Math.max(1,G.width)),oL(void 0,p,0,_)},nxa={draw:txa},rxa=e=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,` `).trim(),ixa=E5e.parse.bind(E5e);E5e.parse=e=>ixa(rxa(e));const axa={parser:E5e,db:JEa,renderer:nxa},sxa=Object.freeze(Object.defineProperty({__proto__:null,diagram:axa},Symbol.toStringTag,{value:"Module"}));var oAn,lAn,adt=function(){var e=function(N,L,P,M){for(P=P||{},M=N.length;M--;P[N[M]]=L);return P},t=[1,7],r=[1,13],a=[1,14],s=[1,15],o=[1,19],u=[1,16],h=[1,17],f=[1,18],p=[8,30],m=[8,21,28,29,30,31,32,40,44,47],b=[1,23],_=[1,24],w=[8,15,16,21,28,29,30,31,32,40,44,47],S=[8,15,16,21,27,28,29,30,31,32,40,44,47],C=[1,49],A={trace:function(){},yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:function(L,P,M,F,U,$,G){var B=$.length-1;switch(U){case 4:F.getLogger().debug("Rule: separator (NL) ");break;case 5:F.getLogger().debug("Rule: separator (Space) ");break;case 6:F.getLogger().debug("Rule: separator (EOF) ");break;case 7:F.getLogger().debug("Rule: hierarchy: ",$[B-1]),F.setHierarchy($[B-1]);break;case 8:F.getLogger().debug("Stop NL ");break;case 9:F.getLogger().debug("Stop EOF ");break;case 10:F.getLogger().debug("Stop NL2 ");break;case 11:F.getLogger().debug("Stop EOF2 ");break;case 12:F.getLogger().debug("Rule: statement: ",$[B]),typeof $[B].length=="number"?this.$=$[B]:this.$=[$[B]];break;case 13:F.getLogger().debug("Rule: statement #2: ",$[B-1]),this.$=[$[B-1]].concat($[B]);break;case 14:F.getLogger().debug("Rule: link: ",$[B],L),this.$={edgeTypeStr:$[B],label:""};break;case 15:F.getLogger().debug("Rule: LABEL link: ",$[B-3],$[B-1],$[B]),this.$={edgeTypeStr:$[B],label:$[B-1]};break;case 18:const Z=parseInt($[B]),z=F.generateId();this.$={id:z,type:"space",label:"",width:Z,children:[]};break;case 23:F.getLogger().debug("Rule: (nodeStatement link node) ",$[B-2],$[B-1],$[B]," typestr: ",$[B-1].edgeTypeStr);const Y=F.edgeStrToEdgeData($[B-1].edgeTypeStr);this.$=[{id:$[B-2].id,label:$[B-2].label,type:$[B-2].type,directions:$[B-2].directions},{id:$[B-2].id+"-"+$[B].id,start:$[B-2].id,end:$[B].id,label:$[B-1].label,type:"edge",directions:$[B].directions,arrowTypeEnd:Y,arrowTypeStart:"arrow_open"},{id:$[B].id,label:$[B].label,type:F.typeStr2Type($[B].typeStr),directions:$[B].directions}];break;case 24:F.getLogger().debug("Rule: nodeStatement (abc88 node size) ",$[B-1],$[B]),this.$={id:$[B-1].id,label:$[B-1].label,type:F.typeStr2Type($[B-1].typeStr),directions:$[B-1].directions,widthInColumns:parseInt($[B],10)};break;case 25:F.getLogger().debug("Rule: nodeStatement (node) ",$[B]),this.$={id:$[B].id,label:$[B].label,type:F.typeStr2Type($[B].typeStr),directions:$[B].directions,widthInColumns:1};break;case 26:F.getLogger().debug("APA123",this?this:"na"),F.getLogger().debug("COLUMNS: ",$[B]),this.$={type:"column-setting",columns:$[B]==="auto"?-1:parseInt($[B])};break;case 27:F.getLogger().debug("Rule: id-block statement : ",$[B-2],$[B-1]),F.generateId(),this.$={...$[B-2],type:"composite",children:$[B-1]};break;case 28:F.getLogger().debug("Rule: blockStatement : ",$[B-2],$[B-1],$[B]);const W=F.generateId();this.$={id:W,type:"composite",label:"",children:$[B-1]};break;case 29:F.getLogger().debug("Rule: node (NODE_ID separator): ",$[B]),this.$={id:$[B]};break;case 30:F.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",$[B-1],$[B]),this.$={id:$[B-1],label:$[B].label,typeStr:$[B].typeStr,directions:$[B].directions};break;case 31:F.getLogger().debug("Rule: dirList: ",$[B]),this.$=[$[B]];break;case 32:F.getLogger().debug("Rule: dirList: ",$[B-1],$[B]),this.$=[$[B-1]].concat($[B]);break;case 33:F.getLogger().debug("Rule: nodeShapeNLabel: ",$[B-2],$[B-1],$[B]),this.$={typeStr:$[B-2]+$[B],label:$[B-1]};break;case 34:F.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",$[B-3],$[B-2]," #3:",$[B-1],$[B]),this.$={typeStr:$[B-3]+$[B],label:$[B-2],directions:$[B-1]};break;case 35:case 36:this.$={type:"classDef",id:$[B-1].trim(),css:$[B].trim()};break;case 37:this.$={type:"applyClass",id:$[B-1].trim(),styleClass:$[B].trim()};break;case 38:this.$={type:"applyStyles",id:$[B-1].trim(),stylesStr:$[B].trim()};break}},table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:a,31:s,32:o,40:u,44:h,47:f},{8:[1,20]},e(p,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:t,28:r,29:a,31:s,32:o,40:u,44:h,47:f}),e(m,[2,16],{14:22,15:b,16:_}),e(m,[2,17]),e(m,[2,18]),e(m,[2,19]),e(m,[2,20]),e(m,[2,21]),e(m,[2,22]),e(w,[2,25],{27:[1,25]}),e(m,[2,26]),{19:26,26:12,32:o},{11:27,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:a,31:s,32:o,40:u,44:h,47:f},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(S,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(p,[2,13]),{26:35,32:o},{32:[2,14]},{17:[1,36]},e(w,[2,24]),{11:37,13:4,14:22,15:b,16:_,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:a,31:s,32:o,40:u,44:h,47:f},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(m,[2,28]),e(m,[2,35]),e(m,[2,36]),e(m,[2,37]),e(m,[2,38]),{37:[1,47]},{34:48,35:C},{15:[1,50]},e(m,[2,27]),e(S,[2,33]),{39:[1,51]},{34:52,35:C,39:[2,31]},{32:[2,15]},e(S,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:function(L,P){if(P.recoverable)this.trace(L);else{var M=new Error(L);throw M.hash=P,M}},parse:function(L){var P=this,M=[0],F=[],U=[null],$=[],G=this.table,B="",Z=0,z=0,Y=2,W=1,Q=$.slice.call(arguments,1),V=Object.create(this.lexer),j={yy:{}};for(var ee in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ee)&&(j.yy[ee]=this.yy[ee]);V.setInput(L,j.yy),j.yy.lexer=V,j.yy.parser=this,typeof V.yylloc>"u"&&(V.yylloc={});var te=V.yylloc;$.push(te);var ne=V.options&&V.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function se(){var Ce;return Ce=F.pop()||V.lex()||W,typeof Ce!="number"&&(Ce instanceof Array&&(F=Ce,Ce=F.pop()),Ce=P.symbols_[Ce]||Ce),Ce}for(var ie,ge,ce,be,ve={},De,ye,Ee,he;;){if(ge=M[M.length-1],this.defaultActions[ge]?ce=this.defaultActions[ge]:((ie===null||typeof ie>"u")&&(ie=se()),ce=G[ge]&&G[ge][ie]),typeof ce>"u"||!ce.length||!ce[0]){var we="";he=[];for(De in G[ge])this.terminals_[De]&&De>Y&&he.push("'"+this.terminals_[De]+"'");V.showPosition?we="Parse error on line "+(Z+1)+`: `+V.showPosition()+` Expecting `+he.join(", ")+", got '"+(this.terminals_[ie]||ie)+"'":we="Parse error on line "+(Z+1)+": Unexpected "+(ie==W?"end of input":"'"+(this.terminals_[ie]||ie)+"'"),this.parseError(we,{text:V.match,token:this.terminals_[ie]||ie,line:V.yylineno,loc:te,expected:he})}if(ce[0]instanceof Array&&ce.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ge+", token: "+ie);switch(ce[0]){case 1:M.push(ie),U.push(V.yytext),$.push(V.yylloc),M.push(ce[1]),ie=null,z=V.yyleng,B=V.yytext,Z=V.yylineno,te=V.yylloc;break;case 2:if(ye=this.productions_[ce[1]][1],ve.$=U[U.length-ye],ve._$={first_line:$[$.length-(ye||1)].first_line,last_line:$[$.length-1].last_line,first_column:$[$.length-(ye||1)].first_column,last_column:$[$.length-1].last_column},ne&&(ve._$.range=[$[$.length-(ye||1)].range[0],$[$.length-1].range[1]]),be=this.performAction.apply(ve,[B,z,Z,j.yy,ce[1],U,$].concat(Q)),typeof be<"u")return be;ye&&(M=M.slice(0,-1*ye*2),U=U.slice(0,-1*ye),$=$.slice(0,-1*ye)),M.push(this.productions_[ce[1]][0]),U.push(ve.$),$.push(ve._$),Ee=G[M[M.length-2]][M[M.length-1]],M.push(Ee);break;case 3:return!0}}return!0}},k=function(){var N={EOF:1,parseError:function(P,M){if(this.yy.parser)this.yy.parser.parseError(P,M);else throw new Error(P)},setInput:function(L,P){return this.yy=P||this.yy||{},this._input=L,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var L=this._input[0];this.yytext+=L,this.yyleng++,this.offset++,this.match+=L,this.matched+=L;var P=L.match(/(?:\r\n?|\n).*/g);return P?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),L},unput:function(L){var P=L.length,M=L.split(/(?:\r\n?|\n)/g);this._input=L+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-P),this.offset-=P;var F=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),M.length-1&&(this.yylineno-=M.length-1);var U=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:M?(M.length===F.length?this.yylloc.first_column:0)+F[F.length-M.length].length-M[0].length:this.yylloc.first_column-P},this.options.ranges&&(this.yylloc.range=[U[0],U[0]+this.yyleng-P]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(L){this.unput(this.match.slice(L))},pastInput:function(){var L=this.matched.substr(0,this.matched.length-this.match.length);return(L.length>20?"...":"")+L.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var L=this.match;return L.length<20&&(L+=this._input.substr(0,20-L.length)),(L.substr(0,20)+(L.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var L=this.pastInput(),P=new Array(L.length+1).join("-");return L+this.upcomingInput()+` `+P+"^"},test_match:function(L,P){var M,F,U;if(this.options.backtrack_lexer&&(U={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(U.yylloc.range=this.yylloc.range.slice(0))),F=L[0].match(/(?:\r\n?|\n).*/g),F&&(this.yylineno+=F.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:F?F[F.length-1].length-F[F.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+L[0].length},this.yytext+=L[0],this.match+=L[0],this.matches=L,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(L[0].length),this.matched+=L[0],M=this.performAction.call(this,this.yy,this,P,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),M)return M;if(this._backtrack){for(var $ in U)this[$]=U[$];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var L,P,M,F;this._more||(this.yytext="",this.match="");for(var U=this._currentRules(),$=0;$P[0].length)){if(P=M,F=$,this.options.backtrack_lexer){if(L=this.test_match(M,U[$]),L!==!1)return L;if(this._backtrack){P=!1;continue}else return!1}else if(!this.options.flex)break}return P?(L=this.test_match(P,U[F]),L!==!1?L:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var P=this.next();return P||this.lex()},begin:function(P){this.conditionStack.push(P)},popState:function(){var P=this.conditionStack.length-1;return P>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(P){return P=this.conditionStack.length-1-Math.abs(P||0),P>=0?this.conditionStack[P]:"INITIAL"},pushState:function(P){this.begin(P)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(P,M,F,U){switch(F){case 0:return 10;case 1:return P.getLogger().debug("Found space-block"),31;case 2:return P.getLogger().debug("Found nl-block"),31;case 3:return P.getLogger().debug("Found space-block"),29;case 4:P.getLogger().debug(".",M.yytext);break;case 5:P.getLogger().debug("_",M.yytext);break;case 6:return 5;case 7:return M.yytext=-1,28;case 8:return M.yytext=M.yytext.replace(/columns\s+/,""),P.getLogger().debug("COLUMNS (LEX)",M.yytext),28;case 9:this.pushState("md_string");break;case 10:return"MD_STR";case 11:this.popState();break;case 12:this.pushState("string");break;case 13:P.getLogger().debug("LEX: POPPING STR:",M.yytext),this.popState();break;case 14:return P.getLogger().debug("LEX: STR end:",M.yytext),"STR";case 15:return M.yytext=M.yytext.replace(/space\:/,""),P.getLogger().debug("SPACE NUM (LEX)",M.yytext),21;case 16:return M.yytext="1",P.getLogger().debug("COLUMNS (LEX)",M.yytext),21;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 22:return this.popState(),this.pushState("CLASSDEFID"),41;case 23:return this.popState(),42;case 24:return this.pushState("CLASS"),44;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;case 26:return this.popState(),46;case 27:return this.pushState("STYLE_STMNT"),47;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;case 29:return this.popState(),49;case 30:return this.pushState("acc_title"),"acc_title";case 31:return this.popState(),"acc_title_value";case 32:return this.pushState("acc_descr"),"acc_descr";case 33:return this.popState(),"acc_descr_value";case 34:this.pushState("acc_descr_multiline");break;case 35:this.popState();break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:return this.popState(),P.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),P.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),P.getLogger().debug("Lex: ))"),"NODE_DEND";case 41:return this.popState(),P.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),P.getLogger().debug("Lex: (("),"NODE_DEND";case 43:return this.popState(),P.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),P.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),P.getLogger().debug("Lex: (("),"NODE_DEND";case 46:return this.popState(),P.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),P.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),P.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:return this.popState(),P.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),P.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),P.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),P.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),P.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),P.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return P.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return P.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return P.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:return P.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return P.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 60:return P.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 61:return P.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 62:return P.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 63:return P.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return P.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 65:return P.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 66:return this.pushState("NODE"),36;case 67:return this.pushState("NODE"),36;case 68:return this.pushState("NODE"),36;case 69:return this.pushState("NODE"),36;case 70:return this.pushState("NODE"),36;case 71:return this.pushState("NODE"),36;case 72:return this.pushState("NODE"),36;case 73:return P.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),P.getLogger().debug("LEX ARR START"),38;case 75:return P.getLogger().debug("Lex: NODE_ID",M.yytext),32;case 76:return P.getLogger().debug("Lex: EOF",M.yytext),8;case 77:this.pushState("md_string");break;case 78:this.pushState("md_string");break;case 79:return"NODE_DESCR";case 80:this.popState();break;case 81:P.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:P.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return P.getLogger().debug("LEX: NODE_DESCR:",M.yytext),"NODE_DESCR";case 84:P.getLogger().debug("LEX POPPING"),this.popState();break;case 85:P.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (right): dir:",M.yytext),"DIR";case 87:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (left):",M.yytext),"DIR";case 88:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (x):",M.yytext),"DIR";case 89:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (y):",M.yytext),"DIR";case 90:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (up):",M.yytext),"DIR";case 91:return M.yytext=M.yytext.replace(/^,\s*/,""),P.getLogger().debug("Lex (down):",M.yytext),"DIR";case 92:return M.yytext="]>",P.getLogger().debug("Lex (ARROW_DIR end):",M.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 93:return P.getLogger().debug("Lex: LINK","#"+M.yytext+"#"),15;case 94:return P.getLogger().debug("Lex: LINK",M.yytext),15;case 95:return P.getLogger().debug("Lex: LINK",M.yytext),15;case 96:return P.getLogger().debug("Lex: LINK",M.yytext),15;case 97:return P.getLogger().debug("Lex: START_LINK",M.yytext),this.pushState("LLABEL"),16;case 98:return P.getLogger().debug("Lex: START_LINK",M.yytext),this.pushState("LLABEL"),16;case 99:return P.getLogger().debug("Lex: START_LINK",M.yytext),this.pushState("LLABEL"),16;case 100:this.pushState("md_string");break;case 101:return P.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 102:return this.popState(),P.getLogger().debug("Lex: LINK","#"+M.yytext+"#"),15;case 103:return this.popState(),P.getLogger().debug("Lex: LINK",M.yytext),15;case 104:return this.popState(),P.getLogger().debug("Lex: LINK",M.yytext),15;case 105:return P.getLogger().debug("Lex: COLON",M.yytext),M.yytext=M.yytext.slice(1),27}},rules:[/^(?:block-beta\b)/,/^(?:block\s+)/,/^(?:block\n+)/,/^(?:block:)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[29],inclusive:!1},STYLE_STMNT:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[23],inclusive:!1},CLASSDEF:{rules:[21,22],inclusive:!1},CLASS_STYLE:{rules:[26],inclusive:!1},CLASS:{rules:[25],inclusive:!1},LLABEL:{rules:[100,101,102,103,104],inclusive:!1},ARROW_DIR:{rules:[86,87,88,89,90,91,92],inclusive:!1},BLOCK_ARROW:{rules:[77,82,85],inclusive:!1},NODE:{rules:[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,78,81],inclusive:!1},md_string:{rules:[10,11,79,80],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[13,14,83,84],inclusive:!1},acc_descr_multiline:{rules:[35,36],inclusive:!1},acc_descr:{rules:[33],inclusive:!1},acc_title:{rules:[31],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,12,15,16,17,18,19,20,24,27,30,32,34,37,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,93,94,95,96,97,98,99,105],inclusive:!0}}};return N}();A.lexer=k;function I(){this.yy={}}return I.prototype=A,A.Parser=I,new I}();adt.parser=adt;const oxa=adt;let V2={},kyt=[],Hae={};const cAn="color",uAn="fill",lxa="bgFill",nrr=",",cxa=Qt();let $se={};const uxa=e=>mi.sanitizeText(e,cxa),hxa=function(e,t=""){$se[e]===void 0&&($se[e]={id:e,styles:[],textStyles:[]});const r=$se[e];t!=null&&t.split(nrr).forEach(a=>{const s=a.replace(/([^;]*);/,"$1").trim();if(a.match(cAn)){const u=s.replace(uAn,lxa).replace(cAn,uAn);r.textStyles.push(u)}r.styles.push(s)})},dxa=function(e,t=""){const r=V2[e];t!=null&&(r.styles=t.split(nrr))},fxa=function(e,t){e.split(",").forEach(function(r){let a=V2[r];if(a===void 0){const s=r.trim();V2[s]={id:s,type:"na",children:[]},a=V2[s]}a.classes||(a.classes=[]),a.classes.push(t)})},rrr=(e,t)=>{const r=e.flat(),a=[];for(const s of r){if(s.label&&(s.label=uxa(s.label)),s.type==="classDef"){hxa(s.id,s.css);continue}if(s.type==="applyClass"){fxa(s.id,(s==null?void 0:s.styleClass)||"");continue}if(s.type==="applyStyles"){s!=null&&s.stylesStr&&dxa(s.id,s==null?void 0:s.stylesStr);continue}if(s.type==="column-setting")t.columns=s.columns||-1;else if(s.type==="edge")Hae[s.id]?Hae[s.id]++:Hae[s.id]=1,s.id=Hae[s.id]+"-"+s.id,kyt.push(s);else{s.label||(s.type==="composite"?s.label="":s.label=s.id);const o=!V2[s.id];if(o?V2[s.id]=s:(s.type!=="na"&&(V2[s.id].type=s.type),s.label!==s.id&&(V2[s.id].label=s.label)),s.children&&rrr(s.children,s),s.type==="space"){const u=s.width||1;for(let h=0;h{ut.debug("Clear called"),Mb(),Use={id:"root",type:"composite",children:[],columns:-1},V2={root:Use},Ryt=[],$se={},kyt=[],Hae={}};function gxa(e){switch(ut.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return ut.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function mxa(e){switch(ut.debug("typeStr2Type",e),e){case"==":return"thick";default:return"normal"}}function bxa(e){switch(e.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}}let hAn=0;const yxa=()=>(hAn++,"id-"+Math.random().toString(36).substr(2,12)+"-"+hAn),vxa=e=>{Use.children=e,rrr(e,Use),Ryt=Use.children},_xa=e=>{const t=V2[e];return t?t.columns?t.columns:t.children?t.children.length:-1:-1},wxa=()=>[...Object.values(V2)],Exa=()=>Ryt||[],xxa=()=>kyt,Sxa=e=>V2[e],Txa=e=>{V2[e.id]=e},Cxa=()=>console,Axa=function(){return $se},kxa={getConfig:()=>Lf().block,typeStr2Type:gxa,edgeTypeStr2Type:mxa,edgeStrToEdgeData:bxa,getLogger:Cxa,getBlocksFlat:wxa,getBlocks:Exa,getEdges:xxa,setHierarchy:vxa,getBlock:Sxa,setBlock:Txa,getColumns:_xa,getClasses:Axa,clear:pxa,generateId:yxa},Rxa=kxa,AEe=(e,t)=>{const r=ece,a=r(e,"r"),s=r(e,"g"),o=r(e,"b");return Z2(a,s,o,t)},Ixa=e=>`.label { font-family: ${e.fontFamily}; color: ${e.nodeTextColor||e.textColor}; } .cluster-label text { fill: ${e.titleColor}; } .cluster-label span,p { color: ${e.titleColor}; } .label text,span,p { fill: ${e.nodeTextColor||e.textColor}; color: ${e.nodeTextColor||e.textColor}; } .node rect, .node circle, .node ellipse, .node polygon, .node path { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: 1px; } .flowchart-label text { text-anchor: middle; } // .flowchart-label .text-outer-tspan { // text-anchor: middle; // } // .flowchart-label .text-inner-tspan { // text-anchor: start; // } .node .label { text-align: center; } .node.clickable { cursor: pointer; } .arrowheadPath { fill: ${e.arrowheadColor}; } .edgePath .path { stroke: ${e.lineColor}; stroke-width: 2.0px; } .flowchart-link { stroke: ${e.lineColor}; fill: none; } .edgeLabel { background-color: ${e.edgeLabelBackground}; rect { opacity: 0.5; background-color: ${e.edgeLabelBackground}; fill: ${e.edgeLabelBackground}; } text-align: center; } /* For html labels only */ .labelBkg { background-color: ${AEe(e.edgeLabelBackground,.5)}; // background-color: } .node .cluster { // fill: ${AEe(e.mainBkg,.5)}; fill: ${AEe(e.clusterBkg,.5)}; stroke: ${AEe(e.clusterBorder,.2)}; box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px; stroke-width: 1px; } .cluster text { fill: ${e.titleColor}; } .cluster span,p { color: ${e.titleColor}; } /* .cluster div { color: ${e.titleColor}; } */ div.mermaidTooltip { position: absolute; text-align: center; max-width: 200px; padding: 2px; font-family: ${e.fontFamily}; font-size: 12px; background: ${e.tertiaryColor}; border: 1px solid ${e.border2}; border-radius: 2px; pointer-events: none; z-index: 100; } .flowchartTitleText { text-anchor: middle; font-size: 18px; fill: ${e.textColor}; } `,Nxa=Ixa;function irr(e,t,r=!1){var a,s,o;const u=e;let h="default";(((a=u==null?void 0:u.classes)==null?void 0:a.length)||0)>0&&(h=((u==null?void 0:u.classes)||[]).join(" ")),h=h+" flowchart-label";let f=0,p="",m;switch(u.type){case"round":f=5,p="rect";break;case"composite":f=0,p="composite",m=0;break;case"square":p="rect";break;case"diamond":p="question";break;case"hexagon":p="hexagon";break;case"block_arrow":p="block_arrow";break;case"odd":p="rect_left_inv_arrow";break;case"lean_right":p="lean_right";break;case"lean_left":p="lean_left";break;case"trapezoid":p="trapezoid";break;case"inv_trapezoid":p="inv_trapezoid";break;case"rect_left_inv_arrow":p="rect_left_inv_arrow";break;case"circle":p="circle";break;case"ellipse":p="ellipse";break;case"stadium":p="stadium";break;case"subroutine":p="subroutine";break;case"cylinder":p="cylinder";break;case"group":p="rect";break;case"doublecircle":p="doublecircle";break;default:p="rect"}const b=Hw((u==null?void 0:u.styles)||[]),_=u.label,w=u.size||{width:0,height:0,x:0,y:0};return{labelStyle:b.labelStyle,shape:p,labelText:_,rx:f,ry:f,class:h,style:b.style,id:u.id,directions:u.directions,width:w.width,height:w.height,x:w.x,y:w.y,positioned:r,intersect:void 0,type:u.type,padding:m??(((o=(s=Lf())==null?void 0:s.block)==null?void 0:o.padding)||0)}}async function Oxa(e,t,r){const a=irr(t,r,!1);if(a.type==="group")return;const s=await _6e(e,a),o=s.node().getBBox(),u=r.getBlock(a.id);u.size={width:o.width,height:o.height,x:0,y:0,node:s},r.setBlock(u),s.remove()}async function Lxa(e,t,r){const a=irr(t,r,!0);r.getBlock(a.id).type!=="space"&&(await _6e(e,a),t.intersect=a==null?void 0:a.intersect,Aht(a))}async function Iyt(e,t,r,a){for(const s of t)await a(e,s,r),s.children&&await Iyt(e,s.children,r,a)}async function Dxa(e,t,r){await Iyt(e,t,r,Oxa)}async function Mxa(e,t,r){await Iyt(e,t,r,Lxa)}async function Pxa(e,t,r,a,s){const o=new F1({multigraph:!0,compound:!0});o.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const u of r)u.size&&o.setNode(u.id,{width:u.size.width,height:u.size.height,intersect:u.intersect});for(const u of t)if(u.start&&u.end){const h=a.getBlock(u.start),f=a.getBlock(u.end);if(h!=null&&h.size&&(f!=null&&f.size)){const p=h.size,m=f.size,b=[{x:p.x,y:p.y},{x:p.x+(m.x-p.x)/2,y:p.y+(m.y-p.y)/2},{x:m.x,y:m.y}];await zer(e,{v:u.start,w:u.end,name:u.id},{...u,arrowTypeEnd:u.arrowTypeEnd,arrowTypeStart:u.arrowTypeStart,points:b,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",o,s),u.label&&(await Kbt(e,{...u,label:u.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:u.arrowTypeEnd,arrowTypeStart:u.arrowTypeStart}),await Uer({...u,x:b[1].x,y:b[1].y},{originalPath:b}))}}}const Y0=((lAn=(oAn=Qt())==null?void 0:oAn.block)==null?void 0:lAn.padding)||8;function Bxa(e,t){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(t<0||!Number.isInteger(t))throw new Error("Position must be a non-negative integer."+t);if(e<0)return{px:t,py:0};if(e===1)return{px:0,py:t};const r=t%e,a=Math.floor(t/e);return{px:r,py:a}}const Fxa=e=>{let t=0,r=0;for(const a of e.children){const{width:s,height:o,x:u,y:h}=a.size||{width:0,height:0,x:0,y:0};ut.debug("getMaxChildSize abc95 child:",a.id,"width:",s,"height:",o,"x:",u,"y:",h,a.type),a.type!=="space"&&(s>t&&(t=s/(e.widthInColumns||1)),o>r&&(r=o))}return{width:t,height:r}};function sdt(e,t,r=0,a=0){var s,o,u,h,f,p,m,b,_,w,S;ut.debug("setBlockSizes abc95 (start)",e.id,(s=e==null?void 0:e.size)==null?void 0:s.x,"block width =",e==null?void 0:e.size,"sieblingWidth",r),(o=e==null?void 0:e.size)!=null&&o.width||(e.size={width:r,height:a,x:0,y:0});let C=0,A=0;if(((u=e.children)==null?void 0:u.length)>0){for(const U of e.children)sdt(U,t);const k=Fxa(e);C=k.width,A=k.height,ut.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",C,A);for(const U of e.children)U.size&&(ut.debug(`abc95 Setting size of children of ${e.id} id=${U.id} ${C} ${A} ${U.size}`),U.size.width=C*(U.widthInColumns||1)+Y0*((U.widthInColumns||1)-1),U.size.height=A,U.size.x=0,U.size.y=0,ut.debug(`abc95 updating size of ${e.id} children child:${U.id} maxWidth:${C} maxHeight:${A}`));for(const U of e.children)sdt(U,t,C,A);const I=e.columns||-1;let N=0;for(const U of e.children)N+=U.widthInColumns||1;let L=e.children.length;I>0&&I0?Math.min(e.children.length,I):e.children.length;if(U>0){const $=(M-U*Y0-Y0)/U;ut.debug("abc95 (growing to fit) width",e.id,M,(m=e.size)==null?void 0:m.width,$);for(const G of e.children)G.size&&(G.size.width=$)}}e.size={width:M,height:F,x:0,y:0}}ut.debug("setBlockSizes abc94 (done)",e.id,(b=e==null?void 0:e.size)==null?void 0:b.x,(_=e==null?void 0:e.size)==null?void 0:_.width,(w=e==null?void 0:e.size)==null?void 0:w.y,(S=e==null?void 0:e.size)==null?void 0:S.height)}function arr(e,t){var r,a,s,o,u,h,f,p,m,b,_,w,S,C,A,k,I;ut.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(r=e==null?void 0:e.size)==null?void 0:r.x} y: ${(a=e==null?void 0:e.size)==null?void 0:a.y} width: ${(s=e==null?void 0:e.size)==null?void 0:s.width}`);const N=e.columns||-1;if(ut.debug("layoutBlocks columns abc95",e.id,"=>",N,e),e.children&&e.children.length>0){const L=((u=(o=e==null?void 0:e.children[0])==null?void 0:o.size)==null?void 0:u.width)||0,P=e.children.length*L+(e.children.length-1)*Y0;ut.debug("widthOfChildren 88",P,"posX");let M=0;ut.debug("abc91 block?.size?.x",e.id,(h=e==null?void 0:e.size)==null?void 0:h.x);let F=(f=e==null?void 0:e.size)!=null&&f.x?((p=e==null?void 0:e.size)==null?void 0:p.x)+(-((m=e==null?void 0:e.size)==null?void 0:m.width)/2||0):-Y0,U=0;for(const $ of e.children){const G=e;if(!$.size)continue;const{width:B,height:Z}=$.size,{px:z,py:Y}=Bxa(N,M);if(Y!=U&&(U=Y,F=(b=e==null?void 0:e.size)!=null&&b.x?((_=e==null?void 0:e.size)==null?void 0:_.x)+(-((w=e==null?void 0:e.size)==null?void 0:w.width)/2||0):-Y0,ut.debug("New row in layout for block",e.id," and child ",$.id,U)),ut.debug(`abc89 layout blocks (child) id: ${$.id} Pos: ${M} (px, py) ${z},${Y} (${(S=G==null?void 0:G.size)==null?void 0:S.x},${(C=G==null?void 0:G.size)==null?void 0:C.y}) parent: ${G.id} width: ${B}${Y0}`),G.size){const W=B/2;$.size.x=F+Y0+W,ut.debug(`abc91 layout blocks (calc) px, pyid:${$.id} startingPos=X${F} new startingPosX${$.size.x} ${W} padding=${Y0} width=${B} halfWidth=${W} => x:${$.size.x} y:${$.size.y} ${$.widthInColumns} (width * (child?.w || 1)) / 2 ${B*(($==null?void 0:$.widthInColumns)||1)/2}`),F=$.size.x+W,$.size.y=G.size.y-G.size.height/2+Y*(Z+Y0)+Z/2+Y0,ut.debug(`abc88 layout blocks (calc) px, pyid:${$.id}startingPosX${F}${Y0}${W}=>x:${$.size.x}y:${$.size.y}${$.widthInColumns}(width * (child?.w || 1)) / 2${B*(($==null?void 0:$.widthInColumns)||1)/2}`)}$.children&&arr($),M+=($==null?void 0:$.widthInColumns)||1,ut.debug("abc88 columnsPos",$,M)}}ut.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${(A=e==null?void 0:e.size)==null?void 0:A.x} y: ${(k=e==null?void 0:e.size)==null?void 0:k.y} width: ${(I=e==null?void 0:e.size)==null?void 0:I.width}`)}function srr(e,{minX:t,minY:r,maxX:a,maxY:s}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){const{x:o,y:u,width:h,height:f}=e.size;o-h/2a&&(a=o+h/2),u+f/2>s&&(s=u+f/2)}if(e.children)for(const o of e.children)({minX:t,minY:r,maxX:a,maxY:s}=srr(o,{minX:t,minY:r,maxX:a,maxY:s}));return{minX:t,minY:r,maxX:a,maxY:s}}function $xa(e){const t=e.getBlock("root");if(!t)return;sdt(t,e,0,0),arr(t),ut.debug("getBlocks",JSON.stringify(t,null,2));const{minX:r,minY:a,maxX:s,maxY:o}=srr(t),u=o-a,h=s-r;return{x:r,y:a,width:h,height:u}}const Uxa=function(e,t){return t.db.getClasses()},zxa=async function(e,t,r,a){const{securityLevel:s,block:o}=Lf(),u=a.db;let h;s==="sandbox"&&(h=gn("#i"+t));const f=gn(s==="sandbox"?h.nodes()[0].contentDocument.body:"body"),p=s==="sandbox"?f.select(`[id="${t}"]`):gn(`[id="${t}"]`);jbt(p,["point","circle","cross"],a.type,t);const b=u.getBlocks(),_=u.getBlocksFlat(),w=u.getEdges(),S=p.insert("g").attr("class","block");await Dxa(S,b,u);const C=$xa(u);if(await Mxa(S,b,u),await Pxa(S,w,_,u,t),C){const A=C,k=Math.max(1,Math.round(.125*(A.width/A.height))),I=A.height+k+10,N=A.width+10,{useMaxWidth:L}=o;Db(p,I,N,!!L),ut.debug("Here Bounds",C,A),p.attr("viewBox",`${A.x-5} ${A.y-5} ${A.width+10} ${A.height+10}`)}cA(o1t)},Gxa={draw:zxa,getClasses:Uxa},qxa={parser:oxa,db:Rxa,renderer:Gxa,styles:Nxa},Hxa=Object.freeze(Object.defineProperty({__proto__:null,diagram:qxa},Symbol.toStringTag,{value:"Module"}));function Vxa(e){return typeof e=="string"&&/^data:image\/svg\+xml/i.test(e)}function Yxa(e){let t=e.indexOf(",");return t>=0?decodeURIComponent(e.slice(t+1)):""}function jxa(e){return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`}function Wxa(e){let t=[],r="",a=0;for(let s=0;ss.trim()).filter(Boolean)}function Kxa(e){let t=[],r="",a=0;for(let o=0;o`${h}:${f}`).join(";")}function Xxa(e){return e.replace(/([^{}]+)\{([^}]*)\}/g,(t,r,a)=>`${r}{${orr(a)}}`)}function Qxa(e){return e=e.replace(/]*>([\s\S]*?)<\/style>/gi,(t,r)=>t.replace(r,Xxa(r))),e=e.replace(/style=(['"])([\s\S]*?)\1/gi,(t,r,a)=>`style=${r}${orr(a)}${r}`),e}function Zxa(e){if(!cF()||!Vxa(e))return e;try{let t=Yxa(e),r=Qxa(t);return jxa(r)}catch{return e}}async function R6e(e,t){let{width:r,height:a,scale:s=1,dpr:o=1,meta:u={},backgroundColor:h}=t;e=Zxa(e);let f=new Image;f.loading="eager",f.decoding="sync",f.crossOrigin="anonymous",f.src=e,await f.decode();let p=f.naturalWidth,m=f.naturalHeight,b=Number.isFinite(u.w0)?u.w0:p,_=Number.isFinite(u.h0)?u.h0:m,w,S,C=Number.isFinite(r),A=Number.isFinite(a);if(C&&A)w=Math.max(1,r),S=Math.max(1,a);else if(C){let N=r/Math.max(1,b);w=r,S=_*N}else if(A){let N=a/Math.max(1,_);S=a,w=b*N}else w=p,S=m;w=w*s,S=S*s;let k=document.createElement("canvas");k.width=w*o,k.height=S*o,k.style.width=`${w}px`,k.style.height=`${S}px`;let I=k.getContext("2d");return o!==1&&I.scale(o,o),h&&(I.save(),I.fillStyle=h,I.fillRect(0,0,w,S),I.restore()),I.drawImage(f,0,0,w,S),k}async function lrr(e,t){let r=await R6e(e,t),a=new Image;return a.src=r.toDataURL(`image/${t.format}`,t.quality),await a.decode(),a.style.width=`${r.width/t.dpr}px`,a.style.height=`${r.height/t.dpr}px`,a}async function dAn(e,t){let{scale:r=1,width:a,height:s,meta:o={}}=t,u=Number.isFinite(a),h=Number.isFinite(s),f=Number.isFinite(r)&&r!==1||u||h;if(cF()&&f)return await lrr(e,{...t,format:"png",quality:1,meta:o});let p=new Image;if(p.decoding="sync",p.loading="eager",p.src=e,await p.decode(),u&&h)p.style.width=`${a}px`,p.style.height=`${s}px`;else if(u){let m=Number.isFinite(o.w0)?o.w0:p.naturalWidth,b=Number.isFinite(o.h0)?o.h0:p.naturalHeight,_=a/Math.max(1,m);p.style.width=`${a}px`,p.style.height=`${Math.round(b*_)}px`}else if(h){let m=Number.isFinite(o.w0)?o.w0:p.naturalWidth,b=Number.isFinite(o.h0)?o.h0:p.naturalHeight,_=s/Math.max(1,b);p.style.height=`${s}px`,p.style.width=`${Math.round(m*_)}px`}else{let m=Math.round(p.naturalWidth*r),b=Math.round(p.naturalHeight*r);if(p.style.width=`${m}px`,p.style.height=`${b}px`,typeof e=="string"&&e.startsWith("data:image/svg+xml"))try{let _=decodeURIComponent(e.split(",")[1]).replace(/width="[^"]*"/,`width="${m}"`).replace(/height="[^"]*"/,`height="${b}"`);e=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(_)}`,p.src=e}catch{}}return p}const kEe=Object.freeze(Object.defineProperty({__proto__:null,toImg:dAn,toSvg:dAn},Symbol.toStringTag,{value:"Module"})),fAn=Object.freeze(Object.defineProperty({__proto__:null,toCanvas:R6e},Symbol.toStringTag,{value:"Module"}));async function crr(e,t){let r=t.type;if(r==="svg"){let s=decodeURIComponent(e.split(",")[1]);return new Blob([s],{type:"image/svg+xml"})}let a=await R6e(e,t);return new Promise(s=>a.toBlob(o=>s(o),`image/${r}`,t.quality))}const pAn=Object.freeze(Object.defineProperty({__proto__:null,toBlob:crr},Symbol.toStringTag,{value:"Module"})),SB=Object.freeze(Object.defineProperty({__proto__:null,rasterize:lrr},Symbol.toStringTag,{value:"Module"}));async function Jxa(e,t){let r=((t==null?void 0:t.format)||(t==null?void 0:t.type)||"").toLowerCase(),a=r==="jpg"?"jpeg":r||"png",s=(t==null?void 0:t.filename)||`snapdom.${a}`,o={...t||{},format:a,type:a};if(o.dpr=1,a==="svg"){let f=await crr(e,{...o,type:"svg"}),p=URL.createObjectURL(f),m=document.createElement("a");m.href=p,m.download=s,m.click(),URL.revokeObjectURL(p);return}let u=await R6e(e,o),h=document.createElement("a");h.href=u.toDataURL(`image/${a}`,t==null?void 0:t.quality),h.download=s,h.click()}const eSa=Object.freeze(Object.defineProperty({__proto__:null,download:Jxa},Symbol.toStringTag,{value:"Module"}));export{AFr as $,L4a as A,D4a as B,z4a as C,C4a as D,T4a as E,n_ as F,odn as G,G4a as H,H4a as I,V4a as J,q4a as K,BTa as L,HQr as M,U4a as N,FTa as O,ldt as P,DOr as Q,dj as R,A4a as S,Y4a as T,X4a as U,zy as V,i5a as W,GF as X,PFr as Y,a5a as Z,Pat as _,Sj as a,T3a as a$,l5a as a0,o5a as a1,cUn as a2,s5a as a3,Cb as a4,vh as a5,k3e as a6,E5a as a7,k5a as a8,A5a as a9,V5a as aA,G5a as aB,H5a as aC,q5a as aD,z5a as aE,tCa as aF,EA as aG,S4a as aH,GSa as aI,jSa as aJ,b4a as aK,USa as aL,mSa as aM,x4a as aN,M3a as aO,dSa as aP,P3a as aQ,A3a as aR,k3a as aS,I3a as aT,N3a as aU,L3a as aV,uSa as aW,O3a as aX,vSa as aY,R3a as aZ,D3a as a_,yEi as aa,S5a as ab,C5a as ac,T5a as ad,u_n as ae,R5a as af,x5a as ag,U9 as ah,N5a as ai,I5a as aj,y5a as ak,gUn as al,v5a as am,xpt as an,_5a as ao,w5a as ap,O5a as aq,dzn as ar,hxi as as,B5a as at,F5a as au,$5a as av,M5a as aw,U5a as ax,P5a as ay,Y5a as az,PTa as b,dWr as b$,C3a as b0,hSa as b1,xSa as b2,d4a as b3,Y3a as b4,j3a as b5,H3a as b6,V3a as b7,Z3a as b8,o4a as b9,c4a as bA,aTa as bB,sTa as bC,oTa as bD,cTa as bE,hTa as bF,vTa as bG,fSa as bH,_Ta as bI,dTa as bJ,fTa as bK,pTa as bL,gTa as bM,mTa as bN,yTa as bO,bTa as bP,wTa as bQ,lTa as bR,uTa as bS,ETa as bT,xTa as bU,TTa as bV,CTa as bW,ATa as bX,kTa as bY,STa as bZ,oSa as b_,E4a as ba,_Sa as bb,ISa as bc,VYr as bd,HYr as be,YYr as bf,Q3a as bg,Q4a as bh,K3a as bi,X3a as bj,qYr as bk,eTa as bl,tTa as bm,nTa as bn,J3a as bo,rTa as bp,iTa as bq,JSa as br,wSa as bs,cSa as bt,sSa as bu,PSa as bv,zSa as bw,n4a as bx,m4a as by,$Sa as bz,e3a as c,h5a as c$,fWr as c0,RTa as c1,HSa as c2,pSa as c3,TSa as c4,w4a as c5,gSa as c6,y4a as c7,lSa as c8,FSa as c9,DSa as cA,RSa as cB,s4a as cC,a4a as cD,ySa as cE,h4a as cF,ASa as cG,QSa as cH,VSa as cI,XSa as cJ,KSa as cK,v4a as cL,ZSa as cM,Z4a as cN,r4a as cO,g4a as cP,x3a as cQ,E3a as cR,B3a as cS,z3a as cT,G3a as cU,q3a as cV,$3a as cW,U3a as cX,F3a as cY,c5a as cZ,d5a as c_,MSa as ca,kSa as cb,i4a as cc,u4a as cd,ITa as ce,NTa as cf,OTa as cg,_Wr as ch,CWr as ci,qSa as cj,l4a as ck,p4a as cl,YSa as cm,bSa as cn,BSa as co,t4a as cp,LSa as cq,WSa as cr,ESa as cs,SSa as ct,CSa as cu,f4a as cv,e4a as cw,_4a as cx,NSa as cy,OSa as cz,sOr as d,p5a as d0,G6n as d1,V6n as d2,q6n as d3,u5a as d4,g5a as d5,f5a as d6,b5a as d7,m5a as d8,U6n as d9,J4a as da,W4a as db,K4a as dc,LTa as dd,DTa as de,MTa as df,NWr as dg,eCa as dh,sCa as di,oCa as dj,Fat as e,R4a as f,UTa as g,Yri as h,RAn as i,N4a as j,NAn as k,T9n as l,r5a as m,O4a as n,B4a as o,J5a as p,P4a as q,k4a as r,Gse as s,F4a as t,I4a as u,$4a as v,NOr as w,OOr as x,pj as y,M4a as z};