orbitchat 2.1.4 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/api-BHF9IxKN.js +1 -0
- package/dist/assets/{api-CqQbaaAP.js → api-CK3k3ceJ.js} +1 -1
- package/dist/assets/{arc-CvECY7sY-C2v3oxui.js → arc-CvECY7sY-BAfm7gAl.js} +1 -1
- package/dist/assets/{blockDiagram-c4efeb88-NvaZhZFT-Dd1PXSOs.js → blockDiagram-c4efeb88-NvaZhZFT-B2z-bNEd.js} +1 -1
- package/dist/assets/{c4Diagram-c83219d4-gPr1eF38-DXzdU0Wi.js → c4Diagram-c83219d4-gPr1eF38-BpklvzfC.js} +1 -1
- package/dist/assets/channel-6PI3wNcc-1exBkyGg.js +1 -0
- package/dist/assets/{classDiagram-beda092f-B8axaKGu-DmE6ZNJN.js → classDiagram-beda092f-B8axaKGu-C7KpiekH.js} +1 -1
- package/dist/assets/{classDiagram-v2-2358418a-DPdf2DxR-kWqGfUYf.js → classDiagram-v2-2358418a-DPdf2DxR-CfXv0anP.js} +1 -1
- package/dist/assets/clone-D01vUIhD-D0aslzw6.js +1 -0
- package/dist/assets/{createText-1719965b-D9Y3vUMn-CbkNxUzu.js → createText-1719965b-D9Y3vUMn-UiwO3q8Q.js} +1 -1
- package/dist/assets/{edges-96097737-Zc6U9nQz-DDlLIBG-.js → edges-96097737-Zc6U9nQz-Czq3--42.js} +1 -1
- package/dist/assets/{erDiagram-0228fc6a-BLw8FsIp-DrMQ0eGX.js → erDiagram-0228fc6a-BLw8FsIp-CkgJ5rpM.js} +1 -1
- package/dist/assets/{flowDb-c6c81e3f-DXVkMlSE-DSjkqZgb.js → flowDb-c6c81e3f-DXVkMlSE-DRQM6L-v.js} +1 -1
- package/dist/assets/{flowDiagram-50d868cf-mkkB0hFd-2wtmFcWg.js → flowDiagram-50d868cf-mkkB0hFd-CL_JosYM.js} +1 -1
- package/dist/assets/flowDiagram-v2-4f6560a1-BRIhxQ3y-BzGZQhJW.js +1 -0
- package/dist/assets/{flowchart-elk-definition-6af322e1-D9IbjnSJ-D8ylI3Ic.js → flowchart-elk-definition-6af322e1-D9IbjnSJ-DWoCBlEO.js} +1 -1
- package/dist/assets/{ganttDiagram-a2739b55-Cqs5_Zht-De727C_X.js → ganttDiagram-a2739b55-Cqs5_Zht-CyVqot_b.js} +1 -1
- package/dist/assets/{gitGraphDiagram-82fe8481-txBzFn40-CqzvQaGI.js → gitGraphDiagram-82fe8481-txBzFn40-CZkxfaP2.js} +1 -1
- package/dist/assets/{graph-BZahQKIN-DafuBJcg.js → graph-BZahQKIN-CTgzd5us.js} +1 -1
- package/dist/assets/{index-5325376f-DsNDppci-C2SnyOyM.js → index-5325376f-DsNDppci-BaFeDo3U.js} +1 -1
- package/dist/assets/{index-DKpvLej3.js → index-CDwx2U7N.js} +86 -86
- package/dist/assets/index-CITIGg-2.css +1 -0
- package/dist/assets/{infoDiagram-8eee0895-SbmhgTjv-BgEkHdp6.js → infoDiagram-8eee0895-SbmhgTjv-CCnN8bBn.js} +1 -1
- package/dist/assets/{journeyDiagram-c64418c1-C7AiwbKr-EtI5TVx4.js → journeyDiagram-c64418c1-C7AiwbKr-YZTGwLv1.js} +1 -1
- package/dist/assets/{layout-j-hMNqAM-BiQawPW1.js → layout-j-hMNqAM-C88IAVJC.js} +1 -1
- package/dist/assets/{mindmap-definition-8da855dc-B1WjnfxE-w4UFEpGU.js → mindmap-definition-8da855dc-B1WjnfxE-a9TK-xQN.js} +1 -1
- package/dist/assets/{pieDiagram-a8764435-zrkaw4r--BvKtwolr.js → pieDiagram-a8764435-zrkaw4r--BMPBVA0x.js} +1 -1
- package/dist/assets/{quadrantDiagram-1e28029f-C2Wa5n16-CnVyRqv1.js → quadrantDiagram-1e28029f-C2Wa5n16-DwWDm6cx.js} +1 -1
- package/dist/assets/{requirementDiagram-08caed73-BtHxx079-Cl-RbwIO.js → requirementDiagram-08caed73-BtHxx079-zeP-18qR.js} +1 -1
- package/dist/assets/{sankeyDiagram-a04cb91d-DXlmqTKB-B-f0kPE8.js → sankeyDiagram-a04cb91d-DXlmqTKB-BJu62Tg5.js} +1 -1
- package/dist/assets/{sequenceDiagram-c5b8d532-BVQF3vcA-GUL_NpRP.js → sequenceDiagram-c5b8d532-BVQF3vcA-GR7-Xw8e.js} +1 -1
- package/dist/assets/{stateDiagram-1ecb1508-Dybc3i2m-DHn8s_-W.js → stateDiagram-1ecb1508-Dybc3i2m-BMJzxrY5.js} +1 -1
- package/dist/assets/{stateDiagram-v2-c2b004d7-Bp8rRkv2-BNhszS8A.js → stateDiagram-v2-c2b004d7-Bp8rRkv2-Dm74LB8O.js} +1 -1
- package/dist/assets/{styles-b4e223ce-BSiU4oYL-C2WJgf7S.js → styles-b4e223ce-BSiU4oYL-9ql-THae.js} +1 -1
- package/dist/assets/{styles-ca3715f6-DU7x0doE-CSa1h8_v.js → styles-ca3715f6-DU7x0doE-B7zhH0Zm.js} +1 -1
- package/dist/assets/{styles-d45a18b0-B_CU21kM-XZJUPykJ.js → styles-d45a18b0-B_CU21kM--NwLlmWK.js} +1 -1
- package/dist/assets/{svgDrawCommon-b86b1483-sbEe2n2v-Bo2zJhON.js → svgDrawCommon-b86b1483-sbEe2n2v-CJw2W-Er.js} +1 -1
- package/dist/assets/{timeline-definition-faaaa080-b82QCnJ9-DHFLR8i4.js → timeline-definition-faaaa080-b82QCnJ9-CY85LKH1.js} +1 -1
- package/dist/assets/{xychartDiagram-f5964ef8-BtRcO0uy-D5RZmxeh.js → xychartDiagram-f5964ef8-BtRcO0uy-ylxrBreP.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/api-DYLUpVYT.js +0 -2
- package/dist/assets/channel-6PI3wNcc-sC4ETFpU.js +0 -1
- package/dist/assets/clone-D01vUIhD-1vEdCi1d.js +0 -1
- package/dist/assets/flowDiagram-v2-4f6560a1-BRIhxQ3y-BKbUnERR.js +0 -1
- package/dist/assets/index-ht-LB8kt.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.orbit-gradient-logo{filter:brightness(0) saturate(100%);filter:drop-shadow(0 0 8px rgba(59,130,246,.5));background:linear-gradient(135deg,#3b82f6,#8b5cf6);-webkit-background-clip:text;background-clip:text;mix-blend-mode:screen}.message-list{--thread-panel-bg: #f6f7fb;--thread-panel-border: rgba(15, 23, 42, .08);--thread-panel-shadow: 0 30px 60px -38px rgba(15, 23, 42, .45);--thread-panel-heading: #1f2937;--thread-panel-button-border: rgba(15, 23, 42, .18);--thread-panel-button-text: #1f2937;--thread-panel-button-hover: rgba(15, 23, 42, .08);--thread-avatar-assistant-bg: #e7e9fb;--thread-avatar-assistant-text: #252c53;--thread-avatar-user-bg: #e6f4ef;--thread-avatar-user-text: #0f5f47}.dark .message-list{--thread-panel-bg: #1a1c24;--thread-panel-border: rgba(255, 255, 255, .12);--thread-panel-shadow: 0 35px 60px -40px rgba(0, 0, 0, .9);--thread-panel-heading: #eef1ff;--thread-panel-button-border: rgba(255, 255, 255, .2);--thread-panel-button-text: #eef1ff;--thread-panel-button-hover: rgba(255, 255, 255, .08);--thread-avatar-assistant-bg: rgba(83, 99, 164, .45);--thread-avatar-assistant-text: #e5e8ff;--thread-avatar-user-bg: rgba(16, 163, 127, .35);--thread-avatar-user-text: #d7fff3}.message-list :where(.ml-12.mt-4.rounded-xl.border){background-color:var(--thread-panel-bg)!important;border-color:var(--thread-panel-border)!important;box-shadow:var(--thread-panel-shadow)!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.message-list :where(.ml-12.mt-4.rounded-xl.border) .text-blue-900,.message-list :where(.ml-12.mt-4.rounded-xl.border) .dark\:text-\[\#c5d7ff\]{color:var(--thread-panel-heading)!important}.message-list :where(.ml-12.mt-4.rounded-xl.border) .border-blue-200\/80,.message-list :where(.ml-12.mt-4.rounded-xl.border) .dark\:border-\[\#233449\]{border-color:var(--thread-panel-button-border)!important}.message-list :where(.ml-12.mt-4.rounded-xl.border) button.inline-flex.items-center.gap-2.rounded-full.border{color:var(--thread-panel-button-text)!important;background-color:transparent;transition:background-color .2s ease,border-color .2s ease}.message-list :where(.ml-12.mt-4.rounded-xl.border) button.inline-flex.items-center.gap-2.rounded-full.border:hover{background-color:var(--thread-panel-button-hover)!important}.message-list :where(.flex.h-7.w-7.flex-shrink-0.items-center.justify-center.rounded-full.bg-blue-100){background-color:var(--thread-avatar-assistant-bg)!important;color:var(--thread-avatar-assistant-text)!important}.message-list :where(.flex.h-7.w-7.flex-shrink-0.items-center.justify-center.rounded-full.bg-emerald-100){background-color:var(--thread-avatar-user-bg)!important;color:var(--thread-avatar-user-text)!important}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}html{font-size:1rem;line-height:1.5rem}body{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(53 55 64 / var(--tw-text-opacity, 1))}body:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(33 33 33 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(236 236 241 / var(--tw-text-opacity, 1))}body{line-height:1.75}textarea{border:none!important;outline:none!important;box-shadow:none!important;-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important}textarea:focus{border:none!important;outline:none!important;box-shadow:none!important;ring:none!important}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.prose:is(.dark *){--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.prose p{font-weight:400;line-height:1.75rem;--tw-text-opacity: 1;color:rgb(53 55 64 / var(--tw-text-opacity, 1))}.prose p:is(.dark *){--tw-text-opacity: 1;color:rgb(236 236 241 / var(--tw-text-opacity, 1))}.prose p{font-size:15px;margin-top:.75rem;margin-bottom:.75rem}.prose p:first-child{margin-top:0}.prose p:last-child{margin-bottom:0}.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6{font-weight:600;--tw-text-opacity: 1;color:rgb(53 55 64 / var(--tw-text-opacity, 1))}.prose h1:is(.dark *),.prose h2:is(.dark *),.prose h3:is(.dark *),.prose h4:is(.dark *),.prose h5:is(.dark *),.prose h6:is(.dark *){--tw-text-opacity: 1;color:rgb(236 236 241 / var(--tw-text-opacity, 1))}.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6{margin-top:1.5rem;margin-bottom:.75rem}.prose h1{font-size:1.5rem;line-height:2rem}.prose h2{font-size:1.25rem;line-height:1.75rem}.prose h3{font-size:1.125rem;line-height:1.75rem}.prose ul,.prose ol{margin-top:1rem;margin-bottom:1rem;margin-left:1.5rem}.prose li{margin-top:.5rem;margin-bottom:.5rem;line-height:1.75rem;font-size:15px}.prose strong{font-weight:600}.prose em{font-style:italic}.prose a{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1));text-decoration-line:underline}.prose a:is(.dark *){--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.prose pre{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(53 55 64 / var(--tw-text-opacity, 1))}.prose pre:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(32 33 35 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(236 236 241 / var(--tw-text-opacity, 1))}.prose code{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));padding:.125rem .375rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(53 55 64 / var(--tw-text-opacity, 1))}.prose code:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(32 33 35 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(236 236 241 / var(--tw-text-opacity, 1))}.prose blockquote{margin-top:1rem;margin-bottom:1rem;border-top-right-radius:.5rem;border-bottom-right-radius:.5rem;border-left-width:4px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1));padding-top:1rem;padding-bottom:1rem;padding-left:1.5rem;--tw-text-opacity: 1;color:rgb(53 55 64 / var(--tw-text-opacity, 1))}.prose blockquote:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(32 33 35 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(236 236 241 / var(--tw-text-opacity, 1))}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.-right-3{right:-.75rem}.left-3{left:.75rem}.right-2{right:.5rem}.top-1\/2{top:50%}.top-3{top:.75rem}.z-10{z-index:10}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.-mt-2{margin-top:-.5rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml-1{margin-left:.25rem}.ml-12{margin-left:3rem}.ml-4{margin-left:1rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-full{height:100%}.max-h-64{max-height:16rem}.max-h-\[90vh\]{max-height:90vh}.min-h-0{min-height:0px}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[min\(18rem\,85vw\)\]{width:min(18rem,85vw)}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[150px\]{min-width:150px}.min-w-\[72px\]{min-width:72px}.max-w-3xl{max-width:48rem}.max-w-5xl{max-width:64rem}.max-w-\[150px\]{max-width:150px}.max-w-full{max-width:100%}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-6{--tw-translate-x: 1.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-b-2xl{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-\[\#343541\]{--tw-border-opacity: 1;border-color:rgb(52 53 65 / var(--tw-border-opacity, 1))}.border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-blue-100{--tw-border-opacity: 1;border-color:rgb(219 234 254 / var(--tw-border-opacity, 1))}.border-blue-100\/80{border-color:#dbeafecc}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.border-blue-200\/80{border-color:#bfdbfecc}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-emerald-100{--tw-border-opacity: 1;border-color:rgb(209 250 229 / var(--tw-border-opacity, 1))}.border-emerald-500{--tw-border-opacity: 1;border-color:rgb(16 185 129 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1))}.border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity, 1))}.border-slate-200{--tw-border-opacity: 1;border-color:rgb(226 232 240 / var(--tw-border-opacity, 1))}.border-slate-200\/70{border-color:#e2e8f0b3}.border-slate-300{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.border-white\/70{border-color:#ffffffb3}.border-white\/80{border-color:#fffc}.border-t-transparent{border-top-color:transparent}.bg-\[\#10a37f\]{--tw-bg-opacity: 1;background-color:rgb(16 163 127 / var(--tw-bg-opacity, 1))}.bg-\[\#343541\]{--tw-bg-opacity: 1;background-color:rgb(52 53 65 / var(--tw-bg-opacity, 1))}.bg-\[\#eceefc\]{--tw-bg-opacity: 1;background-color:rgb(236 238 252 / var(--tw-bg-opacity, 1))}.bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-black\/50{background-color:#00000080}.bg-black\/60{background-color:#0009}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-blue-50\/70{background-color:#eff6ffb3}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-emerald-100{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity, 1))}.bg-emerald-50{--tw-bg-opacity: 1;background-color:rgb(236 253 245 / var(--tw-bg-opacity, 1))}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-100\/70{background-color:#f3f4f6b3}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.bg-slate-200{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity, 1))}.bg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\/60{background-color:#fff9}.bg-white\/80{background-color:#fffc}.bg-white\/90{background-color:#ffffffe6}.bg-white\/95{background-color:#fffffff2}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.from-blue-100{--tw-gradient-from: #dbeafe var(--tw-gradient-from-position);--tw-gradient-to: rgb(219 234 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-emerald-100{--tw-gradient-from: #d1fae5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(209 250 229 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-blue-200{--tw-gradient-to: #bfdbfe var(--tw-gradient-to-position)}.to-emerald-200{--tw-gradient-to: #a7f3d0 var(--tw-gradient-to-position)}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pl-9{padding-left:2.25rem}.pr-1{padding-right:.25rem}.pr-10{padding-right:2.5rem}.pr-3{padding-right:.75rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.tracking-wide{letter-spacing:.025em}.text-\[\#0f172a\]{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.text-\[\#1c3226\]{--tw-text-opacity: 1;color:rgb(28 50 38 / var(--tw-text-opacity, 1))}.text-\[\#1d2559\]{--tw-text-opacity: 1;color:rgb(29 37 89 / var(--tw-text-opacity, 1))}.text-\[\#1f2937\]{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-\[\#353740\]{--tw-text-opacity: 1;color:rgb(53 55 64 / var(--tw-text-opacity, 1))}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity, 1))}.text-blue-900\/70{color:#1e3a8ab3}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-emerald-700{--tw-text-opacity: 1;color:rgb(4 120 87 / var(--tw-text-opacity, 1))}.text-emerald-900{--tw-text-opacity: 1;color:rgb(6 78 59 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-slate-300{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.text-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity, 1))}.text-slate-900{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}.placeholder-gray-600::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(75 85 99 / var(--tw-placeholder-opacity, 1))}.placeholder-gray-600::placeholder{--tw-placeholder-opacity: 1;color:rgb(75 85 99 / var(--tw-placeholder-opacity, 1))}.accent-gray-600{accent-color:#4b5563}.opacity-0{opacity:0}.opacity-50{opacity:.5}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_12px_30px_-18px_rgba\(15\,52\,33\,0\.25\)\]{--tw-shadow: 0 12px 30px -18px rgba(15,52,33,.25);--tw-shadow-colored: 0 12px 30px -18px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_15px_35px_-20px_rgba\(15\,23\,42\,0\.25\)\]{--tw-shadow: 0 15px 35px -20px rgba(15,23,42,.25);--tw-shadow-colored: 0 15px 35px -20px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-blue-100\/60{--tw-ring-color: rgb(219 234 254 / .6)}.ring-white\/50{--tw-ring-color: rgb(255 255 255 / .5)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.katex{font-size:1em!important}.katex-display{margin:1em 0!important;text-align:center}.markdown-content .katex{overflow-x:auto;overflow-y:hidden}.markdown-content .katex-display{overflow-x:auto;overflow-y:hidden;padding:.5em 0}@media (prefers-color-scheme: dark){.katex{color:inherit!important}}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}:is(.dark *)::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}::-webkit-scrollbar-thumb{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity, 1))}:is(.dark *)::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity, 1))}::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity, 1))}:is(.dark *)::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(100 116 139 / var(--tw-bg-opacity, 1))}.high-contrast{--tw-text-opacity: 1;--tw-bg-opacity: 1}.high-contrast .text-slate-500{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity, 1))}.high-contrast .text-slate-500:is(.dark *){--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.high-contrast .text-slate-400{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.high-contrast .text-slate-400:is(.dark *){--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.high-contrast .bg-slate-50{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.high-contrast .bg-slate-50:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideIn{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes shimmer{0%{background-position:-200px 0}to{background-position:200px 0}}.animate-fadeIn{animation:fadeIn .3s ease-out}.animate-slideIn{animation:slideIn .3s ease-out}.animate-shimmer{animation:shimmer 1.5s infinite;background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);background-size:200px 100%}.message-input-container:focus-within{outline:2px solid transparent;outline-offset:2px}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(156 163 175 / .7);--tw-ring-offset-width: 0px}button:focus-visible:is(.dark *),input:focus-visible:is(.dark *),textarea:focus-visible:is(.dark *){--tw-ring-color: rgb(107 114 128 / .7)}@media (max-width: 768px){.prose,body{font-size:.875rem;line-height:1.25rem}}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-emerald-400:hover{--tw-border-opacity: 1;border-color:rgb(52 211 153 / var(--tw-border-opacity, 1))}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.hover\:border-gray-400:hover{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.hover\:border-red-400:hover{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity, 1))}.hover\:bg-\[\#0f8f6f\]:hover{--tw-bg-opacity: 1;background-color:rgb(15 143 111 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#282b32\]:hover{--tw-bg-opacity: 1;background-color:rgb(40 43 50 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#2c2f36\]:hover{--tw-bg-opacity: 1;background-color:rgb(44 47 54 / var(--tw-bg-opacity, 1))}.hover\:bg-amber-700:hover{--tw-bg-opacity: 1;background-color:rgb(180 83 9 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.hover\:bg-emerald-50\/30:hover{background-color:#ecfdf54d}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-800:hover{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.hover\:bg-green-600:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.hover\:bg-red-100:hover{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.hover\:bg-red-50:hover{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.hover\:bg-white\/70:hover{background-color:#ffffffb3}.hover\:bg-white\/80:hover{background-color:#fffc}.hover\:text-\[\#353740\]:hover{--tw-text-opacity: 1;color:rgb(53 55 64 / var(--tw-text-opacity, 1))}.hover\:text-blue-800:hover{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.hover\:text-red-700:hover{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:border-gray-400:focus{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-amber-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1))}.focus\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.focus\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity, 1))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\:ring-offset-white:focus{--tw-ring-offset-color: #fff}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:transform-none:disabled{transform:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-60:disabled{opacity:.6}.disabled\:hover\:border-gray-300:hover:disabled{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.disabled\:hover\:bg-transparent:hover:disabled{background-color:transparent}.group:hover .group-hover\:opacity-100{opacity:1}.dark\:border-\[\#1a2b21\]:is(.dark *){--tw-border-opacity: 1;border-color:rgb(26 43 33 / var(--tw-border-opacity, 1))}.dark\:border-\[\#1f2a36\]:is(.dark *){--tw-border-opacity: 1;border-color:rgb(31 42 54 / var(--tw-border-opacity, 1))}.dark\:border-\[\#233449\]:is(.dark *){--tw-border-opacity: 1;border-color:rgb(35 52 73 / var(--tw-border-opacity, 1))}.dark\:border-\[\#40414f\]:is(.dark *){--tw-border-opacity: 1;border-color:rgb(64 65 79 / var(--tw-border-opacity, 1))}.dark\:border-\[\#444654\]:is(.dark *){--tw-border-opacity: 1;border-color:rgb(68 70 84 / var(--tw-border-opacity, 1))}.dark\:border-\[\#4a4b54\]:is(.dark *){--tw-border-opacity: 1;border-color:rgb(74 75 84 / var(--tw-border-opacity, 1))}.dark\:border-\[\#565869\]:is(.dark *){--tw-border-opacity: 1;border-color:rgb(86 88 105 / var(--tw-border-opacity, 1))}.dark\:border-\[\#6b6f7a\]:is(.dark *){--tw-border-opacity: 1;border-color:rgb(107 111 122 / var(--tw-border-opacity, 1))}.dark\:border-amber-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(146 64 14 / var(--tw-border-opacity, 1))}.dark\:border-blue-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(30 64 175 / var(--tw-border-opacity, 1))}.dark\:border-emerald-400:is(.dark *){--tw-border-opacity: 1;border-color:rgb(52 211 153 / var(--tw-border-opacity, 1))}.dark\:border-gray-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.dark\:border-gray-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.dark\:border-green-600\/40:is(.dark *){border-color:#16a34a66}.dark\:border-red-600\/40:is(.dark *){border-color:#dc262666}.dark\:border-red-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(185 28 28 / var(--tw-border-opacity, 1))}.dark\:border-red-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(153 27 27 / var(--tw-border-opacity, 1))}.dark\:border-slate-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(71 85 105 / var(--tw-border-opacity, 1))}.dark\:border-slate-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.dark\:border-slate-700\/60:is(.dark *){border-color:#33415599}.dark\:border-white\/10:is(.dark *){border-color:#ffffff1a}.dark\:border-white\/5:is(.dark *){border-color:#ffffff0d}.dark\:bg-\[\#0f1821\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(15 24 33 / var(--tw-bg-opacity, 1))}.dark\:bg-\[\#1f1f24\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 31 36 / var(--tw-bg-opacity, 1))}.dark\:bg-\[\#1f2a36\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 42 54 / var(--tw-bg-opacity, 1))}.dark\:bg-\[\#202123\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(32 33 35 / var(--tw-bg-opacity, 1))}.dark\:bg-\[\#212121\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(33 33 33 / var(--tw-bg-opacity, 1))}.dark\:bg-\[\#252830\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(37 40 48 / var(--tw-bg-opacity, 1))}.dark\:bg-\[\#2c2f36\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(44 47 54 / var(--tw-bg-opacity, 1))}.dark\:bg-\[\#2d2f39\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(45 47 57 / var(--tw-bg-opacity, 1))}.dark\:bg-\[\#2f313a\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(47 49 58 / var(--tw-bg-opacity, 1))}.dark\:bg-\[\#343541\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(52 53 65 / var(--tw-bg-opacity, 1))}.dark\:bg-\[\#3a3d46\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(58 61 70 / var(--tw-bg-opacity, 1))}.dark\:bg-\[\#3b4055\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(59 64 85 / var(--tw-bg-opacity, 1))}.dark\:bg-\[\#3c3f4a\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(60 63 74 / var(--tw-bg-opacity, 1))}.dark\:bg-\[\#4a4b54\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(74 75 84 / var(--tw-bg-opacity, 1))}.dark\:bg-\[\#565869\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(86 88 105 / var(--tw-bg-opacity, 1))}.dark\:bg-\[\#bfc2cd\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(191 194 205 / var(--tw-bg-opacity, 1))}.dark\:bg-amber-900\/20:is(.dark *){background-color:#78350f33}.dark\:bg-amber-900\/30:is(.dark *){background-color:#78350f4d}.dark\:bg-blue-900\/20:is(.dark *){background-color:#1e3a8a33}.dark\:bg-blue-900\/30:is(.dark *){background-color:#1e3a8a4d}.dark\:bg-blue-900\/40:is(.dark *){background-color:#1e3a8a66}.dark\:bg-emerald-400:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity, 1))}.dark\:bg-emerald-900\/20:is(.dark *){background-color:#064e3b33}.dark\:bg-gray-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-800\/50:is(.dark *){background-color:#1f293780}.dark\:bg-green-900\/30:is(.dark *){background-color:#14532d4d}.dark\:bg-red-900\/20:is(.dark *){background-color:#7f1d1d33}.dark\:bg-red-900\/30:is(.dark *){background-color:#7f1d1d4d}.dark\:bg-red-900\/40:is(.dark *){background-color:#7f1d1d66}.dark\:bg-slate-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.dark\:bg-slate-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.dark\:bg-slate-800\/50:is(.dark *){background-color:#1e293b80}.dark\:bg-slate-900\/40:is(.dark *){background-color:#0f172a66}.dark\:bg-slate-900\/50:is(.dark *){background-color:#0f172a80}.dark\:bg-transparent:is(.dark *){background-color:transparent}.dark\:bg-white:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.dark\:bg-white\/10:is(.dark *){background-color:#ffffff1a}.dark\:bg-white\/5:is(.dark *){background-color:#ffffff0d}.dark\:from-\[\#0f1f17\]:is(.dark *){--tw-gradient-from: #0f1f17 var(--tw-gradient-from-position);--tw-gradient-to: rgb(15 31 23 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:from-\[\#1f2a36\]:is(.dark *){--tw-gradient-from: #1f2a36 var(--tw-gradient-from-position);--tw-gradient-to: rgb(31 42 54 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:to-\[\#0b1712\]:is(.dark *){--tw-gradient-to: #0b1712 var(--tw-gradient-to-position)}.dark\:to-\[\#1a2230\]:is(.dark *){--tw-gradient-to: #1a2230 var(--tw-gradient-to-position)}.dark\:text-\[\#6b6f7a\]:is(.dark *){--tw-text-opacity: 1;color:rgb(107 111 122 / var(--tw-text-opacity, 1))}.dark\:text-\[\#9ef0d5\]:is(.dark *){--tw-text-opacity: 1;color:rgb(158 240 213 / var(--tw-text-opacity, 1))}.dark\:text-\[\#a6acc5\]:is(.dark *){--tw-text-opacity: 1;color:rgb(166 172 197 / var(--tw-text-opacity, 1))}.dark\:text-\[\#bfc2cd\]:is(.dark *){--tw-text-opacity: 1;color:rgb(191 194 205 / var(--tw-text-opacity, 1))}.dark\:text-\[\#c5d7ff\]:is(.dark *){--tw-text-opacity: 1;color:rgb(197 215 255 / var(--tw-text-opacity, 1))}.dark\:text-\[\#c7f5df\]:is(.dark *){--tw-text-opacity: 1;color:rgb(199 245 223 / var(--tw-text-opacity, 1))}.dark\:text-\[\#d1d5db\]:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.dark\:text-\[\#d4d7e2\]:is(.dark *){--tw-text-opacity: 1;color:rgb(212 215 226 / var(--tw-text-opacity, 1))}.dark\:text-\[\#dffbea\]:is(.dark *){--tw-text-opacity: 1;color:rgb(223 251 234 / var(--tw-text-opacity, 1))}.dark\:text-\[\#e5e7f4\]:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 244 / var(--tw-text-opacity, 1))}.dark\:text-\[\#e5edff\]:is(.dark *){--tw-text-opacity: 1;color:rgb(229 237 255 / var(--tw-text-opacity, 1))}.dark\:text-\[\#ececf1\]:is(.dark *){--tw-text-opacity: 1;color:rgb(236 236 241 / var(--tw-text-opacity, 1))}.dark\:text-amber-300:is(.dark *){--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.dark\:text-amber-400:is(.dark *){--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.dark\:text-black:is(.dark *){--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.dark\:text-blue-300:is(.dark *){--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.dark\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.dark\:text-emerald-400:is(.dark *){--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.dark\:text-gray-100:is(.dark *){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity, 1))}.dark\:text-gray-300:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.dark\:text-green-200:is(.dark *){--tw-text-opacity: 1;color:rgb(187 247 208 / var(--tw-text-opacity, 1))}.dark\:text-red-200:is(.dark *){--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity, 1))}.dark\:text-red-300:is(.dark *){--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark\:text-slate-100:is(.dark *){--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.dark\:text-slate-300:is(.dark *){--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.dark\:text-slate-400:is(.dark *){--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.dark\:text-slate-500:is(.dark *){--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.dark\:text-slate-600:is(.dark *){--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:placeholder-\[\#bfc2cd\]:is(.dark *)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(191 194 205 / var(--tw-placeholder-opacity, 1))}.dark\:placeholder-\[\#bfc2cd\]:is(.dark *)::placeholder{--tw-placeholder-opacity: 1;color:rgb(191 194 205 / var(--tw-placeholder-opacity, 1))}.dark\:accent-\[\#bfc2cd\]:is(.dark *){accent-color:#bfc2cd}.dark\:shadow-lg:is(.dark *){--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dark\:ring-\[\#1f2a36\]:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(31 42 54 / var(--tw-ring-opacity, 1))}.dark\:ring-white\/10:is(.dark *){--tw-ring-color: rgb(255 255 255 / .1)}.dark\:hover\:border-\[\#4a4b54\]:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(74 75 84 / var(--tw-border-opacity, 1))}.dark\:hover\:border-\[\#6b6f7a\]:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(107 111 122 / var(--tw-border-opacity, 1))}.dark\:hover\:border-gray-500:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}.dark\:hover\:border-red-500\/60:hover:is(.dark *){border-color:#ef444499}.dark\:hover\:bg-\[\#2f323c\]:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(47 50 60 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-\[\#343541\]:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(52 53 65 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-\[\#3c3f4a\]:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(60 63 74 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-\[\#4a4b54\]:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(74 75 84 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-\[\#565869\]:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(86 88 105 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-\[\#6b6f7a\]:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 111 122 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-emerald-900\/10:hover:is(.dark *){background-color:#064e3b1a}.dark\:hover\:bg-gray-200:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-gray-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-red-800\/40:hover:is(.dark *){background-color:#991b1b66}.dark\:hover\:bg-red-900\/20:hover:is(.dark *){background-color:#7f1d1d33}.dark\:hover\:bg-red-900\/30:hover:is(.dark *){background-color:#7f1d1d4d}.dark\:hover\:bg-slate-800\/60:hover:is(.dark *){background-color:#1e293b99}.dark\:hover\:bg-white\/10:hover:is(.dark *){background-color:#ffffff1a}.dark\:hover\:text-blue-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.dark\:hover\:text-red-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:focus\:border-\[\#8e8ea0\]:focus:is(.dark *){--tw-border-opacity: 1;border-color:rgb(142 142 160 / var(--tw-border-opacity, 1))}.dark\:focus\:ring-\[\#8e8ea0\]:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(142 142 160 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-offset-gray-800:focus:is(.dark *){--tw-ring-offset-color: #1f2937}.dark\:disabled\:hover\:border-\[\#4a4b54\]:hover:disabled:is(.dark *){--tw-border-opacity: 1;border-color:rgb(74 75 84 / var(--tw-border-opacity, 1))}.dark\:disabled\:hover\:bg-transparent:hover:disabled:is(.dark *){background-color:transparent}@media (min-width: 640px){.sm\:-mt-3{margin-top:-.75rem}.sm\:ml-2{margin-left:.5rem}.sm\:w-auto{width:auto}.sm\:flex-row{flex-direction:row}.sm\:flex-nowrap{flex-wrap:nowrap}.sm\:items-start{align-items:flex-start}.sm\:justify-end{justify-content:flex-end}.sm\:justify-between{justify-content:space-between}.sm\:p-4{padding:1rem}.sm\:px-0{padding-left:0;padding-right:0}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:text-right{text-align:right}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:text-xs{font-size:.75rem;line-height:1rem}.sm\:opacity-0{opacity:0}.group:hover .sm\:group-hover\:opacity-100{opacity:1}}@media (min-width: 768px){.md\:flex{display:flex}.md\:inline-flex{display:inline-flex}.md\:hidden{display:none}.md\:min-h-screen{min-height:100vh}.md\:w-72{width:18rem}.md\:flex-row{flex-direction:row}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{O as U,ab as J,J as X}from"./index-
|
|
1
|
+
import{O as U,ab as J,J as X}from"./index-CDwx2U7N.js";var O=function(){var c=function(a,t,n,e){for(n=n||{},e=a.length;e--;n[a[e]]=t);return n},f=[6,9,10],_={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(a,t,n,e,s,i,o){switch(i.length-1,s){case 1:return e;case 4:break;case 6:e.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},c(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},c(f,[2,3]),c(f,[2,4]),c(f,[2,5]),c(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(a,t){if(t.recoverable)this.trace(a);else{var n=new Error(a);throw n.hash=t,n}},parse:function(a){var t=this,n=[0],e=[],s=[null],i=[],o=this.table,P="",k=0,$=0,T=2,j=1,z=i.slice.call(arguments,1),r=Object.create(this.lexer),p={yy:{}};for(var I in this.yy)Object.prototype.hasOwnProperty.call(this.yy,I)&&(p.yy[I]=this.yy[I]);r.setInput(a,p.yy),p.yy.lexer=r,p.yy.parser=this,typeof r.yylloc>"u"&&(r.yylloc={});var w=r.yylloc;i.push(w);var F=r.options&&r.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function R(){var u;return u=e.pop()||r.lex()||j,typeof u!="number"&&(u instanceof Array&&(e=u,u=e.pop()),u=t.symbols_[u]||u),u}for(var h,g,l,E,m={},x,y,L,b;;){if(g=n[n.length-1],this.defaultActions[g]?l=this.defaultActions[g]:((h===null||typeof h>"u")&&(h=R()),l=o[g]&&o[g][h]),typeof l>"u"||!l.length||!l[0]){var S="";b=[];for(x in o[g])this.terminals_[x]&&x>T&&b.push("'"+this.terminals_[x]+"'");r.showPosition?S="Parse error on line "+(k+1)+`:
|
|
2
2
|
`+r.showPosition()+`
|
|
3
3
|
Expecting `+b.join(", ")+", got '"+(this.terminals_[h]||h)+"'":S="Parse error on line "+(k+1)+": Unexpected "+(h==j?"end of input":"'"+(this.terminals_[h]||h)+"'"),this.parseError(S,{text:r.match,token:this.terminals_[h]||h,line:r.yylineno,loc:w,expected:b})}if(l[0]instanceof Array&&l.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+h);switch(l[0]){case 1:n.push(h),s.push(r.yytext),i.push(r.yylloc),n.push(l[1]),h=null,$=r.yyleng,P=r.yytext,k=r.yylineno,w=r.yylloc;break;case 2:if(y=this.productions_[l[1]][1],m.$=s[s.length-y],m._$={first_line:i[i.length-(y||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(y||1)].first_column,last_column:i[i.length-1].last_column},F&&(m._$.range=[i[i.length-(y||1)].range[0],i[i.length-1].range[1]]),E=this.performAction.apply(m,[P,$,k,p.yy,l[1],s,i].concat(z)),typeof E<"u")return E;y&&(n=n.slice(0,-1*y*2),s=s.slice(0,-1*y),i=i.slice(0,-1*y)),n.push(this.productions_[l[1]][0]),s.push(m.$),i.push(m._$),L=o[n[n.length-2]][n[n.length-1]],n.push(L);break;case 3:return!0}}return!0}},d=function(){var a={EOF:1,parseError:function(t,n){if(this.yy.parser)this.yy.parser.parseError(t,n);else throw new Error(t)},setInput:function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,e=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var i=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:e?(e.length===s.length?this.yylloc.first_column:0)+s[s.length-e.length].length-e[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),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).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as ut,R as yt,N as pt,I as ft,M as dt,L as gt,S as P,F as z,J as mt,j as xt}from"./index-
|
|
1
|
+
import{D as ut,R as yt,N as pt,I as ft,M as dt,L as gt,S as P,F as z,J as mt,j as xt}from"./index-CDwx2U7N.js";import{x as kt,p as nt,d as _t,l as bt}from"./svgDrawCommon-b86b1483-sbEe2n2v-CJw2W-Er.js";import{h as H}from"./arc-CvECY7sY-BAfm7gAl.js";var X=function(){var t=function(d,i,r,c){for(r=r||{},c=d.length;c--;r[d[c]]=i);return r},e=[6,8,10,11,12,14,16,17,18],s=[1,9],o=[1,10],n=[1,11],l=[1,12],u=[1,13],y=[1,14],p={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(d,i,r,c,h,a,g){var x=a.length-1;switch(h){case 1:return a[x-1];case 2:this.$=[];break;case 3:a[x-1].push(a[x]),this.$=a[x-1];break;case 4:case 5:this.$=a[x];break;case 6:case 7:this.$=[];break;case 8:c.setDiagramTitle(a[x].substr(6)),this.$=a[x].substr(6);break;case 9:this.$=a[x].trim(),c.setAccTitle(this.$);break;case 10:case 11:this.$=a[x].trim(),c.setAccDescription(this.$);break;case 12:c.addSection(a[x].substr(8)),this.$=a[x].substr(8);break;case 13:c.addTask(a[x-1],a[x]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:s,12:o,14:n,16:l,17:u,18:y},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:s,12:o,14:n,16:l,17:u,18:y},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(d,i){if(i.recoverable)this.trace(d);else{var r=new Error(d);throw r.hash=i,r}},parse:function(d){var i=this,r=[0],c=[],h=[null],a=[],g=this.table,x="",L=0,J=0,ot=2,U=1,lt=a.slice.call(arguments,1),k=Object.create(this.lexer),T={yy:{}};for(var N in this.yy)Object.prototype.hasOwnProperty.call(this.yy,N)&&(T.yy[N]=this.yy[N]);k.setInput(d,T.yy),T.yy.lexer=k,T.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var R=k.yylloc;a.push(R);var ct=k.options&&k.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ht(){var $;return $=c.pop()||k.lex()||U,typeof $!="number"&&($ instanceof Array&&(c=$,$=c.pop()),$=i.symbols_[$]||$),$}for(var _,S,b,B,C={},D,w,Z,F;;){if(S=r[r.length-1],this.defaultActions[S]?b=this.defaultActions[S]:((_===null||typeof _>"u")&&(_=ht()),b=g[S]&&g[S][_]),typeof b>"u"||!b.length||!b[0]){var Y="";F=[];for(D in g[S])this.terminals_[D]&&D>ot&&F.push("'"+this.terminals_[D]+"'");k.showPosition?Y="Parse error on line "+(L+1)+`:
|
|
2
2
|
`+k.showPosition()+`
|
|
3
3
|
Expecting `+F.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Y="Parse error on line "+(L+1)+": Unexpected "+(_==U?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Y,{text:k.match,token:this.terminals_[_]||_,line:k.yylineno,loc:R,expected:F})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+_);switch(b[0]){case 1:r.push(_),h.push(k.yytext),a.push(k.yylloc),r.push(b[1]),_=null,J=k.yyleng,x=k.yytext,L=k.yylineno,R=k.yylloc;break;case 2:if(w=this.productions_[b[1]][1],C.$=h[h.length-w],C._$={first_line:a[a.length-(w||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(w||1)].first_column,last_column:a[a.length-1].last_column},ct&&(C._$.range=[a[a.length-(w||1)].range[0],a[a.length-1].range[1]]),B=this.performAction.apply(C,[x,J,L,T.yy,b[1],h,a].concat(lt)),typeof B<"u")return B;w&&(r=r.slice(0,-1*w*2),h=h.slice(0,-1*w),a=a.slice(0,-1*w)),r.push(this.productions_[b[1]][0]),h.push(C.$),a.push(C._$),Z=g[r[r.length-2]][r[r.length-1]],r.push(Z);break;case 3:return!0}}return!0}},m=function(){var d={EOF:1,parseError:function(i,r){if(this.yy.parser)this.yy.parser.parseError(i,r);else throw new Error(i)},setInput:function(i,r){return this.yy=r||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var r=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var h=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 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:c?(c.length===h.length?this.yylloc.first_column:0)+h[h.length-c.length].length-c[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-r]),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).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as T,B as O,E as Dn,k as Kn,b as bn,X as L,m as f,K as m,C as mn,c as x,P as b,$ as yn,d as kn,M as F,O as Hn,R,U as Qn,I as xn,G as Jn,e as Un,T as Wn,f as Xn}from"./graph-BZahQKIN-DafuBJcg.js";import{aq as En,ar as Zn,as as nr,at as J,au as On,av as $,aw as Nn,ax as rr,ay as S,az as H,aA as U,aB as tr,aC as er,aD as or,aE as _n,aF as ir,aG as ur}from"./index-DKpvLej3.js";var ar=/\s/;function cr(n){for(var r=n.length;r--&&ar.test(n.charAt(r)););return r}var dr=/^\s+/;function fr(n){return n&&n.slice(0,cr(n)+1).replace(dr,"")}var un=NaN,sr=/^[-+]0x[0-9a-f]+$/i,hr=/^0b[01]+$/i,vr=/^0o[0-7]+$/i,gr=parseInt;function lr(n){if(typeof n=="number")return n;if(L(n))return un;if(S(n)){var r=typeof n.valueOf=="function"?n.valueOf():n;n=S(r)?r+"":r}if(typeof n!="string")return n===0?n:+n;n=fr(n);var t=hr.test(n);return t||vr.test(n)?gr(n.slice(2),t?2:8):sr.test(n)?un:+n}var an=1/0,pr=17976931348623157e292;function C(n){if(!n)return n===0?n:0;if(n=lr(n),n===an||n===-an){var r=n<0?-1:1;return r*pr}return n===n?n:0}function wr(n){var r=C(n),t=r%1;return r===r?t?r-t:r:0}function N(n){var r=n==null?0:n.length;return r?bn(n):[]}function br(n){return Zn(nr(n,void 0,N),n+"")}var mr=1,yr=4;function kr(n){return Qn(n,mr|yr)}var In=Object.prototype,xr=In.hasOwnProperty,Er=En(function(n,r){n=Object(n);var t=-1,e=r.length,o=e>2?r[2]:void 0;for(o&&$(r[0],r[1],o)&&(e=1);++t<e;)for(var u=r[t],i=Nn(u),a=-1,c=i.length;++a<c;){var d=i[a],s=n[d];(s===void 0||rr(s,In[d])&&!xr.call(n,d))&&(n[d]=u[d])}return n});function B(n){var r=n==null?0:n.length;return r?n[r-1]:void 0}function Or(n){return function(r,t,e){var o=Object(r);if(!On(r)){var u=O(t);r=Un(r),t=function(a){return u(o[a],a,o)}}var i=n(r,t,e);return i>-1?o[u?r[i]:i]:void 0}}var Nr=Math.max;function _r(n,r,t){var e=n==null?0:n.length;if(!e)return-1;var o=t==null?0:wr(t);return o<0&&(o=Nr(e+o,0)),Xn(n,O(r),o)}var W=Or(_r);function Pn(n,r){var t=-1,e=On(n)?Array(n.length):[];return Kn(n,function(o,u,i){e[++t]=r(o,u,i)}),e}function p(n,r){var t=J(n)?T:Pn;return t(n,O(r))}function Ir(n,r){return n==null?n:ur(n,xn(r),Nn)}function Pr(n,r){return n&&yn(n,xn(r))}function jr(n,r){return n>r}var Rr=Object.prototype,Mr=Rr.hasOwnProperty;function Tr(n,r){return n!=null&&Mr.call(n,r)}function jn(n,r){return n!=null&&Hn(n,r,Tr)}function Rn(n,r){return n<r}function V(n,r){var t={};return r=O(r),yn(n,function(e,o,u){er(t,o,r(e,o,u))}),t}function X(n,r,t){for(var e=-1,o=n.length;++e<o;){var u=n[e],i=r(u);if(i!=null&&(a===void 0?i===i&&!L(i):t(i,a)))var a=i,c=u}return c}function y(n){return n&&n.length?X(n,U,jr):void 0}function P(n){return n&&n.length?X(n,U,Rn):void 0}function Z(n,r){return n&&n.length?X(n,O(r),Rn):void 0}function Cr(n,r,t,e){if(!S(n))return n;r=kn(r,n);for(var o=-1,u=r.length,i=u-1,a=n;a!=null&&++o<u;){var c=Jn(r[o]),d=t;if(c==="__proto__"||c==="constructor"||c==="prototype")return n;if(o!=i){var s=a[c];d=void 0,d===void 0&&(d=S(s)?s:or(r[o+1])?[]:{})}_n(a,c,d),a=a[c]}return n}function Lr(n,r,t){for(var e=-1,o=r.length,u={};++e<o;){var i=r[e],a=mn(n,i);t(a,i)&&Cr(u,kn(i,n),a)}return u}function $r(n,r){var t=n.length;for(n.sort(r);t--;)n[t]=n[t].value;return n}function Sr(n,r){if(n!==r){var t=n!==void 0,e=n===null,o=n===n,u=L(n),i=r!==void 0,a=r===null,c=r===r,d=L(r);if(!a&&!d&&!u&&n>r||u&&i&&c&&!a&&!d||e&&i&&c||!t&&c||!o)return 1;if(!e&&!u&&!d&&n<r||d&&t&&o&&!e&&!u||a&&t&&o||!i&&o||!c)return-1}return 0}function Br(n,r,t){for(var e=-1,o=n.criteria,u=r.criteria,i=o.length,a=t.length;++e<i;){var c=Sr(o[e],u[e]);if(c){if(e>=a)return c;var d=t[e];return c*(d=="desc"?-1:1)}}return n.index-r.index}function Gr(n,r,t){r.length?r=T(r,function(u){return J(u)?function(i){return mn(i,u.length===1?u[0]:u)}:u}):r=[U];var e=-1;r=T(r,tr(O));var o=Pn(n,function(u,i,a){var c=T(r,function(d){return d(u)});return{criteria:c,index:++e,value:u}});return $r(o,function(u,i){return Br(u,i,t)})}function Fr(n,r){return Lr(n,r,function(t,e){return Wn(n,e)})}var G=br(function(n,r){return n==null?{}:Fr(n,r)}),Vr=Math.ceil,qr=Math.max;function zr(n,r,t,e){for(var o=-1,u=qr(Vr((r-n)/(t||1)),0),i=Array(u);u--;)i[++o]=n,n+=t;return i}function Yr(n){return function(r,t,e){return e&&typeof e!="number"&&$(r,t,e)&&(t=e=void 0),r=C(r),t===void 0?(t=r,r=0):t=C(t),e=e===void 0?r<t?1:-1:C(e),zr(r,t,e)}}var E=Yr(),M=En(function(n,r){if(n==null)return[];var t=r.length;return t>1&&$(n,r[0],r[1])?r=[]:t>2&&$(r[0],r[1],r[2])&&(r=[r[0]]),Gr(n,bn(r),[])}),Ar=0;function nn(n){var r=++Ar;return Dn(n)+r}function Dr(n,r,t){for(var e=-1,o=n.length,u=r.length,i={};++e<o;){var a=e<u?r[e]:void 0;t(i,n[e],a)}return i}function Kr(n,r){return Dr(n||[],r||[],_n)}class Hr{constructor(){var r={};r._next=r._prev=r,this._sentinel=r}dequeue(){var r=this._sentinel,t=r._prev;if(t!==r)return cn(t),t}enqueue(r){var t=this._sentinel;r._prev&&r._next&&cn(r),r._next=t._next,t._next._prev=r,t._next=r,r._prev=t}toString(){for(var r=[],t=this._sentinel,e=t._prev;e!==t;)r.push(JSON.stringify(e,Qr)),e=e._prev;return"["+r.join(", ")+"]"}}function cn(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function Qr(n,r){if(n!=="_next"&&n!=="_prev")return r}var Jr=ir(1);function Ur(n,r){if(n.nodeCount()<=1)return[];var t=Xr(n,r||Jr),e=Wr(t.graph,t.buckets,t.zeroIdx);return N(p(e,function(o){return n.outEdges(o.v,o.w)}))}function Wr(n,r,t){for(var e=[],o=r[r.length-1],u=r[0],i;n.nodeCount();){for(;i=u.dequeue();)z(n,r,t,i);for(;i=o.dequeue();)z(n,r,t,i);if(n.nodeCount()){for(var a=r.length-2;a>0;--a)if(i=r[a].dequeue(),i){e=e.concat(z(n,r,t,i,!0));break}}}return e}function z(n,r,t,e,o){var u=o?[]:void 0;return f(n.inEdges(e.v),function(i){var a=n.edge(i),c=n.node(i.v);o&&u.push({v:i.v,w:i.w}),c.out-=a,Q(r,t,c)}),f(n.outEdges(e.v),function(i){var a=n.edge(i),c=i.w,d=n.node(c);d.in-=a,Q(r,t,d)}),n.removeNode(e.v),u}function Xr(n,r){var t=new m,e=0,o=0;f(n.nodes(),function(a){t.setNode(a,{v:a,in:0,out:0})}),f(n.edges(),function(a){var c=t.edge(a.v,a.w)||0,d=r(a),s=c+d;t.setEdge(a.v,a.w,s),o=Math.max(o,t.node(a.v).out+=d),e=Math.max(e,t.node(a.w).in+=d)});var u=E(o+e+3).map(function(){return new Hr}),i=e+1;return f(t.nodes(),function(a){Q(u,i,t.node(a))}),{graph:t,buckets:u,zeroIdx:i}}function Q(n,r,t){t.out?t.in?n[t.out-t.in+r].enqueue(t):n[n.length-1].enqueue(t):n[0].enqueue(t)}function Zr(n){var r=n.graph().acyclicer==="greedy"?Ur(n,t(n)):nt(n);f(r,function(e){var o=n.edge(e);n.removeEdge(e),o.forwardName=e.name,o.reversed=!0,n.setEdge(e.w,e.v,o,nn("rev"))});function t(e){return function(o){return e.edge(o).weight}}}function nt(n){var r=[],t={},e={};function o(u){Object.prototype.hasOwnProperty.call(e,u)||(e[u]=!0,t[u]=!0,f(n.outEdges(u),function(i){Object.prototype.hasOwnProperty.call(t,i.w)?r.push(i):o(i.w)}),delete t[u])}return f(n.nodes(),o),r}function rt(n){f(n.edges(),function(r){var t=n.edge(r);if(t.reversed){n.removeEdge(r);var e=t.forwardName;delete t.reversed,delete t.forwardName,n.setEdge(r.w,r.v,t,e)}})}function _(n,r,t,e){var o;do o=nn(e);while(n.hasNode(o));return t.dummy=r,n.setNode(o,t),o}function tt(n){var r=new m().setGraph(n.graph());return f(n.nodes(),function(t){r.setNode(t,n.node(t))}),f(n.edges(),function(t){var e=r.edge(t.v,t.w)||{weight:0,minlen:1},o=n.edge(t);r.setEdge(t.v,t.w,{weight:e.weight+o.weight,minlen:Math.max(e.minlen,o.minlen)})}),r}function Mn(n){var r=new m({multigraph:n.isMultigraph()}).setGraph(n.graph());return f(n.nodes(),function(t){n.children(t).length||r.setNode(t,n.node(t))}),f(n.edges(),function(t){r.setEdge(t,n.edge(t))}),r}function dn(n,r){var t=n.x,e=n.y,o=r.x-t,u=r.y-e,i=n.width/2,a=n.height/2;if(!o&&!u)throw new Error("Not possible to find intersection inside of the rectangle");var c,d;return Math.abs(u)*i>Math.abs(o)*a?(u<0&&(a=-a),c=a*o/u,d=a):(o<0&&(i=-i),c=i,d=i*u/o),{x:t+c,y:e+d}}function q(n){var r=p(E(Tn(n)+1),function(){return[]});return f(n.nodes(),function(t){var e=n.node(t),o=e.rank;b(o)||(r[o][e.order]=t)}),r}function et(n){var r=P(p(n.nodes(),function(t){return n.node(t).rank}));f(n.nodes(),function(t){var e=n.node(t);jn(e,"rank")&&(e.rank-=r)})}function ot(n){var r=P(p(n.nodes(),function(u){return n.node(u).rank})),t=[];f(n.nodes(),function(u){var i=n.node(u).rank-r;t[i]||(t[i]=[]),t[i].push(u)});var e=0,o=n.graph().nodeRankFactor;f(t,function(u,i){b(u)&&i%o!==0?--e:e&&f(u,function(a){n.node(a).rank+=e})})}function fn(n,r,t,e){var o={width:0,height:0};return arguments.length>=4&&(o.rank=t,o.order=e),_(n,"border",o,r)}function Tn(n){return y(p(n.nodes(),function(r){var t=n.node(r).rank;if(!b(t))return t}))}function it(n,r){var t={lhs:[],rhs:[]};return f(n,function(e){r(e)?t.lhs.push(e):t.rhs.push(e)}),t}function ut(n,r){return r()}function at(n){function r(t){var e=n.children(t),o=n.node(t);if(e.length&&f(e,r),Object.prototype.hasOwnProperty.call(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var u=o.minRank,i=o.maxRank+1;u<i;++u)sn(n,"borderLeft","_bl",t,o,u),sn(n,"borderRight","_br",t,o,u)}}f(n.children(),r)}function sn(n,r,t,e,o,u){var i={width:0,height:0,rank:u,borderType:r},a=o[r][u-1],c=_(n,"border",i,t);o[r][u]=c,n.setParent(c,e),a&&n.setEdge(a,c,{weight:1})}function ct(n){var r=n.graph().rankdir.toLowerCase();(r==="lr"||r==="rl")&&Cn(n)}function dt(n){var r=n.graph().rankdir.toLowerCase();(r==="bt"||r==="rl")&&ft(n),(r==="lr"||r==="rl")&&(st(n),Cn(n))}function Cn(n){f(n.nodes(),function(r){hn(n.node(r))}),f(n.edges(),function(r){hn(n.edge(r))})}function hn(n){var r=n.width;n.width=n.height,n.height=r}function ft(n){f(n.nodes(),function(r){Y(n.node(r))}),f(n.edges(),function(r){var t=n.edge(r);f(t.points,Y),Object.prototype.hasOwnProperty.call(t,"y")&&Y(t)})}function Y(n){n.y=-n.y}function st(n){f(n.nodes(),function(r){A(n.node(r))}),f(n.edges(),function(r){var t=n.edge(r);f(t.points,A),Object.prototype.hasOwnProperty.call(t,"x")&&A(t)})}function A(n){var r=n.x;n.x=n.y,n.y=r}function ht(n){n.graph().dummyChains=[],f(n.edges(),function(r){vt(n,r)})}function vt(n,r){var t=r.v,e=n.node(t).rank,o=r.w,u=n.node(o).rank,i=r.name,a=n.edge(r),c=a.labelRank;if(u!==e+1){n.removeEdge(r);var d=void 0,s,h;for(h=0,++e;e<u;++h,++e)a.points=[],d={width:0,height:0,edgeLabel:a,edgeObj:r,rank:e},s=_(n,"edge",d,"_d"),e===c&&(d.width=a.width,d.height=a.height,d.dummy="edge-label",d.labelpos=a.labelpos),n.setEdge(t,s,{weight:a.weight},i),h===0&&n.graph().dummyChains.push(s),t=s;n.setEdge(t,o,{weight:a.weight},i)}}function gt(n){f(n.graph().dummyChains,function(r){var t=n.node(r),e=t.edgeLabel,o;for(n.setEdge(t.edgeObj,e);t.dummy;)o=n.successors(r)[0],n.removeNode(r),e.points.push({x:t.x,y:t.y}),t.dummy==="edge-label"&&(e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height),r=o,t=n.node(r)})}function rn(n){var r={};function t(e){var o=n.node(e);if(Object.prototype.hasOwnProperty.call(r,e))return o.rank;r[e]=!0;var u=P(p(n.outEdges(e),function(i){return t(i.w)-n.edge(i).minlen}));return(u===Number.POSITIVE_INFINITY||u===void 0||u===null)&&(u=0),o.rank=u}f(n.sources(),t)}function j(n,r){return n.node(r.w).rank-n.node(r.v).rank-n.edge(r).minlen}function Ln(n){var r=new m({directed:!1}),t=n.nodes()[0],e=n.nodeCount();r.setNode(t,{});for(var o,u;lt(r,n)<e;)o=pt(r,n),u=r.hasNode(o.v)?j(n,o):-j(n,o),wt(r,n,u);return r}function lt(n,r){function t(e){f(r.nodeEdges(e),function(o){var u=o.v,i=e===u?o.w:u;!n.hasNode(i)&&!j(r,o)&&(n.setNode(i,{}),n.setEdge(e,i,{}),t(i))})}return f(n.nodes(),t),n.nodeCount()}function pt(n,r){return Z(r.edges(),function(t){if(n.hasNode(t.v)!==n.hasNode(t.w))return j(r,t)})}function wt(n,r,t){f(n.nodes(),function(e){r.node(e).rank+=t})}function $n(n,r,t){J(r)||(r=[r]);var e=(n.isDirected()?n.successors:n.neighbors).bind(n),o=[],u={};return f(r,function(i){if(!n.hasNode(i))throw new Error("Graph does not have node: "+i);Sn(n,i,t==="post",u,e,o)}),o}function Sn(n,r,t,e,o,u){Object.prototype.hasOwnProperty.call(e,r)||(e[r]=!0,t||u.push(r),f(o(r),function(i){Sn(n,i,t,e,o,u)}),t&&u.push(r))}function bt(n,r){return $n(n,r,"post")}function mt(n,r){return $n(n,r,"pre")}k.initLowLimValues=en;k.initCutValues=tn;k.calcCutValue=Bn;k.leaveEdge=Fn;k.enterEdge=Vn;k.exchangeEdges=qn;function k(n){n=tt(n),rn(n);var r=Ln(n);en(r),tn(r,n);for(var t,e;t=Fn(r);)e=Vn(r,n,t),qn(r,n,t,e)}function tn(n,r){var t=bt(n,n.nodes());t=t.slice(0,t.length-1),f(t,function(e){yt(n,r,e)})}function yt(n,r,t){var e=n.node(t),o=e.parent;n.edge(t,o).cutvalue=Bn(n,r,t)}function Bn(n,r,t){var e=n.node(t),o=e.parent,u=!0,i=r.edge(t,o),a=0;return i||(u=!1,i=r.edge(o,t)),a=i.weight,f(r.nodeEdges(t),function(c){var d=c.v===t,s=d?c.w:c.v;if(s!==o){var h=d===u,v=r.edge(c).weight;if(a+=h?v:-v,xt(n,t,s)){var g=n.edge(t,s).cutvalue;a+=h?-g:g}}}),a}function en(n,r){arguments.length<2&&(r=n.nodes()[0]),Gn(n,{},1,r)}function Gn(n,r,t,e,o){var u=t,i=n.node(e);return r[e]=!0,f(n.neighbors(e),function(a){Object.prototype.hasOwnProperty.call(r,a)||(t=Gn(n,r,t,a,e))}),i.low=u,i.lim=t++,o?i.parent=o:delete i.parent,t}function Fn(n){return W(n.edges(),function(r){return n.edge(r).cutvalue<0})}function Vn(n,r,t){var e=t.v,o=t.w;r.hasEdge(e,o)||(e=t.w,o=t.v);var u=n.node(e),i=n.node(o),a=u,c=!1;u.lim>i.lim&&(a=i,c=!0);var d=R(r.edges(),function(s){return c===vn(n,n.node(s.v),a)&&c!==vn(n,n.node(s.w),a)});return Z(d,function(s){return j(r,s)})}function qn(n,r,t,e){var o=t.v,u=t.w;n.removeEdge(o,u),n.setEdge(e.v,e.w,{}),en(n),tn(n,r),kt(n,r)}function kt(n,r){var t=W(n.nodes(),function(o){return!r.node(o).parent}),e=mt(n,t);e=e.slice(1),f(e,function(o){var u=n.node(o).parent,i=r.edge(o,u),a=!1;i||(i=r.edge(u,o),a=!0),r.node(o).rank=r.node(u).rank+(a?i.minlen:-i.minlen)})}function xt(n,r,t){return n.hasEdge(r,t)}function vn(n,r,t){return t.low<=r.lim&&r.lim<=t.lim}function Et(n){switch(n.graph().ranker){case"network-simplex":gn(n);break;case"tight-tree":Nt(n);break;case"longest-path":Ot(n);break;default:gn(n)}}var Ot=rn;function Nt(n){rn(n),Ln(n)}function gn(n){k(n)}function _t(n){var r=_(n,"root",{},"_root"),t=It(n),e=y(x(t))-1,o=2*e+1;n.graph().nestingRoot=r,f(n.edges(),function(i){n.edge(i).minlen*=o});var u=Pt(n)+1;f(n.children(),function(i){zn(n,r,o,u,e,t,i)}),n.graph().nodeRankFactor=o}function zn(n,r,t,e,o,u,i){var a=n.children(i);if(!a.length){i!==r&&n.setEdge(r,i,{weight:0,minlen:t});return}var c=fn(n,"_bt"),d=fn(n,"_bb"),s=n.node(i);n.setParent(c,i),s.borderTop=c,n.setParent(d,i),s.borderBottom=d,f(a,function(h){zn(n,r,t,e,o,u,h);var v=n.node(h),g=v.borderTop?v.borderTop:h,l=v.borderBottom?v.borderBottom:h,w=v.borderTop?e:2*e,I=g!==l?1:o-u[i]+1;n.setEdge(c,g,{weight:w,minlen:I,nestingEdge:!0}),n.setEdge(l,d,{weight:w,minlen:I,nestingEdge:!0})}),n.parent(i)||n.setEdge(r,c,{weight:0,minlen:o+u[i]})}function It(n){var r={};function t(e,o){var u=n.children(e);u&&u.length&&f(u,function(i){t(i,o+1)}),r[e]=o}return f(n.children(),function(e){t(e,1)}),r}function Pt(n){return F(n.edges(),function(r,t){return r+n.edge(t).weight},0)}function jt(n){var r=n.graph();n.removeNode(r.nestingRoot),delete r.nestingRoot,f(n.edges(),function(t){var e=n.edge(t);e.nestingEdge&&n.removeEdge(t)})}function Rt(n,r,t){var e={},o;f(t,function(u){for(var i=n.parent(u),a,c;i;){if(a=n.parent(i),a?(c=e[a],e[a]=i):(c=o,o=i),c&&c!==i){r.setEdge(c,i);return}i=a}})}function Mt(n,r,t){var e=Tt(n),o=new m({compound:!0}).setGraph({root:e}).setDefaultNodeLabel(function(u){return n.node(u)});return f(n.nodes(),function(u){var i=n.node(u),a=n.parent(u);(i.rank===r||i.minRank<=r&&r<=i.maxRank)&&(o.setNode(u),o.setParent(u,a||e),f(n[t](u),function(c){var d=c.v===u?c.w:c.v,s=o.edge(d,u),h=b(s)?0:s.weight;o.setEdge(d,u,{weight:n.edge(c).weight+h})}),Object.prototype.hasOwnProperty.call(i,"minRank")&&o.setNode(u,{borderLeft:i.borderLeft[r],borderRight:i.borderRight[r]}))}),o}function Tt(n){for(var r;n.hasNode(r=nn("_root")););return r}function Ct(n,r){for(var t=0,e=1;e<r.length;++e)t+=Lt(n,r[e-1],r[e]);return t}function Lt(n,r,t){for(var e=Kr(t,p(t,function(d,s){return s})),o=N(p(r,function(d){return M(p(n.outEdges(d),function(s){return{pos:e[s.w],weight:n.edge(s).weight}}),"pos")})),u=1;u<t.length;)u<<=1;var i=2*u-1;u-=1;var a=p(new Array(i),function(){return 0}),c=0;return f(o.forEach(function(d){var s=d.pos+u;a[s]+=d.weight;for(var h=0;s>0;)s%2&&(h+=a[s+1]),s=s-1>>1,a[s]+=d.weight;c+=d.weight*h})),c}function $t(n){var r={},t=R(n.nodes(),function(a){return!n.children(a).length}),e=y(p(t,function(a){return n.node(a).rank})),o=p(E(e+1),function(){return[]});function u(a){if(!jn(r,a)){r[a]=!0;var c=n.node(a);o[c.rank].push(a),f(n.successors(a),u)}}var i=M(t,function(a){return n.node(a).rank});return f(i,u),o}function St(n,r){return p(r,function(t){var e=n.inEdges(t);if(e.length){var o=F(e,function(u,i){var a=n.edge(i),c=n.node(i.v);return{sum:u.sum+a.weight*c.order,weight:u.weight+a.weight}},{sum:0,weight:0});return{v:t,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:t}})}function Bt(n,r){var t={};f(n,function(o,u){var i=t[o.v]={indegree:0,in:[],out:[],vs:[o.v],i:u};b(o.barycenter)||(i.barycenter=o.barycenter,i.weight=o.weight)}),f(r.edges(),function(o){var u=t[o.v],i=t[o.w];!b(u)&&!b(i)&&(i.indegree++,u.out.push(t[o.w]))});var e=R(t,function(o){return!o.indegree});return Gt(e)}function Gt(n){var r=[];function t(u){return function(i){i.merged||(b(i.barycenter)||b(u.barycenter)||i.barycenter>=u.barycenter)&&Ft(u,i)}}function e(u){return function(i){i.in.push(u),--i.indegree===0&&n.push(i)}}for(;n.length;){var o=n.pop();r.push(o),f(o.in.reverse(),t(o)),f(o.out,e(o))}return p(R(r,function(u){return!u.merged}),function(u){return G(u,["vs","i","barycenter","weight"])})}function Ft(n,r){var t=0,e=0;n.weight&&(t+=n.barycenter*n.weight,e+=n.weight),r.weight&&(t+=r.barycenter*r.weight,e+=r.weight),n.vs=r.vs.concat(n.vs),n.barycenter=t/e,n.weight=e,n.i=Math.min(r.i,n.i),r.merged=!0}function Vt(n,r){var t=it(n,function(s){return Object.prototype.hasOwnProperty.call(s,"barycenter")}),e=t.lhs,o=M(t.rhs,function(s){return-s.i}),u=[],i=0,a=0,c=0;e.sort(qt(!!r)),c=ln(u,o,c),f(e,function(s){c+=s.vs.length,u.push(s.vs),i+=s.barycenter*s.weight,a+=s.weight,c=ln(u,o,c)});var d={vs:N(u)};return a&&(d.barycenter=i/a,d.weight=a),d}function ln(n,r,t){for(var e;r.length&&(e=B(r)).i<=t;)r.pop(),n.push(e.vs),t++;return t}function qt(n){return function(r,t){return r.barycenter<t.barycenter?-1:r.barycenter>t.barycenter?1:n?t.i-r.i:r.i-t.i}}function Yn(n,r,t,e){var o=n.children(r),u=n.node(r),i=u?u.borderLeft:void 0,a=u?u.borderRight:void 0,c={};i&&(o=R(o,function(l){return l!==i&&l!==a}));var d=St(n,o);f(d,function(l){if(n.children(l.v).length){var w=Yn(n,l.v,t,e);c[l.v]=w,Object.prototype.hasOwnProperty.call(w,"barycenter")&&Yt(l,w)}});var s=Bt(d,t);zt(s,c);var h=Vt(s,e);if(i&&(h.vs=N([i,h.vs,a]),n.predecessors(i).length)){var v=n.node(n.predecessors(i)[0]),g=n.node(n.predecessors(a)[0]);Object.prototype.hasOwnProperty.call(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+v.order+g.order)/(h.weight+2),h.weight+=2}return h}function zt(n,r){f(n,function(t){t.vs=N(t.vs.map(function(e){return r[e]?r[e].vs:e}))})}function Yt(n,r){b(n.barycenter)?(n.barycenter=r.barycenter,n.weight=r.weight):(n.barycenter=(n.barycenter*n.weight+r.barycenter*r.weight)/(n.weight+r.weight),n.weight+=r.weight)}function At(n){var r=Tn(n),t=pn(n,E(1,r+1),"inEdges"),e=pn(n,E(r-1,-1,-1),"outEdges"),o=$t(n);wn(n,o);for(var u=Number.POSITIVE_INFINITY,i,a=0,c=0;c<4;++a,++c){Dt(a%2?t:e,a%4>=2),o=q(n);var d=Ct(n,o);d<u&&(c=0,i=kr(o),u=d)}wn(n,i)}function pn(n,r,t){return p(r,function(e){return Mt(n,e,t)})}function Dt(n,r){var t=new m;f(n,function(e){var o=e.graph().root,u=Yn(e,o,t,r);f(u.vs,function(i,a){e.node(i).order=a}),Rt(e,t,u.vs)})}function wn(n,r){f(r,function(t){f(t,function(e,o){n.node(e).order=o})})}function Kt(n){var r=Qt(n);f(n.graph().dummyChains,function(t){for(var e=n.node(t),o=e.edgeObj,u=Ht(n,r,o.v,o.w),i=u.path,a=u.lca,c=0,d=i[c],s=!0;t!==o.w;){if(e=n.node(t),s){for(;(d=i[c])!==a&&n.node(d).maxRank<e.rank;)c++;d===a&&(s=!1)}if(!s){for(;c<i.length-1&&n.node(d=i[c+1]).minRank<=e.rank;)c++;d=i[c]}n.setParent(t,d),t=n.successors(t)[0]}})}function Ht(n,r,t,e){var o=[],u=[],i=Math.min(r[t].low,r[e].low),a=Math.max(r[t].lim,r[e].lim),c,d;c=t;do c=n.parent(c),o.push(c);while(c&&(r[c].low>i||a>r[c].lim));for(d=c,c=e;(c=n.parent(c))!==d;)u.push(c);return{path:o.concat(u.reverse()),lca:d}}function Qt(n){var r={},t=0;function e(o){var u=t;f(n.children(o),e),r[o]={low:u,lim:t++}}return f(n.children(),e),r}function Jt(n,r){var t={};function e(o,u){var i=0,a=0,c=o.length,d=B(u);return f(u,function(s,h){var v=Wt(n,s),g=v?n.node(v).order:c;(v||s===d)&&(f(u.slice(a,h+1),function(l){f(n.predecessors(l),function(w){var I=n.node(w),on=I.order;(on<i||g<on)&&!(I.dummy&&n.node(l).dummy)&&An(t,w,l)})}),a=h+1,i=g)}),u}return F(r,e),t}function Ut(n,r){var t={};function e(u,i,a,c,d){var s;f(E(i,a),function(h){s=u[h],n.node(s).dummy&&f(n.predecessors(s),function(v){var g=n.node(v);g.dummy&&(g.order<c||g.order>d)&&An(t,v,s)})})}function o(u,i){var a=-1,c,d=0;return f(i,function(s,h){if(n.node(s).dummy==="border"){var v=n.predecessors(s);v.length&&(c=n.node(v[0]).order,e(i,d,h,a,c),d=h,a=c)}e(i,d,i.length,c,u.length)}),i}return F(r,o),t}function Wt(n,r){if(n.node(r).dummy)return W(n.predecessors(r),function(t){return n.node(t).dummy})}function An(n,r,t){if(r>t){var e=r;r=t,t=e}Object.prototype.hasOwnProperty.call(n,r)||Object.defineProperty(n,r,{enumerable:!0,configurable:!0,value:{},writable:!0});var o=n[r];Object.defineProperty(o,t,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Xt(n,r,t){if(r>t){var e=r;r=t,t=e}return!!n[r]&&Object.prototype.hasOwnProperty.call(n[r],t)}function Zt(n,r,t,e){var o={},u={},i={};return f(r,function(a){f(a,function(c,d){o[c]=c,u[c]=c,i[c]=d})}),f(r,function(a){var c=-1;f(a,function(d){var s=e(d);if(s.length){s=M(s,function(w){return i[w]});for(var h=(s.length-1)/2,v=Math.floor(h),g=Math.ceil(h);v<=g;++v){var l=s[v];u[d]===d&&c<i[l]&&!Xt(t,d,l)&&(u[l]=d,u[d]=o[d]=o[l],c=i[l])}}})}),{root:o,align:u}}function ne(n,r,t,e,o){var u={},i=re(n,r,t,o),a=o?"borderLeft":"borderRight";function c(h,v){for(var g=i.nodes(),l=g.pop(),w={};l;)w[l]?h(l):(w[l]=!0,g.push(l),g=g.concat(v(l))),l=g.pop()}function d(h){u[h]=i.inEdges(h).reduce(function(v,g){return Math.max(v,u[g.v]+i.edge(g))},0)}function s(h){var v=i.outEdges(h).reduce(function(l,w){return Math.min(l,u[w.w]-i.edge(w))},Number.POSITIVE_INFINITY),g=n.node(h);v!==Number.POSITIVE_INFINITY&&g.borderType!==a&&(u[h]=Math.max(u[h],v))}return c(d,i.predecessors.bind(i)),c(s,i.successors.bind(i)),f(e,function(h){u[h]=u[t[h]]}),u}function re(n,r,t,e){var o=new m,u=n.graph(),i=ue(u.nodesep,u.edgesep,e);return f(r,function(a){var c;f(a,function(d){var s=t[d];if(o.setNode(s),c){var h=t[c],v=o.edge(h,s);o.setEdge(h,s,Math.max(i(n,d,c),v||0))}c=d})}),o}function te(n,r){return Z(x(r),function(t){var e=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return Ir(t,function(u,i){var a=ae(n,i)/2;e=Math.max(u+a,e),o=Math.min(u-a,o)}),e-o})}function ee(n,r){var t=x(r),e=P(t),o=y(t);f(["u","d"],function(u){f(["l","r"],function(i){var a=u+i,c=n[a],d;if(c!==r){var s=x(c);d=i==="l"?e-P(s):o-y(s),d&&(n[a]=V(c,function(h){return h+d}))}})})}function oe(n,r){return V(n.ul,function(t,e){if(r)return n[r.toLowerCase()][e];var o=M(p(n,e));return(o[1]+o[2])/2})}function ie(n){var r=q(n),t=H(Jt(n,r),Ut(n,r)),e={},o;f(["u","d"],function(i){o=i==="u"?r:x(r).reverse(),f(["l","r"],function(a){a==="r"&&(o=p(o,function(h){return x(h).reverse()}));var c=(i==="u"?n.predecessors:n.successors).bind(n),d=Zt(n,o,t,c),s=ne(n,o,d.root,d.align,a==="r");a==="r"&&(s=V(s,function(h){return-h})),e[i+a]=s})});var u=te(n,e);return ee(e,u),oe(e,n.graph().align)}function ue(n,r,t){return function(e,o,u){var i=e.node(o),a=e.node(u),c=0,d;if(c+=i.width/2,Object.prototype.hasOwnProperty.call(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":d=-i.width/2;break;case"r":d=i.width/2;break}if(d&&(c+=t?d:-d),d=0,c+=(i.dummy?r:n)/2,c+=(a.dummy?r:n)/2,c+=a.width/2,Object.prototype.hasOwnProperty.call(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":d=a.width/2;break;case"r":d=-a.width/2;break}return d&&(c+=t?d:-d),d=0,c}}function ae(n,r){return n.node(r).width}function ce(n){n=Mn(n),de(n),Pr(ie(n),function(r,t){n.node(t).x=r})}function de(n){var r=q(n),t=n.graph().ranksep,e=0;f(r,function(o){var u=y(p(o,function(i){return n.node(i).height}));f(o,function(i){n.node(i).y=e+u/2}),e+=u+t})}function $e(n,r){var t=ut;t("layout",()=>{var e=t(" buildLayoutGraph",()=>ye(n));t(" runLayout",()=>fe(e,t)),t(" updateInputGraph",()=>se(n,e))})}function fe(n,r){r(" makeSpaceForEdgeLabels",()=>ke(n)),r(" removeSelfEdges",()=>Re(n)),r(" acyclic",()=>Zr(n)),r(" nestingGraph.run",()=>_t(n)),r(" rank",()=>Et(Mn(n))),r(" injectEdgeLabelProxies",()=>xe(n)),r(" removeEmptyRanks",()=>ot(n)),r(" nestingGraph.cleanup",()=>jt(n)),r(" normalizeRanks",()=>et(n)),r(" assignRankMinMax",()=>Ee(n)),r(" removeEdgeLabelProxies",()=>Oe(n)),r(" normalize.run",()=>ht(n)),r(" parentDummyChains",()=>Kt(n)),r(" addBorderSegments",()=>at(n)),r(" order",()=>At(n)),r(" insertSelfEdges",()=>Me(n)),r(" adjustCoordinateSystem",()=>ct(n)),r(" position",()=>ce(n)),r(" positionSelfEdges",()=>Te(n)),r(" removeBorderNodes",()=>je(n)),r(" normalize.undo",()=>gt(n)),r(" fixupEdgeLabelCoords",()=>Ie(n)),r(" undoCoordinateSystem",()=>dt(n)),r(" translateGraph",()=>Ne(n)),r(" assignNodeIntersects",()=>_e(n)),r(" reversePoints",()=>Pe(n)),r(" acyclic.undo",()=>rt(n))}function se(n,r){f(n.nodes(),function(t){var e=n.node(t),o=r.node(t);e&&(e.x=o.x,e.y=o.y,r.children(t).length&&(e.width=o.width,e.height=o.height))}),f(n.edges(),function(t){var e=n.edge(t),o=r.edge(t);e.points=o.points,Object.prototype.hasOwnProperty.call(o,"x")&&(e.x=o.x,e.y=o.y)}),n.graph().width=r.graph().width,n.graph().height=r.graph().height}var he=["nodesep","edgesep","ranksep","marginx","marginy"],ve={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},ge=["acyclicer","ranker","rankdir","align"],le=["width","height"],pe={width:0,height:0},we=["minlen","weight","width","height","labeloffset"],be={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},me=["labelpos"];function ye(n){var r=new m({multigraph:!0,compound:!0}),t=K(n.graph());return r.setGraph(H({},ve,D(t,he),G(t,ge))),f(n.nodes(),function(e){var o=K(n.node(e));r.setNode(e,Er(D(o,le),pe)),r.setParent(e,n.parent(e))}),f(n.edges(),function(e){var o=K(n.edge(e));r.setEdge(e,H({},be,D(o,we),G(o,me)))}),r}function ke(n){var r=n.graph();r.ranksep/=2,f(n.edges(),function(t){var e=n.edge(t);e.minlen*=2,e.labelpos.toLowerCase()!=="c"&&(r.rankdir==="TB"||r.rankdir==="BT"?e.width+=e.labeloffset:e.height+=e.labeloffset)})}function xe(n){f(n.edges(),function(r){var t=n.edge(r);if(t.width&&t.height){var e=n.node(r.v),o=n.node(r.w),u={rank:(o.rank-e.rank)/2+e.rank,e:r};_(n,"edge-proxy",u,"_ep")}})}function Ee(n){var r=0;f(n.nodes(),function(t){var e=n.node(t);e.borderTop&&(e.minRank=n.node(e.borderTop).rank,e.maxRank=n.node(e.borderBottom).rank,r=y(r,e.maxRank))}),n.graph().maxRank=r}function Oe(n){f(n.nodes(),function(r){var t=n.node(r);t.dummy==="edge-proxy"&&(n.edge(t.e).labelRank=t.rank,n.removeNode(r))})}function Ne(n){var r=Number.POSITIVE_INFINITY,t=0,e=Number.POSITIVE_INFINITY,o=0,u=n.graph(),i=u.marginx||0,a=u.marginy||0;function c(d){var s=d.x,h=d.y,v=d.width,g=d.height;r=Math.min(r,s-v/2),t=Math.max(t,s+v/2),e=Math.min(e,h-g/2),o=Math.max(o,h+g/2)}f(n.nodes(),function(d){c(n.node(d))}),f(n.edges(),function(d){var s=n.edge(d);Object.prototype.hasOwnProperty.call(s,"x")&&c(s)}),r-=i,e-=a,f(n.nodes(),function(d){var s=n.node(d);s.x-=r,s.y-=e}),f(n.edges(),function(d){var s=n.edge(d);f(s.points,function(h){h.x-=r,h.y-=e}),Object.prototype.hasOwnProperty.call(s,"x")&&(s.x-=r),Object.prototype.hasOwnProperty.call(s,"y")&&(s.y-=e)}),u.width=t-r+i,u.height=o-e+a}function _e(n){f(n.edges(),function(r){var t=n.edge(r),e=n.node(r.v),o=n.node(r.w),u,i;t.points?(u=t.points[0],i=t.points[t.points.length-1]):(t.points=[],u=o,i=e),t.points.unshift(dn(e,u)),t.points.push(dn(o,i))})}function Ie(n){f(n.edges(),function(r){var t=n.edge(r);if(Object.prototype.hasOwnProperty.call(t,"x"))switch((t.labelpos==="l"||t.labelpos==="r")&&(t.width-=t.labeloffset),t.labelpos){case"l":t.x-=t.width/2+t.labeloffset;break;case"r":t.x+=t.width/2+t.labeloffset;break}})}function Pe(n){f(n.edges(),function(r){var t=n.edge(r);t.reversed&&t.points.reverse()})}function je(n){f(n.nodes(),function(r){if(n.children(r).length){var t=n.node(r),e=n.node(t.borderTop),o=n.node(t.borderBottom),u=n.node(B(t.borderLeft)),i=n.node(B(t.borderRight));t.width=Math.abs(i.x-u.x),t.height=Math.abs(o.y-e.y),t.x=u.x+t.width/2,t.y=e.y+t.height/2}}),f(n.nodes(),function(r){n.node(r).dummy==="border"&&n.removeNode(r)})}function Re(n){f(n.edges(),function(r){if(r.v===r.w){var t=n.node(r.v);t.selfEdges||(t.selfEdges=[]),t.selfEdges.push({e:r,label:n.edge(r)}),n.removeEdge(r)}})}function Me(n){var r=q(n);f(r,function(t){var e=0;f(t,function(o,u){var i=n.node(o);i.order=u+e,f(i.selfEdges,function(a){_(n,"selfedge",{width:a.label.width,height:a.label.height,rank:i.rank,order:u+ ++e,e:a.e,label:a.label},"_se")}),delete i.selfEdges})})}function Te(n){f(n.nodes(),function(r){var t=n.node(r);if(t.dummy==="selfedge"){var e=n.node(t.e.v),o=e.x+e.width/2,u=e.y,i=t.x-o,a=e.height/2;n.setEdge(t.e,t.label),n.removeNode(r),t.label.points=[{x:o+2*i/3,y:u-a},{x:o+5*i/6,y:u-a},{x:o+i,y:u},{x:o+5*i/6,y:u+a},{x:o+2*i/3,y:u+a}],t.label.x=t.x,t.label.y=t.y}})}function D(n,r){return V(G(n,r),Number)}function K(n){var r={};return f(n,function(t,e){r[e.toLowerCase()]=t}),r}export{$e as A,E as a,nn as e,G as j,Er as k,p as w};
|
|
1
|
+
import{a as T,B as O,E as Dn,k as Kn,b as bn,X as L,m as f,K as m,C as mn,c as x,P as b,$ as yn,d as kn,M as F,O as Hn,R,U as Qn,I as xn,G as Jn,e as Un,T as Wn,f as Xn}from"./graph-BZahQKIN-CTgzd5us.js";import{aq as En,ar as Zn,as as nr,at as J,au as On,av as $,aw as Nn,ax as rr,ay as S,az as H,aA as U,aB as tr,aC as er,aD as or,aE as _n,aF as ir,aG as ur}from"./index-CDwx2U7N.js";var ar=/\s/;function cr(n){for(var r=n.length;r--&&ar.test(n.charAt(r)););return r}var dr=/^\s+/;function fr(n){return n&&n.slice(0,cr(n)+1).replace(dr,"")}var un=NaN,sr=/^[-+]0x[0-9a-f]+$/i,hr=/^0b[01]+$/i,vr=/^0o[0-7]+$/i,gr=parseInt;function lr(n){if(typeof n=="number")return n;if(L(n))return un;if(S(n)){var r=typeof n.valueOf=="function"?n.valueOf():n;n=S(r)?r+"":r}if(typeof n!="string")return n===0?n:+n;n=fr(n);var t=hr.test(n);return t||vr.test(n)?gr(n.slice(2),t?2:8):sr.test(n)?un:+n}var an=1/0,pr=17976931348623157e292;function C(n){if(!n)return n===0?n:0;if(n=lr(n),n===an||n===-an){var r=n<0?-1:1;return r*pr}return n===n?n:0}function wr(n){var r=C(n),t=r%1;return r===r?t?r-t:r:0}function N(n){var r=n==null?0:n.length;return r?bn(n):[]}function br(n){return Zn(nr(n,void 0,N),n+"")}var mr=1,yr=4;function kr(n){return Qn(n,mr|yr)}var In=Object.prototype,xr=In.hasOwnProperty,Er=En(function(n,r){n=Object(n);var t=-1,e=r.length,o=e>2?r[2]:void 0;for(o&&$(r[0],r[1],o)&&(e=1);++t<e;)for(var u=r[t],i=Nn(u),a=-1,c=i.length;++a<c;){var d=i[a],s=n[d];(s===void 0||rr(s,In[d])&&!xr.call(n,d))&&(n[d]=u[d])}return n});function B(n){var r=n==null?0:n.length;return r?n[r-1]:void 0}function Or(n){return function(r,t,e){var o=Object(r);if(!On(r)){var u=O(t);r=Un(r),t=function(a){return u(o[a],a,o)}}var i=n(r,t,e);return i>-1?o[u?r[i]:i]:void 0}}var Nr=Math.max;function _r(n,r,t){var e=n==null?0:n.length;if(!e)return-1;var o=t==null?0:wr(t);return o<0&&(o=Nr(e+o,0)),Xn(n,O(r),o)}var W=Or(_r);function Pn(n,r){var t=-1,e=On(n)?Array(n.length):[];return Kn(n,function(o,u,i){e[++t]=r(o,u,i)}),e}function p(n,r){var t=J(n)?T:Pn;return t(n,O(r))}function Ir(n,r){return n==null?n:ur(n,xn(r),Nn)}function Pr(n,r){return n&&yn(n,xn(r))}function jr(n,r){return n>r}var Rr=Object.prototype,Mr=Rr.hasOwnProperty;function Tr(n,r){return n!=null&&Mr.call(n,r)}function jn(n,r){return n!=null&&Hn(n,r,Tr)}function Rn(n,r){return n<r}function V(n,r){var t={};return r=O(r),yn(n,function(e,o,u){er(t,o,r(e,o,u))}),t}function X(n,r,t){for(var e=-1,o=n.length;++e<o;){var u=n[e],i=r(u);if(i!=null&&(a===void 0?i===i&&!L(i):t(i,a)))var a=i,c=u}return c}function y(n){return n&&n.length?X(n,U,jr):void 0}function P(n){return n&&n.length?X(n,U,Rn):void 0}function Z(n,r){return n&&n.length?X(n,O(r),Rn):void 0}function Cr(n,r,t,e){if(!S(n))return n;r=kn(r,n);for(var o=-1,u=r.length,i=u-1,a=n;a!=null&&++o<u;){var c=Jn(r[o]),d=t;if(c==="__proto__"||c==="constructor"||c==="prototype")return n;if(o!=i){var s=a[c];d=void 0,d===void 0&&(d=S(s)?s:or(r[o+1])?[]:{})}_n(a,c,d),a=a[c]}return n}function Lr(n,r,t){for(var e=-1,o=r.length,u={};++e<o;){var i=r[e],a=mn(n,i);t(a,i)&&Cr(u,kn(i,n),a)}return u}function $r(n,r){var t=n.length;for(n.sort(r);t--;)n[t]=n[t].value;return n}function Sr(n,r){if(n!==r){var t=n!==void 0,e=n===null,o=n===n,u=L(n),i=r!==void 0,a=r===null,c=r===r,d=L(r);if(!a&&!d&&!u&&n>r||u&&i&&c&&!a&&!d||e&&i&&c||!t&&c||!o)return 1;if(!e&&!u&&!d&&n<r||d&&t&&o&&!e&&!u||a&&t&&o||!i&&o||!c)return-1}return 0}function Br(n,r,t){for(var e=-1,o=n.criteria,u=r.criteria,i=o.length,a=t.length;++e<i;){var c=Sr(o[e],u[e]);if(c){if(e>=a)return c;var d=t[e];return c*(d=="desc"?-1:1)}}return n.index-r.index}function Gr(n,r,t){r.length?r=T(r,function(u){return J(u)?function(i){return mn(i,u.length===1?u[0]:u)}:u}):r=[U];var e=-1;r=T(r,tr(O));var o=Pn(n,function(u,i,a){var c=T(r,function(d){return d(u)});return{criteria:c,index:++e,value:u}});return $r(o,function(u,i){return Br(u,i,t)})}function Fr(n,r){return Lr(n,r,function(t,e){return Wn(n,e)})}var G=br(function(n,r){return n==null?{}:Fr(n,r)}),Vr=Math.ceil,qr=Math.max;function zr(n,r,t,e){for(var o=-1,u=qr(Vr((r-n)/(t||1)),0),i=Array(u);u--;)i[++o]=n,n+=t;return i}function Yr(n){return function(r,t,e){return e&&typeof e!="number"&&$(r,t,e)&&(t=e=void 0),r=C(r),t===void 0?(t=r,r=0):t=C(t),e=e===void 0?r<t?1:-1:C(e),zr(r,t,e)}}var E=Yr(),M=En(function(n,r){if(n==null)return[];var t=r.length;return t>1&&$(n,r[0],r[1])?r=[]:t>2&&$(r[0],r[1],r[2])&&(r=[r[0]]),Gr(n,bn(r),[])}),Ar=0;function nn(n){var r=++Ar;return Dn(n)+r}function Dr(n,r,t){for(var e=-1,o=n.length,u=r.length,i={};++e<o;){var a=e<u?r[e]:void 0;t(i,n[e],a)}return i}function Kr(n,r){return Dr(n||[],r||[],_n)}class Hr{constructor(){var r={};r._next=r._prev=r,this._sentinel=r}dequeue(){var r=this._sentinel,t=r._prev;if(t!==r)return cn(t),t}enqueue(r){var t=this._sentinel;r._prev&&r._next&&cn(r),r._next=t._next,t._next._prev=r,t._next=r,r._prev=t}toString(){for(var r=[],t=this._sentinel,e=t._prev;e!==t;)r.push(JSON.stringify(e,Qr)),e=e._prev;return"["+r.join(", ")+"]"}}function cn(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function Qr(n,r){if(n!=="_next"&&n!=="_prev")return r}var Jr=ir(1);function Ur(n,r){if(n.nodeCount()<=1)return[];var t=Xr(n,r||Jr),e=Wr(t.graph,t.buckets,t.zeroIdx);return N(p(e,function(o){return n.outEdges(o.v,o.w)}))}function Wr(n,r,t){for(var e=[],o=r[r.length-1],u=r[0],i;n.nodeCount();){for(;i=u.dequeue();)z(n,r,t,i);for(;i=o.dequeue();)z(n,r,t,i);if(n.nodeCount()){for(var a=r.length-2;a>0;--a)if(i=r[a].dequeue(),i){e=e.concat(z(n,r,t,i,!0));break}}}return e}function z(n,r,t,e,o){var u=o?[]:void 0;return f(n.inEdges(e.v),function(i){var a=n.edge(i),c=n.node(i.v);o&&u.push({v:i.v,w:i.w}),c.out-=a,Q(r,t,c)}),f(n.outEdges(e.v),function(i){var a=n.edge(i),c=i.w,d=n.node(c);d.in-=a,Q(r,t,d)}),n.removeNode(e.v),u}function Xr(n,r){var t=new m,e=0,o=0;f(n.nodes(),function(a){t.setNode(a,{v:a,in:0,out:0})}),f(n.edges(),function(a){var c=t.edge(a.v,a.w)||0,d=r(a),s=c+d;t.setEdge(a.v,a.w,s),o=Math.max(o,t.node(a.v).out+=d),e=Math.max(e,t.node(a.w).in+=d)});var u=E(o+e+3).map(function(){return new Hr}),i=e+1;return f(t.nodes(),function(a){Q(u,i,t.node(a))}),{graph:t,buckets:u,zeroIdx:i}}function Q(n,r,t){t.out?t.in?n[t.out-t.in+r].enqueue(t):n[n.length-1].enqueue(t):n[0].enqueue(t)}function Zr(n){var r=n.graph().acyclicer==="greedy"?Ur(n,t(n)):nt(n);f(r,function(e){var o=n.edge(e);n.removeEdge(e),o.forwardName=e.name,o.reversed=!0,n.setEdge(e.w,e.v,o,nn("rev"))});function t(e){return function(o){return e.edge(o).weight}}}function nt(n){var r=[],t={},e={};function o(u){Object.prototype.hasOwnProperty.call(e,u)||(e[u]=!0,t[u]=!0,f(n.outEdges(u),function(i){Object.prototype.hasOwnProperty.call(t,i.w)?r.push(i):o(i.w)}),delete t[u])}return f(n.nodes(),o),r}function rt(n){f(n.edges(),function(r){var t=n.edge(r);if(t.reversed){n.removeEdge(r);var e=t.forwardName;delete t.reversed,delete t.forwardName,n.setEdge(r.w,r.v,t,e)}})}function _(n,r,t,e){var o;do o=nn(e);while(n.hasNode(o));return t.dummy=r,n.setNode(o,t),o}function tt(n){var r=new m().setGraph(n.graph());return f(n.nodes(),function(t){r.setNode(t,n.node(t))}),f(n.edges(),function(t){var e=r.edge(t.v,t.w)||{weight:0,minlen:1},o=n.edge(t);r.setEdge(t.v,t.w,{weight:e.weight+o.weight,minlen:Math.max(e.minlen,o.minlen)})}),r}function Mn(n){var r=new m({multigraph:n.isMultigraph()}).setGraph(n.graph());return f(n.nodes(),function(t){n.children(t).length||r.setNode(t,n.node(t))}),f(n.edges(),function(t){r.setEdge(t,n.edge(t))}),r}function dn(n,r){var t=n.x,e=n.y,o=r.x-t,u=r.y-e,i=n.width/2,a=n.height/2;if(!o&&!u)throw new Error("Not possible to find intersection inside of the rectangle");var c,d;return Math.abs(u)*i>Math.abs(o)*a?(u<0&&(a=-a),c=a*o/u,d=a):(o<0&&(i=-i),c=i,d=i*u/o),{x:t+c,y:e+d}}function q(n){var r=p(E(Tn(n)+1),function(){return[]});return f(n.nodes(),function(t){var e=n.node(t),o=e.rank;b(o)||(r[o][e.order]=t)}),r}function et(n){var r=P(p(n.nodes(),function(t){return n.node(t).rank}));f(n.nodes(),function(t){var e=n.node(t);jn(e,"rank")&&(e.rank-=r)})}function ot(n){var r=P(p(n.nodes(),function(u){return n.node(u).rank})),t=[];f(n.nodes(),function(u){var i=n.node(u).rank-r;t[i]||(t[i]=[]),t[i].push(u)});var e=0,o=n.graph().nodeRankFactor;f(t,function(u,i){b(u)&&i%o!==0?--e:e&&f(u,function(a){n.node(a).rank+=e})})}function fn(n,r,t,e){var o={width:0,height:0};return arguments.length>=4&&(o.rank=t,o.order=e),_(n,"border",o,r)}function Tn(n){return y(p(n.nodes(),function(r){var t=n.node(r).rank;if(!b(t))return t}))}function it(n,r){var t={lhs:[],rhs:[]};return f(n,function(e){r(e)?t.lhs.push(e):t.rhs.push(e)}),t}function ut(n,r){return r()}function at(n){function r(t){var e=n.children(t),o=n.node(t);if(e.length&&f(e,r),Object.prototype.hasOwnProperty.call(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var u=o.minRank,i=o.maxRank+1;u<i;++u)sn(n,"borderLeft","_bl",t,o,u),sn(n,"borderRight","_br",t,o,u)}}f(n.children(),r)}function sn(n,r,t,e,o,u){var i={width:0,height:0,rank:u,borderType:r},a=o[r][u-1],c=_(n,"border",i,t);o[r][u]=c,n.setParent(c,e),a&&n.setEdge(a,c,{weight:1})}function ct(n){var r=n.graph().rankdir.toLowerCase();(r==="lr"||r==="rl")&&Cn(n)}function dt(n){var r=n.graph().rankdir.toLowerCase();(r==="bt"||r==="rl")&&ft(n),(r==="lr"||r==="rl")&&(st(n),Cn(n))}function Cn(n){f(n.nodes(),function(r){hn(n.node(r))}),f(n.edges(),function(r){hn(n.edge(r))})}function hn(n){var r=n.width;n.width=n.height,n.height=r}function ft(n){f(n.nodes(),function(r){Y(n.node(r))}),f(n.edges(),function(r){var t=n.edge(r);f(t.points,Y),Object.prototype.hasOwnProperty.call(t,"y")&&Y(t)})}function Y(n){n.y=-n.y}function st(n){f(n.nodes(),function(r){A(n.node(r))}),f(n.edges(),function(r){var t=n.edge(r);f(t.points,A),Object.prototype.hasOwnProperty.call(t,"x")&&A(t)})}function A(n){var r=n.x;n.x=n.y,n.y=r}function ht(n){n.graph().dummyChains=[],f(n.edges(),function(r){vt(n,r)})}function vt(n,r){var t=r.v,e=n.node(t).rank,o=r.w,u=n.node(o).rank,i=r.name,a=n.edge(r),c=a.labelRank;if(u!==e+1){n.removeEdge(r);var d=void 0,s,h;for(h=0,++e;e<u;++h,++e)a.points=[],d={width:0,height:0,edgeLabel:a,edgeObj:r,rank:e},s=_(n,"edge",d,"_d"),e===c&&(d.width=a.width,d.height=a.height,d.dummy="edge-label",d.labelpos=a.labelpos),n.setEdge(t,s,{weight:a.weight},i),h===0&&n.graph().dummyChains.push(s),t=s;n.setEdge(t,o,{weight:a.weight},i)}}function gt(n){f(n.graph().dummyChains,function(r){var t=n.node(r),e=t.edgeLabel,o;for(n.setEdge(t.edgeObj,e);t.dummy;)o=n.successors(r)[0],n.removeNode(r),e.points.push({x:t.x,y:t.y}),t.dummy==="edge-label"&&(e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height),r=o,t=n.node(r)})}function rn(n){var r={};function t(e){var o=n.node(e);if(Object.prototype.hasOwnProperty.call(r,e))return o.rank;r[e]=!0;var u=P(p(n.outEdges(e),function(i){return t(i.w)-n.edge(i).minlen}));return(u===Number.POSITIVE_INFINITY||u===void 0||u===null)&&(u=0),o.rank=u}f(n.sources(),t)}function j(n,r){return n.node(r.w).rank-n.node(r.v).rank-n.edge(r).minlen}function Ln(n){var r=new m({directed:!1}),t=n.nodes()[0],e=n.nodeCount();r.setNode(t,{});for(var o,u;lt(r,n)<e;)o=pt(r,n),u=r.hasNode(o.v)?j(n,o):-j(n,o),wt(r,n,u);return r}function lt(n,r){function t(e){f(r.nodeEdges(e),function(o){var u=o.v,i=e===u?o.w:u;!n.hasNode(i)&&!j(r,o)&&(n.setNode(i,{}),n.setEdge(e,i,{}),t(i))})}return f(n.nodes(),t),n.nodeCount()}function pt(n,r){return Z(r.edges(),function(t){if(n.hasNode(t.v)!==n.hasNode(t.w))return j(r,t)})}function wt(n,r,t){f(n.nodes(),function(e){r.node(e).rank+=t})}function $n(n,r,t){J(r)||(r=[r]);var e=(n.isDirected()?n.successors:n.neighbors).bind(n),o=[],u={};return f(r,function(i){if(!n.hasNode(i))throw new Error("Graph does not have node: "+i);Sn(n,i,t==="post",u,e,o)}),o}function Sn(n,r,t,e,o,u){Object.prototype.hasOwnProperty.call(e,r)||(e[r]=!0,t||u.push(r),f(o(r),function(i){Sn(n,i,t,e,o,u)}),t&&u.push(r))}function bt(n,r){return $n(n,r,"post")}function mt(n,r){return $n(n,r,"pre")}k.initLowLimValues=en;k.initCutValues=tn;k.calcCutValue=Bn;k.leaveEdge=Fn;k.enterEdge=Vn;k.exchangeEdges=qn;function k(n){n=tt(n),rn(n);var r=Ln(n);en(r),tn(r,n);for(var t,e;t=Fn(r);)e=Vn(r,n,t),qn(r,n,t,e)}function tn(n,r){var t=bt(n,n.nodes());t=t.slice(0,t.length-1),f(t,function(e){yt(n,r,e)})}function yt(n,r,t){var e=n.node(t),o=e.parent;n.edge(t,o).cutvalue=Bn(n,r,t)}function Bn(n,r,t){var e=n.node(t),o=e.parent,u=!0,i=r.edge(t,o),a=0;return i||(u=!1,i=r.edge(o,t)),a=i.weight,f(r.nodeEdges(t),function(c){var d=c.v===t,s=d?c.w:c.v;if(s!==o){var h=d===u,v=r.edge(c).weight;if(a+=h?v:-v,xt(n,t,s)){var g=n.edge(t,s).cutvalue;a+=h?-g:g}}}),a}function en(n,r){arguments.length<2&&(r=n.nodes()[0]),Gn(n,{},1,r)}function Gn(n,r,t,e,o){var u=t,i=n.node(e);return r[e]=!0,f(n.neighbors(e),function(a){Object.prototype.hasOwnProperty.call(r,a)||(t=Gn(n,r,t,a,e))}),i.low=u,i.lim=t++,o?i.parent=o:delete i.parent,t}function Fn(n){return W(n.edges(),function(r){return n.edge(r).cutvalue<0})}function Vn(n,r,t){var e=t.v,o=t.w;r.hasEdge(e,o)||(e=t.w,o=t.v);var u=n.node(e),i=n.node(o),a=u,c=!1;u.lim>i.lim&&(a=i,c=!0);var d=R(r.edges(),function(s){return c===vn(n,n.node(s.v),a)&&c!==vn(n,n.node(s.w),a)});return Z(d,function(s){return j(r,s)})}function qn(n,r,t,e){var o=t.v,u=t.w;n.removeEdge(o,u),n.setEdge(e.v,e.w,{}),en(n),tn(n,r),kt(n,r)}function kt(n,r){var t=W(n.nodes(),function(o){return!r.node(o).parent}),e=mt(n,t);e=e.slice(1),f(e,function(o){var u=n.node(o).parent,i=r.edge(o,u),a=!1;i||(i=r.edge(u,o),a=!0),r.node(o).rank=r.node(u).rank+(a?i.minlen:-i.minlen)})}function xt(n,r,t){return n.hasEdge(r,t)}function vn(n,r,t){return t.low<=r.lim&&r.lim<=t.lim}function Et(n){switch(n.graph().ranker){case"network-simplex":gn(n);break;case"tight-tree":Nt(n);break;case"longest-path":Ot(n);break;default:gn(n)}}var Ot=rn;function Nt(n){rn(n),Ln(n)}function gn(n){k(n)}function _t(n){var r=_(n,"root",{},"_root"),t=It(n),e=y(x(t))-1,o=2*e+1;n.graph().nestingRoot=r,f(n.edges(),function(i){n.edge(i).minlen*=o});var u=Pt(n)+1;f(n.children(),function(i){zn(n,r,o,u,e,t,i)}),n.graph().nodeRankFactor=o}function zn(n,r,t,e,o,u,i){var a=n.children(i);if(!a.length){i!==r&&n.setEdge(r,i,{weight:0,minlen:t});return}var c=fn(n,"_bt"),d=fn(n,"_bb"),s=n.node(i);n.setParent(c,i),s.borderTop=c,n.setParent(d,i),s.borderBottom=d,f(a,function(h){zn(n,r,t,e,o,u,h);var v=n.node(h),g=v.borderTop?v.borderTop:h,l=v.borderBottom?v.borderBottom:h,w=v.borderTop?e:2*e,I=g!==l?1:o-u[i]+1;n.setEdge(c,g,{weight:w,minlen:I,nestingEdge:!0}),n.setEdge(l,d,{weight:w,minlen:I,nestingEdge:!0})}),n.parent(i)||n.setEdge(r,c,{weight:0,minlen:o+u[i]})}function It(n){var r={};function t(e,o){var u=n.children(e);u&&u.length&&f(u,function(i){t(i,o+1)}),r[e]=o}return f(n.children(),function(e){t(e,1)}),r}function Pt(n){return F(n.edges(),function(r,t){return r+n.edge(t).weight},0)}function jt(n){var r=n.graph();n.removeNode(r.nestingRoot),delete r.nestingRoot,f(n.edges(),function(t){var e=n.edge(t);e.nestingEdge&&n.removeEdge(t)})}function Rt(n,r,t){var e={},o;f(t,function(u){for(var i=n.parent(u),a,c;i;){if(a=n.parent(i),a?(c=e[a],e[a]=i):(c=o,o=i),c&&c!==i){r.setEdge(c,i);return}i=a}})}function Mt(n,r,t){var e=Tt(n),o=new m({compound:!0}).setGraph({root:e}).setDefaultNodeLabel(function(u){return n.node(u)});return f(n.nodes(),function(u){var i=n.node(u),a=n.parent(u);(i.rank===r||i.minRank<=r&&r<=i.maxRank)&&(o.setNode(u),o.setParent(u,a||e),f(n[t](u),function(c){var d=c.v===u?c.w:c.v,s=o.edge(d,u),h=b(s)?0:s.weight;o.setEdge(d,u,{weight:n.edge(c).weight+h})}),Object.prototype.hasOwnProperty.call(i,"minRank")&&o.setNode(u,{borderLeft:i.borderLeft[r],borderRight:i.borderRight[r]}))}),o}function Tt(n){for(var r;n.hasNode(r=nn("_root")););return r}function Ct(n,r){for(var t=0,e=1;e<r.length;++e)t+=Lt(n,r[e-1],r[e]);return t}function Lt(n,r,t){for(var e=Kr(t,p(t,function(d,s){return s})),o=N(p(r,function(d){return M(p(n.outEdges(d),function(s){return{pos:e[s.w],weight:n.edge(s).weight}}),"pos")})),u=1;u<t.length;)u<<=1;var i=2*u-1;u-=1;var a=p(new Array(i),function(){return 0}),c=0;return f(o.forEach(function(d){var s=d.pos+u;a[s]+=d.weight;for(var h=0;s>0;)s%2&&(h+=a[s+1]),s=s-1>>1,a[s]+=d.weight;c+=d.weight*h})),c}function $t(n){var r={},t=R(n.nodes(),function(a){return!n.children(a).length}),e=y(p(t,function(a){return n.node(a).rank})),o=p(E(e+1),function(){return[]});function u(a){if(!jn(r,a)){r[a]=!0;var c=n.node(a);o[c.rank].push(a),f(n.successors(a),u)}}var i=M(t,function(a){return n.node(a).rank});return f(i,u),o}function St(n,r){return p(r,function(t){var e=n.inEdges(t);if(e.length){var o=F(e,function(u,i){var a=n.edge(i),c=n.node(i.v);return{sum:u.sum+a.weight*c.order,weight:u.weight+a.weight}},{sum:0,weight:0});return{v:t,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:t}})}function Bt(n,r){var t={};f(n,function(o,u){var i=t[o.v]={indegree:0,in:[],out:[],vs:[o.v],i:u};b(o.barycenter)||(i.barycenter=o.barycenter,i.weight=o.weight)}),f(r.edges(),function(o){var u=t[o.v],i=t[o.w];!b(u)&&!b(i)&&(i.indegree++,u.out.push(t[o.w]))});var e=R(t,function(o){return!o.indegree});return Gt(e)}function Gt(n){var r=[];function t(u){return function(i){i.merged||(b(i.barycenter)||b(u.barycenter)||i.barycenter>=u.barycenter)&&Ft(u,i)}}function e(u){return function(i){i.in.push(u),--i.indegree===0&&n.push(i)}}for(;n.length;){var o=n.pop();r.push(o),f(o.in.reverse(),t(o)),f(o.out,e(o))}return p(R(r,function(u){return!u.merged}),function(u){return G(u,["vs","i","barycenter","weight"])})}function Ft(n,r){var t=0,e=0;n.weight&&(t+=n.barycenter*n.weight,e+=n.weight),r.weight&&(t+=r.barycenter*r.weight,e+=r.weight),n.vs=r.vs.concat(n.vs),n.barycenter=t/e,n.weight=e,n.i=Math.min(r.i,n.i),r.merged=!0}function Vt(n,r){var t=it(n,function(s){return Object.prototype.hasOwnProperty.call(s,"barycenter")}),e=t.lhs,o=M(t.rhs,function(s){return-s.i}),u=[],i=0,a=0,c=0;e.sort(qt(!!r)),c=ln(u,o,c),f(e,function(s){c+=s.vs.length,u.push(s.vs),i+=s.barycenter*s.weight,a+=s.weight,c=ln(u,o,c)});var d={vs:N(u)};return a&&(d.barycenter=i/a,d.weight=a),d}function ln(n,r,t){for(var e;r.length&&(e=B(r)).i<=t;)r.pop(),n.push(e.vs),t++;return t}function qt(n){return function(r,t){return r.barycenter<t.barycenter?-1:r.barycenter>t.barycenter?1:n?t.i-r.i:r.i-t.i}}function Yn(n,r,t,e){var o=n.children(r),u=n.node(r),i=u?u.borderLeft:void 0,a=u?u.borderRight:void 0,c={};i&&(o=R(o,function(l){return l!==i&&l!==a}));var d=St(n,o);f(d,function(l){if(n.children(l.v).length){var w=Yn(n,l.v,t,e);c[l.v]=w,Object.prototype.hasOwnProperty.call(w,"barycenter")&&Yt(l,w)}});var s=Bt(d,t);zt(s,c);var h=Vt(s,e);if(i&&(h.vs=N([i,h.vs,a]),n.predecessors(i).length)){var v=n.node(n.predecessors(i)[0]),g=n.node(n.predecessors(a)[0]);Object.prototype.hasOwnProperty.call(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+v.order+g.order)/(h.weight+2),h.weight+=2}return h}function zt(n,r){f(n,function(t){t.vs=N(t.vs.map(function(e){return r[e]?r[e].vs:e}))})}function Yt(n,r){b(n.barycenter)?(n.barycenter=r.barycenter,n.weight=r.weight):(n.barycenter=(n.barycenter*n.weight+r.barycenter*r.weight)/(n.weight+r.weight),n.weight+=r.weight)}function At(n){var r=Tn(n),t=pn(n,E(1,r+1),"inEdges"),e=pn(n,E(r-1,-1,-1),"outEdges"),o=$t(n);wn(n,o);for(var u=Number.POSITIVE_INFINITY,i,a=0,c=0;c<4;++a,++c){Dt(a%2?t:e,a%4>=2),o=q(n);var d=Ct(n,o);d<u&&(c=0,i=kr(o),u=d)}wn(n,i)}function pn(n,r,t){return p(r,function(e){return Mt(n,e,t)})}function Dt(n,r){var t=new m;f(n,function(e){var o=e.graph().root,u=Yn(e,o,t,r);f(u.vs,function(i,a){e.node(i).order=a}),Rt(e,t,u.vs)})}function wn(n,r){f(r,function(t){f(t,function(e,o){n.node(e).order=o})})}function Kt(n){var r=Qt(n);f(n.graph().dummyChains,function(t){for(var e=n.node(t),o=e.edgeObj,u=Ht(n,r,o.v,o.w),i=u.path,a=u.lca,c=0,d=i[c],s=!0;t!==o.w;){if(e=n.node(t),s){for(;(d=i[c])!==a&&n.node(d).maxRank<e.rank;)c++;d===a&&(s=!1)}if(!s){for(;c<i.length-1&&n.node(d=i[c+1]).minRank<=e.rank;)c++;d=i[c]}n.setParent(t,d),t=n.successors(t)[0]}})}function Ht(n,r,t,e){var o=[],u=[],i=Math.min(r[t].low,r[e].low),a=Math.max(r[t].lim,r[e].lim),c,d;c=t;do c=n.parent(c),o.push(c);while(c&&(r[c].low>i||a>r[c].lim));for(d=c,c=e;(c=n.parent(c))!==d;)u.push(c);return{path:o.concat(u.reverse()),lca:d}}function Qt(n){var r={},t=0;function e(o){var u=t;f(n.children(o),e),r[o]={low:u,lim:t++}}return f(n.children(),e),r}function Jt(n,r){var t={};function e(o,u){var i=0,a=0,c=o.length,d=B(u);return f(u,function(s,h){var v=Wt(n,s),g=v?n.node(v).order:c;(v||s===d)&&(f(u.slice(a,h+1),function(l){f(n.predecessors(l),function(w){var I=n.node(w),on=I.order;(on<i||g<on)&&!(I.dummy&&n.node(l).dummy)&&An(t,w,l)})}),a=h+1,i=g)}),u}return F(r,e),t}function Ut(n,r){var t={};function e(u,i,a,c,d){var s;f(E(i,a),function(h){s=u[h],n.node(s).dummy&&f(n.predecessors(s),function(v){var g=n.node(v);g.dummy&&(g.order<c||g.order>d)&&An(t,v,s)})})}function o(u,i){var a=-1,c,d=0;return f(i,function(s,h){if(n.node(s).dummy==="border"){var v=n.predecessors(s);v.length&&(c=n.node(v[0]).order,e(i,d,h,a,c),d=h,a=c)}e(i,d,i.length,c,u.length)}),i}return F(r,o),t}function Wt(n,r){if(n.node(r).dummy)return W(n.predecessors(r),function(t){return n.node(t).dummy})}function An(n,r,t){if(r>t){var e=r;r=t,t=e}Object.prototype.hasOwnProperty.call(n,r)||Object.defineProperty(n,r,{enumerable:!0,configurable:!0,value:{},writable:!0});var o=n[r];Object.defineProperty(o,t,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Xt(n,r,t){if(r>t){var e=r;r=t,t=e}return!!n[r]&&Object.prototype.hasOwnProperty.call(n[r],t)}function Zt(n,r,t,e){var o={},u={},i={};return f(r,function(a){f(a,function(c,d){o[c]=c,u[c]=c,i[c]=d})}),f(r,function(a){var c=-1;f(a,function(d){var s=e(d);if(s.length){s=M(s,function(w){return i[w]});for(var h=(s.length-1)/2,v=Math.floor(h),g=Math.ceil(h);v<=g;++v){var l=s[v];u[d]===d&&c<i[l]&&!Xt(t,d,l)&&(u[l]=d,u[d]=o[d]=o[l],c=i[l])}}})}),{root:o,align:u}}function ne(n,r,t,e,o){var u={},i=re(n,r,t,o),a=o?"borderLeft":"borderRight";function c(h,v){for(var g=i.nodes(),l=g.pop(),w={};l;)w[l]?h(l):(w[l]=!0,g.push(l),g=g.concat(v(l))),l=g.pop()}function d(h){u[h]=i.inEdges(h).reduce(function(v,g){return Math.max(v,u[g.v]+i.edge(g))},0)}function s(h){var v=i.outEdges(h).reduce(function(l,w){return Math.min(l,u[w.w]-i.edge(w))},Number.POSITIVE_INFINITY),g=n.node(h);v!==Number.POSITIVE_INFINITY&&g.borderType!==a&&(u[h]=Math.max(u[h],v))}return c(d,i.predecessors.bind(i)),c(s,i.successors.bind(i)),f(e,function(h){u[h]=u[t[h]]}),u}function re(n,r,t,e){var o=new m,u=n.graph(),i=ue(u.nodesep,u.edgesep,e);return f(r,function(a){var c;f(a,function(d){var s=t[d];if(o.setNode(s),c){var h=t[c],v=o.edge(h,s);o.setEdge(h,s,Math.max(i(n,d,c),v||0))}c=d})}),o}function te(n,r){return Z(x(r),function(t){var e=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return Ir(t,function(u,i){var a=ae(n,i)/2;e=Math.max(u+a,e),o=Math.min(u-a,o)}),e-o})}function ee(n,r){var t=x(r),e=P(t),o=y(t);f(["u","d"],function(u){f(["l","r"],function(i){var a=u+i,c=n[a],d;if(c!==r){var s=x(c);d=i==="l"?e-P(s):o-y(s),d&&(n[a]=V(c,function(h){return h+d}))}})})}function oe(n,r){return V(n.ul,function(t,e){if(r)return n[r.toLowerCase()][e];var o=M(p(n,e));return(o[1]+o[2])/2})}function ie(n){var r=q(n),t=H(Jt(n,r),Ut(n,r)),e={},o;f(["u","d"],function(i){o=i==="u"?r:x(r).reverse(),f(["l","r"],function(a){a==="r"&&(o=p(o,function(h){return x(h).reverse()}));var c=(i==="u"?n.predecessors:n.successors).bind(n),d=Zt(n,o,t,c),s=ne(n,o,d.root,d.align,a==="r");a==="r"&&(s=V(s,function(h){return-h})),e[i+a]=s})});var u=te(n,e);return ee(e,u),oe(e,n.graph().align)}function ue(n,r,t){return function(e,o,u){var i=e.node(o),a=e.node(u),c=0,d;if(c+=i.width/2,Object.prototype.hasOwnProperty.call(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":d=-i.width/2;break;case"r":d=i.width/2;break}if(d&&(c+=t?d:-d),d=0,c+=(i.dummy?r:n)/2,c+=(a.dummy?r:n)/2,c+=a.width/2,Object.prototype.hasOwnProperty.call(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":d=a.width/2;break;case"r":d=-a.width/2;break}return d&&(c+=t?d:-d),d=0,c}}function ae(n,r){return n.node(r).width}function ce(n){n=Mn(n),de(n),Pr(ie(n),function(r,t){n.node(t).x=r})}function de(n){var r=q(n),t=n.graph().ranksep,e=0;f(r,function(o){var u=y(p(o,function(i){return n.node(i).height}));f(o,function(i){n.node(i).y=e+u/2}),e+=u+t})}function $e(n,r){var t=ut;t("layout",()=>{var e=t(" buildLayoutGraph",()=>ye(n));t(" runLayout",()=>fe(e,t)),t(" updateInputGraph",()=>se(n,e))})}function fe(n,r){r(" makeSpaceForEdgeLabels",()=>ke(n)),r(" removeSelfEdges",()=>Re(n)),r(" acyclic",()=>Zr(n)),r(" nestingGraph.run",()=>_t(n)),r(" rank",()=>Et(Mn(n))),r(" injectEdgeLabelProxies",()=>xe(n)),r(" removeEmptyRanks",()=>ot(n)),r(" nestingGraph.cleanup",()=>jt(n)),r(" normalizeRanks",()=>et(n)),r(" assignRankMinMax",()=>Ee(n)),r(" removeEdgeLabelProxies",()=>Oe(n)),r(" normalize.run",()=>ht(n)),r(" parentDummyChains",()=>Kt(n)),r(" addBorderSegments",()=>at(n)),r(" order",()=>At(n)),r(" insertSelfEdges",()=>Me(n)),r(" adjustCoordinateSystem",()=>ct(n)),r(" position",()=>ce(n)),r(" positionSelfEdges",()=>Te(n)),r(" removeBorderNodes",()=>je(n)),r(" normalize.undo",()=>gt(n)),r(" fixupEdgeLabelCoords",()=>Ie(n)),r(" undoCoordinateSystem",()=>dt(n)),r(" translateGraph",()=>Ne(n)),r(" assignNodeIntersects",()=>_e(n)),r(" reversePoints",()=>Pe(n)),r(" acyclic.undo",()=>rt(n))}function se(n,r){f(n.nodes(),function(t){var e=n.node(t),o=r.node(t);e&&(e.x=o.x,e.y=o.y,r.children(t).length&&(e.width=o.width,e.height=o.height))}),f(n.edges(),function(t){var e=n.edge(t),o=r.edge(t);e.points=o.points,Object.prototype.hasOwnProperty.call(o,"x")&&(e.x=o.x,e.y=o.y)}),n.graph().width=r.graph().width,n.graph().height=r.graph().height}var he=["nodesep","edgesep","ranksep","marginx","marginy"],ve={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},ge=["acyclicer","ranker","rankdir","align"],le=["width","height"],pe={width:0,height:0},we=["minlen","weight","width","height","labeloffset"],be={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},me=["labelpos"];function ye(n){var r=new m({multigraph:!0,compound:!0}),t=K(n.graph());return r.setGraph(H({},ve,D(t,he),G(t,ge))),f(n.nodes(),function(e){var o=K(n.node(e));r.setNode(e,Er(D(o,le),pe)),r.setParent(e,n.parent(e))}),f(n.edges(),function(e){var o=K(n.edge(e));r.setEdge(e,H({},be,D(o,we),G(o,me)))}),r}function ke(n){var r=n.graph();r.ranksep/=2,f(n.edges(),function(t){var e=n.edge(t);e.minlen*=2,e.labelpos.toLowerCase()!=="c"&&(r.rankdir==="TB"||r.rankdir==="BT"?e.width+=e.labeloffset:e.height+=e.labeloffset)})}function xe(n){f(n.edges(),function(r){var t=n.edge(r);if(t.width&&t.height){var e=n.node(r.v),o=n.node(r.w),u={rank:(o.rank-e.rank)/2+e.rank,e:r};_(n,"edge-proxy",u,"_ep")}})}function Ee(n){var r=0;f(n.nodes(),function(t){var e=n.node(t);e.borderTop&&(e.minRank=n.node(e.borderTop).rank,e.maxRank=n.node(e.borderBottom).rank,r=y(r,e.maxRank))}),n.graph().maxRank=r}function Oe(n){f(n.nodes(),function(r){var t=n.node(r);t.dummy==="edge-proxy"&&(n.edge(t.e).labelRank=t.rank,n.removeNode(r))})}function Ne(n){var r=Number.POSITIVE_INFINITY,t=0,e=Number.POSITIVE_INFINITY,o=0,u=n.graph(),i=u.marginx||0,a=u.marginy||0;function c(d){var s=d.x,h=d.y,v=d.width,g=d.height;r=Math.min(r,s-v/2),t=Math.max(t,s+v/2),e=Math.min(e,h-g/2),o=Math.max(o,h+g/2)}f(n.nodes(),function(d){c(n.node(d))}),f(n.edges(),function(d){var s=n.edge(d);Object.prototype.hasOwnProperty.call(s,"x")&&c(s)}),r-=i,e-=a,f(n.nodes(),function(d){var s=n.node(d);s.x-=r,s.y-=e}),f(n.edges(),function(d){var s=n.edge(d);f(s.points,function(h){h.x-=r,h.y-=e}),Object.prototype.hasOwnProperty.call(s,"x")&&(s.x-=r),Object.prototype.hasOwnProperty.call(s,"y")&&(s.y-=e)}),u.width=t-r+i,u.height=o-e+a}function _e(n){f(n.edges(),function(r){var t=n.edge(r),e=n.node(r.v),o=n.node(r.w),u,i;t.points?(u=t.points[0],i=t.points[t.points.length-1]):(t.points=[],u=o,i=e),t.points.unshift(dn(e,u)),t.points.push(dn(o,i))})}function Ie(n){f(n.edges(),function(r){var t=n.edge(r);if(Object.prototype.hasOwnProperty.call(t,"x"))switch((t.labelpos==="l"||t.labelpos==="r")&&(t.width-=t.labeloffset),t.labelpos){case"l":t.x-=t.width/2+t.labeloffset;break;case"r":t.x+=t.width/2+t.labeloffset;break}})}function Pe(n){f(n.edges(),function(r){var t=n.edge(r);t.reversed&&t.points.reverse()})}function je(n){f(n.nodes(),function(r){if(n.children(r).length){var t=n.node(r),e=n.node(t.borderTop),o=n.node(t.borderBottom),u=n.node(B(t.borderLeft)),i=n.node(B(t.borderRight));t.width=Math.abs(i.x-u.x),t.height=Math.abs(o.y-e.y),t.x=u.x+t.width/2,t.y=e.y+t.height/2}}),f(n.nodes(),function(r){n.node(r).dummy==="border"&&n.removeNode(r)})}function Re(n){f(n.edges(),function(r){if(r.v===r.w){var t=n.node(r.v);t.selfEdges||(t.selfEdges=[]),t.selfEdges.push({e:r,label:n.edge(r)}),n.removeEdge(r)}})}function Me(n){var r=q(n);f(r,function(t){var e=0;f(t,function(o,u){var i=n.node(o);i.order=u+e,f(i.selfEdges,function(a){_(n,"selfedge",{width:a.label.width,height:a.label.height,rank:i.rank,order:u+ ++e,e:a.e,label:a.label},"_se")}),delete i.selfEdges})})}function Te(n){f(n.nodes(),function(r){var t=n.node(r);if(t.dummy==="selfedge"){var e=n.node(t.e.v),o=e.x+e.width/2,u=e.y,i=t.x-o,a=e.height/2;n.setEdge(t.e,t.label),n.removeNode(r),t.label.points=[{x:o+2*i/3,y:u-a},{x:o+5*i/6,y:u-a},{x:o+i,y:u},{x:o+5*i/6,y:u+a},{x:o+2*i/3,y:u+a}],t.label.x=t.x,t.label.y=t.y}})}function D(n,r){return V(G(n,r),Number)}function K(n){var r={};return f(n,function(t,e){r[e.toLowerCase()]=t}),r}export{$e as A,E as a,nn as e,G as j,Er as k,p as w};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{O as Ir,aL as gd,aM as vd,aN as yd,S as rs,ab as md,k as bd,af as bi,G as xi,F as xd,ad as wd,aa as Ed}from"./index-
|
|
1
|
+
import{O as Ir,aL as gd,aM as vd,aN as yd,S as rs,ab as md,k as bd,af as bi,G as xi,F as xd,ad as wd,aa as Ed}from"./index-CDwx2U7N.js";import{$ as Td}from"./createText-1719965b-D9Y3vUMn-UiwO3q8Q.js";function So(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _d(e){if(Array.isArray(e))return e}function Ad(e){if(Array.isArray(e))return So(e)}function gr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dc(n.key),n)}}function vr(e,t,r){return t&&Cd(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ct(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ns(e))||t){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||r.return==null||r.return()}finally{if(s)throw a}}}}function hc(e,t,r){return(t=dc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dd(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nd(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function kd(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Md(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qe(e,t){return _d(e)||Nd(e,t)||ns(e,t)||kd()}function wi(e){return Ad(e)||Dd(e)||ns(e)||Md()}function Sd(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function dc(e){var t=Sd(e,"string");return typeof t=="symbol"?t:t+""}function rt(e){"@babel/helpers - typeof";return rt=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},rt(e)}function ns(e,t){if(e){if(typeof e=="string")return So(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)?So(e,t):void 0}}var Je=typeof window>"u"?null:window,Is=Je?Je.navigator:null;Je&&Je.document;var Ld=rt(""),fc=rt({}),Id=rt(function(){}),Od=typeof HTMLElement>"u"?"undefined":rt(HTMLElement),On=function(e){return e&&e.instanceString&&We(e.instanceString)?e.instanceString():null},fe=function(e){return e!=null&&rt(e)==Ld},We=function(e){return e!=null&&rt(e)===Id},ze=function(e){return!Dt(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},ke=function(e){return e!=null&&rt(e)===fc&&!ze(e)&&e.constructor===Object},Rd=function(e){return e!=null&&rt(e)===fc},ne=function(e){return e!=null&&rt(e)===rt(1)&&!isNaN(e)},Pd=function(e){return ne(e)&&Math.floor(e)===e},Ei=function(e){if(Od!=="undefined")return e!=null&&e instanceof HTMLElement},Dt=function(e){return Rn(e)||pc(e)},Rn=function(e){return On(e)==="collection"&&e._private.single},pc=function(e){return On(e)==="collection"&&!e._private.single},is=function(e){return On(e)==="core"},gc=function(e){return On(e)==="stylesheet"},Bd=function(e){return On(e)==="event"},lr=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},Fd=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},zd=function(e){return ke(e)&&ne(e.x1)&&ne(e.x2)&&ne(e.y1)&&ne(e.y2)},Vd=function(e){return Rd(e)&&We(e.then)},Gd=function(){return Is&&Is.userAgent.match(/msie|trident|edge/i)},Jr=function(e,t){t||(t=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var n=[],i=0;i<arguments.length;i++)n.push(arguments[i]);return n.join("$")});var r=function(){var n=this,i=arguments,a,o=t.apply(n,i),s=r.cache;return(a=s[o])||(a=s[o]=e.apply(n,i)),a};return r.cache={},r},as=Jr(function(e){return e.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}),Ri=Jr(function(e){return e.replace(/(-\w)/g,function(t){return t[1].toUpperCase()})}),vc=Jr(function(e,t){return e+t[0].toUpperCase()+t.substring(1)},function(e,t){return e+"$"+t}),Os=function(e){return lr(e)?e:e.charAt(0).toUpperCase()+e.substring(1)},nr=function(e,t){return e.slice(-1*t.length)===t},tt="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",Yd="rgb[a]?\\(("+tt+"[%]?)\\s*,\\s*("+tt+"[%]?)\\s*,\\s*("+tt+"[%]?)(?:\\s*,\\s*("+tt+"))?\\)",Ud="rgb[a]?\\((?:"+tt+"[%]?)\\s*,\\s*(?:"+tt+"[%]?)\\s*,\\s*(?:"+tt+"[%]?)(?:\\s*,\\s*(?:"+tt+"))?\\)",Xd="hsl[a]?\\(("+tt+")\\s*,\\s*("+tt+"[%])\\s*,\\s*("+tt+"[%])(?:\\s*,\\s*("+tt+"))?\\)",Wd="hsl[a]?\\((?:"+tt+")\\s*,\\s*(?:"+tt+"[%])\\s*,\\s*(?:"+tt+"[%])(?:\\s*,\\s*(?:"+tt+"))?\\)",qd="\\#[0-9a-fA-F]{3}",Hd="\\#[0-9a-fA-F]{6}",yc=function(e,t){return e<t?-1:e>t?1:0},jd=function(e,t){return-1*yc(e,t)},ge=Object.assign!=null?Object.assign.bind(Object):function(e){for(var t=arguments,r=1;r<t.length;r++){var n=t[r];if(n!=null)for(var i=Object.keys(n),a=0;a<i.length;a++){var o=i[a];e[o]=n[o]}}return e},$d=function(e){if(!(!(e.length===4||e.length===7)||e[0]!=="#")){var t=e.length===4,r,n,i,a=16;return t?(r=parseInt(e[1]+e[1],a),n=parseInt(e[2]+e[2],a),i=parseInt(e[3]+e[3],a)):(r=parseInt(e[1]+e[2],a),n=parseInt(e[3]+e[4],a),i=parseInt(e[5]+e[6],a)),[r,n,i]}},Zd=function(e){var t,r,n,i,a,o,s,u;function l(d,p,v){return v<0&&(v+=1),v>1&&(v-=1),v<1/6?d+(p-d)*6*v:v<1/2?p:v<2/3?d+(p-d)*(2/3-v)*6:d}var c=new RegExp("^"+Xd+"$").exec(e);if(c){if(r=parseInt(c[1]),r<0?r=(360- -1*r%360)%360:r>360&&(r=r%360),r/=360,n=parseFloat(c[2]),n<0||n>100||(n=n/100,i=parseFloat(c[3]),i<0||i>100)||(i=i/100,a=c[4],a!==void 0&&(a=parseFloat(a),a<0||a>1)))return;if(n===0)o=s=u=Math.round(i*255);else{var h=i<.5?i*(1+n):i+n-i*n,f=2*i-h;o=Math.round(255*l(f,h,r+1/3)),s=Math.round(255*l(f,h,r)),u=Math.round(255*l(f,h,r-1/3))}t=[o,s,u,a]}return t},Kd=function(e){var t,r=new RegExp("^"+Yd+"$").exec(e);if(r){t=[];for(var n=[],i=1;i<=3;i++){var a=r[i];if(a[a.length-1]==="%"&&(n[i]=!0),a=parseFloat(a),n[i]&&(a=a/100*255),a<0||a>255)return;t.push(Math.floor(a))}var o=n[1]||n[2]||n[3],s=n[1]&&n[2]&&n[3];if(o&&!s)return;var u=r[4];if(u!==void 0){if(u=parseFloat(u),u<0||u>1)return;t.push(u)}}return t},Qd=function(e){return Jd[e.toLowerCase()]},mc=function(e){return(ze(e)?e:null)||Qd(e)||$d(e)||Kd(e)||Zd(e)},Jd={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]},bc=function(e){for(var t=e.map,r=e.keys,n=r.length,i=0;i<n;i++){var a=r[i];if(ke(a))throw Error("Tried to set map with object key");i<r.length-1?(t[a]==null&&(t[a]={}),t=t[a]):t[a]=e.value}},xc=function(e){for(var t=e.map,r=e.keys,n=r.length,i=0;i<n;i++){var a=r[i];if(ke(a))throw Error("Tried to get map with object key");if(t=t[a],t==null)return t}return t},Zn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ta,Rs;function Bn(){if(Rs)return ta;Rs=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return ta=e,ta}var ra,Ps;function ef(){if(Ps)return ra;Ps=1;var e=typeof Zn=="object"&&Zn&&Zn.Object===Object&&Zn;return ra=e,ra}var na,Bs;function Pi(){if(Bs)return na;Bs=1;var e=ef(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return na=r,na}var ia,Fs;function tf(){if(Fs)return ia;Fs=1;var e=Pi(),t=function(){return e.Date.now()};return ia=t,ia}var aa,zs;function rf(){if(zs)return aa;zs=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return aa=t,aa}var oa,Vs;function nf(){if(Vs)return oa;Vs=1;var e=rf(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return oa=r,oa}var sa,Gs;function os(){if(Gs)return sa;Gs=1;var e=Pi(),t=e.Symbol;return sa=t,sa}var la,Ys;function af(){if(Ys)return la;Ys=1;var e=os(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=r.call(o,i),u=o[i];try{o[i]=void 0;var l=!0}catch{}var c=n.call(o);return l&&(s?o[i]=u:delete o[i]),c}return la=a,la}var ua,Us;function of(){if(Us)return ua;Us=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return ua=r,ua}var ca,Xs;function wc(){if(Xs)return ca;Xs=1;var e=os(),t=af(),r=of(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return ca=o,ca}var ha,Ws;function sf(){if(Ws)return ha;Ws=1;function e(t){return t!=null&&typeof t=="object"}return ha=e,ha}var da,qs;function Fn(){if(qs)return da;qs=1;var e=wc(),t=sf(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return da=n,da}var fa,Hs;function lf(){if(Hs)return fa;Hs=1;var e=nf(),t=Bn(),r=Fn(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function u(l){if(typeof l=="number")return l;if(r(l))return n;if(t(l)){var c=typeof l.valueOf=="function"?l.valueOf():l;l=t(c)?c+"":c}if(typeof l!="string")return l===0?l:+l;l=e(l);var h=a.test(l);return h||o.test(l)?s(l.slice(2),h?2:8):i.test(l)?n:+l}return fa=u,fa}var pa,js;function uf(){if(js)return pa;js=1;var e=Bn(),t=tf(),r=lf(),n="Expected a function",i=Math.max,a=Math.min;function o(s,u,l){var c,h,f,d,p,v,m=0,g=!1,y=!1,x=!0;if(typeof s!="function")throw new TypeError(n);u=r(u)||0,e(l)&&(g=!!l.leading,y="maxWait"in l,f=y?i(r(l.maxWait)||0,u):f,x="trailing"in l?!!l.trailing:x);function T(S){var M=c,R=h;return c=h=void 0,m=S,d=s.apply(R,M),d}function w(S){return m=S,p=setTimeout(_,u),g?T(S):d}function D(S){var M=S-v,R=S-m,P=u-M;return y?a(P,f-R):P}function b(S){var M=S-v,R=S-m;return v===void 0||M>=u||M<0||y&&R>=f}function _(){var S=t();if(b(S))return E(S);p=setTimeout(_,D(S))}function E(S){return p=void 0,x&&c?T(S):(c=h=void 0,d)}function A(){p!==void 0&&clearTimeout(p),m=0,c=v=h=p=void 0}function C(){return p===void 0?d:E(t())}function N(){var S=t(),M=b(S);if(c=arguments,h=this,v=S,M){if(p===void 0)return w(v);if(y)return clearTimeout(p),p=setTimeout(_,u),T(v)}return p===void 0&&(p=setTimeout(_,u)),d}return N.cancel=A,N.flush=C,N}return pa=o,pa}var cf=uf(),zn=Pn(cf),ga=Je?Je.performance:null,Ec=ga&&ga.now?function(){return ga.now()}:function(){return Date.now()},hf=function(){if(Je){if(Je.requestAnimationFrame)return function(e){Je.requestAnimationFrame(e)};if(Je.mozRequestAnimationFrame)return function(e){Je.mozRequestAnimationFrame(e)};if(Je.webkitRequestAnimationFrame)return function(e){Je.webkitRequestAnimationFrame(e)};if(Je.msRequestAnimationFrame)return function(e){Je.msRequestAnimationFrame(e)}}return function(e){e&&setTimeout(function(){e(Ec())},1e3/60)}}(),Ti=function(e){return hf(e)},$t=Ec,Ar=9261,Tc=65599,Wr=5381,_c=function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ar,r=t,n;n=e.next(),!n.done;)r=r*Tc+n.value|0;return r},_n=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ar;return t*Tc+e|0},An=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Wr;return(t<<5)+t+e|0},df=function(e,t){return e*2097152+t},er=function(e){return e[0]*2097152+e[1]},Kn=function(e,t){return[_n(e[0],t[0]),An(e[1],t[1])]},$s=function(e,t){var r={value:0,done:!1},n=0,i=e.length,a={next:function(){return n<i?r.value=e[n++]:r.done=!0,r}};return _c(a,t)},Nr=function(e,t){var r={value:0,done:!1},n=0,i=e.length,a={next:function(){return n<i?r.value=e.charCodeAt(n++):r.done=!0,r}};return _c(a,t)},Ac=function(){return ff(arguments)},ff=function(e){for(var t,r=0;r<e.length;r++){var n=e[r];r===0?t=Nr(n):t=Nr(n,t)}return t};function pf(e,t,r,n,i){var a=i*Math.PI/180,o=Math.cos(a)*(e-r)-Math.sin(a)*(t-n)+r,s=Math.sin(a)*(e-r)+Math.cos(a)*(t-n)+n;return{x:o,y:s}}var gf=function(e,t,r,n,i,a){return{x:(e-r)*i+r,y:(t-n)*a+n}};function vf(e,t,r){if(r===0)return e;var n=(t.x1+t.x2)/2,i=(t.y1+t.y2)/2,a=t.w/t.h,o=1/a,s=pf(e.x,e.y,n,i,r),u=gf(s.x,s.y,n,i,a,o);return{x:u.x,y:u.y}}var Zs=!0,yf=console.warn!=null,mf=console.trace!=null,ss=Number.MAX_SAFE_INTEGER||9007199254740991,Cc=function(){return!0},_i=function(){return!1},Ks=function(){return 0},ls=function(){},Xe=function(e){throw new Error(e)},Dc=function(e){if(e!==void 0)Zs=!!e;else return Zs},Pe=function(e){Dc()&&(yf?console.warn(e):(console.log(e),mf&&console.trace()))},bf=function(e){return ge({},e)},Yt=function(e){return e==null?e:ze(e)?e.slice():ke(e)?bf(e):e},xf=function(e){return e.slice()},Nc=function(e,t){for(t=e="";e++<36;t+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return t},wf={},kc=function(){return wf},ht=function(e){var t=Object.keys(e);return function(r){for(var n={},i=0;i<t.length;i++){var a=t[i],o=r==null?void 0:r[a];n[a]=o===void 0?e[a]:o}return n}},ur=function(e,t,r){for(var n=e.length-1;n>=0;n--)e[n]===t&&e.splice(n,1)},us=function(e){e.splice(0,e.length)},Ef=function(e,t){for(var r=0;r<t.length;r++){var n=t[r];e.push(n)}},_t=function(e,t,r){return r&&(t=vc(r,t)),e[t]},Ht=function(e,t,r,n){r&&(t=vc(r,t)),e[t]=n},Tf=function(){function e(){gr(this,e),this._obj={}}return vr(e,[{key:"set",value:function(t,r){return this._obj[t]=r,this}},{key:"delete",value:function(t){return this._obj[t]=void 0,this}},{key:"clear",value:function(){this._obj={}}},{key:"has",value:function(t){return this._obj[t]!==void 0}},{key:"get",value:function(t){return this._obj[t]}}])}(),jt=typeof Map<"u"?Map:Tf,_f="undefined",Af=function(){function e(t){if(gr(this,e),this._obj=Object.create(null),this.size=0,t!=null){var r;t.instanceString!=null&&t.instanceString()===this.instanceString()?r=t.toArray():r=t;for(var n=0;n<r.length;n++)this.add(r[n])}}return vr(e,[{key:"instanceString",value:function(){return"set"}},{key:"add",value:function(t){var r=this._obj;r[t]!==1&&(r[t]=1,this.size++)}},{key:"delete",value:function(t){var r=this._obj;r[t]===1&&(r[t]=0,this.size--)}},{key:"clear",value:function(){this._obj=Object.create(null)}},{key:"has",value:function(t){return this._obj[t]===1}},{key:"toArray",value:function(){var t=this;return Object.keys(this._obj).filter(function(r){return t.has(r)})}},{key:"forEach",value:function(t,r){return this.toArray().forEach(t,r)}}])}(),rn=(typeof Set>"u"?"undefined":rt(Set))!==_f?Set:Af,Bi=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||t===void 0||!is(e)){Xe("An element must have a core reference and parameters set");return}var n=t.group;if(n==null&&(t.data&&t.data.source!=null&&t.data.target!=null?n="edges":n="nodes"),n!=="nodes"&&n!=="edges"){Xe("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:t.selectable===void 0?!0:!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:t.grabbable===void 0?!0:!!t.grabbable,pannable:t.pannable===void 0?n==="edges":!!t.pannable,active:!1,classes:new rn,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:t.parent&&t.parent.isNode()?t.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(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),t.renderedPosition){var a=t.renderedPosition,o=e.pan(),s=e.zoom();i.position={x:(a.x-o.x)/s,y:(a.y-o.y)/s}}var u=[];ze(t.classes)?u=t.classes:fe(t.classes)&&(u=t.classes.split(/\s+/));for(var l=0,c=u.length;l<c;l++){var h=u[l];!h||h===""||i.classes.add(h)}this.createEmitter(),(r===void 0||r)&&this.restore();var f=t.style||t.css;f&&(Pe("Setting a `style` bypass at element creation should be done only when absolutely necessary. Try to use the stylesheet instead."),this.style(f))},Qs=function(e){return e={bfs:e.bfs||!e.dfs,dfs:e.dfs||!e.bfs},function(t,r,n){var i;ke(t)&&!Dt(t)&&(i=t,t=i.roots||i.root,r=i.visit,n=i.directed),n=arguments.length===2&&!We(r)?r:n,r=We(r)?r:function(){};for(var a=this._private.cy,o=t=fe(t)?this.filter(t):t,s=[],u=[],l={},c={},h={},f=0,d,p=this.byGroup(),v=p.nodes,m=p.edges,g=0;g<o.length;g++){var y=o[g],x=y.id();y.isNode()&&(s.unshift(y),e.bfs&&(h[x]=!0,u.push(y)),c[x]=0)}for(var T=function(){var A=e.bfs?s.shift():s.pop(),C=A.id();if(e.dfs){if(h[C])return 0;h[C]=!0,u.push(A)}var N=c[C],S=l[C],M=S!=null?S.source():null,R=S!=null?S.target():null,P=S==null?void 0:A.same(M)?R[0]:M[0],L;if(L=r(A,S,P,f++,N),L===!0)return d=A,1;if(L===!1)return 1;for(var O=A.connectedEdges().filter(function(G){return(!n||G.source().same(A))&&m.has(G)}),I=0;I<O.length;I++){var B=O[I],F=B.connectedNodes().filter(function(G){return!G.same(A)&&v.has(G)}),z=F.id();F.length!==0&&!h[z]&&(F=F[0],s.push(F),e.bfs&&(h[z]=!0,u.push(F)),l[z]=B,c[z]=c[C]+1)}},w;s.length!==0&&(w=T(),!(w!==0&&w===1)););for(var D=a.collection(),b=0;b<u.length;b++){var _=u[b],E=l[_.id()];E!=null&&D.push(E),D.push(_)}return{path:a.collection(D),found:a.collection(d)}}},Cn={breadthFirstSearch:Qs({bfs:!0}),depthFirstSearch:Qs({dfs:!0})};Cn.bfs=Cn.breadthFirstSearch;Cn.dfs=Cn.depthFirstSearch;var Lo={exports:{}},Cf=Lo.exports,Js;function Df(){return Js||(Js=1,function(e,t){(function(){var r,n,i,a,o,s,u,l,c,h,f,d,p,v,m;i=Math.floor,h=Math.min,n=function(g,y){return g<y?-1:g>y?1:0},c=function(g,y,x,T,w){var D;if(x==null&&(x=0),w==null&&(w=n),x<0)throw new Error("lo must be non-negative");for(T==null&&(T=g.length);x<T;)D=i((x+T)/2),w(y,g[D])<0?T=D:x=D+1;return[].splice.apply(g,[x,x-x].concat(y)),y},s=function(g,y,x){return x==null&&(x=n),g.push(y),v(g,0,g.length-1,x)},o=function(g,y){var x,T;return y==null&&(y=n),x=g.pop(),g.length?(T=g[0],g[0]=x,m(g,0,y)):T=x,T},l=function(g,y,x){var T;return x==null&&(x=n),T=g[0],g[0]=y,m(g,0,x),T},u=function(g,y,x){var T;return x==null&&(x=n),g.length&&x(g[0],y)<0&&(T=[g[0],y],y=T[0],g[0]=T[1],m(g,0,x)),y},a=function(g,y){var x,T,w,D,b,_;for(y==null&&(y=n),D=(function(){_=[];for(var E=0,A=i(g.length/2);0<=A?E<A:E>A;0<=A?E++:E--)_.push(E);return _}).apply(this).reverse(),b=[],T=0,w=D.length;T<w;T++)x=D[T],b.push(m(g,x,y));return b},p=function(g,y,x){var T;if(x==null&&(x=n),T=g.indexOf(y),T!==-1)return v(g,0,T,x),m(g,T,x)},f=function(g,y,x){var T,w,D,b,_;if(x==null&&(x=n),w=g.slice(0,y),!w.length)return w;for(a(w,x),_=g.slice(y),D=0,b=_.length;D<b;D++)T=_[D],u(w,T,x);return w.sort(x).reverse()},d=function(g,y,x){var T,w,D,b,_,E,A,C,N;if(x==null&&(x=n),y*10<=g.length){if(D=g.slice(0,y).sort(x),!D.length)return D;for(w=D[D.length-1],A=g.slice(y),b=0,E=A.length;b<E;b++)T=A[b],x(T,w)<0&&(c(D,T,0,null,x),D.pop(),w=D[D.length-1]);return D}for(a(g,x),N=[],_=0,C=h(y,g.length);0<=C?_<C:_>C;0<=C?++_:--_)N.push(o(g,x));return N},v=function(g,y,x,T){var w,D,b;for(T==null&&(T=n),w=g[x];x>y;){if(b=x-1>>1,D=g[b],T(w,D)<0){g[x]=D,x=b;continue}break}return g[x]=w},m=function(g,y,x){var T,w,D,b,_;for(x==null&&(x=n),w=g.length,_=y,D=g[y],T=2*y+1;T<w;)b=T+1,b<w&&!(x(g[T],g[b])<0)&&(T=b),g[y]=g[T],y=T,T=2*y+1;return g[y]=D,v(g,_,y,x)},r=function(){g.push=s,g.pop=o,g.replace=l,g.pushpop=u,g.heapify=a,g.updateItem=p,g.nlargest=f,g.nsmallest=d;function g(y){this.cmp=y??n,this.nodes=[]}return g.prototype.push=function(y){return s(this.nodes,y,this.cmp)},g.prototype.pop=function(){return o(this.nodes,this.cmp)},g.prototype.peek=function(){return this.nodes[0]},g.prototype.contains=function(y){return this.nodes.indexOf(y)!==-1},g.prototype.replace=function(y){return l(this.nodes,y,this.cmp)},g.prototype.pushpop=function(y){return u(this.nodes,y,this.cmp)},g.prototype.heapify=function(){return a(this.nodes,this.cmp)},g.prototype.updateItem=function(y){return p(this.nodes,y,this.cmp)},g.prototype.clear=function(){return this.nodes=[]},g.prototype.empty=function(){return this.nodes.length===0},g.prototype.size=function(){return this.nodes.length},g.prototype.clone=function(){var y;return y=new g,y.nodes=this.nodes.slice(0),y},g.prototype.toArray=function(){return this.nodes.slice(0)},g.prototype.insert=g.prototype.push,g.prototype.top=g.prototype.peek,g.prototype.front=g.prototype.peek,g.prototype.has=g.prototype.contains,g.prototype.copy=g.prototype.clone,g}(),function(g,y){return e.exports=y()}(this,function(){return r})}).call(Cf)}(Lo)),Lo.exports}var el,tl;function Nf(){return tl||(tl=1,el=Df()),el}var kf=Nf(),Vn=Pn(kf),Mf=ht({root:null,weight:function(e){return 1},directed:!1}),Sf={dijkstra:function(e){if(!ke(e)){var t=arguments;e={root:t[0],weight:t[1],directed:t[2]}}var r=Mf(e),n=r.root,i=r.weight,a=r.directed,o=this,s=i,u=fe(n)?this.filter(n)[0]:n[0],l={},c={},h={},f=this.byGroup(),d=f.nodes,p=f.edges;p.unmergeBy(function(M){return M.isLoop()});for(var v=function(M){return l[M.id()]},m=function(M,R){l[M.id()]=R,g.updateItem(M)},g=new Vn(function(M,R){return v(M)-v(R)}),y=0;y<d.length;y++){var x=d[y];l[x.id()]=x.same(u)?0:1/0,g.push(x)}for(var T=function(M,R){for(var P=(a?M.edgesTo(R):M.edgesWith(R)).intersect(p),L=1/0,O,I=0;I<P.length;I++){var B=P[I],F=s(B);(F<L||!O)&&(L=F,O=B)}return{edge:O,dist:L}};g.size()>0;){var w=g.pop(),D=v(w),b=w.id();if(h[b]=D,D!==1/0)for(var _=w.neighborhood().intersect(d),E=0;E<_.length;E++){var A=_[E],C=A.id(),N=T(w,A),S=D+N.dist;S<v(A)&&(m(A,S),c[C]={node:w,edge:N.edge})}}return{distanceTo:function(M){var R=fe(M)?d.filter(M)[0]:M[0];return h[R.id()]},pathTo:function(M){var R=fe(M)?d.filter(M)[0]:M[0],P=[],L=R,O=L.id();if(R.length>0)for(P.unshift(R);c[O];){var I=c[O];P.unshift(I.edge),P.unshift(I.node),L=I.node,O=L.id()}return o.spawn(P)}}}},Lf={kruskal:function(e){e=e||function(y){return 1};for(var t=this.byGroup(),r=t.nodes,n=t.edges,i=r.length,a=new Array(i),o=r,s=function(y){for(var x=0;x<a.length;x++){var T=a[x];if(T.has(y))return x}},u=0;u<i;u++)a[u]=this.spawn(r[u]);for(var l=n.sort(function(y,x){return e(y)-e(x)}),c=0;c<l.length;c++){var h=l[c],f=h.source()[0],d=h.target()[0],p=s(f),v=s(d),m=a[p],g=a[v];p!==v&&(o.merge(h),m.merge(g),a.splice(v,1))}return o}},If=ht({root:null,goal:null,weight:function(e){return 1},heuristic:function(e){return 0},directed:!1}),Of={aStar:function(e){var t=this.cy(),r=If(e),n=r.root,i=r.goal,a=r.heuristic,o=r.directed,s=r.weight;n=t.collection(n)[0],i=t.collection(i)[0];var u=n.id(),l=i.id(),c={},h={},f={},d=new Vn(function(I,B){return h[I.id()]-h[B.id()]}),p=new rn,v={},m={},g=function(I,B){d.push(I),p.add(B)},y,x,T=function(){y=d.pop(),x=y.id(),p.delete(x)},w=function(I){return p.has(I)};g(n,u),c[u]=0,h[u]=a(n);for(var D=0;d.size()>0;){if(T(),D++,x===l){for(var b=[],_=i,E=l,A=m[E];b.unshift(_),A!=null&&b.unshift(A),_=v[E],_!=null;)E=_.id(),A=m[E];return{found:!0,distance:c[x],path:this.spawn(b),steps:D}}f[x]=!0;for(var C=y._private.edges,N=0;N<C.length;N++){var S=C[N];if(this.hasElementWithId(S.id())&&!(o&&S.data("source")!==x)){var M=S.source(),R=S.target(),P=M.id()!==x?M:R,L=P.id();if(this.hasElementWithId(L)&&!f[L]){var O=c[x]+s(S);if(!w(L)){c[L]=O,h[L]=O+a(P),g(P,L),v[L]=y,m[L]=S;continue}O<c[L]&&(c[L]=O,h[L]=O+a(P),v[L]=y,m[L]=S)}}}}return{found:!1,distance:void 0,path:void 0,steps:D}}},Rf=ht({weight:function(e){return 1},directed:!1}),Pf={floydWarshall:function(e){for(var t=this.cy(),r=Rf(e),n=r.weight,i=r.directed,a=n,o=this.byGroup(),s=o.nodes,u=o.edges,l=s.length,c=l*l,h=function(F){return s.indexOf(F)},f=function(F){return s[F]},d=new Array(c),p=0;p<c;p++){var v=p%l,m=(p-v)/l;m===v?d[p]=0:d[p]=1/0}for(var g=new Array(c),y=new Array(c),x=0;x<u.length;x++){var T=u[x],w=T.source()[0],D=T.target()[0];if(w!==D){var b=h(w),_=h(D),E=b*l+_,A=a(T);if(d[E]>A&&(d[E]=A,g[E]=_,y[E]=T),!i){var C=_*l+b;!i&&d[C]>A&&(d[C]=A,g[C]=b,y[C]=T)}}}for(var N=0;N<l;N++)for(var S=0;S<l;S++)for(var M=S*l+N,R=0;R<l;R++){var P=S*l+R,L=N*l+R;d[M]+d[L]<d[P]&&(d[P]=d[M]+d[L],g[P]=g[M])}var O=function(F){return(fe(F)?t.filter(F):F)[0]},I=function(F){return h(O(F))},B={distance:function(F,z){var G=I(F),H=I(z);return d[G*l+H]},path:function(F,z){var G=I(F),H=I(z),j=f(G);if(G===H)return j.collection();if(g[G*l+H]==null)return t.collection();var Z=t.collection(),Q=G,re;for(Z.merge(j);G!==H;)Q=G,G=g[G*l+H],re=y[Q*l+G],Z.merge(re),Z.merge(f(G));return Z}};return B}},Bf=ht({weight:function(e){return 1},directed:!1,root:null}),Ff={bellmanFord:function(e){var t=this,r=Bf(e),n=r.weight,i=r.directed,a=r.root,o=n,s=this,u=this.cy(),l=this.byGroup(),c=l.edges,h=l.nodes,f=h.length,d=new jt,p=!1,v=[];a=u.collection(a)[0],c.unmergeBy(function(ye){return ye.isLoop()});for(var m=c.length,g=function(ye){var xe=d.get(ye.id());return xe||(xe={},d.set(ye.id(),xe)),xe},y=function(ye){return(fe(ye)?u.$(ye):ye)[0]},x=function(ye){return g(y(ye)).dist},T=function(ye){for(var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a,Me=y(ye),te=[],ue=Me;;){if(ue==null)return t.spawn();var ce=g(ue),me=ce.edge,be=ce.pred;if(te.unshift(ue[0]),ue.same(xe)&&te.length>0)break;me!=null&&te.unshift(me),ue=be}return s.spawn(te)},w=0;w<f;w++){var D=h[w],b=g(D);D.same(a)?b.dist=0:b.dist=1/0,b.pred=null,b.edge=null}for(var _=!1,E=function(ye,xe,Me,te,ue,ce){var me=te.dist+ce;me<ue.dist&&!Me.same(te.edge)&&(ue.dist=me,ue.pred=ye,ue.edge=Me,_=!0)},A=1;A<f;A++){_=!1;for(var C=0;C<m;C++){var N=c[C],S=N.source(),M=N.target(),R=o(N),P=g(S),L=g(M);E(S,M,N,P,L,R),i||E(M,S,N,L,P,R)}if(!_)break}if(_)for(var O=[],I=0;I<m;I++){var B=c[I],F=B.source(),z=B.target(),G=o(B),H=g(F).dist,j=g(z).dist;if(H+G<j||!i&&j+G<H)if(p||(Pe("Graph contains a negative weight cycle for Bellman-Ford"),p=!0),e.findNegativeWeightCycles!==!1){var Z=[];H+G<j&&Z.push(F),!i&&j+G<H&&Z.push(z);for(var Q=Z.length,re=0;re<Q;re++){var V=Z[re],Y=[V];Y.push(g(V).edge);for(var U=g(V).pred;Y.indexOf(U)===-1;)Y.push(U),Y.push(g(U).edge),U=g(U).pred;Y=Y.slice(Y.indexOf(U));for(var K=Y[0].id(),ee=0,ie=2;ie<Y.length;ie+=2)Y[ie].id()<K&&(K=Y[ie].id(),ee=ie);Y=Y.slice(ee).concat(Y.slice(0,ee)),Y.push(Y[0]);var we=Y.map(function(ye){return ye.id()}).join(",");O.indexOf(we)===-1&&(v.push(s.spawn(Y)),O.push(we))}}else break}return{distanceTo:x,pathTo:T,hasNegativeWeightCycle:p,negativeWeightCycles:v}}},zf=Math.sqrt(2),Vf=function(e,t,r){r.length===0&&Xe("Karger-Stein must be run on a connected (sub)graph");for(var n=r[e],i=n[1],a=n[2],o=t[i],s=t[a],u=r,l=u.length-1;l>=0;l--){var c=u[l],h=c[1],f=c[2];(t[h]===o&&t[f]===s||t[h]===s&&t[f]===o)&&u.splice(l,1)}for(var d=0;d<u.length;d++){var p=u[d];p[1]===s?(u[d]=p.slice(),u[d][1]=o):p[2]===s&&(u[d]=p.slice(),u[d][2]=o)}for(var v=0;v<t.length;v++)t[v]===s&&(t[v]=o);return u},va=function(e,t,r,n){for(;r>n;){var i=Math.floor(Math.random()*t.length);t=Vf(i,e,t),r--}return t},Gf={kargerStein:function(){var e=this,t=this.byGroup(),r=t.nodes,n=t.edges;n.unmergeBy(function(L){return L.isLoop()});var i=r.length,a=n.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),s=Math.floor(i/zf);if(i<2){Xe("At least 2 nodes are required for Karger-Stein algorithm");return}for(var u=[],l=0;l<a;l++){var c=n[l];u.push([l,r.indexOf(c.source()),r.indexOf(c.target())])}for(var h=1/0,f=[],d=new Array(i),p=new Array(i),v=new Array(i),m=function(L,O){for(var I=0;I<i;I++)O[I]=L[I]},g=0;g<=o;g++){for(var y=0;y<i;y++)p[y]=y;var x=va(p,u.slice(),i,s),T=x.slice();m(p,v);var w=va(p,x,s,2),D=va(v,T,s,2);w.length<=D.length&&w.length<h?(h=w.length,f=w,m(p,d)):D.length<=w.length&&D.length<h&&(h=D.length,f=D,m(v,d))}for(var b=this.spawn(f.map(function(L){return n[L[0]]})),_=this.spawn(),E=this.spawn(),A=d[0],C=0;C<d.length;C++){var N=d[C],S=r[C];N===A?_.merge(S):E.merge(S)}var M=function(L){var O=e.spawn();return L.forEach(function(I){O.merge(I),I.connectedEdges().forEach(function(B){e.contains(B)&&!b.contains(B)&&O.merge(B)})}),O},R=[M(_),M(E)],P={cut:b,components:R,partition1:_,partition2:E};return P}},ya,Yf=function(e){return{x:e.x,y:e.y}},Fi=function(e,t,r){return{x:e.x*t+r.x,y:e.y*t+r.y}},Mc=function(e,t,r){return{x:(e.x-r.x)/t,y:(e.y-r.y)/t}},qr=function(e){return{x:e[0],y:e[1]}},Uf=function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=t;i<r;i++){var a=e[i];isFinite(a)&&(n=Math.min(a,n))}return n},Xf=function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=t;i<r;i++){var a=e[i];isFinite(a)&&(n=Math.max(a,n))}return n},Wf=function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,a=t;a<r;a++){var o=e[a];isFinite(o)&&(n+=o,i++)}return n/i},qf=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(t,r):(r<e.length&&e.splice(r,e.length-r),t>0&&e.splice(0,t));for(var o=0,s=e.length-1;s>=0;s--){var u=e[s];a?isFinite(u)||(e[s]=-1/0,o++):e.splice(s,1)}i&&e.sort(function(h,f){return h-f});var l=e.length,c=Math.floor(l/2);return l%2!==0?e[c+1+o]:(e[c-1+o]+e[c+o])/2},Hf=function(e){return Math.PI*e/180},Qn=function(e,t){return Math.atan2(t,e)-Math.PI/2},cs=Math.log2||function(e){return Math.log(e)/Math.log(2)},hs=function(e){return e>0?1:e<0?-1:0},kr=function(e,t){return Math.sqrt(Tr(e,t))},Tr=function(e,t){var r=t.x-e.x,n=t.y-e.y;return r*r+n*n},jf=function(e){for(var t=e.length,r=0,n=0;n<t;n++)r+=e[n];for(var i=0;i<t;i++)e[i]=e[i]/r;return e},at=function(e,t,r,n){return(1-n)*(1-n)*e+2*(1-n)*n*t+n*n*r},$r=function(e,t,r,n){return{x:at(e.x,t.x,r.x,n),y:at(e.y,t.y,r.y,n)}},$f=function(e,t,r,n){var i={x:t.x-e.x,y:t.y-e.y},a=kr(e,t),o={x:i.x/a,y:i.y/a};return r=r??0,n=n??r*a,{x:e.x+o.x*n,y:e.y+o.y*n}},Dn=function(e,t,r){return Math.max(e,Math.min(r,t))},xt=function(e){if(e==null)return{x1:1/0,y1:1/0,x2:-1/0,y2:-1/0,w:0,h:0};if(e.x1!=null&&e.y1!=null){if(e.x2!=null&&e.y2!=null&&e.x2>=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},Zf=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},Kf=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},Qf=function(e,t){e.x1=Math.min(e.x1,t.x1),e.x2=Math.max(e.x2,t.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,t.y1),e.y2=Math.max(e.y2,t.y2),e.h=e.y2-e.y1},Sc=function(e,t,r){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r),e.y2=Math.max(e.y2,r),e.h=e.y2-e.y1},ui=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},ci=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],r,n,i,a;if(t.length===1)r=n=i=a=t[0];else if(t.length===2)r=i=t[0],a=n=t[1];else if(t.length===4){var o=Qe(t,4);r=o[0],n=o[1],i=o[2],a=o[3]}return e.x1-=a,e.x2+=n,e.y1-=r,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},rl=function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},ds=function(e,t){return!(e.x1>t.x2||t.x1>e.x2||e.x2<t.x1||t.x2<e.x1||e.y2<t.y1||t.y2<e.y1||e.y1>t.y2||t.y1>e.y2)},ir=function(e,t,r){return e.x1<=t&&t<=e.x2&&e.y1<=r&&r<=e.y2},nl=function(e,t){return ir(e,t.x,t.y)},Lc=function(e,t){return ir(e,t.x1,t.y1)&&ir(e,t.x2,t.y2)},Jf=(ya=Math.hypot)!==null&&ya!==void 0?ya:function(e,t){return Math.sqrt(e*e+t*t)};function ep(e,t){if(e.length<3)throw new Error("Need at least 3 vertices");var r=function(b,_){return{x:b.x+_.x,y:b.y+_.y}},n=function(b,_){return{x:b.x-_.x,y:b.y-_.y}},i=function(b,_){return{x:b.x*_,y:b.y*_}},a=function(b,_){return b.x*_.y-b.y*_.x},o=function(b){var _=Jf(b.x,b.y);return _===0?{x:0,y:0}:{x:b.x/_,y:b.y/_}},s=function(b){for(var _=0,E=0;E<b.length;E++){var A=b[E],C=b[(E+1)%b.length];_+=A.x*C.y-C.x*A.y}return _/2},u=function(b,_,E,A){var C=n(_,b),N=n(A,E),S=a(C,N);if(Math.abs(S)<1e-9)return r(b,i(C,.5));var M=a(n(E,b),N)/S;return r(b,i(C,M))},l=e.map(function(b){return{x:b.x,y:b.y}});s(l)<0&&l.reverse();for(var c=l.length,h=[],f=0;f<c;f++){var d=l[f],p=l[(f+1)%c],v=n(p,d),m=o({x:v.y,y:-v.x});h.push(m)}for(var g=h.map(function(b,_){var E=r(l[_],i(b,t)),A=r(l[(_+1)%c],i(b,t));return{p1:E,p2:A}}),y=[],x=0;x<c;x++){var T=g[(x-1+c)%c],w=g[x],D=u(T.p1,T.p2,w.p1,w.p2);y.push(D)}return y}function tp(e,t,r,n,i,a){var o=cp(e,t,r,n,i),s=ep(o,a),u=xt();return s.forEach(function(l){return Sc(u,l.x,l.y)}),u}var Ic=function(e,t,r,n,i,a,o){var s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",u=s==="auto"?cr(i,a):s,l=i/2,c=a/2;u=Math.min(u,l,c);var h=u!==l,f=u!==c,d;if(h){var p=r-l+u-o,v=n-c-o,m=r+l-u+o,g=v;if(d=ar(e,t,r,n,p,v,m,g,!1),d.length>0)return d}if(f){var y=r+l+o,x=n-c+u-o,T=y,w=n+c-u+o;if(d=ar(e,t,r,n,y,x,T,w,!1),d.length>0)return d}if(h){var D=r-l+u-o,b=n+c+o,_=r+l-u+o,E=b;if(d=ar(e,t,r,n,D,b,_,E,!1),d.length>0)return d}if(f){var A=r-l-o,C=n-c+u-o,N=A,S=n+c-u+o;if(d=ar(e,t,r,n,A,C,N,S,!1),d.length>0)return d}var M;{var R=r-l+u,P=n-c+u;if(M=mn(e,t,r,n,R,P,u+o),M.length>0&&M[0]<=R&&M[1]<=P)return[M[0],M[1]]}{var L=r+l-u,O=n-c+u;if(M=mn(e,t,r,n,L,O,u+o),M.length>0&&M[0]>=L&&M[1]<=O)return[M[0],M[1]]}{var I=r+l-u,B=n+c-u;if(M=mn(e,t,r,n,I,B,u+o),M.length>0&&M[0]>=I&&M[1]>=B)return[M[0],M[1]]}{var F=r-l+u,z=n+c-u;if(M=mn(e,t,r,n,F,z,u+o),M.length>0&&M[0]<=F&&M[1]>=z)return[M[0],M[1]]}return[]},rp=function(e,t,r,n,i,a,o){var s=o,u=Math.min(r,i),l=Math.max(r,i),c=Math.min(n,a),h=Math.max(n,a);return u-s<=e&&e<=l+s&&c-s<=t&&t<=h+s},np=function(e,t,r,n,i,a,o,s,u){var l={x1:Math.min(r,o,i)-u,x2:Math.max(r,o,i)+u,y1:Math.min(n,s,a)-u,y2:Math.max(n,s,a)+u};return!(e<l.x1||e>l.x2||t<l.y1||t>l.y2)},ip=function(e,t,r,n){r-=n;var i=t*t-4*e*r;if(i<0)return[];var a=Math.sqrt(i),o=2*e,s=(-t+a)/o,u=(-t-a)/o;return[s,u]},ap=function(e,t,r,n,i){var a=1e-5;e===0&&(e=a),t/=e,r/=e,n/=e;var o,s,u,l,c,h,f,d;if(s=(3*r-t*t)/9,u=-(27*n)+t*(9*r-2*(t*t)),u/=54,o=s*s*s+u*u,i[1]=0,f=t/3,o>0){c=u+Math.sqrt(o),c=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3),h=u-Math.sqrt(o),h=h<0?-Math.pow(-h,1/3):Math.pow(h,1/3),i[0]=-f+c+h,f+=(c+h)/2,i[4]=i[2]=-f,f=Math.sqrt(3)*(-h+c)/2,i[3]=f,i[5]=-f;return}if(i[5]=i[3]=0,o===0){d=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),i[0]=-f+2*d,i[4]=i[2]=-(d+f);return}s=-s,l=s*s*s,l=Math.acos(u/Math.sqrt(l)),d=2*Math.sqrt(s),i[0]=-f+d*Math.cos(l/3),i[2]=-f+d*Math.cos((l+2*Math.PI)/3),i[4]=-f+d*Math.cos((l+4*Math.PI)/3)},op=function(e,t,r,n,i,a,o,s){var u=1*r*r-4*r*i+2*r*o+4*i*i-4*i*o+o*o+n*n-4*n*a+2*n*s+4*a*a-4*a*s+s*s,l=9*r*i-3*r*r-3*r*o-6*i*i+3*i*o+9*n*a-3*n*n-3*n*s-6*a*a+3*a*s,c=3*r*r-6*r*i+r*o-r*e+2*i*i+2*i*e-o*e+3*n*n-6*n*a+n*s-n*t+2*a*a+2*a*t-s*t,h=1*r*i-r*r+r*e-i*e+n*a-n*n+n*t-a*t,f=[];ap(u,l,c,h,f);for(var d=1e-7,p=[],v=0;v<6;v+=2)Math.abs(f[v+1])<d&&f[v]>=0&&f[v]<=1&&p.push(f[v]);p.push(1),p.push(0);for(var m=-1,g,y,x,T=0;T<p.length;T++)g=Math.pow(1-p[T],2)*r+2*(1-p[T])*p[T]*i+p[T]*p[T]*o,y=Math.pow(1-p[T],2)*n+2*(1-p[T])*p[T]*a+p[T]*p[T]*s,x=Math.pow(g-e,2)+Math.pow(y-t,2),m>=0?x<m&&(m=x):m=x;return m},sp=function(e,t,r,n,i,a){var o=[e-r,t-n],s=[i-r,a-n],u=s[0]*s[0]+s[1]*s[1],l=o[0]*o[0]+o[1]*o[1],c=o[0]*s[0]+o[1]*s[1],h=c*c/u;return c<0?l:h>u?(e-i)*(e-i)+(t-a)*(t-a):l-h},At=function(e,t,r){for(var n,i,a,o,s,u=0,l=0;l<r.length/2;l++)if(n=r[l*2],i=r[l*2+1],l+1<r.length/2?(a=r[(l+1)*2],o=r[(l+1)*2+1]):(a=r[(l+1-r.length/2)*2],o=r[(l+1-r.length/2)*2+1]),!(n==e&&a==e))if(n>=e&&e>=a||n<=e&&e<=a)s=(e-n)/(a-n)*(o-i)+i,s>t&&u++;else continue;return u%2!==0},Zt=function(e,t,r,n,i,a,o,s,u){var l=new Array(r.length),c;s[0]!=null?(c=Math.atan(s[1]/s[0]),s[0]<0?c=c+Math.PI/2:c=-c-Math.PI/2):c=s;for(var h=Math.cos(-c),f=Math.sin(-c),d=0;d<l.length/2;d++)l[d*2]=a/2*(r[d*2]*h-r[d*2+1]*f),l[d*2+1]=o/2*(r[d*2+1]*h+r[d*2]*f),l[d*2]+=n,l[d*2+1]+=i;var p;if(u>0){var v=Ci(l,-u);p=Ai(v)}else p=l;return At(e,t,p)},lp=function(e,t,r,n,i,a,o,s){for(var u=new Array(r.length*2),l=0;l<s.length;l++){var c=s[l];u[l*4+0]=c.startX,u[l*4+1]=c.startY,u[l*4+2]=c.stopX,u[l*4+3]=c.stopY;var h=Math.pow(c.cx-e,2)+Math.pow(c.cy-t,2);if(h<=Math.pow(c.radius,2))return!0}return At(e,t,u)},Ai=function(e){for(var t=new Array(e.length/2),r,n,i,a,o,s,u,l,c=0;c<e.length/4;c++){r=e[c*4],n=e[c*4+1],i=e[c*4+2],a=e[c*4+3],c<e.length/4-1?(o=e[(c+1)*4],s=e[(c+1)*4+1],u=e[(c+1)*4+2],l=e[(c+1)*4+3]):(o=e[0],s=e[1],u=e[2],l=e[3]);var h=ar(r,n,i,a,o,s,u,l,!0);t[c*2]=h[0],t[c*2+1]=h[1]}return t},Ci=function(e,t){for(var r=new Array(e.length*2),n,i,a,o,s=0;s<e.length/2;s++){n=e[s*2],i=e[s*2+1],s<e.length/2-1?(a=e[(s+1)*2],o=e[(s+1)*2+1]):(a=e[0],o=e[1]);var u=o-i,l=-(a-n),c=Math.sqrt(u*u+l*l),h=u/c,f=l/c;r[s*4]=n+h*t,r[s*4+1]=i+f*t,r[s*4+2]=a+h*t,r[s*4+3]=o+f*t}return r},up=function(e,t,r,n,i,a){var o=r-e,s=n-t;o/=i,s/=a;var u=Math.sqrt(o*o+s*s),l=u-1;if(l<0)return[];var c=l/u;return[(r-e)*c+e,(n-t)*c+t]},Dr=function(e,t,r,n,i,a,o){return e-=i,t-=a,e/=r/2+o,t/=n/2+o,e*e+t*t<=1},mn=function(e,t,r,n,i,a,o){var s=[r-e,n-t],u=[e-i,t-a],l=s[0]*s[0]+s[1]*s[1],c=2*(u[0]*s[0]+u[1]*s[1]),h=u[0]*u[0]+u[1]*u[1]-o*o,f=c*c-4*l*h;if(f<0)return[];var d=(-c+Math.sqrt(f))/(2*l),p=(-c-Math.sqrt(f))/(2*l),v=Math.min(d,p),m=Math.max(d,p),g=[];if(v>=0&&v<=1&&g.push(v),m>=0&&m<=1&&g.push(m),g.length===0)return[];var y=g[0]*s[0]+e,x=g[0]*s[1]+t;if(g.length>1){if(g[0]==g[1])return[y,x];var T=g[1]*s[0]+e,w=g[1]*s[1]+t;return[y,x,T,w]}else return[y,x]},ma=function(e,t,r){return t<=e&&e<=r||r<=e&&e<=t?e:e<=t&&t<=r||r<=t&&t<=e?t:r},ar=function(e,t,r,n,i,a,o,s,u){var l=e-i,c=r-e,h=o-i,f=t-a,d=n-t,p=s-a,v=h*f-p*l,m=c*f-d*l,g=p*c-h*d;if(g!==0){var y=v/g,x=m/g,T=.001,w=0-T,D=1+T;return w<=y&&y<=D&&w<=x&&x<=D?[e+y*c,t+y*d]:u?[e+y*c,t+y*d]:[]}else return v===0||m===0?ma(e,r,o)===o?[o,s]:ma(e,r,i)===i?[i,a]:ma(i,o,r)===r?[r,n]:[]:[]},cp=function(e,t,r,n,i){var a=[],o=n/2,s=i/2,u=t,l=r;a.push({x:u+o*e[0],y:l+s*e[1]});for(var c=1;c<e.length/2;c++)a.push({x:u+o*e[c*2],y:l+s*e[c*2+1]});return a},Nn=function(e,t,r,n,i,a,o,s){var u=[],l,c=new Array(r.length),h=!0;a==null&&(h=!1);var f;if(h){for(var d=0;d<c.length/2;d++)c[d*2]=r[d*2]*a+n,c[d*2+1]=r[d*2+1]*o+i;if(s>0){var p=Ci(c,-s);f=Ai(p)}else f=c}else f=r;for(var v,m,g,y,x=0;x<f.length/2;x++)v=f[x*2],m=f[x*2+1],x<f.length/2-1?(g=f[(x+1)*2],y=f[(x+1)*2+1]):(g=f[0],y=f[1]),l=ar(e,t,n,i,v,m,g,y),l.length!==0&&u.push(l[0],l[1]);return u},hp=function(e,t,r,n,i,a,o,s,u){var l=[],c,h=new Array(r.length*2);u.forEach(function(g,y){y===0?(h[h.length-2]=g.startX,h[h.length-1]=g.startY):(h[y*4-2]=g.startX,h[y*4-1]=g.startY),h[y*4]=g.stopX,h[y*4+1]=g.stopY,c=mn(e,t,n,i,g.cx,g.cy,g.radius),c.length!==0&&l.push(c[0],c[1])});for(var f=0;f<h.length/4;f++)c=ar(e,t,n,i,h[f*4],h[f*4+1],h[f*4+2],h[f*4+3],!1),c.length!==0&&l.push(c[0],c[1]);if(l.length>2){for(var d=[l[0],l[1]],p=Math.pow(d[0]-e,2)+Math.pow(d[1]-t,2),v=1;v<l.length/2;v++){var m=Math.pow(l[v*2]-e,2)+Math.pow(l[v*2+1]-t,2);m<=p&&(d[0]=l[v*2],d[1]=l[v*2+1],p=m)}return d}return l},Jn=function(e,t,r){var n=[e[0]-t[0],e[1]-t[1]],i=Math.sqrt(n[0]*n[0]+n[1]*n[1]),a=(i-r)/i;return a<0&&(a=1e-5),[t[0]+a*n[0],t[1]+a*n[1]]},bt=function(e,t){var r=Io(e,t);return r=Oc(r),r},Oc=function(e){for(var t,r,n=e.length/2,i=1/0,a=1/0,o=-1/0,s=-1/0,u=0;u<n;u++)t=e[2*u],r=e[2*u+1],i=Math.min(i,t),o=Math.max(o,t),a=Math.min(a,r),s=Math.max(s,r);for(var l=2/(o-i),c=2/(s-a),h=0;h<n;h++)t=e[2*h]=e[2*h]*l,r=e[2*h+1]=e[2*h+1]*c,i=Math.min(i,t),o=Math.max(o,t),a=Math.min(a,r),s=Math.max(s,r);if(a<-1)for(var f=0;f<n;f++)r=e[2*f+1]=e[2*f+1]+(-1-a);return e},Io=function(e,t){var r=1/e*2*Math.PI,n=e%2===0?Math.PI/2+r/2:Math.PI/2;n+=t;for(var i=new Array(e*2),a,o=0;o<e;o++)a=o*r+n,i[2*o]=Math.cos(a),i[2*o+1]=Math.sin(-a);return i},cr=function(e,t){return Math.min(e/4,t/4,8)},Rc=function(e,t){return Math.min(e/10,t/10,8)},fs=function(){return 8},dp=function(e,t,r){return[e-2*t+r,2*(t-e),e]},Oo=function(e,t){return{heightOffset:Math.min(15,.05*t),widthOffset:Math.min(100,.25*e),ctrlPtOffsetPct:.05}};function ba(e,t){function r(h){for(var f=[],d=0;d<h.length;d++){var p=h[d],v=h[(d+1)%h.length],m={x:v.x-p.x,y:v.y-p.y},g={x:-m.y,y:m.x},y=Math.sqrt(g.x*g.x+g.y*g.y);f.push({x:g.x/y,y:g.y/y})}return f}function n(h,f){var d=1/0,p=-1/0,v=Ct(h),m;try{for(v.s();!(m=v.n()).done;){var g=m.value,y=g.x*f.x+g.y*f.y;d=Math.min(d,y),p=Math.max(p,y)}}catch(x){v.e(x)}finally{v.f()}return{min:d,max:p}}function i(h,f){return!(h.max<f.min||f.max<h.min)}var a=[].concat(wi(r(e)),wi(r(t))),o=Ct(a),s;try{for(o.s();!(s=o.n()).done;){var u=s.value,l=n(e,u),c=n(t,u);if(!i(l,c))return!1}}catch(h){o.e(h)}finally{o.f()}return!0}var fp=ht({dampingFactor:.8,precision:1e-6,iterations:200,weight:function(e){return 1}}),pp={pageRank:function(e){for(var t=fp(e),r=t.dampingFactor,n=t.precision,i=t.iterations,a=t.weight,o=this._private.cy,s=this.byGroup(),u=s.nodes,l=s.edges,c=u.length,h=c*c,f=l.length,d=new Array(h),p=new Array(c),v=(1-r)/c,m=0;m<c;m++){for(var g=0;g<c;g++){var y=m*c+g;d[y]=0}p[m]=0}for(var x=0;x<f;x++){var T=l[x],w=T.data("source"),D=T.data("target");if(w!==D){var b=u.indexOfId(w),_=u.indexOfId(D),E=a(T),A=_*c+b;d[A]+=E,p[b]+=E}}for(var C=1/c+v,N=0;N<c;N++)if(p[N]===0)for(var S=0;S<c;S++){var M=S*c+N;d[M]=C}else for(var R=0;R<c;R++){var P=R*c+N;d[P]=d[P]/p[N]+v}for(var L=new Array(c),O=new Array(c),I,B=0;B<c;B++)L[B]=1;for(var F=0;F<i;F++){for(var z=0;z<c;z++)O[z]=0;for(var G=0;G<c;G++)for(var H=0;H<c;H++){var j=G*c+H;O[G]+=d[j]*L[H]}jf(O),I=L,L=O,O=I;for(var Z=0,Q=0;Q<c;Q++){var re=I[Q]-L[Q];Z+=re*re}if(Z<n)break}var V={rank:function(Y){return Y=o.collection(Y)[0],L[u.indexOf(Y)]}};return V}},il=ht({root:null,weight:function(e){return 1},directed:!1,alpha:0}),Zr={degreeCentralityNormalized:function(e){e=il(e);var t=this.cy(),r=this.nodes(),n=r.length;if(e.directed){for(var i={},a={},o=0,s=0,u=0;u<n;u++){var l=r[u],c=l.id();e.root=l;var h=this.degreeCentrality(e);o<h.indegree&&(o=h.indegree),s<h.outdegree&&(s=h.outdegree),i[c]=h.indegree,a[c]=h.outdegree}return{indegree:function(g){return o==0?0:(fe(g)&&(g=t.filter(g)),i[g.id()]/o)},outdegree:function(g){return s===0?0:(fe(g)&&(g=t.filter(g)),a[g.id()]/s)}}}else{for(var f={},d=0,p=0;p<n;p++){var v=r[p];e.root=v;var m=this.degreeCentrality(e);d<m.degree&&(d=m.degree),f[v.id()]=m.degree}return{degree:function(g){return d===0?0:(fe(g)&&(g=t.filter(g)),f[g.id()]/d)}}}},degreeCentrality:function(e){e=il(e);var t=this.cy(),r=this,n=e,i=n.root,a=n.weight,o=n.directed,s=n.alpha;if(i=t.collection(i)[0],o){for(var u=i.connectedEdges(),l=u.filter(function(w){return w.target().same(i)&&r.has(w)}),c=u.filter(function(w){return w.source().same(i)&&r.has(w)}),h=l.length,f=c.length,d=0,p=0,v=0;v<l.length;v++)d+=a(l[v]);for(var m=0;m<c.length;m++)p+=a(c[m]);return{indegree:Math.pow(h,1-s)*Math.pow(d,s),outdegree:Math.pow(f,1-s)*Math.pow(p,s)}}else{for(var g=i.connectedEdges().intersection(r),y=g.length,x=0,T=0;T<g.length;T++)x+=a(g[T]);return{degree:Math.pow(y,1-s)*Math.pow(x,s)}}}};Zr.dc=Zr.degreeCentrality;Zr.dcn=Zr.degreeCentralityNormalised=Zr.degreeCentralityNormalized;var al=ht({harmonic:!0,weight:function(){return 1},directed:!1,root:null}),Kr={closenessCentralityNormalized:function(e){for(var t=al(e),r=t.harmonic,n=t.weight,i=t.directed,a=this.cy(),o={},s=0,u=this.nodes(),l=this.floydWarshall({weight:n,directed:i}),c=0;c<u.length;c++){for(var h=0,f=u[c],d=0;d<u.length;d++)if(c!==d){var p=l.distance(f,u[d]);r?h+=1/p:h+=p}r||(h=1/h),s<h&&(s=h),o[f.id()]=h}return{closeness:function(v){return s==0?0:(fe(v)?v=a.filter(v)[0].id():v=v.id(),o[v]/s)}}},closenessCentrality:function(e){var t=al(e),r=t.root,n=t.weight,i=t.directed,a=t.harmonic;r=this.filter(r)[0];for(var o=this.dijkstra({root:r,weight:n,directed:i}),s=0,u=this.nodes(),l=0;l<u.length;l++){var c=u[l];if(!c.same(r)){var h=o.distanceTo(c);a?s+=1/h:s+=h}}return a?s:1/s}};Kr.cc=Kr.closenessCentrality;Kr.ccn=Kr.closenessCentralityNormalised=Kr.closenessCentralityNormalized;var gp=ht({weight:null,directed:!1}),Ro={betweennessCentrality:function(e){for(var t=gp(e),r=t.directed,n=t.weight,i=n!=null,a=this.cy(),o=this.nodes(),s={},u={},l=0,c={set:function(g,y){u[g]=y,y>l&&(l=y)},get:function(g){return u[g]}},h=0;h<o.length;h++){var f=o[h],d=f.id();r?s[d]=f.outgoers().nodes():s[d]=f.openNeighborhood().nodes(),c.set(d,0)}for(var p=function(){for(var g=o[v].id(),y=[],x={},T={},w={},D=new Vn(function(z,G){return w[z]-w[G]}),b=0;b<o.length;b++){var _=o[b].id();x[_]=[],T[_]=0,w[_]=1/0}for(T[g]=1,w[g]=0,D.push(g);!D.empty();){var E=D.pop();if(y.push(E),i)for(var A=0;A<s[E].length;A++){var C=s[E][A],N=a.getElementById(E),S=void 0;N.edgesTo(C).length>0?S=N.edgesTo(C)[0]:S=C.edgesTo(N)[0];var M=n(S);C=C.id(),w[C]>w[E]+M&&(w[C]=w[E]+M,D.nodes.indexOf(C)<0?D.push(C):D.updateItem(C),T[C]=0,x[C]=[]),w[C]==w[E]+M&&(T[C]=T[C]+T[E],x[C].push(E))}else for(var R=0;R<s[E].length;R++){var P=s[E][R].id();w[P]==1/0&&(D.push(P),w[P]=w[E]+1),w[P]==w[E]+1&&(T[P]=T[P]+T[E],x[P].push(E))}}for(var L={},O=0;O<o.length;O++)L[o[O].id()]=0;for(;y.length>0;){for(var I=y.pop(),B=0;B<x[I].length;B++){var F=x[I][B];L[F]=L[F]+T[F]/T[I]*(1+L[I])}I!=o[v].id()&&c.set(I,c.get(I)+L[I])}},v=0;v<o.length;v++)p();var m={betweenness:function(g){var y=a.collection(g).id();return c.get(y)},betweennessNormalized:function(g){if(l==0)return 0;var y=a.collection(g).id();return c.get(y)/l}};return m.betweennessNormalised=m.betweennessNormalized,m}};Ro.bc=Ro.betweennessCentrality;var vp=ht({expandFactor:2,inflateFactor:2,multFactor:1,maxIterations:20,attributes:[function(e){return 1}]}),yp=function(e){return vp(e)},mp=function(e,t){for(var r=0,n=0;n<t.length;n++)r+=t[n](e);return r},bp=function(e,t,r){for(var n=0;n<t;n++)e[n*t+n]=r},Pc=function(e,t){for(var r,n=0;n<t;n++){r=0;for(var i=0;i<t;i++)r+=e[i*t+n];for(var a=0;a<t;a++)e[a*t+n]=e[a*t+n]/r}},xp=function(e,t,r){for(var n=new Array(r*r),i=0;i<r;i++){for(var a=0;a<r;a++)n[i*r+a]=0;for(var o=0;o<r;o++)for(var s=0;s<r;s++)n[i*r+s]+=e[i*r+o]*t[o*r+s]}return n},wp=function(e,t,r){for(var n=e.slice(0),i=1;i<r;i++)e=xp(e,n,t);return e},Ep=function(e,t,r){for(var n=new Array(t*t),i=0;i<t*t;i++)n[i]=Math.pow(e[i],r);return Pc(n,t),n},Tp=function(e,t,r,n){for(var i=0;i<r;i++){var a=Math.round(e[i]*Math.pow(10,n))/Math.pow(10,n),o=Math.round(t[i]*Math.pow(10,n))/Math.pow(10,n);if(a!==o)return!1}return!0},_p=function(e,t,r,n){for(var i=[],a=0;a<t;a++){for(var o=[],s=0;s<t;s++)Math.round(e[a*t+s]*1e3)/1e3>0&&o.push(r[s]);o.length!==0&&i.push(n.collection(o))}return i},Ap=function(e,t){for(var r=0;r<e.length;r++)if(!t[r]||e[r].id()!==t[r].id())return!1;return!0},Cp=function(e){for(var t=0;t<e.length;t++)for(var r=0;r<e.length;r++)t!=r&&Ap(e[t],e[r])&&e.splice(r,1);return e},ol=function(e){for(var t=this.nodes(),r=this.edges(),n=this.cy(),i=yp(e),a={},o=0;o<t.length;o++)a[t[o].id()]=o;for(var s=t.length,u=s*s,l=new Array(u),c,h=0;h<u;h++)l[h]=0;for(var f=0;f<r.length;f++){var d=r[f],p=a[d.source().id()],v=a[d.target().id()],m=mp(d,i.attributes);l[p*s+v]+=m,l[v*s+p]+=m}bp(l,s,i.multFactor),Pc(l,s);for(var g=!0,y=0;g&&y<i.maxIterations;)g=!1,c=wp(l,s,i.expandFactor),l=Ep(c,s,i.inflateFactor),Tp(l,c,u,4)||(g=!0),y++;var x=_p(l,s,t,n);return x=Cp(x),x},Dp={markovClustering:ol,mcl:ol},Np=function(e){return e},Bc=function(e,t){return Math.abs(t-e)},sl=function(e,t,r){return e+Bc(t,r)},ll=function(e,t,r){return e+Math.pow(r-t,2)},kp=function(e){return Math.sqrt(e)},Mp=function(e,t,r){return Math.max(e,Bc(t,r))},hn=function(e,t,r,n,i){for(var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:Np,o=n,s,u,l=0;l<e;l++)s=t(l),u=r(l),o=i(o,s,u);return a(o)},en={euclidean:function(e,t,r){return e>=2?hn(e,t,r,0,ll,kp):hn(e,t,r,0,sl)},squaredEuclidean:function(e,t,r){return hn(e,t,r,0,ll)},manhattan:function(e,t,r){return hn(e,t,r,0,sl)},max:function(e,t,r){return hn(e,t,r,-1/0,Mp)}};en["squared-euclidean"]=en.squaredEuclidean;en.squaredeuclidean=en.squaredEuclidean;function zi(e,t,r,n,i,a){var o;return We(e)?o=e:o=en[e]||en.euclidean,t===0&&We(e)?o(i,a):o(t,r,n,i,a)}var Sp=ht({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),ps=function(e){return Sp(e)},Di=function(e,t,r,n,i){var a=i!=="kMedoids",o=a?function(c){return r[c]}:function(c){return n[c](r)},s=function(c){return n[c](t)},u=r,l=t;return zi(e,n.length,o,s,u,l)},xa=function(e,t,r){for(var n=r.length,i=new Array(n),a=new Array(n),o=new Array(t),s=null,u=0;u<n;u++)i[u]=e.min(r[u]).value,a[u]=e.max(r[u]).value;for(var l=0;l<t;l++){s=[];for(var c=0;c<n;c++)s[c]=Math.random()*(a[c]-i[c])+i[c];o[l]=s}return o},Fc=function(e,t,r,n,i){for(var a=1/0,o=0,s=0;s<t.length;s++){var u=Di(r,e,t[s],n,i);u<a&&(a=u,o=s)}return o},zc=function(e,t,r){for(var n=[],i=null,a=0;a<t.length;a++)i=t[a],r[i.id()]===e&&n.push(i);return n},Lp=function(e,t,r){return Math.abs(t-e)<=r},Ip=function(e,t,r){for(var n=0;n<e.length;n++)for(var i=0;i<e[n].length;i++){var a=Math.abs(e[n][i]-t[n][i]);if(a>r)return!1}return!0},Op=function(e,t,r){for(var n=0;n<r;n++)if(e===t[n])return!0;return!1},ul=function(e,t){var r=new Array(t);if(e.length<50)for(var n=0;n<t;n++){for(var i=e[Math.floor(Math.random()*e.length)];Op(i,r,n);)i=e[Math.floor(Math.random()*e.length)];r[n]=i}else for(var a=0;a<t;a++)r[a]=e[Math.floor(Math.random()*e.length)];return r},cl=function(e,t,r){for(var n=0,i=0;i<t.length;i++)n+=Di("manhattan",t[i],e,r,"kMedoids");return n},Rp=function(e){var t=this.cy(),r=this.nodes(),n=null,i=ps(e),a=new Array(i.k),o={},s;i.testMode?typeof i.testCentroids=="number"?(i.testCentroids,s=xa(r,i.k,i.attributes)):rt(i.testCentroids)==="object"?s=i.testCentroids:s=xa(r,i.k,i.attributes):s=xa(r,i.k,i.attributes);for(var u=!0,l=0;u&&l<i.maxIterations;){for(var c=0;c<r.length;c++)n=r[c],o[n.id()]=Fc(n,s,i.distance,i.attributes,"kMeans");u=!1;for(var h=0;h<i.k;h++){var f=zc(h,r,o);if(f.length!==0){for(var d=i.attributes.length,p=s[h],v=new Array(d),m=new Array(d),g=0;g<d;g++){m[g]=0;for(var y=0;y<f.length;y++)n=f[y],m[g]+=i.attributes[g](n);v[g]=m[g]/f.length,Lp(v[g],p[g],i.sensitivityThreshold)||(u=!0)}s[h]=v,a[h]=t.collection(f)}}l++}return a},Pp=function(e){var t=this.cy(),r=this.nodes(),n=null,i=ps(e),a=new Array(i.k),o,s={},u,l=new Array(i.k);i.testMode?typeof i.testCentroids=="number"||(rt(i.testCentroids)==="object"?o=i.testCentroids:o=ul(r,i.k)):o=ul(r,i.k);for(var c=!0,h=0;c&&h<i.maxIterations;){for(var f=0;f<r.length;f++)n=r[f],s[n.id()]=Fc(n,o,i.distance,i.attributes,"kMedoids");c=!1;for(var d=0;d<o.length;d++){var p=zc(d,r,s);if(p.length!==0){l[d]=cl(o[d],p,i.attributes);for(var v=0;v<p.length;v++)u=cl(p[v],p,i.attributes),u<l[d]&&(l[d]=u,o[d]=p[v],c=!0);a[d]=t.collection(p)}}h++}return a},Bp=function(e,t,r,n,i){for(var a,o,s=0;s<t.length;s++)for(var u=0;u<e.length;u++)n[s][u]=Math.pow(r[s][u],i.m);for(var l=0;l<e.length;l++)for(var c=0;c<i.attributes.length;c++){a=0,o=0;for(var h=0;h<t.length;h++)a+=n[h][l]*i.attributes[c](t[h]),o+=n[h][l];e[l][c]=a/o}},Fp=function(e,t,r,n,i){for(var a=0;a<e.length;a++)t[a]=e[a].slice();for(var o,s,u,l=2/(i.m-1),c=0;c<r.length;c++)for(var h=0;h<n.length;h++){o=0;for(var f=0;f<r.length;f++)s=Di(i.distance,n[h],r[c],i.attributes,"cmeans"),u=Di(i.distance,n[h],r[f],i.attributes,"cmeans"),o+=Math.pow(s/u,l);e[h][c]=1/o}},zp=function(e,t,r,n){for(var i=new Array(r.k),a=0;a<i.length;a++)i[a]=[];for(var o,s,u=0;u<t.length;u++){o=-1/0,s=-1;for(var l=0;l<t[0].length;l++)t[u][l]>o&&(o=t[u][l],s=l);i[s].push(e[u])}for(var c=0;c<i.length;c++)i[c]=n.collection(i[c]);return i},hl=function(e){var t=this.cy(),r=this.nodes(),n=ps(e),i,a,o,s,u;s=new Array(r.length);for(var l=0;l<r.length;l++)s[l]=new Array(n.k);o=new Array(r.length);for(var c=0;c<r.length;c++)o[c]=new Array(n.k);for(var h=0;h<r.length;h++){for(var f=0,d=0;d<n.k;d++)o[h][d]=Math.random(),f+=o[h][d];for(var p=0;p<n.k;p++)o[h][p]=o[h][p]/f}a=new Array(n.k);for(var v=0;v<n.k;v++)a[v]=new Array(n.attributes.length);u=new Array(r.length);for(var m=0;m<r.length;m++)u[m]=new Array(n.k);for(var g=!0,y=0;g&&y<n.maxIterations;)g=!1,Bp(a,r,o,u,n),Fp(o,s,a,r,n),Ip(o,s,n.sensitivityThreshold)||(g=!0),y++;return i=zp(r,o,n,t),{clusters:i,degreeOfMembership:o}},Vp={kMeans:Rp,kMedoids:Pp,fuzzyCMeans:hl,fcm:hl},Gp=ht({distance:"euclidean",linkage:"min",mode:"threshold",threshold:1/0,addDendrogram:!1,dendrogramDepth:0,attributes:[]}),Yp={single:"min",complete:"max"},Up=function(e){var t=Gp(e),r=Yp[t.linkage];return r!=null&&(t.linkage=r),t},dl=function(e,t,r,n,i){for(var a=0,o=1/0,s,u=i.attributes,l=function(b,_){return zi(i.distance,u.length,function(E){return u[E](b)},function(E){return u[E](_)},b,_)},c=0;c<e.length;c++){var h=e[c].key,f=r[h][n[h]];f<o&&(a=h,o=f)}if(i.mode==="threshold"&&o>=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var d=t[a],p=t[n[a]],v;i.mode==="dendrogram"?v={left:d,right:p,key:d.key}:v={value:d.value.concat(p.value),key:d.key},e[d.index]=v,e.splice(p.index,1),t[d.key]=v;for(var m=0;m<e.length;m++){var g=e[m];d.key===g.key?s=1/0:i.linkage==="min"?(s=r[d.key][g.key],r[d.key][g.key]>r[p.key][g.key]&&(s=r[p.key][g.key])):i.linkage==="max"?(s=r[d.key][g.key],r[d.key][g.key]<r[p.key][g.key]&&(s=r[p.key][g.key])):i.linkage==="mean"?s=(r[d.key][g.key]*d.size+r[p.key][g.key]*p.size)/(d.size+p.size):i.mode==="dendrogram"?s=l(g.value,d.value):s=l(g.value[0],d.value[0]),r[d.key][g.key]=r[g.key][d.key]=s}for(var y=0;y<e.length;y++){var x=e[y].key;if(n[x]===d.key||n[x]===p.key){for(var T=x,w=0;w<e.length;w++){var D=e[w].key;r[x][D]<r[x][T]&&(T=D)}n[x]=T}e[y].index=y}return d.key=p.key=d.index=p.index=null,!0},Hr=function(e,t,r){e&&(e.value?t.push(e.value):(e.left&&Hr(e.left,t),e.right&&Hr(e.right,t)))},Po=function(e,t){if(!e)return"";if(e.left&&e.right){var r=Po(e.left,t),n=Po(e.right,t),i=t.add({group:"nodes",data:{id:r+","+n}});return t.add({group:"edges",data:{source:r,target:i.id()}}),t.add({group:"edges",data:{source:n,target:i.id()}}),i.id()}else if(e.value)return e.value.id()},Bo=function(e,t,r){if(!e)return[];var n=[],i=[],a=[];return t===0?(e.left&&Hr(e.left,n),e.right&&Hr(e.right,i),a=n.concat(i),[r.collection(a)]):t===1?e.value?[r.collection(e.value)]:(e.left&&Hr(e.left,n),e.right&&Hr(e.right,i),[r.collection(n),r.collection(i)]):e.value?[r.collection(e.value)]:(e.left&&(n=Bo(e.left,t-1,r)),e.right&&(i=Bo(e.right,t-1,r)),n.concat(i))},fl=function(e){for(var t=this.cy(),r=this.nodes(),n=Up(e),i=n.attributes,a=function(g,y){return zi(n.distance,i.length,function(x){return i[x](g)},function(x){return i[x](y)},g,y)},o=[],s=[],u=[],l=[],c=0;c<r.length;c++){var h={value:n.mode==="dendrogram"?r[c]:[r[c]],key:c,index:c};o[c]=h,l[c]=h,s[c]=[],u[c]=0}for(var f=0;f<o.length;f++)for(var d=0;d<=f;d++){var p=void 0;n.mode==="dendrogram"?p=f===d?1/0:a(o[f].value,o[d].value):p=f===d?1/0:a(o[f].value[0],o[d].value[0]),s[f][d]=p,s[d][f]=p,p<s[f][u[f]]&&(u[f]=d)}for(var v=dl(o,l,s,u,n);v;)v=dl(o,l,s,u,n);var m;return n.mode==="dendrogram"?(m=Bo(o[0],n.dendrogramDepth,t),n.addDendrogram&&Po(o[0],t)):(m=new Array(o.length),o.forEach(function(g,y){g.key=g.index=null,m[y]=t.collection(g.value)})),m},Xp={hierarchicalClustering:fl,hca:fl},Wp=ht({distance:"euclidean",preference:"median",damping:.8,maxIterations:1e3,minIterations:100,attributes:[]}),qp=function(e){var t=e.damping,r=e.preference;.5<=t&&t<1||Xe("Damping must range on [0.5, 1). Got: ".concat(t));var n=["median","mean","min","max"];return n.some(function(i){return i===r})||ne(r)||Xe("Preference must be one of [".concat(n.map(function(i){return"'".concat(i,"'")}).join(", "),"] or a number. Got: ").concat(r)),Wp(e)},Hp=function(e,t,r,n){var i=function(a,o){return n[o](a)};return-zi(e,n.length,function(a){return i(t,a)},function(a){return i(r,a)},t,r)},jp=function(e,t){var r=null;return t==="median"?r=qf(e):t==="mean"?r=Wf(e):t==="min"?r=Uf(e):t==="max"?r=Xf(e):r=t,r},$p=function(e,t,r){for(var n=[],i=0;i<e;i++)t[i*e+i]+r[i*e+i]>0&&n.push(i);return n},pl=function(e,t,r){for(var n=[],i=0;i<e;i++){for(var a=-1,o=-1/0,s=0;s<r.length;s++){var u=r[s];t[i*e+u]>o&&(a=u,o=t[i*e+u])}a>0&&n.push(a)}for(var l=0;l<r.length;l++)n[r[l]]=r[l];return n},Zp=function(e,t,r){for(var n=pl(e,t,r),i=0;i<r.length;i++){for(var a=[],o=0;o<n.length;o++)n[o]===r[i]&&a.push(o);for(var s=-1,u=-1/0,l=0;l<a.length;l++){for(var c=0,h=0;h<a.length;h++)c+=t[a[h]*e+a[l]];c>u&&(s=l,u=c)}r[i]=a[s]}return n=pl(e,t,r),n},gl=function(e){for(var t=this.cy(),r=this.nodes(),n=qp(e),i={},a=0;a<r.length;a++)i[r[a].id()]=a;var o,s,u,l,c,h;o=r.length,s=o*o,u=new Array(s);for(var f=0;f<s;f++)u[f]=-1/0;for(var d=0;d<o;d++)for(var p=0;p<o;p++)d!==p&&(u[d*o+p]=Hp(n.distance,r[d],r[p],n.attributes));l=jp(u,n.preference);for(var v=0;v<o;v++)u[v*o+v]=l;c=new Array(s);for(var m=0;m<s;m++)c[m]=0;h=new Array(s);for(var g=0;g<s;g++)h[g]=0;for(var y=new Array(o),x=new Array(o),T=new Array(o),w=0;w<o;w++)y[w]=0,x[w]=0,T[w]=0;for(var D=new Array(o*n.minIterations),b=0;b<D.length;b++)D[b]=0;var _;for(_=0;_<n.maxIterations;_++){for(var E=0;E<o;E++){for(var A=-1/0,C=-1/0,N=-1,S=0,M=0;M<o;M++)y[M]=c[E*o+M],S=h[E*o+M]+u[E*o+M],S>=A?(C=A,A=S,N=M):S>C&&(C=S);for(var R=0;R<o;R++)c[E*o+R]=(1-n.damping)*(u[E*o+R]-A)+n.damping*y[R];c[E*o+N]=(1-n.damping)*(u[E*o+N]-C)+n.damping*y[N]}for(var P=0;P<o;P++){for(var L=0,O=0;O<o;O++)y[O]=h[O*o+P],x[O]=Math.max(0,c[O*o+P]),L+=x[O];L-=x[P],x[P]=c[P*o+P],L+=x[P];for(var I=0;I<o;I++)h[I*o+P]=(1-n.damping)*Math.min(0,L-x[I])+n.damping*y[I];h[P*o+P]=(1-n.damping)*(L-x[P])+n.damping*y[P]}for(var B=0,F=0;F<o;F++){var z=h[F*o+F]+c[F*o+F]>0?1:0;D[_%n.minIterations*o+F]=z,B+=z}if(B>0&&(_>=n.minIterations-1||_==n.maxIterations-1)){for(var G=0,H=0;H<o;H++){T[H]=0;for(var j=0;j<n.minIterations;j++)T[H]+=D[j*o+H];(T[H]===0||T[H]===n.minIterations)&&G++}if(G===o)break}}for(var Z=$p(o,c,h),Q=Zp(o,u,Z),re={},V=0;V<Z.length;V++)re[Z[V]]=[];for(var Y=0;Y<r.length;Y++){var U=i[r[Y].id()],K=Q[U];K!=null&&re[K].push(r[Y])}for(var ee=new Array(Z.length),ie=0;ie<Z.length;ie++)ee[ie]=t.collection(re[Z[ie]]);return ee},Kp={affinityPropagation:gl,ap:gl},Qp=ht({root:void 0,directed:!1}),Jp={hierholzer:function(e){if(!ke(e)){var t=arguments;e={root:t[0],directed:t[1]}}var r=Qp(e),n=r.root,i=r.directed,a=this,o=!1,s,u,l;n&&(l=fe(n)?this.filter(n)[0].id():n[0].id());var c={},h={};i?a.forEach(function(g){var y=g.id();if(g.isNode()){var x=g.indegree(!0),T=g.outdegree(!0),w=x-T,D=T-x;w==1?s?o=!0:s=y:D==1?u?o=!0:u=y:(D>1||w>1)&&(o=!0),c[y]=[],g.outgoers().forEach(function(b){b.isEdge()&&c[y].push(b.id())})}else h[y]=[void 0,g.target().id()]}):a.forEach(function(g){var y=g.id();if(g.isNode()){var x=g.degree(!0);x%2&&(s?u?o=!0:u=y:s=y),c[y]=[],g.connectedEdges().forEach(function(T){return c[y].push(T.id())})}else h[y]=[g.source().id(),g.target().id()]});var f={found:!1,trail:void 0};if(o)return f;if(u&&s)if(i){if(l&&u!=l)return f;l=u}else{if(l&&u!=l&&s!=l)return f;l||(l=u)}else l||(l=a[0].id());var d=function(g){for(var y=g,x=[g],T,w,D;c[y].length;)T=c[y].shift(),w=h[T][0],D=h[T][1],y!=D?(c[D]=c[D].filter(function(b){return b!=T}),y=D):!i&&y!=w&&(c[w]=c[w].filter(function(b){return b!=T}),y=w),x.unshift(T),x.unshift(y);return x},p=[],v=[];for(v=d(l);v.length!=1;)c[v[0]].length==0?(p.unshift(a.getElementById(v.shift())),p.unshift(a.getElementById(v.shift()))):v=d(v.shift()).concat(v);p.unshift(a.getElementById(v.shift()));for(var m in c)if(c[m].length)return f;return f.found=!0,f.trail=this.spawn(p,!0),f}},ei=function(){var e=this,t={},r=0,n=0,i=[],a=[],o={},s=function(c,h){for(var f=a.length-1,d=[],p=e.spawn();a[f].x!=c||a[f].y!=h;)d.push(a.pop().edge),f--;d.push(a.pop().edge),d.forEach(function(v){var m=v.connectedNodes().intersection(e);p.merge(v),m.forEach(function(g){var y=g.id(),x=g.connectedEdges().intersection(e);p.merge(g),t[y].cutVertex?p.merge(x.filter(function(T){return T.isLoop()})):p.merge(x)})}),i.push(p)},u=function(c,h,f){c===f&&(n+=1),t[h]={id:r,low:r++,cutVertex:!1};var d=e.getElementById(h).connectedEdges().intersection(e);if(d.size()===0)i.push(e.spawn(e.getElementById(h)));else{var p,v,m,g;d.forEach(function(y){p=y.source().id(),v=y.target().id(),m=p===h?v:p,m!==f&&(g=y.id(),o[g]||(o[g]=!0,a.push({x:h,y:m,edge:y})),m in t?t[h].low=Math.min(t[h].low,t[m].id):(u(c,m,h),t[h].low=Math.min(t[h].low,t[m].low),t[h].id<=t[m].low&&(t[h].cutVertex=!0,s(h,m))))})}};e.forEach(function(c){if(c.isNode()){var h=c.id();h in t||(n=0,u(h,h),t[h].cutVertex=n>1)}});var l=Object.keys(t).filter(function(c){return t[c].cutVertex}).map(function(c){return e.getElementById(c)});return{cut:e.spawn(l),components:i}},eg={hopcroftTarjanBiconnected:ei,htbc:ei,htb:ei,hopcroftTarjanBiconnectedComponents:ei},ti=function(){var e=this,t={},r=0,n=[],i=[],a=e.spawn(e),o=function(s){i.push(s),t[s]={index:r,low:r++,explored:!1};var u=e.getElementById(s).connectedEdges().intersection(e);if(u.forEach(function(d){var p=d.target().id();p!==s&&(p in t||o(p),t[p].explored||(t[s].low=Math.min(t[s].low,t[p].low)))}),t[s].index===t[s].low){for(var l=e.spawn();;){var c=i.pop();if(l.merge(e.getElementById(c)),t[c].low=t[s].index,t[c].explored=!0,c===s)break}var h=l.edgesWith(l),f=l.merge(h);n.push(f),a=a.difference(f)}};return e.forEach(function(s){if(s.isNode()){var u=s.id();u in t||o(u)}}),{cut:a,components:n}},tg={tarjanStronglyConnected:ti,tsc:ti,tscc:ti,tarjanStronglyConnectedComponents:ti},Vc={};[Cn,Sf,Lf,Of,Pf,Ff,Gf,pp,Zr,Kr,Ro,Dp,Vp,Xp,Kp,Jp,eg,tg].forEach(function(e){ge(Vc,e)});/*!
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as st,R as rt,N as at,I as lt,M as ot,L as ct,O as tt,S as et,ac as ht,ab as ut,ad as yt,ae as pt,J as ft,G as gt,j as dt,af as mt,ag as R,ah as _t,ai as Z}from"./index-
|
|
1
|
+
import{D as st,R as rt,N as at,I as lt,M as ot,L as ct,O as tt,S as et,ac as ht,ab as ut,ad as yt,ae as pt,J as ft,G as gt,j as dt,af as mt,ag as R,ah as _t,ai as Z}from"./index-CDwx2U7N.js";import{h as H}from"./arc-CvECY7sY-BAfm7gAl.js";function bt(e,h){return h<e?-1:h>e?1:h>=e?0:NaN}function vt(e){return e}function kt(){var e=vt,h=bt,p=null,$=R(0),x=R(Z),S=R(0);function u(r){var l,d=(r=_t(r)).length,b,T,I=0,m=new Array(d),v=new Array(d),o=+$.apply(this,arguments),A=Math.min(Z,Math.max(-Z,x.apply(this,arguments)-o)),N,E=Math.min(Math.abs(A)/d,S.apply(this,arguments)),g=E*(A<0?-1:1),t;for(l=0;l<d;++l)(t=v[m[l]=l]=+e(r[l],l,r))>0&&(I+=t);for(h!=null?m.sort(function(i,s){return h(v[i],v[s])}):p!=null&&m.sort(function(i,s){return p(r[i],r[s])}),l=0,T=I?(A-d*g)/I:0;l<d;++l,o=N)b=m[l],t=v[b],N=o+(t>0?t*T:0)+g,v[b]={data:r[b],index:l,value:t,startAngle:o,endAngle:N,padAngle:E};return v}return u.value=function(r){return arguments.length?(e=typeof r=="function"?r:R(+r),u):e},u.sortValues=function(r){return arguments.length?(h=r,p=null,u):h},u.sort=function(r){return arguments.length?(p=r,h=null,u):p},u.startAngle=function(r){return arguments.length?($=typeof r=="function"?r:R(+r),u):$},u.endAngle=function(r){return arguments.length?(x=typeof r=="function"?r:R(+r),u):x},u.padAngle=function(r){return arguments.length?(S=typeof r=="function"?r:R(+r),u):S},u}var X=function(){var e=function(g,t,i,s){for(i=i||{},s=g.length;s--;i[g[s]]=t);return i},h=[1,3],p=[1,4],$=[1,5],x=[1,6],S=[1,10,12,14,16,18,19,20,21,22],u=[2,4],r=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],d=[2,7],b=[1,12],T=[1,13],I=[1,14],m=[1,15],v=[1,16],o=[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(g,t,i,s,a,n,y){var k=n.length-1;switch(a){case 3:s.setShowData(!0);break;case 6:this.$=n[k-1];break;case 8:s.addSection(n[k-1],s.cleanupValue(n[k]));break;case 9:this.$=n[k].trim(),s.setDiagramTitle(this.$);break;case 10:this.$=n[k].trim(),s.setAccTitle(this.$);break;case 11:case 12:this.$=n[k].trim(),s.setAccDescription(this.$);break;case 13:s.addSection(n[k].substr(8)),this.$=n[k].substr(8);break}},table:[{3:1,4:2,5:h,20:p,21:$,22:x},{1:[3]},{3:7,4:2,5:h,20:p,21:$,22:x},e(S,u,{6:8,7:[1,9]}),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{1:[2,1]},e(l,d,{8:10,9:11,1:[2,2],10:b,12:T,14:I,16:m,18:v,19:o}),e(S,u,{6:18}),e(S,[2,5]),{4:19,20:p,21:$,22:x},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,d,{8:10,9:11,1:[2,3],10:b,12:T,14:I,16:m,18:v,19:o}),e(S,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(g,t){if(t.recoverable)this.trace(g);else{var i=new Error(g);throw i.hash=t,i}},parse:function(g){var t=this,i=[0],s=[],a=[null],n=[],y=this.table,k="",D=0,f=0,j=2,L=1,U=n.slice.call(arguments,1),c=Object.create(this.lexer),O={yy:{}};for(var W in this.yy)Object.prototype.hasOwnProperty.call(this.yy,W)&&(O.yy[W]=this.yy[W]);c.setInput(g,O.yy),O.yy.lexer=c,O.yy.parser=this,typeof c.yylloc>"u"&&(c.yylloc={});var J=c.yylloc;n.push(J);var it=c.options&&c.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nt(){var C;return C=s.pop()||c.lex()||L,typeof C!="number"&&(C instanceof Array&&(s=C,C=s.pop()),C=t.symbols_[C]||C),C}for(var _,M,w,K,V={},z,P,q,B;;){if(M=i[i.length-1],this.defaultActions[M]?w=this.defaultActions[M]:((_===null||typeof _>"u")&&(_=nt()),w=y[M]&&y[M][_]),typeof w>"u"||!w.length||!w[0]){var Q="";B=[];for(z in y[M])this.terminals_[z]&&z>j&&B.push("'"+this.terminals_[z]+"'");c.showPosition?Q="Parse error on line "+(D+1)+`:
|
|
2
2
|
`+c.showPosition()+`
|
|
3
3
|
Expecting `+B.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Q="Parse error on line "+(D+1)+": Unexpected "+(_==L?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Q,{text:c.match,token:this.terminals_[_]||_,line:c.yylineno,loc:J,expected:B})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+_);switch(w[0]){case 1:i.push(_),a.push(c.yytext),n.push(c.yylloc),i.push(w[1]),_=null,f=c.yyleng,k=c.yytext,D=c.yylineno,J=c.yylloc;break;case 2:if(P=this.productions_[w[1]][1],V.$=a[a.length-P],V._$={first_line:n[n.length-(P||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(P||1)].first_column,last_column:n[n.length-1].last_column},it&&(V._$.range=[n[n.length-(P||1)].range[0],n[n.length-1].range[1]]),K=this.performAction.apply(V,[k,f,D,O.yy,w[1],a,n].concat(U)),typeof K<"u")return K;P&&(i=i.slice(0,-1*P*2),a=a.slice(0,-1*P),n=n.slice(0,-1*P)),i.push(this.productions_[w[1]][0]),a.push(V.$),n.push(V._$),q=y[i[i.length-2]][i[i.length-1]],i.push(q);break;case 3:return!0}}return!0}},N=function(){var g={EOF:1,parseError:function(t,i){if(this.yy.parser)this.yy.parser.parseError(t,i);else throw new Error(t)},setInput:function(t,i){return this.yy=i||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var i=t.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var i=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;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),s.length-1&&(this.yylineno-=s.length-1);var n=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===a.length?this.yylloc.first_column:0)+a[a.length-s.length].length-s[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-i]),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).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),i=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|